OSDN Git Service

* config/mips/mips.c (mips_expand_epilogue): Generate a
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
2
3         * config/mips/mips.c (mips_expand_epilogue): Generate a
4         simple_return only if the return address is in r31.
5
6 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
7
8         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
9         NULL for a jump that is a cc0 insn, pick the previous insn for
10         move_before.
11
12 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
13
14         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
15         throughout file.
16
17 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
18
19         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
20         throughout file.
21
22 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
23
24         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
25         symbol_ref throughout file.
26
27 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
28
29         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
30         throughout file.
31
32 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
33
34         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
35         throughout file.
36
37 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
38
39         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
40         throughout file.
41         * config/arm/neon.md: Likewise.
42         * config/arm/vfp.md: Likewise.
43         * config/arm/thumb2.md: Likewise.
44         * config/arm/cortex-m4.md: Likewise.
45
46 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
47
48         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
49         define_insn patterns for combine.
50
51 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
52
53         * reorg.c: Always define make_return_insns.
54
55 2011-09-13  Jan Hubicka  <jh@suse.cz>
56
57         PR other/49533
58         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
59
60 2011-09-13  Jan Hubicka  <jh@suse.cz>
61
62         PR other/49533
63         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
64
65 2011-09-13  Paul Brook  <paul@codesourcery.com>
66  
67         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
68         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
69         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
70         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
71         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
72         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
73         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
74         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
75         enabling unwind tables.
76         (c6x_debug_unwind_info): New function.
77         (TARGET_ARM_EABI_UNWINDER): Define.
78         (TARGET_DEBUG_UNWIND_INFO): Define.
79         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
80         (TARGET_EXTRA_CFI_SECTION): Remove.
81         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
82         * ginclude/unwind-arm-common.h: New file.
83
84 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
85         
86         PR target/50358
87         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
88         * config/avr/avr.md: (extend_s): New code attribute.
89         (mul_r_d): New code attribute.
90         (*maddqihi4, *umaddqihi4): New insns.
91         (*msubqihi4, *umsubqihi4): New insns.
92         (*usmaddqihi4, *sumaddqihi4): New insns.
93         (*usmsubqihi4, *susubdqihi4): New insns.
94         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
95         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
96         (*umsubqihi4.uconst.ashift): New insn-and-split.
97         (*msubqihi4.sconst.ashift): New insn-and-split.
98         (*sumaddqihi4.uconst): New insn-and-split.
99         (*sumsubqihi4.uconst): New insn-and-split.
100         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
101         PLUS:HI and MINUS:HI.
102
103 2011-09-13  Revital Eres  <revital.eres@linaro.org>
104
105         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
106         (optimize_sc): Adjust call to remove_node_from_ps.
107         (sms_schedule): Add print info.
108
109 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
110
111         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
112         flags specially.
113
114 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
115
116         PR bootstrap/50010
117         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
118         NOTE_INSN_CFI notes, with the exception of
119         NOTE_INSN_SWITCH_TEXT_SECTIONS.
120
121 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
122             Richard Sandiford  <rdsandiford@googlemail.com>
123
124         * config/mips/mips.c (mips_epilogue): New structure.
125         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
126         restoring registers.
127         (mips_epilogue_emit_cfa_restores): New function.
128         (mips_epilogue_set_cfa): Likewise.
129         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
130         the current CFA register from the stack, redefine the CFA in terms
131         of the stack pointer.
132         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
133         to the epilogue instructions.
134
135 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
136
137         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
138         argument.
139         (mips16e_build_save_restore): Update accordingly.
140
141 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
142
143         PR rtl-optimization/50212
144         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
145         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
146
147         PR debug/50299
148         * calls.c (load_register_parameters): Use use_reg_mode instead
149         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
150         entry.
151         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
152         for stack CALL_INSN_FUNCTION_USAGE uses.
153         * expr.h (use_reg_mode): New prototype.
154         (use_reg): Changed into inline around use_reg_mode.
155         * expr.c (use_reg): Renamed to...
156         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
157         mode to that mode instead of VOIDmode.
158         * var-tracking.c (prepare_call_arguments): Don't track parameters
159         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
160         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
161         EXPR_LIST mode.
162
163 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
164
165         PR target/43746
166         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
167         (progmem_section): New Variable.
168         (avr_asm_init_sections): Initialize it.
169         (TARGET_ASM_SELECT_SECTION): Define to...
170         (avr_asm_select_section): ... this new Function.
171         (avr_replace_prefix): New Function.
172         (avr_asm_function_rodata_section): Use it.
173         (avr_insert_attributes): Don't add section attribute for PROGMEM.
174         (avr_section_type_flags): Use avr_progmem_p instead of section
175         name to detect if object is in PROGMEM.
176         (avr_asm_named_section): Set section name prefix for objects in
177         PROGMEM.
178
179 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
180
181         PR bootstrap/50352
182         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
183         sprintf format string.
184
185 2011-09-12  Richard Guenther  <rguenther@suse.de>
186
187         PR tree-optimization/50343
188         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
189         that the reduction is over an SSA name before checking its
190         definition.
191
192 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
193
194         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
195         throughout file.
196
197 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
198
199         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
200         throughout file.
201         * config/mips/sb1.md: Likewise.
202         * config/mips/predicates.md: Replace (match_test "!...")
203         with (not (match_test "..."))
204         * config/mips/constraints.md: Likewise.
205
206 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
207
208         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
209         * config/arm/arm-tables.opt: Regenerate.
210         * config/arm/arm-tune.md: Regenerate.
211         * config/arm/arm.c (arm_file_start): Output .arch directive when
212         user passes -mcpu=generic-*.
213         (arm_issue_rate): Add genericv7a support.
214         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
215         (ASM_CPU_SPEC): New define.
216         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
217         * config/arm/semi.h (ASM_SPEC): Likewise.
218         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
219         and -mtune=generic-*.
220
221 2011-09-09  Richard Guenther  <rguenther@suse.de>
222
223         PR tree-optimization/50328
224         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
225         constant or default-def operand.
226
227 2011-09-09  Richard Guenther  <rguenther@suse.de>
228
229         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
230         last statement.
231
232 2011-09-09  Richard Guenther  <rguenther@suse.de>
233
234         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
235         instead of a statement.
236         * gimple-fold.c (fold_stmt_inplace): Likewise.
237         * sese.c (graphite_copy_stmts_from_block): Adjust.
238         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
239         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
240         fold_stmt.
241         (forward_propagate_addr_into_variable_array_index): Likewise.
242         (forward_propagate_addr_expr_1): adjust.
243         (associate_plusminus): Likewise.
244         (ssa_forward_propagate_and_combine): Likewise.
245         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
246         (execute_cse_reciprocals): Likewise.
247         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
248
249 2011-09-09  Nick Clifton  <nickc@redhat.com>
250
251         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
252         Return a positive value to indicate that the bits at the
253         bottom of the register should be cleared.
254
255 2011-09-09  Richard Guenther  <rguenther@suse.de>
256
257         * tree-ssa-operands.c (swap_tree_operands): Always adjust
258         existing operand positions.
259
260 2011-09-09  Richard Guenther  <rguenther@suse.de>
261
262         PR middle-end/50333
263         * tree-data-ref.c (split_constant_offset): Do not try to handle
264         ternary ops.
265
266 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
267
268         PR tree-optimization/50318
269         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
270         typo in use of mult_rhs1 and mult_rhs2.
271
272 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
273
274         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
275         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
276
277 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
278
279         * config/arm/arm.md (push_multi): Emit predicates.
280         (push_fp_multi): Likewise.
281         * config/arm/arm.c (vfp_output_fstmd): Likewise.
282
283 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
284
285         PR c++/33255 - Support -Wunused-local-typedefs warning
286         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
287         (pushdecl): Use the new record_locally_defined_typedef.
288         (store_parm_decls): Allocate cfun->language.
289         (finish_function): Use the new maybe_warn_unused_local_typedefs,
290         and free cfun->language.
291         (c_push_function_context): Allocate cfun->language here only if needed.
292         (c_pop_function_context): Likewise, mark cfun->language
293         for collection only when it should be done.
294         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
295         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
296         maybe_record_local_typedef_use.
297         * doc/invoke.texi: Update documentation for
298         -Wunused-local-typedefs.
299
300 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
301
302         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
303         (ix86_avoid_lea_for_add): Likewise.
304         (ix86_avoid_lea_for_addr): Likewise.
305         (ix86_split_lea_for_addr): Likewise.
306
307         * config/i386/i386.c (LEA_MAX_STALL): New.
308         (increase_distance): Likewise.
309         (insn_defines_reg): Likewise.
310         (insn_uses_reg_mem): Likewise.
311         (distance_non_agu_define_in_bb): Likewise.
312         (distance_agu_use_in_bb): Likewise.
313         (ix86_lea_outperforms): Likewise.
314         (ix86_ok_to_clobber_flags): Likewise.
315         (ix86_avoid_lea_for_add): Likewise.
316         (ix86_avoid_lea_for_addr): Likewise.
317         (ix86_split_lea_for_addr): Likewise.
318         (distance_non_agu_define): Search in pred BBs added.
319         (distance_agu_use): Search in succ BBs added.
320         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
321         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
322         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
323
324         * config/i386/i386.md: Split added to transform non destructive
325         add into move and add.
326         (lea_1): transformed into insn_and_split to avoid AGU stalls.
327         (lea<mode>_2): Likewise.
328
329 2011-09-08  Martin Jambor  <mjambor@suse.cz>
330
331         PR tree-optimization/50287
332         * ipa-split.c (split_function): Do not create SSA names for
333         non-gimple-registers.
334
335 2011-09-08  Richard Guenther  <rguenther@suse.de>
336
337         PR tree-optimization/19831
338         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
339         skip builtins with vdefs that do not really store something.
340         (propagate_necessity): For calls to free that we can associate
341         with an allocation function do not mark the freed pointer
342         definition necessary.
343         (eliminate_unnecessary_stmts): Remove a call to free if
344         the associated call to an allocation function is not necessary.
345
346 2011-09-08  Richard Guenther  <rguenther@suse.de>
347
348         PR tree-optimization/19831
349         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
350         allocation functions as necessary.
351
352 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
353
354         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
355         cut from ...
356         (darwin_default_min_version): Amended to provide defaults
357         for the cross directory case.
358         (darwin_driver_init): call darwin_default_min_version unconditionally.
359         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
360         * config/darwin9.h: Likewise.
361         * config/darwin10.h: Likewise.
362         * config/rs6000/darwin7.h: Likewise.
363
364 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
365
366         PR target/50310
367         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
368         code early if TARGET_AVX.
369         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
370
371 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
372
373         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
374         duplicates.
375
376         PR target/50310
377         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
378         "mode" attribute computation.
379
380 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
381
382         * regrename.c (struct du_head): Make nregs signed.
383         (closed_chains): Remove.
384         (create_new_chain): Return the new chain.
385         (chain_from_id): New static function.
386         (dump_def_use_chain): Change argument to be an int, indicating
387         the first ID to print.  All callers changed.
388         (merge_overlapping_regs): Use chain_from_id.  Assert that
389         chains don't conflict with themselves.
390         (rename_chains): Take no argument.  Iterate over id_to_chain
391         rather to find chains to rename.  Clear tick before the main loop.
392         (struct incoming_reg_info): New struct.
393         (struct bb_rename_info): New struct.
394         (init_rename_info, set_incoming_from_chain, merge_chains): New
395         static functions.
396         (regrename_analyze): New static function, broken out of
397         regrename_optimize.  Record and make use of open chain information
398         at basic block boundaries, and merge chains where possible.
399         (scan_rtx_reg): Make this_nregs signed.  Don't update
400         closed_chains.
401         (build_def_use): Return a bool to indicate success.  All callers
402         changed.  Don't initialize global data here.
403         (regrename_optimize): Move most code out of here into
404         regrename_analyze.
405         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
406         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
407         static inline functions.
408         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
409
410         * bb-reorder.c (insert_section_boundary_note): Don't check
411         optimize_function_for_speed_p.
412         (gate_handle_partition_blocks): Do it here instead.
413         (gate_handle_reorder_blocks): Move preliminary checks here ...
414         (rest_of_handle_reorder_blocks): ... from here.
415
416 2011-09-07  Martin Jambor  <mjambor@suse.cz>
417
418         PR middle-end/50301
419         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
420         function index bounds.
421         (perhaps_add_new_callers): Likewise.
422
423 2011-09-07  Martin Jambor  <mjambor@suse.cz>
424
425         PR tree-optimization/49911
426         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
427         enumerations to the corresponding plain integer type.
428
429 2011-09-07  Richard Guenther  <rguenther@suse.de>
430
431         PR tree-optimization/50319
432         * tree-if-conv.c (set_bb_predicate): Assert we only set
433         canonical predicates.
434         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
435         around canonical predicates.
436         (predicate_bbs): Do not re-gimplify already canonical
437         predicates.  Properly unshare them though.
438         (find_phi_replacement_condition): Simplify.
439
440 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
441
442         PR target/49030
443         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
444         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
445         reusing the old code from get_arm_condition_code.  Return ARM_NV
446         for invalid comparison codes.
447         (get_arm_condition_code): Redefine in terms of
448         maybe_get_arm_condition_code.
449         * config/arm/predicates.md (arm_comparison_operator): Use
450         maybe_get_arm_condition_code.
451
452 2011-09-07  Richard Guenther  <rguenther@suse.de>
453
454         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
455         Canonicalize negated predicates by swapping edges.
456         (forward_propagate_into_cond): Likewise.
457
458 2011-09-07  Richard Guenther  <rguenther@suse.de>
459
460         PR tree-optimization/50213
461         * tree-flow.h (simple_iv_increment_p): Declare.
462         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
463         POINTER_PLUS_EXPR.
464         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
465         not propagate simple IV counter increments.
466
467 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
468             Iain Sandoe  <iains@gcc.gnu.org>
469
470         * config/rs6000/rs6000.c (compute_save_world_info): Test
471         cfun->has_nonlocal_label to determine if the out-of-line save
472         world call may be used.
473
474 2011-09-07  Nick Clifton  <nickc@redhat.com>
475
476         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
477         label on the parallel part of the insn.
478
479 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
480
481         PR debug/50191
482         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
483         avoid_constant_pool_reference first instead of last.
484
485 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
486
487         * doc/configfiles.texi (Configuration Files): Update documentation
488         about tm_p.h and remove FIXME comment.
489
490 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
491
492         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
493         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
494
495 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
496
497         * config/darwin10.h Remove duplicate LIB_SPEC.
498
499 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
500
501         PR middle-end/44382
502         * target.def (reassociation_width): New hook.
503
504         * doc/tm.texi.in (reassociation_width): Likewise.
505
506         * doc/tm.texi (reassociation_width): Likewise.
507
508         * doc/invoke.texi (tree-reassoc-width): New param documented.
509
510         * hooks.h (hook_int_uint_mode_1): New default hook.
511
512         * hooks.c (hook_int_uint_mode_1): Likewise.
513
514         * config/i386/i386.h (ix86_tune_indices): Add
515         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
516
517         (TARGET_REASSOC_INT_TO_PARALLEL): New.
518         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
519
520         * config/i386/i386.c (initial_ix86_tune_features): Add
521         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
522
523         (ix86_reassociation_width): New function.
524
525         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
526
527         * tree-ssa-reassoc.c (get_required_cycles): New function.
528         (get_reassociation_width): Likewise.
529         (swap_ops_for_binary_stmt): Likewise.
530         (rewrite_expr_tree_parallel): Likewise.
531
532         (rewrite_expr_tree): Refactored.  Part of code moved into
533         swap_ops_for_binary_stmt.
534
535         (reassociate_bb): Now checks reassociation width to be used and
536         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
537
538 2011-09-06  Richard Guenther  <rguenther@suse.de>
539
540         PR tree-optimization/47025
541         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
542         uses nothing.
543         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
544         BUILT_IN_FREE.
545         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
546         definitely points to.
547         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
548         BUILT_IN_VA_START doesn't let its va_list argument escape.
549         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
550         not make any previous stores necessary.
551
552 2011-09-06  Martin Jambor  <mjambor@suse.cz>
553
554         * ipa-inline.h (struct inline_summary): Move versionable flag...
555         * cgraph.h (struct cgraph_local_info): ...here
556         * ipa-cp.c (determine_versionability): Use the new versionable flag.
557         (determine_versionability): Likewise.
558         (ipcp_versionable_function_p): Likewise.
559         (ipcp_generate_summary): Likewise.
560         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
561         versionable flag.
562         (compute_inline_parameters): Do not clear the versionable flag.
563         (inline_read_section): Do not stream the versionable flag.
564         (inline_write_summary): Likewise.
565         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
566         (input_overwrite_node): Likewise.
567
568 2011-09-06  Richard Guenther  <rguenther@suse.de>
569
570         PR tree-optimization/48149
571         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
572         (vn_valueize): Move earlier.
573         (valueize_expr): Use vn_valueize.
574         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
575         operands.
576         (simplify_unary_expression): Simplify.
577
578 2011-09-06  Richard Guenther  <rguenther@suse.de>
579
580         PR tree-optimization/48317
581         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
582         trailing array.
583         (sizeof_vn_nary_op): New inline function.
584         (vn_nary_op_lookup_pieces): Adjust.
585         (vn_nary_op_insert_pieces): Likewise.
586         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
587         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
588         any number of operands.
589         (vn_nary_length_from_stmt): New function.
590         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
591         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
592         sized temporary.
593         (vn_nary_op_lookup): Likewise.
594         (vn_nary_op_lookup_stmt): Likewise.
595         (vn_nary_op_insert_into): Likewise.
596         (vn_nary_op_insert_stmt): Likewise.
597         (visit_use): Handle CONSTRUCTOR as nary.
598         * tree-ssa-pre.c (phi_translate_1): Adjust.
599         (create_expression_by_pieces): Likewise.
600         (compute_avail): Likewise.
601
602 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
603
604          * config/arm/arm.c (arm_preferred_simd_mode): Check
605         TARGET_NEON_VECTORIZE_DOUBLE instead of
606         TARGET_NEON_VECTORIZE_QUAD.
607         (arm_autovectorize_vector_sizes): Likewise.
608         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
609         mask of mvectorize-with-neon-double.  Add RejectNegative.
610         (mvectorize-with-neon-double): New.
611
612 2011-09-06  Richard Guenther  <rguenther@suse.de>
613
614         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
615
616 2011-09-06  Tom de Vries  <tom@codesourcery.com>
617
618         * recog.c (asm_labels_ok): New function.
619         (check_asm_operands): Use asm_labels_ok.
620
621 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
622
623         PR target/49606
624         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
625         (PMODE_INSN): New macro.
626         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
627         (mips_got_load, mips_expand_synci_loop): Likewise.
628         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
629         cprestore patterns.
630         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
631         copygp_mips16 patterns.
632         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
633         and use_cprestore patterns.
634         (mips_override_options): Check for incompatible -mabi and -mlong
635         combinations.
636         * config/mips/mips.md (unspec_got<mode>): Rename to...
637         (unspec_got_<mode>): ...this.
638         (copygp_mips16): Use the Pmode iterator.
639         (potential_cprestore, cprestore, use_cprestore): Likewise.
640         (clear_cache, indirect_jump): Use PMODE_INSN.
641         (indirect_jump<mode>): Rename to...
642         (indirect_jump_<mode>): ...this.
643         (tablejump): Use PMODE_INSN.
644         (tablejump<mode>): Rename to...
645         (tablejump_<mode>): ...this.
646         (exception_receiver): Handle restore_gp_si and restore_gp_di.
647         (restore_gp): Use the Pmode iterator.
648         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
649         PMODE_INSN.
650
651 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
652
653         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
654         Fix the type of the BIT_AND_EXPR.
655
656 2011-09-05  David S. Miller  <davem@davemloft.net>
657
658         * config.host: Add driver-sparc.o and sparc/x-sparc on
659         native sparc*-*-linux* builds.
660         * config/sparc/driver-sparc.c: Correct Linux strings.
661         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
662         * config/sparc/linux64.h: Likewise.
663         * doc/invoke.texi: Document that Linux also supports
664         -mcpu=native and -mtune=native on sparc.
665
666         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
667         PROCESSOR_NIAGARA4): New.
668         * config/sparc/sparc.opt: Handle new processor types.
669         * config/sparc/sparc.md: Add to "cpu" attribute.
670         * config/sparc/sparc.h (TARGET_CPU_niagara3,
671         TARGET_CPU_niagara4): New, treat as niagara2.
672         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
673         * config/sparc/sol2.h: Likewise.
674         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
675         * config/sparc/sparc.c (sparc_option_override): Add
676         niagara3 and niagara4 handling.
677         (sparc32_initialize_trampoline): Likewise.
678         (sparc64_initialize_trampoline): Likewise.
679         (sparc_use_sched_lookahead): Likewise.
680         (sparc_issue_rate): Likewise.
681         (sparc_register_move_cost): Likewise.
682         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
683         and niagara4 as appropriate.
684         * doc/invoke.texi: Document new processor types.
685         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
686         and --with-tune options.
687
688         * config/sparc/sol2-64.h: Move ...
689         * config/sparc/default-64.h: ... to here.  Update comment.
690         * config.gcc: Update Solaris sparc to use default-64.h, also
691         prefix this header into the list on sparc64-*-linux.
692         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
693         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
694         to MASK_HARD_QUAD.
695
696 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
697
698         PR target/50289
699         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
700         that contain global register variable.
701
702 2011-09-05  Richard Guenther  <rguenther@suse.de>
703
704         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
705
706 2011-09-05  Richard Guenther  <rguenther@suse.de>
707
708         * stor-layout.c (layout_type): Use size_binop for array size
709         calculations.
710
711 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
712
713         * config/avr/avr.h (progmem_section): Remove Declaration.
714         * config/avr/avr.c (progmem_section): Make static and rename to
715         progmem_swtable_section.
716         (avr_output_addr_vec_elt): No need to switch sections.
717         (avr_asm_init_sections): Use output_section_asm_op as section
718         callback for progmem_swtable_section.
719         (avr_output_progmem_section_asm_op): Remove Function.
720         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
721         (avr_asm_function_rodata_section): New static Function.
722         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
723         alignment 2**1 for jump tables.
724
725 2011-09-04  Jan Hubicka  <jh@suse.cz>
726
727         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
728         parameter is SSA name.
729
730 2011-09-04  Richard Guenther  <rguenther@suse.de>
731
732         Revert
733         2011-08-31  Richard Guenther  <rguenther@suse.de>
734
735         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
736         special-casing.
737
738 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
739
740         PR debug/49901
741         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
742
743 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
744             Ira Rosen  <ira.rosen@linaro.org>
745
746         PR tree-optimization/50208
747         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
748         argument.  Check that def_stmt is inside the loop.
749         (vect_recog_widen_mult_pattern): Update calls to
750         vect_handle_widen_mult_by_cons.
751         (vect_operation_fits_smaller_type): Check that def_stmt is
752         inside the loop.
753
754 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
755
756         * tree-vectorizer.c (vect_print_dump_info): Print line
757         number when dumping to a file.
758         (vectorize_loops): Add new messages to dump file.
759
760 2011-09-03  Martin Jambor  <mjambor@suse.cz>
761
762         * ipa-prop.h (ipa_jump_func_t): New typedef.
763         (struct ipa_edge_args): Removed field argument_count, field
764         jump_functions turned into a vector.
765         (ipa_set_cs_argument_count): Removed.
766         (ipa_get_cs_argument_count): Updated to work on vectors.
767         (ipa_get_ith_jump_func): Likewise.
768         * ipa-prop.c (ipa_count_arguments): Removed.
769         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
770         jump functions.  Update caller.
771         (compute_pass_through_member_ptrs): Likewise.
772         (compute_cst_member_ptr_arguments): Likewise.
773         (ipa_compute_jump_functions_for_edge): Get number of arguments from
774         the statement, allocate vector.
775         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
776         (duplicate_ipa_jump_func_array): Removed.
777         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
778         (ipa_read_node_info): Allocate vector.
779
780 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
781
782         PR middle-end/50232
783         * config/pa/pa.md (return): Define "return" insn pattern.
784         (epilogue): Use it when no epilogue is needed.
785         * config/pa/pa.c (pa_can_use_return_insn): New function.
786         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
787
788 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
789
790         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
791         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
792         Force at least BITS_PER_UNIT alignment on the new variable.
793
794 2011-09-02  Gary Funck <gary@intrepid.com>
795
796         * opts.c (print_specific_help): Fix off-by-one compare in
797         assertion check.
798         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
799         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
800         Increase by +5 to allow for more languages.
801         * optc-gen.awk: Generate #if that ensures that the number of
802         languages is within the implementation-defined limit.
803
804 2011-09-02  Michael Matz  <matz@suse.de>
805
806         PR middle-end/50260
807         * ipa-split.c (split_function): Call add_referenced_var.
808
809         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
810         (cond_if_else_store_replacement_1): Ditto.
811         * tree-ssa-pre.c (get_representative_for): Ditto.
812         (create_expression_by_pieces): Ditto.
813         (insert_into_preds_of_block): Ditto.
814         * tree-sra.c (create_access_replacement): Ditto.
815         (get_replaced_param_substitute): Ditto.
816
817 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
818
819         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
820         automata_options.
821         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
822         (l1w, s1w, l2w, s2w): Define in the main automaton.
823         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
824         units.
825         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
826         (c6x_unit_names): Add the new units.
827         (c6x_unit_codes): New static array.
828         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
829         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
830         UNIT_QID_SIDE_OFFSET): New macros.
831         (RESERVATION_S2): Adjust value.
832         (c6x_option_override): Compute c6x_unit_codes.
833         (assign_reservations): Take the unit_mask of the last instruction
834         into account.  Detect floating point reservations by looking for
835         the new units.  Don't assign reservations if the field is already
836         nonzero.
837         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
838         (init_sched_state): Initialize it.
839         (c6x_clear_sched_context): Free it.
840         (insn_set_clock): Clear reservation.
841         (prev_cycle_state): New static variable.
842         (c6x_init_sched_context): Save it.
843         (c6x_sched_init): Allocate space for it and clear it.
844         (c6x_sched_dfa_pre_cycle_insn): New static function.
845         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
846         (c6x_variable_issue): Only record units in the unit_mask that
847         were not set at the start of the cycle.
848         (c6x_variable_issue): Compute and store the unit_mask from the
849         current state.
850         (reorg_split_calls): Ensure the new information remains correct.
851         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
852         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
853         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
854         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
855         Add special reservations.
856         * config/c6x/c6x-sched.md: Regenerate.
857
858 2011-09-02  Martin Jambor  <mjambor@suse.cz>
859
860         * ipa-prop.h (ipa_node_params): Removed fields
861         called_with_var_arguments and node_versionable.
862         (ipa_set_called_with_variable_arg): Removed.
863         (ipa_is_called_with_var_arguments): Likewise.
864         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
865         (determine_versionability): Do not check for type attributes and va
866         builtins.  Record versionability into inline summary.
867         (initialize_node_lattices): Do not check
868         ipa_is_called_with_var_arguments.
869         (propagate_constants_accross_call): Likewise, ignore arguments we do
870         not have PARM_DECLs for, set variable flag for parameters that were
871         not passed a value.
872         (create_specialized_node): Dump info that we cannot change signature.
873         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
874         number of arguments.
875         (ipa_make_edge_direct_to_target): Likewise.
876         (ipa_update_after_lto_read): Likewise.
877         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
878         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
879         they were remapped.
880
881 2011-09-02  Richard Guenther  <rguenther@suse.de>
882
883         PR tree-optimization/27460
884         PR middle-end/29269
885         * doc/md.texi (vcond): Document.
886         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
887         optab with two modes.
888         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
889         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
890         (vcond_optab): Adjust.
891         (vcondu_optab): Likewise.
892         (expand_vec_cond_expr_p): Adjust prototype.
893         * optabs.c (get_vcond_icode): Adjust.
894         (expand_vec_cond_expr_p): Likewise.
895         (expand_vec_cond_expr): Likewise.
896         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
897         vector type.
898         (vectorizable_condition): Allow differing types for comparison
899         and result.
900         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
901         for the comparison.
902         * config/i386/sse.md (vcond<mode>): Split to
903         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
904         vcond<V_128:mode><VI124_128:mode> and
905         vcondu<V_128:mode><VI124_128:mode>.
906         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
907         (vconduv2di): Likewise.
908         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
909         (vcondu<mode>): Likewise.
910         * config/ia64/vect.md (vcond<mode>): Likewise.
911         (vcondu<mode>): Likewise.
912         (vcondv2sf): Likewise.
913         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
914         * config/rs6000/paired.md (vcondv2sf): Likewise.
915         * config/rs6000/vector.md (vcond<mode>): Likewise.
916         (vcondu<mode>): Likewise.
917         * config/spu/spu.md (vcond<mode>): Likewise.
918         (vcondu<mode>): Likewise.
919
920 2011-09-02  Richard Guenther  <rguenther@suse.de>
921
922         * pretty-print.h (pp_unsigned_wide_integer): New.
923         * tree-pretty-print.c (dump_generic_node): Print unsigned
924         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
925
926 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
927
928         PR target/49987
929         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
930         valid CONST_VECTOR operands.
931         (rs6000_expand_vector_init): Likewise.
932
933 2011-09-02  Martin Jambor  <mjambor@suse.cz>
934
935         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
936         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
937         BINFO_VTABLE.  Parameter delta removed, all callers updated.
938         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
939         BINFO_VTABLE.
940         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
941         all calls.
942         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
943         handling of thunk_delta.
944         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
945         (devirtualization_time_bonus): Do not handle thunk deltas.
946         (ipcp_discover_new_direct_edges): Likewise.
947         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
948         (try_make_edge_direct_simple_call): Likewise.
949         (try_make_edge_direct_virtual_call): Likewise.
950         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
951         parameter set as unused.
952         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
953         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
954         parameter set as unused.
955         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
956         (input_edge_opt_summary): Likewise.
957         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
958         BINFO_VIRTUALS at all.
959         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
960
961 2011-09-02  Richard Guenther  <rguenther@suse.de>
962
963         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
964         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
965
966 2011-08-31  Richard Guenther  <rguenther@suse.de>
967
968         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
969         handling here, from ...
970         (expand_expr_real_1): ... here.
971         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
972         and VEC_COND_EXPR.
973         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
974         a GIMPLE_TERNARY_RHS.
975         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
976         and VEC_COND_EXPR here ...
977         (verify_gimple_assign_single): ... not here.
978         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
979         * tree-object-size.c (cond_expr_object_size): Adjust.
980         (collect_object_sizes_for): Likewise.
981         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
982         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
983         (ssa_forward_propagate_and_combine): Adjust.
984         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
985         as ternary.
986         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
987         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
988         * tree-vect-stmt.c (vectorizable_condition): Likewise.
989         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
990         (extract_range_from_assignment): Likewise.
991
992 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
993
994         * config/i386/i386.md: Use (match_test ...) for attribute tests.
995         * config/i386/mmx.md: Likewise.
996         * config/i386/sse.md: Likewise.
997         * config/i386/predicates.md (call_insn_operand): Use
998         (not (match_test "...")) instead of (match_test "!...")
999         * config/i386/constraints.md (w): Likewise.
1000
1001 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
1002
1003         * doc/md.texi: Describe the use of match_tests in attribute tests.
1004         * rtl.def (MATCH_TEST): Update commentary.
1005         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
1006         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
1007
1008 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
1009
1010         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
1011         (attr_string): Use copy_md_ptr_loc.
1012
1013 2011-08-31  Martin Jambor  <mjambor@suse.cz>
1014
1015         PR middle-end/49886
1016         * ipa-inline-analysis.c (compute_inline_parameters): Set
1017         can_change_signature of noes with typde attributes.
1018         * ipa-split.c (split_function): Do not skip any arguments if
1019         can_change_signature is set.
1020
1021 2011-08-31  Martin Jambor  <mjambor@suse.cz>
1022
1023         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
1024         check removed.
1025
1026 2011-08-31  Richard Guenther  <rguenther@suse.de>
1027
1028         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1029         special-casing.
1030
1031 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
1032
1033         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
1034
1035 2011-08-31  Tom de Vries  <tom@codesourcery.com>
1036
1037         PR middle-end/43513
1038         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
1039         * tree-ssa-ccp.c (params.h): Include.
1040         (fold_builtin_alloca_for_var): New function.
1041         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
1042
1043 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
1044
1045         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1046         Handle FMA option.
1047
1048 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
1049
1050         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
1051         b3 and b4 unsigned.
1052
1053 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
1054
1055         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
1056         when code is SET.
1057
1058 2011-08-30  Richard Guenther  <rguenther@suse.de>
1059
1060         PR middle-end/48571
1061         * gimple.h (maybe_fold_offset_to_address): Remove.
1062         (maybe_fold_offset_to_reference): Likewise.
1063         (maybe_fold_stmt_addition): Likewise.
1064         (may_propagate_address_into_dereference): Likewise.
1065         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1066         array references.
1067         * gimple-fold.c (canonicalize_constructor_val): Likewise.
1068         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1069         addresses instead.
1070         (may_propagate_address_into_dereference): Remove.
1071         (maybe_fold_offset_to_array_ref): Likewise.
1072         (maybe_fold_offset_to_reference): Likewise.
1073         (maybe_fold_offset_to_address): Likewise.
1074         (maybe_fold_stmt_addition): Likewise.
1075         (fold_gimple_assign): Do not reconstruct array references but
1076         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1077         MEM_REF addresses.
1078         (gimple_fold_stmt_to_constant_1): Likewise.
1079         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1080         * gimplify.c (gimplify_conversion): Likewise.
1081         (gimplify_expr): Likewise.
1082
1083 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
1084
1085         * config/i386/fmaintrin.h: New.
1086         * config.gcc: Add fmaintrin.h.
1087         * config/i386/i386.c
1088         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1089         <IX86_BUILTIN_VFMADDSD3>: Likewise.
1090         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1091         (*fmai_fmadd_<mode>): Likewise.
1092         (*fmai_fmsub_<mode>): Likewise.
1093         (*fmai_fnmadd_<mode>): Likewise.
1094         (*fmai_fnmsub_<mode>): Likewise.
1095         * config/i386/immintrin.h: Add fmaintrin.h.
1096
1097 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
1098
1099         * genautomata.c (NO_COMB_OPTION): New macro.
1100         (no_comb_flag): New static variable.
1101         (gen_automata_option): Handle NO_COMB_OPTION.
1102         (comb_vect_p): False if no_comb_flag.
1103         (add_vect): Move computation of min/max values.  Return early if
1104         no_comb_flag.
1105         * doc/md.texi (automata_option): Document no-comb-vect.
1106
1107         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1108         "__x86.get_pc_thunk".
1109
1110         * bb-reorder.c (insert_section_boundary_note): Only do it if
1111         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1112
1113 2011-08-30  Christian Bruel  <christian.bruel@st.com>
1114
1115         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1116         flag_profile_use.
1117
1118 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1119
1120         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1121         to off.  Document switch.
1122         * doc/invoke.texi (-msave-toc-indirect): Ditto.
1123
1124 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1125
1126         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1127         conditionals and comments inside macro arguments.
1128
1129 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1130             Richard Guenther  <rguenther@suse.de>
1131
1132         * tree.h (constant_boolean_node): Adjust prototype.
1133         * fold-const.c (fold_convert_loc): Move aggregate conversion
1134         leeway down.
1135         (constant_boolean_node): Make value parameter boolean, add
1136         vector type handling.
1137         (fold_unary_loc): Use constant_boolean_node.
1138         (fold_binary_loc): Preserve types properly when folding
1139         COMPLEX_EXPR <__real x, __imag x>.
1140         * gimplify.c (gimplify_expr): Handle vector comparison.
1141         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
1142         comparison.
1143         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
1144         comparisons.
1145
1146 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1147
1148         PR middle-end/48722
1149         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
1150         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
1151         (verify_rtl_sharing): Likewise and verify_rtx_sharing
1152         in there too.
1153         (unshare_all_rtl_in_chain): For CALL_INSNs
1154         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
1155
1156 2011-08-29  Richard Guenther  <rguenther@suse.de>
1157
1158         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
1159         on the built ADDR_EXPR.
1160
1161 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1162
1163         PR debug/50215
1164         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
1165         before adding ENTRY_VALUE to val->locs.
1166
1167 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
1168
1169         PR bootstrap/50218
1170         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
1171         comp.
1172
1173 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
1174
1175         * doc/rtl.texi (simple_return): Document.
1176         (parallel, PATTERN): Here too.
1177         * doc/md.texi (return): Mention it's allowed to expand to simple_return
1178         in some cases.
1179         (simple_return): Document standard pattern.
1180         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
1181         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
1182         * reorg.c (function_return_label, function_simple_return_label):
1183         New static variables, replacing...
1184         (end_of_function_label): ... this.
1185         (simplejump_or_return_p): New static function.
1186         (optimize_skip, steal_delay_list_from_fallthrough,
1187         fill_slots_from_thread): Use it.
1188         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
1189         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
1190         (find_end_label): Take a new arg which is one of the two return
1191         rtxs.  Depending on which, set either function_return_label or
1192         function_simple_return_label.  All callers changed.
1193         (make_return_insns): Make both kinds.
1194         (dbr_schedule): Adjust for two kinds of end labels.
1195         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
1196         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
1197         (gen_expand, gen_split): Use ANY_RETURN_P.
1198         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
1199         * rtl.def (SIMPLE_RETURN): New code.
1200         * ifcvt.c (find_if_case_1): Be more careful about
1201         redirecting jumps to the EXIT_BLOCK.
1202         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
1203         returnjump_p_1): Handle SIMPLE_RETURNs.
1204         * print-rtl.c (print_rtx): Likewise.
1205         * rtl.c (copy_rtx): Likewise.
1206         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
1207         * combine.c (simplify_set): Likewise.
1208         * resource.c (find_dead_or_set_registers, mark_set_resources):
1209         Likewise.
1210         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
1211         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
1212         (init_emit_regs): Initialize simple_return_rtx.
1213         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
1214         force_nonfallthru_and_redirect.
1215         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
1216         (GR_SIMPLE_RETURN): New enum value.
1217         (simple_return_rtx): New macro.
1218         * basic-block.h (force_nonfallthru_and_redirect): Adjust
1219         declaration.
1220         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
1221         argument.  All callers changed.  Be careful about what kinds of
1222         returnjumps to generate.
1223         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
1224         ix86_pad_short_function): Likewise.
1225         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
1226         of return.
1227         * config/mips/mips.md (any_return): New code_iterator.
1228         (optab): Add cases for return and simple_return.
1229         (return): Expand to a simple_return.
1230         (simple_return): New pattern.
1231         (*<optab>, *<optab>_internal for any_return): New patterns.
1232         (return_internal): Remove.
1233         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
1234         a simple_return_internal.
1235
1236 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1237
1238         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
1239         (vec_extract_lo_<mode>): Prevent both operands in memory.
1240         (vec_extract_lo_v16hi): Ditto.
1241         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1242
1243 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1244
1245         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
1246         (*sse2_mulv4si3): Ditto.
1247         (mulv2di3): Ditto.
1248         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1249         notes to REG_EQUAL.
1250
1251 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1252
1253         PR target/50202
1254         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1255         when all outputs are unused.
1256         (sse4_2_pcmpistr): Ditto.
1257
1258 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
1259
1260         * config/i386/i386.md (round<mode>2): New expander.
1261         * config/i386/i386.c (enum ix86_builtins): Add
1262         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
1263         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
1264         descriptions.
1265         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
1266         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
1267
1268 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
1269
1270         PR middle-end/50083
1271         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
1272         only when TARGET_C99_FUNCTIONS.
1273         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
1274         <BUILT_IN_RINT{,F,L}>: Ditto.
1275
1276 2011-08-26  Michael Matz  <matz@suse.de>
1277             Jakub Jelinek  <jakub@redhat.com>
1278
1279         PR lto/50165
1280         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
1281         don't call strlen twice, use memcpy.
1282
1283 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
1284
1285         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
1286         * config/i386/bmiintrin.h: Likewise.
1287         * config/i386/lzcntintrin.h: Likewise.
1288
1289         * config/i386/immintrin.h: Include <lzcntintrin.h>,
1290         <bmiintrin.h> and <bmi2intrin.h>.
1291
1292 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1293
1294         PR target/50166
1295         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
1296         * configure: Regenerate.
1297
1298 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1299
1300         PR c/50179
1301         * c-typeck.c (c_process_expr_stmt): Skip over nops and
1302         call mark_exp_read even if exprv is ADDR_EXPR.
1303
1304 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
1305
1306         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
1307         to df_set_dead_notes_for_mw.
1308
1309 2011-08-26  Richard Guenther  <rguenther@suse.de>
1310
1311         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1312
1313 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
1314             Tom de Vries  <tom@codesourcery.com>
1315
1316         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
1317         (struct ivopts_data): Add loop_single_exit_p field.
1318         (niter_for_exit): Change parameter desc_p into return value.  Return
1319         desc if desc->may_be_zero.  Free desc if unused.
1320         (niter_for_single_dom_exit): Change return type.
1321         (find_induction_variables): Handle changed return type of
1322         niter_for_single_dom_exit.  Dump may_be_zero.
1323         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
1324         (set_use_iv_cost): Add and handle comp parameter.
1325         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
1326         comp argument to set_use_iv_cost.
1327         (strip_wrap_conserving_type_conversions, expr_equal_p)
1328         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
1329         (may_eliminate_iv): Add comp parameter.  Handle new return type of
1330         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
1331         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
1332         and may_eliminate_iv.
1333         (rewrite_use_compare): Move call to iv_elimination_compare to ...
1334         (may_eliminate_iv): Here.
1335         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
1336
1337 2011-08-26  Tom de Vries  <tom@codesourcery.com>
1338
1339         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
1340         accessing TREE_TYPE.
1341
1342 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
1343
1344         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
1345         (*ior_scc_scc_cmp): Likewise
1346         (*and_scc_scc): Likewise.
1347         (*and_scc_scc_cmp): Likewise.
1348         (*and_scc_scc_nodom): Likewise.
1349         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
1350
1351 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1352
1353         * rtlanal.c (nonzero_bits1): Handle CLRSB.
1354
1355 2011-08-26  Richard Guenther  <rguenther@suse.de>
1356
1357         * expr.c (string_constant): Handle &MEM_REF.
1358
1359 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
1360
1361         * config/arm/arm.c (struct four_ints): New type.
1362         (count_insns_for_constant): Delete function.
1363         (find_best_start): Delete function.
1364         (optimal_immediate_sequence): New function.
1365         (optimal_immediate_sequence_1): New function.
1366         (arm_gen_constant): Move constant splitting code to
1367         optimal_immediate_sequence.
1368         Rewrite constant negation/invertion code.
1369
1370 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
1371
1372         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1373         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1374         Remove prototype. Remove static function type.
1375         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1376         Add arch attribute.
1377         * config/arm/constraints.md (Pj, PJ): New constraints.
1378
1379 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1380
1381         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1382         ("cortex_a9_multiply_long"): New and use above.  Handle all
1383         long multiply cases.
1384         ("cortex_a9_multiply"): Handle smmul and smmulr.
1385         ("cortex_a9_mac"): Handle smmla.
1386
1387 2011-08-25  Richard Henderson  <rth@redhat.com>
1388
1389         PR 50132
1390         PR 49864
1391         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1392         non-constant stack adjutment.
1393         * expr.c (find_args_size_adjust): Break out from ...
1394         (fixup_args_size_notes): ... here.
1395         * rtl.h (find_args_size_adjust): Declare.
1396
1397 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
1398
1399         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1400         sse4 and sse4_noavx.
1401         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1402         (*pushdf_rex64): Change Y2 register constraint to x.
1403         (*movdf_internal_rex64): Ditto.
1404         (*zero_extendsidi2_rex64): Ditto.
1405         (*movdi_internal): Change Y2 register constraint to x
1406         and update "isa" attribute.
1407         (*pushdf): Ditto.
1408         (*movdf internal): Ditto.
1409         (zero_extendsidi2_1): Ditto.
1410         (*truncdfdf_mixed): Ditto.
1411         (*truncxfdf2_mixed): Ditto.
1412         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1413         register constraint to x.
1414         (*movv2sf_internal_rex64): Ditto.
1415         (*mov<mode>_internal): Change Y2 register constraint to x
1416         and add "isa" attribute.
1417         (*movv2sf_internal): Ditto.
1418         (*vec_extractv2si_1): Ditto.
1419         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1420         constraints to x and update "isa" attribute.
1421         (*vec_interleave_highv2df): Change Y3 registerconstraint
1422         to x and update "isa" attribute.
1423         (*vec_interleave_lowv2df): Ditto.
1424         (*vec_concatv2df): Change Y2 register constraint to x and
1425         update "isa" attribute.
1426         (sse2_loadld): Ditto.
1427         (*vec_extractv2di_1): Ditto.
1428         (*vec_dupv4si): Ditto.
1429         (*vec_dupv2di): Ditto.
1430         (*vec_concatv4si): Ditto.
1431         (vec_concatv2di): Ditto.
1432         * config/i386/constraints.md (Y2): Remove.
1433         (Y3): Ditto.
1434         (Y4): Ditto.
1435
1436 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1437
1438         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1439         dump_def_use_chain): Don't declare.
1440         (mark_conflict, create_new_chain): Move before users.
1441         (regrename_optimize): Move to near end of file.
1442
1443 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1444
1445         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1446         (secondary_input_reload_class): Remove Prototype.
1447         * config/avr/avr.c (byte_immediate_operand): Remove Function.
1448         * config/avr/avr.md (setmemhi): Use u8_operand.
1449         (strlenhi): Use const0_rtx for comparison.
1450         * config/avr/avr.h (avr_reg_order): Remove Declaration.
1451
1452 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1453
1454         * config/avr/avr.c (reg_class_tab): Make local to
1455         avr_regno_reg_class.  Return smallest register class available.
1456
1457 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1458
1459         * config/avr/avr.c (STR_PREFIX_P): New Define.
1460         (avr_asm_declare_function_name): Use it.
1461         (avr_asm_named_section): Use it.
1462         (avr_section_type_flags): Use it.
1463
1464 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1465
1466         * doc/md.texi (automata_option): Document collapse-ndfa.
1467         * genautomata.c (COLLAPSE_OPTION): New macro.
1468         (collapse_flag): New static variable.
1469         (struct description): New member normal_decls_num.
1470         (struct automaton): New members advance_ainsn and collapse_ainsn.
1471         (gen_automata_option): Check for COLLAPSE_OPTION.
1472         (collapse_ndfa_insn_decl): New static variable.
1473         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1474         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1475         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1476         necessary.  Use normal_decls_num rather than decls_num, remove
1477         test for special decls.
1478         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1479         (make_automaton); Likewise.  Use the new advance_cycle_insn member
1480         of struct automaton.
1481         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1482         is set.
1483         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1484         transition.  Create the necessary transitions for it.
1485         (create_ainsns): Return void.  Take an automaton_t argument, and
1486         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
1487         callers changed.
1488         (COLLAPSE_NDFA_VALUE_NAME): New macro.
1489         (output_tables): Output code to define it.
1490         (output_internal_insn_code_evaluation): Output code to accept
1491         const0_rtx as collapse-ndfa transition.
1492         (output_default_latencies, output_print_reservation_func,
1493         output_print_description): Reorganize loops to use normal_decls_num
1494         as loop bound; remove special case for advance_cycle_insn_decl.
1495         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1496         (check_automata_insn_issues): Check for collapse_ainsn.
1497         (expand_automate): Allocate sufficient space.  Initialize
1498         normal_decls_num.
1499
1500 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1501
1502         * config/avr/avr.md: Fix indentation from r177991.
1503
1504 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1505
1506         * regrename.c (struct du_head): Remove member terminated.
1507         (create_new_chain): Don't initialize it.
1508         (scan_rtx_reg): Don't set or test it, test the open_chains_set
1509         bitmap instead.
1510         (tick, this_tick): New global variables, moved out of
1511         regrename_optimize.
1512         (current_id, open_chains, closed_chains, open_chains_set,
1513         live_in_chains, live_hard_regs): Reorder declarations.
1514         (dump_def_use_chain): Move function earlier in the file.
1515         (rename_chains): New static function, broken out of
1516         regrename_optimize.
1517         (regrename_optimize): Use it.  Remove #if 0'ed code.
1518
1519 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1520
1521         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1522
1523 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1524
1525         PR target/50172
1526         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1527
1528 2011-08-24  Richard Guenther  <rguenther@suse.de>
1529
1530         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1531         ref in the basic-block case.  Move stripping array-refs
1532         to the place we create an access-function for it.  Remove
1533         bogus stripping down a MEM_REF to its base.
1534
1535 2011-08-24  Richard Guenther  <rguenther@suse.de>
1536
1537         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1538         with -fno-strict-overflow.
1539
1540 2011-08-24  Richard Guenther  <rguenther@suse.de>
1541
1542         * tree-vectorizer.c (vect_print_dump_info): Avoid the
1543         file and location clutter when dumping to dump files.
1544
1545 2011-08-24  Simon Baldwin  <simonb@google.com>
1546
1547         * gengtype-state.c (write_state): Remove timestamped header line.
1548
1549 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1550
1551         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1552         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1553         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1554         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1555         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1556         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1557         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1558         rules.
1559         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1560
1561 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1562
1563         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1564
1565 2011-08-24  Richard Guenther  <rguenther@suse.de>
1566
1567         PR tree-optimization/50067
1568         * tree-data-ref.c (dr_analyze_indices): Do not add an access
1569         function for a MEM_REF base that has no evolution in the loop
1570         nest or that is not analyzable.
1571
1572 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
1573
1574         * ira.c (ira_init_register_move_cost): Check small subclasses
1575         through ira_reg_class_max_nregs and ira_available_class_regs.
1576
1577 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1578
1579         * config/i386/constraints.md (Yp): New register constraint.
1580         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1581         Yp register constraint.
1582         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1583         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1584         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1585
1586 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1587
1588         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1589
1590 2011-08-23  Mark Heffernan  <meheff@google.com>
1591
1592         PR middle-end/38509
1593         * common.opt (Wfree-nonheap-object): New option.
1594         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
1595         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
1596         to warning.
1597         (expand_builtin): Make warning conditional.
1598
1599 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1600
1601         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
1602         (length_immediate): Handle imulx, ishiftx and rotatex.
1603         (imm_disp): Ditto.
1604         (isa): Add bmi2.
1605         (enabled): Handle bmi2.
1606         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
1607         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
1608         (*bmi2_umulditi3_1): New insn pattern.
1609         (*bmi2_umulsidi3_1): Ditto.
1610         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
1611         (*bmi2_ashl<mode>3_1): New insn pattern.
1612         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
1613         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
1614         (*bmi2_ashlsi3_1_zext): New insn pattern.
1615         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
1616         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
1617         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
1618         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
1619         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
1620         flags dependency.
1621         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
1622         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
1623         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
1624         flags dependency.
1625         (*bmi2_rorx<mode>3_1): New insn pattern.
1626         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
1627         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
1628         (*rotatert<mode>3_1 splitter): Ditto.
1629         (*bmi2_rorxsi3_1_zext): New insn pattern.
1630         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
1631         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
1632         (*rotatertsi3_1_zext splitter): Ditto.
1633
1634 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1635
1636         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
1637         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
1638         (ix86_handle_option): Handle OPT_mbmi2 case.
1639         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
1640         (x86_64-*-*): Likewise.
1641         * config/i386/bmi2intrin.h: New file.
1642         * config/i386/cpuid.h (bit_BMI2): New.
1643         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1644         BMI2 feature.
1645         * config/i386/i386-c.c (ix86_target_macros_internal):
1646         Conditionally define __BMI2__.
1647         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
1648         Handle BMI2 option.
1649         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
1650         (print_reg): New code.
1651         (ix86_print_operand): Likewise.
1652         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1653         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1654         IX86_BUILTIN_PEXT64.
1655         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1656         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1657         IX86_BUILTIN_PEXT64.
1658         * config/i386/i386.h (TARGET_BMI2): New.
1659         * config/i386/i386.md (UNSPEC_PDEP): New.
1660         (UNSPEC_PEXT): Likewise.
1661         (*bmi2_bzhi_<mode>3): Likewise.
1662         (*bmi2_pdep_<mode>3): Likewise.
1663         (*bmi2_pext_<mode>3): Likewise.
1664         * config/i386/i386.opt (mbmi2): New.
1665         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1666         is defined.
1667         * doc/extend.texi: Document BMI2 built-in functions.
1668         * doc/invoke.texi: Document -mbmi2.
1669
1670 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
1671
1672         PR middle-end/50161
1673         * simplify-rtx.c (simplify_const_unary_operation): If
1674         op is CONST_INT, don't look at op_mode, but use instead mode.
1675         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1676         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1677         operation and TRUNCATE/ZERO_EXTEND if needed.
1678         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1679         Document that operand mode must be same as operation mode,
1680         or VOIDmode.
1681         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1682         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1683         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1684         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1685         use the mode of operand for the operation and add truncate
1686         or zero_extend around if needed.
1687         * config/c6x/c6x.md (ctzdi2): Likewise.
1688         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1689
1690 2011-08-12  Michael Matz  <matz@suse.de>
1691
1692         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1693         (gimple_expand_cfg): Merge alignment info for coalesced pointer
1694         SSA names.
1695
1696 2011-08-23  Richard Guenther  <rguenther@suse.de>
1697
1698         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1699         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1700         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1701         from ...
1702         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1703         (mem_refs_may_alias_p): Adjust.
1704         * tree-data-ref.h (dr_may_alias_p): Adjust.
1705         * tree-data-ref.c: Include tree-affine.h.
1706         (dr_analyze_indices): Do nothing for the non-loop case.
1707         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
1708         more cases in the non-loop case.
1709         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1710         calls to dr_may_alias_p.
1711         (write_alias_graph_to_ascii_ecc): Likewise.
1712         (write_alias_graph_to_ascii_dot): Likewise.
1713         (build_alias_set_optimal_p): Likewise.
1714
1715 2011-08-23  Richard Guenther  <rguenther@suse.de>
1716
1717         PR tree-optimization/50162
1718         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1719
1720 2011-08-23  Richard Guenther  <rguenther@suse.de>
1721
1722         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1723         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1724         (create_data_ref): Also dump access functions for the created data-ref.
1725
1726 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
1727             Kirill Yukhin  <kirill.yukhin@intel.com>
1728
1729         PR target/50155
1730         * config/i386/sse.md (VI_AVX2): New.
1731         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1732         (*<plusminus_insn><mode>3): Ditto.
1733         (<sse2_avx2>_andnot<mode>3): Ditto.
1734         (*andnot<mode>3): Fix order of cond operands.
1735         Add asserts for correct TARGET_xxx.
1736         (*<any_logic:code><mode>3): Ditto.
1737
1738 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
1739
1740         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1741         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1742         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1743         regclass argument type to reg_class_t. Change 'max' and 'v' vars
1744         and return types to unsigned char. Use reg_class_contents instead
1745         of class_contents.
1746         (TARGET_CLASS_MAX_NREGS): Define.
1747
1748 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
1749
1750         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1751         to make computed_jump_p return true.
1752
1753 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1754
1755         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1756         (PICFLAG_FOR_TARGET): Substitute.
1757         * aclocal.m4: Regenerate.
1758         * configure: Regenerate.
1759
1760 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
1761
1762         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1763         after reading in the pch.
1764
1765 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1766
1767         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1768         * configure: Regenerated.
1769
1770 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
1771
1772         PR tree-optimization/50133
1773         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1774         from stmt instead of some statement around gsi.
1775
1776         PR middle-end/50141
1777         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1778         innerdecl is a VAR_DECL.
1779
1780 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
1781
1782         * config/i386/avx2intrin.h: New file.
1783         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1784         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1785         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1786         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1787         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1788         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1789         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1790         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1791         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1792         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1793         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1794         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1795         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1796         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1797         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1798         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1799         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1800         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1801         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1802         VOID_FTYPE_PV8SI_V8SI_V8SI,
1803         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1804         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1805         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1806         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1807         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1808         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1809         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1810         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1811         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1812         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1813         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1814         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1815         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1816         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1817         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1818         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1819         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1820         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1821         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1822         V4DI_FTYPE_V4DI_INT_CONVERT,
1823         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1824         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1825         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1826         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1827         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1828         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1829         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1830         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1831         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1832         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1833         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1834         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1835         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1836         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1837         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1838         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1839         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1840         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1841         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1842         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1843         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1844         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1845         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1846         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1847         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1848         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1849         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1850         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1851         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1852         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1853         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1854         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1855         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1856         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1857         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1858         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1859         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1860         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1861         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1862         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1863         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1864         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1865         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1866         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1867         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1868         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1869         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1870         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1871         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1872         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1873         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1874         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1875         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1876         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1877         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1878         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1879         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1880         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1881         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1882         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
1883         IX86_BUILTIN_VBROADCASTSS_PS256,
1884         IX86_BUILTIN_VBROADCASTSD_PD256,
1885         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1886         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1887         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1888         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1889         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1890         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1891         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1892         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1893         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1894         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1895         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1896         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1897         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
1898         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1899         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1900         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1901         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1902         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
1903         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
1904         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
1905         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
1906         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
1907         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
1908         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
1909         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
1910         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
1911         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
1912         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1913         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1914         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1915         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
1916         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
1917         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1918         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1919         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1920         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1921         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1922         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1923         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1924         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1925         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1926         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1927         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1928         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1929         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1930         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1931         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1932         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1933         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1934         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1935         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1936         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1937         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1938         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1939         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1940         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1941         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1942         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1943         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1944         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1945         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1946         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1947         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1948         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1949         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1950         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1951         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1952         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1953         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1954         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1955         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1956         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1957         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1958         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1959         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1960         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1961         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1962         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1963         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1964         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1965         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1966         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1967         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1968         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1969         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1970         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1971         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1972         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1973         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1974         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
1975         IX86_BUILTIN_VBROADCASTSD_PD256,
1976         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1977         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1978         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1979         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1980         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1981         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1982         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1983         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1984         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1985         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1986         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1987         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1988         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1989         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
1990         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
1991         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
1992         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
1993         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
1994         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
1995         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
1996         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
1997         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
1998         IX86_BUILTIN_GATHERDIV8SI.
1999         (ix86_preferred_simd_mode): Support AVX2 modes.
2000         (ix86_expand_args_builtin): Support AVX2 builtins.
2001         (ix86_expand_special_args_builtin): Likewise.
2002         (ix86_expand_builtin): Likewise.
2003         * config/i386/i386.md (UNSPEC_VPERMSI): New.
2004         (UNSPEC_VPERMDF): Likewise.
2005         (UNSPEC_VPERMSF): Likewise.
2006         (UNSPEC_VPERMDI): Likewise.
2007         (UNSPEC_VPERMTI): Likewise.
2008         (UNSPEC_GATHER): Likewise.
2009         (ssemodesuffix): Extend.
2010         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
2011         is defined.
2012         * config/i386/predicates.md (const1248_operand): New.
2013         * config/i386/sse.md (VI1_AVX2): New mode iterator.
2014         (VI2_AVX2): Likewise.
2015         (VI4_AVX2): Likewise.
2016         (VI8_AVX2): Likewise.
2017         (VIMAX_AVX2): Likewise.
2018         (SSESCALARMODE): Likewise.
2019         (VI12_AVX2): Likewise.
2020         (VI24_AVX2): Likewise.
2021         (VI124_AVX2): Likewise.
2022         (VI248_AVX2): Likewise.
2023         (VI48_AVX2): Likewise.
2024         (VI4SD_AVX2): Likewise.
2025         (V48_AVX2): Likewise.
2026         (AVX256MODE2P): Likewise.
2027         (AVXMODE48P_DI): Likewise.
2028         (sse2_avx2): New mode attribute.
2029         (ssse3_avx2): Likewise.
2030         (sse4_1_avx2): Likewise.
2031         (avx_avx2): Likewise.
2032         (ssebytemode): Likewise.
2033         (AVXTOSSEMODE): Likewise.
2034         (AVXMODE48P_DI): Likewise.
2035         (gthrfirstp): Likewise.
2036         (gthrlastp): Likewise.
2037         (lshift): New code_iterator
2038         (lshift): New code attribute.
2039         (lshift): Likewise.
2040         (ssescalarmodesuffix): Update.
2041         (sseunpackmode): Likewise.
2042         (ssepackmode): Likewise.
2043         (avx2_vec_dupv4sf): New insn pattern.
2044         (avx2_vec_dupv8sf): Likewise.
2045         (avx2_interleave_highv4di): Likewise.
2046         (avx2_interleave_lowv4di): Likewise.
2047         (avx2_umulv4siv4di3): Likewise
2048         (*avx2_umulv4siv4di3): Likewise
2049         (avx2_pmaddwd): Likewise.
2050         (*avx2_pmaddwd): Likewise.
2051         (avx2_lshrqv4di3): Likewise.
2052         (avx2_lshlqv4di3): Likewise.
2053         (avx2_lshl<mode>3): Likewise.
2054         (avx2_<umaxmin:code><mode>3): Likewise.
2055         (*avx2_<umaxmin:code><mode>3): Likewise.
2056         (avx2_<smaxmin:code><mode>3): Likewise.
2057         (*avx2_<smaxmin:code><mode>3): Likewise.
2058         (avx2_eq<mode>3): Likewise.
2059         (*avx2_eq<mode>3): Likewise.
2060         (avx2_gt<mode>3): Likewise.
2061         (avx2_interleave_highv32qi): New.
2062         (avx2_interleave_lowv32qi): Likewise.
2063         (avx2_interleave_highv16hi): Likewise.
2064         (avx2_interleave_lowv16hi): Likewise.
2065         (avx2_interleave_highv8si): Likewise.
2066         (avx2_interleave_lowv8si): Likewise.
2067         (avx2_pshufd): Likewise.
2068         (avx2_pshufd_1): Likewise.
2069         (avx2_pshuflwv3): Likewise.
2070         (avx2_pshuflw_1): Likewise.
2071         (avx2_pshufhwv3): Likewise.
2072         (avx2_pshufhw_1): Likewise.
2073         (avx2_uavgv32qi3): Likewise.
2074         (*avx2_uavgv32qi3): Likewise.
2075         (avx2_uavgv16hi3): Likewise.
2076         (*avx2_uavgv16hi3): Likewise.
2077         (avx2_pmovmskb): Likewise.
2078         (avx2_phaddwv16hi3): Likewise.
2079         (avx2_phadddv8si3): Likewise.
2080         (avx2_phaddswv16hi3): Likewise.
2081         (avx2_phsubwv16hi3): Likewise.
2082         (avx2_phsubdv8si3): Likewise.
2083         (avx2_phsubswv16hi3): Likewise.
2084         (avx2_pmaddubsw256): Likewise.
2085         (avx2_umulhrswv16hi3): Likewise.
2086         (*avx2_umulhrswv16hi3): Likewise.
2087         (avx2_packusdw): Likewise.
2088         (avx2_pblendd<mode>): Likewise.
2089         (avx2_<code>v16qiv16hi2): Likewise.
2090         (avx2_<code>v8qiv8si2): Likewise.
2091         (avx2_<code>v8hiv8si2): Likewise.
2092         (avx2_<code>v4qiv4di2): Likewise.
2093         (avx2_<code>v4hiv4di2): Likewise.
2094         (avx2_<code>v4siv4di2): Likewise.
2095         (avx2_pbroadcast<mode>): Likewise.
2096         (avx2_permvarv8si): Likewise.
2097         (avx2_permv4df): Likewise.
2098         (avx2_permvarv8sf): Likewise.
2099         (avx2_permv4di): Likewise.
2100         (avx2_permv2ti): Likewise.
2101         (avx2_vec_dupv4df): Likewise.
2102         (avx2_vbroadcasti128_<mode>): Likewise.
2103         (avx2_vec_set_lo_v4di): Likewise.
2104         (avx2_vec_set_hi_v4di): Likewise.
2105         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2106         (avx2_extracti128): Likewise.
2107         (avx2_inserti128): Likewise.
2108         (avx2_ashrvv8si): Likewise.
2109         (avx2_ashrvv4si): Likewise.
2110         (avx2_<lshift>vv8si): Likewise.
2111         (avx2_<lshift>v<mode>): Likewise.
2112         (avx2_<lshift>vv2di): Likewise.
2113         (avx2_gathersi<mode>): Likewise.
2114         (*avx2_gathersi<mode>): Likewise.
2115         (avx2_gatherdi<mode>): Likewise.
2116         (*avx2_gatherdi<mode>): Likewise.
2117         (avx2_gatherdi<mode>256): Likewise.
2118         (*avx2_gatherdi<mode>256): Likewise.
2119         (<plusminus_insn><mode>3): Use VI mode iterator.
2120         (*<plusminus_insn><mode>3): Use VI mode iterator.
2121         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2122         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2123         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2124         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2125         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
2126         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
2127         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2128         Use VI2_AVX2 mode iterator.
2129         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2130         Use VI2_AVX2 mode iterator.
2131         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
2132         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
2133         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2134         Use VI4_AVX2 mode iterator.
2135         (ashr<mode>3): Use VI24_AVX2 mode iterator.
2136         (lshr<mode>3): Use VI248_AVX2 mode iterator.
2137         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2138         Use VIMAX_AVX2 mode iterator.
2139         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2140         Use VI mode iterator.
2141         (*andnot<mode>3): Update for AVX2.
2142         (*<any_logic:code><mode>3): Likewise.
2143         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
2144         Use VI1_AVX mode iterator.
2145         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
2146         Use VI2_AVX mode iterator.
2147         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
2148         Use VI1_AVX mode iterator.
2149         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
2150         Use VI8_AVX2 mode iterator.
2151         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
2152         Use VI1_AVX2 mode iterator.
2153         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
2154         Use VI124_AVX2 mode iterator.
2155         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
2156         Use SSESCALARMODE mode iterator.
2157         (abs<mode>2): Use VI124_AVX2 mode iterator.
2158         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
2159         Use VI8_AVX2 mode iterator.
2160         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
2161         Use VI1_AVX2 mode iterator.
2162         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
2163         Use VI1_AVX2 mode iterator.
2164         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
2165         Use VI2_AVX2 mode iterator.
2166         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
2167         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
2168         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
2169         avx_maskstore<ssemodesuffix><avxsizesuffix>.
2170         Use V48_AVX2 mode iterator.
2171         * doc/extend.texi: Document AVX2 built-in functions.
2172         * doc/invoke.texi: Document -mavx2.
2173
2174 2011-08-22  Matthias Klose <doko@debian.org>
2175
2176         Revert:
2177         2011-07-11  Arthur Loiret  <aloiret@debian.org>
2178                     Matthias Klose <doko@debian.org>
2179         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2180         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2181         convention.
2182         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2183
2184 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
2185
2186         PR bootstrap/50146
2187         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
2188         to #ifndef HONOR_REG_ALLOC_ORDER block.
2189
2190 2011-08-21  Richard Henderson  <rth@redhat.com>
2191
2192         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
2193         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
2194         * resource.c (next_insn_no_annul): Likewise.
2195         (mark_set_resources): Likewise.
2196         * reorg.c (delete_from_delay_slot): Likewise.
2197         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
2198         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
2199
2200 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
2201
2202         * config/i386/i386.md (any_div): Remove.
2203         (sgnprefix): Update for removal.
2204         (u): Ditto.
2205
2206 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
2207
2208         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
2209         for ira_reg_class_max_nregs.  Increase pressure by 1.
2210         (mark_pseudo_regno_subword_dead): Use allocno class
2211         for ira_reg_class_max_nregs.
2212
2213 2011-08-20  Richard Henderson  <rth@redhat.com>
2214
2215         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2216         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2217         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2218         config/c6x/ltf.c: Adjust include path for soft-fp.
2219
2220 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
2221
2222         PR other/46770
2223         * config.gcc (tm_file): Add initfini-array.h if
2224         .init_arrary/.fini_array are supported.
2225
2226         * crtstuff.c: Don't generate .ctors nor .dtors sections if
2227         USE_INITFINI_ARRAY is defined.
2228
2229         * output.h (default_elf_init_array_asm_out_constructor): New.
2230         (default_elf_fini_array_asm_out_destructor): Likewise.
2231         * varasm.c (elf_init_array_section): Likewise.
2232         (elf_fini_array_section): Likewise.
2233         (get_elf_initfini_array_priority_section): Likewise.
2234         (default_elf_init_array_asm_out_constructor): Likewise.
2235         (default_elf_fini_array_asm_out_destructor): Likewise.
2236
2237         * config/initfini-array.h: New.
2238
2239 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
2240
2241         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
2242         OK for ST_REGS and FP_REGS before taking those classes into account.
2243
2244 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
2245
2246         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
2247         before checking for annulled branches.
2248
2249 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
2250
2251         * config/i386/i386.c (ix86_binary_operator_ok): Use
2252         satisfies_constraint_L.
2253
2254 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
2255             Michael Matz  <matz@suse.de>
2256
2257         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
2258         trunc (a + copysign (nextafter (0.5, 0.0), a)).
2259
2260 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
2261
2262         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2263         * doc/tm.texi: Regenerate.
2264         * targhooks.c (default_preferred_output_reload_class): Don't use
2265         PREFERRED_OUTPUT_RELOAD_CLASS macro.
2266         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
2267
2268 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
2269
2270         PR tree-optimization/48739
2271         * tree-ssa.c: Include cfgloop.h.
2272         (execute_update_addresses_taken): When updating ssa, if in loop closed
2273         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
2274         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
2275
2276 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
2277
2278         PR rtl-optimization/49936
2279         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
2280         for calculation of max register move costs.
2281
2282 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2283
2284         * c-parser.c (c_parser_postfix_expression): Convert operands of
2285         __builtin_complex to their semantic types.
2286
2287 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2288
2289         PR middle-end/49721
2290         * explow.c (convert_memory_address_addr_space): Also permute the
2291         conversion and addition of constant for zero-extend.
2292
2293 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2294
2295         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
2296         * doc/extend.texi (__builtin_complex): Document.
2297
2298 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2299
2300         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
2301         beyond conversions.
2302         (convert_mult_to_widen): Convert constant inputs to the right type.
2303         (convert_plusminus_to_widen): Don't automatically reject inputs that
2304         are not an SSA_NAME.
2305         Convert constant inputs to the right type.
2306
2307 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2308
2309         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
2310         to the correct type.
2311
2312 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2313
2314         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
2315         unsigned inputs of different modes.
2316         (convert_plusminus_to_widen): Likewise.
2317
2318 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2319
2320         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
2321         'type'.
2322         Use 'type' from caller, not inferred from 'rhs'.
2323         Don't reject non-conversion statements. Do return lhs in this case.
2324         (is_widening_mult_p): Add new argument 'type'.
2325         Use 'type' from caller, not inferred from 'stmt'.
2326         Pass type to is_widening_mult_rhs_p.
2327         (convert_mult_to_widen): Pass type to is_widening_mult_p.
2328         (convert_plusminus_to_widen): Likewise.
2329
2330 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2331
2332         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
2333         Ensure the the larger type is the first operand.
2334
2335 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2336
2337         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
2338         unsupported unsigned multiplies to signed.
2339         (convert_plusminus_to_widen): Likewise.
2340
2341 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2342
2343         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
2344         conversion statement separating multiply-and-accumulate.
2345
2346 2011-08-19  Richard Guenther  <rguenther@suse.de>
2347
2348         PR tree-optimization/50067
2349         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
2350         offset only if we accounted for it.
2351
2352 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2353
2354         * config/arm/arm.md (maddhidi4): Remove '*' from name.
2355         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
2356         * optabs.c (find_widening_optab_handler_and_mode): New function.
2357         (expand_widen_pattern_expr): Use find_widening_optab_handler.
2358         (expand_binop_directly): Likewise.
2359         (expand_binop): Likewise.
2360         * optabs.h (find_widening_optab_handler): New macro define.
2361         (find_widening_optab_handler_and_mode): New prototype.
2362         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
2363         type precision rules.
2364         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
2365         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
2366         (is_widening_mult_rhs_p): Allow widening by more than one mode.
2367         Explicitly disallow mis-matched input types.
2368         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
2369         input types to fit the new handler.
2370         (convert_plusminus_to_widen): Likewise.
2371
2372 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2373
2374         * expr.c (expand_expr_real_2): Use widening_optab_handler.
2375         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2376         (gen_insn): $N now means $a must be wider than $b, not consecutive.
2377         * optabs.c (widened_mode): New function.
2378         (expand_widen_pattern_expr): Use widening_optab_handler.
2379         (expand_binop_directly): Likewise.
2380         (expand_binop): Likewise.
2381         * optabs.h (widening_optab_handlers): New struct.
2382         (optab_d): New member, 'widening'.
2383         (widening_optab_handler): New function.
2384         (set_widening_optab_handler): New function.
2385         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2386         widening_optab_handler.
2387         (convert_plusminus_to_widen): Likewise.
2388
2389 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2390
2391         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2392         pedantic.
2393         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2394         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2395
2396 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2397
2398         * opth-gen.awk: Do not declare target save/restore structures and
2399         functions if IN_RTS defined.
2400
2401 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2402
2403         PR target/49437
2404         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2405         when stack was realigned in interrupt handler prologue.
2406
2407 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
2408
2409         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2410         (quals_from_declspecs): Assert _Noreturn not present.
2411         (grokdeclarator): Handle _Noreturn.
2412         (build_null_declspecs): Initialize noreturn_p.
2413         (declspecs_add_scspec): Handle RID_NORETURN.
2414         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2415         (c_parser_attributes): Handle RID_NORETURN.
2416         * c-tree.h (struct c_declspecs): Add noreturn_p.
2417         * ginclude/stdnoreturn.h: New.
2418         * Makefile.in (USER_H): Add stdnoreturn.h.
2419
2420 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2421
2422         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2423         (OPTION_MASK_ISA_AVX_UNSET): Update.
2424         (OPTION_MASK_ISA_AVX2_UNSET): New.
2425         (ix86_handle_option): Handle OPT_mavx2 case.
2426         * config/i386/cpuid.h (bit_AVX2): New.
2427         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2428         AVX2 feature.
2429         * config/i386/i386-c.c (ix86_target_macros_internal):
2430         Conditionally define __AVX2__.
2431         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2432         Define "core-avx2" processor alias.  Handle avx2 option.
2433         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2434         * config/i386/i386.h (TARGET_AVX2): New.
2435         * config/i386/i386.opt (mavx2): New.
2436         * doc/invoke.texi: Document -mavx2.
2437
2438 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
2439
2440         PR rtl-optimization/49890
2441         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2442         subclasses of class which is superset of a pressure class.
2443
2444 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2445             Igor Zamyatin <igor.zamyatin@intel.com>
2446
2447         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2448         with HOST_WIDE_INT for isa_flag.
2449         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2450         isa variables.
2451
2452         * config/i386/i386.c (ix86_target_string): Replace int with
2453         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
2454         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2455         (pta_flags): Removed.
2456         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2457         (pta): Use HOST_WIDE_INT on flags.
2458         (builtin_isa): Use HOST_WIDE_INT on isa.
2459         (ix86_add_new_builtins): Likewise.
2460         (def_builtin): Use HOST_WIDE_INT on mask.
2461         (def_builtin_const): Likewise.
2462         (builtin_description): Likewise.
2463
2464         * config/i386/i386.opt (ix86_isa_flags): Replace int with
2465         HOST_WIDE_INT.
2466         (ix86_isa_flags_explicit): Likewise.
2467         (x_ix86_isa_flags_explicit): Likewise.
2468
2469 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
2470
2471         PR rtl-optimization/50107
2472         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2473         (ira_hard_reg_in_set_p): New.
2474
2475         * ira-color.c (calculate_saved_nregs): New.
2476         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
2477         hard regs.
2478         (allocno_reload_assign, fast_allocation): Use
2479         ira_hard_reg_set_intersection_p instead of
2480         ira_hard_reg_not_in_set_p.
2481
2482         * ira.c (setup_reg_renumber): Use
2483         ira_hard_reg_set_intersection_p instead of
2484         ira_hard_reg_not_in_set_p.
2485         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2486         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2487
2488         * ira-costs.c (ira_tune_allocno_costs): Use
2489         ira_hard_reg_set_intersection_p instead of
2490         ira_hard_reg_not_in_set_p.
2491
2492 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2493             Igor Zamyatin <igor.zamyatin@intel.com>
2494
2495         * hwint.h (HOST_WIDE_INT_1): New.
2496
2497         * opt-functions.awk (switch_bit_fields): Initialize the
2498         host_wide_int field.
2499         (host_wide_int_var_name): New.
2500         (var_type_struct): Check and return HOST_WIDE_INT.
2501
2502         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2503
2504         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2505
2506         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
2507         check masks for HOST_WIDE_INT.
2508
2509         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2510         (option_enabled): Likewise.
2511         (get_option_state): Likewise.
2512
2513         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
2514         to HOST_WIDE_INT.
2515
2516 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2517             Marc Glisse  <marc.glisse@normalesup.org>
2518
2519         PR libstdc++-v3/1773
2520         * target.def (decl_mangling_context): New C++ hook.
2521         * doc/tm.texi: Regenerate.
2522         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2523         * config/sol2-protos.h: Group by source file.
2524         (solaris_cxx_decl_mangling_context): Declare.
2525         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2526         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2527         Use $<.
2528         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2529         Add sol2-stubs.o to extra_objs.
2530
2531 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
2532
2533         PR target/50009
2534         * stor-layout.c (update_alignment_for_field): Don't ICE on
2535         packed flexible array members if ms_bitfield_layout_p.
2536
2537         PR target/50092
2538         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2539         on the result before returning it.
2540
2541         PR debug/50017
2542         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2543         is a debug stmt, use location of the first non-debug stmt after it.
2544
2545 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2546
2547         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2548         (arm_size_rtx_costs): Likewise.
2549
2550 2011-08-18  Richard Guenther  <rguenther@suse.de>
2551
2552         * tree.h (tree_int_cst_msb): Remove.
2553         * tree.c (tree_int_cst_msb): Likewise.
2554         (tree_int_cst_sign_bit): Move from ...
2555         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2556
2557 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2558
2559         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2560         * doc/tm.texi: Regenerate.
2561         * target.def (rtx_costs): Add an opno parameter.
2562         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2563         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2564         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2565         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2566         * cse.c (COST_IN): Add an opno parameter.
2567         (notreg_cost): Likewise.  Update call to rtx_cost.
2568         (COST, fold_rtx): Update accordingly.
2569         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2570         * expmed.c (emit_store_flag): Likewise.
2571         * optabs.c (avoid_expensive_constant): Add an opno parameter.
2572         Update call to rtx_cost.
2573         (expand_binop_directly, expand_binop): Likewise.
2574         (expand_twoval_binop, prepare_cmp_insn): Likewise.
2575         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2576         (set_src_cost, get_full_set_src_cost): Update accordingly.
2577         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
2578         to target hook.
2579         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
2580         (default_adress_cost): Update calls to rtx_cost.
2581
2582         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2583         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2584         (arm_rtx_costs): Add an opno parameter.
2585         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2586         adjust any recursive rtx-cost calls.
2587         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2588         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2589         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2590         * config/cris/cris.c (cris_rtx_costs): Likewise.
2591         * config/frv/frv.c (frv_rtx_costs): Likewise.
2592         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2593         * config/i386/i386.c (ix86_rtx_costs): Likewise.
2594         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2595         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2596         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2597         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2598         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2599         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2600         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2601         * config/mep/mep.c (mep_rtx_cost): Likewise.
2602         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2603         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
2604         (mips_zero_extend_cost): Add an opno parameter.
2605         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2606         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
2607         to rtx_cost.
2608         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
2609         rtx-cost calls.
2610         * config/pa/pa.c (hppa_rtx_costs): Likewise.
2611         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2612         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
2613         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2614         (rs6000_debug_rtx_costs): Likewise.
2615         * config/s390/s390.c (s390_rtx_costs): Likewise.
2616         * config/score/score-protos.h (score_rtx_costs): Likewise.
2617         * config/score/score.c (score_rtx_costs): Likewise.
2618         * config/sh/sh.c (andcosts): Update call to rtx_cost.
2619         (sh_rtx_costs): Add an opno parameter.
2620         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2621         * config/spu/spu.c (spu_rtx_costs): Likewise.
2622         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2623         * config/v850/v850.c (v850_rtx_costs): Likewise.
2624         * config/vax/vax.c (vax_rtx_costs): Likewise.
2625         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2626
2627 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2628
2629         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
2630         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
2631         rtx_cost.
2632         * calls.c (precompute_register_parameters): Likewise.
2633         * combine.c (expand_compound_operation, make_extraction): Likewise.
2634         (force_to_mode, distribute_and_simplify_rtx): Likewise.
2635         * dse.c (find_shift_sequence): Likewise.
2636         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
2637         * expr.c (compress_float_constant): Likewise.
2638         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2639         * gcse.c (want_to_gcse_p): Likewise.
2640         * ifcvt.c (noce_try_sign_mask): Likewise.
2641         * loop-doloop.c (doloop_optimize): Likewise.
2642         * loop-invariant.c (create_new_invariant): Likewise.
2643         * optabs.c (avoid_expensive_constant): Likewise.
2644         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
2645         (try_replace_in_use, reload_cse_move2add): Likewise.
2646         * reload1.c (calculate_elim_costs_all_insns): Likewise.
2647         (note_reg_elim_costly): Likewise.
2648         * rtlanal.c (insn_rtx_cost): Likewise.
2649         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2650         * stmt.c (lshift_cheap_p): Likewise.
2651         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
2652         * config/avr/avr.c (final_prescan_insn): Likewise.
2653         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2654         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
2655
2656 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2657
2658         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2659         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2660         * cfgloopanal.c (seq_cost): Likewise.
2661         * loop-invariant.c (create_new_invariant): Likewise.
2662         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2663         (reload_cse_move2add): Use get_full_set_rtx_cost.
2664
2665 2011-08-18  Richard Guenther  <rguenther@suse.de>
2666
2667         * expr.c (get_inner_reference): Fix typo in last change.
2668
2669 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
2670             Joseph Myers  <joseph@codesourcery.com>
2671
2672         PR tree-optimization/49963
2673         * hwint.c (absu_hwi): Define.
2674         * hwint.h (absu_hwi): Declare.
2675         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2676         of abs_hwi.
2677         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2678         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2679
2680 2011-08-18  Richard Guenther  <rguenther@suse.de>
2681
2682         * expr.c (get_inner_reference): Sign-extend the constant
2683         twos-complement offset before doing arbitrary precision
2684         arithmetic on it.
2685         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2686         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2687         to get_constraint_for_ptr_offset.
2688
2689 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2690
2691         PR target/50068
2692         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2693
2694 2011-08-17  Richard Guenther  <rguenther@suse.de>
2695
2696         * tree.h (convert_to_ptrofftype_loc): New function.
2697         (convert_to_ptrofftype): Define.
2698         * builtins.c (expand_builtin_bzero): Use size_type_node.
2699         (fold_builtin_bzero): Likewise.
2700         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2701         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2702         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2703         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2704         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2705         * fold-const.c (build_range_check): Negate using the original type.
2706         (fold_unary_loc): Use fold_build_pointer_plus_loc.
2707         * gimple-fold.c (gimple_adjust_this_by_delta): Use
2708         convert_to_ptrofftype.
2709         * gimplify.c (gimplify_self_mod_expr): Likewise.
2710         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2711         (graphite_create_new_loop_guard): Likewise.
2712         * graphite-sese-to-poly.c (my_long_long): Remove.
2713         (scop_ivs_can_be_represented): Adjust.
2714         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2715         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2716         * tree-loop-distribution.c (build_size_arg_loc): Use
2717         size_type_node.
2718         (generate_memset_zero): Simplify.
2719         * tree-mudflap.c: Use fold_convert, not convert.
2720         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2721         its own type.
2722         (determine_offset): Likewise for DR_STEP.
2723         (valid_initializer_p): Likewise.
2724         * tree-profile.c (prepare_instrumented_value): Convert the pointer
2725         to an integer type of same size.
2726         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2727         to sizetype without need.
2728         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2729         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2730         * tree-ssa-loop-manip.c (create_iv): Likewise.
2731         (determine_exit_conditions): Adjust comment.
2732         * tree-ssa-pre.c (create_expression_by_pieces): Use
2733         convert_to_ptrofftype.
2734         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2735         * varasm.c (array_size_for_constructor): Compute using double_ints.
2736
2737 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2738
2739         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2740         when generating an integer result where possible.  Short-cut
2741         comparison against 0 also for QImode.
2742
2743 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2744
2745         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2746         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2747         prototype.
2748         * config/spu/spu.c (spu_legitimize_reload_address): New function.
2749         (spu_legitimate_address_p): Do not check displacement if the base
2750         is an eliminable stack register.
2751
2752 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
2753
2754         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2755         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2756         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2757         m32c_preferred_output_reload_class): Remove.
2758         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2759         Change rclass argument and return types to reg_class_t. Use
2760         reg_class_subset_p instead of class_sizes.
2761         (m32c_preferred_output_reload_class): Make static. Change rclass
2762         argument and return types to reg_class_t.
2763         (TARGET_PREFERRED_RELOAD_CLASS,
2764         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2765
2766 2011-08-16  Kai Tietz  <ktietz@redhat.com>
2767
2768         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2769
2770 2011-08-16  Richard GUenther  <rguenther@suse.de>
2771
2772         PR tree-optimization/50082
2773         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2774         warnings here, instead of ...
2775         (ssa_forward_propagate_and_combine): ... here.
2776         (forward_propagate_into_comparison_1): Adjust.
2777         (forward_propagate_into_comparison): Likewise.
2778         (forward_propagate_into_gimple_cond): Likewise.
2779         (forward_propagate_into_cond): Likewise.
2780
2781 2011-08-16  Andreas Schwab  <schwab@redhat.com>
2782
2783         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2784         instead of ggc_alloc_zone_vec_rtvec_def.
2785
2786 2011-08-16  Richard Guenther  <rguenther@suse.de>
2787
2788         * tree.h (ptrofftype_p): New helper function.
2789         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2790         offset verification.
2791         (verify_gimple_assign_binary): Likewise.
2792         * tree.c (build2_stat): Likewise.
2793         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2794         (reset_evolution_in_loop): Likewise.
2795         * tree-chrec.h (build_polynomial_chrec): Likewise.
2796
2797 2011-08-16  Liang Wang  <lwang1@marvell.com>
2798
2799         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2800         ggc_alloc_zone_vec_rtvec_def.
2801
2802 2011-08-16  Richard Guenther  <rguenther@suse.de>
2803
2804         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2805         helper factored out from ...
2806         (extract_range_from_binary_expr_1): ... here.  Re-structure
2807         to not glob handling too different tree codes.
2808
2809 2011-08-15  Richard Henderson  <rth@redhat.com>
2810
2811         PR middle-end/50006
2812         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2813         setting out to include allocate_stack named pattern as well.
2814         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2815         * stmt.c (expand_stack_restore): Likewise.
2816
2817 2011-08-15  Richard Guenther  <rguenther@suse.de>
2818
2819         PR middle-end/50082
2820         * fold-const.c (maybe_canonicalize_comparison_1): Properly
2821         convert the modified operand to the other operand type.
2822         (fold_comparison): Call maybe_canonicalize_comparison_1 with
2823         useless conversions stripped from comparison operands.
2824
2825 2011-08-15  Richard Guenther  <rguenther@suse.de>
2826
2827         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2828         (extract_range_from_unary_expr_1): Restructure.
2829
2830 2011-08-15  Richard Guenther  <rguenther@suse.de>
2831
2832         PR tree-optimization/50058
2833         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2834         copy matching.
2835
2836 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2837
2838         PR target/50022
2839         * config/arm/arm.c (output_move_double): Add 2 parameters
2840         to count the number of insns emitted and whether to emit or not.
2841         Use the flag to decide when to emit and count number of instructions
2842         that will be emitted.
2843         Handle case where output_move_double might be called for calculating
2844         lengths with an invalid constant.
2845         (arm_count_output_move_double_insns): Define.
2846         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
2847         (output_move_double): Adjust prototype.
2848         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
2849         output_move_double.
2850         ("*movdi_vfp_cortexa8"): Likewise and add attribute
2851         for ce_count.
2852         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
2853         ("*movdf_soft_insn"): Likewise.
2854         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
2855         ("*cirrus_thumb2_movdi"): Likewise.
2856         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
2857         ("*cirrus_movdf_hard_insn"): Likewise.
2858         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
2859         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
2860         ("mov<mode>_internal VMMX"): Likewise.
2861         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
2862
2863 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
2864
2865         * config/i386/i386.c (ix86_expand_round_sse4): New function.
2866         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
2867         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
2868         for TARGET_ROUND.
2869
2870         (rint<mode>2): Simplify TARGET_ROUND check.
2871         (floor<mode>2): Ditto.
2872         (ceil<mode>2): Ditto.
2873         (btrunc<mode>2): Ditto.
2874
2875 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
2876
2877         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
2878         as mmix_preferred_output_reload_class.
2879
2880 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
2881
2882         * PR target/49903
2883         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
2884         (branch_unspec): New insn.
2885         (branch): Beauty farm.
2886         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
2887         to be IF_THEN_ELSE.
2888         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
2889         New static functions.
2890         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
2891         Use CONST_INT_P.  Beauty.
2892
2893 2011-08-12  Richard Henderson  <rth@redhat.com>
2894
2895         PR rtl-opt/49994
2896         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
2897         * sched-deps.c (init_deps): Clear it.
2898         (deps_analyze_insn): Consume it.
2899         (sched_analyze_insn): Fill it.
2900
2901 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2902
2903         PR target/48328
2904         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
2905         for tbh instructions.
2906
2907 2011-08-12  Diego Novillo  <dnovillo@google.com>
2908
2909         * data-streamer.h (streamer_write_zero): Rename from output_zero.
2910         (streamer_write_uhwi): Rename from lto_output_uleb128.
2911         (streamer_write_hwi): Rename from output_sleb128.
2912         (streamer_write_string): Rename from lto_output_string.
2913         (streamer_string_index): Rename from lto_string_index.
2914         (streamer_write_string_with_length): Rename from
2915         lto_output_string_with_length.
2916         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
2917         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
2918         (streamer_read_string): Rename from lto_input_string.
2919         (streamer_read_indexed_string): Rename from input_string_internal.
2920         (streamer_read_uhwi): Rename from lto_input_uleb128.
2921         (streamer_read_hwi): Rename from lto_input_sleb128.
2922         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
2923         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
2924         (streamer_write_enum): Rename from lto_output_enum.
2925         (streamer_read_enum): Rename from lto_input_enum.
2926         (streamer_write_record_start): Rename from output_record_start.
2927         (streamer_read_record_start): Rename from input_record_start.
2928         (streamer_write_bitpack): Rename from lto_output_bitpack.
2929         (streamer_read_bitpack): Rename from lto_input_bitpack.
2930         (streamer_write_char_stream): Rename from lto_output_1_stream.
2931         (streamer_read_uchar): Rename from lto_input_1_unsigned.
2932         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
2933         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
2934         (streamer_read_string_cst): Rename from input_string_cst.
2935         (streamer_read_chain): Rename from lto_input_chain.
2936         (streamer_alloc_tree): Rename from lto_materialize_tree.
2937         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
2938         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
2939         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
2940         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
2941         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
2942         (streamer_write_chain): Rename from lto_output_chain.
2943         (streamer_write_tree_header): Rename from lto_output_tree_header.
2944         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
2945         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
2946         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
2947         (streamer_write_builtin): Rename from lto_output_builtin_tree.
2948         (streamer_check_handled_ts_structures): Rename from
2949         check_handled_ts_structures.
2950         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
2951         (streamer_tree_cache_insert_at): Rename from
2952         lto_streamer_cache_insert_at.
2953         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
2954         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
2955         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
2956         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
2957         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
2958         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
2959         (write_identifier): Rename from output_identifier.
2960         (write_ts_common_tree_pointers): Rename from
2961         lto_output_ts_common_tree_pointers.
2962         (write_ts_vector_tree_pointers): Rename from
2963         lto_output_ts_vector_tree_pointers.
2964         (write_ts_complex_tree_pointers): Rename from
2965         lto_output_ts_complex_tree_pointers.
2966         (write_ts_decl_minimal_tree_pointers): Rename from
2967         lto_output_ts_decl_minimal_tree_pointers.
2968         (write_ts_decl_common_tree_pointers): Rename from
2969         lto_output_ts_decl_common_tree_pointers.
2970         (write_ts_decl_non_common_tree_pointers): Rename from
2971         lto_output_ts_decl_non_common_tree_pointers.
2972         (write_ts_decl_with_vis_tree_pointers): Rename from
2973         lto_output_ts_decl_with_vis_tree_pointers.
2974         (write_ts_field_decl_tree_pointers): Rename from
2975         lto_output_ts_field_decl_tree_pointers.
2976         (write_ts_function_decl_tree_pointers): Rename from
2977         lto_output_ts_function_decl_tree_pointers.
2978         (write_ts_type_common_tree_pointers): Rename from
2979         lto_output_ts_type_common_tree_pointers.
2980         (write_ts_type_non_common_tree_pointers): Rename from
2981         lto_output_ts_type_non_common_tree_pointers.
2982         (write_ts_list_tree_pointers): Rename from
2983         lto_output_ts_list_tree_pointers.
2984         (write_ts_vec_tree_pointers): Rename from
2985         lto_output_ts_vec_tree_pointers.
2986         (write_ts_exp_tree_pointers): Rename from
2987         lto_output_ts_exp_tree_pointers.
2988         (write_ts_block_tree_pointers): Rename from
2989         lto_output_ts_block_tree_pointers.
2990         (write_ts_binfo_tree_pointers): Rename from
2991         lto_output_ts_binfo_tree_pointers.
2992         (write_ts_constructor_tree_pointers): Rename from
2993         lto_output_ts_constructor_tree_pointers.
2994         (write_ts_target_option): Rename from lto_output_ts_target_option.
2995         (write_ts_translation_unit_decl_tree_pointers): Rename from
2996         lto_output_ts_translation_unit_decl_tree_pointers.
2997         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2998         Rename from lto_streamer_cache_add_to_node_array.
2999         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
3000         (record_common_node): Rename from lto_record_common_node.
3001
3002         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
3003         declarations.
3004         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
3005         function.
3006         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
3007         unused function.
3008         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
3009         (ipa-reference.o): Likewise.
3010         * lto-section-out.c: Include data-streamer.h.
3011         * ipa-reference.c: Include data-streamer.h.
3012
3013 2011-08-12  Nick Clifton  <nickc@redhat.com>
3014
3015         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
3016         * doc/md.texi (cmpstrn): Note that the comparison stops if both
3017         fetched bytes are zero.
3018         (cmpstr): Likewise.
3019         (cmpmem): Note that the comparison does not stop if both of the
3020         fetched bytes are zero.
3021
3022 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
3023
3024         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
3025         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
3026         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
3027         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
3028         to integer_type_node.
3029         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
3030         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
3031         * builtins.c (expand_builtin_in): Ditto.
3032         (mathfn_built_in_1): Ditto.
3033         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
3034         BUILT_IN_IFLOOR.
3035         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
3036         BUILT_IN_IROUND.
3037         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
3038         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
3039         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
3040
3041 2011-08-12  Richard Guenther  <rguenther@suse.de>
3042
3043         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
3044
3045 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
3046
3047         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
3048
3049 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
3050
3051         * config/arm/arm.c (get_label_padding): New function.
3052         (create_fix_barrier, arm_reorg): Use it.
3053
3054 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
3055
3056         PR target/49781
3057         * config/i386/i386.md (*lea_5_zext): New.
3058         (*lea_6_zext): Ditto.
3059         * config/i386/predicates.md (const_32bit_mask): New predicate.
3060         (lea_address_operand): Reject AND.
3061         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3062         const_32bit_mask immediate.
3063         (ix86_print_operand_address): Handle AND.
3064         (memory_address_length): Ditto.
3065
3066 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
3067             Brian Hackett  <bhackett1024@gmail.com>
3068
3069         * plugin.def: Add event for finish_decl.
3070         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3071         * c-decl.c (finish_decl): Invoke callbacks on above event.
3072         * doc/plugins.texi: Document above event.
3073
3074 2011-08-11  Richard Guenther  <rguenther@suse.de>
3075
3076         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3077         lookups, make looking through aggregate copies stronger.
3078
3079 2011-08-11  Richard Henderson  <rth@redhat.com>
3080
3081         PR bootstrap/50018
3082         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3083
3084 2011-08-11  Richard Guenther  <rguenther@suse.de>
3085
3086         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3087         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3088         (vrp_visit_stmt): Likewise.
3089
3090 2011-08-11  Richard Guenther  <rguenther@suse.de>
3091
3092         PR middle-end/50040
3093         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3094         load of the other piece with TREE_NO_WARNING.
3095         * tree-flow.h (warn_uninit): Adjust prototype.
3096         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3097         the base variable and the expression that is used separately.
3098         Properly query all TREE_NO_WARNING flags.
3099         (struct walk_data): Remove.
3100         (warn_uninitialized_var): Likewise.
3101         (warn_uninitialized_vars): Do not walk gimple pieces but simply
3102         look at all SSA uses of the statement.  Handle unused memory
3103         separately.
3104         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3105
3106 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
3107
3108         * config/rx/rx.md (movsicc): Allow register to register transfers.
3109         (*movsicc): Likewise.
3110         (*stcc): Restrict this pattern to EQ and NE compares.
3111         (*stcc_reg): New pattern.  Works for any comparison but only for
3112         register transfers.
3113
3114 2011-08-11   Diego Novillo  <dnovillo@google.com>
3115
3116         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3117         Call stream_write_tree instead of output_record_start.
3118         (lto_output_ts_binfo_tree_pointers): Likewise.
3119
3120         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3121         Convert it to a macro.
3122         (stream_read_tree): Likewise.
3123
3124         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3125         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3126
3127         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3128         and tree_read_bitfields.
3129         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3130         (lto_write_tree): Call it.
3131         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3132         * streamer-hooks.h (struct streamer_hooks): Remove fields
3133         name, is_streamable and alloc_tree. Update all users.
3134         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3135         (lto_materialize_tree): ... here.
3136         Handle CALL_EXPR codes.
3137         Remove call to lto_streamer_cache_append.
3138         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3139         * tree-streamer.h (tree_read_bitfields): Declare.
3140
3141         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
3142         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
3143         * tree-streamer.h (stream_read_tree): New.  Replace all calls
3144         to lto_input_tree with it.
3145         (stream_write_tree): New.  Replace all calls to lto_output_tree,
3146         lto_output_tree_ref and lto_output_tree_or_ref with it.
3147         * lto-streamer-in.c (lto_read_tree): Inline code from
3148         lto_streamer_read_tree.
3149         (lto_input_tree): Move from tree-streamer-in.c.
3150         * lto-streamer-out.c (lto_output_tree_ref): Make static.
3151         Remove handling of NULL values for EXPR.
3152         Do not handle EXPRs that are not indexable.
3153         (lto_write_tree): Move from tree-streamer-out.c.
3154         Inline lto_streamer_write_tree.
3155         (lto_output_tree): Move from tree-streamer-out.c.
3156         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
3157         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
3158         (lto_preload_common_nodes): Likewise.
3159         Remove assertions and adjustments for nodes
3160         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
3161         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
3162         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
3163         * lto-streamer.h (lto_input_tree): Declare.
3164         (lto_output_tree_ref): Remove.
3165         * streamer-hooks.h (struct streamer_hooks): Remove fields
3166         preload_common_nodes, indexable_with_decls_p,
3167         pack_value_fields, unpack_value_fields and output_tree_header.
3168         Update all users.
3169         * tree-streamer-in.c (lto_materialize_tree): Make extern.
3170         (lto_input_tree_pointers): Likewise.
3171         (lto_read_tree): Move to lto-streamer-in.c.
3172         (lto_input_integer_cst): Make extern.
3173         (lto_get_pickled_tree): Likewise.
3174         (lto_get_builtin_tree): Likewise.
3175         (lto_input_tree): Move to lto-streamer-in.c.
3176         * tree-streamer-out.c (pack_value_fields): Make extern.
3177         (lto_output_tree_or_ref): Remove.  Replace all callers with
3178         calls to stream_write_tree.
3179         (lto_output_builtin_tree): Make extern.
3180         (lto_streamer_write_tree): Inline into lto_write_tree.
3181         (lto_output_tree_pointers): Make extern.
3182         (lto_output_tree_header): Likewise.
3183         (lto_output_integer_cst): Likewise.
3184         (lto_write_tree): Move to lto-streamer-out.c.
3185         (lto_output_tree): Likewise.
3186         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
3187         (preload_common_nodes): Likewise.
3188         (lto_streamer_cache_create): Call it.
3189         * tree-streamer.h: Include streamer-hooks.h.
3190         (stream_write_tree): New.
3191         (stream_read_tree): New.
3192         (lto_input_tree): Remove.
3193         (lto_materialize_tree): Declare.
3194         (lto_input_tree_pointers): Declare.
3195         (lto_get_pickled_tree): Declare.
3196         (lto_get_builtin_tree): Declare.
3197         (lto_input_integer_cst): Declare.
3198         (lto_output_tree_header): Declare.
3199         (pack_value_fields): Declare.
3200         (lto_output_tree_pointers): Declare.
3201         (lto_output_integer_cst): Declare.
3202         (lto_output_builtin_tree): Declare.
3203
3204 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3205
3206         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
3207         only if producer writes to the register given by regno.
3208
3209 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3210             Alexander Monakov  <amonakov@ispras.ru>
3211
3212         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
3213         (sched_get_condition_with_rev_uncached): ... this.  Factor out
3214         condition caching logic into ...
3215         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
3216         attempt to use cache for instructions with zero luid.
3217         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
3218         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
3219
3220 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3221
3222         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
3223         get_seqno_for_a_jump.  Update the caller.
3224         (get_seqno_by_succs): New.  Use it ...
3225         (get_seqno_for_a_jump): ... here to find a seqno if looking at
3226         predecessors was not sufficient.
3227         (get_seqno_by_preds): Include head in iteration range, exclude insn.
3228
3229 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3230
3231         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
3232
3233 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3234
3235         * sel-sched-ir.h (register_unavailable_p): Declare.
3236         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
3237         (set_unavailable_target_for_expr): ... here to properly test
3238         availability of a register.
3239         (speculate_expr): Ditto.
3240         * sel-sched.c (substitute_reg_in_expr): Ditto.
3241         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
3242
3243 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3244
3245         * sel-sched.c (verify_target_availability): Fix usage of
3246         hard_regno_nregs.
3247
3248 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3249
3250         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
3251         recognized by cannot_copy_insn_p hook and volatile instructions.
3252
3253 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3254
3255         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
3256
3257 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
3258
3259         * doc/md.texi (define_bypass): Say that the instruction names can
3260         be filename-style globs.
3261         * Makefile.in (FNMATCH_H): Define.
3262         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
3263         * genattrtab.c: Include fnmatch.h.
3264         (bypass_list): Change field name from "insn" to "pattern".
3265         (gen_bypass_1): Update accordingly.
3266         (process_bypasses): Use fnmatch to check for matches between
3267         insn reservations and define_bypasses.
3268         * genautomata.c: Include fnmatch.h.
3269         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
3270         and out_pattern respectively.
3271         (gen_bypass, insert_bypass): Update accordingly.
3272         (for_each_matching_insn, process_bypass_2, process_bypass_1)
3273         (process_bypass): New functions.
3274         (process_decls): Use process_bypass.  Update after field name changes.
3275
3276 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
3277
3278         PR target/49687
3279         * config/avr/avr.md (smulqi3_highpart): New insn.
3280         (umulqi3_highpart): New insn.
3281         (*subqi3.ashiftrt7): New insn.
3282         (smulhi3_highpart): New expander.
3283         (umulhi3_highpart): Nex expander.
3284         (*smulhi3_highpart_call): New insn.
3285         (*umulhi3_highpart_call): New insn.
3286         (extend_u): New code attribute.
3287         (extend_prefix): Rename code attribute to extend_su.
3288         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
3289         widening QI/HI multiply.
3290
3291 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
3292
3293         PR tree-optimization/50039
3294         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
3295         that DEF_STMT has a stmt_vec_info.
3296
3297 2011-08-10  Richard Guenther  <rguenther@suse.de>
3298
3299         * tree.h (can_trust_pointer_alignment): Remove.
3300         * builtins.c (can_trust_pointer_alignment): Remove.
3301
3302 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3303
3304         * c-typeck.c (scalar_to_vector): New function. Try scalar to
3305         vector conversion.
3306         (stv_conv): New enum for scalar_to_vector return type.
3307         (build_binary_op): Adjust.
3308         * doc/extend.texi: Description of scalar to vector expansion.
3309
3310 2011-08-10  Richard Guenther  <rguenther@suse.de>
3311
3312         * tree.h (get_pointer_alignment): Remove max-align argument.
3313         (get_object_alignment): Likewise.
3314         * builtins.c (get_object_alignment_1): Adjust.
3315         (get_object_alignment): Remove max-align argument.
3316         (get_pointer_alignment): Likewise.
3317         (expand_builtin_strlen): Adjust.
3318         (expand_builtin_memcpy): Likewise.
3319         (expand_builtin_mempcpy_args): Likewise.
3320         (expand_builtin_strncpy): Likewise.
3321         (expand_builtin_memset_args): Likewise.
3322         (expand_builtin_memcmp): Likewise.
3323         (expand_builtin_strcmp): Likewise.
3324         (expand_builtin_strncmp): Likewise.
3325         (get_builtin_sync_mem): Likewise.
3326         (fold_builtin_memset): Likewise.
3327         (fold_builtin_memory_op): Likewise.
3328         (expand_builtin_memory_chk): Likewise.
3329         * emit-rtl.c (get_mem_align_offset): Likewise.
3330         (set_mem_attributes_minus_bitpos): Likewise.
3331         * expr.c (expand_assignment): Likewise.
3332         (expand_expr_real_1): Likewise.
3333         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
3334         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3335         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
3336         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3337         * value-prof.c (gimple_stringops_transform): Likewise.
3338
3339 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
3340
3341         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
3342         * doc/tm.texi: Regenerate.
3343
3344 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
3345
3346         PR target/29560
3347         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
3348         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
3349         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
3350         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
3351         shift target is unused.
3352
3353 2011-08-10  Richard Guenther  <rguenther@suse.de>
3354
3355         PR tree-optimization/49937
3356         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
3357         using get_object_alignment_1.
3358
3359 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
3360
3361         * config/i386/i386.c (ix86_emit_i387_round): New function.
3362         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
3363         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
3364         Use ix86_emit_i387_round to expand round function for i387 math.
3365         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
3366         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
3367
3368 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3369
3370         * config/sync.c: Move to ../libgcc.
3371         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3372         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3373         Remove.
3374
3375 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3376
3377         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3378         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3379         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3380         Change 'from' and 'to' arguments type to reg_class_t.
3381         (TARGET_REGISTER_MOVE_COST): Define.
3382
3383 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
3384
3385         PR target/50026
3386         Revert:
3387         PR rtl-optimization/49990
3388         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3389         ignore classes which can not change mode.
3390         (find_costs_and_classes): Ditto.
3391
3392 2011-08-09  Richard Guenther  <rguenther@suse.de>
3393
3394         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3395         information for ranges with only negative values.
3396         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3397         BIT_AND_EXPR handling to handle ranges with negative values.
3398
3399 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
3400
3401         * config/i386/i386.c: Remove traling spaces.
3402         * config/i386/sse.md: Likewise.
3403         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3404         (*fma_fmsub_<mode>): Likewise.
3405         (*fma_fnmadd_<mode>): Likewise.
3406         (*fma_fnmsub_<mode>): Likewise.
3407
3408 2011-08-09  Nick Clifton  <nickc@redhat.com>
3409
3410         * config/rx/rx.md: Disable extender peepholes at -O3.
3411
3412 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
3413
3414         PR target/49781
3415         * config/i386/i386.md (reload_noff_load): New.
3416         (reload_noff_store): Ditto.
3417         * config/i386/i386.c (ix86_secondary_reload): Use
3418         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3419         double-word moves from/to non-offsetable addresses instead of
3420         generating XMM temporary.
3421
3422 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3423
3424         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3425
3426 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
3427
3428         PR tree-optimization/50014
3429         * tree-vect-loop.c (vectorizable_reduction): Get def type before
3430         calling vect_get_vec_def_for_stmt_copy ().
3431
3432 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
3433
3434         PR rtl-optimization/49990
3435         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3436         ignore classes which can not change mode.
3437         (find_costs_and_classes): Ditto.
3438
3439 2011-08-08  Richard Henderson  <rth@redhat.com>
3440
3441         PR middle-end/49990
3442         * config/i386/i386.c (ix86_expand_prologue): Call
3443         for SEH target gen_prologue_use instead of gen_blockage
3444         at prologue's end.
3445
3446 2011-08-08  Martin Jambor  <mjambor@suse.cz>
3447
3448         PR middle-end/49923
3449         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3450         memory alignment.
3451
3452 2011-08-08   Diego Novillo  <dnovillo@google.com>
3453
3454         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3455         (DATA_STREAMER_H): New.
3456         (GIMPLE_STREAMER_H): New.
3457         (TREE_STREAMER_H): New.
3458         (STREAMER_HOOKS_H): New.
3459         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3460         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3461         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3462         (data-streamer.o): New.
3463         (data-streamer-in.o): New.
3464         (data-streamer-out.o): New.
3465         (gimple-streamer-in.o): New.
3466         (gimple-streamer-out.o): New.
3467         (streamer-hooks.o): New.
3468         (tree-streamer.o): New.
3469         (tree-streamer-in.o): New.
3470         (tree-streamer-out.o): New.
3471         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3472         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3473         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3474         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3475         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3476         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3477         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3478         (ipa-inline-analysis.o): Likewise.
3479         (ipa-pure-const.o): Likewise.
3480         * data-streamer-in.c: New.
3481         * data-streamer-out.c: New.
3482         * data-streamer.c: New.
3483         * data-streamer.h: New.
3484         * gimple-streamer-in.c: New.
3485         * gimple-streamer-out.c: New.
3486         * gimple-streamer.h: New.
3487         * ipa-inline-analysis.c: Include data-streamer.h.
3488         * ipa-prop.c: Include data-streamer.h.
3489         * ipa-pure-const.c: Include data-streamer.h.
3490         * lto-cgraph.c: Include data-streamer.h.
3491         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3492         (lto_input_widest_uint_uleb128): Likewise.
3493         (lto_input_sleb128): Likewise.
3494         (bp_unpack_var_len_unsigned): Likewise.
3495         (bp_unpack_var_len_int): Likewise.
3496         * lto-section-out.c (lto_output_uleb128_stream): Move to
3497         data-streamer-out.c.
3498         (lto_output_widest_uint_uleb128_stream): Likewise.
3499         (lto_output_sleb128_stream): Likewise.
3500         (bp_pack_var_len_unsigned): Likewise.
3501         (bp_pack_var_len_int): Likewise.
3502         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3503         (struct string_slot): Remove.  Update all users.
3504         (lto_tag_check_set): Make extern.
3505         (lto_tag_check_range): Move to lto-streamer.h.
3506         (lto_tag_check): Likewise.
3507         (hash_string_slot_node): Remove.  Update all users.
3508         (eq_string_slot_node): Remove.  Update all users.
3509         (string_for_index): Move to data-streamer-in.c
3510         (input_string_internal): Likewise.
3511         (input_string_cst): Move to tree-streamer-in.c.
3512         (input_identifier): Likewise.
3513         (lto_input_string): Move to data-streamer-in.c
3514         (input_record_start): Move to data-streamer.h
3515         (canon_file_name): Use new definition of struct string_slot
3516         from data-streamer.h.  Set S_SLOT.LEN.
3517         (lto_input_location): Make extern.
3518         (lto_input_chain): Move to tree-streamer-in.c.
3519         (lto_init_eh): Make extern.
3520         (input_phi): Move to gimple-streamer-in.c.
3521         (input_gimple_stmt): Likewise.
3522         (input_bb): Likewise.
3523         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3524         (unpack_ts_real_cst_value_fields): Likewise.
3525         (unpack_ts_fixed_cst_value_fields): Likewise.
3526         (unpack_ts_decl_common_value_fields): Likewise.
3527         (unpack_ts_decl_wrtl_value_fields): Likewise.
3528         (unpack_ts_decl_with_vis_value_fields): Likewise.
3529         (unpack_ts_function_decl_value_fields): Likewise.
3530         (unpack_ts_type_common_value_fields): Likewise.
3531         (unpack_ts_block_value_fields): Likewise.
3532         (unpack_ts_translation_unit_decl_value_fields): Likewise.
3533         (unpack_value_fields): Likewise.
3534         (lto_materialize_tree): Likewise.
3535         (lto_input_ts_common_tree_pointers): Likewise.
3536         (lto_input_ts_vector_tree_pointers): Likewise.
3537         (lto_input_ts_complex_tree_pointers): Likewise.
3538         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3539         (lto_input_ts_decl_common_tree_pointers): Likewise.
3540         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3541         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3542         (lto_input_ts_field_decl_tree_pointers): Likewise.
3543         (lto_input_ts_function_decl_tree_pointers): Likewise.
3544         (lto_input_ts_type_common_tree_pointers): Likewise.
3545         (lto_input_ts_type_non_common_tree_pointers): Likewise.
3546         (lto_input_ts_list_tree_pointers): Likewise.
3547         (lto_input_ts_vec_tree_pointers): Likewise.
3548         (lto_input_ts_exp_tree_pointers): Likewise.
3549         (lto_input_ts_block_tree_pointers): Likewise.
3550         (lto_input_ts_binfo_tree_pointers): Likewise.
3551         (lto_input_ts_constructor_tree_pointers): Likewise.
3552         (lto_input_ts_target_option): Likewise.
3553         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3554         (lto_input_tree_pointers): Likewise.
3555         (lto_get_pickled_tree): Likewise.
3556         (lto_get_builtin_tree): Likewise.
3557         (lto_read_tree): Likewise.
3558         (lto_input_integer_cst): Likewise.
3559         (lto_input_tree): Likewise.
3560         * lto-streamer-out.c: Include data-streamer.h,
3561         gimple-streamer.h and streamer-hooks.h.
3562         (struct string_slot): Move to data-streamer.h.
3563         (hash_string_slot_node): Likewise.
3564         (eq_string_slot_node): Likewise.
3565         (lto_string_index): Move to data-streamer-out.c.
3566         (lto_output_string_with_length): Likewise.
3567         (lto_output_string): Likewise.
3568         (output_string_cst): Move to tree-streamer-out.c.
3569         (output_identifier): Likewise.
3570         (output_zero): Move to data-streamer-out.c
3571         (output_uleb128): Likewise.
3572         (output_sleb128): Likewise.
3573         (output_record_start): Move to data-streamer.h
3574         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3575         (pack_ts_real_cst_value_fields): Likewise.
3576         (pack_ts_fixed_cst_value_fields): Likewise.
3577         (pack_ts_decl_common_value_fields): Likewise.
3578         (pack_ts_decl_wrtl_value_fields): Likewise.
3579         (pack_ts_decl_with_vis_value_fields): Likewise.
3580         (pack_ts_function_decl_value_fields): Likewise.
3581         (pack_ts_type_common_value_fields): Likewise.
3582         (pack_ts_block_value_fields): Likewise.
3583         (pack_ts_translation_unit_decl_value_fields): Likewise.
3584         (pack_value_fields): Likewise.
3585         (lto_output_chain): Likewise.
3586         (lto_output_ts_common_tree_pointers): Likewise.
3587         (lto_output_ts_vector_tree_pointers): Likewise.
3588         (lto_output_ts_complex_tree_pointers): Likewise.
3589         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3590         (lto_output_ts_decl_common_tree_pointers): Likewise.
3591         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
3592         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
3593         (lto_output_ts_field_decl_tree_pointers): Likewise.
3594         (lto_output_ts_function_decl_tree_pointers): Likewise.
3595         (lto_output_ts_type_common_tree_pointers): Likewise.
3596         (lto_output_ts_type_non_common_tree_pointers): Likewise.
3597         (lto_output_ts_list_tree_pointers): Likewise.
3598         (lto_output_ts_vec_tree_pointers): Likewise.
3599         (lto_output_ts_exp_tree_pointers): Likewise.
3600         (lto_output_ts_block_tree_pointers): Likewise.
3601         (lto_output_ts_binfo_tree_pointers): Likewise.
3602         (lto_output_ts_constructor_tree_pointers): Likewise.
3603         (lto_output_ts_target_option): Likewise.
3604         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
3605         (lto_output_tree_pointers): Likewise.
3606         (lto_output_tree_header): Likewise.
3607         (lto_output_builtin_tree): Likewise.
3608         (lto_write_tree): Likewise.
3609         (lto_output_integer_cst): Likewise.
3610         (lto_output_tree): Likewise.
3611         (output_phi): Move to gimple-streamer-out.c.
3612         (output_gimple_stmt): Likewise.
3613         (output_bb): Likewise.
3614         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
3615         (streamer_hooks): Move to streamer-hooks.c.
3616         (check_handled_ts_structures): Move to tree-streamer.c
3617         (lto_streamer_cache_add_to_node_array): Likewise.
3618         (lto_streamer_cache_insert_1): Likewise.
3619         (lto_streamer_cache_insert): Likewise.
3620         (lto_streamer_cache_insert_at): Likewise.
3621         (lto_streamer_cache_append): Likewise.
3622         (lto_streamer_cache_lookup): Likewise.
3623         (lto_streamer_cache_get): Likewise.
3624         (lto_record_common_node): Likewise.
3625         (lto_preload_common_nodes): Likewise.
3626         (lto_streamer_cache_create): Likewise.
3627         (lto_streamer_cache_delete): Likewise.
3628         (streamer_hooks_init): Move to streamer-hooks.c.
3629         * lto-streamer.h: Include diagnostic.h
3630         (struct output_block, struct lto_input_block,
3631         struct data_in, struct bitpack_d): Remove forward declarations.
3632         (struct bitpack_d): Move to data-streamer.h.
3633         (struct lto_streamer_cache_d): Move to tree-streamer.h.
3634         (struct streamer_hooks): Move to streamer-hooks.h.
3635         (bp_pack_var_len_unsigned): Move to data-streamer.h.
3636         (bp_pack_var_len_int): Likewise.
3637         (bp_unpack_var_len_unsigned): Likewise.
3638         (bp_unpack_var_len_int): Likewise.
3639         (lto_input_location): Declare.
3640         (lto_tag_check_set): Declare.
3641         (lto_init_eh): Declare.
3642         (lto_output_tree_ref): Declare.
3643         (lto_output_location): Declare.
3644         (bitpack_create): Move to data-streamer.h.
3645         (bp_pack_value): Likewise.
3646         (lto_output_bitpack): Likewise.
3647         (lto_input_bitpack): Likewise.
3648         (bp_unpack_value): Likewise.
3649         (lto_output_1_stream): Likewise.
3650         (lto_input_1_unsigned): Likewise.
3651         (lto_output_int_in_range): Likewise.
3652         (lto_input_int_in_range): Likewise.
3653         (bp_pack_int_in_range): Likewise.
3654         (bp_unpack_int_in_range): Likewise.
3655         (lto_output_enum): Likewise.
3656         (lto_input_enum): Likewise.
3657         (bp_pack_enum): Likewise.
3658         (bp_unpack_enum): Likewise.
3659         * streamer-hooks.c: New.
3660         * streamer-hooks.h: New.
3661         * tree-streamer-in.c: New.
3662         * tree-streamer-out.c: New.
3663         * tree-streamer.c: New.
3664         * tree-streamer.h: New.
3665
3666 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3667
3668         * gthr-posix95.h: Remove.
3669         * gthr.h [_PTHREADS95]: Remove.
3670         * configure.ac (enable_threads): Remove posix95.
3671         * configure: Regenerate.
3672         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3673
3674 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
3675
3676         PR target/49781
3677         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3678         SImode addresses.
3679         (ix86_print_operand_address): Handle zero-extended addresses.
3680         (memory_address_length): Add length of addr32 prefix for
3681         zero-extended addresses.
3682         (ix86_secondary_reload): Handle moves to/from double-word general
3683         registers from/to zero-extended addresses.
3684         * config/i386/predicates.md (lea_address_operand): Reject
3685         zero-extended operands.
3686
3687 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
3688
3689         PR other/48007
3690         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3691
3692         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3693         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3694
3695         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3696         (_Unwind_Context_Reg_Val): Likewise.
3697         (_Unwind_Get_Unwind_Word): Likewise.
3698         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3699         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3700         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3701         for EXTENDED_CONTEXT_BIT.
3702         (__frame_state_for): Likewise.
3703         (uw_init_context_1): Likewise.
3704         (_Unwind_GetGR): Updated.
3705         (_Unwind_SetGR): Likewise.
3706         (_Unwind_GetGRPtr): Likewise.
3707         (_Unwind_SetGRPtr): Likewise.
3708         (_Unwind_SetGRValue): Likewise.
3709         (_Unwind_GRByValue): Likewise.
3710         (uw_install_context_1): Likewise.
3711
3712         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3713         ASSUME_EXTENDED_UNWIND_CONTEXT.
3714         * doc/tm.texi: Regenerated.
3715
3716 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3717
3718         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3719
3720 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3721
3722         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3723         Linux/GNU-specific.
3724         (DEC Alpha Options, -mtune): Likewise.
3725         (MIPS Options, -march): native is supported on IRIX.
3726
3727 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3728
3729         * config/sparc/driver-sparc.c: New file.
3730         * config/sparc/x-sparc: New file.
3731         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3732         * config/sparc/sparc.opt (native): New value for enum processor_type.
3733         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3734         * config/sparc/sparc.c (sparc_option_override): Abort if
3735         PROCESSOR_NATIVE gets here.
3736         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3737         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3738         DRIVER_SELF_SPECS): Define.
3739         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3740         (SPARC Options, -mtune): Likewise.
3741         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3742         Substitute result.
3743         * configure: Regenerate.
3744         * Makefile.in (EXTRA_GCC_LIBS): Set.
3745         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3746         (cpp$(exeext)): Likewise.
3747
3748 2011-08-08  Richard Guenther  <rguenther@suse.de>
3749
3750         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3751         split out from ...
3752         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
3753         by composition.
3754
3755 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
3756
3757         PR tree-optimization/50005
3758         * ipa-inline-analysis (remap_predicate): Add cast to
3759         silence signed/unsigned comparison warning.
3760
3761 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3762
3763         * modulo-sched.c (get_sched_window): Use a table for the debug output.
3764         Print the current ii.
3765         (sms_schedule_by_order): Reduce whitespace in dump line.
3766
3767 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3768
3769         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3770         and one loop for successors.  Fix upper bound of memory range.
3771
3772 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3773
3774         PR target/50001
3775         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3776         (TARGET_INSTANTIATE_DECLS): New define.
3777
3778 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
3779             Mikael Morin   <mikael.morin@sfr.fr>
3780
3781         * Makefile.in (INCLUDES_FOR_TARGET): New.
3782         (LIBGCC2_CFLAGS): Use it.
3783         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3784
3785 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3786
3787         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3788         frame->save_regs_using_mov calculation.
3789
3790 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3791
3792         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3793         * config/i386/sse.md (castmode): New mode attribute.
3794         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3795         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3796
3797 2011-08-05  Jan Hubicka  <jh@suse.cz>
3798
3799         PR middle-end/49494
3800         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3801
3802 2011-08-05  Jan Hubicka  <jh@suse.cz>
3803
3804         PR middle-end/49500
3805         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3806         handle aliases.
3807         (create_emultls_var):New function.
3808         (ipa_lower_emutls): Handle aliases correctly.
3809
3810 2011-08-05  Jan Hubicka  <jh@suse.cz>
3811
3812         PR middle-end/49735
3813         * ipa-inline.c (recursive_inlining): Look through aliases.
3814
3815 2011-08-05  Jason Merrill  <jason@redhat.com>
3816
3817         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3818         declarations to beginning of function.
3819
3820 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3821
3822         PR rtl-optimization/49900
3823         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3824         ensure basic blocks stay in the same order.
3825
3826 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
3827
3828         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3829         store_bit_field.
3830         (s390_expand_atomic): Same.
3831
3832 2011-08-05  Richard Henderson  <rth@redhat.com>
3833
3834         PR rtl-opt/49977
3835         * dwarf2cfi.c (scan_insn_after): Split out of ...
3836         (scan_trace): ... here.  Correctly place notes wrt sequences.
3837
3838 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3839             Richard Henderson  <rth@redhat.com>
3840
3841         PR rtl-opt/49982
3842         * expr.c (fixup_args_size_notes): Look through no-op moves.
3843
3844 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3845
3846         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
3847         of "m" for operand 0.  Add type and mode attribute.
3848         (*pushxf_nointeger"): Use "<" constraint for operand 0.
3849         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
3850         constraint instead of "o" for opreand 1.
3851         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
3852         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
3853         operand 0, alternative 4.
3854         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
3855
3856 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3857
3858         * config/i386/predicates.md (lea_address_operand): Rename from
3859         no_seg_address_operand.
3860         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
3861         (*lea_1_zext): Ditto.
3862         (*lea_2): Ditto.
3863         (*lea_2_zext): Ditto.
3864
3865 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3866
3867         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
3868         parts.base and parts.index.
3869         * config/i386/predicates.md (aligned_operand): Ditto.
3870         (cmpxchg8b_pic_memory_operand): Ditto.
3871
3872 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3873
3874         * config/soft-fp: Move to ../libgcc.
3875         * Makefile.in (SFP_MACHINE): Remove.
3876         (libgcc-support): Remove $(SFP_MACHINE) dependency.
3877         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
3878         * config/arm/t-arm-softfp: Move to
3879         ../libgcc/config/arm/t-softfp.
3880         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
3881         * config/c6x/t-c6x-softfp: Remove.
3882         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
3883         * config/i386/t-fprules-softfp: Move to
3884         ../libgcc/config/t-softfp-tf.
3885         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
3886         * config/ia64/t-fprules-softfp: Remove.
3887         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
3888         * config/lm32/t-fprules-softfp: Remove.
3889         * config/moxie/sfp-machine.h: Remove.
3890         * config/moxie/t-moxie-softfp: Remove.
3891         * config/rs6000/darwin-ldouble-format: Move to
3892         ../libgcc/config/rs6000/ibm-ldouble-format.
3893         * config/rs6000/darwin-ldouble.c: Move to
3894         ../libgcc/config/rs6000/ibm-ldouble.c
3895         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
3896         * config/rs6000/libgcc-ppc64.ver: Likewise.
3897         * config/rs6000/sfp-machine.h: Likewise.
3898         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
3899         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
3900         (LIB2FUNCS_EXTRA): Remove.
3901         (TARGET_LIBGCC2_CFLAGS): Remove.
3902         * config/rs6000/t-aix52: Likewise
3903         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3904         $(srcdir)/config/rs6000/darwin-ldouble.c.
3905         (SHLIB_MAPFILES): Remove.
3906         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
3907         $(srcdir)/config/rs6000/darwin-ldouble.c.
3908         * config/rs6000/t-fprules-softfp: Move to
3909         ../libgcc/config/t-softfp-sfdf.
3910         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
3911         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
3912         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
3913         $(srcdir)/config/rs6000/darwin-ldouble.c.
3914         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
3915         * config/score/t-score-softfp: Remove.
3916         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
3917         soft-fp/t-softfp from tmake_file.
3918         (arm*-*-uclinux*): Likewise.
3919         (arm*-*-ecos-elf): Likewise.
3920         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
3921         (arm*-*-rtems*): Likewise.
3922         (arm*-*-elf): Likewise.
3923         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
3924         tmake_file.
3925         (moxie-*-uclinux*): Likewise.
3926         (moxie-*-rtems*): Likewise.
3927         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
3928         tmake_file.
3929         (lm32-*-rtems*): Likewise.
3930         (lm32-*-uclinux*): Likewise.
3931         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
3932         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3933         (powerpc-*-linux*, powerpc64-*-linux*): Remove
3934         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3935         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
3936         tmake_file.
3937         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
3938         tmake_file.
3939         (tic6x-*-uclinux): Likewise.
3940         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
3941         soft-fp/t-softfp from tmake_file.
3942         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
3943         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
3944         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
3945         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3946         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
3947
3948 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3949
3950         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
3951         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
3952         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
3953         TPBIT, TPBIT_FUNCS.
3954         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
3955         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
3956         Remove.
3957         * config/arm/t-vxworks: Likewise.
3958         * config/arm/t-wince-pe: Likewise.
3959         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
3960         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3961         * config/bfin/t-bfin-elf: Likewise.
3962         * config/bfin/t-bfin-linux: Likewise.
3963         * config/bfin/t-bfin-uclinux: Likewise.
3964         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
3965         Remove.
3966         * config/fr30/t-fr30: Likewise.
3967         * config/frv/t-frv: Likewise.
3968         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
3969         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3970         * config/m32c/t-m32c: Likewise.
3971         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
3972         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3973         * config/mcore/t-mcore: Likewise.
3974         * config/mep/t-mep: Likewise.
3975         * config/microblaze/t-microblaze: Likewise.
3976         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
3977         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3978         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
3979         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3980         * config/mn10300/t-linux: Remove.
3981         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3982         * config/pdp11/t-pdp11: Likewise.
3983         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
3984         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
3985         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3986         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
3987         * config/rs6000/t-aix52: Likewise.
3988         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3989         $(srcdir)/config/rs6000/ppc64-fp.c.
3990         * config/rs6000/t-fprules-fpbit: Remove.
3991         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
3992         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3993         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
3994         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3995         * config/sparc/t-elf: Likewise.
3996         * config/sparc/t-leon: Likewise.
3997         * config/sparc/t-leon3: Likewise.
3998         * config/spu/t-spu-elf: Likewise.
3999         (DPBIT_FUNCS): Remove.
4000         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4001         * config/v850/t-v850: Likewise.
4002         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
4003         (avr-*-*): Likewise.
4004         (h8300-*-rtems*): Set libgcc_tm_file.
4005         (h8300-*-elf*): Likewise.
4006         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
4007         tmake_file.
4008         (powerpc-*-eabisim*): Likewise.
4009         (powerpc-*-elf*): Likewise.
4010         (powerpc-*-eabialtivec*): Likewise.
4011         (powerpc-xilinx-eabi*): Likewise.
4012         (powerpc-*-eabi*): Likewise.
4013         (powerpc-*-rtems*): Likewise.
4014         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
4015         (powerpcle-*-elf*): Likewise.
4016         (powerpcle-*-eabisim*): Likewise.
4017         (powerpcle-*-eabi*): Likewise.
4018         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
4019         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
4020         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
4021         Remove.
4022
4023 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4024
4025         * Makefile.in (UNWIND_H): Remove.
4026         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
4027         ../libgcc/Makefile.in.
4028         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
4029         (LIBUNWINDDEP): Remove.
4030         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
4031         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
4032         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
4033         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
4034         Don't copy $(UNWIND_H).
4035         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
4036         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
4037         * aclocal.m4: Regenerate.
4038         * configure: Regenerate.
4039         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
4040         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
4041         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
4042         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
4043         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
4044         * config/arm/libunwind.S, config/arm/pr-support.c,
4045         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
4046         ../libgcc/config/arm.
4047         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
4048         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
4049         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
4050         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
4051         ($(T)frvend$(objext)): Likewise.
4052         * config/ia64/t-glibc (LIB2ADDEH): Remove.
4053         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
4054         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
4055         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
4056         ../libgcc/config/ia64.
4057         * config/ia64/t-hpux (LIB2ADDEH): Remove.
4058         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4059         * config/ia64/t-vms (LIB2ADDEH): Remove.
4060         * config/ia64/vms.h (UNW_IVMS_MODE,
4061         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4062         * config/picochip/t-picochip (LIB2ADDEH): Remove.
4063         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4064         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4065         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4066         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4067         $(srcdir)/../libgcc to refer to unwinder sources.
4068         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4069         * config/t-darwin (LIB2ADDEH): Remove.
4070         * config/t-freebsd (LIB2ADDEH): Remove.
4071         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4072         * config/t-libunwind-elf: Move to ../libgcc/config.
4073         * config/t-linux (LIB2ADDEH): Remove.
4074         * config/t-sol2 (LIB2ADDEH): Remove.
4075         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4076         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4077
4078 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
4079
4080         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4081
4082         * doc/invoke.texi: Document core-avx-i.
4083
4084 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4085
4086         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4087
4088 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
4089
4090         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4091         result of multiple results reduction when extracting the final
4092         value using scalar code.
4093
4094 2011-08-05  Richard Guenther  <rguenther@suse.de>
4095
4096         PR tree-optimization/49984
4097         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4098
4099 2011-08-05  Richard Guenther  <rguenther@suse.de>
4100
4101         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4102         return true for constant integer ranges.
4103         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4104         BIT_IOR_EXPR handling.
4105
4106 2011-08-04  Kai Tietz  <ktietz@redhat.com>
4107
4108         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4109         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4110
4111 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
4112
4113         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4114         pattern def statement, and its access macro.
4115         (NUM_PATTERNS): Set to 5.
4116         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4117         pattern def statement.
4118         (vect_transform_loop): Likewise.
4119         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4120         function vect_recog_over_widening_pattern ().
4121         (vect_operation_fits_smaller_type): New function.
4122         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4123         Likewise.
4124         (vect_pattern_recog_1): Move the code that marks pattern
4125         statements to vect_mark_pattern_stmts (), and call it.  Update
4126         documentation.
4127         * tree-vect-stmts.c (vect_supportable_shift): New function.
4128         (vect_analyze_stmt): Handle pattern def statement.
4129         (new_stmt_vec_info): Initialize pattern def statement.
4130
4131 2011-08-04  Richard Henderson  <rth@redhat.com>
4132
4133         PR target/49964
4134         * config/i386/i386.c (ix86_expand_call): Don't create nested
4135         PARALLELs for TARGET_VZEROUPPER.
4136         (ix86_split_call_vzeroupper): Fix extraction of the original call.
4137         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4138         recognize nested PARALLELs.
4139         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4140         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4141         *sibcall_value_pop_vzeroupper): Likewise.
4142
4143 2011-08-04  Richard Henderson  <rth@redhat.com>
4144
4145         PR middle-end/49968
4146         * calls.c (expand_call): Use fixup_args_size_notes for
4147         emit_stack_restore.
4148         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
4149         in non-standard modes.
4150
4151 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
4152
4153         * gcc.c (self_spec): New variable.
4154         (static_specs): Add self_spec.
4155         (main): Call do_self_spec on "self_spec" specs after reading
4156         user specs files.  Move compare_debug handling right after that.
4157
4158 2011-08-04  Richard Guenther  <rguenther@suse.de>
4159
4160         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
4161         (value_range_nonnegative_p): New function.
4162         (ssa_name_nonnegative_p): Use it.
4163         (value_range_constant_singleton): New function.
4164         (op_with_constant_singleton_value_range): Use it.
4165         (extract_range_from_binary_expr_1): New function, split out from ...
4166         (extract_range_from_binary_expr): ... this.  Remove fallback
4167         constant folding done here.
4168
4169 2011-08-04  Richard Guenther  <rguenther@suse.de>
4170
4171         PR tree-optimization/49806
4172         * tree-vrp.c (op_with_boolean_value_range_p): New function.
4173         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
4174         a new statement for a final conversion to bool.
4175
4176 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
4177
4178         * gengtype-state.c: Include "bconfig.h" if
4179         GENERATOR_FILE is defined, "config.h" otherwise.
4180         * gengtype.c: Likewise.
4181         * gengtype-lex.l: Likewise.
4182         * gengtype-parse.c: Likewise.
4183         * Makefile.in (gengtype-lex.o-warn): New variable.
4184         (plugin_resourcesdir): Likewise.
4185         (plugin_bindir): Likewise.
4186         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
4187         (MOSTLYCLEANFILES): Add gengtype$(exeext).
4188         (native): Depend on gengtype$(exeext) is $enable_plugin
4189         is set to "yes".
4190         (gtype.state): Depend on s-gtype. Use temporary file.
4191         (gengtype-lex.o): New rule.
4192         (gengtype-parse.o): Likewise.
4193         (gengtype-state.o): Likewise.
4194         (gengtype$(exeext)): Likewise.
4195         (install-gengtype): Likewise.
4196         (gengtype.o): Likewise.
4197         (build/gengtype.o): Depend on version.h.
4198         (build/gengtype-state): Depend on double-int.h, version.h,
4199         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
4200         (install-plugin): Depend on install-gengtype.
4201
4202 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
4203
4204         PR middle-end/49905
4205         * tree.h (init_attributes): New prototype.
4206         * attribs.c (init_attributes): No longer static.
4207
4208 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4209
4210         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
4211         maybe_suffix.
4212
4213 2011-08-03   David Li  <davidxl@google.com>
4214
4215         * tree-optimize.c (execute_fixup_cfg): Fix up entry
4216         outgoing edge counts after inlining.
4217
4218 2011-08-03   David Li  <davidxl@google.com>
4219
4220         * profile.c (compute_branch_probabilities): Compute
4221         function frequency after profile annotation.
4222
4223 2011-08-04  Alan Modra  <amodra@gmail.com>
4224
4225         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
4226         use_backchain_to_restore_sp initialisation.
4227         (rs6000_legitimate_offset_address_p): Simplify offset test.
4228
4229 2011-08-03  Richard Henderson  <rth@redhat.com>
4230
4231         * config/spu/spu.md: Use define_c_enum instead of define_constants.
4232         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
4233         (UNSPECV_NOP): New.
4234
4235 2011-08-03  Richard Henderson  <rth@redhat.com>
4236
4237         PR target/34888
4238         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
4239
4240 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
4241
4242         PR tree-optimization/49948
4243         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
4244
4245 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
4246
4247         * config/m32c/m32c.c (class_sizes): Remove.
4248         (reduce_class): Change arguments and return type to reg_class_t.
4249         Change type cc var to HARD_REG_SET. Change type best var to
4250         reg_class_t. Change type best_size var to unsigned int. Remove
4251         initialization class_sizes var. Use reg_class_size array instead
4252         of class_sizes. Use reg_class_contents array instead
4253         of class_contents.
4254
4255 2011-08-03  Richard Guenther  <rguenther@suse.de>
4256
4257         PR middle-end/49958
4258         * fold-const.c (fold_binary_loc): Only associate
4259         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
4260         overflow wraps.
4261
4262 2011-08-03  Alan Modra  <amodra@gmail.com>
4263
4264         PR rtl-optimization/49941
4265         * jump.c (mark_jump_label): Comment.
4266         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
4267         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
4268         (mark_used_flags): Don't mark RETURN.
4269
4270 2011-08-03  Richard Guenther  <rguenther@suse.de>
4271
4272         PR tree-optimization/49938
4273         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
4274         deal with a POLYNOMIAL_CHREC.
4275
4276 2011-08-03  Revital Eres  <revital.eres@linaro.org>
4277
4278         * modulo-sched.c (calculate_stage_count,
4279         calculate_must_precede_follow, get_sched_window,
4280         try_scheduling_node_in_cycle, remove_node_from_ps): Add
4281         declaration.
4282         (update_node_sched_params, set_must_precede_follow, optimize_sc):
4283         New functions.
4284         (reset_sched_times): Call update_node_sched_params.
4285         (sms_schedule): Call optimize_sc.
4286         (get_sched_window): Change function arguments.
4287         (sms_schedule_by_order): Update call to get_sched_window.
4288         Call set_must_precede_follow.
4289         (calculate_stage_count): Add function argument.
4290
4291 2011-08-02  Richard Henderson  <rth@redhat.com>
4292
4293         PR target/49864
4294         PR target/49879
4295         * reg-notes.def (REG_ARGS_SIZE): New.
4296         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
4297         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
4298         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
4299         different stack levels.
4300         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
4301         (maybe_move_args_size_note): New.
4302         (combine_stack_adjustments_for_block): Use it.
4303         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
4304         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
4305         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
4306         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
4307         (cur_cfa): New.
4308         (queued_args_size): Remove.
4309         (add_cfi_args_size): Assert size is non-negative.
4310         (stack_adjust_offset, dwarf2out_args_size): Remove.
4311         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
4312         (notice_args_size, notice_eh_throw): New.
4313         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
4314         (dwarf2out_frame_debug_adjust_cfa): Likewise.
4315         (dwarf2out_frame_debug_cfa_offset): Likewise.
4316         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
4317         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
4318         (change_cfi_row): Don't emit args_size.
4319         (maybe_record_trace_start_abnormal): Split out from ...
4320         (maybe_record_trace_start): Here.  Set args_size_undefined.
4321         (create_trace_edges): Update to match.
4322         (scan_trace): Handle REG_ARGS_SIZE.
4323         (connect_traces): Connect args_size between EH insns.
4324         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
4325         * explow.c (suppress_reg_args_size): New.
4326         (adjust_stack_1): Split out from ...
4327         (adjust_stack): ... here.
4328         (anti_adjust_stack): Use it.
4329         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
4330         * expr.c (mem_autoinc_base): New.
4331         (fixup_args_size_notes): New.
4332         (emit_single_push_insn_1): Rename from emit_single_push_insn.
4333         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
4334         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
4335         * reload1.c (reload_as_needed): Likewise.
4336         * rtl.h (fixup_args_size_notes): Declare.
4337
4338 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
4339
4340         PR bootstrap/49914
4341         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
4342         of abs.
4343         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4344         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4345
4346 2011-08-02  Richard Henderson  <rth@redhat.com>
4347
4348         * config/h8300/h8300.c (push, pop): Return the insn.
4349         (h8300_swap_into_er6): Generate correct unwind info.
4350         (h8300_swap_out_of_er6): Likewise.
4351         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
4352         complex cfa expression.
4353         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
4354
4355 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
4356
4357         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4358
4359 2011-08-02  Richard Henderson  <rth@redhat.com>
4360
4361         PR target/49878
4362         * config/h8300/h8300.c (h8300_move_ok): New.
4363         * config/h8300/h8300-protos.h: Declare it.
4364         * config/h8300/h8300.md (P): New mode iterator.
4365         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
4366         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
4367         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
4368         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
4369         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4370         and pushqi1_h8300hs_normal; use PRE_MODIFY and
4371         register_no_sp_elim_operand.
4372         (*pushhi1_h8300hs_<P>): Similarly.
4373         (pushqi1, pushhi1, pushhi1_h8300): Remove.
4374         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4375
4376 2011-08-02  Richard Henderson  <rth@redhat.com>
4377
4378         PR target/49881
4379         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4380
4381 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
4382
4383         * c-parser.c (enum c_parser_prec): New enum, moved from within
4384         c_parser_binary_expression.
4385         (c_parser_binary_expression): Add PREC argument.  Stop parsing
4386         if operator has lower or equal precedence than PREC.
4387         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4388         callers.
4389         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4390         Adjust c_finish_omp_atomic caller.
4391         (c_parser_omp_taskyield): New function.
4392         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4393         (c_parser_omp_clause_name): Handle final and mergeable clauses.
4394         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4395         functions.
4396         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4397         and PRAGMA_OMP_CLAUSE_MERGEABLE.
4398         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4399         (c_parser_omp_clause_reduction): Handle min and max.
4400         * c-typeck.c (c_finish_omp_clauses): Don't complain about
4401         const qualified predetermined vars in firstprivate clause.
4402         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4403         Handle MIN_EXPR and MAX_EXPR.
4404         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4405         and OMP_CLAUSE_MERGEABLE.
4406         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4407         and OMP_ATOMIC_CAPTURE_NEW.
4408         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4409         OMP_CLAUSE_MERGEABLE.
4410         (omp_clause_code_name): Likewise.
4411         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4412         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4413         and OMP_CLAUSE_MERGEABLE.
4414         (OMP_CLAUSE_FINAL_EXPR): Define.
4415         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4416         OMP_CLAUSE_MERGEABLE.
4417         (expand_task_call): Likewise.
4418         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4419         (expand_omp_atomic_fetch_op): Handle cases where old or new
4420         value is needed afterwards.
4421         (expand_omp_atomic): Call expand_omp_atomic_load resp.
4422         expand_omp_atomic_store.
4423         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4424         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4425         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4426         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4427         * tree-nested.c (convert_nonlocal_omp_clauses,
4428         convert_local_omp_clauses): Likewise.
4429         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4430         OMP_ATOMIC_CAPTURE_NEW): New.
4431         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4432         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4433         New inlines.
4434         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4435         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4436         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4437
4438 2011-08-02  Kai Tietz  <ktietz@redhat.com>
4439
4440         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4441         boolean-type.
4442         (ssa_forward_propagate_and_combine): Interprete result of
4443         forward_propagate_comparison.
4444         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4445         boolean-typed operands for comparisons.
4446
4447 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
4448
4449         * config/avr/libgcc.S: Gather related function in the
4450         same input section.
4451         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4452         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4453         references.
4454         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4455         __udivmodsi4, __divmodsi4, __prologue_saves__,
4456         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4457         __do_copy_data, __do_clear_bss, __do_global_ctors,
4458         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4459
4460 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
4461
4462         PR target/47766
4463         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4464         (stack_protect_test): The pattern compares ptr_mode value.
4465
4466 2011-08-02  Alan Modra  <amodra@gmail.com>
4467
4468         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4469         note for save_LR_around_toc_setup sequence.
4470
4471 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4472
4473         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4474
4475 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
4476             Joseph Myers  <joseph@codesourcery.com>
4477
4478         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4479         * hwint.c: Include diagnostic-core.h.
4480         (abs_hwi): New.
4481         (gcd): Moved here...
4482         (pos_mul_hwi): New.
4483         (mul_hwi): New.
4484         (least_common_multiple): Moved here...
4485         * hwint.h (gcd): ... from here.
4486         (least_common_multiple): ... from here.
4487         (HOST_WIDE_INT_MIN): New.
4488         (HOST_WIDE_INT_MAX): New.
4489         (abs_hwi): Declared.
4490         (gcd): Declared.
4491         (pos_mul_hwi): Declared.
4492         (mul_hwi): Declared.
4493         (least_common_multiple): Declared.
4494         * omega.c (check_pos_mul): Removed.
4495         (check_mul): Removed.
4496         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4497         mul_hwi instead of check_mul.
4498
4499 2011-08-01  Richard Henderson  <rth@redhat.com>
4500
4501         PR target/49881
4502         * config/avr/avr.h (PUSH_ROUNDING): New.
4503         * config/avr/avr.md (pushqi1): Rename from *pushqi.
4504         (*pushhi, *pushsi, *pushsf): Remove.
4505         (MPUSH): New mode iterator.
4506         (push<MPUSH>1): New expander.
4507
4508 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
4509
4510         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4511         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4512         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4513         mmix_preferred_output_reload_class): Remove.
4514         * config/mmix/mmix.c (mmix_preferred_reload_class,
4515         mmix_preferred_output_reload_class): Make static. Change rclass
4516         argument and return type to reg_class_t.
4517         (TARGET_PREFERRED_RELOAD_CLASS,
4518         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4519
4520 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
4521
4522         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4523         handling.
4524
4525 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4526
4527         PR target/47766
4528         * config/i386/i386.md (PTR): New.
4529         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4530         (stack_protect_test): Likewise.
4531         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4532         (stack_tls_protect_set_<mode>): Likewise.
4533         (stack_tls_protect_test_<mode>): Likewise.
4534
4535 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
4536
4537         PR target/49927
4538         * config/i386/i386.c (ix86_address_subreg_operand): New.
4539         (ix86_decompose_address): Use ix86_address_subreg_operand.
4540         (ix86_legitimate_address_p): Do not assert that subregs satisfy
4541         register_no_elim_operand in DImode.
4542
4543 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
4544
4545         PR tree-optimization/49926
4546         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4547         in a chain doesn't have uses both inside and outside the loop.
4548
4549 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4550
4551         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4552         * config/avr/avr-devices.c (avr_mcu_types): Use it.
4553         * config/avr/avr-mcus.def (AVR_MCU): Use it.
4554         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4555         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4556         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4557         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4558         to detect if XJMP must not be skipped.
4559
4560 2011-08-02  Alan Modra  <amodra@gmail.com>
4561
4562         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4563         Delete.
4564         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4565         (rs6000_emit_prologue): Don't prematurely return when
4566         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
4567         save_toc_in_prologue case.
4568         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4569         calls_alloca.
4570
4571 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4572
4573         * config/avr/avr-devices.c: Delete SVN property svn:executable.
4574         * config/avr/predicates.md: Ditto.
4575         * config/avr/driver-avr.c: Ditto.
4576         * config/avr/genopt.sh: Set SVN property svn:executable to *.
4577
4578 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4579
4580         * calls.c (emit_library_call_value_1): Declare size only if
4581         BLOCK_REG_PADDING is defined.
4582
4583 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
4584
4585         PR target/49547
4586         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4587         (x86_64-*-*): Likewise.
4588         * config/i386/i386.opt (mlzcnt): New.
4589         * config/i386/abmintrin.h: File removed.
4590         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4591         * config/i386/lzcntintrin.h: ... here.  New file.
4592         (__lzcnt): Rename to ...
4593         (__lzcnt32): ... this.
4594         * config/i386/bmiintrin.h (head): Update copyright year.
4595         (__lzcnt_u16): Removed.
4596         (__lzcnt_u32): Likewise.
4597         (__lzcnt_u64): Likewise.
4598         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
4599         is defined, remove abmintrin.h.
4600         * config/i386/cpuid.h (bit_LZCNT): New.
4601         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4602         LZCNT feature.
4603         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4604         __LZCNT__ if needed.
4605         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
4606         (ix86_option_override_internal): Handle LZCNT option.
4607         (ix86_valid_target_attribute_inner_p): Likewise.
4608         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
4609         * config/i386/i386.h (TARGET_LZCNT): New.
4610         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
4611         * config/i386/i386.md (clz<mode>2): Update insn constraint.
4612         (clz<mode>2_lzcnt): Likewise.
4613         * doc/invoke.texi: Mention -mlzcnt option.
4614         * doc/extend.texi: Likewise.
4615
4616 2011-08-01  Julian Brown  <julian@codesourcery.com>
4617
4618         * configure.ac (fixed-point): Add ARM support.
4619         * configure: Regenerate.
4620         * config/arm/arm.c (arm_fixed_mode_set): New struct.
4621         (arm_set_fixed_optab_libfunc): New.
4622         (arm_set_fixed_conv_libfunc): New.
4623         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
4624         ARM-specific names.
4625         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
4626         return values in SImode.
4627         (arm_return_in_msb): Return fixed-point types in the msb.
4628         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
4629         upwards.
4630         (arm_scalar_mode_supported_p): Support fixed-point modes.
4631         (arm_vector_mode_supported_p): Support vector fixed-point modes.
4632         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
4633         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
4634         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
4635         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
4636         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
4637         New mode iterators.
4638         (qaddsub_suf): New mode attribute.
4639         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
4640         vector modes.
4641         * config/arm/predicates.md (sat_shift_operator): New predicate.
4642         * config/arm/arm-fixed.md: New.
4643         * config/arm/arm.md: Include arm-fixed.md.
4644         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
4645
4646 2011-08-01  Julian Brown  <julian@codesourcery.com>
4647
4648         * calls.c (emit_library_call_value_1): Support padding for libcall
4649         arguments and return values.
4650         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
4651         downwards in big-endian mode.
4652
4653 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4654
4655         PR debug/49887
4656         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4657         * config/sol2-protos.h: Likewise.
4658         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4659         solaris_code_end.
4660         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4661         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4662         solaris_file_end.
4663         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4664
4665 2011-08-01  Julian Brown  <julian@codesourcery.com>
4666
4667         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4668
4669 2011-08-01  Julian Brown  <julian@codesourcery.com>
4670
4671         * final.c (output_addr_const): Print fixed-point constants as
4672         decimal not hex.
4673
4674 2011-08-01  Richard Guenther  <rguenther@suse.de>
4675
4676         * stor-layout.c (initialize_sizetypes): Properly sign-extend
4677         bitsiztype TYPE_MAX_VALUE.
4678
4679 2011-08-01  Julian Brown  <julian@codesourcery.com>
4680
4681         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4682         comparison helpers.
4683
4684 2011-07-31  Richard Henderson  <rth@redhat.com>
4685
4686         * config/h8300/crti.asm: Add flags to .section directive.
4687         * config/h8300/crtn.asm: Likewise.
4688
4689 2011-07-31  Richard Henderson  <rth@redhat.com>
4690
4691         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4692         * tree.c (build_common_tree_nodes): Likewise.
4693
4694 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4695
4696         PR target/49880
4697         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4698         (divsi3_i1): Likewise.
4699
4700 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4701
4702         PR tree-optimization/49749
4703         * tree-ssa-reassoc.c (get_rank): New forward declaration.
4704         (PHI_LOOP_BIAS): New macro.
4705         (phi_rank): New function.
4706         (loop_carried_phi): Likewise.
4707         (propagate_rank): Likewise.
4708         (get_rank): Add calls to phi_rank and propagate_rank.
4709
4710 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4711
4712         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4713         of TARGET_64BIT.
4714         (PTRDIFF_TYPE): Likewise.
4715
4716 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
4717
4718         PR target/49920
4719         * config/i386/i386.md (strset): Do not expand strset_singleop
4720         when %eax or $edi are fixed.
4721         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4722         (*strsetsi_1): Ditto.
4723         (*strsethi_1): Ditto.
4724         (*strsetqi_1): Ditto.
4725         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4726         (*rep_stossi): Ditto.
4727         (*rep_stosqi): Ditto.
4728         (*strlenqi_1): Ditto.
4729         (cmpstrnsi): Also fail when %ecx is fixed.
4730         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4731         (*cmpstrnqi_1): Ditto.
4732         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4733         (*strmovsi_1): Ditto.
4734         (*strmovhi_1): Ditto.
4735         (*strmovqi_1): Ditto.
4736         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4737         (*rep_movsi): Ditto.
4738         (*rep_movqi): Ditto.
4739
4740 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
4741
4742         PR target/47908
4743         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4744         Disable instruction scheduling for non-ColdFire targets.
4745         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4746
4747 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4748
4749         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4750         of anti-dep edge from a branch.
4751         (add_cross_iteration_register_deps): Create anti-dep edge from
4752         a branch.
4753
4754 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4755
4756         * modulo-sched.c: Change comment.
4757         (reset_sched_times): Fix print message.
4758         (print_partial_schedule): Add print info.
4759
4760 2011-07-31  Tom de Vries  <tom@codesourcery.com>
4761
4762         PR middle-end/43513
4763         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4764         get_object_alignment and TYPE_ALIGN.
4765
4766 2011-07-30  Tom de Vries  <tom@codesourcery.com>
4767
4768         PR middle-end/43513
4769         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4770         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4771
4772 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4773
4774         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4775         <sys/sbd.h>.
4776         (cpu_types): New array.
4777         (cputype): New function.
4778         (host_detect_local_cpu): Only define buf, f if !__sgi__.
4779         Use scaninvent instead of /proc/cpuinfo if __sgi__.
4780         * config.host: Also use driver-native.o, mips/x-native on
4781         mips-sgi-irix*.
4782         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4783         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4784         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4785
4786 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
4787
4788         PR middle-end/49897
4789         PR middle-end/49898
4790         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4791         in nested parallel and outer is a gimple_reg, mark it as addressable
4792         and set its bit in task_shared_vars bitmap too.
4793
4794 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4795
4796         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4797
4798 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4799
4800         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4801         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4802         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4803         AMASK_LOCKPFTCHOK): Define.
4804         (host_detect_local_cpu): Remove buf, f, cpu_names.
4805         Define cpu_types, implver, amask.
4806         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4807         native CPU.
4808         * config.host: Also use driver-alpha.o, alpha/x-alpha on
4809         alpha*-dec-osf*.
4810         * config/alpha/osf5.h [__alpha__ || __alpha]
4811         (host_detect_local_cpu): Declare.
4812         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4813         (DRIVER_SELF_SPECS): Define.
4814
4815 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4816
4817         PR target/47715
4818         * config/i386/i386.md (*load_tp_x32): New.
4819         (*load_tp_x32_zext): Ditto.
4820         (*add_tp_x32): Ditto.
4821         (*add_tp_x32_zext): Ditto.
4822         (*load_tp_<mode>): Disable for TARGET_X32 targets.
4823         (*add_tp_<mode>): Ditto.
4824         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4825         ptr_mode and convert to Pmode if needed.
4826
4827 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4828
4829         PR target/49687
4830         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4831         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4832         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4833         Add X to register footprint: Clobber r26/r27.
4834
4835 2011-07-29  Richard Guenther  <rguenther@suse.de>
4836
4837         * builtins.c (fold_builtin_signbit): Build the comparison
4838         with a proper type.
4839
4840 2011-07-29  Richard Guenther  <rguenther@suse.de>
4841
4842         PR tree-optimization/49893
4843         * tree-predcom.c (suitable_reference_p): Volatile references
4844         are not suitable.
4845
4846 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4847
4848         PR target/49313
4849         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4850         (__ctzsi2): Result for 0 may be undefined.
4851         (__ctzhi2): Result for 0 may be undefined.
4852         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4853         (__popcountsi2): Ditto. And don't clobber r26.
4854         (__popcountdi2): Ditto. And don't clobber r27.
4855         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4856         (parityhi2): New expand.
4857         (paritysi2): New expand.
4858         (popcounthi2): New expand.
4859         (popcountsi2): New expand.
4860         (clzhi2): New expand.
4861         (clzsi2): New expand.
4862         (ctzhi2): New expand.
4863         (ctzsi2): New expand.
4864         (ffshi2): New expand.
4865         (ffssi2): New expand.
4866         (copysignsf3): New insn.
4867         (bswapsi2): New expand.
4868         (*parityhi2.libgcc): New insn.
4869         (*parityqihi2.libgcc): New insn.
4870         (*paritysihi2.libgcc): New insn.
4871         (*popcounthi2.libgcc): New insn.
4872         (*popcountsi2.libgcc): New insn.
4873         (*popcountqi2.libgcc): New insn.
4874         (*popcountqihi2.libgcc): New insn-and-split.
4875         (*clzhi2.libgcc): New insn.
4876         (*clzsihi2.libgcc): New insn.
4877         (*ctzhi2.libgcc): New insn.
4878         (*ctzsihi2.libgcc): New insn.
4879         (*ffshi2.libgcc): New insn.
4880         (*ffssihi2.libgcc): New insn.
4881         (*bswapsi2.libgcc): New insn.
4882
4883 2011-07-29  Richard Guenther  <rguenther@suse.de>
4884
4885         * tree-vrp.c (get_value_range): Only set parameter default
4886         definitions to varying, leave others at undefined.
4887         (extract_range_from_binary_expr): Fix undefined handling.
4888         (vrp_visit_phi_node): Handle merged undefined state.
4889
4890 2011-07-29  Wei Guozhi  <carrot@google.com>
4891
4892         PR rtl-optimization/49799
4893         * combine.c (make_compound_operation): Check if the bit field is valid
4894         before change it to bit field extraction.
4895
4896 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4897
4898         PR rtl-optimization/49891
4899         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
4900         newly created returnjumps.
4901
4902 2011-07-28  DJ Delorie  <dj@redhat.com>
4903
4904         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
4905         local frame in a naked function, and produce a suitable error for
4906         that specific case.
4907
4908         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
4909         registers to be reloaded in HI classes when the target is HI.
4910
4911 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4912
4913         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
4914         bound_one, bound_two.
4915
4916 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4917
4918         PR middle-end/48648
4919         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
4920         CLAST assignments.
4921         (translate_clast): Same.
4922         (translate_clast_assignment): New.
4923
4924 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4925
4926         PR tree-optimization/49876
4927         * sese.c (rename_uses): Do not return false on gloog_error: set
4928         the new_expr to integer_zero_node and continue code generation.
4929         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
4930
4931 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4932
4933         PR debug/49846
4934         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
4935         arguments also check if they aren't initialized with a MODE_INT
4936         mode of the same size.
4937
4938 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
4939
4940         * expr.c (get_bit_range): Handle *MEM_REF's.
4941
4942 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
4943
4944         * rtlanal.c (tablejump_p): False for returns.
4945         * reorg.c (first_active_target_insn): New static function.
4946         (find_end_label): Set JUMP_LABEL for a new returnjump.
4947         (optimize_skip, get_jump_flags, rare_destination,
4948         mostly_true_jump, get_branch_condition,
4949         steal_delay_list_from_target, own_thread_p,
4950         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
4951         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
4952         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
4953         * jump.c (delete_related_insns): Likewise.
4954         (jump_to_label_p): New function.
4955         (redirect_target): New static function.
4956         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
4957         (redirect_jump_1): Assert that the new label is nonnull.
4958         (redirect_jump): Likewise.
4959         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
4960         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
4961         exit block.
4962         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
4963         changed.  Ensure that the right label is passed to redirect_jump.
4964         * function.c (emit_return_into_block,
4965         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
4966         ret_rtx in their JUMP_LABEL.
4967         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
4968         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
4969         pass ret_rtx as label.
4970         * cfglayout.c (fixup_reorder_chain): Use
4971         force_nonfallthru_and_redirect rather than force_nonfallthru.
4972         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
4973         * rtl.h (ANY_RETURN_P): New macro.
4974         (jump_to_label_p): Declare.
4975         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
4976         JUMP_LABELs.
4977         (mark_target_live_regs): Likewise.
4978         * basic-block.h (force_nonfallthru_and_redirect): Declare.
4979         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
4980         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
4981         alpha_tablejump_best_label): Remove functions.
4982         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
4983         alpha_tablejump_best_label): Remove declarations.
4984         * config/sh/sh.c (barrier_align, split_branches): Adjust for
4985         ret_rtx in JUMP_LABELs.
4986         * config/arm/arm.c (is_jump_table): Likewise.
4987
4988 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4989
4990         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
4991         special predicate.  Remove explicit mode checks.
4992
4993 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4994
4995         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
4996         DW_AT_data_member_location containing just DW_OP_plus_uconst.
4997
4998         PR debug/49871
4999         * dwarf2out.c (size_of_die, value_format, output_die): Use
5000         DW_FORM_udata instead of DW_FORM_data[48] for
5001         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
5002
5003 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5004
5005         * config/i386/i386.md (*tls_global_dynamic_64): Update
5006         length attribute.
5007
5008 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5009
5010         PR target/47715
5011         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
5012         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
5013         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
5014         (tls_dynamic_gnu2_64): Ditto.
5015         (*tls_dynamic_gnu2_lea_64): Ditto.
5016         (*tls_dynamic_gnu2_call_64): Ditto.
5017         (*tls_dynamic_gnu2_combine_64): Ditto.
5018
5019 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5020
5021         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
5022
5023 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5024
5025         PR target/47364
5026         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
5027
5028 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5029
5030         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
5031         before the core constraints. Adjust attributes.
5032         ("*thumb2_movdf_vfp"): Likewise.
5033
5034 2011-07-28  Kai Tietz  <ktietz@redhat.com>
5035
5036         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
5037         (simplify_truth_ops_using_ranges): Likewise.
5038         (build_assert_expr_for): Likewise.
5039         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
5040         and handle BIT_NOT_EXPR for truth-operation.
5041
5042 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
5043
5044         PR target/49313
5045         Undo r176835 from trunk
5046         2011-07-27  Georg-Johann Lay
5047
5048 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
5049
5050         PR target/49687
5051         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
5052         Add _muluhisi3, _mulshisi3, _usmulhisi3.
5053         * config/avr/libgcc.S (__mulsi3): Rewrite.
5054         (__mulhisi3): Rewrite.
5055         (__umulhisi3): Rewrite.
5056         (__usmulhisi3): New.
5057         (__muluhisi3): New.
5058         (__mulshisi3): New.
5059         (__mulohisi3): New.
5060         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5061         declare.
5062         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5063         (pseudo_register_or_const_int_operand): New.
5064         (combine_pseudo_register_operand): New.
5065         (u16_operand): New.
5066         (s16_operand): New.
5067         (o16_operand): New.
5068         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5069         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5070         (any_extend, any_extend2): New code iterators.
5071         (extend_prefix): New code attribute.
5072         (mulsi3): Rewrite. Turn insn to expander.
5073         (mulhisi3): Ditto.
5074         (umulhisi3): Ditto.
5075         (usmulhisi3): New expander.
5076         (*mulsi3): New insn-and-split.
5077         (mulu<mode>si3): New insn-and-split.
5078         (muls<mode>si3): New insn-and-split.
5079         (mulohisi3): New insn-and-split.
5080         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5081         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5082         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5083         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5084         insn-and-split.
5085         (*mulsi3_call): Rewrite.
5086         (*mulhisi3_call): Rewrite.
5087         (*umulhisi3_call): Rewrite.
5088         (*usmulhisi3_call): New insn.
5089         (*muluhisi3_call): New insn.
5090         (*mulshisi3_call): New insn.
5091         (*mulohisi3_call): New insn.
5092         (extendqihi2): Use combine_pseudo_register_operand as predicate
5093         for operand 1.
5094         (extendqisi2): Ditto.
5095         (zero_extendqihi2): Ditto.
5096         (zero_extendqisi2): Ditto.
5097         (zero_extendhisi2): Ditto.
5098         (extendhisi2): Ditto. Don't early-clobber operand 0.
5099
5100 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5101
5102         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5103
5104 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5105
5106         PR tree-optimization/49471
5107         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5108         iv only when the largest type is unsigned.  Do not call
5109         lang_hooks.types.type_for_size.
5110
5111 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5112
5113         PR middle-end/45450
5114         * graphite-poly.c (apply_poly_transforms): Disable legality check
5115         after an openscop read.
5116
5117 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5118
5119         PR middle-end/47691
5120         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5121         copy_bb_and_scalar_dependences.
5122         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
5123         (graphite_copy_stmts_from_block): Update call to rename_uses.
5124         (copy_bb_and_scalar_dependences): Update call to
5125         graphite_copy_stmts_from_block.
5126         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5127
5128 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
5129
5130         PR target/49313
5131         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5132         (__ctzsi2): Result for 0 may be undefined.
5133         (__ctzhi2): Result for 0 may be undefined.
5134         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5135         (__popcountsi2): Ditto. And don't clobber r26.
5136         (__popcountdi2): Ditto. And don't clobber r27.
5137         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5138         (parityhi2): New expand.
5139         (paritysi2): New expand.
5140         (popcounthi2): New expand.
5141         (popcountsi2): New expand.
5142         (clzhi2): New expand.
5143         (clzsi2): New expand.
5144         (ctzhi2): New expand.
5145         (ctzsi2): New expand.
5146         (ffshi2): New expand.
5147         (ffssi2): New expand.
5148         (copysignsf3): New insn.
5149         (bswapsi2): New expand.
5150         (*parityhi2.libgcc): New insn.
5151         (*parityqihi2.libgcc): New insn.
5152         (*paritysihi2.libgcc): New insn.
5153         (*popcounthi2.libgcc): New insn.
5154         (*popcountsi2.libgcc): New insn.
5155         (*popcountqi2.libgcc): New insn.
5156         (*popcountqihi2.libgcc): New insn-and-split.
5157         (*clzhi2.libgcc): New insn.
5158         (*clzsihi2.libgcc): New insn.
5159         (*ctzhi2.libgcc): New insn.
5160         (*ctzsihi2.libgcc): New insn.
5161         (*ffshi2.libgcc): New insn.
5162         (*ffssihi2.libgcc): New insn.
5163         (*bswapsi2.libgcc): New insn.
5164
5165 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
5166
5167         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
5168         the mode of symbolic_opreand RTXes.
5169
5170 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
5171
5172         * config/i386/predicates.md (x86_64_movabs_operand): Return false
5173         for pic_32bit_operand RTXes.
5174         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
5175         in DImode.
5176
5177 2011-07-27  Kai Tietz  <ktietz@redhat.com>
5178
5179         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
5180         for 32-bit, too.
5181         (ix86_handle_abi_attribute): Allow function attributes
5182         ms_abi/sysv_abi in 32-bit mode, too.
5183         * doc/extend.texi: Adjust attribute documentation.
5184
5185         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
5186         expression handling.
5187         (and_var_with_comparison_1): Likewise.
5188
5189 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
5190
5191         * params.h (ALLOW_STORE_DATA_RACES): New.
5192         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
5193         * Makefile.in (expr.o): Depend on PARAMS_H.
5194         * machmode.h (get_best_mode): Add argument.
5195         * fold-const.c (optimize_bit_field_compare): Add argument to
5196         get_best_mode.
5197         (fold_truthop): Same.
5198         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
5199         * expr.c (emit_group_store): Same.
5200         (copy_blkmode_from_reg): Same.
5201         (write_complex_part): Same.
5202         (optimize_bitfield_assignment_op): Add argument.
5203         Add argument to get_best_mode.
5204         (get_bit_range): New.
5205         (expand_assignment): Calculate maxbits and pass it down accordingly.
5206         (store_field): New argument.
5207         (expand_expr_real_2): New argument to store_field.  Include params.h.
5208         * expr.h (store_bit_field): New argument.
5209         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
5210         into account maxbits.
5211         * calls.c (store_unaligned_arguments_into_pseudos): New argument
5212         to store_bit_field.
5213         * expmed.c (store_bit_field_1): New argument.  Use it.
5214         (store_bit_field): Same.
5215         (store_fixed_bit_field): Same.
5216         (store_split_bit_field): Same.
5217         (extract_bit_field_1): Pass new argument to get_best_mode.
5218         (extract_bit_field): Same.
5219         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
5220         * doc/invoke.texi: Document parameter allow-store-data-races.
5221
5222 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
5223
5224         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
5225
5226 2011-07-27  Kai Tietz  <ktietz@redhat.com>
5227
5228         * tree-vrp.c (extract_range_from_binary_expr): Remove
5229         TRUTH-binary cases and add new bitwise-cases.
5230         (extract_range_from_assignment): Likewise.
5231         (register_edge_assert_for_1): Likeiwise.
5232         (register_edge_assert_for): Likewise.
5233         (simplify_truth_ops_using_ranges): Likewise.
5234         (simplify_stmt_using_ranges): Likewise.
5235
5236 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
5237
5238         PR target/47372
5239         * config/i386/i386.c (ix86_delegitimize_address): Call
5240         simplify_gen_subreg for PIC with mode of x only if modes of
5241         x and orig_x are different.
5242
5243 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
5244
5245         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
5246         to GC allocated copy of the string.
5247         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
5248         before .debug_line, not after it.
5249
5250 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5251
5252         PR middle-end/47046
5253         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
5254         evolution_function_is_affine_p on CHREC_RIGHT.
5255
5256 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5257
5258         * tree-data-ref.c (max_stmt_executions_tree): Do not call
5259         lang_hooks.types.type_for_size.
5260
5261 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5262
5263         PR middle-end/47653
5264         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
5265         loops using wrapping semantics.
5266
5267 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5268
5269         PR middle-end/48805
5270         * tree-scalar-evolution.c (instantiate_scev_r): Return
5271         chrec_dont_know for ADDR_EXPR.
5272
5273 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5274             H.J. Lu  <hongjiu.lu@intel.com>
5275
5276         PR target/47369
5277         PR target/49853
5278         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
5279         if legitimize_tls_address returned operand in wrong mode. Allow
5280         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
5281         if legitimize_pic_address returned operand in wrong mode.
5282
5283 2011-07-26  Martin Jambor  <mjambor@suse.cz>
5284
5285         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
5286         return false for invariants.
5287
5288 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5289
5290         * config/i386/i386.md (add->lea splitter): Implement using SWI
5291         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
5292         (add->lea zext splitter): Change operand 2 predicate to
5293         x86_64_nonmemory_operand.
5294
5295 2011-07-26  Richard Guenther  <rguenther@suse.de>
5296
5297         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
5298         frequency makes everything hot.
5299
5300 2011-07-26  Richard Guenther  <rguenther@suse.de>
5301
5302         PR tree-optimization/49840
5303         * tree-vrp.c (range_fits_type_p): Properly handle full
5304         double-int precision.
5305
5306 2011-07-26  Martin Jambor  <mjambor@suse.cz>
5307
5308         PR bootstrap/49786
5309         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
5310         counts.
5311         (update_specialized_profile): Likewise.
5312
5313 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5314             H.J. Lu  <hongjiu.lu@intel.com>
5315
5316         PR target/47381
5317         PR target/49832
5318         PR target/49833
5319         * config/i386/i386.md (i): Change SImode attribute to "e".
5320         (g): Change SImode attribute to "rme".
5321         (di): Change SImode attribute to "nF".
5322         (general_operand): Change SImode attribute to x86_64_general_operand.
5323         (general_szext_operand): Change SImode attribute to
5324         x86_64_szext_general_operand.
5325         (immediate_operand): Change SImode attribute to
5326         x86_64_immediate_operand.
5327         (nonmemory_operand): Change SImode attribute to
5328         x86_64_nonmemory_operand.
5329         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
5330         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
5331         (*lea_1): Use SWI48 mode iterator.
5332         (*lea_1_zext): New insn pattern.
5333         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
5334         (*bt<mode>): Ditto.
5335         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
5336         Update operand constraints.
5337         (addsi_1_zext): Ditto.
5338         (*add<mode>2): Ditto.
5339         (*addsi_3_zext): Ditto.
5340         (*subsi_1_zext): Ditto.
5341         (*subsi_2_zext): Ditto.
5342         (*subsi_3_zext): Ditto.
5343         (*addsi3_carry_zext): Ditto.
5344         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
5345         (*mulsi3_1_zext): Ditto.
5346         (*andsi_1): Ditto.
5347         (*andsi_1_zext): Ditto.
5348         (*andsi_2_zext): Ditto.
5349         (*<any_or:code>si_1_zext): Ditto.
5350         (*<any_or:code>si_2_zext): Ditto.
5351         (*test<mode>_1): Use <general_operand> predicate for operand 1.
5352         (*and<mode>_2): Ditto.
5353         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
5354         (add->lea splitter): Check operand modes in insn constraint.  Extend
5355         operands less than SImode wide to SImode.
5356         (add->lea zext splitter): Do not extend input operands to DImode.
5357         (*lea_general_1): Handle only QImode and HImode operands.
5358         (*lea_general_2): Ditto.
5359         (*lea_general_3): Ditto.
5360         (*lea_general_1_zext): Remove.
5361         (*lea_general_2_zext): Ditto.
5362         (*lea_general_3_zext): Ditto.
5363         (*lea_general_4): Check operand modes in insn constraint.  Extend
5364         operands less than SImode wide to SImode.
5365         (ashift->lea splitter): Ditto.
5366         * config/i386/i386.c (ix86_print_operand_address): Print address
5367         registers with 'q' modifier on 64bit targets.
5368         * config/i386/predicates.md (pic_32bit_opreand): Define as special
5369         predicate.  Reject non-SI and non-DI modes.
5370
5371 2011-07-25  Andrew Pinski  <apinski@cavium.com>
5372
5373         PR tree-opt/49671
5374         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5375         TREE_THIS_NOTRAP into the inner most MEM_REF.
5376         Always copy TREE_THIS_VOLATILE.
5377         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5378         arguments are not volatile references.
5379
5380 2011-07-25  Richard Henderson  <rth@redhat.com>
5381
5382         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5383         * final.c (final_scan_insn): Don't test for it.
5384         (rest_of_clean_state): Likewise.
5385
5386 2011-07-25  Richard Henderson  <rth@redhat.com>
5387
5388         PR debug/49841
5389         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5390         (emit_frame_save): Likewise.
5391         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5392         insn onto a dummy blockage insn after the join label.
5393
5394 2011-07-25  Richard Henderson  <rth@redhat.com>
5395
5396         * dwarf2cfi.c (dw_trace_info): Add ID member.
5397         (get_trace_index): Remove.  Change users to use ID member.
5398         (before_next_cfi_note): New.
5399         (connect_traces): Remove unreachable traces before the main loop.
5400         Look across one trace and generate remember/restore_state if needed.
5401
5402 2011-07-25  Richard Henderson  <rth@redhat.com>
5403
5404         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5405
5406 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
5407
5408         * genattr.c (write_upcase, gen_attr <enum definition writing>):
5409         Move to ...
5410         * genattr-common.c ... here.
5411         (main): Call gen_attr.
5412         * optc-gen.awk: Make generated program include insn-attr-common.h .
5413         * Makefile.in (oprions.o): Depend on insn-attr-common.h
5414
5415 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5416
5417         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5418         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5419         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5420         m32c_print_operand, m32c_print_operand_address): Remove.
5421         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5422         Change return type to bool. Change argument type to bool.
5423         (m32c_print_operand, m32c_print_operand_address): Make static.
5424         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5425         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5426
5427 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5428
5429         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5430         attributes): Document mmap.
5431
5432 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5433
5434         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5435         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5436         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5437         mmix_print_operand, mmix_print_operand_address): Remove.
5438         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5439         Change return type to bool. Change argument type to bool.
5440         (mmix_print_operand, mmix_print_operand_address): Make static.
5441         (mmix_intval, mmix_output_condition): Change 'x' argument type
5442         to const_rtx.
5443         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5444         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5445
5446 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
5447
5448         PR target/39386
5449         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5450         shift counter for x << x and x >> x shifts.
5451
5452 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5453
5454         PR target/47124
5455         * config.gcc: Reject *-*-solaris2 configuration.
5456
5457 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
5458
5459         PR tree-optimization/49809
5460         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5461         gimple_get_lhs instead of gimple_assign_lhs.
5462
5463 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5464
5465         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5466
5467 2011-07-25  Richard Guenther  <rguenther@suse.de>
5468
5469         PR tree-optimization/49822
5470         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5471         more.  Make sure to preserve stmts with side-effects.  Properly
5472         handle virtual defs, follow a longer def chain.
5473
5474 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
5475
5476         PR plugins/45348
5477         PR plugins/48425
5478         PR plugins/46577
5479         * Makefile.in: Do not flatten c-family directory when installing
5480         plugin headers.
5481
5482 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5483
5484         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5485         original nodes if we are dealing with virtual clones.
5486
5487 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
5488
5489         * common/config/c6x/c6x-common.c: New file.
5490
5491 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
5492
5493         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5494
5495 2011-07-25  Richard Guenther  <rguenther@suse.de>
5496
5497         PR tree-optimization/49715
5498         * tree-vrp.c: Include expr.h and optabs.h.
5499         (range_fits_type_): New function.
5500         (simplify_float_conversion_using_ranges): Likewise.
5501         (simplify_stmt_using_ranges): Call it.
5502         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5503         * optabs.c (can_float_p): Export.
5504         * optabs.h (can_float_p): Declare.
5505
5506 2011-07-25  Richard Guenther  <rguenther@suse.de>
5507
5508         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5509         (get_value_range): For out-of-range SSA names or names created
5510         after propagation return a read-only varying range.
5511         (dump_all_value_ranges): Adjust.
5512         (vrp_initialize): Likewise.
5513         (vrp_finalize): Likewise.
5514
5515 2011-07-24  Richard Henderson  <rth@redhat.com>
5516
5517         PR debug/49831
5518         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
5519         them entirely.
5520
5521 2011-07-24  Richard Henderson  <rth@redhat.com>
5522
5523         PR debug/49825
5524         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5525         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5526
5527 2011-07-24  Richard Henderson  <rth@redhat.com>
5528
5529         PR debug/49827
5530         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5531
5532 2011-07-24  Richard Henderson  <rth@redhat.com>
5533
5534         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5535         Zero args_size for abnormal edges.  Adjust all callers.
5536
5537 2011-07-24  Richard Henderson  <rth@redhat.com>
5538
5539         PR debug/49825
5540         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5541
5542 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
5543
5544         PR bootstrap/49835
5545         * collect2.c (demangle_flag): Removed.
5546
5547 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
5548
5549         * configure.ac (demangler_in_ld): Default to yes.
5550         * configure: Regenerated.
5551         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5552         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5553         --no-demangle options straight through to ld.  When
5554         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5555         way that has the intended effect on Windows.
5556
5557 2011-07-23  Richard Henderson  <rth@redhat.com>
5558
5559         * dwarf2cfi.c: Include basic-block.h.
5560         (dw_label_info): Remove.
5561         (trace_work_list, trace_index): New.
5562         (remember_row, emit_cfa_remember): Remove.
5563         (dw_trace_info_hash, dw_trace_info_eq): New.
5564         (get_trace_index, get_trace_info): New.
5565         (save_point_p): New.
5566         (free_cfi_row): Remove.
5567         (add_cfi): Do not emit DW_CFA_remember_state.
5568         (cfa_row_equal_p): New.
5569         (barrier_args_size): Remove.
5570         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5571         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5572         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5573         (dwarf2out_cfi_begin_epilogue): Remove.
5574         (dwarf2out_frame_debug_restore_state): Remove.
5575         (connect_traces, create_pseudo_cfg): New.
5576         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5577         * Makefile.in (dwarf2cfi.o): Update.
5578
5579 2011-07-23  Richard Henderson  <rth@redhat.com>
5580
5581         * dwarf2cfi.c (dw_trace_info): New.
5582         (dw_label_info): New.
5583         (cie_return_save): New.
5584         (cur_trace): New.
5585         (queued_args_size): Rename from args_size.  Update all users.
5586         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5587         (def_cfa_1): Use cur_trace instead of cfa_*.
5588         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5589         (clobbers_queued_reg_save, reg_saved_in): Likewise.
5590         (dwarf2out_frame_debug_expr): Likewise.
5591         (create_cie_data): Split out from ...
5592         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
5593
5594 2011-07-23  Richard Henderson  <rth@redhat.com>
5595
5596         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
5597         Update all users to match.
5598         (execute_dwarf2_frame): Free reg_saved_in_data.
5599
5600 2011-07-23  Richard Henderson  <rth@redhat.com>
5601
5602         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
5603         (queued_reg_saves): Don't GTY.  Change to a VEC.
5604         (queue_reg_save): Update to match.
5605         (dwarf2out_flush_queued_reg_saves): Likewise.
5606         (clobbers_queued_reg_save): Likewise.
5607         (reg_saved_in): Likewise.
5608         (execute_dwarf2_frame): Free queued_reg_saves.
5609
5610 2011-07-23  Richard Henderson  <rth@redhat.com>
5611
5612         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
5613
5614 2011-07-23  Richard Henderson  <rth@redhat.com>
5615
5616         * dwarf2cfi.c (add_cfi_args_size): Split out from...
5617         (dwarf2out_args_size): ... here.
5618         (add_cfi_restore): Split out from ...
5619         (dwarf2out_frame_debug_cfa_restore): ... here.
5620         (def_cfa_0): Split out from ...
5621         (def_cfa_1): ... here.
5622         (cfi_oprnd_equal_p, cfi_equal_p): New.
5623         (change_cfi_row): New.
5624         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
5625         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
5626         (output_cfis): Remove.
5627         * dwarf2out.c (output_fde): Simplify output_cfi loop.
5628         (dwarf2out_switch_text_section): Don't call output_cfis.
5629         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
5630         * dwarf2out.h: Update decls.
5631         (enum dw_val_class): Add dw_val_class_none.
5632
5633 2011-07-23  Richard Henderson  <rth@redhat.com>
5634
5635         * dwarf2cfi.c (update_row_reg_save): New.
5636         (dwarf2out_frame_debug_cfa_expression): Use it.
5637         (dwarf2out_frame_debug_cfa_restore): Likewise.
5638         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
5639
5640 2011-07-23  Richard Henderson  <rth@redhat.com>
5641
5642         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
5643
5644 2011-07-23  Richard Henderson  <rth@redhat.com>
5645
5646         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
5647         (cie_cfi_row): New.
5648         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
5649         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
5650         (cur_row, remember_row): New.
5651         (def_cfa_1): Use cur_row instead of the old_* variables.
5652         (dwarf2out_frame_debug_restore_state): Similarly.
5653         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
5654         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
5655         (dwarf2out_frame_debug_adjust_cfa): Likewise.
5656         (dwarf2out_frame_debug_cfa_offset): Likewise.
5657         (dwarf2out_frame_debug_expr): Likewise.
5658         (execute_dwarf2_frame): Set up cur_row.
5659         * dwarf2out.h (struct cfa_loc): Mark for GTY.
5660
5661 2011-07-23  Richard Henderson  <rth@redhat.com>
5662
5663         * basic-block.h (EDGE_PRESERVE): New.
5664         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5665         * bb-reorder.c: Include except.h.
5666         (fix_up_crossing_landing_pad): New.
5667         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5668         landing pads in the right partition.  Duplicate as necessary.
5669         (partition_hot_cold_basic_blocks): Fix up DF info after
5670         duplicating landing pads.
5671         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5672         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5673         is set properly.  Validate that EH edges are not CROSSING.
5674         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5675         (dw2_build_landing_pads): ... here.
5676         (convert_to_eh_region_ranges): Remove code to fixup crossing
5677         landing pads.
5678         * except.h (expand_dw2_landing_pad_for_region): Declare.
5679         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5680
5681 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
5682
5683         PR target/49816
5684         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5685
5686 2011-07-22  Jason Merrill  <jason@redhat.com>
5687
5688         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5689
5690 2011-07-22  Richard Henderson  <rth@redhat.com>
5691
5692         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5693
5694 2011-07-22  Richard Henderson  <rth@redhat.com>
5695
5696         * jump.c (maybe_propagate_label_ref): Split out of...
5697         (mark_all_labels): ... here.  Do not attempt label_ref
5698         propagation while in cfglayout mode.
5699
5700 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5701
5702         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5703         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5704         (dwarf_attr_name): Handle DW_AT_GNU_macros.
5705         (dwarf2out_define): If the vector is empty and
5706         lineno is 0, emit a dummy entry first.
5707         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
5708         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5709         optimize_macinfo_range): New functions.
5710         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
5711         mergeable, optimize longer strings using
5712         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5713         optimize longer sequences of define/undef ops from headers
5714         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
5715         emit a section headers.
5716         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5717         and macinfo_section_label to DEBUG_MACRO_SECTION
5718         resp. DEBUG_MACRO_SECTION_LABEL.
5719         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5720         instead of DW_AT_macro_info.
5721
5722         PR other/32998
5723         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5724         options.
5725         * dwarf2out.c: Include opts.h.
5726         (dchar_p): New typedef.  Define heap VEC for it.
5727         (producer_string): New variable.
5728         (gen_producer_string): New function.
5729         (gen_compile_unit_die): Use it.
5730         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5731         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5732         * doc/invoke.texi: Document -grecord-gcc-switches and
5733         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5734         to -frecord-gcc-switches description.
5735
5736 2011-07-22  Jason Merrill  <jason@redhat.com>
5737
5738         PR c++/30112
5739         * c-decl.c (c_linkage_bindings): Define.
5740
5741 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5742
5743         PR debug/49815
5744         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5745
5746 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
5747
5748         * config/i386/i386.c (ix86_option_override_internal): Disallow
5749         MS ABI in x32 mode.
5750         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5751         only for TARGET_LP64.
5752         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5753
5754 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5755
5756         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5757         avoid warnings when GCC is built with a C++ compiler.
5758
5759 2011-07-22  Martin Jambor  <mjambor@suse.cz>
5760
5761         PR lto/49796
5762         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5763         if decl node is in another partition, call cgraph_get_node only once.
5764
5765 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
5766
5767         * config.gcc (x86_64-*-linux*): Set
5768         default_gnu_indirect_function to yes.
5769
5770 2011-07-22  Richard Guenther  <rguenther@suse.de>
5771
5772         PR tree-optimization/45819
5773         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5774         preserve volatile and notrap flags.
5775
5776 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5777             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5778
5779         PR bootstrap/49794
5780         * configure.ac: Test AM_ICONV with CXX.
5781         * configure: Regenerate.
5782         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5783
5784 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5785
5786         PR bootstrap/49797
5787         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5788         (set_cloog_options): Use it.
5789
5790 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5791
5792         PR c++/49756
5793         * gcc.c (main): Call stack_limit_increase (64MB).
5794         * toplev.c (toplev_main): Likewise.
5795
5796 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5797
5798         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5799         instead of force_reg.
5800
5801 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5802
5803         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5804         needed and use force_reg after convert.
5805         (ix86_expand_call): Likewise.
5806         (ix86_expand_special_args_builtin): Likewise.
5807         (ix86_expand_builtin): Likewise.
5808
5809 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5810
5811         PR middle-end/47654
5812         PR middle-end/49649
5813         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5814         in parameter.  Initialize v1 and v2 based on the values returned
5815         by clast_name_to_lb_ub.
5816         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5817         values.
5818         (type_for_clast_bin): Same.
5819         (type_for_clast_expr): Same.
5820         (type_for_clast_eq): Update calls to type_for_clast_expr.
5821         (type_for_clast_for): Same.
5822         (build_iv_mapping): Same.
5823         * graphite-ppl.h (value_min): New.
5824
5825 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5826
5827         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5828         types whenever possible.
5829
5830 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5831
5832         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5833         and ub fields.
5834         (new_clast_name_index): Add lb and ub parameters.
5835         (free_clast_name_index): New.
5836         (clast_name_to_lb_ub): New.
5837         (save_clast_name_index): Add lb and ub parameters.
5838         (compute_bounds_for_param): New.
5839         (type_for_level): Removed.
5840         (type_for_clast_for): Removed level parameter.  Do not call
5841         type_for_level.
5842         (graphite_create_new_loop): Store the lb and ub for the clast_name
5843         of the iterator of the loop that has been generated.
5844         (graphite_create_new_loop_guard): Remove parameter level.
5845         (create_params_index): Store the lb and ub of each parameter.
5846         (gloog): Use free_clast_name_index.  Pass to create_params_index
5847         the current scop.
5848
5849 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5850
5851         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
5852         (max_precision_type): Inline max_signed_precision_type.
5853         (type_for_clast_red): Use max_precision_type.
5854         (type_for_clast_bin): Same.
5855         (type_for_clast_for): Same.
5856
5857 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5858
5859         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
5860         type_for_interval.
5861         (gcc_type_for_value): Renamed type_for_value.
5862         (gcc_type_for_clast_term): Renamed type_for_clast_term.
5863         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
5864         (gcc_type_for_clast_red): Renamed type_for_clast_red.
5865         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
5866         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
5867         (graphite_translate_clast_equation): Update calls.
5868         (compute_type_for_level): Renamed type_for_level.
5869         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
5870         (build_iv_mapping): Update calls.
5871         (graphite_create_new_loop_guard): Same.
5872
5873 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5874
5875         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
5876         comment.
5877
5878 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5879
5880         * graphite-clast-to-gimple.c (struct ivs_params): New.
5881         (clast_name_to_gcc): Use ivs_params to pass around parameters.
5882         (clast_to_gcc_expression): Same.
5883         (clast_to_gcc_expression_red): Same.
5884         (gcc_type_for_clast_term): Same.
5885         (gcc_type_for_clast_expr): Same.
5886         (gcc_type_for_clast_red): Same.
5887         (gcc_type_for_clast_bin): Same.
5888         (gcc_type_for_clast_eq): Same.
5889         (graphite_translate_clast_equation): Same.
5890         (graphite_create_guard_cond_expr): Same.
5891         (graphite_create_new_guard): Same.
5892         (graphite_create_new_loop): Same.
5893         (build_iv_mapping): Same.
5894         (translate_clast_user): Same.
5895         (graphite_create_new_loop_guard): Same.
5896         (translate_clast): Same.
5897         (translate_clast_for_loop): Same.
5898         (translate_clast_for): Same.
5899         (translate_clast_guard): Same.
5900         (initialize_cloog_names): Fix typo.
5901         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
5902
5903 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5904
5905         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
5906         (new_clast_name_index): Add level parameter.
5907         (clast_name_to_level): New.
5908         (save_clast_name_index): Add level parameter.
5909         (newivs_to_depth_to_newiv): Removed.
5910         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
5911         (graphite_create_new_loop): Add level parameter.  Pass level to
5912         save_clast_name_index.
5913         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
5914         (create_params_index): Pass level to save_clast_name_index.
5915
5916 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5917
5918         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
5919         recompute type, lb, and ub.  Get them from...
5920         (graphite_create_new_loop_guard): ...here.  Pass in parameter
5921         pointers to type, lb, and ub.
5922         (translate_clast_for_loop): Update function calls.
5923         (translate_clast_for): Same.
5924
5925 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5926
5927         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
5928         psct_dynamic_dim.
5929         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
5930         (gcc_type_for_iv_of_clast_loop): Update use of level.
5931         (gloog): Start counting nesting level from 0.
5932         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
5933         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
5934         psct_dynamic_dim on level.
5935
5936 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5937
5938         * config/i386/i386.c (ix86_legitimize_address): Convert to
5939         Pmode if needed.
5940
5941 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5942
5943         * config/i386/i386.c (function_value_64): Always return pointers
5944         in Pmode.
5945         (ix86_promote_function_mode): New.
5946         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
5947
5948 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5949
5950         PR tree-optimization/49749
5951         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
5952         remove no-longer-used maxrank variable.
5953
5954 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5955
5956         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
5957
5958 2011-07-21  Jason Merrill  <jason@redhat.com>
5959
5960         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
5961         * recog.h (struct insn_data_d): Check it instead of
5962         HAVE_DESIGNATED_INITIALIZERS.
5963         * genoutput.c (output_insn_data): Likewise.
5964
5965 2011-07-21  Richard Guenther  <rguenther@suse.de>
5966
5967         PR tree-optimization/49770
5968         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
5969         valueized any operand.  Renamed from ...
5970         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
5971         (valueize_shared_reference_ops_from_ref): Return whether we
5972         valueized any operand.
5973         (vn_reference_lookup): Only when we valueized any operand
5974         use the valueized reference for alias analysis.  Do not preserve
5975         the original reference tree in this case.
5976
5977 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
5978
5979         * config/i386/i386.c (ix86_decompose_address): Reject all but
5980         register operands and subregs of DImode hard registers in index.
5981
5982 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5983
5984         * fold-const.c (fold_unary_loc): Preserve indirect
5985         comparison cast to none-boolean type.
5986         * tree-ssa.c (useless_type_conversion_p): Preserve cast
5987         from/to boolean-type.
5988         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
5989         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
5990         * tree-cfg.c (verify_gimple_comparison): Check result
5991         type of comparison expression.
5992         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
5993         of condition result and disallow type-cast sinking into comparison.
5994
5995 2011-07-21  Richard Guenther  <rguenther@suse.de>
5996
5997         * tree-ssa-forwprop.c (combine_conversions): Return whether
5998         we have to run cfg-cleanup.  Properly remove dead stmts.
5999         (ssa_forward_propagate_and_combine): Adjust.
6000
6001 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
6002
6003         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
6004
6005 2011-07-21  Kai Tietz  <ktietz@redhat.com>
6006
6007         * tree-ssa-propagate.c (substitute_and_fold): Use
6008         do_dce flag to deside, if BB's statements are scanned
6009         in last to first, or first to last order.
6010
6011 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
6012
6013         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
6014
6015 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
6016             Uros Bizjak  <ubizjak@gmail.com>
6017             Richard Henderson  <rth@redhat.com>
6018
6019         * config/i386/constraints.md (w): New.
6020
6021         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
6022         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
6023
6024         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
6025         instead of TARGET_64BIT.
6026
6027         * config/i386/i386.md (indirect_jump): Replace
6028         nonimmediate_operand with indirect_branch_operand.
6029         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
6030         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
6031         Convert operand 0 to Pmode for x32 if not PIC.
6032         (*tablejump_1): Replace nonimmediate_operand with
6033         indirect_branch_operand.  Replace constraint "m" with "w".
6034         (*call_vzeroupper): Replace constraint "m" with "w".
6035         (*call): Likewise.
6036         (*call_rex64_ms_sysv_vzeroupper): Likewise.
6037         (*call_rex64_ms_sysv): Likewise.
6038         (*call_value_vzeroupper): Likewise.
6039         (*call_value): Likewise.
6040         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
6041         (*call_value_rex64_ms_sysv): Likewise.
6042         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6043
6044         * config/i386/predicates.md (indirect_branch_operand): New.
6045         (call_insn_operand): Support x32.
6046
6047 2011-07-20  Michael Eager  <eager@eagercon.com>
6048
6049         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
6050
6051 2011-07-20  Richard Henderson  <rth@redhat.com>
6052
6053         * cfg.c (dump_bb_info): Dump basic_block->flags.
6054         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
6055
6056 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
6057
6058         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6059         of DImode hard registers in index.
6060         (ix86_legitimate_address_p): Allow subregs of base and index to span
6061         more than a word.  Assert that subregs of base and index satisfy
6062         register_no_elim_operand predicates.  Reject addresses where
6063         base and index have different modes.
6064
6065 2011-07-20  Robert Millan  <rmh@gnu.org>
6066
6067         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6068
6069 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6070
6071         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6072         removing now-unnecessary assignment.
6073
6074 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6075
6076         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6077         memory address space to the type's address space.
6078
6079 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
6080
6081         PR target/36467
6082         PR target/49687
6083         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6084         and expand appropriately if there is a CONST_INT in operand2.
6085         (usmulqihi3): New insn.
6086         (*sumulqihi3): New insn.
6087         (*osmulqihi3): New insn.
6088         (*oumulqihi3): New insn.
6089         (*muluqihi3.uconst): New insn_and_split.
6090         (*muluqihi3.sconst): New insn_and_split.
6091         (*mulsqihi3.sconst): New insn_and_split.
6092         (*mulsqihi3.uconst): New insn_and_split.
6093         (*mulsqihi3.oconst): New insn_and_split.
6094         (*ashifthi3.signx.const): New insn_and_split.
6095         (*ashifthi3.signx.const7): New insn_and_split.
6096         (*ashifthi3.zerox.const): New insn_and_split.
6097         (mulsqihi3): New insn.
6098         (muluqihi3): New insn.
6099         (muloqihi3): New insn.
6100         * config/avr/predicates.md (const_2_to_7_operand): New.
6101         (const_2_to_6_operand): New.
6102         (u8_operand): New.
6103         (s8_operand): New.
6104         (o8_operand): New.
6105         (s9_operand): New.
6106         (register_or_s9_operand): New.
6107
6108 2011-07-20  Kai Tietz  <ktietz@redhat.com>
6109
6110         * builtins.c (fold_builtin_expect): See through the cast
6111         from truthvalue_type_node to long.
6112
6113 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
6114
6115         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6116         where we can use them from the standard and altivec instruction
6117         sets, instead of always using the 3 operand VSX forms that require
6118         the destination to overlap one of the inputs.
6119         (vsx_fms*): Ditto.
6120         (vsx_fnma*): Ditto.
6121         (vsx_fnms*): Ditto.
6122
6123         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6124         for DF types.
6125         (fmsdf4_fpr): Ditto.
6126         (nfmadf4_fpr): Ditto.
6127         (nfmsdf4_fpr): Ditto.
6128
6129 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
6130
6131         * genrecog.c (make_insn_sequence): Correct position numbering
6132         when filtering out match_scratch and match_dup.
6133
6134 2011-07-20  Richard Guenther  <rguenther@suse.de>
6135
6136         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6137         against already removed statements.
6138         (forward_propagate_into_comparison): Remove dead defining stmts.
6139         (forward_propagate_into_gimple_cond): Likewise.
6140         (forward_propagate_into_cond): Simplify.
6141         (ssa_forward_propagate_and_combine): Handle changed cfg from
6142         forward_propagate_into_comparison.
6143         * tree-ssa-phiopt.c (conditional_replacement): Use proper
6144         locations for newly built statements.
6145
6146 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
6147
6148         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
6149
6150 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6151
6152         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
6153         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
6154
6155 2011-07-20  Richard Guenther  <rguenther@suse.de>
6156
6157         PR middle-end/18908
6158         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
6159         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
6160         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
6161
6162 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
6163
6164         * config/frv/frv.c (frv_register_move_cost): Define explicitly
6165         costs for subclasses of GR_REGS.
6166
6167 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
6168
6169         PR target/49780
6170         * config/i386/predicates.md (no_seg_addres_operand): No more special.
6171         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6172         of DImode hard registers in base.
6173         (ix86_legitimate_address_p): Allow SImode and DImode base and index
6174         registers.
6175
6176 2011-07-20  Richard Guenther  <rguenther@suse.de>
6177
6178         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
6179         (unify_nodes): Deal with that.
6180         (solve_graph): Likewise.
6181
6182 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
6183
6184         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
6185         canonicalize left operand from ZERO_EXTEND to AND.
6186
6187 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
6188
6189         * target.def (class_max_nregs): New hook.
6190         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
6191         * doc/tm.texi: Regenerate.
6192         * targhooks.c (default_class_max_nregs): New function.
6193         * targhooks.h (default_class_max_nregs): Declare.
6194         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
6195         x_ira_reg_class_min_nregs arrays to unsigned char.
6196         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
6197         hook instead of CLASS_MAX_NREGS macro.
6198         * reginfo.c (restore_register_info): Ditto.
6199         * ira-conflicts.c (process_regs_for_copy): Use
6200         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6201         Change type rclass and aclass vars to reg_class_t.
6202         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
6203         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
6204         reg_class_t.
6205         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
6206         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6207
6208         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
6209         * config/i386/i386.c (ix86_class_max_nregs): New function.
6210         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
6211         instead of CLASS_MAX_NREGS macro.
6212         (TARGET_CLASS_MAX_NREGS): Define.
6213         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
6214         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
6215         * config/avr/avr.c (class_max_nregs): Remove function.
6216         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
6217         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
6218         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
6219         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
6220         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
6221         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
6222         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
6223         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
6224         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
6225         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
6226         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
6227         * config/score/score.h (CLASS_MAX_NREGS): Remove.
6228         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
6229         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
6230         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
6231
6232 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
6233
6234         * cif-code.def (OVERWRITABLE): Fix typo and move around.
6235         (TARGET_OPTIMIZATION_MISMATCH): Delete.
6236         (EH_PERSONALITY): Fix typo.
6237         (NON_CALL_EXCEPTIONS): Fix message.
6238         (OPTIMIZATION_MISMATCH): Adjust message.
6239         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
6240
6241 2011-07-19  Ian Lance Taylor  <iant@google.com>
6242
6243         * doc/install.texi (Configuration): Document
6244         --enable-build-poststage1-with-cxx.
6245
6246 2011-07-19  Robert Millan  <rmh@gnu.org>
6247
6248         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
6249         (GLIBC_DYNAMIC_LINKER): Remove.
6250
6251         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
6252         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6253         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6254         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
6255         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
6256         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
6257
6258         * config/mips/linux.h: Remove everything except for ...
6259         (GLIBC_DYNAMIC_LINKER): ... this macro.
6260
6261         * config/mips/linux64.h: Remove everything except for ...
6262         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6263         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6264         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
6265         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
6266         (GNU_USER_LINK_EMULATIONN32): New macros.
6267
6268         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
6269         Use the new headers.
6270
6271 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6272
6273         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
6274         Add offset_known_p and size_known_p fields.
6275         (MEM_OFFSET_KNOWN_P): Update accordingly.
6276         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
6277         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
6278         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
6279         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
6280         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
6281         (init_emit_regs): Likewise.
6282
6283 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6284
6285         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
6286         (MEM_OFFSET): Change from returning an rtx to returning a
6287         HOST_WIDE_INT.
6288         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
6289         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
6290         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6291         (clear_mem_offset): Declare.
6292         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
6293         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
6294         MEM_OFFSET to get a HOST_WIDE_INT offset.
6295         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
6296         (adjust_offset_for_component_ref): Take a bool "known_p"
6297         parameter and a HOST_WIDE_INT "offset" parameter.
6298         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
6299         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
6300         than an rtx.  Use clear_mem_offset to clear the offset.
6301         * cfgcleanup.c (merge_memattrs): Likewise.
6302         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
6303         * function.c (assign_parm_find_stack_rtl): Likewise.
6304         (assign_parm_setup_stack): Likewise.
6305         * print-rtl.c (print_rtx): Likewise.
6306         * reload.c (find_reloads_subreg_address): Likewise.
6307         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6308         * var-tracking.c (INT_MEM_OFFSET): Likewise.
6309         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6310         (get_mem_align_offset): Likewise.
6311         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6312         (clear_mem_offset): New function.
6313         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
6314         offset rather than an rtx.  Assume both the expressio and offset
6315         are available.
6316         (r10k_needs_protection_p_1): Update accordingly, checking the
6317         expression and offset availability here instead.
6318
6319 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6320
6321         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
6322         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
6323         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
6324         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
6325         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6326         (clear_mem_size): Declare.
6327         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6328         (clear_mem_size): New function.
6329         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
6330         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
6331         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
6332         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
6333         to clear the size.
6334         (nonoverlapping_memrefs_p): Likewise.
6335         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
6336         (expand_builtin_init_trampoline): Likewise.
6337         * calls.c (compute_argument_addresses): Likewise.
6338         * cfgcleanup.c (merge_memattrs): Likewise.
6339         * dce.c (find_call_stack_args): Likewise.
6340         * dse.c (record_store, scan_insn): Likewise.
6341         * dwarf2out.c (dw_sra_loc_expr): Likewise.
6342         * expr.c (emit_block_move_hints): Likewise.
6343         * function.c (assign_parm_find_stack_rtl): Likewise.
6344         * print-rtl.c (print_rtx): Likewise.
6345         * reload.c (find_reloads_subreg_address): Likewise.
6346         * rtlanal.c (may_trap_p_1): Likewise.
6347         * var-tracking.c (track_expr_p): Likewise.
6348         * varasm.c (assemble_trampoline_template): Likewise.
6349         * config/arm/arm.c (arm_print_operand): Likewise.
6350         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
6351         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
6352         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
6353         (expand_constant_setmem_prologue): Likewise.
6354         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
6355         * config/rs6000/rs6000.c (expand_block_move): Likewise.
6356         (adjacent_mem_locations): Likewise.
6357         * config/s390/s390.c (s390_expand_setmem): Likewise.
6358         (s390_expand_insv): Likewise.
6359         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
6360         (*extendqi<mode>2_short_displ): Likewise.
6361         * config/sh/sh.c (expand_block_move): Likewise.
6362         * config/sh/sh.md (extv, extzv): Likewise.
6363
6364 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6365
6366         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
6367         (mem_attrs_htab_eq): ...here.
6368         (find_mem_attrs): Replace with...
6369         (set_mem_attrs): ...this function.  Take a mem_attrs structure
6370         rather than individual fields.
6371         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6372         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6373         (set_mem_size, change_address, adjust_address_1, offset_address)
6374         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6375         Update accordingly.
6376
6377 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6378
6379         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6380         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6381         Provide a dummy definition of MEM_ADDR_SPACE for generators.
6382         (target_rtl): Add x_mode_mem_attrs.
6383         (mode_mem_attrs): New macro.
6384         (get_mem_attrs): New function.
6385         * emit-rtl.c (get_mem_attrs): Rename to...
6386         (find_mem_attrs): ...this.
6387         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6388         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6389         (set_mem_size, change_address, adjust_address_1, offset_address)
6390         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6391         Update accordingly.
6392         (init_emit_regs): Initialize mode_mem_attrs.
6393
6394 2011-07-19  Richard Guenther  <rguenther@suse.de>
6395
6396         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6397         TRUTH_*_EXPR handling.
6398         * tree-ssa-operands.c (get_expr_operands): Likewise.
6399         * tree-ssa-pre.c (fully_constant_expression): Likewise.
6400         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6401         Likewise.
6402         (is_and_or_or): Likewise.
6403         (is_norm_cond_subset_of): Likewise.
6404
6405 2011-07-19  Richard Guenther  <rguenther@suse.de>
6406
6407         * tree.h (fold_build_pointer_plus_loc): New helper function.
6408         (fold_build_pointer_plus_hwi_loc): Likewise.
6409         (fold_build_pointer_plus): Define.
6410         (fold_build_pointer_plus_hwi): Likewise.
6411         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6412         (fold_builtin_memory_op): Likewise.
6413         (fold_builtin_stpcpy): Likewise.
6414         (fold_builtin_memchr): Likewise.
6415         (fold_builtin_strstr): Likewise.
6416         (fold_builtin_strchr): Likewise.
6417         (fold_builtin_strrchr): Likewise.
6418         (fold_builtin_strpbrk): Likewise.
6419         (fold_builtin_strcat): Likewise.
6420         (expand_builtin_memory_chk): Likewise.
6421         (fold_builtin_memory_chk): Likewise.
6422         * c-typeck.c (build_unary_op): Likewise.
6423         * cgraphunit.c (thunk_adjust): Likewise.
6424         * fold-const.c (build_range_check): Likewise.
6425         (fold_binary_loc): Likewise.
6426         * omp-low.c (extract_omp_for_data): Likewise.
6427         (expand_omp_for_generic): Likewise.
6428         (expand_omp_for_static_nochunk): Likewise.
6429         (expand_omp_for_static_chunk): Likewise.
6430         * tree-affine.c (add_elt_to_tree): Likewise.
6431         * tree-data-ref.c (split_constant_offset_1): Likewise.
6432         * tree-loop-distribution.c (generate_memset_zero): Likewise.
6433         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6434         * tree-predcom.c (ref_at_iteration): Likewise.
6435         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6436         (add_to_parts): Likewise.
6437         (create_mem_ref): Likewise.
6438         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6439         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6440         (number_of_iterations_le): Likewise.
6441         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6442         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6443         (vect_create_addr_base_for_vector_ref): Likewise.
6444         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6445         (vect_create_cond_for_alias_checks): Likewise.
6446         * tree-vrp.c (extract_range_from_assert): Likewise.
6447         * config/alpha/alpha.c (alpha_va_start): Likewise.
6448         (alpha_gimplify_va_arg_1): Likewise.
6449         * config/i386/i386.c (ix86_va_start): Likewise.
6450         (ix86_gimplify_va_arg): Likewise.
6451         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6452         * config/mep/mep.c (mep_expand_va_start): Likewise.
6453         (mep_gimplify_va_arg_expr): Likewise.
6454         * config/mips/mips.c (mips_va_start): Likewise.
6455         (mips_gimplify_va_arg_expr): Likewise.
6456         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6457         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6458         (rs6000_gimplify_va_arg): Likewise.
6459         * config/s390/s390.c (s390_va_start): Likewise.
6460         (s390_gimplify_va_arg): Likewise.
6461         * config/sh/sh.c (sh_va_start): Likewise.
6462         (sh_gimplify_va_arg_expr): Likewise.
6463         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6464         * config/spu/spu.c (spu_va_start): Likewise.
6465         (spu_gimplify_va_arg_expr): Likewise.
6466         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6467         Likewise.
6468         (xstormy16_gimplify_va_arg_expr): Likewise.
6469         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6470         (xtensa_gimplify_va_arg_expr): Likewise.
6471
6472 2011-07-19  Richard Guenther  <rguenther@suse.de>
6473
6474         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6475         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6476         handling.
6477
6478         PR middle-end/18908
6479         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6480         result of BIT_*_EXPR to bitfield precision.
6481
6482 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
6483
6484         PR tree-optimization/49742
6485         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6486         as a potential write.
6487
6488 2011-07-19  Richard Guenther  <rguenther@suse.de>
6489
6490         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6491         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6492         (forward_propagate_comparison): Simplify, remove obsolete code.
6493
6494 2011-07-19  Richard Guenther  <rguenther@suse.de>
6495
6496         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6497         BIT_XOR_EXPR, same as the RTL expander does.
6498         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6499         (verify_gimple_assign_unary): Likewise.
6500         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6501         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6502         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6503
6504 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
6505
6506         PR tree-optimization/49768
6507         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6508         if offset is smaller than bitoffset, but offset+size is bigger
6509         than bitoffset.
6510
6511 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
6512
6513         PR tree-optimization/49771
6514         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6515         zero step, set segment length to the size of the data-ref's type.
6516
6517 2011-07-18  Martin Jambor  <mjambor@suse.cz>
6518
6519         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6520         comments.
6521         (ipcp_values_pool): Declare.
6522         (ipcp_sources_pool): Likewise.
6523         (ipcp_lattice): Changed to forward declaration.
6524         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6525         cannot_devirtualize.
6526         (ipa_node_params): New fields descriptors, lattices, known_vals,
6527         clone_for_all_contexts and node dead, removed fields params and
6528         count_scale.
6529         (ipa_set_param_count): Removed.
6530         (ipa_get_param_count): Made to work with descriptors vector.
6531         (ipa_get_param): Updated.
6532         (ipa_param_cannot_devirtualize_p): Removed.
6533         (ipa_param_types_vec_empty): Likewise.
6534         (ipa_set_param_used): New function.
6535         (ipa_get_param_used): Updated to use descriptors vector.
6536         (ipa_func_list): Removed.
6537         (ipa_init_func_list): Removed declaration.
6538         (ipa_push_func_to_list_1): Likewise.
6539         (ipa_pop_func_from_list): Likewise.
6540         (ipa_push_func_to_list): Removed.
6541         (ipa_lattice_from_jfunc): Remove declaration.
6542         (ipa_get_jf_pass_through_result): Declare.
6543         (ipa_get_jf_ancestor_result): Likewise.
6544         (ipa_value_from_jfunc): Likewise.
6545         (ipa_get_lattice): Update.
6546         (ipa_lat_is_single_const): New function.
6547         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6548         (ipa_init_func_list): Likewise.
6549         (ipa_pop_func_from_list): Likewise.
6550         (ipa_get_param_decl_index): Fix coding style.
6551         (count_formal_params): Removed.
6552         (count_formal_params_1): Renamed to count_formal_params.
6553         (ipa_populate_param_decls): Update to use descriptors vector.
6554         (ipa_initialize_node_params): Likewise.
6555         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6556         (ipa_analyze_params_uses): Likewise.
6557         (ipa_free_node_params_substructures): Likewise and free also lattices
6558         and known values.
6559         (duplicate_array): Removed.
6560         (ipa_edge_duplication_hook): Add the new edge to the list of edge
6561         clones.
6562         (ipa_node_duplication_hook): Update to use new lattices.
6563         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6564         (ipa_free_all_structures_after_iinln): Likewise.
6565         (ipa_write_node_info): Update to use new lattices.
6566         (ipa_read_node_info): Likewise.
6567         (ipa_get_jf_pass_through_result): New function.
6568         (ipa_get_jf_ancestor_result): Likewise.
6569         (ipa_value_from_jfunc): Likewise.
6570         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6571         * ipa-cp.c: Reimplemented.
6572         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6573         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6574         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6575         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6576         * doc/invoke.texi (devirt-type-list-size): Removed description.
6577         (ipa-cp-value-list-size): Added description.
6578
6579 2011-07-18  Richard Henderson  <rth@redhat.com>
6580
6581         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6582         before calling create_basic_block.
6583
6584 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
6585
6586         PR middle-end/49675
6587         * tree.c (build_common_builtin_nodes): Register
6588         __builtin_return_address, __cyg_profile_func_enter
6589         and __cyg_profile_func_exit.
6590
6591 2011-07-18  Richard Henderson  <rth@redhat.com>
6592
6593         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
6594         (add_labels_and_missing_jumps): ... here.
6595         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
6596
6597 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
6598
6599         PR target/47744
6600         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6601         of DImode hard registers in PLUS address chains.
6602
6603 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6604
6605         PR bootstrap/49769
6606         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
6607         (alpha*-*-freebsd*): Likewise.
6608         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6609         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6610         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
6611         crtprec80.o, crtfastmath.o to extra_parts for all targets.
6612         (ia64*-*-elf*): Remove extra_parts.
6613         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
6614         (sparc64-*-linux*): Likewise.
6615         (sparc64-*-freebsd*): Likewise.
6616
6617         Revert:
6618         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
6619         (ia64*-*-linux*): Likewise.
6620         (mips64*-*-linux*): Likewise.
6621         (mips*-*-linux*): Likewise.
6622
6623 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
6624
6625         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
6626
6627 2011-07-18  Richard Guenther  <rguenther@suse.de>
6628
6629         * gimplify.c (gimplify_expr): Use input_location, not saved_location
6630         when building new trees.
6631
6632 2011-07-18  Richard Guenther  <rguenther@suse.de>
6633
6634         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
6635         expansion result to bitfield precision if required.
6636
6637 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6638
6639         * config.gcc (i[3456x]86-*-netware*): Remove.
6640
6641         * gthr-nks.h: Remove.
6642         * configure.ac (enable_threads): Remove nks.
6643         * configure: Regenerate.
6644
6645         * config/i386/i386.c (ix86_encode_section_info): Remove netware
6646         reference.
6647         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
6648         <netware.h> reference.
6649
6650         * config/i386/netware-libgcc.c,
6651         gcc/config/i386/netware-libgcc.def,
6652         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
6653         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
6654         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
6655         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6656
6657         * doc/extend.texi (Function Attributes,
6658         callee_pop_aggregate_return): Remove i?86-netware reference.
6659         * doc/install.texi (Configuration, --enable-threads): Remove nks.
6660
6661 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6662
6663         PR target/49746
6664         Revert:
6665         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6666
6667         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6668         patterns.
6669
6670 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
6671
6672         PR middle-end/49732
6673         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6674
6675 2011-07-16  Matthias Klose  <doko@ubuntu.com>
6676
6677         * doc/install.texi: Document --enable-static-libjava.
6678
6679 2011-07-15  Richard Henderson  <rth@redhat.com>
6680
6681         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6682         Replace all three arguments by returning a VEC of edges.
6683         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6684         pointers and counts.
6685         (fix_edges_for_rarely_executed_code): Merge ...
6686         (rest_of_handle_partition_blocks): ... into...
6687         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
6688         any work was performed.
6689         (pass_partition_blocks): Clear todo_flags_finish.
6690
6691 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
6692             Jakub Jelinek  <jakub@redhat.com>
6693             Jonathan Wakely  <jwakely.gcc@gmail.com>
6694
6695         PR libstdc++/49745
6696         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6697         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6698
6699 2011-07-15  Jason Merrill  <jason@redhat.com>
6700
6701         PR testsuite/49741
6702         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6703         rather than --tool_opts.
6704
6705 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
6706
6707         * doc/plugins.texi (Building GCC plugins): gengtype needs its
6708         corresponding gtype.state.
6709
6710 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6711
6712         PR target/49723
6713         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6714
6715 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
6716
6717         PR target/48220
6718         * doc/md.texi (Standard Names): Document window_save.
6719         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6720         expand_debug_expr and expand_debug_source_expr.  If the target has
6721         a window_save instruction, adjust the ENTRY_VALUE_EXP.
6722         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6723         SSA_NAME_VAR is a parameter.
6724         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6725         * var-tracking.c (parm_reg_t): New type and associated vector type.
6726         (windowed_parm_regs): New variable.
6727         (adjust_insn): If the target has a window_save instruction and this
6728         is the instruction, make its effect on parameter registers explicit.
6729         (next_non_note_insn_var_location): New function.
6730         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6731         (vt_add_function_parameter): If the target has a window_save insn,
6732         adjust the incoming RTL and record that in windowed_parm_regs.
6733         (vt_finalize): Free windowed_parm_regs.
6734
6735 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6736
6737         * doc/invoke.texi (C6X Options): New section.
6738         * doc/md.texi (TI C6X family): New section.
6739         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6740         tic6x-*-uclinux.
6741         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6742         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6743         Provide C6X definitions.
6744         * config/c6x/c6x.md: New file.
6745         * config/c6x/constraints.md: New file.
6746         * config/c6x/predicates.md: New file.
6747         * config/c6x/c6x-sched.md.in: New file.
6748         * config/c6x/c6x-sched.md: New file.
6749         * config/c6x/gensched.sh: New file.
6750         * config/c6x/c6x-mult.md.in: New file.
6751         * config/c6x/genmult.sh: New file.
6752         * config/c6x/c6x-mult.md: New file.
6753         * config/c6x/sync.md: New file.
6754         * config/c6x/c6x-protos.h: New file.
6755         * config/c6x/sfp-machine.h: New file.
6756         * config/c6x/c6x.c: New file.
6757         * config/c6x/c6x.h: New file.
6758         * config/c6x/crti.s: New file.
6759         * config/c6x/crtn.s: New file.
6760         * config/c6x/lib1funcs.asm: New file.
6761         * config/c6x/c6x-modes.def: New file.
6762         * config/c6x/genopt.sh: New file.
6763         * config/c6x/c6x.opt: New file.
6764         * config/c6x/c6x-tables.opt: New file.
6765         * config/c6x/c6x-opts.h: New file.
6766         * config/c6x/c6x-isas.def: New file.
6767         * config/c6x/elf.h: New file.
6768         * config/c6x/elf-common.h: New file.
6769         * config/c6x/uclinux-elf.h: New file.
6770         * config/c6x/t-c6x: New file.
6771         * config/c6x/t-c6x-elf: New file.
6772         * config/c6x/t-c6x-uclinux: New file.
6773         * config/c6x/t-c6x-softfp: New file.
6774         * config/c6x/gtd.c: New file.
6775         * config/c6x/gtf.c: New file.
6776         * config/c6x/ltd.c: New file.
6777         * config/c6x/ltf.c: New file.
6778         * config/c6x/ged.c: New file.
6779         * config/c6x/gef.c: New file.
6780         * config/c6x/led.c: New file.
6781         * config/c6x/lef.c: New file.
6782         * config/c6x/eqd.c: New file.
6783         * config/c6x/eqf.c: New file.
6784         * config/c6x/libgcc-c6xeabi.ver: New file.
6785
6786         Revert
6787         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6788         PR rtl-optimization/11320
6789         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6790         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6791         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6792         current_sched_info->compute_jump_reg_dependencies. Record which
6793         registers are used and which registers are set by the jump.
6794         Clear deps->reg_conditional_sets after a barrier.
6795         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6796         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6797         (init_deps): Initialize reg_conditional_sets.
6798         (free_deps): Clear reg_conditional_sets.
6799         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6800         Mark registers live on entry of the fallthrough block and conditionally
6801         set as set by the jump. Mark registers live on entry of non-fallthrough
6802         blocks as used by the jump.
6803         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6804         Mark new parameters as unused.
6805
6806 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
6807
6808         PR tree-opt/49309
6809         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6810         Use fold_build2_loc instead of build2.
6811         Use the correct type for the new tree.
6812
6813 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6814
6815         PR rtl-optimization/11320
6816         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6817         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6818
6819 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6820
6821         PR target/49487
6822         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6823         of REG.
6824         (*rotw<mode>): Use const_int_operand for operand2.
6825         Use match_scatch for operand3.
6826         (*rotb<mode>): Ditto
6827         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6828
6829 2011-07-14  Richard Guenther  <rguenther@suse.de>
6830
6831         PR tree-optimization/49651
6832         * tree-ssa-structalias.c (get_constraint_for_1): Properly
6833         handle dereferences with subvariables.
6834
6835 2011-07-14  Richard Guenther  <rguenther@suse.de>
6836
6837         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6838         (fold_stmt_1): Do it here directly on gimple and as a first thing.
6839
6840 2011-07-14  Richard Guenther  <rguenther@suse.de>
6841
6842         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
6843         not bool_var when folding bool_var != 1 or bool_var == 0.
6844
6845 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6846
6847         * haifa-sched.c (schedule_insns): Remove outdated comment.
6848         (schedule_block): When computing a known value for TODO_SPEC,
6849         just set it rather than using logical operations.
6850         (try_ready): Likewise.  Use a local variable rather than a
6851         pointer to TODO_SPEC.  Reorder an if statement to move the
6852         easy case to the then block.
6853         * sched-deps.c (dep_spec_p): New static function.
6854         (update_dep): Use it to decide whether to call
6855         change_spec_dep_to_hard.
6856         (get_back_and_forw_lists): Use it.
6857         (sd_resolve_dep): Likewise.
6858         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
6859         (haifa_note_mem_dep): Likewise.
6860         (check_dep): Likewise.
6861         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
6862         (sched_free_deps): Free in two passes.
6863
6864 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
6865
6866         PR middle-end/49736
6867         * expr.c (all_zeros_p): Undo bogus part of last change.
6868
6869 2011-07-14  Matthias Klose <doko@ubuntu.com>
6870
6871         * doc/extend.texi (optimize attribute): Fix typo.
6872
6873 2011-07-14  Richard Guenther  <rguenther@suse.de>
6874
6875         * gimplify.c (gimplify_expr): Only do required conversions.
6876
6877 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6878
6879         PR target/43746
6880         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
6881         i.e. use default_elf_select_section.
6882         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
6883         (READONLY_DATA_SECTION_ASM_OP): Remove.
6884         (TARGET_ASM_NAMED_SECTION): Move from here...
6885         * config/avr/avr.c: ...to here.
6886         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
6887         (avr_asm_named_section): Make static.
6888
6889 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6890
6891         PR bootstrap/49739
6892         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
6893         and crtfastmath.o for Linux/x86.
6894
6895 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6896
6897         * haifa-sched.c: Include "hashtab.h"
6898         (sched_no_dce): New global variable.
6899         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
6900         SHADOW_P): New macros.
6901         (last_clock_var, cycle_issued_insns): Move declarations.
6902         (must_backtrack): New static variable.
6903         (struct delay_pair): New structure.
6904         (delay_htab, delay_htab_i2): New static variables.
6905         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
6906         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
6907         functions.
6908         (dep_cost_1): If delay pairs exist, try to look up the insns and
6909         use the correct pair delay if we find them.
6910         (rank-for_schedule): Tweak priority for insns that must be scheduled
6911         soon to avoid backtracking.
6912         (queue_insn): Detect conditions which force backtracking.
6913         (ready_add): Likewise.
6914         (struct sched_block_state): Add member shadows_only_p.
6915         (struct haifa_save_data): New structure.
6916         (backtrack_queue): New static variable.
6917         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
6918         unschedule_insns_until, restore_last_backtrack_point,
6919         free_topmost_backtrack_point, free_backtrack_queue,
6920         estimate_insn_tick, estimate_shadow_tick): New functions.
6921         (prune_ready_list): New arg shadows_only_p.  All callers changed.
6922         If true, remove everything that isn't SHADOW_P.  Look up delay
6923         pairs and estimate ticks to avoid scheduling the first insn too early.
6924         (verify_shadows): New function.
6925         (schedule_block): Add machinery to enable backtracking.
6926         (sched_init): Take sched_no_dce into account when setting
6927         DF_LR_RUN_DCE.
6928         (free_delay_pairs): New function.
6929         (init_h_i_d): Initialize INSN_EXACT_TICK.
6930         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
6931         * sched-deps.c (sd_unresolve_dep): New function.
6932         * sched-int. (struct haifa_sched_info): New fields save_state
6933         and restore_state.
6934         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
6935         feeds_backtrack_insn and shadow_p.
6936         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
6937         (sched_no_dce): Declare variable.
6938         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
6939         sd_unresolve_dep): Declare functions.
6940         * modulo-sched.c (sms_sched_info): Clear the two new fields.
6941         * sched-rgn.c (rgn_const_sched_info): Likewise.
6942         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6943         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
6944         (ebb_sched_info): Add them for the two new fields.
6945         (add_deps_for_risky_insns): Call add_delay_dependencies.
6946
6947 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6948
6949         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
6950         Rename -mr11.
6951         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
6952         (rs6000_call_indirect_aix): Ditto.
6953         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
6954         (call_indirect_aix<ptrsize>_internal): Ditto.
6955         (call_indirect_aix<ptrsize>_nor11): Ditto.
6956         (call_indirect_aix<ptrsize>_internal2): Ditto.
6957         (call_value_indirect_aix<ptrsize>): Ditto.
6958         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6959         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6960         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6961         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
6962
6963 2011-07-13  Jason Merrill  <jason@redhat.com>
6964
6965         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
6966
6967 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6968
6969         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
6970         * config/spu/spu.md ("clrsb<mode>2"): New expander.
6971
6972 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
6973
6974         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
6975         * configure: Regenerate.
6976
6977 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6978
6979         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
6980         (asm_file_start): Remove.
6981         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
6982         free_bb_for_insn around code that modifies insns before
6983         restarting df analysis.
6984
6985 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6986
6987         PR target/49541
6988         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
6989         (LINK_SPEC): ... here.
6990
6991 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6992
6993         * haifa-sched.c (struct sched_block_state): New.
6994         (schedule_block): Move some local variables into such a structure.
6995
6996 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6997
6998         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
6999         * config/i386/t-crtpc: Remove.
7000         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7001         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
7002         tmake_file.
7003         (x86_64-*-darwin*): Likewise.
7004         (i[34567]86-*-linux*): Likewise.
7005         (x86_64-*-linux*): Likewise.
7006
7007         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
7008         Handle -mpc32, -mpc64, -mpc80.
7009
7010 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7011
7012         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
7013         * config/alpha/t-crtfm: Remove.
7014         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
7015         * config/i386/t-crtfm: Remove.
7016         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
7017         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
7018         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
7019         * config/sparc/t-crtfm: Remove.
7020
7021         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
7022         (alpha*-*-freebsd*): Likewise.
7023         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
7024         (x86_64-*-darwin*): Likewise.
7025         (i[34567]86-*-linux*): Likewise.
7026         (x86_64-*-linux*): Likewise.
7027         (x86_64-*-mingw*): Likewise.
7028         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
7029         (ia64*-*-freebsd*): Likewise.
7030         (ia64*-*-linux*): Likewise.
7031         (mips64*-*-linux*): Likewise.
7032         (mips*-*-linux*): Likewise.
7033         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
7034         (sparc64-*-linux*): Likewise.
7035         (sparc64-*-freebsd*): Likewise.
7036
7037 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7038
7039         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
7040         * config/darwin-crt3.c: Move to ../libgcc/config.
7041         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7042         ($(T)crt3$(objext)): Remove.
7043         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
7044         ($(T)crt2$(objext)): Remove.
7045         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
7046         (powerpc64-*-darwin*): Likewise.
7047
7048 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
7049
7050         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
7051
7052         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
7053         (addsi_1_zext): This.
7054
7055 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7056
7057         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
7058         * doc/tm.texi: Regenerate.
7059         * target.def (mergeable_rodata_prefix): New defhookpod.
7060         * varasm.c (mergeable_string_section, mergeable_constant_section):
7061         Use it. Allocate name with alloca.
7062
7063 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
7064
7065         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7066
7067 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7068
7069         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7070         overlap check.
7071
7072 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7073
7074         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
7075         (count_type_elements): Delete.
7076         (complete_ctor_at_level_p): Declare.
7077         * expr.c (flexible_array_member_p): New function, split out from...
7078         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
7079         parameter with for_ctor_p.  When for_ctor_p is true, return the
7080         number of elements that should appear in the top-level constructor,
7081         otherwise return an estimate of the number of scalars.
7082         (categorize_ctor_elements): Replace p_must_clear with p_complete.
7083         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
7084         (complete_ctor_at_level_p): New function, borrowing union logic
7085         from old categorize_ctor_elements_1.
7086         (mostly_zeros_p): Return true if the constructor is not complete.
7087         (all_zeros_p): Update call to categorize_ctor_elements.
7088         * gimplify.c (gimplify_init_constructor): Update call to
7089         categorize_ctor_elements.  Don't call count_type_elements.
7090         Unconditionally prevent clearing for variable-sized types,
7091         otherwise rely on categorize_ctor_elements to detect
7092         incomplete initializers.
7093
7094 2011-07-13  Richard Guenther  <rguenther@suse.de>
7095
7096         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7097         the final type is integral.
7098
7099 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7100
7101         * sched-int.h (struct _dep): Add member cost.
7102         (DEP_COST, UNKNOWN_DEP_COST): New macros.
7103         * sched-deps.c (init_dep_1): Initialize DEP_COST.
7104         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7105         (sched_change_pattern): Reset it for dependent insns.
7106
7107 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7108
7109         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7110         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7111         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7112         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7113         (CRT0_S, MCRT0_S): Remove.
7114         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7115         Remove.
7116         (s-crt0): Remove.
7117         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7118
7119 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
7120
7121         * cse.c (insert_with_costs): Put semi-colon after empty loop body
7122         on the next line.
7123         * emit-rtl.c (push_to_sequence): Likewise.
7124         * haifa-sched.c (max_issue): Likewise.
7125         * matrix-reorg.c (add_allocation_site): Likewise.
7126         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7127         * reload.c (alternative_allows_const_pool_ref): Likewise.
7128         * sched-rgn.c (rgn_add_block): Likewise.
7129         (rgn_fix_recovery_cfg): Likewise.
7130         * tree.c (attribute_list_contained): Likewise.
7131
7132 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
7133
7134         * config/i386/i386.c: Tidy processor feature bitmasks.
7135         (m_P4_NOCONA): New.
7136
7137 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
7138
7139         PR rtl-opt/49474
7140         * cprop.c (find_implicit_sets): Correct the condition.
7141
7142 2011-07-12  Richard Henderson  <rth@redhat.com>
7143
7144         PR target/49713
7145         * dwarf2out.h (dwarf_frame_regnum): Remove.
7146         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
7147         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
7148         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
7149         (execute_dwarf2_frame): Initialize them.
7150         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
7151         users of the macros with the variables.
7152         (expand_builtin_dwarf_sp_column): Revert last change.
7153         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
7154         result of DWARF_FRAME_REGNUM into a local variable.
7155
7156 2011-07-12  Richard Henderson  <rth@redhat.com>
7157
7158         PR target/49714
7159         * config/i386/i386.c (x86_output_mi_thunk): Use
7160         machopic_indirect_call_target instead of machopic_indirection_name
7161         directly.
7162
7163 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
7164             Eric Botcazou  <ebotcazou@adacore.com>
7165
7166         * prefix.h: Wrap up in extern "C" block.
7167
7168 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
7169
7170         AMD bdver2 Enablement
7171         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
7172         (case ${target}): Add bdver2.
7173         * config/i386/driver-i386.c (host_detect_local_cpu): Let
7174         -march=native recognize bdver2 processors.
7175         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7176         bdver2 def_and_undef
7177         * config/i386/i386.c (struct processor_costs bdver2_cost): New
7178         bdver2 cost table.
7179         (m_BDVER2): New definition.
7180         (m_AMD_MULTIPLE): Includes m_BDVER2.
7181         (initial_ix86_tune_features): Add bdver2 tuning.
7182         (processor_target_table): Add bdver2 entry.
7183         (static const char *const cpu_names): Add bdver2 entry.
7184         (ix86_option_override_internal): Add bdver2 instruction sets.
7185         (ix86_issue_rate): Add bdver2.
7186         (ix86_adjust_cost): Add bdver2.
7187         (has_dispatch): Add bdver2.
7188         * config/i386/i386.h (TARGET_BDVER2): New definition.
7189         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
7190         (enum processor_type): Add PROCESSOR_BDVER2.
7191         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
7192         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
7193         description.
7194
7195 2011-07-12  Richard Henderson  <rth@redhat.com>
7196
7197         PR target/49714
7198         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
7199         destination address in memory on some paths.
7200
7201 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
7202
7203         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
7204         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
7205         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
7206         * function.c (locate_and_pad_parm): Take it into account.
7207         * target.def (function_arg_round_boundary): New hook.
7208         * targhooks.c (default_function_arg_round_boundary): New function.
7209         * targhooks.h (default_function_arg_round_boundary): Declare.
7210         * doc/tm.texi: Regenerate.
7211
7212 2011-07-12  Richard Guenther  <rguenther@suse.de>
7213
7214         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
7215         Do not perform no-op changes.
7216
7217 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
7218
7219         * config/arm/predicates.md (neon_struct_operand): Make a normal
7220         predicate.
7221         (neon_struct_or_register_operand): New predicate.
7222         * config/arm/neon.md (movmisalign<mode>): Replace predicates
7223         with neon_struct_or_register_operand.
7224         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
7225         neon_struct_operand instead of memory_operand.
7226
7227 2011-07-12  Martin Jambor  <mjambor@suse.cz>
7228
7229         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
7230         * cgraph.c (cgraph_get_node_or_alias): Removed.
7231         (change_decl_assembler_name): Changed all calls to
7232         cgraph_get_node_or_alias to a call to cgraph_get_node.
7233         (cgraph_make_decl_local): Likewise.
7234         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
7235         * varasm.c (default_binds_local_p_1): Likewise.
7236         (decl_binds_to_current_def_p): Likewise.
7237
7238 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
7239
7240         PR tree-optimization/49712
7241         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
7242
7243 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
7244
7245         * genautomata.c (add_arc): Return void.  All callers changed.
7246         (make_automaton): Remove dead code.
7247
7248 2011-07-11  Richard Henderson  <rth@redhat.com>
7249
7250         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
7251         (DW_FRAME_POINTER_REGNUM): New.
7252         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
7253         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
7254         (dwf_regno): New.
7255         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
7256         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
7257         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
7258         Use it.
7259         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
7260         * dwarf2out.h (dwarf_frame_regnum): New.
7261         (struct cfa_loc): Document the domain of the reg member.
7262
7263 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
7264
7265         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
7266         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
7267
7268 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
7269
7270         PR debug/49676
7271         * dwarf2out.c (int_shift_loc_descriptor): New function.
7272         (int_loc_descriptor): If shorter, emit i as
7273         (i >> shift), shift, DW_OP_shl for suitable shift value.
7274         Similarly, try to optimize large negative values using
7275         DW_OP_neg of a positive value if shorter.
7276         (size_of_int_shift_loc_descriptor): New function.
7277         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
7278         changes.
7279         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
7280         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
7281         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
7282         is shorter.
7283         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
7284         addend as added DW_OP_plus if it is shorter.
7285
7286 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7287
7288         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
7289         (DTORS_SECTION_ASM_OP): Define.
7290
7291 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7292
7293         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
7294         * config/t-dfprules: Move to ../libgcc/config.
7295         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7296         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7297         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
7298         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
7299         Likewise.
7300         (i[34567]86-*-cygwin*): Likewise.
7301         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
7302         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
7303         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
7304         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
7305         D64PBIT_FUNCS, D128PBIT_FUNCS.
7306
7307 2011-07-11  Richard Guenther  <rguenther@suse.de>
7308
7309         * tree-vrp.c (simplify_conversion_using_ranges): Manually
7310         translate the source value-range through the conversion chain.
7311
7312 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
7313
7314         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
7315
7316 2011-07-11  Arthur Loiret  <aloiret@debian.org>
7317
7318         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
7319         a bi-arch compiler defaulting to 31-bit. In this case:
7320         (tmake_file): Add s390/t-linux64.
7321         * doc/install.texi: Add s390-linux to the list of targets supporting
7322         --enable-targets=all.
7323
7324 2011-07-11  Arthur Loiret  <aloiret@debian.org>
7325             Matthias Klose <doko@debian.org>
7326
7327         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
7328         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
7329         (tm_file): Add mips/linux64.h.
7330         (tmake_file): Add mips/t-linux64.
7331         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7332         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
7333         instead of hardcoded mabi=n32.
7334         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7335         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7336         convention.
7337
7338 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7339
7340         * passes.c (init_optimization_passes): Add invariant motion pass
7341         after induction variable optimization.
7342
7343 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
7344
7345         PR target/39633
7346         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
7347         offsets 1..5 set cc0 in a usable way.
7348
7349 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
7350
7351         * tree.h (call_expr_arg): Remove.
7352         (call_expr_argp): Likewise.
7353
7354 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
7355
7356         * config/sparc/sparc.md (save_register_window_1): Rename to...
7357         (window_save): ...this.
7358         * config/sparc/sparc.c (emit_save_register_window): Rename to...
7359         (emit_window_save): ...this.
7360         (sparc_expand_prologue): Adjust to above renaming.
7361
7362 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7363
7364         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
7365         of movabs for x32.
7366
7367 2011-07-10  Richard Henderson  <rth@redhat.com>
7368
7369         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7370         run final, instead of emitting text directly.
7371
7372 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7373
7374         * config/i386/i386.c (ix86_option_override_internal): Turn on
7375         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
7376         small PIC models for TARGET_X32.
7377
7378 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
7379
7380         PR target/49684
7381         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7382         $(LIBGCC2_CFLAGS).
7383
7384         PR bootstrap/49680
7385         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7386         stray notes and debug insns by using prev_nonnote_nondebug_insn
7387         instead of PREV_INSN.
7388
7389 2011-07-09  Richard Henderson  <rth@redhat.com>
7390
7391         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7392         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7393         * dwarf2out.c: ... here.
7394         (output_all_cfis): Remove.
7395         (dwarf2out_switch_text_section): Use output_cfis directly.
7396         (size_of_locs): Export.
7397         (output_loc_sequence, output_loc_sequence_raw): Export.
7398         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7399         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7400         output_cfa_loc_raw): Move to ...
7401         * dwarfcfi.c: ... here.
7402         * dwarf2out.h: Update decls.
7403
7404 2011-07-09  Richard Henderson  <rth@redhat.com>
7405
7406         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7407         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7408         * dwarf2cfi.c: ... here.
7409         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7410         (DWARF_ROUND, DWARF_CIE_ID): Remove.
7411         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7412         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7413         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7414
7415 2011-07-09  Richard Henderson  <rth@redhat.com>
7416
7417         * dwarf2cfi.c (cie_return_save): New.
7418         (queue_reg_save): Use compare_reg_or_pc.
7419         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7420         (dwarf2out_frame_debug_expr): Likewise.
7421         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7422         (initial_return_save): Likewise.
7423         (execute_dwarf2_frame): Save and restore initial return save from
7424         the cie to the fde.
7425         * config/mips/mips.c (mips_frame_set): Remove special case for
7426         DWARF_FRAME_RETURN_COLUMN.
7427
7428 2011-07-09  Richard Henderson  <rth@redhat.com>
7429
7430         * dwarf2cfi.c (lookup_cfa): Remove.
7431         (execute_dwarf2_frame): Assert queues are empty on entry.
7432         Setup initial cfa directly, not via lookup_cfa.
7433         Don't clear args_size state here.
7434
7435 2011-07-09  Richard Henderson  <rth@redhat.com>
7436
7437         * dwarf2cfi.c (add_cfi_vec): New.
7438         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
7439         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
7440         (execute_dwarf2_frame): Set add_cfi_vec.
7441
7442 2011-07-09  Richard Henderson  <rth@redhat.com>
7443
7444         * defaults.h (ASM_COMMENT_START): Move here...
7445         * dwarf2asm.c: ... from here.
7446         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7447         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7448         * varasm.c: Likewise.
7449
7450 2011-07-09  Richard Henderson  <rth@redhat.com>
7451
7452         PR debug/49686
7453         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7454         (create_cfi_notes): ... do it here instead.
7455
7456 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
7457
7458         PR debug/49676
7459         * dwarf2out.c (size_of_int_loc_descriptor): New function.
7460         (address_of_int_loc_descriptor): Use it.
7461         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7462
7463 2011-07-09  Richard Henderson  <rth@redhat.com>
7464
7465         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7466         (prologue, epilogue): New.
7467         (return, *rts): New.
7468         (blockage, setd, seti): New.
7469         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7470         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7471         (pdp11_saved_regno): New.
7472         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7473         generate rtl instead of text.
7474         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7475         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
7476         * config/pdp11/pdp11-protos.h: Update.
7477
7478 2011-07-09  Richard Henderson  <rth@redhat.com>
7479
7480         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7481         try to insert an rtl prologue here.
7482         (rs6000_output_function_epilogue): Similarly.
7483         * config/rs6000/rs6000.md (prologue): Emit a barrier to
7484         satisfy !TARGET_SCHED_PROLOG.
7485         (epilogue, sibcall_epilogue): Likewise.
7486
7487 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
7488
7489         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7490         (FP_REG_P): Delete.
7491         (IN_OR_GLOBAL_P): Likewise.
7492
7493 2011-07-08  Jason Merrill  <jason@redhat.com>
7494
7495         PR c++/45437
7496         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7497         compound assignment.
7498
7499         * cgraph.c (cgraph_add_to_same_comdat_group): New.
7500         * cgraph.h: Declare it.
7501         * ipa.c (function_and_variable_visibility): Make sure thunks
7502         have the right visibility.
7503
7504 2011-07-08  Richard Henderson  <rth@redhat.com>
7505
7506         PR bootstrap/49680
7507         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7508         any tablejump vector.
7509
7510         PR bootstrap/49680
7511         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7512         end of the prologue.
7513
7514 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
7515
7516         PR target/49621
7517         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7518         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7519         * config/rs6000/vector.md (vector_select_<mode>,
7520         vector_select_<mode>_uns): Change second operand of NE to
7521         CONST0_RTX (<MODE>mode) instead of const0_rtx.
7522         * config/rs6000/altivec.md (*altivec_vsel<mode>,
7523         *altivec_vsel<mode>_uns): Expect second operand of NE to be
7524         zero_constant of the corresponding vector mode.
7525         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7526         Likewise.
7527
7528 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7529
7530         * graphite-dependences.c (build_alias_set_powerset): Remove
7531         continue from loop, add one more assert.
7532
7533 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7534
7535         PR target/46779
7536         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7537         In particular, allow 8-bit values in r28 and r29.
7538         (avr_hard_regno_scratch_ok): Disallow any register that might be
7539         part of the frame pointer.
7540         (avr_hard_regno_rename_ok): Same.
7541         (avr_legitimate_address_p): Don't allow SUBREGs.
7542
7543 2011-07-08  Julian Brown  <julian@codesourcery.com>
7544
7545         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7546         big-endian mode.
7547         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7548         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7549         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7550         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7551         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7552         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7553         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7554         registers in big-endian mode.
7555
7556 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7557
7558         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7559         in terms of another.
7560         (write_attr_value): Write a cast if necessary.
7561
7562         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7563         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7564         (REG_WORDS_BIG_ENDIAN): Document.
7565         * doc/tm.texi: Regenerate.
7566         * reload.c (operands_match_p): Take it into account.
7567         (reload_adjust_reg_for_mode): Likewise.
7568         * rtlanal.c (subreg_get_info): Likewise.
7569
7570 2011-07-08  Richard Guenther  <rguenther@suse.de>
7571
7572         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7573         folding.
7574
7575 2011-07-08  Kai Tietz  <ktietz@redhat.com>
7576
7577         * fold-const.c (fold_truth_andor): Factored out truth_andor
7578         label from fold_binary as function.
7579         (fold_binary_loc): Replace truth_andor lable
7580         by function fold_truth_andor.
7581
7582 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
7583
7584         PR middle-end/49519
7585         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7586         check if address is stored in register. If so - give up.
7587         (check_sibcall_argument_overlap_1): Do not perform check of
7588         overlapping when it is call to address.
7589
7590 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7591
7592         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
7593         of magic '31'.
7594
7595 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7596
7597         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
7598         GET_MODE_BITSIZE where appropriate.
7599         (widen_leading, expand_parity, expand_ctz, expand_ffs,
7600         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
7601         expand_float, expand_fix): Likewise.
7602         * expr.c (convert_move, convert_modes, expand_expr_real_2,
7603         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7604         * stor-layout.c (get_mode_bounds): Likewise.
7605         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
7606         Likewise.
7607         * convert.c (convert_to_integer): Likewise.
7608         * expmed.c (expand_shift_1): Likewise.
7609
7610         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
7611         a bitsize.
7612
7613         * optabs.c (expand_binop): Tighten conditions for doubleword
7614         expansions.
7615         (widen_bswap): Assert that mode bitsize and precision are the same.
7616         * stor-layout.c (get_best_mode): Skip modes that have lower
7617         precision than bitsize.
7618         * recog.c (simplify_while_replacing): Assert that bitsize and
7619         precision are the same.
7620
7621 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7622
7623         * Makefile.in (LIBGCOV): Remove.
7624         (libgcc.mvars): Remove LIBGCOV.
7625         * libgov.c: Move to ../libgcc.
7626
7627 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7628
7629         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
7630
7631 2011-07-08  Martin Jambor  <mjambor@suse.cz>
7632
7633         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
7634         is too big for total scalarization.
7635
7636 2011-07-07  Richard Henderson  <rth@redhat.com>
7637
7638         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
7639         (DBX_DEBUGGING_INFO): Undef.
7640
7641 2011-07-07  Richard Henderson  <rth@redhat.com>
7642
7643         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
7644         Handle some opcodes specially for debugging.
7645         * print-rtl.c: Include dwarf2out.h
7646         (print_rtx): Handle NOTE_INSN_CFI.
7647         * Makefile.in (print-rtl.o): Update.
7648
7649 2011-07-07  Richard Henderson  <rth@redhat.com>
7650
7651         * tree-pass.h (pass_dwarf2_frame): Declare.
7652         * passes.c (init_optimization_passes): Add it.
7653         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
7654         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
7655         make static, do not call add_cfis_to_fde.
7656         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7657         dwarf2out_frame_init): Merge into...
7658         (execute_dwarf2_frame): ... here.  New function.
7659         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
7660         saved_do_cfi_asm to a tri-state variable.
7661         (gate_dwarf2_frame, pass_dwarf2_frame): New.
7662         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7663         if it has yet to be done.  Don't call dwarf2cfi_function_init.
7664         * dwarf2out.h, debug.h: Update decls.
7665         * final.c (final_start_function): Don't call
7666         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7667         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7668         * toplev.c (lang_dependent_init): Likewise.
7669
7670 2011-07-07  Richard Henderson  <rth@redhat.com>
7671
7672         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7673         FDE_TABLE_INCREMENT): Replace with...
7674         (fde_vec): ... this, a new vector.
7675         (current_fde): Remove.  Replace all users with cfun->fde.
7676         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7677         (size_of_aranges, dwarf2out_finish): Likewise.
7678         (dwarf2out_alloc_current_fde): Break out from ...
7679         (dwarf2out_begin_prologue): ... here.
7680         (dwarf2out_frame_init): Remove.
7681         * dwarf2cfi.c: Update all users of current_fde.
7682         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7683         * dwarf2out.h: Update decls.
7684         (dw_fde_node): Add fde_index member.
7685         * function.h (struct function): Add fde member.
7686
7687 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7688             Richard Henderson  <rth@redhat.com>
7689
7690         * dwarf2cfi.c (add_cfi): Remove.
7691         (dwarf2out_cfi_label): Remove force argument.  Only generate the
7692         label name.
7693         (add_fde_cfi): Simplify the different code paths.
7694         (add_cie_cfi): New.
7695         (old_cfa, old_cfa_remember): New.
7696         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7697         (last_reg_save_label): Remove.
7698         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7699         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7700         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7701         dwarf2out_frame_debug_cfa_expression,
7702         dwarf2out_frame_debug_cfa_restore,
7703         dwarf2out_frame_debug_cfa_window_save,
7704         dwarf2out_frame_debug_expr): Remove label parameter.
7705         (cfi_label_required_p, add_cfis_to_fde): New.
7706         (dwarf2out_frame_debug_after_prologue): New.
7707         (dwarf2cfi_frame_init): Initialize old_cfa.
7708         (dwarf2out_frame_debug_restore_state): Likewise.
7709         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7710         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7711         * final.c (final_start_function): Call
7712         dwarf2out_frame_debug_after_prologue.
7713
7714 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7715             Richard Henderson  <rth@redhat.com>
7716
7717         * dwarf2cfi.c (cfi_insn): New.
7718         (dwarf2out_cfi_label): Don't emit cfi label here.
7719         (add_fde_cfi): Create a NOTE_INSN_CFI.
7720         (dwarf2out_frame_debug): Setup cfi_insn.
7721         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7722         (dwarf2out_cfi_begin_epilogue): Make static.
7723         (dwarf2out_frame_debug_restore_state): Make static.
7724         * dwarf2out.c (output_cfi_directive): Make static.
7725         (dwarf2out_emit_cfi): New.
7726         * dwarf2out.h: Update.
7727         * final.c (final): Remove CFI notes.
7728         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7729         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7730         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7731         * insn-notes.def (NOTE_INSN_CFI): New.
7732         (NOTE_INSN_CFI_LABEL): New.
7733         * rtl.h (union rtunion_def): Add rt_cfi member.
7734         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7735
7736 2011-07-07  Richard Henderson  <rth@redhat.com>
7737
7738         * dwarf2cfi.c: New file.
7739         * Makefile.in (OBJS): Add it.
7740         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7741         * gengtype.c (open_base_files): Include dwarf2out.h.
7742         * coretypes.h (enum var_init_status): Move from ...
7743         * rtl.h: ... here.
7744         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7745         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7746         expand_builtin_dwarf_sp_column, init_return_column_size,
7747         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7748         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7749         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7750         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7751         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7752         compute_barrier_args_size, dwarf2out_args_size,
7753         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7754         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7755         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7756         queue_reg_save, dwarf2out_flush_queued_reg_saves,
7757         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7758         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7759         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7760         dwarf2out_frame_debug_cfa_expression,
7761         dwarf2out_frame_debug_cfa_restore,
7762         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7763         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7764         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7765         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7766         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7767         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7768         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7769         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7770         dw_loc_descr_node): Move to dwarf2out.h.
7771         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7772         mem_loc_descriptor): Export.
7773         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
7774         (dwarf2out_frame_init): Extract CIE generation code to
7775         dwarf2cfi_frame_init.
7776
7777 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7778
7779         PR target/49660
7780         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7781         MASK_V8PLUS, remove commented out flag and reorder.
7782
7783 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7784
7785         PR c/49644
7786         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7787         one non-complex and one complex argument, call c_save_expr on both
7788         operands.
7789
7790 2011-07-07  Martin Jambor  <mjambor@suse.cz>
7791
7792         PR middle-end/49495
7793         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7794         (verify_cgraph_node): Some functinality moved to
7795         verify_edge_corresponds_to_fndecl, call it.
7796
7797 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7798
7799         * config.gcc (*local*): Remove.
7800         * doc/install-old.texi: Don't mention local configurations.
7801
7802 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7803
7804         PR debug/49522
7805         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7806         referencing debug insns that have been reset.
7807         (dead_debug_insert_before): Don't assert reg is non-NULL,
7808         instead return immediately if it is NULL.
7809
7810 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7811
7812         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7813
7814 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7815
7816         * hw-doloop.c: New file.
7817         * hw-doloop.h: New file.
7818         * Makefile.in (OBJS): Add hw-doloop.o.
7819         (hw-doloop.o): New rule.
7820         ($(obj_out_file)): Add hw-doloop.h dependency.
7821         * config/bfin/bfin.c: Include "hw-doloop.h".
7822         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7823         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7824         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
7825         type changed to hwloop_info.  Return bool, true if the loop was
7826         successfully optimized.  Remove code that was moved to
7827         hw-doloop.c, and adjust other parts.
7828         (hwloop_fail): New static function, containing parts that used
7829         to be in bfin_optimize_loop.
7830         (bfin_discover_loop, bfin_discover_loops, free_loops,
7831         bfin_reorder_loops): Remove.
7832         (hwloop_pattern_reg): New static function.
7833         (bfin_doloop_hooks): New variable.
7834         (bfin_reorg_loops): Remove most code, call reorg_loops.
7835         * config/bfin/bfin.md (doloop_end splitter): Also enable if
7836         loop counter is a memory_operand.
7837
7838 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7839
7840         * config.gcc: Support --with-multilib-list for x86 Linux targets.
7841
7842         * configure.ac: Mention x86-64 for --with-multilib-list.
7843         * configure: Regenerated.
7844
7845         * config/i386/gnu-user64.h (SPEC_64): Support x32.
7846         (SPEC_32): Likewise.
7847         (ASM_SPEC): Likewise.
7848         (LINK_SPEC): Likewise.
7849         (TARGET_THREAD_SSP_OFFSET): Likewise.
7850         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
7851         (SPEC_X32): New.
7852
7853         * config/i386/i386.h (TARGET_X32): New.
7854         (TARGET_LP64): New.
7855         (LONG_TYPE_SIZE): Likewise.
7856         (POINTER_SIZE): Likewise.
7857         (POINTERS_EXTEND_UNSIGNED): Likewise.
7858         (OPT_ARCH64): Support x32.
7859         (OPT_ARCH32): Likewise.
7860
7861         * config/i386/i386.opt (mx32): New.
7862
7863         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
7864         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7865         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
7866         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7867
7868         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
7869         (BIONIC_DYNAMIC_LINKERX32): Likewise.
7870         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
7871
7872         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
7873
7874         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
7875
7876         * doc/invoke.texi: Document -mx32.
7877
7878 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7879
7880         * doc/invoke.texi (mwords-little-endian): Deprecate.
7881         * config/arm/arm.opt (mwords-little-endian): Likewise.
7882         * config/arm/arm.c (arm_option_override): Warn about the deprecation
7883         of -mwords-little-endian.
7884
7885 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7886
7887         * reload1.c (choose_reload_regs): Use mode sizes to check whether
7888         an old reload register completely defines the required value.
7889
7890 2011-07-07  Richard Guenther  <rguenther@suse.de>
7891
7892         * fold-const.c (fold_unary_loc): Do not strip sign-changes
7893         for NEGATE_EXPR.
7894
7895 2011-07-07  Richard Guenther  <rguenther@suse.de>
7896
7897         * tree-vrp.c (simplify_conversion_using_ranges): New function.
7898         (simplify_stmt_using_ranges): Call it.
7899
7900 2011-07-07  Kai Tietz  <ktietz@redhat.com>
7901
7902         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
7903         (lookup_logical_inverted_value): Likewise.
7904         (simplify_bitwise_binary_1): Likewise.
7905         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
7906
7907 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7908
7909         * gcc.c (%[Spec]): Don't document.
7910         (struct spec_list): Update comment.
7911         (do_spec_1): Don't handle %[Spec].
7912         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
7913
7914 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7915
7916         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
7917         default based on TARGET_ASM_NAMED_SECTION.
7918         * common/common-target.def (have_named_sections): Default to true.
7919         * common/config/default-common.c: Don't include tm.h.
7920         * common/config/picochip/picochip-common.c
7921         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
7922         * common/config/m32c/m32c-common.c: Remove.
7923         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
7924         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7925         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7926         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7927         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7928         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7929         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7930
7931 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7932
7933         PR middle-end/49640
7934         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
7935         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
7936
7937 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7938
7939         PR libmudflap/49550
7940         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
7941
7942 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7943
7944         PR target/39150
7945         * configure.ac (gcc_cv_as_hidden): Also accept
7946         x86_64-*-solaris2.1[0-9]*.
7947         (gcc_cv_as_cfi_directive): Likewise.
7948         (gcc_cv_as_comdat_group_group): Likewise.
7949         (set_have_as_tls): Likewise.
7950         * configure: Regenerate.
7951         * config.gcc (i[34567]86-*-solaris2*): Also handle
7952         x86_64-*-solaris2.1[0-9]*.
7953         * config.host (i[34567]86-*-solaris2*): Likewise.
7954         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7955         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
7956         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
7957         (TARGET_LD_EMULATION): Use it.
7958         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
7959         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
7960         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
7961         (ASM_CPU64_DEFAULT_SPEC): Define.
7962         (ASM_CPU_SPEC): Use %(asm_cpu_default).
7963         (ASM_SPEC): Redefine.
7964         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
7965         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
7966         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
7967         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
7968         configuration.
7969         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
7970
7971 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7972
7973         * config/sol2.h (ASM_SPEC): Split into ...
7974         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
7975         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
7976         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
7977         (ASM_SPEC): Use ASM_SPEC_BASE.
7978         * config/sparc/sol2.h (ASM_SPEC): Redefine.
7979
7980 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
7981
7982         * config/avr/avr.md (*reload_insi): Change predicate #1 to
7983         const_int_operand.  Ditto for peep2 producing this insn.
7984         Add argument to output_reload_insisf call.
7985         (*movsi,*movsf): Add argument to output_movsisf call.
7986         (*reload_insf): New insn and new peep2 to produce it.
7987         * config/avr/avr-protos.h (output_movsisf): Change prototype.
7988         (output_reload_insisf): Change prototype.
7989         * config/avr/avr.c (avr_asm_len): New function.
7990         (output_reload_insisf): Rewrite.
7991         (output_movsisf): Change prototype.  output_reload_insisf for
7992         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
7993         (adjust_insn_length): Add argument to output_movsisf and
7994         output_reload_insisf call.
7995
7996 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7997
7998         * emit-rtl.c (paradoxical_subreg_p): New function.
7999         * rtl.h (paradoxical_subreg_p): Declare.
8000         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
8001         apply_distributive_law, simplify_comparison, simplify_set): Use it.
8002         * cse.c (record_jump_cond, cse_insn): Likewise.
8003         * expr.c (force_operand): Likewise.
8004         * rtlanal.c (num_sign_bit_copies1): Likewise.
8005         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
8006         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
8007         (push_reload): Use precision to check for paradoxical subregs.
8008         * expmed.c (extract_bit_field_1): Likewise.
8009
8010         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
8011         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
8012         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
8013         simplify_set, simplify_logical, expand_compound_operation,
8014         make_extraction, force_to_mode, if_then_else_cond, extended_count,
8015         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
8016         record_value_for_reg): Likewise.
8017         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
8018         * simplify-rtx. c (simplify_unary_operation_1,
8019         simplify_binary_operation_1, simplify_const_relational_operation):
8020         Likewise.
8021
8022         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
8023         instead of GET_MODE_BITSIZE where appropriate.
8024         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
8025         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
8026         init_num_sign_bit_copies_in_rep): Likewise.
8027         * cse.c (fold_rtx, cse_insn): Likewise.
8028         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
8029         * simplify-rtx.c (simplify_unary_operation_1,
8030         simplify_const_unary_operation, simplify_binary_operation_1,
8031         simplify_const_binary_operation, simplify_ternary_operation,
8032         simplify_const_relational_operation, simplify_subreg): Likewise.
8033         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
8034         simplify_if_then_else, simplify_set, expand_compound_operation,
8035         expand_field_assignment, make_extraction, if_then_else_cond,
8036         make_compound_operation, force_to_mode, make_field_assignment,
8037         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
8038         extended_count, try_widen_shift_mode, simplify_shift_const_1,
8039         simplify_comparison, record_promoted_value, simplify_compare_const,
8040         record_dead_and_set_regs_1): Likewise.
8041
8042         Revert:
8043         * simplify-rtx.c (simplify_const_binary_operation): Use the
8044         shift_truncation_mask hook instead of performing modulo by width.
8045         Compare against mode precision, not bitsize.
8046         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8047         Use shift_truncation_mask instead of constructing the value manually.
8048
8049 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8050
8051         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
8052         declaration.
8053         (rs6000_save_toc_in_prologue_p): Ditto.
8054
8055         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
8056         up the static chain (r11) during indirect function calls.
8057         (-msave-toc-indirect): New undocumented debug switch.
8058
8059         * config/rs6000/rs6000.c (struct machine_function): Add
8060         save_toc_in_prologue field to note whether the prologue needs to
8061         save the TOC value in the reserved stack location.
8062         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
8063         to save the TOC in the prologue, do so.
8064         (rs6000_trampoline_init): Don't allow creating AIX style
8065         trampolines if -mno-r11 is in effect.
8066         (rs6000_call_indirect_aix): New function to create AIX style
8067         indirect calls, adding support for -mno-r11 to suppress loading
8068         the static chain, and saving the TOC in the prologue instead of
8069         the call body.
8070         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8071         TOC in the prologue.
8072
8073         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8074         register numbers.
8075         (TOC_REGNUM): Ditto.
8076         (STATIC_CHAIN_REGNUM): Ditto.
8077         (ARG_POINTER_REGNUM): Ditto.
8078         (SFP_REGNO): Delete, unused.
8079         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8080         function descriptor offsets.
8081         (TOC_SAVE_OFFSET_64BIT): Ditto.
8082         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8083         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8084         (AIX_FUNC_DESC_SC_32BIT): Ditto.
8085         (AIX_FUNC_DESC_SC_64BIT): Ditto.
8086         (ptrload): New mode attribute for the appropriate load of a pointer.
8087         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8088         (call_indirect_aix64): Ditto.
8089         (call_value_indirect_aix32): Ditto.
8090         (call_value_indirect_aix64): Ditto.
8091         (call_indirect_nonlocal_aix32_internal): Ditto.
8092         (call_indirect_nonlocal_aix32): Ditto.
8093         (call_indirect_nonlocal_aix64_internal): Ditto.
8094         (call_indirect_nonlocal_aix64): Ditto.
8095         (call): Rewrite AIX indirect function calls.  Add support for
8096         eliminating the static chain, and for moving the save of the TOC
8097         to the function prologue.
8098         (call_value): Ditto.
8099         (call_indirect_aix<ptrsize>): Ditto.
8100         (call_indirect_aix<ptrsize>_internal): Ditto.
8101         (call_indirect_aix<ptrsize>_internal2): Ditto.
8102         (call_indirect_aix<ptrsize>_nor11): Ditto.
8103         (call_value_indirect_aix<ptrsize>): Ditto.
8104         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8105         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8106         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8107         (call_nonlocal_aix32): Relocate in the rs6000.md file.
8108         (call_nonlocal_aix64): Ditto.
8109
8110         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8111         -mno-r11 documentation.
8112
8113 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
8114
8115         PR other/49658
8116         * doc/extend.texi (Compound Literals): Fix typo.
8117
8118 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
8119
8120         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8121
8122 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
8123
8124         * configure.ac (plugin-version.h): Generate
8125         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8126         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8127         macros.
8128
8129         * configure: Regenerate.
8130
8131         * doc/plugins.texi (Building GCC plugins): Mention
8132         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8133
8134 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8135
8136         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8137         * combine.c (make_extraction, gen_lowpart_or_truncate,
8138         apply_distributive_law, simplify_comparison,
8139         reg_truncated_to_mode, record_truncated_value): Use it.
8140         * cse.c (notreg_cost): Likewise.
8141         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8142         * expr.c (convert_move, convert_modes): Likewise.
8143         * optabs.c (expand_binop, expand_unop): Likewise.
8144         * postreload.c (move2add_last_label): Likewise.
8145         * regmove.c (optimize_reg_copy_3): Likewise.
8146         * rtlhooks.c (gen_lowpart_general): Likewise.
8147         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8148
8149 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
8150
8151         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
8152
8153 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8154
8155         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
8156         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
8157         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
8158         (simplify_const_unary_operation, simplify_binary_operation_1,
8159         simplify_const_binary_operation, simplify_const_relational_operation):
8160         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
8161         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
8162         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
8163         simplify_shift_const_1, simplify_comparison): Likewise.
8164         * expr.c (convert_modes): Likewise.
8165         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
8166         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
8167         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
8168
8169         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
8170
8171 2011-07-06  Richard Guenther  <rguenther@suse.de>
8172
8173         PR tree-optimization/49645
8174         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
8175         register variables.
8176         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
8177         in type qualification here ...
8178         (copy_reference_ops_from_ref): ... not here.
8179         (vn_reference_lookup_3): ... or here.
8180         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
8181         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
8182
8183 2011-07-06  Ian Lance Taylor  <iant@google.com>
8184
8185         * doc/install.texi (Configuration): It's
8186         --enable-gnu-indirect-function, not --enable-indirect-function.
8187
8188 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8189
8190         * simplify-rtx.c (simplify_const_binary_operation): Use the
8191         shift_truncation_mask hook instead of performing modulo by width.
8192         Compare against mode precision, not bitsize.
8193         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8194         Use shift_truncation_mask instead of constructing the value manually.
8195
8196 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8197
8198         PR middle-end/47383
8199         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
8200         address computation and convert to address_mode if needed.
8201
8202 2011-07-06  Richard Guenther  <rguenther@suse.de>
8203
8204         * tree.c (build_common_tree_nodes_2): Merge with
8205         build_common_tree_nodes.
8206         * tree.h (build_common_tree_nodes): Adjust prototype.
8207         (build_common_tree_nodes_2): Remove.
8208         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8209         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
8210
8211 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
8212
8213         PR tree-optimization/49618
8214         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
8215         t recurse on the decl.
8216         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
8217         return true if expr isn't known to be defined in current
8218         TU or some other LTO partition.
8219
8220 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
8221
8222         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
8223         override CASE_VALUES_THRESHOLD.
8224
8225         * stmt.c (toplevel): Include params.h.
8226         (case_values_threshold): Use the --param case-values-threshold
8227         value if non-zero, otherwise use machine dependent value.
8228         (expand_case): Use case_values_threshold.
8229
8230         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
8231
8232         * doc/invoke.texi (--param case-values-threshold): Document.
8233
8234 2011-07-05  Richard Henderson  <rth@redhat.com>
8235
8236         * dwarf2out.c (dwarf2out_cfi_label): Make static.
8237         (dwarf2out_flush_queued_reg_saves): Make static.
8238         (dwarf2out_reg_save): Remove.
8239         (dwarf2out_return_save): Remove.
8240         (dwarf2out_return_reg): Remove.
8241         (dwarf2out_reg_save_reg): Remove.
8242         (dwarf2out_def_cfa): Merge into ...
8243         (dwarf2out_frame_init): ... here.
8244         * dwarf2out.h, tree.h: Remove declarations as necessary.
8245
8246 2011-07-05  Richard Henderson  <rth@redhat.com>
8247
8248         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
8249         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8250         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
8251         the alloc insn.
8252
8253         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
8254         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
8255         (process_epilogue): Don't call dwarf2out_def_cfa.
8256
8257         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
8258         indicate the return address save.
8259         (process_cfa_register): Likewise.
8260
8261         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
8262         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
8263
8264         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
8265         for ar.pfs save at alloc insn.
8266
8267 2011-07-05  Richard Henderson  <rth@redhat.com>
8268
8269         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
8270         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8271         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
8272         stack pointer save.
8273         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
8274         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
8275         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
8276         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
8277
8278 2011-07-05  Richard Henderson  <rth@redhat.com>
8279
8280         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
8281         VUNSPEC_* constants here instead of via define_constants.
8282         (VUNSPEC_PEM): New constant.
8283         (procedure_entry_mask): New insn.
8284         (prologue): New expander.
8285         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
8286         (vax_expand_prologue): Rename from vax_output_function_prologue;
8287         emit rtl instead of text.
8288         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8289         (print_operand): Add 'x' prefix.
8290
8291 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8292
8293         PR middle-end/47715
8294         * calls.c (precompute_register_parameters): Promote the function
8295         argument before checking non-legitimate constant.
8296
8297 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8298
8299         PR tree-optimization/47654
8300         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
8301         (lst_do_strip_mine_loop): Return an int.
8302         (lst_do_strip_mine): Same.
8303         (scop_do_strip_mine): Same.
8304         (scop_do_block): Loop blocking should strip-mine at least two loops.
8305         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
8306         (scop_do_interchange): Same.
8307         * graphite-poly.h (scop_do_interchange): Update declaration.
8308         (scop_do_strip_mine): Same.
8309
8310 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8311
8312         * graphite-clast-to-gimple.c (precision_for_value): Removed.
8313         (precision_for_interval): Removed.
8314         (gcc_type_for_interval): Use mpz_sizeinbase.
8315
8316 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8317
8318         * graphite-ppl.h (value_max): Correct computation of max.
8319
8320 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8321
8322         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
8323
8324 2011-07-05  Richard Guenther  <rguenther@suse.de>
8325
8326         * c-decl.c (c_init_decl_processing): Defer building common
8327         tree nodes to c_common_nodes_and_builtins.
8328
8329 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
8330
8331         PR tree-optimization/49580
8332         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
8333         the loop's number of iterations.
8334         * tree-parloops.c (transform_to_exit_first_loop): Add the
8335         handling of the loop's number of iterations before the call
8336         to gimple_duplicate_sese_tail.
8337         Insert the stmt caclculating the new rhs of the loop's
8338         condition stmt to the preheader instead of iters_bb.
8339
8340 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8341
8342         PR rtl-optimization/47449
8343         * fwprop.c (forward_propagate_subreg): Don't propagate hard
8344         register nor zero/sign extended hard register.
8345
8346 2011-07-05  Richard Guenther  <rguenther@suse.de>
8347
8348         PR tree-optimization/49518
8349         PR tree-optimization/49628
8350         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
8351         irrelevant and invariant data-references.
8352         (vect_analyze_data_ref_access): For invariant loads clear the
8353         group association.
8354
8355 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
8356
8357         PR rtl-optimization/49619
8358         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
8359         pass VOIDmode as op0_mode to recursive call, and return temp even
8360         when different from tor, just if it is not IOR of the original
8361         PLUS arguments.
8362
8363         PR rtl-optimization/49472
8364         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
8365         negating MULT, negate the second operand instead of first.
8366         (simplify_binary_operation_1) <case MULT>: If one operand is
8367         a NEG and the other is MULT, don't attempt to optimize by negation
8368         of the MULT operand if it only moves the NEG operation around.
8369
8370         PR debug/49602
8371         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8372         get_current_def return value if it can't be trusted to be
8373         the current value of the variable in the current bb.
8374
8375 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
8376
8377         PR target/49600
8378         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8379         general register to memory for !TARGET_INTER_UNIT_MOVES.
8380
8381 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8382
8383         PR target/44643
8384         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8385         instead of TREE_READONLY.
8386
8387 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8388
8389         * doc/extend.texi (AVR Built-in Functions): Update documentation
8390         of __builtin_avr_fmul*.
8391         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8392         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8393         * config/avr/avr.md (fmul): Rename to fmul_insn.
8394         (fmuls): Rename to fmuls_insn.
8395         (fmulsu): Rename to fmulsu_insn.
8396         (fmul,fmuls,fmulsu): New expander.
8397         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8398         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8399         * config/avr/libgcc.S (__fmul): New function.
8400         (__fmuls): New function.
8401         (__fmulsu,__fmulsu_exit): New function.
8402
8403 2011-07-04  Richard Guenther  <rguenther@suse.de>
8404
8405         PR tree-optimization/49615
8406         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8407         basic-block index check.
8408
8409 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8410
8411         * longlong.h (count_leading_zeros, count_trailing_zeros,
8412         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8413         resp. 64.
8414
8415 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
8416
8417         PR tree-optimization/49610
8418         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8419         a basic block.
8420
8421 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8422             Olivier Hainque  <hainque@adacore.com>
8423             Nicolas Setton  <setton@adacore.com>
8424
8425         * tree.h (TYPE_ARTIFICIAL): New flag.
8426         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8427         the DIE of the type if it is artificial.
8428         (gen_array_type_die): Likewise.
8429         (gen_enumeration_type_die): Likewise.
8430         (gen_struct_or_union_type_die): Likewise.
8431         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8432         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8433
8434 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8435
8436         * tree-object-size.c (pass_through_call): Handle
8437         BUILT_IN_ASSUME_ALIGNED.
8438
8439 2011-07-01  Martin Jambor  <mjambor@suse.cz>
8440
8441         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8442
8443 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
8444
8445         PR middle-end/48016
8446         * explow.c (update_nonlocal_goto_save_area): Use proper mode
8447         for stack save area.
8448         * function.c (expand_function_start): Likewise.
8449
8450 2011-07-01  Richard Guenther  <rguenther@suse.de>
8451
8452         PR middle-end/49596
8453         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8454         may have unknown refs.
8455
8456 2011-07-01  Kai Tietz  <ktietz@redhat.com>
8457
8458         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8459
8460 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8461
8462         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8463         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8464         (Specific, mips-sgi-irix6): Likewise.
8465
8466 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8467
8468         PR libmudflap/49549
8469         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8470
8471 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8472
8473         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8474         [idx]= and [idx1 ... idx2]= before initializers if needed for
8475         array initializers.
8476
8477 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
8478
8479         * config.gcc (score-*-elf): Remove score7.o.
8480         * config/score/t-score-elf: Likewise.
8481         * config/score/score.c: Merge score7 to score.c and
8482         remove forwarding functions.
8483         * config/score/score7.c: Deleted.
8484         * config/score/score7.h: Deleted.
8485
8486 2011-07-01  Richard Guenther  <rguenther@suse.de>
8487
8488         PR tree-optimization/49603
8489         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8490
8491 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8492
8493         * tree-sra.c (struct access): Rename total_scalarization to
8494         grp_total_scalarization
8495         (completely_scalarize_var): New function.
8496         (sort_and_splice_var_accesses): Set total_scalarization in the
8497         representative access.
8498         (analyze_access_subtree): Propagate total scalarization accross the
8499         tree, no holes in totally scalarized trees, simplify coverage
8500         computation.
8501         (analyze_all_variable_accesses): Call completely_scalarize_var instead
8502         of completely_scalarize_record.
8503
8504 2011-06-30  Richard Henderson  <rth@redhat.com>
8505
8506         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8507         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8508         * config/i386/i386.c: Don't include dwarf2out.h.
8509         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8510         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8511         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
8512         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8513         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8514
8515 2011-06-30  Richard Henderson  <rth@redhat.com>
8516
8517         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8518         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8519         * final.c (final_scan_insn): Look for it, and invoke
8520         dwarf2out_frame_debug before the insn if found.
8521
8522 2011-06-30  Richard Henderson  <rth@redhat.com>
8523
8524         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8525         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8526
8527 2011-06-30  Richard Henderson  <rth@redhat.com>
8528
8529         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8530         Define a vector of this type.
8531         (regs_saved_in_regs): Use a VEC.
8532         (num_regs_saved_in_regs): Remove.
8533         (compare_reg_or_pc): New.
8534         (record_reg_saved_in_reg): Split out from...
8535         (dwarf2out_flush_queued_reg_saves): ... here.
8536         (clobbers_queued_reg_save): Update for VEC.
8537         (reg_saved_in): Likewise.
8538         (dwarf2out_frame_debug_init): Likewise.
8539         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8540         (dwarf2out_frame_debug_cfa_register): Likewise.
8541
8542 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8543
8544         PR tree-optimization/49572
8545         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8546         type of the RHS instead of that of the LHS for the expression type.
8547
8548 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8549
8550         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8551         unconditionally.
8552
8553 2011-06-30  Richard Guenther  <rguenther@suse.de>
8554
8555         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8556         * tree-ssa-structalias.c (create_variable_info_for): Do not
8557         add initial constraints for non-var-decls.  Properly handle
8558         globals in other ltrans partitions.
8559         (intra_create_variable_infos): Manually create constraints for
8560         the fake no-alias parameter.
8561         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8562         and assert there are no clones.
8563
8564 2011-06-30  Richard Guenther  <rguenther@suse.de>
8565
8566         PR tree-optimization/46787
8567         * tree-data-ref.c (dr_address_invariant_p): Remove.
8568         (find_data_references_in_stmt): Invariant accesses are ok now.
8569         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8570         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8571         invariant loads.
8572
8573 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8574
8575         PR tree-optimization/49094
8576         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8577         (build_accesses_from_assign): Use it.
8578
8579 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8580
8581         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8582         handling of BUILT_IN_ASSUME_ALIGNED.
8583
8584         PR debug/49364
8585         * dwarf2out.c (output_abbrev_section): Don't return early
8586         if abbrev_die_table_in_use is 1.
8587         (dwarf2out_finish): Instead don't call output_abbrev_section
8588         nor emit abbrev_section_label in that case.
8589
8590 2011-06-30  Nick Clifton  <nickc@redhat.com>
8591
8592         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
8593         for the V850E.
8594
8595 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8596
8597         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8598         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
8599
8600 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
8601
8602         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8603         both pattern and original statements if necessary.
8604         (vect_transform_loop): Likewise.
8605         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
8606         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
8607         Mark the pattern statement only if the original statement doesn't
8608         have its own uses.
8609         (process_use): Call vect_mark_relevant with additional parameter.
8610         (vect_mark_stmts_to_be_vectorized): Likewise.
8611         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
8612         (vect_analyze_stmt): Handle both pattern and original statements
8613         if necessary.
8614         (vect_transform_stmt): Don't store vectorized pattern statement
8615         in the original statement.
8616         (vect_is_simple_use_1): Use related pattern statement only if the
8617         original statement is irrelevant.
8618         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8619
8620 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
8621
8622         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
8623         option.
8624         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
8625         entry.
8626         (TARGET_AVX128_OPTIMAL): New definition.
8627         * config/i386/i386.c (initial_ix86_tune_features): Initialize
8628         X86_TUNE_AVX128_OPTIMAL entry.
8629         (ix86_option_override_internal): Enable the generation
8630         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
8631         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
8632         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
8633
8634 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
8635
8636         PR tree-optimization/49539
8637         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
8638         names by means of stmt_references_abnormal_ssa_name.
8639         (associate_plusminus): Call can_propagate_from before propagating
8640         from definition statements.
8641         (ssa_forward_propagate_and_combine): Remove superfluous newline.
8642
8643 2011-06-29  Richard Guenther  <rguenther@suse.de>
8644
8645         * doc/invoke.texi: Document -scev dump modifier.
8646         * tree-pass.h (TDF_SCEV): New dump flag.
8647         * tree-dump.c (dump_option_value_in): Add scev.
8648         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
8649         * tree-scalar-evolution.c: Likewise.
8650
8651 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8652
8653         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
8654         (cxa_type_match): Correct declaration.
8655         (__gnu_unwind_pr_common): Reconstruct additional indirection
8656         when __cxa_type_match returns succeeded_with_ptr_to_base.
8657
8658 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8659
8660         PR rtl-optimization/49114
8661         * reload.c (struct replacement): Remove SUBREG_LOC member.
8662         (push_reload): Do not set it.
8663         (push_replacement): Likewise.
8664         (subst_reload): Remove dead code.
8665         (copy_replacements): Remove assertion.
8666         (copy_replacements_1): Do not handle SUBREG_LOC.
8667         (move_replacements): Likewise.
8668         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
8669         Detect subregs via recursive descent instead of via SUBREG_LOC.
8670
8671 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8672
8673         * config/avr/avr.c (avr_encode_section_info): Dispatch to
8674         default_encode_section_info.
8675
8676 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
8677
8678         PR tree-optimization/49545
8679         * builtins.c (get_object_alignment_1): Update function comment.
8680         Do not use DECL_ALIGN for functions, but test
8681         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8682         * fold-const.c (get_pointer_modulus_and_residue): Don't check
8683         for functions here.
8684         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8685
8686 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
8687
8688         PR debug/49567
8689         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8690         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8691
8692 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8693
8694         PR target/34734
8695         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8696         about uninitialized data attributed 'progmem' from here...
8697         (avr_encode_section_info): ...to this new function.
8698         (TARGET_ENCODE_SECTION_INFO): New define.
8699         (avr_section_type_flags): For data in ".progmem.data", remove
8700         section flag SECTION_WRITE.
8701
8702 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8703
8704         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8705         _xmulhisi3_exit.
8706         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8707         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
8708         (__umulhisi3): Ditto.
8709         * config/avr/avr.md (mulhisi3): New insn expender.
8710         (umulhisi3): New insn expender.
8711         (*mulhisi3_call): New insn.
8712         (*umulhisi3_call): New insn.
8713
8714 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8715
8716         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8717
8718 2011-06-28  Richard Henderson  <rth@redhat.com>
8719
8720         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
8721         all code and arguments that handled pushes.  Update all callers.
8722
8723 2011-06-28  Richard Henderson  <rth@redhat.com>
8724
8725         * config/arm/arm.c (arm_output_function_prologue): Don't call
8726         thumb1_output_function_prologue.
8727         (arm_expand_prologue): Avoid dead store.
8728         (number_of_first_bit_set): Use ctz_hwi.
8729         (thumb1_emit_multi_reg_push): New.
8730         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8731         to emit the entire prologue as rtl.
8732         (thumb1_output_interwork): Split out from
8733         thumb1_output_function_prologue.
8734         (thumb1_output_function_prologue): Remove.
8735         (arm_attr_length_push_multi): Handle thumb1.
8736         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8737         (prologue_thumb1_interwork): New.
8738         (*push_multi): Allow thumb1; use push_mult_memory_operand.
8739         * config/arm/predicates.md (push_mult_memory_operand): New.
8740
8741 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8742
8743         * config/sparc/sync.md (*stbar): Delete.
8744         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8745
8746 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8747
8748         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8749
8750 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8751
8752         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8753         (TARGET_64BIT_DEFAULT): Define.
8754         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8755         of tm_file.
8756         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8757
8758 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8759
8760         * common.opt (in_lto_p): New Variable entry.
8761         * flags.h (in_lto_p): Move to common.opt.
8762         * gcc.c: Include params.h.
8763         (set_option_handlers): Also use common_handle_option and
8764         target_handle_option.
8765         (main): Call global_init_params, finish_params and init_options_struct.
8766         * opts.c (debug_type_names): Move from toplev.c.
8767         (print_filtered_help): Access quiet_flag through opts pointer.
8768         (common_handle_option): Return early in the driver for some options.
8769         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8770         opts pointer.
8771         * toplev.c (in_lto_p): Move to common.opt.
8772         (debug_type_names): Move to opts.c.
8773         * Makefile.in (OBJS): Remove opts.o.
8774         (OBJS-libcommon-target): Add opts.o.
8775         (gcc.o): Update dependencies.
8776
8777 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8778
8779         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8780
8781 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8782
8783         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8784         with '=' constraint modifier.
8785         (*divdf3_vfp): Likewise.
8786         ("*mulsf3_vfp"): Likewise.
8787         ("*muldf3_vfp"): Likewise.
8788         ("*mulsf3negsf_vfp"): Likewise.
8789         ("*muldf3negdf_vfp"): Likewise.
8790
8791 2011-06-28  Nick Clifton  <nickc@redhat.com>
8792
8793         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8794         relaxation when performing an incremental link.
8795
8796 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8797
8798         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8799         within BB from last to first.
8800
8801 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8802
8803         * genattr-common.c: New.  Based on genattr.c.
8804         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8805         (MOSTLYCLEANFILES): Add insn-attr-common.h.
8806         (opts.o): Update dependencies.
8807         (.PRECIOUS): Add insn-attr-common.h.
8808         (simple_rtl_generated_h): Add insn-attr-common.h.
8809         (build/genattr-common.o): New.
8810         (genprogrtl): Add attr-common.
8811         * genattr.c (main): Include insn-attr-common.h.  Don't generate
8812         definitions of DELAY_SLOTS or INSN_SCHEDULING.
8813         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8814
8815 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
8816
8817         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8818         avr-*-* and avr-*-rtems* targets.
8819
8820         * config/avr/elf.h: New file.
8821         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8822         (TARGET_ASM_SELECT_SECTION): Define.
8823         (INIT_SECTION_ASM_OP): Undefine.
8824         (FINI_SECTION_ASM_OP): Undefine.
8825         (READONLY_DATA_SECTION_ASM_OP): Undefine.
8826         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8827         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8828         * config/avr/avr.h:
8829         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8830         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8831         (MAX_OFILE_ALIGNMENT): Move to elf.h.
8832         (STRING_LIMIT): Move to elf.h.
8833         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8834         (ASM_DECLARE_OBJECT_NAME): Remove.
8835         (ESCAPES): Remove.
8836         (ASM_OUTPUT_SKIP): Remove.
8837         (DWARF2_DEBUGGING_INFO): Remove.
8838         (OBJECT_FORMAT_ELF): Remove.
8839         (USER_LABEL_PREFIX): Remove.
8840         (ASM_OUTPUT_EXTERNAL): Remove.
8841         (ASM_OUTPUT_ASCII): Remove.
8842         (TYPE_ASM_OP): Remove.
8843         (SIZE_ASM_OP): Remove.
8844         (WEAK_ASM_OP): Remove.
8845         (STRING_ASM_OP): Remove.
8846         (SET_ASM_OP): Remove.
8847         (ASM_WEAKEN_LABEL): Remove.
8848         (TYPE_OPERAND_FMT): Remove.
8849         (ASM_DECLARE_FUNCTION_SIZE): Remove.
8850         (ASM_FINISH_DECLARE_OBJECT): Remove.
8851         (NO_DOLLAR_IN_LABEL): Remove.
8852         (ASM_GENERATE_INTERNAL_LABEL): Remove.
8853         (ASM_OUTPUT_CASE_LABEL): Remove.
8854         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
8855         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
8856         (gas_output_ascii): Remove.
8857         (gas_output_limited_string): Remove.
8858         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
8859         * config/avr/avr-protos.h
8860         (gas_output_ascii): Remove prototye.
8861         (gas_output_limited_string): Remove prototype.
8862
8863 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
8864
8865         PR target/48637
8866         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
8867         asm operands.
8868
8869 2011-06-27  Jan Hubicka  <jh@suse.cz>
8870
8871         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
8872         node instead of references in node.
8873
8874 2011-06-27  Richard Henderson  <rth@redhat.com>
8875
8876         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
8877         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
8878         inside ifdef.
8879
8880 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
8881
8882         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
8883
8884         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
8885         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
8886         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8887         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
8888         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8889         (evaluate_stmt, execute_fold_all_builtins): Handle
8890         BUILT_IN_ASSUME_ALIGNED.
8891         * tree-ssa-dce.c (propagate_necessity): Likewise.
8892         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8893         call_may_clobber_ref_p_1): Likewise.
8894         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
8895         (expand_builtin_assume_aligned): New function.
8896         * doc/extend.texi (__builtin_assume_aligned): Document.
8897
8898         PR debug/49544
8899         * cselib.c (promote_debug_loc): If cselib_preserve_constants
8900         and l has two DEBUG_INSN owned locs instead of just one, adjust
8901         the second location's setting_insn too.
8902
8903 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8904
8905         PR libmudflap/38738
8906         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
8907
8908 2011-06-27  Nick Clifton  <nickc@redhat.com>
8909
8910         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
8911         bit position of highest bit set into a count of the high zero bits.
8912
8913 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8914
8915         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
8916
8917 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8918
8919         PR lto/48492
8920         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
8921         to a NULL parent.
8922
8923 2011-06-27  Richard Guenther  <rguenther@suse.de>
8924
8925         PR tree-optimization/49394
8926         * passes.c (execute_one_pass): Restore current_pass after
8927         applying IPA transforms.
8928
8929 2011-06-27  Kai Tietz  <ktietz@redhat.com>
8930
8931         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
8932         out of type precision after operation.
8933         (find_bswap): Take for limit value the integer auto-promotion
8934         into account.
8935
8936 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8937
8938         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
8939         forward scan as well.
8940
8941 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8942
8943         PR target/44241
8944         * config/vms/vms-protos.h: New file.
8945         * config/vms/vms-crtlmap.map: New file.
8946         * config/vms/vms.c: New file.
8947         * config/vms/make-crtlmap.awk: New file.
8948         * config/vms/vms-crtl.h: File removed.
8949         * config/vms/vms-crtl-64.h: File removed.
8950         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
8951         * config/alpha/vms64.h: Do not include vms-crtl-64.h
8952         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
8953         clear some builtins on VMS.  Calls vms_patch_builtins.
8954         (avms_asm_output_external): Remove.
8955         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
8956         (struct crtl_name_spec): Remove
8957         (DO_CTRL_NAMES): Remove.
8958         * config/ia64/vms.h (struct crtl_name_spec): Remove
8959         (DO_CTRL_NAMES): Remove.
8960         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
8961         clear some builtins on VMS.  Calls vms_patch_builtins.
8962         (ia64_asm_output_external): Remove DO_CRTL_NAME.
8963         * config/ia64/vms64.h: Do not include vms-crtl-64.h
8964         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
8965
8966 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8967
8968         * config/alpha/alpha.c (alpha_end_function): Always generate .end
8969         directive on VMS.
8970
8971 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8972
8973         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
8974         the function receives nonlocal gotos.
8975
8976 2011-06-27  Richard Guenther  <rguenther@suse.de>
8977
8978         PR tree-optimization/49536
8979         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8980         For non-scalar inner types use a scalar type according to
8981         the scalar inner mode.
8982
8983 2011-06-27  Richard Guenther  <rguenther@suse.de>
8984
8985         PR tree-optimization/49365
8986         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
8987
8988 2011-06-27  Richard Guenther  <rguenther@suse.de>
8989
8990         PR tree-optimization/49169
8991         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
8992         the alignment of function decls.
8993
8994 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
8995
8996         PR target/47997
8997         * config/darwin.c (darwin_mergeable_string_section): Place string
8998         constants in '.cstring' rather than '.const' when CF/NSStrings are
8999         active.
9000
9001 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
9002
9003         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
9004         (emit_save_register_window): Likewise.
9005         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
9006         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
9007         Swap back %o7/%i7 in register naming.
9008
9009 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
9010
9011         PR driver/49371
9012         * config/darwin.c (darwin_override_options): Improve warning when
9013         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
9014         is given with fpie/fPIE.
9015         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
9016         * config/darwin9.h (PIE_SPEC): New.
9017
9018 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
9019
9020         * timevar.c (timevar_print): Increase width for display of timevar
9021         name.
9022
9023 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
9024
9025         PR c++/46400
9026         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
9027         instead of TYPE_CHAIN for chain_next for types.
9028
9029 2011-06-24  Richard Henderson  <rth@redhat.com>
9030
9031         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
9032         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
9033         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
9034         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
9035         (sparc_flat_expand_prologue): Emit individual instructions
9036         instead of one of the above.
9037
9038 2011-06-24  Easwaran Raman  <eraman@google.com>
9039
9040         PR rtl-optimization/49429
9041         PR target/49454
9042         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
9043         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
9044         used to copy y into x.
9045         * calls.c (initialize_argument_information): Mark
9046         an argument addressable if it is passed by invisible reference.
9047         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
9048         if it is passed by reference.
9049
9050 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9051
9052         PR rtl-optimization/49504
9053         * rtlanal.c (nonzero_bits1): Properly handle addition or
9054         subtraction of a pointer in Pmode if pointers extend unsigned.
9055         (num_sign_bit_copies1): Likewise.
9056
9057 2011-06-24  Martin Jambor  <mjambor@suse.cz>
9058
9059         PR tree-optimizations/49516
9060         * tree-sra.c (sra_modify_assign): Choose the safe path for
9061         aggregate copies if we also did scalar replacements.
9062
9063 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9064
9065         PR target/49335
9066         * config/arm/predicates.md (add_operator): New.
9067         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9068
9069 2011-06-24  Andi Kleen  <ak@linux.intel.com>
9070
9071         * tree-sra.c (type_internals_preclude_sra_p): Add msg
9072         parameter. Split up ifs and report reason in *msg.
9073         (reject): Add.
9074         (find_var_candiate): Add msg variable.
9075         Split up ifs and report reason to reject.
9076         (find_param_candidates): Add msg variable.
9077         Pass msg to type_internals_preclude_sra_p.
9078
9079 2011-06-23  Jeff Law  <law@redhat.com>
9080
9081         PR middle-end/48770
9082         * reload.h (reload): Change to return a bool.
9083         * ira.c (ira): If requested by reload, run a fast DCE pass after
9084         reload has completed.  Fix comment typo.
9085         * reload1.c (need_dce): New file scoped static.
9086         (reload): Set reload_completed here.  Return whether or not a DCE
9087         pass after reload is needed.
9088         (delete_dead_insn): Set need_dce as needed.
9089
9090         PR middle-end/49465
9091         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9092         to detect threading through joiner block.  If there was already
9093         an edge to the new target, then do not change the PHI nodes.
9094
9095 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
9096
9097         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9098         get_pointer_alignment to see if base isn't sufficiently aligned.
9099
9100 2011-06-23  Jan Hubicka  <jh@suse.cz>
9101
9102         PR tree-optimize/49373
9103         * tree-pass.h (all_late_ipa_passes): Declare.
9104         * cgraphunit.c (init_lowered_empty_function): Fix properties.
9105         (cgraph_optimize): Execute late passes; remove unreachable funcions
9106         after materialization.
9107         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9108         LTOing.
9109         * passes.c (all_late_ipa_passes): Declare.
9110         (dump_passes, register_pass): Handle late ipa passes.
9111         (init_optimization_passes): Move ipa_pta to late passes; schedule
9112         fixup_cfg at beggining of all_passes.
9113         (apply_ipa_transforms): New function.
9114         (execute_one_pass): When doing simple ipa pass, apply all transforms.
9115
9116 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
9117
9118         * params.c: Include common/common-target.h.  Don't include tm.h.
9119         (lang_independent_params): Move from toplev.c.
9120         (global_init_params): New.
9121         * params.h (global_init_params): Declare.
9122         * target.def (default_params): Move to common-target.def.
9123         * toplev.c (lang_independent_options): Remove.
9124         (lang_independent_params): Move to params.c.
9125         (general_init): Use global_init_params.
9126         * common/common-target.def (option_default_params): Move from
9127         target.def.
9128         * common/config/ia64/ia64-common.c: Include params.h.
9129         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9130         from ia64.c.
9131         * common/config/rs6000/rs6000-common.c: Include params.h.
9132         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9133         from rs6000.c.
9134         * common/config/sh/sh-common.c: Include params.h.
9135         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9136         from sh.c.
9137         * common/config/spu/spu-common.c: Include params.h.
9138         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9139         from spu.c.
9140         * config/ia64/ia64.c (ia64_option_default_params,
9141         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
9142         * config/rs6000/rs6000.c (rs6000_option_default_params,
9143         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
9144         * config/sh/sh.c (sh_option_default_params,
9145         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
9146         * config/spu/spu.c (spu_option_default_params,
9147         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
9148         * Makefile.in (OBJS): Remove params.o.
9149         (OBJS-libcommon-target): Add params.o.
9150         (params.o, $(common_out_object_file)): Update dependencies.
9151         * doc/tm.texi: Regenerate.
9152
9153 2011-06-23  Alan Modra  <amodra@gmail.com>
9154
9155         PR bootstrap/49383
9156         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
9157         invocation for 2011-06-09 changes.
9158
9159 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
9160
9161         PR libgomp/49490
9162         * omp-low.c (expand_omp_for_static_nochunk): Only
9163         use n ceil/ nthreads size for the first n % nthreads threads in the
9164         team instead of all threads except for the last few ones which
9165         get less work or none at all.
9166
9167         PR debug/49496
9168         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
9169         uses.
9170
9171 2011-06-22  Richard Guenther  <rguenther@suse.de>
9172
9173         PR tree-optimization/49493
9174         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
9175         Refer to the alias target of variables.
9176         (associate_varinfo_to_alias_1): Remove.
9177         (ipa_pta_execute): Do not associate aliases with anything.
9178         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
9179         (cgraph_function_node): Likewise.
9180         (cgraph_function_or_thunk_node): Likewise.
9181         (varpool_variable_node): Likewise.
9182
9183 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
9184
9185         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
9186         * config.gcc (arm*-*-linux*): Default to gnu tls.
9187         (arm*-*-*): Add --with-tls option.
9188         (all_defaults): Add 'tls'.
9189
9190 2011-06-22  Richard Henderson  <rth@redhat.com>
9191
9192         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
9193         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9194         (dwarf2out_frame_debug_cfa_window_save): Rename from
9195         dwarf2out_window_save; make static.
9196         * tree.h (dwarf2out_window_save): Don't declare.
9197
9198         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
9199         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9200         (emit_save_register_window): Rename from gen_save_register_window;
9201         emit the insn and add REG_CFA_* notes.
9202         (sparc_expand_prologue): Update to match.
9203         * config/sparc/sparc.md (save_register_window_1): Simplify from
9204         save_register_window<P:mode>.
9205
9206 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9207
9208         PR target/49497
9209         * config/i386/i386.md (*lea_general_2): Always allow SImode.
9210         (*lea_general_2_zext): Likewise.
9211         (imul to lea peepholes): Use const359_operand and check
9212         TARGET_PARTIAL_REG_STALL.
9213
9214         * config/i386/predicates.md (const359_operand): New.
9215
9216 2011-06-22  Michael Matz  <matz@suse.de>
9217
9218         * cgraphunit.c (assemble_thunk): Use correct return type.
9219
9220 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
9221             Dmitry Melnik  <dm@ispras.ru>
9222
9223         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
9224         (neon_output_shift_immediate): Ditto.
9225         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
9226         prototype.
9227         (neon_output_shift_immediate): Ditto.
9228         * config/arm/neon.md (vashl<mode>3): Modified constraint.
9229         (vashr<mode>3_imm): New insn pattern.
9230         (vlshr<mode>3_imm): Ditto.
9231         (vashr<mode>3): Modified constraint.
9232         (vlshr<mode>3): Ditto.
9233         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
9234         predicate.
9235         (imm_for_neon_rshift_operand): Ditto.
9236         (imm_lshift_or_reg_neon): Ditto.
9237         (imm_rshift_or_reg_neon): Ditto.
9238
9239         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
9240
9241 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
9242
9243         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
9244         builtin calls even if likelyvalue is not CONSTANT.
9245         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
9246         Return get_value_for_expr of first operand
9247         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
9248         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9249         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
9250         their non-checking counterparts.
9251         (call_may_clobber_ref_p_1): Likewise.
9252         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
9253         like their non-checking counterparts.
9254         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9255         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
9256         like their non-checking counterparts.
9257         (find_func_clobbers): Likewise.
9258         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
9259         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
9260
9261         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
9262         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
9263         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
9264         of base type reference as argument.
9265         (resolve_addr_in_expr): Likewise.  Fix keep computation.
9266         (convert_descriptor_to_signed): Renamed to...
9267         (convert_descriptor_to_mode): ... this.  For wider types convert to
9268         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
9269         (typed_binop): New function.
9270         (scompare_loc_descriptor, ucompare_loc_descriptor,
9271         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
9272         default to unsigned type instead of signed.
9273
9274         PR debug/47858
9275         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
9276         (gimple_build_debug_source_bind_stat): New prototype.
9277         (gimple_build_debug_source_bind): Define.
9278         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
9279         gimple_debug_source_bind_get_value,
9280         gimple_debug_source_bind_get_value_ptr,
9281         gimple_debug_source_bind_set_var,
9282         gimple_debug_source_bind_set_value): New inlines.
9283         * gimple.c (gimple_build_debug_source_bind_stat): New function.
9284         * gimple-pretty-print.c (dump_gimple_debug): Handle
9285         GIMPLE_DEBUG_SOURCE_BIND.
9286         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
9287         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9288         * tree-parloops.c (eliminate_local_variables,
9289         separate_decls_in_region): Likewise.
9290         (separate_decls_in_region_debug): Renamed from
9291         separate_decls_in_region_debug_bind.  Handle
9292         gimple_debug_source_bind_p.
9293         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
9294         prototypes.
9295         (DECL_HAS_DEBUG_ARGS_P): Define.
9296         (struct tree_function_decl): Add has_debug_args_flag field.
9297         * tree.c (debug_args_for_decl): New variable.
9298         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
9299         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
9300         (rewrite_debug_stmt_uses): New function.
9301         (rewrite_stmt): Use it to rewrite debug stmt uses.
9302         * rtl.def (DEBUG_PARAMETER_REF): New.
9303         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
9304         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
9305         DEBUG_PARAMETER_REF.
9306         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
9307         * print-rtl.c (print_rtx): Likewise.
9308         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
9309         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
9310         debug stmts in the first bb.
9311         * tree-inline.c (remap_ssa_name): If remapping default def
9312         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
9313         a source bind debug stmt.
9314         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
9315         (maybe_move_debug_stmts_to_successors): Likewise.
9316         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
9317         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
9318         debug args vector from old_decl to new_decl.
9319         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
9320         or modified parameters, add debug bind stmts before call
9321         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
9322         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
9323         on DECL_DEBUG_EXPRs from debug args vector.
9324         (expand_debug_source_expr): New function.
9325         (expand_debug_locations): Use it for source bind insns.
9326         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
9327         * var-tracking.c (prepare_call_arguments): Add debug args
9328         to call_arguments if any.
9329         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
9330         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
9331         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
9332         (get_ref_die_offset, parameter_ref_descriptor): New functions.
9333         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
9334         (gen_subprogram_die): Handle parameters identified by
9335         DEBUG_PARAMETER_REF.
9336
9337 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
9338
9339         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
9340         * doc/install.texi (Configuration): Document --with-tls.
9341         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
9342         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
9343         (arm_tls_descseq_addr): New.
9344         (legitimize_tls_address): Add tlsdesc support.
9345         (arm_cannot_copy_insn_p): Check for tlscall.
9346         (arm_emit_tls_decoration): Likewise.
9347         * config/arm/arm.h (TARGET_GNU2_TLS): New.
9348         (OPTION_DEFAULT_SPECS): Add with-tls support.
9349         * config/arm/arm.md (R1_REGNUM): Define.
9350         (tlscall): New.
9351         * config/arm/arm.opt (tls_type): New enumeration type and values.
9352         (mtls-dialect): New switch.
9353         * config/arm/arm-opts.h (enum tls_type): New.
9354
9355 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9356
9357         * attribs.c (register_attribute): Added assert to check that all
9358         attribute specs are registered with a name that is not empty and
9359         does not start with '_'.
9360         (decl_attributes): Avoid the lookup of the "naked" attribute spec
9361         if the function has no attributes.
9362         * tree.c (is_attribute_with_length_p): Removed.
9363         (is_attribute_p): Removed.
9364         (private_is_attribute_p): New.
9365         (private_lookup_attribute): New.
9366         (lookup_attribute): Removed.
9367         (lookup_ident_attribute): New.
9368         (remove_attribute): Require the first argument to be in the form
9369         'text', not '__text__'.  Updated asserts.
9370         (merge_attributes): Use lookup_ident_attributes instead of
9371         lookup_attribute.
9372         (merge_dllimport_decl_attributes): Use remove_attribute.
9373         (attribute_list_contained): Likewise.
9374         (attribute_list_equal): Immediately return 1 if the arguments are
9375         identical pointers.
9376         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
9377         'int'.  Require the first argument to be in the form 'text', not
9378         '__text__'.  Require the second argument to be an identifier.
9379         (lookup_attribute): Made inline.  Require the first argument to be
9380         in the form 'text', not '__text__'.
9381         (private_is_attribute_p, private_lookup_attribute): New.
9382         Updated comments.
9383
9384 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
9385
9386         * builtins.c: Add sync_ or SYNC__ to builtin names.
9387         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9388         * omp-low.c: Add sync_ or SYNC__ to builtin names.
9389
9390 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9391
9392         PR target/33049
9393         * config/avr/avr.md (extzv): New expander.
9394         (*extzv): New insn.
9395         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9396         * config/avr/constraints.md (C04): New constraint.
9397         * doc/md.texi (Machine Constraints): Document it.
9398
9399 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9400
9401         PR middle-end/49489
9402         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9403         unsignedp argument instead of 1 for clrsb_optab.
9404         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9405         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
9406         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9407         * optabs.c (widen_leading): Call widen_operand and expand_unop
9408         with 0 as unsignedp argument instead of 1 for clrsb_optab.
9409         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9410
9411 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9412
9413         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9414
9415 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
9416
9417         * gensupport.c (add_define_attr): New static function.
9418         (is_predicable): Allow multi-alternative lists for the "predicable"
9419         attribute.
9420         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9421         (process_one_cond_exec): Call alter_attrs_for_insn.
9422         * doc/md.texi (Defining Attributes): Mention some standard names.
9423         (Conditional Execution): Update documentation for "predicable".
9424
9425         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9426         __builtin_clrsbll): Document.
9427         * doc/rtl.texi (clrsb): New entry.
9428         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
9429         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
9430         (expand_unop): Handle clrsb_optab.
9431         (init_optabs): Initialize it.
9432         * optabs.h (enum optab_index): New entry OTI_clrsb.
9433         (clrsb_optab): Define.
9434         * genopinit.c (optabs): Add an entry for it.
9435         * builtins.c (expand_builtin): Handle clrsb builtin functions.
9436         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9437         BUILT_IN_CLRSBLL): New.
9438         * rtl.def (CLRSB): New code.
9439         * dwarf2out.c (mem_loc_descriptor): Handle it.
9440         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9441         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9442         and popcount.
9443         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9444         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9445         (__ctzDI2): Move declaration.
9446         * config/bfin/bfin.md (clrsbsi2): New expander.
9447         (signbitssi2): Use the CLRSB rtx.
9448         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
9449         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9450
9451 2011-06-21  Richard Guenther  <rguenther@suse.de>
9452
9453         * ipa-inline-transform.c (inline_transform): Fix previous change.
9454
9455 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
9456
9457         PR tree-optimization/49478
9458         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9459         with constant operand.
9460
9461 2011-06-21  Richard Guenther  <rguenther@suse.de>
9462
9463         * ipa-inline-transform.c (inline_transform): Fix typo.
9464
9465 2011-06-21  Richard Guenther  <rguenther@suse.de>
9466
9467         PR tree-optimization/49483
9468         * tree-vect-stmts.c (vectorizable_assignment): Also handle
9469         VIEW_CONVERT_EXPR conversions.
9470
9471 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
9472
9473         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9474         * config/avr/avr-tables.opt: New file (generated).
9475         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9476         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9477         avr-mcus.def.
9478         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9479         (avr_option_override): Don't process -mmcu= argument here.  Set
9480         avr_current_device using avr_mcu_index.
9481         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9482         * config/avr/avr.opt (mmcu=): Use Enum.
9483         * config/avr/t-avr (avr-devices.o): Update dependencies.
9484         ($(srcdir)/config/avr/avr-tables.opt): New.
9485         * target.def (help): Remove.
9486         * doc/tm.texi.in (TARGET_HELP): Remove.
9487         * doc/tm.texi: Regenerate.
9488         * opts.c: Don't include target.h.
9489         (common_handle_option): Don't call targetm.help.
9490         * system.h (TARGET_HELP): Poison.
9491         * Makefile.in (opts.o): Update dependencies.
9492
9493 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9494
9495         * config/usegld.h: New file.
9496         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9497         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9498         (LIB_SPEC): Likewise.  Search /lib.
9499         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9500         (RDYNAMIC_SPEC): Handle GNU ld.
9501         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9502         Define.
9503         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9504         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9505         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9506         (STACK_CHECK_STATIC_BUILTIN): Define.
9507         * config/sol2.opt (compat-bsd): Remove.
9508         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9509         * config/sol2-bi.h: New file.
9510         * config/sol2-gld.h: Remove.
9511         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9512         (NO_DBX_BNSYM_ENSYM): Remove.
9513         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9514         (STACK_CHECK_STATIC_BUILTIN): Remove.
9515         Test USE_GLD instead of TARGET_GNU_LD.
9516         * config/i386/sol2-10.h: Rename to ...
9517         * config/i386/sol2-bi.h .. this.
9518         (SUBTARGET_EXTRA_SPECS): Redefine.
9519         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9520         (MULTILIB_DEFAULTS): Remove.
9521         (DEFAULT_ARCH32_P): Define.
9522         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9523         (ARCH64_SUBDIR): Define.
9524         Test USE_GLD instead of TARGET_GNU_LD.
9525         (I386_EMULATION): Rename to ...
9526         (ARCH32_EMULATION): ... this.
9527         (X86_64_EMULATION): Rename to ...
9528         (ARCH64_EMULATION): ... this.
9529         (TARGET_LD_EMULATION): Remove.
9530         (LINK_ARCH_SPEC): Remove.
9531         * config/i386/sol2-gas.h: Remove.
9532         * config/i386/t-sol2-10: Rename to ...
9533         * config/i386/t-sol2-64: ... this.
9534         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9535         (AS_SPARC64_FLAG): Define.
9536         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9537         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9538         depending on TARGET_CPU_DEFAULT.
9539         (CPP_CPU_SPEC): Redefine.
9540         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9541         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9542         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9543         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9544         ASM_ARCH_DEFAULT_SPEC): Redefine.
9545         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9546         LINK_ARCH_DEFAULT_SPEC.
9547         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9548         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9549         (ARCH64_SUBDIR): Define.
9550         (LINK_ARCH64_SPEC): Redefine.
9551         (CC1_SPEC): Redefine.
9552         (OPTION_DEFAULT_SPECS): Redefine.
9553         (MULTILIB_DEFAULTS): Define.
9554         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9555         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9556         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9557         (NO_DBX_BNSYM_ENSYM): Remove.
9558         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9559         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9560         (TARGET_ASM_NAMED_SECTION): Likewise.
9561         (STACK_CHECK_STATIC_BUILTIN): Remove.
9562         * config/sparc/sol2-bi.h: Remove.
9563         * config/sparc/sol2-gas-bi.h: Remove.
9564         * config/sparc/sol2-gas.h: Remove.
9565         * config/sparc/sol2-gld-bi.h: Remove.
9566         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9567         common parts ...
9568         (*-*-solaris2*): ... here.
9569
9570 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9571
9572         PR other/43564
9573         * ipa-inline.c (can_inline_edge_p): Check
9574         !DECL_DISREGARD_INLINE_LIMITS.
9575
9576 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9577
9578         PR middle-end/49139
9579         * cgraphunit.c (process_function_and_variable_attributes): warn when
9580         always_inline functions that are not inline.
9581         * ipa-inline-transform.c (inline_transform): Always call
9582         optimize_inline.
9583         * tree-inline.c (tree_inlinable_function_p): Use error instead
9584         of sorry.
9585         (expand_call_inline): Likewise.
9586
9587 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9588
9589         * Makefile.in (dg_target_exps): Set.
9590         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9591         instead of 7, try to divide it more evenly.
9592
9593 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
9594
9595         PR target/49089
9596         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
9597         (avx256_split_unaligned_store): New definition.
9598         (ix86_option_override_internal): Enable avx256 unaligned load/store
9599         splitting only when avx256_split_unaligned_load/store is set.
9600
9601 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9602
9603         * regrename.c (scan_rtx_reg): Handle the case where we write to an
9604         open chain in a smaller mode without failing the entire block.
9605
9606 2011-06-21  Alan Modra  <amodra@gmail.com>
9607
9608         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
9609         CONST high part large-toc address.
9610         (rs6000_tls_referenced_p): Make static.
9611         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
9612
9613 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9614
9615         PR target/49385
9616         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
9617         one of the operands is a register.
9618
9619 2011-06-20  Kai Tietz  <ktietz@redhat.com>
9620
9621         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
9622         operations in combination with binary and.
9623
9624 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9625
9626         * regrename.c (do_replace): Don't update notes.
9627
9628 2011-06-20  Alan Modra  <amodra@gmail.com>
9629
9630         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
9631         of toc-relative address in CONST.
9632         (rs6000_delegitimize_address): Recognize changed address.
9633         (rs6000_legitimize_reload_address): Likewise.
9634         (rs6000_emit_move): Don't force these constants to memory.
9635         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
9636         toc-relative address in CONST.
9637         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9638         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9639
9640 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9641
9642         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
9643         (count_trailing_zeros): Likewise.
9644
9645 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9646
9647         PR other/49325
9648         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
9649         .init_array can be used with .ctors on targets.
9650         * configure: Regenerated.
9651
9652 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9653
9654         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
9655         if the element type is volatile.
9656
9657 2011-06-18  Jan Hubicka  <jh@suse.cz>
9658
9659         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9660         extra name aliases.
9661         (lto_symtab_resolve_can_prevail_p): Likewise.
9662         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9663         * cgraphbuild.c (record_reference): Remove extra body alias code.
9664         (mark_load): Likewise.
9665         (mark_store): Likewise.
9666         * cgraph.h (varpool_node): Remove extra_name filed;
9667         add alias_of and extraname_alias.
9668         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9669         (varpool_alias_aliased_node): New inline function.
9670         (varpool_variable_node): New function.
9671         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9672         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9673         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9674         (input_varpool_node): Likewise.
9675         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9676         (varpool_externally_visible_p): Remove extra body alias code.
9677         (function_and_variable_visibility): Likewise.
9678         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9679         (ipa_pta_execute): Use it.
9680         * varpool.c (varpool_remove_node): Remove extra name alias code.
9681         (varpool_mark_needed_node): Likewise.
9682         (varpool_analyze_pending_decls): Analyze aliases.
9683         (assemble_aliases): New functoin.
9684         (varpool_assemble_decl): Use it.
9685         (varpool_create_variable_alias): New function.
9686         (varpool_extra_name_alias): Rewrite.
9687         (varpool_for_node_and_aliases): New function.
9688
9689 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
9690
9691         PR target/49411
9692         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9693         last_arg_constant and last argument doesn't match its predicate,
9694         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9695         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9696         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9697         spelling of error message.
9698         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9699         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9700         const_0_to_255_operand instead of const_int_operand.
9701
9702         Revert:
9703         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9704
9705         * config/i386/sse.md (blendbits): Remove mode attribute.
9706         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9707         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9708         Check integer value of operand 3 in insn constraint.
9709
9710 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
9711
9712         PR rtl-optimization/48542
9713         * reload.c (find_equiv_reg): Stop looking when finding a
9714         setjmp-type call.
9715         * reload1.c (reload_as_needed): Invalidate all reload
9716         registers when crossing a setjmp-type call.
9717
9718 2011-06-16  Jeff Law  <law@redhat.com>
9719
9720         * tree-ssa-threadupdate.c (struct redirection_data): New field
9721         intermediate_edge.
9722         (THREAD_TARGET2): Define.
9723         (redirection_data_eq): Also check that the intermediate edge is equal.
9724         (lookup_redirection_data): Drop useless argument.  Extract the
9725         outgoing_edge and intermediate edge from E.  Callers updated.
9726         (copy_phi_args, update_destination_phis): New functions.
9727         (fix_duplicate_block_edges): Likewise.
9728         (create_edge_and_update_destination_phis): Duplicate all the edges
9729         hung off e->aux.  Use copy_phi_args.
9730         (create_duplicates): Use fix_duplicate_block_edges.
9731         (fixup_template_block): Likewise.
9732         (redirect_edges): If necessary, redirect the joiner block's incoming
9733         edge to the duplicate of the joiner block.
9734         (thread_block): Don't muck up loops when threading through a joiner
9735         block.
9736         (thread_through_loop_header): Handle threading through a joiner block.
9737         (mark_threaded_blocks, register_jump_thread): Likewise.
9738         * tree-flow.h (register_jump_thread): Add new argument.  Callers
9739         updated.
9740         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9741         (thread_across_edge): Handle threading through a joiner block.
9742
9743 2011-06-16  Martin Jambor  <mjambor@suse.cz>
9744
9745         PR tree-optimization/49343
9746         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9747         calculate offset, provide 2nd operand for the new COMPONENT_REF.
9748
9749 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
9750
9751         * config/darwin-protos.h (machopic_select_rtx_section): Move to
9752         inside RTX_CODE ifdef.
9753
9754 2011-06-16  Tom de Vries  <tom@codesourcery.com>
9755
9756         PR target/45098
9757         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9758         Disallow NULL pointer for pointer arithmetic.
9759
9760 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9761
9762         PR target/49398
9763         Revert.
9764         2011-06-10  Wei Guozhi  <carrot@google.com>
9765
9766         PR target/45335
9767         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9768         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9769         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9770         related peephole2.
9771         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9772         related peephole2.
9773         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9774         (arm_legitimate_ldrd_p): New prototype.
9775         (arm_output_ldrd): New prototype.
9776         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9777         (arm_legitimate_ldrd_p): New function.
9778         (arm_output_ldrd): New function.
9779
9780 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9781
9782         PR middle-end/46500
9783         * doc/tm.texi.in: Update Copyright date.
9784         * doc/tm.texi: Regenerate.
9785         * targhooks.c (default_setup_incoming_varargs): Replace
9786         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9787         (default_pretend_outgoing_varargs_named): Likewise.
9788         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9789         (hook_callee_copies_named): Likewise.
9790         (default_function_arg_advance): Likewise.
9791         (default_function_arg): Likewise.
9792         (default_function_incoming_arg): Likewise.
9793         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9794         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9795         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9796         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9797         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9798         * targhooks.h (default_setup_incoming_varargs): Likewise.
9799         (default_pretend_outgoing_varargs_named): Likewise.
9800         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9801         (hook_callee_copies_named): Likewise.
9802         (default_function_arg_advance): Likewise.
9803         (default_function_arg): Likewise.
9804         (default_function_incoming_arg): Likewise.
9805         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9806         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9807         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9808         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9809         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9810         * target.def (pass_by_reference): Likewise.
9811         (setup_incoming_varargs, strict_argument_naming): Likewise.
9812         (pretend_outgoing_varargs_named, callee_copies): Likewise.
9813         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9814         (function_incoming_arg): Likewise.
9815         * target.h: Don't include "tm.h" .
9816         (cumulative_args_t): New typedef.
9817         [GCC_TM_H] (get_cumulative_args): New static inline function.
9818         [GCC_TM_H] (pack_cumulative_args): Likewise.
9819         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9820         argument type with cumulative_args_t.
9821         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9822         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9823         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9824         (frv_arg_partial_bytes, frv_function_arg): Likewise.
9825         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9826         (frv_function_arg_1): Likewise.
9827         * config/s390/s390.c (s390_pass_by_reference): Likewise.
9828         (s390_function_arg_advance, s390_function_arg): Likewise.
9829         * config/m32c/m32c.c (m32c_function_arg): Likewise.
9830         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9831         (m32c_strict_argument_naming): Likewise.
9832         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9833         (spu_function_arg_advance): Likewise.
9834         (spu_setup_incoming_varargs): Likewise.  Make static.
9835         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9836         Remove prototype.
9837         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9838         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9839         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
9840         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
9841         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
9842         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
9843         (mep_pass_by_reference, mep_function_arg): Likewise.
9844         (mep_function_arg_advance): Likewise.
9845         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9846         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
9847         (m32r_function_arg, m32r_function_arg_advance): Likewise.
9848         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
9849         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
9850         (ix86_function_arg, ix86_pass_by_reference): Likewise.
9851         (ix86_setup_incoming_varargs): Likewise.
9852         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9853         (sh_strict_argument_naming): Likewise.
9854         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
9855         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
9856         (sh_function_arg_advance, sh_function_arg): Likewise.
9857         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9858         (pdp11_function_arg_advance): Likewise.
9859         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9860         Likewise.
9861         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
9862         * config/avr/avr.c (avr_function_arg): Likewise.
9863         (avr_function_arg_advance): Likewise.
9864         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
9865         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
9866         (xtensa_function_arg_1): Likewise.
9867         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
9868         Likewise.
9869         (xstormy16_function_arg): Likewise.
9870         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9871         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
9872         (fr30_function_arg_advance): Likewise.
9873         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9874         (lm32_function_arg, lm32_function_arg_advance): Likewise.
9875         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9876         (moxie_function_arg, moxie_function_arg_advance): Likewise.
9877         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
9878         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9879         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
9880         (cris_function_arg, cris_function_incoming_arg): Likewise.
9881         (cris_function_arg_advance, cris_function_arg_1): Likewise.
9882         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9883         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
9884         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
9885         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9886         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
9887         (mn10300_arg_partial_bytes): Likewise.
9888         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9889         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
9890         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
9891         (ia64_function_arg_1): Likewise.
9892         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9893         (m68k_function_arg): Likewise.
9894         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
9895         (rs6000_function_arg, setup_incoming_varargs): Likewise.
9896         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
9897         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
9898         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
9899         (picochip_arg_advance): Likewise.
9900         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9901         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
9902         (mcore_function_arg_advance): Likewise.
9903         * config/score/score.c (score_pass_by_reference): Likewise.
9904         (score_function_arg_advance): Likewise.
9905         (score_arg_partial_bytes): Likewise.  Make static.
9906         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
9907         * config/arm/arm.c (arm_arg_partial_bytes): Replace
9908         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9909         (arm_function_arg, arm_function_arg_advance): Likewise.
9910         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
9911         * config/pa/pa.c (pa_pass_by_reference): Likewise.
9912         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
9913         (pa_function_arg): Likewise.
9914         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
9915         (mips_function_arg, mips_function_arg_advance): Likewise.
9916         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
9917         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
9918         * config/vax/vax.c (vax_function_arg): Likewise.
9919         (vax_function_arg_advance): Likewise.
9920         * config/h8300/h8300.c (h8300_function_arg): Likewise.
9921         (h8300_function_arg_advance): Likewise.
9922         * config/v850/v850.c (v850_pass_by_reference): Likewise.
9923         (v850_strict_argument_naming, v850_function_arg): Likewise.
9924         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
9925         (v850_setup_incoming_varargs): Likewise.
9926         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9927         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
9928         (mmix_function_arg, mmix_pass_by_reference): Likewise.
9929         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
9930         with const void *.
9931         * config/bfin/bfin.c (setup_incoming_varargs): Replace
9932         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9933         (bfin_function_arg_advance, bfin_function_arg): Likewise.
9934         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
9935         * calls.c (emit_call_1): Change type of args_so_far to
9936         cumulative_args_t.  Changed all callers.
9937         (initialize_argument_information): Likewise.
9938         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
9939         * dse.c (get_call_args): Likewise.
9940         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9941         * function.c (pass_by_reference, reference_callee_copied): Likewise.
9942         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
9943         New member args_so_far_v.  Changed all users.
9944         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
9945         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9946         * config/mips/mips.c (mips_output_args_xfer): Likewise.
9947         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9948         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9949         * config/microblaze/microblaze.c (microblaze_expand_prologue):
9950         Likewise.
9951         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
9952         m32r_pass_by_reference.
9953
9954 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
9955
9956         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
9957         argument to be a VEC of statements.
9958         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
9959         assert that pattern statements have to have their vector type set.
9960         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
9961         Change the first argument to be a VEC of statements.  Update
9962         documentation.
9963         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
9964         (vect_handle_widen_mult_by_const): New function.
9965         (vect_recog_widen_mult_pattern):  Change the first argument to be a
9966         VEC of statements.  Update documentation.  Check that the constant is
9967         INTEGER_CST.  Support multiplication by a constant that fits an
9968         intermediate type - call vect_handle_widen_mult_by_const.
9969         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
9970         call.  Handle additional pattern statements if necessary.
9971
9972 2011-06-16  Nick Clifton  <nickc@redhat.com>
9973
9974         PR target/49427
9975         * config.gcc: Set cpu_type to v850 for any V850 architecture.
9976         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
9977         md_file, extra_modes, out_file and extra_options are these are all
9978         deduced from cpu_type.
9979
9980 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9981
9982         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
9983         truncation mask to 63.
9984
9985 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9986
9987         PR target/49313
9988         PR target/29524
9989         * longlong.h: Add AVR support:
9990         (count_leading_zeros): New macro.
9991         (count_trailing_zeros): New macro.
9992         (COUNT_LEADING_ZEROS_0): New macro.
9993         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
9994         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
9995         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
9996         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
9997         (LIB2FUNCS_EXCLUDE): Add _clz.
9998         * config/avr/libgcc.S (XCALL): Move up in file.
9999         (XJMP): New C Macro.
10000         (DEFUN): New asm macro.
10001         (ENDF): New asm macro.
10002         (__ffssi2): New function.
10003         (__ffshi2): New function.
10004         (__loop_ffsqi2): New function.
10005         (__ctzsi2): New function.
10006         (__ctzhi2): New function.
10007         (__clzdi2): New function.
10008         (__clzsi2): New function.
10009         (__clzhi2): New function.
10010         (__paritydi2): New function.
10011         (__paritysi2): New function.
10012         (__parityhi2): New function.
10013         (__parityqi2): New function.
10014         (__popcounthi2): New function.
10015         (__popcountsi2): New function.
10016         (__popcountdi2): New function.
10017         (__popcountqi2): New function.
10018         (__bswapsi2): New function.
10019         (__bswapdi2): New function.
10020         (__ashldi3): New function.
10021         (__ashrdi3): New function.
10022         (__lshrdi3): New function.
10023         Fix suspicous lines.
10024
10025 2011-06-16  Richard Guenther  <rguenther@suse.de>
10026
10027         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
10028         the same as x != 0.
10029         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
10030         to (bool) X & 1.
10031         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
10032         equality compares against zero for the lower bit.
10033
10034 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
10035
10036         PR tree-optimization/49419
10037         * tree-vrp.c (execute_vrp): Call init_range_assertions
10038         before estimate_numbers_of_iterations, call
10039         free_number_of_iterations_estimates before calling
10040         remove_range_assertions.
10041
10042 2011-06-16  Revital Eres  <revital.eres@linaro.org>
10043
10044         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
10045         (struct partial_schedule): Add rows_length field.
10046         (verify_partial_schedule): Check rows_length.
10047         (ps_insert_empty_row): Handle rows_length.
10048         (create_partial_schedule): Likewise.
10049         (free_partial_schedule): Likewise.
10050         (reset_partial_schedule): Likewise.
10051         (create_ps_insn): Remove rest_count argument.
10052         (remove_node_from_ps): Update rows_length.
10053         (add_node_to_ps): Update rows_length and call create_ps_insn
10054         without passing row_rest_count.
10055         (rotate_partial_schedule): Update rows_length.
10056
10057 2011-06-16  Revital Eres  <revital.eres@linaro.org>
10058
10059         * ddg.c (add_intra_loop_mem_dep): New function.
10060         (build_intra_loop_deps): Call it.
10061
10062 2011-06-13  Jeff Law  <law@redhat.com>
10063
10064         * df-problems.c (df_lr_local_compute): Manually CSE
10065         PIC_OFFSET_TABLE_REGNUM.
10066         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10067         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10068
10069 2011-06-13  Jan Hubicka  <jh@suse.cz>
10070
10071         * cgraphunit.c (handle_alias_pairs): New function.
10072         (cgraph_finalize_compilation_unit): Use it.
10073         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10074         as externally visible.
10075
10076 2011-06-15  Richard Guenther  <rguenther@suse.de>
10077
10078         * expr.c (expand_expr_real_2): Reduce all integral types to
10079         bitfield precision.
10080         (expand_expr_real_1): Likewise.
10081
10082 2011-06-15  Martin Jambor  <mjambor@suse.cz>
10083
10084         PR tree-optimization/48613
10085         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10086         ipa_node_params_vector is NULL.
10087
10088 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
10089
10090         PR debug/49382
10091         * dwarf2out.c (dw_loc_list_node): Add force field.
10092         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10093         location in the list, even if it is modified before first real insn.
10094         (output_loc_list): Emit empty ranges with force flag set.
10095         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10096
10097 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
10098
10099         PR target/49349
10100         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10101         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
10102         above a fence.  Update comments.
10103         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10104         placed just above it.  Do not allow NULL place_to_insert.
10105
10106 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
10107
10108         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10109         (slpeel_tree_peel_loop_to_edge): Don't call
10110         remove_dead_stmts_from_loop.
10111         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10112         remove irrelevant pattern statements.  For irrelevant statements
10113         check if it is the last statement of a detected pattern, use
10114         corresponding pattern statement instead.
10115         (destroy_loop_vec_info): No need to remove pattern statements,
10116         only free stmt_vec_info.
10117         (vect_transform_loop): For irrelevant statements check if it is
10118         the last statement of a detected pattern, use corresponding
10119         pattern statement instead.
10120         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10121         pattern statements.  Set basic block for the new statement.
10122         (vect_pattern_recog): Update documentation.
10123         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10124         operands of pattern statements.
10125         (vectorizable_call): Fix printing.  In case of a pattern statement
10126         use the lhs of the original statement when creating a dummy
10127         statement to replace the original call.
10128         (vect_analyze_stmt): For irrelevant statements check if it is
10129         the last statement of a detected pattern, use corresponding
10130         pattern statement instead.
10131         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10132         statements use gsi of the original statement.
10133
10134 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10135
10136         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10137         common/common-target-def.h.
10138         * target.def (default_target_flags, handle_option,
10139         supports_split_stack, optimization_table, init_struct,
10140         except_unwind_info, unwind_tables_default, have_named_sections):
10141         Move to common/common-target.def.
10142         * target.h (enum opt_levels, struct default_options): Move to
10143         common/common-target.h.
10144         * targhooks.c (default_except_unwind_info,
10145         dwarf2_except_unwind_info, sjlj_except_unwind_info,
10146         default_target_handle_option, empty_optimization_table): Move to
10147         common/common-targhooks.c.
10148         * targhooks.h (default_except_unwind_info,
10149         dwarf2_except_unwind_info, sjlj_except_unwind_info,
10150         default_target_handle_option, empty_optimization_table): Move to
10151         common/common-targhooks.h.
10152         * common/common-target-def.h: Include common/common-targhooks.h.
10153         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
10154         defined.
10155         * common/common-target.def (handle_option, option_init_struct,
10156         option_optimization_table, default_target_flags,
10157         except_unwind_info, supports_split_stack, unwind_tables_default,
10158         have_named_sections): Move from target.def.
10159         (HOOK_PREFIX): Undefine at end of file.
10160         * common/common-target.h: Include input.h.
10161         (enum opt_levels, struct default_options): Move from target.h.
10162         * common/common-targhooks.c, common/common-targhooks.h: New.
10163         * config.gcc (target_has_targetm_common): Default to yes.
10164         (moxie*): Set target_has_targetm_common=no.
10165         (hppa*-*-*): Don't set target_has_targetm_common=yes.
10166         * doc/tm.texi: Regenerate.
10167         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
10168         (C_TARGET_DEF_H): Add common/common-targhooks.h.
10169         (GCC_OBJS): Remove vec.o.
10170         (OBJS): Remove hooks.o and vec.o.
10171         (OBJS-libcommon-target): Add vec.o, hooks.o and
10172         common/common-targhooks.o.
10173         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
10174         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
10175         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
10176         cfglayout.o, $(out_object_file), $(common_out_object_file)):
10177         Update dependencies.
10178         (common/common-targhooks.o): New.
10179         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
10180         * common/config/pa/pa-common.c: Include more headers.  Take
10181         copyright dates from pa.c.
10182         (pa_option_optimization_table, pa_handle_option,
10183         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
10184         TARGET_HANDLE_OPTION): Move from pa.c.
10185         * common/config/alpha/alpha-common.c,
10186         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
10187         common/config/bfin/bfin-common.c,
10188         common/config/cris/cris-common.c,
10189         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
10190         common/config/h8300/h8300-common.c,
10191         common/config/i386/i386-common.c,
10192         common/config/ia64/ia64-common.c,
10193         common/config/iq2000/iq2000-common.c,
10194         common/config/lm32/lm32-common.c,
10195         common/config/m32c/m32c-common.c,
10196         common/config/m32r/m32r-common.c,
10197         common/config/m68k/m68k-common.c,
10198         common/config/mcore/mcore-common.c,
10199         common/config/mep/mep-common.c,
10200         common/config/microblaze/microblaze-common.c,
10201         common/config/mips/mips-common.c,
10202         common/config/mmix/mmix-common.c,
10203         common/config/mn10300/mn10300-common.c,
10204         common/config/pdp11/pdp11-common.c,
10205         common/config/picochip/picochip-common.c,
10206         common/config/rs6000/rs6000-common.c,
10207         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
10208         common/config/score/score-common.c, common/config/sh/sh-common.c,
10209         common/config/sparc/sparc-common.c,
10210         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
10211         common/config/vax/vax-common.c,
10212         common/config/xstormy16/xstormy16-common.c,
10213         common/config/xtensa/xtensa-common.c: New.
10214         * config/alpha/alpha.c: Include common/common-target.h.
10215         (alpha_option_optimization_table, alpha_handle_option,
10216         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10217         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
10218         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
10219         * config/arm/arm.c (arm_option_optimization_table,
10220         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10221         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
10222         arm-common.c.
10223         * config/avr/avr.c (avr_option_optimization_table,
10224         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10225         to avr-common.c.
10226         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
10227         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
10228         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
10229         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
10230         * config/cris/cris.c (cris_option_optimization_table,
10231         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10232         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
10233         cris-common.c.
10234         * config/fr30/fr30.c (fr30_option_optimization_table,
10235         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
10236         to fr30-common.c.
10237         * config/frv/frv.c (frv_option_optimization_table,
10238         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
10239         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
10240         * config/h8300/h8300.c (h8300_option_optimization_table,
10241         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10242         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
10243         * config/i386/i386-protos.h (ix86_handle_option): Declare.
10244         * config/i386/i386.c: Include common/common-target.h.
10245         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
10246         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
10247         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
10248         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
10249         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
10250         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
10251         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
10252         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
10253         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
10254         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
10255         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
10256         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
10257         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
10258         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
10259         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
10260         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
10261         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
10262         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
10263         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
10264         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
10265         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
10266         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
10267         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
10268         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
10269         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
10270         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
10271         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
10272         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
10273         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
10274         ix86_option_optimization_table, ix86_option_init_struct,
10275         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
10276         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10277         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
10278         i386-common.c.
10279         * config/i386/t-i386 (i386.o): Update dependencies.
10280         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
10281         * config/ia64/ia64.c (ia64_option_optimization_table,
10282         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10283         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10284         ia64_handle_option): Move to ia64-common.c.
10285         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
10286         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
10287         * config/lm32/lm32.c (lm32_option_optimization_table,
10288         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10289         to lm32-common.c.
10290         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
10291         m32c-common.c.
10292         * config/m32r/m32r.c (m32r_option_optimization_table,
10293         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10294         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10295         m32r_handle_option): Move to m32r-common.c.
10296         (m32r_memory_move_cost): Remove comment referring to
10297         TARGET_HANDLE_OPTION.
10298         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
10299         Move to m68k-common.c.
10300         * config/mcore/mcore.c (mcore_option_optimization_table,
10301         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10302         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
10303         * config/mep/mep.c (mep_option_optimization_table,
10304         mep_handle_option, TARGET_HANDLE_OPTION,
10305         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
10306         Move to mep-common.c.
10307         * config/microblaze/microblaze.c
10308         (microblaze_option_optimization_table,
10309         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10310         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
10311         * config/mips/mips.c (mips_handle_option,
10312         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10313         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
10314         mips-common.c.
10315         * config/mmix/mmix.c (mmix_option_optimization_table,
10316         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10317         Move to mmix-common.c.
10318         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
10319         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
10320         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10321         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
10322         * config/pa/pa.c: Include common/common-target.h.
10323         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10324         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10325         pa_handle_option): Move to pa-common.c.
10326         (pa_option_override): Use targetm_common.except_unwind_info.
10327         (pa_asm_output_mi_thunk, pa_function_section): Use
10328         targetm_common.have_named_sections.
10329         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
10330         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10331         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10332         pdp11_handle_option, pdp11_option_init_struct): Move to
10333         pdp11-common.c.
10334         * config/picochip/picochip.c (picochip_option_optimization_table,
10335         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
10336         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
10337         * config/rs6000/rs6000.c: Include common/common-target.h.
10338         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
10339         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
10340         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
10341         rs6000_handle_option): Move to rs6000-common.c.
10342         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10343         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
10344         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10345         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
10346         * config/s390/s390.c (processor_flags_table,
10347         s390_option_optimization_table, s390_option_init_struct,
10348         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
10349         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10350         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
10351         * config/s390/s390.h (processor_flags_table): Declare.
10352         * config/score/score.c (score_option_optimization_table,
10353         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10354         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
10355         score_handle_option): Move to score-common.c.
10356         * config/sh/sh.c (sh_option_optimization_table,
10357         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10358         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10359         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
10360         * config/sparc/sparc.c: Include common/common-target.h.
10361         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10362         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
10363         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
10364         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
10365         spu_option_init_struct): Move to spu-common.c.
10366         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
10367         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
10368         * config/v850/v850.c (small_memory_physical_max,
10369         v850_handle_memory_optionn v850_handle_option,
10370         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10371         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10372         v850-common.c.
10373         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10374         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10375         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10376         Move to xtensa-common.c.
10377         * cfglayout.c: Include common/common-target.h.
10378         (fixup_reorder_chain): Use targetm_common.have_named_sections.
10379         * cfgrtl.c: Include common/common-target.h.
10380         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10381         targetm_common.have_named_sections.
10382         * dbxout.c: Include common/common-target.h.
10383         (dbxout_function_end): Use targetm_common.have_named_sections.
10384         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10385         targetm_common.except_unwind_info.
10386         * dwarf2out.c: Include common/common-target.h.
10387         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10388         dwarf2out_begin_prologue, dwarf2out_frame_init,
10389         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10390         targetm_common.except_unwind_info.
10391         * except.c: Include common/common-target.h.
10392         (init_eh, finish_eh_generation,
10393         output_one_function_exception_table): Use
10394         targetm_common.except_unwind_info.
10395         (switch_to_exception_section): Use targetm_common.have_named_sections.
10396         * explow.c: Include common/common-target.h.
10397         * expr.c: Include common/common-target.h.
10398         (build_personality_function): Use targetm_common.except_unwind_info.
10399         * function.c: Include common/common-target.h.
10400         (expand_function_end): Use targetm_common.except_unwind_info.
10401         * haifa-sched.c: Include common/common-target.h.
10402         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10403         * lto-opts.c: Include common/common-target.h instead of target.h.
10404         (lto_reissue_options): Use targetm_common.handle_option.
10405         * opts.c: Include common/common-target.h.
10406         (target_handle_option): Use targetm_common.handle_option.
10407         (init_options_struct): Update comment referring to
10408         targetm.target_option.optimization.  Use
10409         targetm_common.default_target_flags,
10410         targetm_common.unwind_tables_default and
10411         targetm_common.option_init_struct.
10412         (default_options_optimization): Use
10413         targetm_common.option_optimization_table.
10414         (finish_options): Use targetm_common.except_unwind_info,
10415         targetm_common.unwind_tables_default,
10416         targetm_common.have_named_sections and
10417         targetm_common.supports_split_stack.
10418         * toplev.c: Include common/common-target.h.
10419         (process_options): Use targetm_common.have_named_sections.
10420         * tree-tailcall.c: Include common/common-target.h.
10421         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10422         * tree.c: Include common/common-target.h.
10423         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10424         * varasm.c: Include common/common-target.h.
10425         (resolve_unique_section, hot_function_section,
10426         default_function_section): Use targetm_common.have_named_sections.
10427
10428 2011-06-14  Easwaran Raman  <eraman@google.com>
10429
10430         PR rtl-optimization/44194
10431         * dse.c: Include tree-flow.h
10432         (insn_info): Add new field non_frame_wild_read.
10433         (group_info): Add new fields escaped_n and escaped_p.
10434         (kill_on_calls): New variable.
10435         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10436         (dse_step0): Initialize kill_on_calls.
10437         (can_escape): New function.
10438         (set_usage_bits): Add additional parameter; record information
10439         about escaped locations.
10440         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10441         (dse_step2_nospill): Set kill_on_calls based on
10442         group->escaped_n and group->escaped_n.
10443         (add_wild_read): Refactor into...
10444         (reset_active_stores): ... New function, and
10445         (free_read_records): ... New function.
10446         (add_non_frame_wild_read): New function.
10447         (scan_insn): Call add_non_frame_wild_read on non-const calls.
10448         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10449         (dse_step5_nospill): Call scan_reads_nospill for instructions
10450         marked as non_frame_wild_read.
10451         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10452
10453 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10454
10455         * common/common-target-def.h, common/common-target.def,
10456         common/common-target.h, common/config/default-common.c,
10457         common/config/pa/pa-common.c: New files.
10458         * Makefile.in (common_out_file, common_out_object_file,
10459         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10460         (OBJS-libcommon-target): Include $(common_out_object_file).
10461         (prefix.o): Update dependencies.
10462         ($(common_out_object_file), common/common-target-hooks-def.h,
10463         s-common-target-hooks-def-h): New.
10464         (s-tm-texi): Also check timestamp on common-target.def.
10465         (build/genhooks.o): Update dependencies.
10466         * config.gcc (common_out_file, target_has_targetm_common): Define.
10467         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10468         TARGET_ALWAYS_STRIP_DOTDOT.
10469         * configure.ac (common_out_object_file): Define.
10470         (common_out_file, common_out_object_file): Substitute.
10471         (common): Create directory.
10472         * configure: Regenerate.
10473         * doc/tm.texi.in (targetm_common): Document.
10474         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10475         * doc/tm.texi: Regenerate.
10476         * genhooks.c (hook_array): Also include common/common-target.def.
10477         * prefix.c (tm.h): Don't include.
10478         (common/common-target.h): Include.
10479         (ALWAYS_STRIP_DOTDOT): Don't define.
10480         (update_path): Use targetm_common.always_strip_dotdot instead of
10481         ALWAYS_STRIP_DOTDOT.
10482         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10483
10484 2011-06-14  David Li  <davidxl@google.com>
10485
10486         * passes.c (execute_function_todo): Remove TODO_dump_func.
10487         (execute_one_pass): Remove TODO_dump_func.
10488         (execute_function_dump): New function.
10489         * tree-vrp.c: Remove TODO_dump_func.
10490         * regrename.c: Remove TODO_dump_func.
10491         * fwprop.c: Remove TODO_dump_func.
10492         * tree-into-ssa.c: Remove TODO_dump_func.
10493         * tree-complex.c: Remove TODO_dump_func.
10494         * tracer.c: Remove TODO_dump_func.
10495         * tree-loop-distribution.c: Remove TODO_dump_func.
10496         * postreload-gcse.c: Remove TODO_dump_func.
10497         * postreload.c: Remove TODO_dump_func.
10498         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10499         * tree-tailcall.c: Remove TODO_dump_func.
10500         * ipa-cp.c: Remove TODO_dump_func.
10501         * final.c: Remove TODO_dump_func.
10502         * tree-emutls.c: Remove TODO_dump_func.
10503         * omp-low.c: Remove TODO_dump_func.
10504         * tree-ssa-dse.c: Remove TODO_dump_func.
10505         * tree-ssa-uncprop.c: Remove TODO_dump_func.
10506         * auto-inc-dec.c: Remove TODO_dump_func.
10507         * reorg.c: Remove TODO_dump_func.
10508         * tree-ssa-copyrename.c: Remove TODO_dump_func.
10509         * tree-ssa-ccp.c: Remove TODO_dump_func.
10510         * compare-elim.c: Remove TODO_dump_func.
10511         * mode-switching.c: Remove TODO_dump_func.
10512         * modulo-sched.c: Remove TODO_dump_func.
10513         * tree-call-cdce.c: Remove TODO_dump_func.
10514         * cse.c: Remove TODO_dump_func.
10515         * web.c: Remove TODO_dump_func.
10516         * tree-stdarg.c: Remove TODO_dump_func.
10517         * lto-streamer-out.c: Remove TODO_dump_func.
10518         * tree-ssa-math-opts.c: Remove TODO_dump_func.
10519         * tree-ssa-dom.c: Remove TODO_dump_func.
10520         * tree-nrv.c: Remove TODO_dump_func.
10521         * loop-init.c: Remove TODO_dump_func.
10522         * gimple-low.c: Remove TODO_dump_func.
10523         * ipa-inline.c: Remove TODO_dump_func.
10524         * tree-ssa-sink.c: Remove TODO_dump_func.
10525         * jump.c: Remove TODO_dump_func.
10526         * ifcvt.c: Remove TODO_dump_func.
10527         * tree-ssa-loop.c: Remove TODO_dump_func.
10528         * recog.c: Remove TODO_dump_func.
10529         * dse.c: Remove TODO_dump_func.
10530         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10531         * matrix-reorg.c: Remove TODO_dump_func.
10532         * tree-eh.c: Remove TODO_dump_func.
10533         * regmove.c: Remove TODO_dump_func.
10534         * function.c: Remove TODO_dump_func.
10535         * tree-vectorizer.c: Remove TODO_dump_func.
10536         * ipa-split.c: Remove TODO_dump_func.
10537         * gcse.c: Remove TODO_dump_func.
10538         * tree-if-conv.c: Remove TODO_dump_func.
10539         * init-regs.c: Remove TODO_dump_func.
10540         * tree-ssa-phiopt.c: Remove TODO_dump_func.
10541         * implicit-zee.c: Remove TODO_dump_func.
10542         * lower-subreg.c: Remove TODO_dump_func.
10543         * bt-load.c: Remove TODO_dump_func.
10544         * tree-dfa.c: Remove TODO_dump_func.
10545         * except.c: Remove TODO_dump_func.
10546         * emit-rtl.c: Remove TODO_dump_func.
10547         * store-motion.c: Remove TODO_dump_func.
10548         * cfgexpand.c: Remove TODO_dump_func.
10549         * tree-cfgcleanup.c: Remove TODO_dump_func.
10550         * cfgcleanup.c: Remove TODO_dump_func.
10551         * tree-ssa-pre.c: Remove TODO_dump_func.
10552         * tree-sra.c: Remove TODO_dump_func.
10553         * tree-mudflap.c: Remove TODO_dump_func.
10554         * tree-ssa-copy.c: Remove TODO_dump_func.
10555         * cfglayout.c: Remove TODO_dump_func.
10556         * tree-ssa-forwprop.c: Remove TODO_dump_func.
10557         * tree-ssa-dce.c: Remove TODO_dump_func.
10558         * ira.c: Remove TODO_dump_func.
10559         * tree-ssa.c: Remove TODO_dump_func.
10560         * integrate.c: Remove TODO_dump_func.
10561         * tree-optimize.c: Remove TODO_dump_func.
10562         * tree-ssa-phiprop.c: Remove TODO_dump_func.
10563         * tree-object-size.c: Remove TODO_dump_func.
10564         * combine.c: Remove TODO_dump_func.
10565         * bb-reorder.c: Remove TODO_dump_func.
10566         * cprop.c: Remove TODO_dump_func.
10567         * var-tracking.c: Remove TODO_dump_func.
10568         * tree-profile.c: Remove TODO_dump_func.
10569         * tree-vect-generic.c: Remove TODO_dump_func.
10570         * reg-stack.c: Remove TODO_dump_func.
10571         * sched-rgn.c: Remove TODO_dump_func.
10572         * tree-ssa-structalias.c: Remove TODO_dump_func.
10573         * tree-switch-conversion.c: Remove TODO_dump_func.
10574         * tree-cfg.c: Remove TODO_dump_func.
10575         * tree-ssa-reassoc.c: Remove TODO_dump_func.
10576         * combine-stack-adj.c: Remove TODO_dump_func.
10577         * dce.c: Remove TODO_dump_func.
10578         * tree-ssanames.c: Remove TODO_dump_func.
10579         * regcprop.c: Remove TODO_dump_func.
10580
10581 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
10582
10583         PR middle-end/47364
10584         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10585         and properly handle result not in Pmode.
10586
10587 2011-06-14  Robert Millan  <rmh@gnu.org>
10588
10589         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10590         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
10591         `config/linux.h'.
10592
10593         * config/i386/kfreebsd-gnu64.h: New file.
10594         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
10595         with `i386/kfreebsd-gnu64.h'.
10596
10597         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
10598         (GNU_USER_LINK_EMULATION64): New macros.
10599         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
10600         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
10601         of hardcoding `elf_i386' and `elf_x86_64'.
10602
10603 2011-06-14  Nick Clifton  <nickc@redhat.com>
10604
10605         PR target/49403
10606         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
10607
10608         PR target/49402
10609         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
10610
10611 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
10612
10613         PR fortran/49103
10614         * tree.h (DECL_NONSHAREABLE): Define.
10615         (struct tree_decl_common): Change decl_common_unused to
10616         decl_nonshareable_flag.
10617         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
10618         Ignore vars with DECL_NONSHAREABLE bit set.
10619         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
10620         on stores to automatic aggregate vars.
10621
10622         PR rtl-optimization/49390
10623         Revert:
10624         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
10625
10626         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10627         MEM_ALIAS_SET.
10628
10629 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
10630             Tom de Vries  <tom@codesourcery.com>
10631
10632         PR target/45098
10633         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
10634         Document changed semantics.
10635         (max_stmt_executions, max_stmt_executions_int): Declare.
10636         * tree-data-ref.c (estimated_loop_iterations)
10637         (estimated_loop_iterations_int): Move functions...
10638         * tree-ssa-loop-niter.c (estimated_loop_iterations)
10639         (estimated_loop_iterations_int): here.
10640         (record_estimate): Change nb_iterations_upper_bound and
10641         nb_iterations_estimate semantics.
10642         (max_stmt_executions, max_stmt_executions_int): New function.
10643         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
10644         (max_stmt_executions_tree): this.
10645         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
10646         estimated_loop_iterations_tree.
10647         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
10648         max_stmt_executions_int instead of estimated_loop_iterations_int.
10649         * predict.c (predict_loops): Idem.
10650         * tree-parloops.c (parallelize_loops): Idem.
10651         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
10652         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
10653         (init_omega_for_ddr_1): Idem.
10654         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
10655         (loop_prefetch_arrays): Idem
10656         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10657         max_stmt_executions instead of estimated_loop_iterations.
10658         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10659         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10660         instead of nb_iterations_upper_bound.
10661
10662 2011-06-13  Jan Hubicka  <jh@suse.cz>
10663
10664         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10665
10666 2011-06-14  Richard Henderson  <rth@redhat.com>
10667
10668         PR debug/48459
10669         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10670         (based_loc_descr): Assert it's true.
10671         (compute_frame_pointer_to_fb_displacement): Set it, rather than
10672         aborting immediately.
10673
10674 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
10675             Mingfeng Wu  <mingfeng@faraday-tech.com>
10676
10677         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10678
10679 2011-06-13  Jan Hubicka  <jh@suse.cz>
10680
10681         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10682
10683 2011-06-13  Jan Hubicka  <jh@suse.cz>
10684
10685         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10686         similarly to DECL_COMDAT.
10687         * cgraphunit.c (cgraph_analyze_function): Likewise.
10688         * ipa.c (function_and_variable_visibility): Likewise.
10689
10690 2011-06-13  Jan Hubicka  <jh@suse.cz>
10691
10692         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10693         BINFO_VIRTUALS when streaming for ltrans unit.
10694
10695 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
10696
10697         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10698         (movdi_internal64): Same.
10699
10700 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
10701
10702         PR target/44618
10703         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10704         a set of similar patterns, where the MATCH_OPERAND for the function
10705         argument is replaced with individual references to hardware registers.
10706         (save_fpregs_<mode>): Ditto
10707         (restore_gpregs_<mode>): Ditto
10708         (return_and_restore_gpregs_<mode>): Ditto
10709         (return_and_restore_fpregs_<mode>): Ditto
10710         (return_and_restore_fpregs_aix_<mode>): Ditto
10711
10712 2011-06-13  Jan Hubicka  <jh@suse.cz>
10713
10714         * ipa-utils.c (postorder_stack): New structure.
10715         (ipa_reverse_postorder): Handle aliases.
10716
10717 2011-06-13  Jan Hubicka  <jh@suse.cz>
10718
10719         * ipa-inline.c (reset_edge_caches): Walk aliases.
10720         (update_caller_keys): Do not test inlinability of aliases.
10721         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10722         (do_estimate_growth): Fix typo.
10723
10724 2011-06-13  Jan Hubicka  <jh@suse.cz>
10725
10726         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10727         (can_remove_node_now_p): ... here; handle same comdat groups.
10728         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10729         (inline_call): Update use of can_remove_node_now_p.
10730
10731 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10732
10733         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10734         condition to disallow non-identical memory locations.
10735         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10736         preference to bit manipulation instructions.
10737
10738 2011-06-13  Jan Hubicka  <jh@suse.cz>
10739
10740         * cgraph.c (cgraph_for_node_thunks_and_aliases,
10741         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10742         (nonremovable_p): New function.
10743         (cgraph_can_remove_if_no_direct_calls_p): New function.
10744         (used_from_object_file_p): New functoin.
10745         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10746         references from aliases.
10747         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10748         * ipa-inline.c (check_caller_edge): New function.
10749         (want_inline_function_called_once_p): Use it; accept aliases called
10750         once, too.
10751         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10752
10753 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10754
10755         PR target/48454
10756         * config/arm/neon.md (vec_pack_trunc): Set the lengths
10757         correctly for the case with Quad vectors.
10758
10759 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
10760            Ira Rosen  <ira.rosen@linaro.org>
10761
10762         PR tree-optimization/49352
10763         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10764         all, make sure loop_use_stmt after the loop is a def stmt of a used
10765         SSA_NAME that is the only one defined inside of the loop.  Don't
10766         check for COND_EXPR and GIMPLE_BINARY_RHS.
10767         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10768         check_reduction is true.
10769
10770 2011-06-11  Jan Hubicka  <jh@suse.cz>
10771
10772         PR middle-end/49373
10773         * ipa.c (cgraph_externally_visible_p): Check resolution info.
10774
10775 2011-06-11  Jan Hubicka  <jh@suse.cz>
10776
10777         PR middle-end/48836
10778         * ipa-inline-transform.c: Include tree-pass.h
10779         (inline_transform): Set TODO_update_ssa_only_virtuals.
10780         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10781
10782 2011-06-11  Jan Hubicka  <jh@suse.cz>
10783
10784         PR middle-end/49378
10785         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10786         aliases and thunks.
10787
10788 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
10789
10790         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10791         Take number of iterations to peel into account for equally frequent
10792         misalignment values.
10793
10794 2011-06-11  Jan Hubicka  <jh@suse.cz>
10795
10796         * lto-streamer-out.c (produce_symtab): Stream out the newly
10797         represented aliases.
10798
10799 2011-06-11  Jan Hubicka  <jh@suse.cz>
10800
10801         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10802         varying args.
10803         (ipa_update_after_lto_read): Likewise.
10804         (ipa_write_node_info): Do not sream call_with_var_arguments.
10805         (ipa_read_node_info): Likewise.
10806
10807 2011-06-11  Jan Hubicka  <jh@suse.cz>
10808
10809         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10810
10811 2011-06-11  Jan Hubicka  <jh@suse.cz>
10812
10813         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10814         (lto_symtab_resolve_can_prevail_p): Likewise.
10815         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10816         * cgraph.c (same_body_aliases_done): New global var.
10817         (cgraph_same_body_alias_1): Rename to ...
10818         (cgraph_create_function_alias): ... this one; reorg to new
10819         representation.
10820         (cgraph_same_body_alias): Use cgraph_create_function_alias;
10821         record references when asked to.
10822         (cgraph_add_thunk): Fix formating.
10823         (cgraph_get_node): Kill same body alias code.
10824         (cgraph_node_for_asm): Likewise.
10825         (cgraph_remove_same_body_alias): Remove.
10826         (cgraph_remove_node): Kill same body alias code.
10827         (cgraph_mark_address_taken_node): Mark also the aliased function
10828         as having address taken.
10829         (dump_cgraph_node): Dump same body aliases.
10830         (cgraph_for_node_thunks_and_aliases): Update for new alias
10831         representation.
10832         (cgraph_for_node_and_aliases): Likewise.
10833         * cgraph.h (same_body): Kll pointer.
10834         (same_body_alias): Update comment.
10835         (same_body_aliases_done): Declare.
10836         (cgraph_remove_same_body_alias): Remove declaration.
10837         (cgraph_create_function_alias): Declare.
10838         (cgraph_process_same_body_aliases): Declare.
10839         (cgraph_function_with_gimple_body_p): Check for alias.
10840         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
10841         (cgraph_alias_aliased_node): New function.
10842         (cgraph_function_node): Update for new aliases.
10843         (cgraph_function_or_thunk_node): Likewise.
10844         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
10845         (inline_call): Remove dead aliases.
10846         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
10847         name hack for same body aliases.
10848         (clone_of_p): Look through aliases.
10849         (verify_cgraph_node): Verify aliases.
10850         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
10851         (cgraph_process_same_body_aliases): New function.
10852         (process_function_and_variable_attributes): Disable weakref warning on
10853         alias.
10854         (cgraph_analyze_functions): Handle aliases.
10855         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
10856         (assemble_thunks): Rename to ...
10857         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
10858         (cgraph_expand_function): Remove alias output code.
10859         (cgraph_output_in_order): Skip aliases.
10860         (cgraph_preserve_function_body_p): Aliases don't need preserving.
10861         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
10862         (ipa_record_reference): Do not assert on alias references.
10863         (ipa_ref_has_aliases_p): New function.
10864         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
10865         (ipa_ref_has_aliases_p): Declare.
10866         * lto-cgraph.c (lto_output_node): Handle aliases.
10867         (input_node): Likewise.
10868         * lto-streamer-out.c (lto_output): Skip aliases.
10869         (produce_symtab): Kill same_body_alias code.
10870         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
10871         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
10872         * ipa-inline.c (update_caller_keys): Walk aliases.
10873         (inline_small_functions): Fix thinko in previous patch.
10874         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
10875         (function_and_variable_visibility): Do not walk same body aliases.
10876         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
10877         (ipa_pta_execute): Use it.
10878
10879 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10880
10881         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
10882         (*vec_dupv2df): Rename from vec_dupv2df.
10883         (vec_dupv2df): New expander.
10884
10885 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10886
10887         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
10888
10889 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10890
10891         * config/i386/i386.md: Use default value in "isa" attribute.
10892         * config/i386/sse.md: Ditto.
10893         * config/i386/mmx.md: Ditto.
10894
10895 2011-06-10  Wei Guozhi  <carrot@google.com>
10896
10897         PR target/45335
10898         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10899         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10900         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10901         related peephole2.
10902         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10903         related peephole2.
10904         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10905         (arm_legitimate_ldrd_p): New prototype.
10906         (arm_output_ldrd): New prototype.
10907         * config/arm/arm.c (arm_check_ldrd_operands): New function.
10908         (arm_legitimate_ldrd_p): New function.
10909         (arm_output_ldrd): New function.
10910
10911 2011-06-10  David Li  <davidxl@google.com>
10912
10913         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10914         * passes.c (passr_eq): New function.
10915         (create_pass_tab): New function.
10916         (pass_traverse): New function.
10917         (dump_one_pass): New function.
10918         (dump_pass_list): New function.
10919         (dump_passes): New function.
10920
10921 2011-06-10  Jan Hubicka  <jh@suse.cz>
10922
10923         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
10924         setting the nothrow flag.
10925         * ipa-reference.c (propagate): Skip aliases.
10926         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
10927         (propagate_nothrow): Skip aliases; do not update cgraph.
10928         (local_pure_const): Do not update cgraph.
10929         * tree-profile.c (tree_profiling): Do fixup_cfg.
10930
10931 2011-06-10  Jan Hubicka  <jh@suse.cz>
10932
10933         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
10934         (cgraph_local_node_p): ... here; handle aliases.
10935         (has_addr_references_p): Break out from ...;
10936         (cgraph_remove_unreachable_nodes) ... here.
10937
10938 2011-06-10  Jan Hubicka  <jh@suse.cz>
10939
10940         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
10941         * common.opt (flag_inline_functions_called_once): Do not
10942         initialize to 1.
10943
10944 2011-06-10  Jan Hubicka  <jh@suse.cz>
10945
10946         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
10947         (ipcp_initialize_node_lattices): Do not deal with aliases;
10948         Do not try to propagate through thunks.
10949         (ipcp_change_tops_to_bottom): Do not deal with aliases.
10950
10951 2011-06-10  Jan Hubicka  <jh@suse.cz>
10952
10953         * ipa-prop.c (ipa_write_node_info): Stream jump functions
10954         for indirect calls.
10955         (ipa_read_node_info): Likewise.
10956
10957 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10958
10959         PR lto/49302
10960         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
10961         (build_and_insert_call): Likewise.
10962         (build_and_insert_ref): New.
10963         (gimple_expand_builtin_pow): Minor cleanup.
10964         (gimple_expand_builtin_cabs): New.
10965         (execute_cse_sincos): Add case for BUILT_IN_CABS.
10966
10967 2011-06-10  Jan Hubicka  <jh@suse.cz>
10968
10969         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
10970         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
10971         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
10972         (ipcp_propagate_stage): Skip aliases when propagating.
10973         (ipcp_need_redirect_p): Skip aliases.
10974         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
10975         collect_callers_of_node.
10976         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
10977         for aliases.
10978         (ipa_compute_jump_functions): Look through aliases.
10979
10980 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10981
10982         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
10983
10984 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10985
10986         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
10987         Adjust comments.
10988         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
10989
10990 2011-06-10  Jan Hubicka  <jh@suse.cz>
10991
10992         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
10993         Update call of gimple_get_virt_method_for_binfo.
10994         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
10995         refuse_thunks parameter.
10996         (gimple_fold_call): Update.
10997         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
10998
10999 2011-06-10  Jan Hubicka  <jh@suse.cz>
11000
11001         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
11002         (not_all_callers_have_enough_arguments_p): ... this one; turn into
11003         worker for cgraph_for_node_and_aliases.
11004         (convert_callers_for_node): Break out from ...
11005         (convert_callers): ... here.
11006         (modify_function): Use collect_callers_of_node.
11007         (ipa_early_sra): Use cgraph_for_node_and_aliases.
11008
11009 2011-06-10  Richard Guenther  <rguenther@suse.de>
11010
11011         PR tree-optimization/49361
11012         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
11013         when not already in gimple form.
11014
11015 2011-06-10  Richard Guenther  <rguenther@suse.de>
11016
11017         PR bootstrap/49344
11018         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
11019         FOR_EACH_PHI_OR_STMT_USE.
11020
11021 2011-06-10  Jan Hubicka  <jh@suse.cz>
11022
11023         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
11024         (clone_inlined_nodes): ... here.
11025         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
11026         to real destination prior inlining.
11027         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
11028         can_early_inline_edge_p, want_early_inline_function_p,
11029         want_early_inline_function_p, want_inline_small_function_p,
11030         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
11031         edge_badness, update_all_callee_keys, lookup_recursive_calls,
11032         add_new_edges_to_heap, inline_small_functions, flatten_function,
11033         inline_always_inline_functions, early_inline_small_functions): Use
11034         cgraph_function_or_thunk_node.
11035         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
11036         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
11037         (do_estimate_edge_growth_1): Break out from ...
11038         (do_estimate_growth) ... here; walk aliases.
11039         (inline_generate_summary): Skip aliases.
11040
11041 2011-06-10  Richard Guenther  <rguenther@suse.de>
11042
11043         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
11044         forward when combining, visit inserted stmts when a stmt was changed.
11045
11046 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
11047
11048         * tree.h (error_operand_p): Add.
11049         * dbxout.c (dbxout_type_fields): Use the latter.
11050         * c-decl.c (add_stmt): Likewise.
11051         * gimplify.c (omp_add_variable, omp_notice_variable,
11052         gimplify_scan_omp_clauses): Likewise.
11053
11054 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
11055
11056         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
11057         when a value is actually passed in regs.
11058
11059 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
11060             Laurent Rougé  <laurent.rouge@menta.fr>
11061
11062         * doc/invoke.texi (SPARC options): Add -mflat.
11063         * config/sparc/sparc.opt: Likewise.
11064         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11065         (sparc_flat_expand_prologue): Declare.
11066         (sparc_flat_expand_epilogue): Likewise.
11067         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11068         (CPP_ENDIAN_SPEC): Replace with...
11069         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
11070         (CPP_SPEC): Adjust to above change.
11071         (EXTRA_SPECS): Likewise.
11072         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11073         (INCOMING_REGNO): Likewise.
11074         (OUTGOING_REGNO): Likewise.
11075         (LOCAL_REGNO): Likewise.
11076         (SETUP_FRAME_ADDRESSES): Likewise.
11077         (FIXED_REGISTERS): Set 0 for %fp.
11078         (CALL_USED_REGISTERS): Likewise.
11079         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11080         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11081         (RETURN_ADDR_REGNUM): Define.
11082         (RETURN_ADDR_RTX): Use it.
11083         (INCOMING_RETURN_ADDR_REGNUM): Define.
11084         (INCOMING_RETURN_ADDR_RTX): Use it.
11085         (DWARF_FRAME_RETURN_COLUMN): Likewise.
11086         (EH_RETURN_REGNUM): Define.
11087         (EH_RETURN_STACKADJ_RTX): Use it.
11088         (EH_RETURN_HANDLER_RTX): Delete.
11089         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11090         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11091         Delete.
11092         (struct machine_function): Add frame_size, apparent_frame_size,
11093         frame_base_reg, frame_base_offset, n_global_fp_regs and
11094         save_local_in_regs_p fields.
11095         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11096         sparc_frame_base_offset, sparc_n_global_fp_regs,
11097         sparc_save_local_in_regs_p): New macros.
11098         (sparc_option_override): Error out if -fcall-saved-REG is specified
11099         for Out registers.
11100         (eligible_for_restore_insn): Fix formatting.
11101         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
11102         (eligible_for_sibcall_delay): Likewise.
11103         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11104         (sparc_legitimate_address_p): Adjust to above change.
11105         (save_global_or_fp_reg_p): New predicate.
11106         (return_addr_reg_needed_p): Likewise.
11107         (save_local_or_in_reg_p): Likewise.
11108         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
11109         (SORR_SAVE, SORR_RESTORE): Delete.
11110         (sorr_pred_t): New typedef.
11111         (sorr_act_t): New enum.
11112         (save_or_restore_regs): Rename to...
11113         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
11114         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11115         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
11116         mechanism.  Add CFI information for double-word saves in 32-bit mode.
11117         (emit_adjust_base_to_offset): New function extracted from...
11118         (emit_save_or_restore_regs): ...this.  Rename the rest to...
11119         (emit_save_or_restore_regs_global_fp_regs): ...this.
11120         (emit_save_or_restore_regs_local_in_regs): New function.
11121         (gen_create_flat_frame_[123]): New functions.
11122         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
11123         (sparc_flat_expand_prologue): New function.
11124         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11125         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
11126         (sparc_flat_expand_epilogue): New function.
11127         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11128         (output_return): Likewise.
11129         (output_sibcall): Likewise.
11130         (sparc_output_mi_thunk): Likewise.
11131         (sparc_frame_pointer_required): Likewise.
11132         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11133         function optimization.
11134         * config/sparc/sparc.md (flat): New attribute.
11135         (prologue): Add TARGET_FLAT handling.
11136         (save_register_window): Disable if TARGET_FLAT.
11137         (create_flat_frame_[123]): New patterns.
11138         (epilogue): Add TARGET_FLAT handling.
11139         (sibcall_epilogue): Likewise.
11140         (eh_return): New expander.
11141         (eh_return_internal): New insn and splitter.
11142         (return_internal): Add TARGET_FLAT handling.
11143         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
11144         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
11145         (nonlocal_goto): Add TARGET_FLAT handling.
11146         * config/sparc/t-elf: Add -mflat multilib.
11147         * config/sparc/t-leon: Likewise.
11148
11149 2011-06-10  Jan Hubicka  <jh@suse.cz>
11150
11151         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
11152         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
11153         (self_recursive_p): Use cgraph_function_node.
11154         (propagate_pure_const): Likewise.
11155         (propagate_nothrow): Likewise.
11156         * ipa-reference.c (ipa_reference_get_not_read_global): Use
11157         cgraph_function_node.
11158         (propagate_bits): Likewise.
11159         (propagate): Likewise.
11160
11161 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11162             Richard Earnshaw  <rearnsha@arm.com>
11163
11164         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
11165         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
11166         (*thumb2_movdi_vfp): Delete.
11167         (*arm_movdi_vfp_cortexa8): Delete.
11168         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
11169         (*movdi_vfp_cortexa8): Likewise.
11170
11171 2011-06-10  Richard Guenther  <rguenther@suse.de>
11172
11173         * stor-layout.c (initialize_sizetypes): Give names to all
11174         sizetype kinds.
11175
11176 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
11177
11178         PR tree-optimization/49318
11179         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
11180         irrelevant pattern statements.
11181
11182 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11183
11184         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
11185
11186         PR bootstrap/49354
11187         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
11188         to last assignment.
11189
11190 2011-06-09  Jan Hubicka  <jh@suse.cz>
11191
11192         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
11193         do not recompute reachable flag.
11194         (cgraph_finalize_function, cgraph_analyze_functions): Set
11195         redefined_extern_inline here.
11196
11197 2011-06-09  Jan Hubicka  <jh@suse.cz>
11198
11199         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
11200         (cgraph_only_called_directly_p): ... this one; bring offline.
11201         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11202         varpool_used_from_object_file_p): Drop names from the declaratoin.
11203         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
11204         collect_callers_of_node): New.
11205         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
11206         (cgraph_edge_recursive_p): Use cgraph_function_node.
11207         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
11208         (cgraph_node_cannot_be_local_p_1): Break out from ...
11209         (cgraph_node_can_be_local_p): ... here; walk aliases.
11210         (cgraph_for_node_thunks_and_aliases): New function.
11211         (cgraph_for_node_and_aliases): New function.
11212         (cgraph_make_node_local_1): Break out from ...
11213         (cgraph_make_node_local) ... here; use
11214         cgraph_for_node_thunks_and_aliases.
11215         (cgraph_set_nothrow_flag_1): Break out from ...
11216         (cgraph_set_nothrow_flag) ... here;
11217         use cgraph_for_node_thunks_and_aliases.
11218         (cgraph_set_const_flag_1): Break out from ...
11219         (cgraph_set_const_flag) ... here;
11220         use cgraph_for_node_thunks_and_aliases.
11221         (cgraph_set_pure_flag_1): Break out from ...
11222         (cgraph_set_pure_flag) ... here;
11223         use cgraph_for_node_thunks_and_aliases.
11224         (cgraph_propagate_frequency_1): Break out from ...
11225         (cgraph_propagate_frequency) ... here; use
11226         cgraph_for_node_thunks_and_aliases.
11227         (cgraph_used_from_object_file_p): Do not care about aliases.
11228         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
11229         New functions.
11230         (collect_callers_of_node_1, collect_callers_of_node): New functions.
11231
11232 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11233
11234         PR rtl-optimization/49154
11235         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
11236         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
11237         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11238         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
11239         * config/cris/cris.h (cris_register_move_cost): Remove
11240         !TARGET_V32 code.  Tweak comments.
11241
11242 2011-06-09  Jan Hubicka  <jh@suse.cz>
11243
11244         * cgraphbuild.c (record_eh_tables): Mark personality function as having
11245         address taken.
11246
11247 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11248
11249         PR rtl-optimization/49154
11250         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
11251         is a matching slot in the hashtable, assign it to classes_ptr.
11252
11253         PR rtl-optimization/49154
11254         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
11255         register classes.
11256         * doc/tm.texi: Regenerate.
11257
11258 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
11259
11260         PR target/49307
11261         * config/sh/sh.md (UNSPEC_CHKADD): New.
11262         (chk_guard_add): New define_insn_and_split.
11263         (symGOT_load): Use chk_guard_add instead of blockage.
11264
11265 2011-06-09  Kai Tietz  <ktietz@redhat.com>
11266
11267         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
11268
11269 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
11270
11271         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
11272
11273 2011-06-09  Wei Guozhi  <carrot@google.com>
11274
11275         PR target/46975
11276         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
11277         (peephole2 for conditional move): Generate 16 bit instructions.
11278
11279 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
11280
11281         * config/i386/i386.md (*movdi_internal_rex64): Merge
11282         alternatives 6 and 8.
11283
11284 2011-06-09  David Li  <davidxl@google.com>
11285
11286         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11287         * passes.c (passr_eq): New function.
11288         (create_pass_tab): New function.
11289         (pass_traverse): New function.
11290         (dump_one_pass): New function.
11291         (dump_pass_list): New function.
11292         (dump_passes): New function.
11293
11294 2011-06-09  David Li  <davidxl@google.com>
11295
11296         * tree-complex.c (tree_lower_complex): Gate cleanup.
11297         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
11298         (execute_optimize_stdarg): Ditto.
11299         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
11300         (execute_cleanup_eh_1): Ditto.
11301         (execute_cleanup_eh): Ditto.
11302         * gcse.c (gate_rtl_pre): Ditto.
11303         (execute_rtl_pre): Ditto.
11304         * except.c (finish_eh_generation): Ditto.
11305         (convert_to_eh_region_ranges): Ditto.
11306         * cprop.c (one_cprop_pass): Ditto.
11307
11308 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
11309
11310         PR target/48673
11311         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
11312         in all basic blocks.
11313
11314 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11315
11316         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
11317         (HAVE_ENABLE_EXECUTE_STACK): Define.
11318         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
11319         (HAVE_ENABLE_EXECUTE_STACK): Define.
11320         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
11321         (HAVE_ENABLE_EXECUTE_STACK): Define.
11322         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
11323         (ENABLE_EXECUTE_STACK): Remove.
11324         (HAVE_ENABLE_EXECUTE_STACK): Define.
11325         [IN_LIBGCC2]: Don't include <windows.h>.
11326         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11327         (HAVE_ENABLE_EXECUTE_STACK): Define.
11328         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
11329         (HAVE_ENABLE_EXECUTE_STACK): Define.
11330         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
11331         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
11332         (HAVE_ENABLE_EXECUTE_STACK): Define.
11333         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
11334         (HAVE_ENABLE_EXECUTE_STACK): Define.
11335         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
11336         (HAVE_ENABLE_EXECUTE_STACK): Define.
11337         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11338         (HAVE_ENABLE_EXECUTE_STACK): Define.
11339         * config/alpha/alpha.c (alpha_trampoline_init): Test
11340         HAVE_ENABLE_EXECUTE_STACK.
11341         * config/i386/i386.c (ix86_trampoline_init): Likewise.
11342         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11343         (sparc64_initialize_trampoline): Likewise.
11344         * libgcc2.c [L_enable_execute_stack]: Remove.
11345         * system.h (ENABLE_EXECUTE_STACK): Poison.
11346         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
11347         * doc/tm.texi: Regenerate.
11348         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
11349
11350 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
11351
11352         PR middle-end/49308
11353         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
11354         variable.  After resetting and rescanning insn continue with previous
11355         statement.
11356
11357 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11358
11359         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
11360         (gcc_cv_ld_hidden): Likewise.
11361         * configure: Regenerate.
11362         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
11363         (ix86_stack_protect_fail): Mark unused.
11364         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
11365         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
11366         [TARGET_MACHO]: Don't define.
11367         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
11368         (TARGET_STACK_PROTECT_FAIL): Likewise.
11369         (rs6000_stack_protect_fail): Mark unused.
11370         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11371         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
11372
11373 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11374
11375         * varasm.c (get_section): Print location of other conflict
11376         for section conflicts.
11377
11378 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11379
11380         * config/i386/driver-i386.c (host_detect_local_cpu):
11381         Add model 0x2d Intel CPU.
11382
11383 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11384
11385         * reginfo.c (global_regs_decl): Add.
11386         (globalize_reg): Add decl parameter. Compute location.  Pass location
11387         to warnings and add inform. Store decl in global_regs_decl.
11388         * rtl.h (globalize_reg): Update prototype.
11389         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11390
11391 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
11392
11393         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11394
11395 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11396
11397         PR target/49305
11398         * config/sh/predicates.md (general_movsrc_operand): Check
11399         mode for memory with indexed address for QI and HImode.
11400         (general_movdst_operand): Likewise.
11401
11402 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11403
11404         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11405
11406 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
11407
11408         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11409         (num_ssa_operands): Likewise.
11410         (op_iter_init_phiuse): Forward-declare.
11411         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11412
11413 2011-06-08  Nick Clifton  <nickc@redhat.com>
11414
11415         * doc/invoke.texi (ARM Options): Update description of
11416         -mthumb-interwork.
11417
11418 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
11419
11420         * config/i386/driver-i386.c (host_detect_local_cpu): Support
11421         unknown Intel family 0x6 CPUs.
11422
11423 2011-06-08  Martin Jambor  <mjambor@suse.cz>
11424
11425         * tree-sra.c (mark_rw_status): Removed.
11426         (analyze_access_subtree): New parameter parent instead of
11427         mark_read and mark_write, propagate from that.
11428
11429 2011-06-08  Julian Brown  <julian@codesourcery.com>
11430
11431         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11432         for double-precision helper functions in hard-float mode if only
11433         single-precision arithmetic is supported in hardware.
11434
11435 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
11436
11437         PR rtl-optimization/49303
11438         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
11439         code_motion_path_driver returned 0 or 1.
11440         (sel_region_finish): Clear h_d_i_d.
11441
11442 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11443
11444         * config/sh/sh.c (prepare_move_operands): Set pic register
11445         appropriately for global and local dynamic tls models even
11446         if flag_pic is unset.
11447
11448 2011-06-07  Jason Merrill  <jason@redhat.com>
11449
11450         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11451
11452 2011-06-07  Xinliang David Li  <davidxl@google.com>
11453         * passes.c (enable_disable_pass): Handle assembler name.
11454         (is_pass_explicitly_enabled_or_disabled): Ditto.
11455
11456 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11457
11458         PR tree-optimization/48497
11459         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11460
11461 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11462
11463         PR tree-optimization/46728
11464         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11465         to use gimple_val_nonnegative_real_p.
11466         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11467         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11468
11469 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
11470
11471         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11472
11473 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
11474
11475         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11476         constant vectors.
11477
11478 2011-06-07  Richard Guenther  <rguenther@suse.de>
11479
11480         * stor-layout.c (initialize_sizetypes): Initialize all
11481         sizetypes based on target definitions.
11482         (set_sizetype): Remove.
11483         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11484         * tree.h (set_sizetype): Remove.
11485
11486 2011-06-07  Nick Clifton  <nickc@redhat.com>
11487
11488         * config.gcc: Unify V850 architecture options and add support for
11489         newer V850 architectures.
11490         * config/v850/t-v850e: Delete.
11491
11492 2011-06-07  Richard Guenther  <rguenther@suse.de>
11493
11494         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11495         Call set_sizetype from here.
11496
11497 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
11498
11499         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11500         (*maddhisi4tb, *maddhisi4tt): New define_insns.
11501
11502 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
11503             Andrew Stubbs  <ams@codesourcery.com>
11504
11505         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11506         multiplies.
11507         * doc/md.texi (Canonicalization of Instructions): Document widening
11508         multiply canonicalization.
11509
11510 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
11511
11512         PR gcov-profile/49299
11513         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11514
11515 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
11516
11517         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11518         a pointer.
11519         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11520         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11521         vect_recog_pow_pattern): Likewise.
11522         (vect_pattern_recog_1): Remove declaration.
11523         (widened_name_p): Remove declaration.  Add new argument to specify
11524         whether to check that both types are either signed or unsigned.
11525         (vect_recog_widen_mult_pattern): Update documentation.  Handle
11526         unsigned patterns and multiplication by constants.
11527         (vect_pattern_recog_1): Update vect_recog_func references.  Use
11528         statement information from the statement returned from pattern
11529         detection functions.
11530         (vect_pattern_recog): Update vect_recog_func reference.
11531         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11532         multiplication by a constant use the type of the other operand.
11533
11534 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
11535
11536         PR rtl-optimization/49145
11537         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11538
11539 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
11540
11541         PR debug/49262
11542         * dwarf2out.c (native_encode_initializer): Decrement count in each
11543         iteration.
11544
11545         PR debug/49294
11546         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11547         non-MODE_INT modes.
11548
11549         PR c++/49264
11550         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11551         if stmt folded into nothing.
11552         * tree-inline.c (fold_marked_statements): If a builtin at the end of
11553         a bb folded into nothing, just update cgraph edges and move to next bb.
11554         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11555         to be NULL.  Don't compute count and frequency if new_call is NULL.
11556
11557 2011-06-04  Diego Novillo  <dnovillo@google.com>
11558
11559         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11560         (cgraph.o): Likewise.
11561         (cgraphunit.o): Likewise.
11562         * cgraphunit.c: Include lto-streamer.h
11563         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11564         if LTO is enabled.
11565         * lto-streamer-in.c (unpack_value_fields): Call
11566         streamer_hooks.unpack_value_fields if set.
11567         (lto_materialize_tree): For unhandled nodes, first try to
11568         call lto_streamer_hooks.alloc_tree, if it exists.
11569         (lto_input_ts_decl_common_tree_pointers): Move reading of
11570         DECL_INITIAL to lto_streamer_read_tree.
11571         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11572         (lto_streamer_read_tree): New.
11573         (lto_reader_init): Rename from lto_init_reader.
11574         Move initialization code to lto/lto.c.
11575         * lto-streamer-out.c (pack_value_fields): Call
11576         streamer_hooks.pack_value_fields if set.
11577         (lto_output_tree_ref): For tree nodes that are not normally indexable,
11578         call streamer_hooks.indexable_with_decls_p before giving up.
11579         (lto_output_ts_decl_common_tree_pointers): Move handling
11580         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11581         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11582         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
11583         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11584         (lto_streamer_write_tree): New.
11585         (lto_output): Call lto_streamer_init directly.
11586         (lto_writer_init): Remove.
11587         * lto-streamer.c (streamer_hooks): New.
11588         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11589         instead of lto_preload_common_nodes.
11590         (lto_is_streamable): Move from lto-streamer.h
11591         (lto_streamer_hooks_init): New.
11592         (streamer_hooks): New.
11593         (streamer_hooks_init): New.
11594         * lto-streamer.h (struct output_block): Forward declare.
11595         (struct lto_input_block): Likewise.
11596         (struct data_in): Likewise.
11597         (struct bitpack_d): Likewise.
11598         (struct streamer_hooks): Declare.
11599         (streamer_hooks): Declare.
11600         (lto_streamer_hooks_init): Declare.
11601         (lto_streamer_write_tree): Declare.
11602         (lto_streamer_read_tree): Declare.
11603         (streamer_hooks_init): Declare.
11604         (lto_is_streamable): Move to lto-streamer.c
11605
11606 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11607
11608         * longlong.h (smul_ppmm): The resulting register pair contains the
11609         higher order word first.
11610
11611 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11612
11613         PR tree-optimization/46728
11614         * builtins.c (powi_table): Remove.
11615         (powi_lookup_cost): Remove.
11616         (powi_cost): Remove.
11617         (expand_powi_1): Remove.
11618         (expand_powi): Remove.
11619         (expand_builtin_pow_root): Remove.
11620         (expand_builtin_pow): Remove.
11621         (expand_builtin_powi): Eliminate handling of constant exponent.
11622         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
11623
11624 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11625
11626         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
11627
11628 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11629
11630         * dce.c (reset_unmarked_insns_debug_uses): New.
11631         (delete_unmarked_insns): Skip debug insns.
11632         (prescan_insns_for_dce): Likewise.
11633         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
11634         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
11635         active reg can be found.
11636         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
11637         (convert_regs_1): Use it.
11638
11639 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11640
11641         * tree-pretty-print.c (dump_function_header): Add flags.
11642         Don't dump decl_uid with nouid.
11643         * tree-pretty-print.h (dump_function_header): Adjust.
11644         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
11645         * passes.c (pass_init_dump_file): Pass dump_flags on.
11646         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
11647
11648 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11649
11650         PR bootstrap/49270
11651         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
11652
11653 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
11654
11655         PR tree-optimization/49243
11656         * calls.c (setjmp_call_p): Also check if fndecl has the
11657         returns_twice attribute.
11658
11659 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11660
11661         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11662         -ffast-math etc.
11663
11664 2011-06-06  Richard Henderson  <rth@redhat.com>
11665             Georg-Johann Lay  <avr@gjlay.de>
11666
11667         PR target/42210
11668         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11669         New predicates.
11670         * config/avr/avr.md ("insv"): New insn expander.
11671         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11672         "*insv.not.io", "*insv.reg"): New insns.
11673
11674 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
11675
11676         PR target/49285
11677         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11678         to nonimmediate_operand from memory_operand for the operand that is to
11679         be forced to memory by the expander.  Lose the constraints.
11680
11681 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
11682
11683         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11684         EH return when delayed branches are disabled.
11685
11686 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
11687
11688         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11689         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
11690         calculation.
11691         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11692         Simplify MODE_V1DF and MODE_V2SF handling.
11693         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11694         Simplify MODE_SF handling.
11695
11696 2011-06-04  Jan Hubicka  <jh@suse.cz>
11697
11698         PR tree-optimization/48893
11699         PR tree-optimization/49091
11700         PR tree-optimization/49179
11701         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11702         Bounds check.
11703
11704 2011-06-04  Jan Hubicka  <jh@suse.cz>
11705
11706         PR lto/48954
11707         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11708         bitmaps.
11709
11710 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
11711
11712         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11713
11714 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11715
11716         PR target/49281
11717         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11718         to be strictly smaller than 1 << shiftcount.
11719
11720 2011-06-04  Jan Hubicka  <jh@suse.cz>
11721
11722         PR tree-optimize/48929
11723         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11724         of empty predicate.
11725
11726 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
11727
11728         PR debug/48333
11729         * calls.c (emit_call_1): Prefer the __builtin declaration of
11730         builtin functions.
11731
11732 2011-06-03   Diego Novillo  <dnovillo@google.com>
11733
11734         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11735         (lto_input_tree_pointers): Likewise.
11736         * lto-streamer-out.c (pack_value_fields): Likewise.
11737         (lto_output_tree_pointers): Likewise.
11738         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11739         and OPTIMIZATION_NODE.
11740
11741 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11742
11743         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11744         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11745         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11746         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11747         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11748         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11749         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11750         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11751         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11752         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11753         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11754         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11755         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11756         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11757         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11758         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11759         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11760         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11761         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11762         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11763         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11764         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11765         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11766         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11767         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11768         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11769         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11770         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11771         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11772         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11773         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11774         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11775         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11776         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11777         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11778         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11779         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11780         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11781         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11782         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11783         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11784         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11785         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11786         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11787         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11788         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11789         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11790         * system.h (MD_UNWIND_SUPPORT): Poison.
11791         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11792         * doc/tm.texi: Regenerate.
11793         * unwind-dw2.c: Include md-unwind-support.h instead of
11794         MD_UNWIND_SUPPORT.
11795         * config/ia64/unwind-ia64.c: Likewise.
11796         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11797
11798 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
11799
11800         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11801
11802 2011-06-03  Richard Henderson  <rth@redhat.com>
11803             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11804
11805         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11806         (sigill_hdlr): Correct insn, insn size.
11807         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11808
11809 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11810
11811         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11812         t-slibgcc-dummy.
11813         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11814         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11815         * config/mips/t-iris: Remove.
11816         * config/mips/t-irix6: New file.
11817         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11818
11819 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11820
11821         * Makefile.in (LIB2ADDEHDEP): Remove.
11822         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11823         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11824         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11825         * config/t-darwin (LIB2ADDEHDEP): Remove.
11826         * config/t-freebsd (LIB2ADDEHDEP): Remove.
11827         * config/t-linux (LIB2ADDEHDEP): Remove.
11828
11829 2011-06-03  Diego Novillo  <dnovillo@google.com>
11830
11831         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11832         (lto_register_var_decl_in_symtab): Likewise.
11833         (lto_register_function_decl_in_symtab): Likewise.
11834         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11835         logic to uniquify_nodes.
11836
11837 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11838
11839         * config/alpha/t-osf5: Remove.
11840         * config/alpha/t-osf-pthread: Remove.
11841         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
11842         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
11843
11844 2011-06-03  Julian Brown  <julian@codesourcery.com>
11845
11846         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
11847         (strongarm1110): Use strongarm tuning.
11848         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
11849         * config/arm/arm.c (arm_strongarm_tune): New.
11850         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11851         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
11852         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11853         setting, using previous defaults or 1 for Cortex-A5.
11854         (arm_option_override): Set max_insns_skipped from current tuning.
11855
11856 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
11857
11858         * doc/install.texi (Options specification): Document --with-specs.
11859
11860 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11861
11862         * config/arm/neon.md (orndi3_neon): Actually split it.
11863
11864 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11865
11866         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
11867         * var-tracking.c (reverse_op): Limite recurse depth to 5.
11868
11869 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11870
11871         PR debug/47590
11872         * target.def (delay_sched2, delay_vartrack): New.
11873         * doc/tm.texi.in: Update.
11874         * doc/tm.texi: Rebuild.
11875         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
11876         * var-tracking.c (gate_handle_var_tracking): Likewise.
11877         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
11878         (bfin_flag_var_tracking): Drop.
11879         (output_file_start): Don't save and override flag_var_tracking.
11880         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
11881         (bfin_reorg): Test original variables.
11882         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11883         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
11884         (ia64_flag_var_tracking): Drop.
11885         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11886         (ia64_file_start): Don't save and override flag_var_tracking.
11887         (ia64_override_options_after_change): Ditto
11888         flag_schedule_insns_after_reload.
11889         (ia64_reorg): Test original variables.
11890         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
11891         (picochip_flag_var_tracking): Drop.
11892         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11893         (picochip_option_override): Don't save and override
11894         flag_schedule_insns_after_reload.
11895         (picochip_asm_file_start): Ditto flag_var_tracking.
11896         (picochip_reorg): Test original variables.
11897         * config/spu/spu.c (spu_flag_var_tracking): Drop.
11898         (TARGET_DELAY_VARTRACK): Define.
11899         (spu_var_tracking): New.
11900         (spu_machine_dependent_reorg): Call it.
11901         (asm_file_start): Don't save and override flag_var_tracking.
11902
11903 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
11904
11905         PR target/49163
11906         * config/sh/predicates.md (general_movsrc_operand): Return 0
11907         for memory and memory subreg of which address is an invalid
11908         indexed address for QI and HImode.
11909         (general_movdst_operand): Likewise.
11910
11911 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11912
11913         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
11914         edges only, when there is a non-local label in the function.
11915         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
11916
11917 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11918
11919         * config/i386/constraints.md (Y3): New register constraint.
11920         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
11921         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
11922         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
11923         *sse2_interleave_lowv2df.
11924
11925 2011-06-02  Julian Brown  <julian@codesourcery.com>
11926
11927         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
11928         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
11929         (arm_cortex_a5_tune): New.
11930
11931 2011-06-02  Julian Brown  <julian@codesourcery.com>
11932
11933         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
11934         * config/arm/arm.c (arm_default_branch_cost): New.
11935         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11936         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
11937         (arm_fa726_tune): Set branch_cost field using
11938         arm_default_branch_cost.
11939         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
11940         current_tune structure.
11941         * dojump.c (tm_p.h): Include file.
11942
11943 2011-06-02  Julian Brown  <julian@codesourcery.com>
11944
11945         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
11946         tuning.
11947         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
11948         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
11949         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
11950         field.
11951         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
11952         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
11953         (arm_fa726te_tune): Add prefer_constant_pool setting.
11954         (arm_v6t2_tune, arm_cortex_tune): New.
11955         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
11956         prefer_constant_pool setting.
11957
11958 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11959
11960         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
11961         switch statement.
11962         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
11963         (*movdf_internal) <case 6,7,8>: Ditto.
11964
11965         * config/i386/constraints.md (Y4): New register constraint.
11966         * config/i386/sse.md (vec_set<mode>_0): Merge with
11967         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
11968         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
11969         *vec_extractv2di_1_sse.
11970         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
11971         and *vec_concatv2di_rex64_sse.
11972
11973 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
11974
11975         PR target/48807
11976         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
11977         of cgraph_local_info for null before attempting to use it.
11978
11979 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11980
11981         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
11982         (current_function_dynamic_alloc_count): Delete.
11983         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
11984         (expand_builtin_nonlocal_goto): Remove obsolete comment.
11985         (expand_builtin_update_setjmp_buf): Remove dead code.
11986         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
11987         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
11988         support.
11989         * function.c (instantiate_virtual_regs): Likewise.
11990         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
11991         for a block with a single abnormal incoming edge.
11992         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
11993         (SETJMP_VIA_SAVE_AREA): Delete.
11994         * config/sparc/sparc-protos.h (load_got_register): Declare.
11995         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
11996         (load_got_register): Make global.
11997         (sparc_frame_pointer_required): Add 'static'.
11998         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
11999         (sparc_builtin_setjmp_frame_value): New function.
12000         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
12001         (save_stack_nonlocal): New expander.
12002         (restore_stack_nonlocal): Likewise.
12003         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
12004         (nonlocal_goto_internal): New insn.
12005         (goto_handler_and_restore): Delete.
12006         (builtin_setjmp_setup): Likewise.
12007         (do_builtin_setjmp_setup): Likewise.
12008         (setjmp): Likewise.
12009         (builtin_setjmp_receiver): New expander.
12010
12011 2011-06-01  David Li  <davidxl@google.com>
12012
12013         PR middle-end/49261
12014         * tree-pretty-print.c (dump_function_header): Format cleanup.
12015
12016 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
12017
12018         PR target/49238
12019         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
12020         needed when original operands are used for msw_skip comparison.
12021
12022 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12023
12024         PR debug/49250
12025         * var-tracking.c (add_uses, add_stores): Don't call
12026         cselib_subst_to_values on ENTRY_VALUE.
12027
12028 2011-06-01  Diego Novillo  <dnovillo@google.com>
12029
12030         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
12031         output_record_start with LTO_null instead of output_zero.
12032         (lto_output_ts_binfo_tree_pointers): Likewise.
12033         (lto_output_tree): Likewise.
12034         (output_eh_try_list): Likewise.
12035         (output_eh_region): Likewise.
12036         (output_eh_lp): Likewise.
12037         (output_eh_regions): Likewise.
12038         (output_bb): Likewise.
12039         (output_function): Likewise.
12040         (output_unreferenced_globals): Likewise.
12041         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
12042         instead of NUM_TREE_CODES.
12043         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
12044         (lto_output_int_in_range): Change << to >> when shifting VAL.
12045
12046 2011-06-01  Diego Novillo  <dnovillo@google.com>
12047
12048         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
12049         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
12050
12051 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12052
12053         PR target/45074
12054         * optabs.h (valid_multiword_target_p): Declare.
12055         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
12056         doing multi-word operations.
12057         * optabs.c (expand_binop): Likewise.
12058         (expand_doubleword_bswap): Likewise.
12059         (expand_absneg_bit): Likewise.
12060         (expand_unop): Likewise.
12061         (expand_copysign_bit): Likewise.
12062         (multiword_target_p): New function.
12063
12064 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12065
12066         PR rtl-optimization/48830
12067         PR rtl-optimization/48808
12068         PR rtl-optimization/48792
12069         * reload.c (push_reload): Check contains_reg_of_mode.
12070         * reload1.c (strip_paradoxical_subreg): New function.
12071         (gen_reload_chain_without_interm_reg_p): Use it to handle
12072         paradoxical subregs.
12073         (emit_output_reload_insns, gen_reload): Likewise.
12074
12075 2011-06-01  David Li  <davidxl@google.com>
12076
12077         * predict.c : Change pass name
12078         * ipa.c: Ditto.
12079         * dce.c: Ditto.
12080         * tree-profile.c: Ditto.
12081         * except.c: Ditto.
12082
12083 2011-06-01  David Li  <davidxl@google.com>
12084
12085         * tree-pretty-print.c (dump_function_header): New function.
12086         * final.c (rest_of_clean_state): Use header dumper.
12087         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12088         * passes.c (pass_init_dump_file): Use header dumper.
12089
12090 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12091
12092         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12093         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12094         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12095         New functions.
12096         (mem_loc_descriptor): Use them.
12097
12098         * var-tracking.c (create_entry_value): New function.
12099         (vt_add_function_parameter): Use it.
12100
12101 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12102
12103         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12104         Include <signal.h>, <ucontext.h>.
12105         (sigill_caught): Define.
12106         (sigill_hdlr): New function.
12107         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12108         insns can be executed.
12109         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12110         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12111
12112 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12113
12114         * config/t-slibgcc-darwin: Move to ...
12115         * config/t-slibgcc-dummy: ... this.  Clarify comments.
12116         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12117         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12118         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12119         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
12120         Remove i386/t-crtstuff from tmake_file.
12121         (i[34567]86-*-solaris2*): Remove t-svr4,
12122         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12123         t-slibgcc-dummy.
12124         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12125         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12126         sparc/t-crtfm from tmake_file.
12127         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12128         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12129         Remove extra_parts.
12130         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12131         * config/i386/t-nwld (SHLIB_LINK): Remove.
12132         * config/i386/t-rtems-i386: Rename to ...
12133         * config/i386/t-rtems: ... this.
12134         ($(T)crti.o, $(T)crtn.o): Remove.
12135         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12136         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12137         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12138         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12139         EXTRA_MULTILIB_PARTS): Remove.
12140         * config/sparc/t-sol2-64: Likewise.
12141         * config/sparc/t-sol2: Remove.
12142         * config/sparc/t-crtin: Remove.
12143         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
12144         * config/i386/gmon-sol2.c: Remove.
12145         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
12146         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
12147         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
12148         * config/i386/sol2-gc1.asm: Remove.
12149         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
12150         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
12151         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
12152         * config/t-slibgcc-sld: Remove.
12153
12154 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12155
12156         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
12157         base_type_for_mode with op_mode instead of mode.
12158
12159 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
12160
12161         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
12162         Cortex-A15.
12163         * config/arm/arm-tune.md: Regenerate.
12164         * config/arm/arm-tables.opt: Regenerate.
12165         * config/arm/arm.c (FL_DIV): Rename...
12166         (FL_THUMB_DIV): ... to this.
12167         (FL_ARM_DIV): Define.
12168         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
12169         (arm_arch_hwdiv): Remove.
12170         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
12171         (arm_issue_rate): Add cortexr5.
12172         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
12173         __ARM_ARCH_EXT_IDIV__.
12174         (TARGET_IDIV): Define.
12175         (arm_arch_hwdiv): Remove.
12176         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
12177         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
12178         (divsi3, udivsi3): New patterns.
12179         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
12180         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
12181
12182 2011-06-01  Martin Jambor  <mjambor@suse.cz>
12183
12184         * ipa-utils.c (ipa_dfs_info): New field scc_no.
12185         * ipa-utils.c (searchc): Set scc_no.
12186
12187 2011-06-01  Martin Jambor  <mjambor@suse.cz>
12188
12189         * ipa-utils.c (searchc_env): New field allow_overwritable.
12190         (searchc): do not ignore edges to overwritable nodes if indicated
12191         by env->allow_overwritable.
12192         (ipa_reduced_postorder): Set env.allow_overwritable.
12193
12194 2011-06-01  Richard Guenther  <rguenther@suse.de>
12195
12196         * tree.c (free_lang_data): Do not reset boolean_type_node nor
12197         char_type_node.
12198         * lto-streamer.c (lto_record_common_node): Take node pointer,
12199         do not register types.
12200         (lto_preload_common_nodes): Explicitly skip preloading nodes
12201         that differ between frontends.
12202
12203 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
12204
12205         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
12206         NON_FLOAT_REGS.
12207
12208 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
12209
12210         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
12211         parameter value for dump. Dump cost on outermost call only.
12212         (rs6000_memory_move_cost): Dump cost on outermost call only.
12213
12214 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
12215
12216         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
12217         DW_OP_GNU_convert ops.
12218
12219         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
12220         cselib_preserve_constants.
12221         (cselib_lookup_1): If cselib_preserve_constants,
12222         a new VALUE is being created for REG and there is a VALUE for the
12223         same register in wider mode, add another loc with lowpart SUBREG of
12224         the wider VALUE.
12225         (cselib_subst_to_values): Handle ENTRY_VALUE.
12226         * var-tracking.c  (replace_expr_with_values): Return NULL for
12227         ENTRY_VALUE too.
12228         * dwarf2out.c (convert_descriptor_to_signed): New function.
12229         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
12230         instead of two shifts.
12231         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
12232         the right mode if needed.
12233         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
12234         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
12235         convert_descriptor_to_signed.
12236         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
12237         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
12238
12239         PR target/48688
12240         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
12241
12242 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12243
12244         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
12245         of X87MODEI12 and SWI48x instead of SSEMODEI24.
12246         (SWI248x): New mode iterator, rename from X87MODEI.
12247         (X87MODEI): Remove mode iterator.
12248         (X87MODEI12): Ditto.
12249         (SSEMODEI24): Ditto.
12250
12251 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12252
12253         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
12254         * doc/invoke.texi: Document max-vartrack-expr-depth.
12255         * var-tracking.c (EXPR_DEPTH): New.
12256         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
12257
12258 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12259
12260         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
12261         * config/i386/sse.md: Add n to negated FMA pattern names.
12262
12263 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12264
12265         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
12266
12267 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12268
12269         * gengtype-state.c (read_state_params_structs): Initialize previous.
12270
12271 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12272
12273         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
12274         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
12275
12276 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12277
12278         * config/i386/i386.md (*movtf_internal): Avoid allocating general
12279         registers.  Penalize F*r->o alternative to prevent partial memory
12280         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
12281         CONST_DOUBLE immediates when optimizing function for size.  Do not move
12282         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12283         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
12284         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
12285         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
12286         alternatives.
12287         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
12288
12289         (fp_register_operand splitters): Use fp_register_operand
12290         constraint.  Do not use FP_REG_P in insn condition.
12291         (any_fp_register_operand splitters): Use any_fp_register_operand
12292         constraint.  Do not use ANY_FP_REG_P in insn condition.
12293
12294 2011-05-31  Jan Hubicka  <jh@suse.cz>
12295
12296         * cgraph.h (cgraph_inline_failed_t): Give enum a name
12297         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
12298         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
12299         (lto_output_edge): Use output_enum and var_len_unsigned.
12300         (lto_output_varpool_node): Likewise.
12301         (input_overwrite_node): Do not take resolution parameter;
12302         extract it from a bitpack.
12303         (input_node): Do not read resolution; use input_enum and
12304         var_len_unsigned.
12305         (input_varpool_node): Likewise.
12306         (input_edge): Likewise.
12307         (input_cgraph_1): Likewise.
12308
12309 2011-05-31  Richard Guenther  <rguenther@suse.de>
12310
12311         * gimple.c (gimple_register_canonical_type): Do not register
12312         any types via gimple_register_type.
12313
12314 2011-05-31  Jan Hubicka  <jh@suse.cz>
12315
12316         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
12317         of thunks.
12318
12319 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
12320
12321         PR rtl-optimization/49235
12322         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
12323         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
12324
12325 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
12326
12327         PR tree-optimization/49093
12328         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
12329         data references.
12330
12331 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
12332
12333         PR debug/49047
12334         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
12335         for concrete functions containing the code of cloned functions.
12336
12337 2011-05-31  Richard Guenther  <rguenther@suse.de>
12338
12339         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
12340         to ...
12341         (forward_propagate_into_comparison_1): ... this.
12342         (forward_propagate_comparison): Rename to ...
12343         (forward_propagate_into_comparison): ... this.  Split out
12344         real forward propagation code to ...
12345         (forward_propagate_comparison): ... this.
12346         (forward_propagate_into_gimple_cond): Remove looping.
12347         (forward_propagate_into_cond): Likewise.
12348         (simplify_not_neg_expr): Return whether we have done something.
12349         (simplify_gimple_switch): Likewise.
12350         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
12351         (ssa_forward_propagate_and_combine): ... this.  Re-structure
12352         to do a forward forward-propagation walk on BBs and a backward
12353         stmt combining walk on BBs.  Consistently re-scan changed statements.
12354         (pass_forwprop): Adjust.
12355
12356 2011-05-30  Ian Lance Taylor  <iant@google.com>
12357
12358         * godump.c (go_format_type): Correct length of name added to
12359         obstack for anonymous field.
12360
12361 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
12362
12363         PR target/49186
12364         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
12365         part of the second operand is 0.
12366
12367 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
12368
12369         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12370         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
12371         to memory for !TARGET_MEMORY_MISMATCH_STALL.
12372         (*movdf_internal_rex64): Do not penalize F->r alternative.
12373         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12374         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
12375         when optimizing function for size.  Do not move CONST_DOUBLEs
12376         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12377         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
12378         SUBREGs.  Do not check for MEM_P operands in the insn condition,
12379         check for ANY_FP_REGNO_P instead.
12380         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12381         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12382         function for speed.
12383         * config/i386/i386.c (ix86_option_override_internal): Do not
12384         set TARGET_INTEGER_DFMODE_MOVES here.
12385
12386 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12387
12388         PR target/49168
12389         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12390
12391 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12392
12393         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12394         DW_TAG_rvalue_reference_type even for
12395         -gdwarf-4 -fno-debug-types-section.
12396
12397 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12398
12399         PR tree-optimization/46728
12400         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12401         (build_and_insert_binop): New.
12402         (gimple_expand_builtin_pow): Reorder args for
12403         build_and_insert_call; use build_and_insert_binop; add more
12404         optimizations for fractional exponents.
12405
12406 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
12407
12408         PR bootstrap/49190
12409
12410         Revert:
12411         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12412
12413         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12414         tree_common.
12415         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12416         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12417         TS_BASE instead of TS_COMMON.
12418         * varasm.c (assemble_name): Remove assert.
12419
12420 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
12421
12422         * config.gcc: Keep obselete list sorted.
12423
12424 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12425             Eric Botcazou  <ebotcazou@adacore.com>
12426
12427         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12428         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12429         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12430         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12431         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12432
12433 2011-05-30  Richard Guenther  <rguenther@suse.de>
12434
12435         * gimple.c (gimple_types_compatible_p_1): Compare record
12436         and union type members properly.
12437
12438 2011-05-30  Richard Guenther  <rguenther@suse.de>
12439
12440         PR tree-optimization/49210
12441         * ipa-split.c (split_function): Care for the case where the call
12442         result is not trivially convertible to the result holding variable.
12443
12444 2011-05-30  Richard Guenther  <rguenther@suse.de>
12445
12446         PR tree-optimization/49218
12447         * tree-vrp.c (adjust_range_with_scev): Properly check whether
12448         overflow occured.
12449
12450 2011-05-30  Richard Guenther  <rguenther@suse.de>
12451
12452         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12453         New function split out from ...
12454         (forward_propagate_into_gimple_cond): ... here.  Adjust.
12455         (forward_propagate_into_cond): Likewise.
12456         (forward_propagate_comparison): Also propagate into
12457         comparisons on assignment RHS.  Change return value to
12458         behave similar to forward_propagate_into_cond.
12459         (tree_ssa_forward_propagate_single_use_vars): Handle
12460         strict-overflow warnings properly for forward_propagate_comparison.
12461
12462 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12463
12464         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12465         from plugin linker.
12466         * configure: Regenerate.
12467
12468 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
12469
12470         PR tree-optimization/49199
12471         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12472         non-reduction operands are either defined in the loop or by induction.
12473
12474 2011-05-29  Xinliang David Li  <davidxl@google.com>
12475
12476         * opts-global.c (handle_common_deferred_options): Handle new options.
12477         * passes.c (register_one_dump_file): Call register_pass_name.
12478         (execute_one_pass): Check explicit enable/disable flag.
12479         (passr_hash): New function.
12480         (passr_eq): Ditto.
12481         (register_pass_name): Ditto.
12482         (get_pass_by_name): Ditto.
12483         (pass_hash): Ditto.
12484         (pass_eq): Ditto.
12485         (enable_pass): Ditto.
12486         (disable_pass): Ditto.
12487         (is_pass_explicitly_enabled_or_disabled): Ditto.
12488
12489 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
12490
12491         * config/i386/i386.md (*movoi_internal_avx): Use
12492         standard_sse_constant_opcode for alternative 0.
12493         (*movti_internal_sse): Ditto.
12494         (*movti_internal_rex64): Use standard_sse_constant_opcode for
12495         alternative 2.
12496         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12497         sselog1 type moves.
12498         (*movsi_internal): Ditto.
12499         (*movdi_internal): Ditto.  Add ssecvt type moves.
12500
12501 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
12502
12503         PR target/48830
12504         * rtlanal.c (simplify_subreg_regno): Adjust comment.
12505
12506 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
12507
12508         PR rtl-optimization/49095
12509         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12510         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12511
12512 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12513
12514         PR target/43995
12515         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12516         recurse_p argument.  Only follow register copies if it is set,
12517         and prevent mips_find_pic_call_symbol from recursing.
12518         (mips_find_pic_call_symbol): Add a recurse_p argument.
12519         Pass it to mips_pic_call_symbol_from_set.
12520         (mips_annotate_pic_calls): Update accordingly.
12521
12522 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12523
12524         * emit-rtl.c (try_split): Use a loop to search for
12525         NOTE_INSN_CALL_ARG_LOCATIONs.
12526
12527 2011-05-29  Richard Guenther  <rguenther@suse.de>
12528
12529         PR tree-optimization/49217
12530         * ipa-pure-const.c (propagate_pure_const): Fix typos.
12531
12532 2011-05-28  Jan Hubicka  <jh@suse.cz>
12533
12534         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12535         length.
12536         (string_slot_free): Remove
12537         (create_output_block): Initialize obstack.
12538         (destroy_output_block): Free obstack.
12539         (lto_string_index): Add PERSISTENT parameter; do not duplicate
12540         the string unless it needs to be added into the hash.
12541         (lto_output_string_with_length): Add persistent attribute;
12542         handle NULL strings.
12543         (lto_output_string): Add PERSISTENT parameter.
12544         (output_string_cst, output_identifier): Simplify.
12545         (lto_output_location_bitpack): Update.
12546         (lto_output_builtin_tree): Update.
12547         * lto-streamer.h (struct output_block): Add obstack.
12548         (lto_output_string, lto_output_string_with_length): Remove
12549         declarations; functions are static now.
12550
12551 2011-05-28  Jan Hubicka  <jh@suse.cz>
12552
12553         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12554         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12555         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12556         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12557         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12558         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12559         unpack_ts_decl_with_vis_value_fields,
12560         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12561         lto_get_builtin_tree): Use enum and variable length i/o.
12562         * basic-block.h (profile_status_d): Add PROFILE_LAST.
12563         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12564         New functions.
12565         (bp_pack_enum, bp_unpack_enum): New macros.
12566
12567 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12568
12569         * genrecog.c: Remove redundant forward declarations.
12570
12571 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12572
12573         * config.gcc: Deprecate mips*-*-openbsd*.
12574
12575 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12576
12577         PR bootstrap/49195
12578         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12579         for match_op_dup.
12580
12581 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
12582
12583         PR middle-end/48981
12584         * gengtype.c (vec_prefix_type): New function.
12585         (note_def_vec): Use vec_prefix_type and change the length
12586         attribute to be based on the prefix.
12587         * vec.c: Include coretypes.h before vec.h.
12588         (struct vec_prefix): Remove.
12589         (vec_gc_p_reserve): Change the offsetof to sizeof.
12590         (vec_gc_p_reserve_exact): Likewise.
12591         (vec_heap_p_reserve): Likewise.
12592         (vec_heap_p_reserve_exact): Likewise.
12593         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
12594         (vec_stack_p_reserve): Change the offsetof to sizeof.
12595         (vec_stack_p_reserve_exact): Likewise.
12596         * vec.h (struct vec_prefix): New struct definition.
12597         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
12598         (VEC_T_GTY(T,B)): Likewise.
12599         (DEF_VEC_FUNC_P(T)): Use prefix field.
12600         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
12601         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
12602
12603 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12604
12605         PR tree-optimization/46728
12606         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
12607         (powi_as_mults): Add gimple_set_location.
12608         (build_and_insert_call): New.
12609         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
12610         0.5, 0.25, 0.75, 1./3., or 1./6.
12611
12612 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
12613
12614         * doc/contrib.texi: Update copyright years.
12615         (Contributors): Add Zdenek Sojka.
12616
12617 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
12618
12619         * c-decl.c (c_push_function_context): Copy the current statement
12620         list stack.
12621         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
12622         (finish_struct): Call building_stmt_list_p instead of checking
12623         cur_stmt_list.
12624         * c-parser.c (c_parser_postfix_expression): Likewise.
12625         * c-typeck.c (c_end_compound_stmt): Likewise.
12626         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
12627         * tree-iterator.c (stmt_list_cache): Change to a VEC.
12628         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
12629         (free_stmt_list): Likewise.
12630         * tree.h (struct tree_statement_list): Include typed_tree instead
12631         of tree_common.
12632         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
12633         as TS_TYPED instead of TS_COMMON.
12634
12635 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12636             Uros Bizjak  <ubizjak@gmail.com>
12637
12638         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
12639         (HAVE_AS_IX86_TLSGDPTL): Define.
12640         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
12641         (HAVE_AS_IX86_TLSLDMPLT): Define.
12642         * configure: Regenerate.
12643         * config.in: Regenerate.
12644         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
12645         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12646         TARGET_SUN_TLS, use @tlsgdplt or @plt.
12647         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
12648         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
12649         @tlsldmplt or @plt.
12650         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
12651
12652 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12653
12654         * sched-int.h (struct _haifa_deps_insn_data): New members cond
12655         and reverse_cond.
12656         (INSN_COND, INSN_REVERSE_COND): New macros.
12657         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12658         once.
12659         (sched_get_condition_with_rev): Cache the results, and look them up
12660         if possible.
12661         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12662         are clobbered by the current insn.
12663         * target.def (exposed_pipline): New sched data hook.
12664         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12665         * doc/tm.texi: Regenerate.
12666
12667 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12668
12669         PR tree-optimization/49170
12670         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
12671         sincos or cexp.
12672
12673 2011-05-27  Richard Guenther  <rguenther@suse.de>
12674
12675         PR middle-end/49189
12676         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12677         of comparisons.
12678
12679 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12680
12681         * haifa-sched.c (sched_scan_info): Remove.
12682         (schedule_block): Call sched_extend_luids rather than sched_init_luids
12683         with NULL args.
12684         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12685         Remove functions.
12686         (sched_scan): Remove.
12687         (sched_extend_luids): Renamed from luids_extend_insn and no longer
12688         static.  All callers changed.
12689         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12690         static.  All callers changed.
12691         (sched_init_luids): Remove all arguments except the first.  All
12692         callers changed.  Don't use sched_scan.
12693         (haifa_init_h_i_d): Likewise.
12694         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12695         manually rather than using sched_init_luids.  Likewise with
12696         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12697         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12698         rather than sched_init_luids with NULL args.
12699         * sel-sched-ir.c (new_insns): Remove variable.
12700         (sched_scan): New static function, previously in haifa-sched.c.  Remove
12701         all arguments but the first two; all callers changed.
12702         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12703         rather than sched_init_luids.
12704         (sel_init_bbs): Remove second argument.  All callers changed.
12705         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12706         with NULL arguments.
12707         (create_insn_rtx_from_pattern): Likewise.
12708         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12709         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12710         (sched_init_insn_luid, sched_extend_luids): Declare.
12711         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12712         declarations.
12713
12714 2011-05-27  Richard Guenther  <rguenther@suse.de>
12715
12716         PR middle-end/49177
12717         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12718         A CMP B ? (T) true : (T) false for non-integral types T again.
12719
12720 2011-05-27  Jan Hubicka  <jh@suse.cz>
12721
12722         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12723         so 0 means NULL string.
12724         (lto_output_string_with_length): ... here.
12725         (lto_output_string, output_string_cst, output_identifier): Update
12726         handling of NULL strings.
12727         (lto_output_location_bitpack): New function.
12728         (lto_output_location): Use it.
12729         (lto_output_tree_ref): Use output_record_start.
12730         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12731         len values.
12732         * lto-streamer-in.c (string_for_index): Break out from ...; offset
12733         values by 1.
12734         (input_string_internal): ... here;
12735         (input_string_cst, input_identifier, lto_input_string): Update handling
12736         of NULL strings.
12737         (lto_input_location_bitpack): New function
12738         (lto_input_location): Use it.
12739         (unpack_ts_type_common_value_fields): Pack align & alias in var len
12740         values.
12741         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12742         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12743         (bp_pack_value): Sanity check the value range.
12744         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12745         New functions.
12746         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12747         New functions.
12748
12749 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
12750
12751         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12752         call_arg_location instructions down the floor.
12753
12754 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
12755
12756         PR rtl-optimization/49154
12757         * ira.c (setup_pressure_classes): Process class without sublcasses
12758         as a candidate for pressure classes.
12759
12760 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
12761
12762         PR rtl-optimization/48575
12763         * genrecog.c (position_type): New enum.
12764         (position): New structure.
12765         (decision): Use position structure instead of a string.
12766         (root_pos, peep2_insn_pos_list): New variables.
12767         (next_position, compare_positions): New functions.
12768         (new_decision): Use position structures instead of strings.
12769         (maybe_both_true): Likewise.
12770         (change_state): Likewise.
12771         (write_tree): Likewise.
12772         (make_insn_sequence): Likewise.
12773
12774 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12775
12776         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12777         TS_BASE instead of TS_COMMON.
12778         (find_decls_types_r): Check for TS_TYPED structure before looking at
12779         TREE_TYPE.
12780         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12781         Add chain field.
12782         (BLOCK_CHAIN): Use new chain field.
12783
12784 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
12785
12786         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12787         moves expensive on Power7 also.
12788
12789 2011-05-26  Richard Guenther  <rguenther@suse.de>
12790
12791         * fold-const.c (fold_unary_loc): Remove bogus code.
12792
12793 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12794
12795         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12796         tree_common.
12797         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12798         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12799         TS_BASE instead of TS_COMMON.
12800         * varasm.c (assemble_name): Remove assert.
12801
12802 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12803
12804         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12805         substituted first.
12806         * libgcc-std.ver: Delete file.
12807
12808 2011-05-26  Richard Guenther  <rguenther@suse.de>
12809
12810         PR tree-optimization/48702
12811         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12812         only when we know the base address is within bounds.
12813         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12814         assume the base address of TARGET_MEM_REFs is in bounds.
12815
12816 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12817
12818         PR target/49099
12819         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12820         declaration in TARGET_SOLARIS.
12821
12822 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
12823
12824         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12825         The instruction is then expanded explicitly.
12826         (supported_compare): Callable instruction.
12827         (compare): Likewise.
12828
12829 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12830
12831         PR c++/49165
12832         * gimplify.c (shortcut_cond_r): Don't special case
12833         COND_EXPRs if they have void type on one of their arms.
12834
12835 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12836
12837         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12838         to reduce duplication, and to achieve a slightly more logical order
12839         of operations.
12840
12841 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12842
12843         PR tree-optimization/49161
12844         * tree-vrp.c (struct case_info): New type.
12845         (compare_case_labels): Sort case_info structs instead of
12846         trees, and not primarily by CASE_LABEL uids but by
12847         label_for_block indexes.
12848         (find_switch_asserts): Put case labels into struct case_info
12849         array instead of TREE_VEC, adjust sorting, compare label_for_block
12850         values instead of CASE_LABELs.
12851
12852 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12853
12854         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
12855         ("orndi3_neon"): Likewise.
12856         ("bic<mode>3_neon"): Likewise.
12857
12858 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
12859
12860         PR tree-optimization/49038
12861         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
12862         Ensure at least one epilogue iteration if required by data
12863         accesses with gaps.
12864         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12865         to mark loops that require peeling for gaps.
12866         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
12867         (vect_get_known_peeling_cost): Take peeling for gaps into
12868         account.
12869         (vect_transform_loop): Generate epilogue if required by data
12870         access with gaps.
12871         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
12872         loop as requiring an epilogue if there are gaps in the end of
12873         the strided group.
12874
12875 2011-05-25  Ian Lance Taylor  <iant@google.com>
12876
12877         * godump.c (go_format_type): Output the first field with a usable
12878         Go type, if any.
12879
12880 2011-05-25  Ian Lance Taylor  <iant@google.com>
12881
12882         * godump.c (go_format_type): Check for invalid type names, pointer
12883         target types, and struct field types.
12884
12885 2011-05-25  Jason Merrill  <jason@redhat.com>
12886
12887         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
12888
12889 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
12890
12891         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
12892
12893 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12894
12895         * config/i386/i386.md (*movqi_extv_1)): Put back
12896         "register_operand" check in "type" calculation.
12897         (*movqi_extzv_2): Likewise.
12898
12899 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12900
12901         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
12902
12903 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12904
12905         PR bootstrap/49160
12906         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
12907         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
12908         __divxc3, __divtc3): Wrap definitions in #ifndef.
12909
12910 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12911
12912         PR target/49142
12913         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
12914         "register_operand" check and replace q_regs_operand with
12915         QIreg_operand in "type" calculation.
12916         (*movqi_extv_1): Likewise.
12917         (*movqi_extzv_2_rex64): Likewise.
12918         (*movqi_extzv_2): Likewise.
12919
12920         * config/i386/predicates.md (QIreg_operand): New.
12921
12922 2011-05-25  Richard Guenther  <rguenther@suse.de>
12923
12924         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12925         type-based offset disambiguation, streamline MEM_REF and
12926         TARGET_MEM_REF handling.
12927
12928 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12929
12930         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
12931         (bdesc_special_args): Add pause intrinsic.
12932
12933         * config/i386/i386.md (UNSPEC_PAUSE): New.
12934         (pause): Likewise.
12935         (*pause): Likewise.
12936         * config/i386/ia32intrin.h (__pause): Likewise.
12937
12938         * doc/extend.texi (X86 Built-in Functions): Add documentation for
12939         pause intrinsic.
12940
12941 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12942
12943         PR tree-optimization/46728
12944         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
12945         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
12946
12947 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
12948
12949         * tree.h (struct tree_exp): Inherit from struct tree_typed.
12950         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
12951         instead of TS_COMMON.
12952
12953 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12954
12955         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
12956         LIBGCC2_GNU_PREFIX is defined.
12957         (__N): New macro.
12958         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
12959         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
12960         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
12961         __clz_tab): Define using __N.
12962         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
12963         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
12964         * target.def (libfunc_gnu_prefix): New hook.
12965         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
12966         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
12967         * doc/tm.texi: Regenerate.
12968         * system.h (LIBGCC2_GNU_PREFIX): Poison.
12969         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
12970         account.
12971         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12972         (init_optabs): Likewise for the bswap libfuncs.
12973         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
12974         and divide.
12975         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
12976         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
12977         * libgcc-std.ver: Remove.
12978         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
12979         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
12980         libgcc-std.ver.
12981         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12982         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
12983         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
12984         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
12985         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
12986         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12987         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12988         * config/fixed-bit.h (FIXED_OP): Define differently depending on
12989         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
12990         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
12991
12992 2011-05-25  Jan Hubicka  <jh@suse.cz>
12993
12994         * lto-streamer-out.c (output_record_start): Use lto_output_enum
12995         (lto_output_tree): Use output_record_start.
12996         * lto-streamer-in.c (input_record_start): Use lto_input_enum
12997         (lto_get_pickled_tree): Use input_record_start.
12998         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
12999         (lto_value_range_error): New function.
13000         * lto-streamer.h (lto_value_range_error): Declare.
13001         (lto_output_int_in_range, lto_input_int_in_range): New functions.
13002         (lto_output_enum, lto_input_enum): New macros.
13003
13004 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13005
13006         * common.opt (flag_stack_usage_info): New variable.
13007         (-Wstack-usage): New option.
13008         * doc/invoke.texi (Warning options): Document -Wstack-usage.
13009         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
13010         <OPT_fstack_usage>: Likewise.
13011         * toplev.c (output_stack_usage): Handle -Wstack-usage.
13012         * calls.c (expand_call): Test flag_stack_usage_info variable instead
13013         of flag_stack_usage.
13014         (emit_library_call_value_1): Likewise.
13015         * explow.c (allocate_dynamic_stack_space): Likewise.
13016         * function.c (instantiate_virtual_regs ): Likewise.
13017         (prepare_function_start): Likewise.
13018         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
13019         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
13020         * config/arm/arm.c (arm_expand_prologue): Likewise.
13021         (thumb1_expand_prologue): Likewise.
13022         * config/avr/avr.c (expand_prologue): Likewise.
13023         * config/i386/i386.c (ix86_expand_prologue): Likewise.
13024         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13025         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
13026         * config/mips/mips.c (mips_expand_prologue): Likewise.
13027         * config/pa/pa.c (hppa_expand_prologue): Likewise.
13028         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13029         * config/s390/s390.c (s390_emit_prologue): Likewise.
13030         * config/sh/sh.c (sh_expand_prologue): Likewise.
13031         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13032         * config/spu/spu.c (spu_expand_prologue): Likewise.
13033
13034 2011-05-25  Richard Guenther  <rguenther@suse.de>
13035
13036         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
13037         (gimple_canonical_types_compatible_p): Likewise.
13038
13039 2011-05-25  Jan Hubicka  <jh@suse.cz>
13040
13041         PR middle-end/49062
13042         * ipa.c (function_and_variable_visibility): Only add to same
13043         comdat group list if DECL_ONE_ONLY.
13044
13045 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
13046
13047         PR rtl-optimization/49014
13048         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
13049
13050 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13051
13052         PR target/49128
13053         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13054
13055 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13056
13057         PR rtl-optimization/48757
13058         * ira-build.c (loop_with_eh_edge_p): Rename to
13059         loop_with_complex_edge_p, check edges on complexity, make function
13060         conditional.
13061         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13062         conditional.
13063
13064 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13065
13066         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13067         force flag_ira_share_save_slots to 0.
13068
13069 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13070
13071         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13072         (vt_initialize): Set PROLOGUE_BB unconditionally.
13073         Add block comment about CFA_BASE_RTX machinery.
13074         Reset FP_CFA_OFFSET to -1 on all invalid paths.
13075         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13076
13077 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
13078
13079         PR objc/48187
13080         * c-parser.c (c_parser_objc_class_instance_variables): More robust
13081         parsing of syntax error in ObjC instance variable lists.  In
13082         particular, avoid an infinite loop if there is a stray ']'.
13083         Updated error message.
13084
13085 2011-05-24  Ian Lance Taylor  <iant@google.com>
13086
13087         * godump.c (go_define): Don't accept a string immediately after
13088         another operand.
13089
13090 2011-05-24  Ian Lance Taylor  <iant@google.com>
13091
13092         * godump.c (struct godump_container): Add invalid_hash field.
13093         (go_format_type): Return false if type is found in invalid_hash.
13094         (go_output_typedef): Add invalid type to invalid_hash.
13095         (go_finish): Create and delete invalid_hash.
13096
13097 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13098
13099         PR tree-optimization/46728
13100         * tree-ssa-math-opts.c (powi_table): New.
13101         (powi_lookup_cost): New.
13102         (powi_cost): New.
13103         (powi_as_mults_1): New.
13104         (powi_as_mults): New.
13105         (gimple_expand_builtin_powi): New.
13106         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13107         (gate_cse_sincos): Remove sincos/cexp restriction.
13108
13109 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13110
13111         PR target/3746
13112         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13113         mips-tdump native.
13114         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13115         * mips-tdump.c: Likewise.
13116
13117 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13118
13119         PR target/49128
13120         * config/i386/driver-i386.c (host_detect_local_cpu): Always
13121         add -mno-XXX.  Handle FMA.
13122
13123 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13124
13125         PR rtl-optimization/48633
13126         * ira-build.c (loop_with_eh_edge_p): New function.
13127         (mark_loops_for_removal): Use it.
13128
13129 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13130
13131         PR rtl-optimization/48971
13132         * ira.c (setup_pressure_classes): Don't check register move cost
13133         for classes with one registers.  Don't add pressure class if there
13134         is a pressure class with the same available hard registers.
13135         Check contains_reg_of_mode.  Fix a typo in collecting
13136         temp_hard_regset.  Ignore hard registers not belonging to a class.
13137
13138 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
13139
13140         PR target/49133
13141         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
13142
13143 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13144             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13145
13146         PR gcov-profile/48845
13147         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
13148
13149 2011-05-24  Richard Guenther  <rguenther@suse.de>
13150
13151         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
13152         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
13153         (gimple_types_compatible_p_1): Adjust.
13154         (iterative_hash_canonical_type): Do not bother about complete vs.
13155         incomplete types.
13156         (gimple_canonical_types_compatible_p): Likewise.
13157
13158 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13159
13160         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
13161
13162 2011-05-24  Richard Guenther  <rguenther@suse.de>
13163
13164         PR bootstrap/49078
13165         * gimple.c (gimple_register_canonical_type): Revert
13166         previous change.
13167         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
13168         does not for a tree for the case where it matters.  Cache
13169         pointer-type alias-sets.
13170
13171 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
13172
13173         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
13174         (OBJS): Remove options.o, opts-common.o and prefix.o.
13175         (OBJS-libcommon-target): New.
13176         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
13177         (BACKEND): Include libcommon-target.a.
13178         (MOSTLYCLEANFILES): Include libcommon-target.a.
13179         (libcommon-target.a): New.
13180         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
13181         prefix.o.
13182
13183 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
13184
13185         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
13186         parts of output shared with the driver.
13187         * optc-gen.awk: Don't generate parts of output not shared with the
13188         driver.
13189         * opth-gen.awk: Remove GCC_DRIVER conditionals.
13190         * doc/options.texi (SourcerInclude): Mention options-save.c.
13191         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
13192         (OBJS): Add options-save.o.
13193         (options-save.c, options-save.o): New.
13194         (options.o): Update dependencies.
13195         (gcc-options.o): Remove.
13196         (mostlyclean): Remove options-save.c.
13197
13198 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13199
13200         PR debug/49032
13201         * dbxout.c: Include cgraph.h.
13202         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
13203         and without value expr, return NULL if no varpool node exists for
13204         it or if it is not needed.
13205         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
13206
13207         PR c/49120
13208         * c-decl.c (start_decl): Convert expr to void_type_node.
13209
13210 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
13211
13212         PR rtl-optimization/48826
13213         * emit-rtl.c (try_split): When splitting a call that is followed
13214         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
13215
13216 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13217
13218         * cfgexpand.c (expand_debug_expr): For unused non-addressable
13219         parameters passed in memory prefer using DECL_INCOMING_RTL over
13220         the pseudos it will be copied into.
13221
13222 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13223
13224         PR target/47315
13225         * config/i386/i386.c (ix86_option_override_internal): Save the
13226         initial options after checking vzeroupper.
13227
13228 2011-05-23  David Li  <davidxl@google.com>
13229
13230         PR tree-optimization/48988
13231         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
13232         Initialize has_valid_pred for each pred chain.
13233
13234 2011-05-23  Richard Guenther  <rguenther@suse.de>
13235
13236         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
13237         (iterative_hash_gimple_type): Always hash type names.
13238
13239 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
13240
13241         * c-typeck.c (build_function_call_vec): Tweak call to
13242         check_function_arguments.
13243
13244 2011-05-23  Richard Guenther  <rguenther@suse.de>
13245
13246         PR tree-optimization/49115
13247         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
13248         is not necessarily carried out, do not claim it kills the ref.
13249         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
13250
13251 2011-05-23  Richard Guenther  <rguenther@suse.de>
13252
13253         PR middle-end/15419
13254         * builtins.c (fold_builtin_memory_op): Be less restrictive about
13255         what pointer types we accept for folding.
13256
13257 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13258
13259         * gthr-gnat.c: Remove.
13260         * gthr-gnat.h: Remove.
13261         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
13262         * config/t-freebsd (LIB2ADDEH): Likewise.
13263         * config/t-linux (LIB2ADDEH): Likewise.
13264         * config/t-sol2 (LIB2ADDEH): Likewise.
13265         * config/ia64/t-vms (LIB2ADDEH): Likewise.
13266         * configure.ac (target_thread_file): Remove gnat handling.
13267         * configure: Regenerate.
13268         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
13269
13270 2011-05-23  Tristan Gingold  <gingold@adacore.com>
13271             Eric Botcazou  <ebotcazou@adacore.com>
13272
13273         * gcov.c (create_file_names): If no object directory is specified,
13274         keep the directory of the file.
13275
13276 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13277
13278         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
13279         * configure: Regenerate.
13280
13281 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13282
13283         PR middle-end/48973
13284         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
13285         failed and the comparison has a single bit signed type, use
13286         constm1_rtx instead of const1_rtx for true value.
13287         (do_store_flag): If ops->type is single bit signed type, disable
13288         signel bit test optimization and pass -1 instead of 1 as last
13289         parameter to emit_store_flag_force.
13290
13291 2011-05-23  Tom de Vries  <tom@codesourcery.com>
13292
13293         PR target/45098
13294         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
13295         function.
13296         (infer_loop_bounds_from_undefined): Use new function.
13297
13298 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
13299
13300         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
13301         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
13302         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
13303         and -O0 otherwise.
13304         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
13305
13306 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13307
13308         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
13309         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13310         returns true.
13311
13312 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
13313
13314         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
13315
13316 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13317
13318         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
13319         UNSPEC_MOVE_PIC pattern.
13320
13321 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13322
13323         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
13324         (sparc-*-rtems*): Likewise.
13325         (sparc64-*-elf*): Likewise.
13326         (sparc64-*-rtems*): Likewise.
13327         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
13328         * config/sparc/t-crtin: New file.
13329         * config/sparc/t-sol2 (crti.o): Delete rule.
13330         (crtn.o): Likewise.
13331         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
13332         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13333         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
13334         (ENDFILE_SPEC): Add crtn.o.
13335
13336 2011-05-22  Tom de Vries  <tom@codesourcery.com>
13337
13338         PR middle-end/48689
13339         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
13340         CODE_CONTAINS_STRUCT (TS_COMMON).
13341
13342 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
13343
13344         PR middle-end/49029
13345         * expmed.c (extract_fixed_bit_field): Test whether target can be used
13346         only after deciding which mode to use.
13347
13348 2011-05-22  Tom de Vries  <tom@codesourcery.com>
13349
13350         PR target/45098
13351         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
13352         for call to get_shiftadd_cost.
13353
13354 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
13355
13356         PR target/49104
13357         * config/i386/cpuid.h (bit_MMXEXT): New define.
13358
13359 2011-05-22  Nick Clifton  <nickc@redhat.com>
13360
13361         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
13362         initialisation of non-existant args[2] element.  Use args[] array
13363         not arg[] array to pass arguments to build_function_type_list.
13364
13365 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
13366
13367         PR tree-optimization/49087
13368         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
13369
13370 2011-05-21  Jason Merrill  <jason@redhat.com>
13371
13372         PR c++/49092
13373         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13374         static storage duration.
13375
13376 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13377
13378         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13379         frame pointer.
13380
13381 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13382
13383         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13384         false if there are call-saved registers here...
13385         (sparc_can_use_return_insn_p): ...but here instead.
13386         (save_or_restore_regs): Fix thinko.
13387         (sparc_expand_prologue): Use current_function_is_leaf.
13388         (sparc_frame_pointer_required): Likewise.
13389
13390 2011-05-21  Nick Clifton  <nickc@redhat.com>
13391
13392         PR target/49098
13393         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13394
13395 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13396
13397         * gengtype.c (walk_type): Implemented "atomic" GTY option.
13398         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13399
13400 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
13401
13402         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
13403         * optc-gen.awk: Move common code to opt-read.awk.
13404         * opth-gen.awk: Likewise.
13405         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13406
13407 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
13408
13409         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13410
13411 2011-05-20  Tom de Vries  <tom@codesourcery.com>
13412
13413         PR target/45098
13414         * tree-ssa-loop-ivopts.c: Include expmed.h.
13415         (get_shiftadd_cost): New function.
13416         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
13417
13418 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13419
13420         PR bootstrap/49086
13421         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13422         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13423
13424 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13425
13426         * Makefile.in: Update comment referring to $(OBJS-common).
13427
13428 2011-05-20  Ian Lance Taylor  <iant@google.com>
13429
13430         * godump.c (go_output_typedef): Put enum constants in the macro
13431         hash table to avoid duplicate Go const definitions.
13432
13433 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13434
13435         * Makefile.in (LIBDEPS): Add libcommon.a.
13436         (LIBS): Likewise.
13437         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13438         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13439         pretty-print.o and version.o.
13440         (OBJS-libcommon): New.
13441         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13442         (BACKEND): Add libcommon.a.
13443         (MOSTLYCLEANFILES): Likewise.
13444         (libcommon.a): New.
13445         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13446         (cpp$(exeext)): Likewise.
13447         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13448         pretty-print.o and input.o.
13449         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13450         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13451         (errors.o): Remove.
13452         (mips-tfile): Don't explicitly use version.o.
13453         (mips-tdump): Likewise.
13454         (gcov.o): Depend on $(DIAGNOSTIC_H).
13455         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13456         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13457         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13458         * gcov-dump.c: Include intl.h and diagnostic.h.
13459         (main): Initialize diagnostics.
13460         * gcov.c: Include diagnostic.h.
13461         (fnotice): Remove.
13462         (main): Initialize diagnostics.
13463         * lto-wrapper.c: Include diagnostic.h.
13464         (main): Initialize diagnostics.
13465
13466 2011-05-20  Michael Matz  <matz@suse.de>
13467
13468         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13469
13470 2011-05-20  Michael Matz  <matz@suse.de>
13471             Richard Guenther  <rguenther@suse.de>
13472
13473         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13474         use lto_streamer_cache_append directly instead of returning a VEC.
13475         (preload_common_node): Remove.
13476         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13477         track seen nodes.
13478         (lto_streamer_cache_create): Call lto_preload_common_nodes.
13479
13480 2011-05-20  Richard Guenther  <rguenther@suse.de>
13481
13482         PR tree-optimization/49079
13483         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13484         MEM_REFs correctly for the trailing array access detection.
13485         Special case constants the same way as decls for overall size
13486         constraining.
13487
13488 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
13489
13490         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13491         argument expansion.
13492
13493 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13494
13495         PR tree-optimization/49073
13496         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13497         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13498         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13499
13500 2011-05-20  Richard Guenther  <rguenther@suse.de>
13501
13502         PR middle-end/48849
13503         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13504         of pointer types the same way the middle-end does.
13505
13506 2011-05-20  Richard Guenther  <rguenther@suse.de>
13507
13508         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13509         or pointer-to chains.  Delay all fixup to uniquify_nodes.
13510
13511 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
13512
13513         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13514         (fma4_fmaddsub): Likewise
13515
13516 2011-05-19  Jan Hubicka  <jh@suse.cz>
13517
13518         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13519         (GIMPLE_TYPE_PAIR_SIZE): New macro.
13520         (type_pair_cache): New static var.
13521         (lookup_type_pair): Use fixed sized custom hash; make inline.
13522         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13523         calls of lookup_type_pair.
13524         (print_gimple_types_stats): Remove cache stats.
13525         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13526         and gtc_ob.
13527
13528 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
13529
13530         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13531         when TARGET_RDRND is active.
13532         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13533         Generate dummy SImode target register when target is NULL.
13534
13535 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13536
13537         * config/arm/arm-fpus.def: New.
13538         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13539         arm-fpus.def.
13540         * config/arm/arm-tables.opt: Regenerate.
13541         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13542         (arm_option_override): Don't decode FPU name to string here.
13543         * config/arm/arm.opt (mfpu=): Use Enum.
13544         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13545         Update dependencies.
13546
13547 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13548
13549         * collect2.c: Include diagnostic.h.
13550         (fatal_perror, fatal, error, fancy_abort): Remove.
13551         (main): Set progname.  Call xmalloc_set_program_name and
13552         diagnostic_initialize.
13553         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13554         scan_libraries, resolve_lib_name): Call fatal_error instead of
13555         fatal and fatal_perror.
13556         * collect2.h (error, fatal, fatal_perror): Don't declare.
13557         * tlink.c: Include diagnostic-core.h.
13558         (recompile_files): Call fatal_error instead of fatal_perror.
13559         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13560         pretty-print.o and input.o.
13561         (collect2.o, tlink.o): Update dependencies.
13562
13563 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13564
13565         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13566
13567 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13568
13569         PR target/40483
13570         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13571         COMDAT group syntax, both SPARC and x86 variants.
13572         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13573         * configure: Regenerate.
13574         * config/sol2.h (TARGET_SOLARIS): Define.
13575         (PUSHSECTION_FORMAT): Remove.
13576         (SECTION_NAME_FORMAT): Define.
13577         * config/sol2.c: Include hashtab.h.
13578         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13579         expansion, using SECTION_NAME_FORMAT.
13580         (solaris_comdat_htab): New variable.
13581         (struct comdat_entry): Define.
13582         (comdat_hash): New function.
13583         (comdat_eq): New function.
13584         (solaris_elf_asm_comdat_section): New function.
13585         (solaris_define_comdat_signature): New function.
13586         (solaris_code_end): New function.
13587         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13588         (solaris_code_end): Declare.
13589         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13590         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
13591         solaris_code_end.
13592         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
13593         Remove ATTRIBUTE_UNUSED.
13594         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
13595         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
13596         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
13597         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
13598         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
13599         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
13600         (PUSHSECTION_FORMAT): Remove.
13601         (SECTION_NAME_FORMAT): Redefine.
13602
13603 2011-05-19  Kai Tietz  <ktietz@redhat.com>
13604
13605         * tree-cfg.c (verify_gimple_assign_binary): Barf on
13606         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
13607         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
13608
13609 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
13610             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13611
13612         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
13613
13614 2011-05-19  Richard Guenther  <rguenther@suse.de>
13615
13616         PR middle-end/48985
13617         * tree-object-size.c (addr_object_size): If the pointed-to
13618         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
13619
13620 2011-05-19  Richard Guenther  <rguenther@suse.de>
13621
13622         * gimple.c (gimple_types_compatible_p_1): Compare names of
13623         the types themselves.
13624         (iterative_hash_gimple_type): And hash them that way.
13625         (gimple_register_type_1): If we register a main variant properly
13626         initialize the leader to ourselves.
13627
13628 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13629
13630         PR target/45098
13631         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
13632         get_loop_invariant_expr_id.
13633         (get_loop_invariant_expr_id): Use get_expr_id.
13634         (parm_decl_cost): New function.
13635         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
13636         Improve bound cost estimation.  Use different inv_expr_id for elim and
13637         express cases.
13638
13639 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13640
13641         PR target/45098
13642         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
13643         cost_base.cost == 0.
13644
13645 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13646
13647         PR target/49002
13648         * config/i386/sse.md
13649         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
13650         load cast.
13651
13652 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13653
13654         PR tree-optimization/49039
13655         * tree-vrp.c (extract_range_from_binary_expr): For
13656         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13657         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13658
13659 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13660
13661         PR target/45098
13662         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13663
13664 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
13665
13666         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13667         (*tls_global_dynamic_64): Ditto.
13668         (*tls_local_dynamic_base_32_gnu): Ditto.
13669         (*tls_local_dynamic_base_64): Ditto.
13670         (tls_initial_exec_64_sun): Ditto.
13671
13672 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
13673
13674         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13675         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13676         bf592-none.
13677         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13678         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13679         * config/bfin/bfin.c (bfin_cpus): Add bf592.
13680         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13681         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13682         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13683         * config/bfin/elf.h (LIB_SPEC): Add bf592.
13684
13685 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
13686
13687         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13688         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13689         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13690         target_thread_pointer, arm_structure_size_boundary, struct
13691         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13692         struct abi_name, arm_all_abis): Remove.
13693         (arm_option_override) Don't process most enumerated option values here.
13694         Don't process target_fpe_name here.  Work with integer not string for
13695         structure size boundary; use separate diagnostics for each case.
13696         * config/arm/arm.h (enum float_abi_type, enum
13697         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13698         to arm-opts.h.
13699         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13700         arm_structure_size_boundary): Remove.
13701         * config/arm/arm.opt (mabi=): Use Enum and Init.
13702         (arm_abi_type): New Enum and EnumValue entries.
13703         (mfloat-abi=): Use Enum and Init.
13704         (float_abi_type): New Enum and EnumValue entries.
13705         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13706         (mfp16-format=): Use Enum and Init.
13707         (arm_fp16_format_type): New Enum and EnumValue entries.
13708         (mstructure-size-boundary=): Use UInteger and Init.
13709         (mtp=): Use Enum and Init.
13710         (arm_tp_type): New Enum and EnumValue entries.
13711
13712 2011-05-18  Richard Guenther  <rguenther@suse.de>
13713
13714         PR tree-optimization/49018
13715         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13716         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13717         gimple_has_side_effects.
13718
13719 2011-05-18  Richard Guenther  <rguenther@suse.de>
13720
13721         * gimple.c (gimple_register_type_1): New function, split out from ...
13722         (gimple_register_type): ... here.  Avoid infinite recursion.
13723
13724 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13725
13726         PR tree-optimization/41881
13727         * tree-vectorizer.h (struct _loop_vec_info): Add new field
13728         reduction_chains along with a macro for its access.
13729         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13730         (destroy_loop_vec_info): Free reduction chains.
13731         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13732         (vect_is_slp_reduction): New function.
13733         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13734         (vect_create_epilog_for_reduction): Support SLP reduction chains.
13735         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13736         definition types for reduction chains.
13737         (vect_supported_load_permutation_p): Don't allow permutations for
13738         reduction chains.
13739         (vect_analyze_slp_instance): Support reduction chains.
13740         (vect_analyze_slp): Try to build SLP instance from reduction chains.
13741         (vect_get_constant_vectors):  Handle reduction chains.
13742         (vect_schedule_slp_instance): Mark the first statement of the
13743         reduction chain as reduction.
13744
13745 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13746
13747         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13748         names for group elements access.
13749         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13750         reduction chains as well.  Remove data reference and interleaving
13751         related words from the fields names.
13752         * tree-vect-loop.c (vect_transform_loop): Use new names for group
13753         elements access.
13754         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13755         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13756         vect_update_interleaving_chain, vect_same_range_drs,
13757         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13758         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13759         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13760         vect_analyze_group_access, vect_analyze_data_ref_access,
13761         vect_create_data_ref_ptr, vect_transform_strided_load,
13762         vect_record_strided_load_vectors): Likewise.
13763         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13764         vect_model_load_cost, vectorizable_store, vectorizable_load,
13765         vect_remove_stores, new_stmt_vec_info): Likewise.
13766         * tree-vect-slp.c (vect_build_slp_tree,
13767         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13768
13769 2011-05-18  Richard Guenther  <rguenther@suse.de>
13770
13771         PR middle-end/48989
13772         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13773         operand verification.
13774         (verify_gimple_assign_binary): Likewise.
13775         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13776         to non-1-precision BOOLEAN_TYPEs.
13777
13778 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13779
13780         PR target/45098
13781         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13782
13783 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13784
13785         PR tree-optimization/49000
13786         * tree-ssa.c (execute_update_addresses_taken): Call
13787         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
13788         be rewritten and decl has been marked for renaming, reset
13789         the debug stmt.
13790
13791 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
13792
13793         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13794         enum_opts_set when testing if attributes have set -mfpmath=.
13795
13796 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
13797
13798         * config/mips/mips.c (mips_handle_option): Remove unused variable.
13799
13800 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13801
13802         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13803         info->entry with 0
13804         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
13805         id.transform_lang_insert_block with NULL.
13806
13807 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13808
13809         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13810         (output_fp_compare): Change args 3 and 4 to bool.
13811         (ix86_expand_call): Change arg 6 to bool.
13812         (ix86_attr_length_immediate_default): Change arg 2 to bool.
13813         (ix86_attr_length_vex_default): Change arg 3 to bool.
13814         * config/i386/i386.md: Update all uses.
13815         * config/i386/i386.c: Ditto.
13816         (ix86_flags_dependent): Change return type to bool.
13817
13818 2011-05-17  Richard Guenther  <rguenther@suse.de>
13819
13820         * gimple.c (type_hash_pair_compare): Fix comparison.
13821
13822 2011-05-17  Richard Guenther  <rguenther@suse.de>
13823
13824         * gimple.c (iterative_hash_gimple_type): Simplify singleton
13825         case some more, fix final hash value of the non-singleton case.
13826
13827 2011-05-17  Richard Guenther  <rguenther@suse.de>
13828
13829         PR bootstrap/49013
13830         Revert
13831         2011-05-16  Richard Guenther  <rguenther@suse.de>
13832
13833         * gimple.c (gimple_types_compatible_p_1): Use names of the
13834         type itself, not its main variant.
13835         (iterative_hash_gimple_type): Likewise.
13836
13837 2011-05-17  Richard Guenther  <rguenther@suse.de>
13838
13839         * gimple.c (gimple_register_canonical_type): Use the main-variant
13840         leader for computing the canonical type.
13841
13842 2011-05-17  Nick Clifton  <nickc@redhat.com>
13843
13844         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
13845         moves.
13846
13847         * config/rx/rx.md: Add peephole to remove redundant extensions
13848         after loads.
13849         (bitset_in_memory): Use rx_restricted_mem_operand.
13850         (bitinvert_in_memory): Likewise.
13851         (bitclr_in_memory): Likewise.
13852
13853 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
13854             Nick Clifton  <nickc@redhat.com>
13855
13856         * config/rx/rx.md: Add peepholes to match a register move followed
13857         by a comparison of the moved register.  Replace these with an
13858         addition of zero that does both actions in one instruction.
13859
13860 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
13861
13862         PR target/48986
13863         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
13864         predicate to allow CONST_INT.
13865         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
13866
13867 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13868
13869         * opts-common.c (opt_enum_arg_to_value): New.
13870         * opts.h (opt_enum_arg_to_value): Declare.
13871         * config/i386/i386.opt (fpmath): Remove.
13872         (mfpmath=): Use Enum, Init and Save.
13873         (fpmath_unit): New Enum and EnumValue entries.
13874         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
13875         name for function fpmath state.
13876         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
13877         * config/i386/i386.c: Include diagnostic.h.
13878         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13879         (ix86_target_string): Take enum fpmath_unit value instead of string.
13880         (ix86_debug_options): Update call to ix86_target_string.
13881         (ix86_option_override_internal): Don't process fpmath strings here.
13882         (x86_function_specific_save, ix86_function_specific_restore):
13883         Don't handle fpmath state specially.
13884         (ix86_function_specific_print): Pass fpmath state to
13885         ix86_target_string instead of printing in this function.
13886         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
13887         Handle enum attributes.
13888         (IX86_ATTR_ENUM, ix86_opt_enum): New.
13889         (ix86_valid_target_attribute_tree): Update option_strings
13890         handling.  Handle fpmath as enum option.
13891         (ix86_can_inline_p): Update field names for function fpmath state.
13892         (ix86_expand_builtin): Update call to ix86_target_string.
13893         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
13894         (ix86_fpmath): Remove.
13895         * config/i386/t-i386 (i386.o): Update dependencies.
13896
13897 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13898
13899         PR preprocessor/48677
13900         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
13901         from decoded_options[0], not from itself.
13902
13903 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
13904
13905         * config/i386/constraints.md (z): New constraint.
13906         * config/i386/i386.c (c): New mode attribute.
13907         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
13908         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
13909         constraint for operand 0.
13910         (*call_vzeroupper): Ditto.
13911         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
13912         (*call_rex64_ms_sysv_vzeroupper): Ditto.
13913         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
13914         Use "lzm" constraint for operand 0.
13915         (*call_pop_vzeroupper): Ditto.
13916         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
13917         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
13918         constraint for operand 0.
13919         (*sibcall_vzeroupper): Ditto.
13920         (*sibcall_rex64_ms_sysv): Ditto.
13921         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
13922         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
13923         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
13924         (*sibcall_pop_vzeroupper): Ditto.
13925         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
13926         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
13927         mode iterator.  Use "<c>zm" constraint for operand 1.
13928         (*call_value_vzeroupper): Ditto.
13929         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
13930         for operand 1.
13931         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
13932         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
13933         *call_value_pop_1.  Use "lzm" constraint for operand 1.
13934         (*call_value_pop_vzeroupper): Ditto.
13935         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
13936         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
13937         mode iterator.  Use "Uz" constraint for operand 1.
13938         (*sibcall_value_vzeroupper): Ditto.
13939         (*sibcall_value_rex64_ms_sysv): Ditto.
13940         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
13941         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
13942         constraint for operand 1.
13943         (*sibcall_value_pop_vzeroupper): Ditto.
13944         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
13945         and "z" constraint for operand 2.
13946         (*tls_global_dynamic_32_gnu): Ditto.
13947         (*tls_local_dynamic_base_32_gnu): Ditto.
13948         (*tls_local_dynamic_base_64): Ditto.
13949         (*tls_local_dynamic_32_once): Ditto.
13950         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
13951         Update all callers.
13952         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
13953
13954 2011-05-16  Richard Guenther  <rguenther@suse.de>
13955
13956         * gimple.c (gimple_types_compatible_p_1): Use names of the
13957         type itself, not its main variant.
13958         (iterative_hash_gimple_type): Likewise.
13959
13960 2011-05-16  Richard Guenther  <rguenther@suse.de>
13961
13962         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
13963         always visit pointer target and function result and argument types.
13964
13965 2011-05-16  Jason Merrill  <jason@redhat.com>
13966
13967         PR c++/48999
13968         * tree-inline.c (copy_statement_list): Put back recursion.
13969
13970 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13971
13972         PR target/27663
13973         PR target/41076
13974         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
13975         * config/avr/avr.md ("*ior<mode>qi.byte0",
13976         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
13977
13978 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13979
13980         PR target/45099
13981         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
13982         register is needed for a function argument.
13983
13984 2011-05-16  Richard Guenther  <rguenther@suse.de>
13985
13986         * gimple.c (struct type_hash_pair): New type.
13987         (type_hash_pair_compare): New function.
13988         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
13989
13990 2011-05-16  Revital Eres  <revital.eres@linaro.org>
13991
13992         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
13993
13994 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13995
13996         * config/i386/i386.md (floating point move splitters): Fix
13997         usage of standard_80387_constant_p.
13998         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
13999
14000 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
14001
14002         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
14003
14004 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14005
14006         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
14007         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
14008         (tree_ssa_lim_finalize): Likewise.
14009
14010 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
14011
14012         * config/i386/constraint.md (Yd, Yx): New register constraints.
14013         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
14014         Yd conditional register constraint.
14015         (*movtf_internal): Use standard_sse_constant_opcode.
14016         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
14017         Yx conditional register constraint.
14018         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
14019         Yd conditional register constraint.  Use standard_sse_constant_p to
14020         check for valid SSE constants and call standard_sse_constant_opcode to
14021         output SSE insn.
14022         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
14023         constants and call standard_sse_constant_opcode to output SSE insn.
14024         * config/i386/i386.c (ix86_option_ovverride_internal): Set
14025         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
14026         optimize_size is set.
14027         (standard_sse_constant_opcode): Output conditional AVX insn templates.
14028
14029 2011-05-14  Tobias Burnus  <burnus@net-b.de>
14030
14031         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
14032
14033 2011-05-13  Martin Jambor  <mjambor@suse.cz>
14034
14035         * ipa-prop.c (ipa_cst_from_jfunc): New function.
14036         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
14037         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
14038         (evaluate_conditions_for_ipcp_clone): Removed.
14039         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
14040         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
14041         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14042
14043 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
14044
14045         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
14046         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
14047         lieu of MAY_HAVE_DEBUG_STMTS.
14048         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
14049         debug statements if !MAY_HAVE_DEBUG_STMTS.
14050
14051 2011-05-13  Martin Thuresson  <martint@google.com>
14052
14053         PR gcov-profile/47793
14054         * libgcov.c (gcov_exit): Support relative profile paths.
14055         * doc/invoke.texi (-fprofile-dir): Update for above change.
14056
14057 2011-05-13  Richard Guenther  <rguenther@suse.de>
14058
14059         * gimple.c (gimple_canonical_types_compatible_p): Do not use
14060         type-pair caching, do not compare hashes.
14061
14062 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
14063
14064         PR middle-end/48965
14065         * tree-cfg.c (edge_to_cases_cleanup): Return true.
14066         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14067
14068 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14069
14070         * gimplify.c (gimplify_expr): Make sure operand is boolified.
14071         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14072         compatible type for TRUTH_NOT_EXPR.
14073
14074 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14075
14076         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14077         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
14078         can_create_pseudo_p ().
14079
14080 2011-05-13  Richard Guenther  <rguenther@suse.de>
14081
14082         PR lto/48978
14083         * gimple.c (iterative_hash_gimple_type): Revert change in
14084         pointer target and function result and argument hashing.
14085
14086 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
14087
14088         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14089         (*movxf_internal_nointeger): Ditto.
14090         (*movdf_internal_rex64): Ditto.
14091         (*movdf_internal): Ditto.
14092         (*movdf_internal_nointeger): Ditto.
14093         (*movsf_internal): Ditto.
14094         (sincos splitters): Use can_create_pseudo ().
14095
14096 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
14097
14098         * config/i386/i386-opts.h: New.
14099         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14100         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14101         ix86_section_threshold): Remove.
14102         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
14103         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14104         OPT_mbranch_cost_.
14105         (ix86_option_override_internal): Don't decode strings for options
14106         other than -march=, -mtune= and -mfpmath=.  Don't allow for
14107         __attribute__ uses in remaining diagnostics for options with
14108         string arguments.  Don't check for integer arguments being negative.
14109         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14110         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14111         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14112         ix86_branch_cost, ix86_section_threshold): Remove.
14113         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14114         HeaderInclude.
14115         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14116         but not Var.
14117         (masm=): Use Enum and Init.
14118         (asm_dialect): New Enum and EnumValue entries.
14119         (mbranch-cost=): Use UInteger.
14120         (mlarge-data-threshold=): Use UInteger and Init.
14121         (mcmodel=): Use Enum and Init.
14122         (cmodel): New Enum and EnumValue entries.
14123         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14124         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14125         mregparm=): Use UInteger.
14126         (mstringop-strategy=): Use Enum and Init.
14127         (stringop_alg): New Enum and EnumValue entries.
14128         (mtls-dialect=): Use Enum and Init.
14129         (tls_dialect): New Enum and EnumValue entries.
14130         (mabi=): Use Enum and Init.
14131         (calling_abi): New Enum and EnumValue entries.
14132         (mveclibabi=): Use Enum and Init.
14133         (ix86_veclibabi): New Enum and EnumValue entries.
14134
14135 2011-05-13  Nick Clifton  <nickc@redhat.com>
14136
14137         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14138         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14139
14140 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14141
14142         PR middle-end/48984
14143         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
14144         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
14145         (gimple_boolify): Check for cast for boolean_type_node instead for
14146         BOOLEAN_TYPE.
14147
14148 2011-05-13  Richard Guenther  <rguenther@suse.de>
14149
14150         PR tree-optimization/48172
14151         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
14152         multiplying by number of iterations for equal step.
14153         (vect_create_cond_for_alias_checks): Likewise.
14154
14155 2011-05-13  Andreas Schwab  <schwab@redhat.com>
14156
14157         * configure.ac: Use AS_HELP_STRING throughout.
14158         * configure: Regenerate.
14159
14160 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14161
14162         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
14163         (ix86_emit_restore_regs_using_mov): Likewise.
14164         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14165
14166 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
14167
14168         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
14169         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
14170         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
14171         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14172         RTX_OK_FOR_OLO10_P): ...here.
14173         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
14174         SYMBOLIC_CONST.
14175
14176 2011-05-12  Kai Tietz  <ktietz@redhat.com>
14177
14178         * gimplify.c (gimple_boolify): Re-boolify expression
14179         arguments even if expression type is of kind BOOLEAN_TYPE.
14180         (gimplify_boolean_expr): Removed.
14181         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
14182         and XOR. Additional take care that we keep expression's type.
14183         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
14184         of TRUTH_AND|OR|XOR_EXPR.
14185
14186 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
14187
14188         PR tree-optimization/48975
14189         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
14190         on all bbs here and free and clear ifc_bbs at the end.
14191
14192 2011-05-12  Richard Guenther  <rguenther@suse.de>
14193
14194         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
14195         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
14196         until after simple checks.
14197         (gimple_types_compatible_p): Likewise.
14198         (iterative_hash_gimple_type): Always hash pointer targets
14199         and function return and argument types.
14200         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
14201         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
14202         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
14203         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
14204         completely in the simple compare section.
14205         (gimple_register_canonical_type): Query the cache again after
14206         registering.
14207
14208 2011-05-12  Richard Guenther  <rguenther@suse.de>
14209
14210         PR tree-optimization/48172
14211         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
14212         the number of iterations from the segment size calculation.
14213         (vect_create_cond_for_alias_checks): Adjust.
14214
14215 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
14216
14217         PR debug/48967
14218         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
14219         if validate_subreg fails.
14220
14221 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
14222
14223         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
14224         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
14225         early.
14226
14227 2011-05-12  DJ Delorie  <dj@redhat.com>
14228
14229         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
14230         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
14231         created builtin into rx_builtins array.
14232         (rx_builtin_decl): New function.
14233         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
14234
14235 2011-05-12  DJ Delorie  <dj@redhat.com>
14236             Nick Clifton  <nickc@redhat.com>
14237
14238         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
14239         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
14240         (rx_is_legitimate_address): Add pre-decrement and post-increment
14241         addressing in HImode and QImode.  Fix test for out of range
14242         REG+INT addressing.
14243         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
14244         (rx_align_for_label): Test label before extracting its usage count.
14245         (rx_adjust_insn_lengths): Fix selection of insn codes.
14246         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
14247
14248 2011-05-11  Jason Merrill  <jason@redhat.com>
14249
14250         * tree.c (type_hash_canon): Use struct tree_type_non_common.
14251
14252 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
14253
14254         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
14255         reindent the subsequent block.
14256
14257 2011-05-11  Satoru Takabayashi  <satorux@google.com>
14258             Paul Pluzhnikov  <ppluzhnikov@google.com>
14259
14260         * doc/install.texi (Configuration): Document --with-linker-hash-style.
14261         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
14262         * config.in: Add LINKER_HASH_STYLE.
14263         * configure.ac: Add --with-linker-hash-style.
14264         * configure: Regenerate.
14265
14266 2011-05-11  Richard Guenther  <rguenther@suse.de>
14267
14268         PR middle-end/48964
14269         * gimple.c (iterative_hash_canonical_type): Fix typo.
14270
14271 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
14272
14273         * config/i386/i386.c (legitimize_tls_address)
14274         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14275         expanders directly for TARGET_GNU2_TLS.  Determine pic and
14276         __tls_get_addr symbol reference here.  Update call to
14277         gen_tls_global_dynamic_{32,64} for added arguments.
14278         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14279         expanders directly for TARGET_GNU2_TLS.  Determine
14280         __tls_get_addr symbol reference here.  Update call to
14281         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
14282         unique UNSPEC REG_EQUIV to libcall block.
14283         (ix86_tls_get_addr): Declare static.
14284         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
14285         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
14286         Do not determine pic and __tls_get_addr symbol reference here. Do not
14287         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
14288         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
14289         (tls_global_dynamic_64): Add operand 2.  Do not determine
14290         __tls_get_addr symbol reference here.  Do not call
14291         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
14292         (tls_local_dynamic_base64): Ditto for operand 1.
14293
14294 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
14295
14296         * function.c (expand_function_start): Initialize stack_check_probe_note
14297         only if the generic stack checking mechanism is used.
14298
14299 2011-05-11  Richard Guenther  <rguenther@suse.de>
14300
14301         PR tree-optimization/15256
14302         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
14303         (A & B) | C, combine (A op CST1) op CST2.
14304         (tree_ssa_forward_propagate_single_use_vars): Only bother to
14305         visit assigns that have uses.
14306
14307 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
14308
14309         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
14310         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
14311         (unpack_ts_type_common_value_fields): ...this.  Update comment.
14312         (unpack_value_fields): Adjust for renaming.
14313         (lto_input_ts_type_tree_pointers): Split into...
14314         (lto_input_ts_type_common_tree_pointer): ...this and...
14315         (lto_input_ts_type_non_common_tree_pointers): ...this.
14316         (lto_input_tree_pointers): Adjust for above split.
14317         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
14318         (pack_ts_type_common_value_fields): ...this.  Update comment.
14319         (lto_output_ts_type_tree_pointers): Split into...
14320         (lto_output_ts_type_common_tree_pointers): ...this and...
14321         (lto_output_ts_type_non_common_tree_pointers): ...this.
14322         (lto_output_tree_pointers): Adjust for above split.
14323         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
14324         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
14325         * stor-layout.c (vector_type_mode): Adjust location of mode field.
14326         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
14327         Define.
14328         (struct tree_type): Split into...
14329         (struct tree_type_common: ...this and...
14330         (struct tree_type_with_lang_specific): ...this and...
14331         (struct tree_type_non_common): ...this.  Adjust accessor macros
14332         accordingly.
14333         (TYPE_VALUES_RAW): Define.
14334         (union tree_node): Update for above changes.
14335         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
14336         TS_TYPE_NON_COMMON.
14337         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
14338         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
14339         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
14340         * treestructu.def (TS_TYPE): Remove.
14341         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
14342         Define.
14343
14344 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
14345
14346         PR debug/48159
14347         * tree-ssa.c (reset_debug_uses): New function.
14348         * tree-flow.h (reset_debug_uses): New prototype.
14349         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
14350         * tree-loop-distribution.c (generate_loops_for_partition): Call
14351         reset_debug_uses on the stmts that will be removed.  Keep around
14352         all debug stmts, don't count them as bits in partition bitmap.
14353         (generate_builtin): Don't count debug stmts or labels as bits in
14354         partition bitmap.
14355
14356 2011-05-11  Richard Guenther  <rguenther@suse.de>
14357
14358         * gimple.c (gimple_type_hash_1): Merge with ...
14359         (gimple_type_hash): ... this.
14360         (gtc_visit): Remove mode parameter and simplify accordingly.
14361         (gimple_types_compatible_p_1): Likewise.
14362         (gimple_types_compatible_p): Likewise.
14363         (iterative_hash_gimple_type): Likewise.
14364         (visit): Likewise.
14365         (gimple_type_eq): Adjust.
14366
14367 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14368
14369         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14370         enters the branch create an anti edge in the opposite direction
14371         to prevent the creation of reg-moves.
14372         * modulo-sched.c: Adjust comment to reflect the fact we are
14373         scheduling closing branch.
14374         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14375         (stage_count): New field in struct partial_schedule.
14376         (calculate_stage_count): New function.
14377         (normalize_sched_times): Rename to reset_sched_times and handle
14378         incrementing the sched time of the nodes by a constant value
14379         passed as parameter.
14380         (duplicate_insns_of_cycles): Skip closing branch.
14381         (sms_schedule_by_order): Schedule closing branch.
14382         (ps_insn_find_column): Handle closing branch.
14383         (sms_schedule): Call reset_sched_times and adjust the code to
14384         support scheduling of the closing branch.
14385         (ps_insert_empty_row): Update calls to normalize_sched_times
14386         and rotate_partial_schedule functions.
14387
14388 2011-05-11  Richard Guenther  <rguenther@suse.de>
14389
14390         PR middle-end/48953
14391         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14392
14393 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
14394
14395         * opts.c (finish_options): Move warning settings from process_options.
14396         * toplev.c (process_options): Move warning settings to finish_options.
14397
14398 2011-05-11  Richard Guenther  <rguenther@suse.de>
14399
14400         PR tree-optimization/18041
14401         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14402         (simplify_bitwise_binary): ... this.  Handle operand conversions
14403         by applying them to the result instead.
14404         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
14405
14406 2011-05-11  Richard Guenther  <rguenther@suse.de>
14407
14408         * gimple.c (gimple_canonical_types_compatible_p): Split out
14409         from gimple_types_compatible_p and friends.  Do not recurse
14410         to pointed-to types.
14411         (gimple_canonical_type_eq): Use it.
14412         (iterative_hash_canonical_type): Split out from
14413         iterative_hash_gimple_type and friends.  Do not recurse
14414         to pointed-to types.
14415         (gimple_canonical_type_hash): Use it, allocate the hash here.
14416
14417 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14418
14419         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14420         recognizing doloop.
14421
14422 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14423
14424         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14425         instead of PREV_INSN.
14426
14427 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14428
14429         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14430         * loop-doloop.c (doloop_condition_get): Likewise.
14431         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14432         (doloop_end): New.
14433         * config/arm/arm.md (*addsi3_compare0): Remove "*".
14434
14435 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
14436
14437         * tree.def (CASE_LABEL_EXPR): Add an operand.
14438         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14439
14440 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14441
14442         * c-decl.c (c_override_global_bindings_to_false): Remove.
14443         (global_bindings_p): Don't check
14444         c_override_global_bindings_to_false.
14445         * c-tree.h (c_override_global_bindings_to_false): Remove.
14446         * c-typeck.c (composite_type): Don't set
14447         c_override_global_bindings_to_false.
14448
14449 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
14450
14451         PR target/48857, 48495
14452         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14453         (VSX_MODE): Ditto.
14454         (VSX_MOVE_MODE): Ditto.
14455         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14456         VSX vector types.  Add V2DImode.
14457         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14458         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14459         (MODES_TIEABLE_P): Ditto.
14460
14461         * config/rs6000/rs6000.c (rs6000_emit_move): Use
14462         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14463         VSX_VECTOR_MODE.
14464         (init_cumulative_args): Ditto.
14465         (rs6000_function_arg_boundary): Ditto.
14466         (rs6000_function_arg_advance_1): Ditto.
14467         (rs6000_function_arg): Ditto.
14468         (rs6000_function_ok_for_sibcall): Ditto.
14469         (emit_frame_save): Ditto.
14470         (rs6000_function_value): Ditto.
14471         (rs6000_libcall_value): Ditto.
14472
14473 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14474
14475         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14476         i386/darwin-lib.h to $libgcc_tm_file.
14477         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14478
14479 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14480
14481         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14482
14483 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14484
14485         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14486         * config/rs6000/rs6000-tables.opt: New file (generated).
14487         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14488         rs6000/rs6000-tables.opt to extra_options.
14489         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14490         * config/rs6000/rs6000.c (rs6000_select): Remove.
14491         (processor_target_table): Move contents to rs6000-cpus.def.
14492         (darwin_rs6000_override_options): Check
14493         global_options_set.x_rs6000_cpu_index instead of
14494         rs6000_select[1].string.
14495         (rs6000_option_override_internal): Likewise.
14496         (rs6000_handle_option): Don't assert that global structures are in
14497         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
14498         (rs6000_default_cpu): New variable.
14499         (rs6000_file_start): Set it instead of local default_cpu.  Check
14500         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14501         global_options_set.x_rs6000_tune_index instead of rs6000_select.
14502         (rs6000_darwin_file_start): Check rs6000_default_cpu and
14503         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14504         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14505         rs6000_select): Remove.
14506         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14507         Remove.
14508         (mcpu=, mtune=): Use Var, Init, Enum and Save.
14509         * config/rs6000/t-rs6000
14510         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14511         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14512         global_options_set.x_rs6000_cpu_index instead of
14513         rs6000_select[1].string.
14514         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14515         global_options_set.x_rs6000_cpu_index instead of
14516         rs6000_select[1].string.
14517
14518 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14519
14520         * config.gcc (libgcc_tm_file): Define instead of including files
14521         from ../../libgcc/config/ in tm_file.
14522         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14523         * configure: Regenerate.
14524         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14525         libgcc_tm.h, cs-libgcc_tm.h): New.
14526         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14527         (clean): Remove libgcc_tm.h.
14528         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14529         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14530         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14531
14532 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
14533
14534         PR target/48896
14535         * config/avr/avr.c (avr_ret_register): Return unsigned int
14536         instead of int.
14537         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14538         it to avr_libcall_value.
14539         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14540         expand_expr.
14541         (avr_expand_binop_builtin): Ditto.
14542         (avr_expand_unop_builtin): Ditto.
14543
14544 2011-05-10  DJ Delorie  <dj@redhat.com>
14545
14546         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14547         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14548         * config/rx/rx.c (rx_align_for_label): Add label and
14549         uses_threshold parameters.  Do not align when the label is not
14550         used enough.
14551         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14552
14553 2011-05-10  Richard Guenther  <rguenther@suse.de>
14554
14555         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14556         a series of conversions and apply foldings similar to what
14557         fold-const does.
14558         (tree_ssa_forward_propagate_single_use_vars): Call it.
14559
14560 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
14561
14562         PR tree-optimization/48611
14563         PR tree-optimization/48794
14564         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14565         referenced from RESX or EH_DISPATCH arguments.
14566
14567         PR debug/48928
14568         * dfp.c (decimal_to_decnumber): Handle conversion from
14569         dconst{1,2,m1,half}.
14570
14571 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14572
14573         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14574         for !flag_prefer_avx128.
14575         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14576
14577 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14578
14579         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14580         (fold_ternary_loc): Use expr_location_or.
14581
14582 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14583
14584         PR debug/48853
14585         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14586         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14587         Pmode and mem_mode is not VOIDmode.
14588
14589 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
14590
14591         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
14592         TYPE_QUAL_RESTRICT): Convert to enum.
14593
14594 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14595
14596         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
14597         (const_pow2_1_to_8_operand): Ditto.
14598         (const_pow2_1_to_128_operand): Ditto.
14599         (const_pow2_1_to_32768_operand): Ditto.
14600         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
14601         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
14602         in insn constraint to check integer value of operand 3.
14603         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
14604
14605         (PINSR_MODE): New mode iterator.
14606         (sse2p4_1): New mode attribute.
14607         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
14608         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
14609         iterator.  Use const_int_operand instead of
14610         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
14611         exact_log2 in insn constraint to check integer value of operand 3.
14612
14613 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14614
14615         * config/i386/sse.md (blendbits): Remove mode attribute.
14616         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14617         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14618         Check integer value of operand 3 in insn constraint.
14619
14620 2011-05-09  Richard Guenther  <rguenther@suse.de>
14621
14622         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
14623         for diagnostics.
14624         (lto_symtab_merge): Likewise.  Do not register types here.
14625         (lto_symtab_merge_decls_2): Likewise.
14626         (lto_symtab_merge_decls_1): Likewise.
14627         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
14628         * gimple.c (enum gtc_mode): Declare.
14629         (gimple_types_compatible_p): Make static.
14630
14631 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14632
14633         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
14634         temporary register to match Pmode.
14635
14636 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14637
14638         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
14639         and *vec_concatv4si_1_avx.
14640
14641 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14642
14643         PR rtl-optimization/48927
14644         * ira-conflicts.c (commutative_constraint_p): Use
14645         recog_data.alternative_enabled_p to disable alternatives where
14646         "enabled" attribute is false.
14647         (get_dup_num): Ditto.
14648         * ira-lives.c (single_reg_class): Ditto.
14649         (ira_implicitly_set_insn_hard_regs): Ditto.
14650
14651 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14652
14653         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14654         (dataflow_set_preserve_mem_locs): Likewise.
14655
14656 2011-05-09  Philipp Thomas  <pth@suse.de>
14657
14658         * config/mep/mep.c (mep_validate_vliw): Syntax description
14659         should not be translated.
14660
14661 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
14662
14663         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14664         * config/mips/mips-tables.opt: New file (generated).
14665         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14666         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14667         MIPS_ARCH_OPTION_NATIVE): Define.
14668         * config/mips/mips.c (mips_cpu_info_table): Move contents to
14669         mips-cpus.def.
14670         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14671         mips_parse_cpu): Remove.
14672         (mips_cpu_info_from_opt, mips_default_arch): New.
14673         (mips_handle_option): Don't assert that global structures are in
14674         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14675         (mips_option_override): Use new variables and functions to set
14676         state of these options.  Use strcmp to check for individual CPU names.
14677         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14678         definition.
14679         * config/mips/mips.opt (march=): Use ToLower and Enum.
14680         (mips): Use ToLower, Enum and Var.
14681         (mtune=): Use ToLower and Enum.
14682         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14683
14684 2011-05-08  Jan Hubicka  <jh@suse.cz>
14685
14686         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14687         Arrange type pairs to be UID ordered.
14688         (gimple_lookup_type_leader): Make inline.
14689
14690 2011-05-09  Nick Clifton  <nickc@redhat.com>
14691
14692         PR target/48899
14693         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14694         PROCESSOR_DEFAULT.
14695
14696         PR target/48897
14697         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14698         variable 's'.
14699
14700 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
14701
14702         * combine.c (simplify_comparison): Abstract out parts into...
14703         (simplify_compare_const): ... new function.
14704         (try_combine): Generalize parallel arithmetic/compare combining
14705         to call simplify_compare_const() and CANONICALIZE_COMPARE().
14706
14707 2011-05-08  Jan Hubicka  <jh@suse.cz>
14708
14709         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14710         (cgraph_create_virtual_clone): Call hooks once virtual clone
14711         is finished.
14712         * cgraph.h (cgraph_clone_node): Update prototype.
14713         * ipa-cp.c (ipcp_estimate_growth): Use
14714         estimate_ipcp_clone_size_and_time.
14715         * ipa-inline-transform.c (clone_inlined_nodes): Update.
14716         * lto-cgraph.c (input_node): Update.
14717         * ipa-inline.c (recursive_inlining): Update.
14718         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14719         (evaluate_conditions_for_known_args): Break out from ...
14720         (evaluate_conditions_for_edge): ... here.
14721         (evaluate_conditions_for_ipcp_clone): New function.
14722         (inline_node_duplication_hook): Update clone summary based
14723         on parameter map.
14724         (estimate_callee_size_and_time): Rename to ...
14725         (estimate_node_size_and_time): take NODE instead of EDGE;
14726         take POSSIBLE_TRUTHS as argument.
14727         (estimate_callee_size_and_time): Update.
14728         (estimate_ipcp_clone_size_and_time): New function.
14729         (do_estimate_edge_time): Update.
14730
14731 2011-05-08  Richard Guenther  <rguenther@suse.de>
14732
14733         PR middle-end/48908
14734         PR middle-end/48905
14735         * expmed.c (expand_shift_1): Compute adjusted constant shift
14736         amount manually.
14737
14738 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14739
14740         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14741
14742 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14743
14744         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14745
14746 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
14747
14748         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14749
14750 2011-05-07  Jan Hubicka  <jh@suse.cz>
14751
14752         * ipa-inline-transform.c (inline_call): Account when program size
14753         decreases.
14754         * ipa-inline.c (relative_time_benefit): New function.
14755         (edge_badness): Reorganize to be power 2 based; fix thinko when
14756         computing badness for negative growth; update comments to match
14757         reality; better dumps.
14758
14759 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14760
14761         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14762         type to bool and adjust comment.
14763         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14764         (fold_mathfn_compare): Remove calls to global_bindings_p.
14765         (fold_inf_compare): Likewise.
14766         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14767         * c-tree.h (global_bindings_p): Adjust prototype.
14768         * c-decl.c (global_bindings_p): Return bool and simplify.
14769
14770 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
14771
14772         PR tree-optimization/48837
14773         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14774         when accumulator transformation is performed.
14775
14776 2011-05-06  Jan Hubicka  <jh@suse.cz>
14777
14778         * i386.h (ix86_tune_indices): Add
14779         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14780         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14781         * i386.c (initial_ix86_tune_features): Add
14782         X86_SOFTARE_PREFETCHING_BENEFICIAL.
14783         (software_prefetching_beneficial_p): Remove predicate.
14784         (ix86_option_override_internal): Use new macro.
14785
14786 2011-05-06  Jan Hubicka  <jh@suse.cz>
14787
14788         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14789
14790 2011-05-06  Jan Hubicka  <jh@suse.cz>
14791
14792         * cgraph.c (cgraph_add_thunk): Create real function node instead
14793         of alias node; finalize it and mark needed/reachale; arrange visibility
14794         to be right and add it into the corresponding same comdat group list.
14795         (dump_cgraph_node): Dump thunks.
14796         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14797         cgraph_function_with_gimple_body_p,
14798         cgraph_first_function_with_gimple_body,
14799         cgraph_next_function_with_gimple_body): New functions.
14800         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14801         New macros.
14802         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14803         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14804         * cgraphunit.c (cgraph_finalize_function): Only look into possible
14805         devirtualization when optimizing.
14806         (verify_cgraph_node): Verify thunks.
14807         (cgraph_analyze_function): Analyze thunks.
14808         (cgraph_mark_functions_to_output): Output thunks only in combination
14809         with function they are assigned to.
14810         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14811         alias into normal node.
14812         (assemble_thunks): New functoin.
14813         (cgraph_expand_function): Use it.
14814         * lto-cgraph.c (lto_output_node): Stream thunks.
14815         (input_overwrite_node): Stream in thunks.
14816         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14817         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14818         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14819         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14820         (inline_analyze_function): Do not care about thunk jump functions.
14821         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14822         * ipa-prop.c (ipa_prop_write_jump_functions): Use
14823         cgraph_function_with_gimple_body_p.
14824         * passes.c (do_per_function_toporder): Use
14825         cgraph_function_with_gimple_body_p.
14826         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14827         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14828         (function_called_by_processed_nodes_p): Likewise.
14829
14830 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14831
14832         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14833         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14834         entries.
14835         (mabi=): Replace with separate entries for mabi=altivec,
14836         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14837         mabi=ieeelongdouble and mabi=ibmlongdouble.
14838         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14839         check for -mabi=spe without SPE ABI support here.
14840         (rs6000_handle_option): Replace OPT_mabi_ handling with
14841         OPT_mabi_altivec and OPT_mabi_spe handling.
14842
14843 2011-05-06  Cary Coutant  <ccoutant@google.com>
14844
14845         * dwarf2out.c (contains_subprogram_definition): New function.
14846         (should_move_die_to_comdat): Call it.
14847
14848 2011-05-06  Jeff Law  <law@redhat.com>
14849
14850         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
14851         remove_ctrl_stmt_and_useless_edges.
14852         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
14853         (fixup_template_block, thread_single_edge): Likewise.
14854         (mark_threaded_blocks): Use THREAD_TARGET.
14855
14856 2011-05-06  Alan Modra  <amodra@gmail.com>
14857
14858         PR target/48900
14859         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14860         const0_rtx as the arg to the dummy __tls_get_addr libcall.
14861
14862 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14863
14864         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
14865         constraint modifier to "r".
14866
14867 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14868
14869         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
14870         fall through for OPT_mcmodel_.
14871
14872 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14873
14874         * config/s390/s390.c (s390_asm_trampoline_template): Comment
14875         instruction sizes.
14876         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
14877
14878 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14879
14880         PR target/47930
14881         * config/arm/arm.opt (marm): Document it.
14882         (mthumb): Reject negative variant.
14883
14884 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14885
14886         PR target/48898
14887         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14888         Fix typo in "ccvt" variable name.
14889
14890 2011-05-06  Tristan Gingold  <gingold@adacore.com>
14891
14892         PR target/48895
14893         * config/vms/vms-ar.c (main): Remove cwd variable.
14894
14895 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
14896
14897         PR debug/48902
14898         * var-tracking.c (prepare_call_arguments): Move else before #endif.
14899
14900 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
14901
14902         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14903         * gimplify.c (gimplify_switch_expr): Likewise.
14904         * omp-low.c (expand_omp_sections): Likewise.
14905         * tree-eh.c (lower_try_finally_switch): Likewise.
14906         (lower_eh_dispatch): Likewise.
14907         * tree.h (build_case_label): Declare.
14908         * tree.c (build_case_label): Define.
14909
14910 2011-05-05  Jason Merrill  <jason@redhat.com>
14911
14912         PR c++/40975
14913         * tree-inline.c (copy_tree_r): Use copy_statement_list.
14914         (copy_statement_list): Don't recurse.
14915         * stor-layout.c (copy_self_referential_tree_r): Don't allow
14916         STATEMENT_LIST.
14917
14918 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14919
14920         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
14921         through from -mfpu= handling.
14922         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
14923
14924 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
14925
14926         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
14927         POST_MODIFY.
14928
14929 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
14930
14931         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
14932         for 11.31.
14933         (hppa[12]*-*-hpux11*): Ditto.
14934         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
14935         * config/ia64/hpux-unix2003.h: New.
14936         * config/pa/pa-hpux1131.opt: New.
14937         * config/pa/pa-hpux1131.h: New.
14938         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
14939         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
14940         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14941
14942 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14943
14944         PR debug/48853
14945         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
14946         instead of mode as 3rd argument to recursive call.
14947         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
14948         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
14949         VOIDmode.
14950         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
14951         don't give up if mode is Pmode and mem_mode is not VOIDmode.
14952         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
14953         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
14954
14955 2011-05-05  Julian Brown  <julian@codesourcery.com>
14956
14957         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
14958         parenthesis in D-register case.
14959
14960 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14961
14962         * opt-functions.awk (var_type_struct): Handle Enum options.
14963         * optc-gen.awk: Don't check range of variables of character type.
14964         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
14965         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
14966         rs6000_sdata_name, rs6000_explicit_options): Remove.
14967         (rs6000_option_override_internal): Check for -malign-power here.
14968         Use global_options_set instead of rs6000_explicit_options.
14969         (rs6000_parse_fpu_option): Remove.
14970         (rs6000_handle_option): Access variables via opts and opts_set
14971         pointers.  Use error_at and warning_at.  Add fall-through
14972         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
14973         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
14974         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
14975         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
14976         here.  Don't use rs6000_parse_fpu_option.
14977         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
14978         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
14979         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
14980         (mrecip=): Use Var.
14981         (mspe): Use Var and Save.
14982         (mtraceback=): Use Enum and Var.
14983         (rs6000_traceback_type): New Enum and EnumValue entries.
14984         (mfloat-gprs=): Use Enum, Var and Save.
14985         (rs6000_float_gprs): New Enum and EnumValue entries.
14986         (mlong-double-): use Var and Save.
14987         (msched-costly-dep=, minsert-sched-nops=): Use Var.
14988         (malign-): Use Enum and Var.
14989         (rs6000_alignment_flags): New Enum and EnumValue entries.
14990         (mfpu=): Use Enum.
14991         (fpu_type_t): New Enum and EnumValue entries.
14992         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14993         global_options_set instead of rs6000_explicit_options.
14994         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14995         global_options_set instead of rs6000_explicit_options.
14996         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14997         global_options_set instead of rs6000_explicit_options.
14998         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14999         global_options_set instead of rs6000_explicit_options.
15000         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
15001         global_options_set instead of rs6000_explicit_options.
15002         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15003         global_options_set instead of rs6000_explicit_options.
15004         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
15005         definition.
15006         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15007         global_options_set instead of rs6000_explicit_options.
15008         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
15009         (rs6000_cmodel): New Enum and EnumValue entries.
15010         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15011         global_options_set instead of rs6000_explicit_options.
15012         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
15013         (mtls-size=): Use Enum and Var.
15014         (rs6000_tls_size): New Enum and EnumValue entries.
15015
15016 2011-05-05  Michael Matz  <matz@suse.de>
15017
15018         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
15019         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
15020         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
15021         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
15022         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
15023         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
15024         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
15025         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
15026         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
15027         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
15028         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
15029         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
15030         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
15031         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
15032         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
15033         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
15034
15035 2011-05-05  Richard Guenther  <rguenther@suse.de>
15036
15037         * expmed.c (expand_variable_shift): Rename to ...
15038         (expand_shift_1): ... this.  Take an expanded shift amount.
15039         For rotates recurse directly not building trees for the shift amount.
15040         (expand_variable_shift): Wrap around expand_shift_1.
15041         (expand_shift): Adjust.
15042
15043 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
15044
15045         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
15046
15047 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15048
15049         * tree.h (get_pending_sizes): Remove prototype.
15050         (put_pending_size): Likewise.
15051         (put_pending_sizes): Likewise.
15052         * stor-layout.c (pending_sizes): Delete.
15053         (get_pending_sizes): Likewise.
15054         (put_pending_size): Likewise.
15055         (put_pending_sizes): Likewise.
15056         (variable_size): Do not call put_pending_size and tidy up.
15057         * function.h (struct function): Remove dont_save_pending_sizes_p.
15058         * lto-streamer-in.c (input_function): Do not stream it.
15059         * lto-streamer-out.c (output_function): Likewise.
15060         * tree-inline.c (initialize_cfun): Do not copy it.
15061         * c-decl.c (store_parm_decls): Do not set it.
15062         * omp-low.c (create_task_copyfn): Likewise.
15063         * tree-optimize.c (tree_rest_of_compilation): Likewise.
15064
15065 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
15066
15067         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15068         conditions.
15069         (*movdf_internal): Ditto.
15070         (*movdf_internal_nointeger): Ditto.
15071         (*movsf_internal): Ditto.
15072
15073 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
15074
15075         * c-decl.c (finish_decl): Don't call get_pending_sizes.
15076         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
15077         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
15078         (c_variable_size): Remove.
15079         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
15080         call put_pending_sizes.
15081         (get_parm_info): Add parameter expr.  Use it to set
15082         arg_info->pending_sizes.
15083         (store_parm_decls): Use arg_info->pending_sizes instead or calling
15084         get_pending_sizes.
15085         * c-parser.c (c_parser_parms_declarator): Update call to
15086         c_parser_parms_list_declarator.
15087         (c_parser_parms_list_declarator): Take parameter expr.  Update
15088         call to push_parm_decl.  Update recursive call.  Don't call
15089         get_pending_sizes.  Update calls to get_parm_info.
15090         (c_parser_objc_method_definition): Update calls to
15091         c_parser_objc_method_decl and objc_start_method_definition.
15092         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15093         (c_parser_objc_method_decl): Add parameter expr.  Update call to
15094         grokparm.
15095         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15096         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15097         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15098
15099 2011-05-05  Michael Hope  <michael.hope@linaro.org>
15100
15101         PR pch/45979
15102         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15103         __ARM_EABI__ hosts.
15104
15105 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15106
15107         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15108         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15109         (spu_output_mi_thunk): New function.
15110
15111 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15112
15113         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15114         targetm.asm_out.print_operand.
15115         * config/sol2.c: Include target.h.
15116
15117 2011-05-04  Jan Hubicka  <jh@suse.cz>
15118
15119         * ipa-inline.c (reset_edge_caches): New function.
15120         (update_caller_keys): Add check_inlinablity_for; do not
15121         reset edge caches; remove now unnecesary loop.
15122         (update_callee_keys): Add comments; reset node_growth_cache of callee.
15123         (update_all_callee_keys): Likewise.
15124         (inline_small_functions): Sanity check cache; update code
15125         recomputing it.
15126
15127 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
15128
15129         PR rtl-optimization/47612
15130         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15131         as the last insn of the sequence to be moved.
15132
15133 2011-05-04  Tobias Burnus  <burnus@net-b.de>
15134
15135         PR fortran/48864
15136         * doc/invoke.texi (Ofast): Document that it
15137         enables Fortran's -fno-protect-parens.
15138
15139 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
15140
15141         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
15142
15143 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15144
15145         * stor-layout.c (variable_size): Do not issue errors.
15146
15147 2011-05-04  Richard Guenther  <rguenther@suse.de>
15148
15149         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
15150         for array-ref indices.
15151         (tree_coverage_counter_addr): Likewise.
15152         (build_fn_info_type): Use size_int for index types.
15153         (build_gcov_info): Likewise.
15154
15155 2011-05-04  Richard Guenther  <rguenther@suse.de>
15156
15157         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
15158         to build_int_cst.
15159         * c-typeck.c (really_start_incremental_init): Use bitsize_int
15160         for constructor indices.
15161         (push_init_level): Likewise.
15162
15163 2011-05-04  Richard Guenther  <rguenther@suse.de>
15164
15165         * explow.c (promote_mode): Move variable declarations before code.
15166
15167 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
15168
15169         * tree.h (build_function_type_array): Declare.
15170         (build_varargs_function_type_array): Declare.
15171         (build_function_type_vec, build_varargs_function_type_vec): Define.
15172         * tree.c (build_function_type_array_1): New function.
15173         (build_function_type_array): New function.
15174         (build_varargs_function_type_array): New function.
15175
15176 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
15177
15178         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
15179         before setting STMT_VINFO_TYPE.
15180
15181 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15182
15183         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
15184         instead of spu_pass_by_reference.
15185
15186 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15187
15188         * calls.c (emit_library_call_value_1): Invoke
15189         promote_function_mode hook on libcall arguments.
15190         * explow.c (promote_function_mode, promote_mode): Handle TYPE
15191         argument being NULL.
15192         * targhooks.c (default_promote_function_mode): Lisewise.
15193         * config/s390/s390.c (s390_promote_function_mode): Likewise.
15194         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
15195
15196         * doc/tm.texi: Document that TYPE argument might be NULL.
15197
15198 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15199
15200         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
15201
15202 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15203
15204         From Bernd Schmidt
15205         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
15206
15207 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15208
15209         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
15210         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
15211         Move ...
15212         * mips-tfile.c: ... here.
15213         Don't include coretypes.h, tm.h, filenames.h.
15214         (saber_stop): Remove definition and all calls.
15215         [__SABER__]: Remove.
15216         (__LINE__): Remove default.
15217         (Size_t, Ptrdiff_t): Remove definitions.
15218         Replace by size_t, ptrdiff_t.
15219         [!MIPS_DEBUGGING_INFO]: Remove.
15220         (SHASH_SIZE, THASH_SIZE): Remove defaults.
15221         (progname): Add const.
15222         (STATIC): Remove.
15223         Replace all uses by static.
15224         (ALIGN_SYMTABLE_OFFSET): Remove default.
15225         * mips-tdump.c: Don't include coretypes.h, tm.h.
15226         Remove !MIPS_IS_STAB guard.
15227         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
15228         $(TM_H), filenames.h dependencies.
15229         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
15230
15231 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15232
15233         From Jie Zhang
15234         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
15235         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
15236
15237 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15238
15239         From Bernd Schmidt
15240         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
15241         account and save/restore RETS.
15242         (PROFILE_BEFORE_PROLOGUE): Define.
15243         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
15244         the push insn to use predecrement.
15245
15246 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15247
15248         From Jie Zhang
15249         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
15250
15251 2011-05-04  Nick Clifton  <nickc@redhat.com>
15252
15253         * config/mn10300/mn10300.c: Include cfgloop.h.
15254         (DUMP): New macro.
15255         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
15256         Lcc or a FLcc insn into the instruction stream.
15257         (mn10300_block_contains_call): New function.  Returns true if the
15258         given basic block contains a CALL insn.
15259         (mn10300_loop_contains_call_insn): New function.  Returns true if
15260         the given loop contains a CALL insn.
15261         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
15262         to use the SETLB and Lcc or FLcc insns.
15263         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
15264         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
15265         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
15266         disable the SETLB optimization.
15267         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
15268         __SETLB__ or __NO_SETLB__.
15269         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
15270         (movsf_internal): Handle MDR register.
15271         (cmpsi): Make visible.
15272         (setlb): New pattern.
15273         (Lcc): New pattern.
15274         (FLcc): New pattern.
15275
15276 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
15277
15278         PR target/48860
15279         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
15280         for reg<->xmm moves.
15281         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
15282         (vec_concatv2di_rex64_sse): Ditto.
15283         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
15284         (*vec_extractv2di_1_rex64): Ditto.
15285
15286         Revert:
15287         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15288
15289         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15290         reg<->xmm moves.
15291         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
15292
15293 2011-05-04  Richard Guenther  <rguenther@suse.de>
15294
15295         * tree.h (int_const_binop): Remove notrunc argument.
15296         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
15297         create integer constants that are properly truncated.
15298         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
15299         (const_binop): Remove zero notrunc argument to int_const_binop.
15300         (size_binop_loc): Likewise.
15301         (fold_div_compare): Likewise.
15302         (maybe_canonicalize_comparison_1): Likewise.
15303         (fold_comparison): Likewise.
15304         (fold_binary_loc): Likewise.
15305         (multiple_of_p): Likewise.
15306         * expr.c (store_constructor): Likewise.
15307         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15308         (maybe_fold_stmt_addition): Likewise.
15309         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
15310         * stor-layout.c (layout_type): Likewise.
15311         * tree-data-ref.c (tree_fold_divides_p): Likewise.
15312         * tree-sra.c (build_ref_for_offset): Likewise.
15313         (build_user_friendly_ref_for_offset): Likewise.
15314         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
15315         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
15316         * tree-ssa-loop-niter.c (inverse): Likewise.
15317         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15318         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
15319         * tree-switch-conversion.c (check_range): Likewise.
15320         (build_constructors): Likewise.
15321         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
15322         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
15323         (extract_range_from_assert): Likewise.
15324         (vrp_int_const_binop): Likewise.
15325         (extract_range_from_binary_expr): Likewise.
15326         (extract_range_from_unary_expr): Likewise.
15327         (check_array_ref): Likewise.
15328         (find_case_label_range): Likewise.
15329         (simplify_div_or_mod_using_ranges): Likewise.
15330         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
15331         comparing case labels for merging.
15332
15333 2011-05-03  Mark Wielaard  <mjw@redhat.com>
15334
15335         * dwarf2out.c (debug_str_hash_forced): Removed.
15336         (gen_label_for_indirect_string): Removed.
15337         (get_debug_string_label): Removed.
15338         (AT_string_form): Generate label directly.
15339         (output_indirect_string): Test indirect_string_node for
15340         DW_FORM_strp instead of checking label and refcount.
15341         (prune_indirect_string): Removed.
15342         (prune_unused_types): Don't check debug_str_hash_forced or
15343         call prune_indirect_string.
15344
15345 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
15346
15347         PR other/48093
15348         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
15349
15350 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
15351
15352         PR debug/47994
15353         PR debug/47919
15354         * combine.c (try_combine): Skip debug insns at m_split tests.
15355
15356 2011-04-26  Mark Wielaard  <mjw@redhat.com>
15357
15358         PR42288
15359         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
15360         when info_section_emitted.
15361
15362 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
15363
15364         * config/mips/mips-opts.h: New.
15365         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
15366         to mips-opts.h.
15367         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
15368         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
15369         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
15370         via opts pointer.
15371         * config/mips/mips.h (enum mips_code_readable_setting): Move to
15372         mips-opts.h.
15373         (mips_abi, mips_code_readable): Don't declare.
15374         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15375         (mabi=): Use Enum and Var.
15376         (mips_abi): New Enum and EnumValue entries.
15377         (mcode-readable=): Use Enum and Var.
15378         (mips_code_readable_setting): New Enum and EnumValue entries.
15379         (mr10k-cache-barrier=): Use Enum and Var.
15380         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15381
15382 2011-05-03  Jan Hubicka  <jh@suse.cz>
15383
15384         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15385         replace hash by pointer map.
15386         (cgraph_node_set_element_def, cgraph_node_set_element,
15387         const_cgraph_node_set_element, varpool_node_set_element_def,
15388         varpool_node_set_element, const_varpool_node_set_element): Remove.
15389         (free_cgraph_node_set, free_varpool_node_set): New function.
15390         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15391         * tree-emutls.c: Free varpool node set.
15392         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15393         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15394         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15395         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15396         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15397         Move here from ipa.c; implement using pointer_map
15398         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15399         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15400         debug_cgraph_node_set, varpool_node_set_new,
15401         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15402         dump_varpool_node_set, debug_varpool_node_set):
15403         Move to ipa-uitls.c.
15404         * passes.c (ipa_write_summaries): Update.
15405
15406 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15407
15408         From Mike Frysinger:
15409         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15410         bf542/bf544/bf547/bf548/bf549.
15411
15412 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15413
15414         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15415
15416 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15417
15418         From Bernd Schmidt:
15419         * config/bfin/bfin.md (MOVCC): New mode_macro.
15420         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15421         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
15422         comments from generated assembly.
15423
15424 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15425
15426         From Bernd Schmidt
15427         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15428         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15429         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15430         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15431         * config/bfin/lib1funcs.asm (___muldi3): New function.
15432
15433 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15434
15435         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15436         build_function_type_list instead of build_function_type.
15437         Rearrange initialization of `args' to do so.
15438
15439 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15440
15441         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15442         instead of build_function_type.
15443
15444 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15445
15446         * config/rs6000/rs6000.c (spe_init_builtins): Call
15447         build_function_type_list instead of build_function_type.
15448         (paired_init_builtins, altivec_init_builtins): Likewise.
15449         (builtin_function_type): Likewise.
15450
15451 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15452
15453         * config/sh/sh.c (sh_media_init_builtins): Call
15454         build_function_type_list instead of build_function_type.
15455
15456 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15457
15458         * config/sparc/sparc.c (sparc_file_end): Call
15459         build_function_type_list instead of build_function_type.
15460
15461 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15462
15463         * config/alpha/alpha.c (alpha_init_builtins): Call
15464         build_function_type_list instead of build_function_type.
15465
15466 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15467
15468         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
15469         build_function_type_list instead of build_function_type.
15470
15471 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15472
15473         * config/iq2000/i2000.c (iq2000_init_builtins): Call
15474         build_function_type_list instead of build_function_type.
15475         Delete `endlink' variable.
15476
15477 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15478
15479         * config/avr/avr.c (avr_init_builtins): Call
15480         build_function_type_list instead of build_function_type.
15481
15482 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15483
15484         * config/picochip/picochip.c (picochip_init_builtins): Call
15485         build_function_type_list instead of build_function_type.
15486         Delete `endlink' variable.
15487
15488 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15489
15490         * config/bfin/bfin.c (bfin_init_builtins): Call
15491         build_function_type_list instead of build_function_type.
15492
15493 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15494
15495         From Bernd Schmidt
15496         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15497         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
15498
15499 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15500
15501         From Jie Zhang:
15502         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15503         libbffastfp overrides libgcc when -mfast-fp.
15504
15505 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15506
15507         Originally from Bernd Schmidt
15508         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15509         * config/bfin/bfin.c (override_options): Test it and error if
15510         TARGET_FDPIC.
15511
15512 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15513
15514         Originally From Bernd Schmidt
15515         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15516         FD-PIC.
15517
15518 2011-05-03  Jeff Law  <law@redhat.com>
15519
15520         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15521         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15522         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15523         than accessing AUX field directly.  Free the AUX field before
15524         clearing it.
15525         (thread_block, thread_through_loop_header): Likewise.
15526         (thread_single_edge, mark_threaded_blocks): Likewise.
15527         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
15528         (register_jump_thread): Do not attempt to thread to a NULL edge.
15529
15530 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15531
15532         * function.c (init_function_start): Call decide_function_section.
15533         * varasm.c (decide_function_section): New function.
15534         (assemble_start_function): When not using
15535         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15536         or first_function_block_is_cold.
15537         * rtl.h (decide_function_section): Declare.
15538
15539 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15540             Jakub Jelinek  <jakub@redhat.com>
15541
15542         PR target/48774
15543         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15544         only succeed if req_mode is the same as set_mode.
15545
15546 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15547
15548         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15549         * genemit.c (gen_exp): Handle RETURN.
15550         * emit-rtl.c (verify_rtx_sharing): Likewise.
15551         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15552         * rtl.c (copy_rtx): RETURN is shared.
15553         * rtl.h (enum global_rtl_index): Add GR_RETURN.
15554         (ret_rtx): New.
15555         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15556         * config/s390/s390.c (s390_emit_epilogue): Likewise.
15557         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15558         * config/cris/cris.c (cris_expand_return): Likewise.
15559         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15560         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15561         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15562         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15563         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15564         Likewise.
15565         * config/v850/v850.c (expand_epilogue): Likewise.
15566         * config/bfin/bfin.c (bfin_expand_call): Likewise.
15567         * config/arm/arm.md (epilogue): Likewise.
15568         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15569         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15570         variable to ret_reg.
15571
15572 2011-05-03  Richard Guenther  <rguenther@suse.de>
15573
15574         PR lto/48846
15575         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15576         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15577         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15578
15579 2011-05-03  Richard Guenther  <rguenther@suse.de>
15580
15581         * c-decl.c (grokdeclarator): Instead of looking at
15582         TREE_OVERFLOW check if the constant fits in the index type.
15583
15584 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15585
15586         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15587         (vec_store_lanes<mode><mode>): Likewise.
15588
15589 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15590
15591         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
15592         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
15593         convert_optab_index values.
15594         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
15595         * genopinit.c (optabs): Initialize the new optabs.
15596         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
15597         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
15598         (expand_STORE_LANES): New functions.
15599         * tree.h (build_array_type_nelts): Declare.
15600         * tree.c (build_array_type_nelts): New function.
15601         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
15602         (vect_model_load_cost): Likewise.
15603         (vect_store_lanes_supported, vect_load_lanes_supported)
15604         (vect_record_strided_load_vectors): Declare.
15605         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
15606         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
15607         (vect_transform_strided_load): Split out statement recording into...
15608         (vect_record_strided_load_vectors): ...this new function.
15609         * tree-vect-stmts.c (create_vector_array, read_vector_array)
15610         (write_vector_array, create_array_ref): New functions.
15611         (vect_model_store_cost): Add store_lanes_p argument.
15612         (vect_model_load_cost): Add load_lanes_p argument.
15613         (vectorizable_store): Try to use store-lanes functions for
15614         interleaved stores.
15615         (vectorizable_load): Likewise load-lanes and loads.
15616         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
15617         to vect_model_store_cost.
15618         (vect_build_slp_tree): Likewise vect_model_load_cost.
15619
15620 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15621
15622         * hooks.h (hook_bool_mode_uhwi_false): Declare.
15623         * hooks.c (hook_bool_mode_uhwi_false): New function.
15624         * target.def (array_mode_supported_p): New hook.
15625         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
15626         * doc/tm.texi: Regenerate.
15627         * stor-layout.c (mode_for_array): New function.
15628         (layout_type): Use it.
15629         * config/arm/arm.c (arm_array_mode_supported_p): New function.
15630         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
15631
15632 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
15633
15634         PR target/48723
15635         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
15636         for -fstack-check if the size to allocate is negative.
15637
15638 2011-05-02  Lawrence Crowl  <crowl@google.com>
15639
15640         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
15641         (timevar_cond_start): New for starting a timer only when it is not
15642         already running.
15643         (timevar_cond_stop): New for stopping a timer when it was not already
15644         running.
15645
15646         * timevar.c (timevar_stop): Enable start/stop timers to start again.
15647         (timevar_cond_start): New as above.
15648         (timevar_cond_stop): New as above.
15649
15650         * timevar.def: Add start/stop timers for compiler phases,
15651         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
15652         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
15653         and TV_PHASE_FINALIZE.
15654         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
15655         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
15656         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15657         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15658         Make unused TV_OVERLOAD into a start/stop timer.
15659
15660         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15661         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15662         to indicate that they are start/stop timers.
15663
15664         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15665         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15666         Move initialization to do_compile.
15667         (do_compile): Add initialization from above.
15668         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15669
15670         * c-decl.c (c_write_global_declarations): Add start/stop of
15671         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15672
15673         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15674         or TV_PARSE_INLINE, as appropriate.
15675         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15676         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15677
15678 2011-05-02  Jason Merrill  <jason@redhat.com>
15679
15680         PR c++/40975
15681         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15682
15683 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
15684
15685         PR c/35445
15686         * c-decl.c (finish_decl): Only create a composite if the types are
15687         compatible.
15688
15689 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15690
15691         * config/fr30/fr30-protos.h (Mmode): Don't define.
15692         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
15693         definition where used.
15694         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15695         define.  Expand definitions where used.
15696         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15697         Expand definitions where used.
15698         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15699         rx_function_arg, rx_function_arg_advance,
15700         rx_function_arg_boundary): Expand definitions of those macros.
15701         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
15702         definition where used.
15703
15704 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15705
15706         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15707         reg<->xmm moves.
15708         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15709         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
15710         with *movv2sf_internal_rex64_avx.
15711         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15712         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15713         Use %v prefix in insn mnemonic to handle TARGET_AVX.
15714         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
15715         "vex" in "prefix" attribute calculation.
15716         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
15717
15718 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
15719
15720         PR target/47951
15721         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15722         inputs match the output.
15723
15724 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
15725
15726         PR target/47955
15727         * config/m68k/m68k.c (m68k_expand_prologue): Set
15728         current_function_static_stack_size.
15729
15730 2011-05-02   Jan Hubicka  <jh@suse.cz>
15731
15732         * lto-streamer.c (lto_streamer_cache_insert_1,
15733         lto_streamer_cache_lookup, lto_streamer_cache_create,
15734         lto_streamer_cache_delete): Use pointer map instead of hashtable.
15735         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15736
15737 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15738
15739         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15740         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15741         config/m68k/t-opts: New files.
15742         * config/m68k/m68k-tables.opt: New file (generated).
15743         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15744         extra_options and m68k/t-opts to tmake_file.
15745         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15746         (all_isas): Initialize using m68k-isas.def.
15747         (all_microarchs): Initialize using m68k-microarchs.def.
15748         (m68k_find_selection): Remove.
15749         (m68k_handle_option): Don't assert that global structures are in
15750         use.  Use error_at.  Access variables via opts pointer.  Don't
15751         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
15752         directly for -m68020-40 and -m68020-60.
15753         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15754         m68k_tune_entry here.
15755         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15756         to m68k-opts.h.
15757         (m68k_library_id_string): Remove declaration.
15758         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15759         (m68k_library_id_string): New Variable.
15760         (march=, mcpu=, mtune=): Use Enum and Var.
15761
15762 2011-05-02  Richard Guenther  <rguenther@suse.de>
15763
15764         * varasm.c (output_constructor_regular_field): Compute zero-based
15765         index with double-ints.  Make sure to ICE instead of producing
15766         wrong code.
15767         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15768         in asserts.  Properly use a signed type.
15769
15770 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15771
15772         * config/i386/sse.md (V): New mode iterator.
15773         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
15774         TARGET_SSE2.
15775         (V_256): Rename from AVX256MODE.
15776         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
15777         condition to all users.
15778         (VF1): Ditto.
15779         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
15780         condition to all users.
15781         (VF_128): Make V4SF mode unconditional.
15782         (VF_256): Rename from AVX256MODEF2P.
15783         (VI4F_128): Rename from SSEMODE4S.
15784         (VI8F_128): Rename from SSEMODE2D.
15785         (VI4F_256): Rename from AVX256MODE8P.
15786         (VI8F_256): Rename from AVX256MODE4P.
15787         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15788         (ssescalarmodesuffix): Remove SF and DF modes.
15789         (SSEMODE124): Remove.
15790         (SSEMODE1248): Ditto.
15791         (SSEMODEF2P): Ditto.
15792         (AVXMODEF2P): Ditto.
15793         (AVXMODEFDP): Ditto.
15794         (AVXMODEFSP): Ditto.
15795         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15796         unconditional.
15797         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
15798         unconditional.
15799         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15800         xop_pcmov_<mode>256.  Use V mode iterator.
15801
15802         Adjust RTX patterns globally for renamed mode attributes.
15803
15804 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15805
15806         * haifa-sched.c (sched_emit_insn): Emit insn before first
15807         non-scheduled insn.  Inform back-end about new insn.  Add
15808         new insn to scheduled_insns list.
15809
15810 2011-05-02  Richard Guenther  <rguenther@suse.de>
15811
15812         PR tree-optimization/48822
15813         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15814         (process_scc): Indicate which iteration we start.
15815
15816 2011-05-02  Jan Hubicka  <jh@suse.cz>
15817
15818         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15819         (lto_section_overrun): New.
15820         * lto-section-out.c (append_block): Rename to ...
15821         (lto_append_block): ... this one; export.
15822         (lto_output_1_stream): Move lto lto-streamer.h
15823         (lto_output_data_stream): Update.
15824         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15825         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15826         functions.
15827
15828 2011-05-02  Richard Guenther  <rguenther@suse.de>
15829
15830         * tree.c (tree_code_counts): New global array.
15831         (record_node_allocation_statistics): Count individual tree codes.
15832         (dump_tree_statistics): Dump individual code stats.
15833
15834 2011-05-01  Jan Hubicka  <jh@suse.cz>
15835
15836         * ipa-inline.c (caller_growth_limits): Fix thinko when
15837         looking for largest stack frame.
15838         * ipa-inline.h (dump_inline_summary): Declare.
15839         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
15840         on stack usage.
15841         (dump_inline_summary): Export.
15842         (debug_inline_summary): Declare as DEBUG_FUNCTION.
15843
15844 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
15845
15846         * reginfo.c (memory_move_cost): Change rclass argument type form
15847         'enum reg_class' to reg_class_t.
15848         * reload.h (memory_move_cost): Update prototype.
15849         * postreload.c reload_cse_simplify_set): Change type dclass var to
15850         reg_class_t.
15851         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
15852         Update prototype.
15853         (ira_allocate_and_set_costs): Change aclass argument type form
15854         'enum reg_class' to reg_class_t.
15855         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
15856         Change aclass argument type to reg_class_t.
15857         (update_conflict_hard_reg_costs): Change type aclass and pref vars
15858         to reg_class_t.
15859         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
15860         memory_move_cost call.
15861
15862         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
15863         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
15864         Change type tmp var to reg_class_t.
15865
15866 2011-04-30  Jan Hubicka  <jh@suse.cz>
15867
15868         * ipa-inline.c (can_inline_edge_p): Disregard limits when
15869         inlining into function with flatten attribute.
15870         (want_inline_small_function_p): Be more realistic about inlining
15871         cold calls where callee size grows.
15872
15873 2011-04-30  Jan Hubicka  <jh@suse.cz>
15874
15875         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
15876         flags.
15877
15878 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
15879
15880         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
15881         PRINT_OPERAND_PUNCT_VALID_P): Remove.
15882         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
15883         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
15884         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15885         (print_operand): Rename to...
15886         (sparc_print_operand): ...this. Make static. Adjust
15887         sparc_print_operand function call.
15888         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
15889         functions.
15890
15891 2011-04-30  Jan Hubicka  <jh@suse.cz>
15892
15893         PR middle-end/48752
15894         * ipa-inline.c (early_inliner): Disable when doing late
15895         addition of function.
15896
15897 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
15898
15899         * dwarf2out.c (get_address_mode): New inline.
15900         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
15901         if not dwarf_strict emit
15902         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
15903         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
15904         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
15905         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
15906         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
15907         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
15908         mem_loc_descriptor callers.
15909         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15910         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
15911         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
15912         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
15913         (base_types): New variable.
15914         (get_base_type_offset, calc_base_type_die_sizes,
15915         base_type_for_mode, mark_base_types, base_type_cmp,
15916         move_marked_base_types): New functions.
15917         (calc_die_sizes): Assert that die_offset is 0 or equal to
15918         next_die_offset.
15919         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
15920         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
15921         callers.  If not dwarf_strict, call mem_loc_descriptor even for
15922         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
15923         (gen_subprogram_die): Don't give up on call site parameters
15924         with non-integral or large integral modes.  Adjust
15925         mem_loc_descriptor callers.
15926         (prune_unused_types): Call prune_unused_types_mark on base_types
15927         vector entries.
15928         (resolve_addr): Call mark_base_types.
15929         (dwarf2out_finish): Call move_marked_base_types.
15930
15931         PR tree-optimization/48809
15932         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
15933         type.
15934         (gen_inbound_check): Don't compute index_expr - range_min in utype
15935         again, instead reuse SSA_NAME initialized in build_arrays.
15936         Remove two useless gsi_for_stmt calls.
15937
15938 2011-04-29  Jeff Law  <law@redhat.com>
15939
15940         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
15941
15942 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15943
15944         * cgraph.h (cgraph_postorder): Remove declaration.
15945         * ipa-utils.h (ipa_free_postorder_info): Declare.
15946         (ipa_reverse_postorder): Likewise.
15947         * cgraphunit.c: Include ipa-utils.h.
15948         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
15949         * ipa-inline.c: Include ipa-utils.h.
15950         (ipa_inline): Update call to ipa_reverse_postorder.
15951         * ipa-pure-const.c (propagate_pure_const): Update call to
15952         ipa_reduced_postorder and ipa_print_order.  Call
15953         ipa_free_postorder_info to clean up.
15954         (propagate_nothrow): Likewise.
15955         * ipa-reference.c (propagate): Removed a useless call to
15956         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
15957         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
15958         * ipa.c: Include ipa-utils.h.
15959         (ipa_profile): Update call to ipa_reverse_postorder.
15960         (cgraph_postorder): Moved to...
15961         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
15962         (ipa_utils_print_order): Renamed to ipa_print_order.
15963         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
15964         comments.
15965         (ipa_free_postorder_info): New function.
15966         * passes.c: Include ipa-utils.h.
15967         (do_per_function_toporder): Update call to ipa_reverse_postorder.
15968         (ipa_write_summaries): Likewise.
15969         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
15970         (cgraphunit.o): Likewise.
15971         (ipa.o): Likewise.
15972         (ipa-inline.o): Likewise.
15973
15974 2011-04-29  Jan Hubicka  <jh@suse.cz>
15975
15976         * gcc.dg/tree-ssa/inline-10.c: New testcase.
15977         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
15978         * ipa-inline.h (clause_t): Turn into unsigned int.
15979         * ipa-inline-analysis.c (add_clause): Do more simplification.
15980         (and_predicates): Shortcut more cases.
15981         (predicates_equal_p): Move forward; check that clauses are properly
15982         ordered.
15983         (or_predicates): Shortcut more cases.
15984         (edge_execution_predicate): Rewrite as...
15985         (set_cond_stmt_execution_predicate): ... this function; handle
15986         __builtin_constant_p.
15987         (set_switch_stmt_execution_predicate): New .
15988         (compute_bb_predicates): New.
15989         (will_be_nonconstant_predicate): Update TODO.
15990         (estimate_function_body_sizes): Use compute_bb_predicates
15991         and free them later, always try to estimate if stmt is constant.
15992         (estimate_time_after_inlining, estimate_size_after_inlining):
15993         Gracefully handle optimized out edges.
15994         (read_predicate): Fix off by one error.
15995
15996 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
15997
15998         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
15999
16000 2011-04-27  Xinliang David Li  <davidxl@google.com>
16001
16002         * tree-profile.c (init_ic_make_global_vars): Set
16003         tls attribute on ic vars.
16004         * coverage.c (coverage_end_function): Initialize
16005         function_list with zero.
16006
16007 2011-04-29  Richard Guenther  <rguenther@suse.de>
16008
16009         * builtins.c (fold_builtin_classify_type): Use integer_type_node
16010         for the type of the result.
16011         (fold_builtin_isascii): Likewise.
16012         (fold_builtin_toascii): Use integer_type_node where appropriate.
16013         (fold_builtin_logb): Likewise.
16014         (fold_builtin_frexp): Likewise.
16015         (fold_builtin_strstr): Likewise.
16016         (fold_builtin_strpbrk): Likewise.
16017         (fold_builtin_fputs): Likewise.
16018         (fold_builtin_sprintf): Likewise.
16019         (fold_builtin_snprintf): Likewise.
16020         (fold_builtin_printf): Likewise.
16021         (do_mpfr_remquo): Use a proper type for the assigned constant.
16022         (do_mpfr_lgamma_r): Likewise.
16023         * dwarf2out.c (resolve_one_addr): Use size_int.
16024         * except.c (init_eh): Likewise.
16025         (assign_filter_values): Use integer_type_node for filter values.
16026         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
16027         indices.
16028         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
16029         for EH region numbers.
16030         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
16031         for the shift amount.
16032
16033 2011-04-29  Richard Guenther  <rguenther@suse.de>
16034
16035         * expr.h (expand_shift): Rename to ...
16036         (expand_variable_shift): ... this.
16037         (expand_shift): Take a constant shift amount.
16038         * expmed.c (expand_shift): Rename to ...
16039         (expand_variable_shift): ... this.
16040         (expand_shift): New wrapper around expand_variable_shift.
16041         * expr.c (convert_move, emit_group_load_1, emit_group_store,
16042         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
16043         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
16044         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
16045         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
16046         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
16047         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
16048         emit_store_flag_1, emit_store_flag): Likewise.
16049         * builtins.c (expand_builtin_signbit): Likewise.
16050         * calls.c (load_register_parameters): Likewise.
16051         * function.c (assign_parm_setup_block): Likewise.
16052         * lower-subreg.c (resolve_shift_zext): Likewise.
16053         * optabs.c (widen_bswap, expand_abs_nojump,
16054         expand_one_cmpl_abs_nojump, expand_float): Likewise.
16055         * spu/spu.c (spu_expand_extv): Likewise.
16056         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16057
16058 2011-04-29  Richard Guenther  <rguenther@suse.de>
16059
16060         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16061         for the remapped region number.
16062         * predict.c (build_predict_expr): Use integer_type_node for the
16063         predict kind.
16064         * fold-const.c (fold_binary_loc): Use integer_type_node for
16065         the shift amount.  Use a proper type for the PLUS_EXPR operand.
16066
16067 2011-04-29  Michael Matz  <matz@suse.de>
16068
16069         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16070         other trees that just builtins.
16071         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16072
16073 2011-04-29  Richard Guenther  <rguenther@suse.de>
16074
16075         * tree-nested.c (get_trampoline_type): Use size_int.
16076         (get_nl_goto_field): Likewise.
16077         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16078         for all indexes.
16079         (lower_eh_constructs_2): Likewise.
16080         (lower_resx): Likewise.
16081         (lower_eh_dispatch): Likewise.
16082         * tree-mudflap.c (mf_build_string): Use size_int.
16083         (mudflap_register_call): Use integer_type_node for the flag.
16084         (mudflap_enqueue_constant): Use size_int.
16085         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16086         instead of rebuilding it.
16087
16088 2011-04-29  Richard Guenther  <rguenther@suse.de>
16089
16090         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16091         Handle OBJ_TYPE_REF.
16092         (find_func_aliases_for_call): Use it more consistently.
16093
16094 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
16095
16096         * haifa-sched.c (last_nondebug_scheduled_insn): New.
16097         (rank_for_schedule): Use it.
16098         (schedule_block): Set it.
16099
16100 2011-04-28  David Li  <davidxl@google.com>
16101
16102         * tree.c (crc32_string): Use crc32_byte.
16103         (crc32_byte): New function.
16104         * tree.h (crc32_byte): New function.
16105         * gcov.c (read_graph_file): Handle new cfg_cksum.
16106         (read_count_file): Ditto.
16107         * profile.c (instrument_values): Ditto.
16108         (get_exec_counts): Ditto.
16109         (read_profile_edge_counts): Ditto.
16110         (compute_branch_probabilities): Ditto.
16111         (compute_value_histograms): Ditto.
16112         (branch_prob): Ditto.
16113         (end_branch_prob): Ditto.
16114         * coverage.c (read_counts_file): Ditto.
16115         (get_coverage_counts): Ditto.
16116         (tree_coverage_counter_addr): Ditto.
16117         (coverage_checksum_string): Ditto.
16118         (coverage_begin_output): Ditto.
16119         (coverage_end_function): Ditto.
16120         (build_fn_info_type): Ditto.
16121         (build_fn_info_value): Ditto.
16122         * libgcov.c (gcov_exit): Ditto.
16123         * gcov-dump.c (tag_function): Ditto.
16124         (compute_checksum): Remove.
16125
16126 2011-04-29  Alan Modra  <amodra@gmail.com>
16127
16128         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16129         unspec plus offset.  Tidy macho code.
16130
16131 2011-04-29  Martin Jambor  <mjambor@suse.cz>
16132
16133         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16134         node instead of a decl.  Update all callers.
16135         * cgraph.h: Update declaration.
16136
16137 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
16138
16139         PR tree-optimization/48765
16140         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16141         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
16142         to indicate if loop aware SLP is being used.  Scan the statements
16143         and update the vectorization factor according to the type of
16144         vectorization before statement analysis.
16145         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16146         pass it to vect_analyze_loop_operations.
16147         (vectorizable_reduction): Set number of copies to 1 in case of pure
16148         SLP statement.
16149         * tree-vect-stmts.c (vectorizable_conversion,
16150         vectorizable_assignment, vectorizable_shift,
16151         vectorizable_operation, vectorizable_type_demotion,
16152         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
16153         Likewise.
16154         (vectorizable_condition): Move the check that it is not SLP
16155         vectorization before the number of copies check.
16156         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
16157         to vectorize the loop using SLP.
16158
16159 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
16160
16161         PR middle-end/48597
16162         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
16163         inline asm.
16164
16165 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
16166
16167         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
16168         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
16169         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16170         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16171         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
16172         linux*.h headers.
16173         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
16174         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16175         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16176         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16177         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16178         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
16179         REG_NAME.
16180         * config/i386/linux.h (REG_NAME): Don't define.
16181         * config/i386/linux64.h (REG_NAME): Don't define.
16182         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
16183         Undefine before defining.
16184
16185 2011-04-28  Jan Hubicka  <jh@suse.cz>
16186
16187         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
16188         nonconstant_names array.
16189         (estimate_function_body_sizes): Build nonconstant_names array; handle
16190         BUILT_IN_CONSTANT_P.
16191
16192 2011-04-28  Richard Guenther  <rguenther@suse.de>
16193
16194         PR bootstrap/48804
16195         Revert
16196         2011-04-28  Richard Guenther  <rguenther@suse.de>
16197
16198         * tree-ssa-structalias.c (solve_constraints): Build succ graph
16199         as late as possible.
16200
16201 2011-04-28  Richard Guenther  <rguenther@suse.de>
16202
16203         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
16204         (debug_constraint): Do it here.
16205         (dump_constraints): And here.
16206         (rewrite_constraints): And here.
16207         (dump_constraint_edge): Remove.
16208         (dump_constraint_graph): Rewrite to produce DOT output.
16209         (solve_constraints): Build succ graph as late as possible.
16210         Dump constraint graphs before and after solving.
16211
16212 2011-04-28  Richard Guenther  <rguenther@suse.de>
16213
16214         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16215         New function split out from ...
16216         (find_func_aliases): ... here.  Call it.
16217         (find_func_aliases_for_call): Likewise.
16218
16219 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16220
16221         * internal-fn.h (internal_fn_name_array): Declare.
16222         (internal_fn_flags_array): Likewise.
16223
16224 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
16225
16226         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
16227         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
16228         Move from sse.md.
16229         (ssemodefsuffix): Remove.
16230         (ssevecmodesuffix): New mode attribute.
16231         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
16232         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16233         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16234         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16235         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
16236         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
16237         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
16238         ssemodesuffix mode attribute.
16239         (float splitters): Use ssevecmodesuffix mode attribute.
16240         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
16241         (sseinsmode): Rename from avxvecmode.
16242         (avxsizesuffix): Rename from avxmodesuffix.
16243         (sseintvecmode): Rename from avxpermvecmode.
16244         (ssedoublevecmode): Rename from ssedoublesizemode.
16245         (ssehalfvecmode): Rename from avxhalfvecmode.
16246         (ssescalarmode): Rename from avxscalarmode.
16247         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
16248         templates for ssemodesuffix mode attribute.
16249         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
16250         mode attribute.
16251
16252         Adjust RTX patterns globally for renamed mode attributes.
16253
16254 2011-04-27  Jan Hubcika  <jh@suse.cz>
16255
16256         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
16257         * ipa-inline-analysis.c: Include alloc-pool.h.
16258         (edge_predicate_pool): New.
16259         (trye_predicate_p): New function
16260         (false_predicate_p): New function.
16261         (add_clause): Sanity check that false clauses are "optimized";
16262         never add clauses to predicate that is already known to be false.
16263         (and_predicate): Use flase_predicate_p.
16264         (evaulate_predicate): Rename to ...
16265         (evaluate_predicate): ... this one; update all callers; assert
16266         that false is not listed among possible truths.
16267         (dump_predicate): Use true_predicate_p.
16268         (account_size_time): Use false_predicate_p.
16269         (evaulate_conditions_for_edge): Rename to ...
16270         (evaluate_conditions_for_edge) ... this one.
16271         (edge_set_predicate): New function.
16272         (inline_edge_duplication_hook): Duplicate edge predicates.
16273         (inline_edge_removal_hook): Free edge predicates.
16274         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
16275         (dump_inline_summary): Update.
16276         (estimate_function_body_sizes): Set edge predicates.
16277         (estimate_calls_size_and_time): Handle predicates.
16278         (estimate_callee_size_and_time): Update.
16279         (remap_predicate): Add toplev_predicate; update comment.
16280         (remap_edge_predicates): New function.
16281         (inline_merge_summary): Compute toplev predicate; update.
16282         (read_predicate): New function.
16283         (read_inline_edge_summary): Use it.
16284         (inline_read_section): Likewise.
16285         (write_predicate): New function.
16286         (write_inline_edge_summary): Use it.
16287         (inline_write_summary): Likewise.
16288         (inline_free_summary): Free alloc pool and edge summary vec.
16289
16290 2011-04-27  Richard Guenther  <rguenther@suse.de>
16291
16292         * tree-ssa-structalias.c (changed_count): Remove.
16293         (changed): Use a bitmap.
16294         (unify_nodes): Adjust.
16295         (do_sd_constraint): Likewise.
16296         (do_ds_constraint): Likewise.
16297         (do_complex_constraint): Likewise.
16298         (solve_graph): Likewise.
16299
16300 2011-04-27  Jan Hubicka  <jh@suse.cz>
16301
16302         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
16303
16304 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
16305
16306         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
16307         (avx_vperm2f128_*_operand): Ditto.
16308         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
16309         Use avx_vpermilp_parallel in insn condition.
16310         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
16311         Use avx_vperm2f128_parallel in insn condition.
16312
16313 2011-04-27  Richard Guenther  <rguenther@suse.de>
16314
16315         * Makefile.in (tree-ssa-structalias.o): Remove
16316         gt-tree-ssa-structalias.h dependency.
16317         (GTFILES): Remove tree-ssa-structalias.c.
16318         * tree.c (allocate_decl_uid): New function.
16319         (make_node_stat): Use it.
16320         (copy_node_stat): Likewise.
16321         * tree.h (allocate_decl_uid): Declare.
16322         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
16323         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
16324         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
16325         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
16326         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
16327         (struct heapvar_map): Likewise.
16328         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
16329         heapvar_insert): Likewise.
16330         (make_heapvar_for): Rename to ...
16331         (make_heapvar): ... this.  Simplify.
16332         (fake_var_decl_obstack): New global var.
16333         (build_fake_var_decl): New function.
16334         (make_constraint_from_heapvar): Adjust.
16335         (handle_lhs_call): Likewise.
16336         (create_function_info_for): Likewise.
16337         (intra_create_variable_infos): Likewise.
16338         (init_alias_vars): Allocate fake_var_decl_obstack.
16339         (init_alias_heapvars, delete_alias_heapvars): Remove.
16340         (compute_points_to_sets): Do not call init_alias_heapvars.
16341         (ipa_pta_execute): Likewise.
16342         (delete_points_to_sets): Free fake_var_decl_obstack.
16343
16344 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16345
16346         * config/spu/divmovti4.c (union qword_UTItype): New data type.
16347         (si_from_UTItype, si_to_UTItype): New functions.
16348         (__udivmodti4): Use them to implement type-punning.
16349         * config/spu/multi3.c (union qword_TItype): New data type.
16350         (si_from_TItype, si_to_TItype): New functions.
16351         (__multi3): Use them to implement type-punning.
16352
16353 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16354
16355         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
16356
16357 2011-04-27  Jan Hubicka  <jh@suse.cz>
16358
16359         * ipa-prop.c (function_insertion_hook_holder): New holder.
16360         (ipa_add_new_function): New function.
16361         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
16362         Register/deregister holder.
16363
16364 2011-04-27  Richard Guenther  <rguenther@suse.de>
16365
16366         PR tree-optimization/48772
16367         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
16368
16369 2011-04-27  Richard Guenther  <rguenther@suse.de>
16370
16371         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16372         TARGET_MEM_REF handling.
16373
16374 2011-04-27  Nick Clifton  <nickc@redhat.com>
16375
16376         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16377         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16378         (REG_CLASS_NAMES): Likewise.
16379         (REG_CLASS_CONTENTS): Likewise.
16380         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16381         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16382         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
16383         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
16384         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
16385         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16386         duplicate register classes.
16387         (frv_class_likely_spilled_p): Likewise.
16388         (frv_register_move_cost): Likewise.
16389
16390         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16391         end of the regno_reg_class array.
16392
16393 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
16394
16395         PR c/48742
16396         * c-typeck.c (build_binary_op): Don't wrap arguments if
16397         int_operands is true.
16398
16399 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
16400
16401         PR target/48767
16402         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16403         targetm.calls.must_pass_in_stack for void type.
16404
16405 2011-04-26  Jan Hubicka  <jh@suse.cz>
16406
16407         * cgraphbuild.c (build_cgraph_edges): Update call
16408         of cgraph_create_edge and cgraph_create_indirect_edge.
16409         * cgraph.c (cgraph_create_edge_including_clones,
16410         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16411         cgraph_update_edges_for_call_stmt_node): Do not take nest
16412         argument; do not initialize call_stmt_size/time.
16413         (dump_cgraph_node): Do not dump nest.
16414         (cgraph_clone_edge): Do not take loop_nest argument;
16415         do not propagate it; do not clone call_stmt_size/time.
16416         (cgraph_clone_node): Likewise.
16417         (cgraph_create_virtual_clone): Update.
16418         * cgraph.h (struct cgraph_edge): Remove
16419         call_stmt_size/call_stmt_time/loop_nest.
16420         (cgraph_create_edge, cgraph_create_indirect_edge,
16421         cgraph_create_edge_including_clones, cgraph_clone_node): Update
16422         prototype.
16423         * tree-emutls.c (gen_emutls_addr): Update.
16424         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16425         loop_nest; handle indirect calls, too.
16426         (clone_inlined_nodes): Do not care about updating inline summaries.
16427         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16428         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16429         stream call_stmt_size/call_stmt_time/loop_nest.
16430         * ipa-inline.c (edge_badness): Update.
16431         (ipa_inline): dump summaries after inlining.
16432         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16433         New.
16434         (inline_edge_summary): New function.
16435         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16436         (inline_edge_removal_hook): Handle edge summaries.
16437         (inline_edge_duplication_hook): New hook.
16438         (inline_summary_alloc): Alloc hooks.
16439         (initialize_growth_caches): Do not register removal hooks.
16440         (free_growth_caches); Do not free removal hook.
16441         (dump_inline_edge_summary): New function.
16442         (dump_inline_summary): Use it.
16443         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16444         (inline_update_callee_summaries): New function.
16445         (inline_merge_summary): Use it.
16446         (do_estimate_edge_time, do_estimate_edge_growth): Update.
16447         (read_inline_edge_summary): New function.
16448         (inline_read_section): Use it.
16449         (write_inline_edge_summary): New function.
16450         (inline_write_summary): Use it.
16451         (inline_free_summary): Free edge new holders.
16452         * tree-inline.c (copy_bb): Update.
16453
16454 2011-04-26  Jason Merrill  <jason@redhat.com>
16455
16456         * tree-eh.c (lower_try_finally_switch): Create the label along with
16457         the CASE_LABEL_EXPR.
16458
16459 2011-04-26  David S. Miller  <davem@davemloft.net>
16460             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16461
16462         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16463         * configure: Regenerate.
16464
16465 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16466
16467         PR target/48258
16468         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16469         reduction.
16470         (VEC_reduc): New code iterator and splitters for vector reduction.
16471         (VEC_reduc_name): Ditto.
16472         (VEC_reduc_rtx): Ditto.
16473         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16474         (reduc_<VEC_reduc_name>_v4sf): Ditto.
16475
16476         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16477         support for extracting SF on VSX.
16478
16479         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16480         generating xscvspdp.
16481         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16482         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16483         double add, minimum, maximum vector reduction.
16484         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16485         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16486         optimize double vector reduction.
16487         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16488
16489 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
16490
16491         * config/fr30/fr30.h (inhibit_libc): Don't define.
16492         * config/m32r/m32r-protos.h: Correct comment.
16493         * config/v850/v850.h (GHS_default_section_names,
16494         GHS_current_section_names): Use tree, not union tree_node *.
16495
16496 2011-04-26  Xinliang David Li  <davidxl@google.com>
16497
16498         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16499         * c-family/c-opts.c (c_common_handle_option): Set
16500         warn_maybe_uninitialized.
16501         * opts.c (common_handle_option): Ditto.
16502         * common.opt:  New option.
16503         * tree-ssa.c (warn_uninit): Add one more parameter.
16504         (warn_uninitialized_var): Pass warning code.
16505         * tree-flow.h: Interface change.
16506
16507 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16508
16509         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16510         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16511         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16512
16513 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16514
16515         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16516         * config/mips/mips.opt (mmips-tfile): Remove.
16517
16518         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16519         mips-tdump reference to ...
16520         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
16521         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16522         reference by Tru64 UNIX.
16523
16524 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
16525
16526         PR debug/48768
16527         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16528         is error_mark_node, set value to NULL.
16529
16530         PR tree-optimization/48734
16531         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16532         if return value from maybe_fold_*_comparsions isn't something
16533         the code is prepared to handle.
16534
16535 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
16536
16537         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16538         mode check.
16539         (ext_QIreg_nomode_operands): Remove.
16540         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16541         (*andsi_1): Ditto.
16542         (*andhi_1): Ditto.
16543
16544 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
16545
16546         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16547
16548 2011-04-26  Richard Guenther  <rguenther@suse.de>
16549
16550         * c-typeck.c (build_unary_op): Do not expand array-refs via
16551         pointer arithmetic.  Only adjust qualifiers for function types.
16552
16553 2011-04-26  Richard Guenther  <rguenther@suse.de>
16554
16555         PR middle-end/48694
16556         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16557         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16558         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
16559         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16560
16561 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
16562
16563         * doc/extend.texi: Document __underlying_type.
16564
16565 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
16566
16567         * config/rs6000/titan.md (automata_option "progress"): Remove.
16568
16569 2011-04-25  Jeff Law  <law@redhat.com>
16570
16571         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16572
16573 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
16574
16575         * system.h (ENUM_BITFIELD): Remove.
16576
16577 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
16578             Eric Botcazou  <ebotcazou@adacore.com>
16579
16580         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16581         for STORE_FLAG_VALUE==-1 case.
16582
16583 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
16584
16585         PR target/43804
16586         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16587         LEGITIMATE_PIC_OPERAND_P.
16588
16589 2011-04-24  Jan Hubicka  <jh@suse.cz>
16590
16591         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16592         WPA hack.
16593         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
16594         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
16595         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
16596         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
16597         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
16598         Sanity check predicate length.
16599         (remap_predicate): Likewise; sanity check jump functions.
16600         (inline_read_section, inline_write_summary): Sanity check
16601         predicate length.
16602
16603 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
16604
16605         PR other/48748
16606         * doc/extend.texi (Type Traits): Document __is_standard_layout,
16607         __is_literal_type, and __is_trivial; update throughout about
16608         possibly cv-qualified void types.
16609
16610 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16611
16612         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
16613         testsuite and make it version agnostic.
16614
16615 2011-04-22  Jan Hubicka  <jh@suse.cz>
16616
16617         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16618
16619 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
16620
16621         PR c/48685
16622         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
16623         to VOID_TYPE even around MODIFY_EXPR.
16624
16625 2011-04-22  Mike Stump  <mikestump@comcast.net>
16626
16627         * gensupport.c (read_md_rtx): Fix typo in comment.
16628         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
16629         comment.
16630
16631 2011-04-22  Jan Hubicka  <jh@suse.cz>
16632
16633         * gengtype.c (open_base_files): Add ipa-inline.h include.
16634         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
16635         ipa-prop.c; update all uses.
16636         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
16637         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
16638         merge summary of inlined function into former caller.
16639         * ipa-inline.c (max_benefit): Remove.
16640         (edge_badness): Compensate for removal of benefits.
16641         (update_caller_keys): Use
16642         reset_node_growth_cache/reset_edge_growth_cache.
16643         (update_callee_keys): Likewise.
16644         (update_all_callee_keys): Likewise.
16645         (inline_small_functions): Do not collect max_benefit; do not reset
16646         estimated_growth; call free_growth_caches and initialize_growth_caches.
16647         * ipa-inline.h (struct condition, type clause_t, struct predicate,
16648         struct size_time_entry): New structures.
16649         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
16650         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
16651         and estimated_growth.
16652         (edge_growth_cache_entry): New structure.
16653         (node_growth_cache, edge_growth_cache): New global vars.
16654         (estimate_growth): Turn into inline.
16655         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
16656         initialize_growth_caches, free_growth_caches): Declare.
16657         (estimate_edge_growth): Rewrite.
16658         (estimate_edge_time): Implement as inline cache lookup.
16659         (reset_node_growth_cache, reset_edge_growth_cache): New inline
16660         functions.
16661         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16662         (NUM_CONDITIONS): New constant.
16663         (predicate_conditions): New enum.
16664         (IS_NOT_CONSTANT): New constant.
16665         (edge_removal_hook_holder): New var.
16666         (node_growth_cache, edge_growth_cache): New global vars.
16667         (true_predicate, single_cond_predicate, false_predicate,
16668         not_inlined_predicate, add_condition, add_clause, and_predicates,
16669         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16670         dump_clause, dump_predicate, account_size_time,
16671         evaulate_conditions_for_edge): New functions.
16672         (inline_summary_alloc): Move to heap.
16673         (inline_node_removal_hook): Clear condition and entry vectors.
16674         (inline_edge_removal_hook): New function.
16675         (initialize_growth_caches, free_growth_caches): New function.
16676         (dump_inline_summary): Update.
16677         (edge_execution_predicate): New function.
16678         (will_be_nonconstant_predicate): New function.
16679         (estimate_function_body_sizes): Compute BB and constantness predicates.
16680         (compute_inline_parameters): Do not clear estimated_growth.
16681         (estimate_edge_size_and_time): New function.
16682         (estimate_calls_size_and_time): New function.
16683         (estimate_callee_size_and_time): New function.
16684         (remap_predicate): New function.
16685         (inline_merge_summary): New function.
16686         (do_estimate_edge_time): New function based on...
16687         (estimate_edge_time): ... this one.
16688         (do_estimate_edge_growth): New function.
16689         (do_estimate_growth): New function based on....
16690         (estimate_growth): ... this one.
16691         (inline_analyze_function): Analyze after deciding on jump functions.
16692         (inline_read_section): New function.
16693         (inline_read_summary): Use it.
16694         (inline_write_summary): Write all the new data.
16695         * ipa-prop.c (ipa_get_param_decl_index): Export.
16696         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16697         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16698         Declare.
16699         (ipa_get_lattice): Move here from ipa-cp.c
16700         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16701         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16702         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16703         cgraph_edge_inlinable_p): Remove.
16704         * cgraphunit.c: Include ipainline.h
16705         (cgraph_process_new_functions): Update call of
16706         compute_inline_parameters.
16707
16708 2011-04-22  Richard Guenther  <rguenther@suse.de>
16709
16710         * tree.c (build_int_cst): Properly create canonicalized integer
16711         constants.
16712         (build_int_cst_type): Remove scary comments.
16713
16714 2011-04-22  Xinliang David Li  <davidxl@google.com>
16715
16716         * toplev.c (process_options): Enable -Werror=coverage-mismatch
16717         by default when -Wno-error is not specified.
16718         * opts-global.c (decode_options): Remove call to
16719         control_warning_options.
16720
16721 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16722
16723         PR tree-optimization/48717
16724         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16725         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16726
16727 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
16728
16729         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
16730         definition where used.
16731
16732 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16733
16734         PR c/48716
16735         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16736         TREE_STATIC variables declared inside of some OpenMP construct.
16737
16738 2011-04-22  Martin Jambor  <mjambor@suse.cz>
16739
16740         PR middle-end/48585
16741         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16742
16743 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
16744
16745         PR c/36750
16746         * c-typeck.c (pop_init_level): Do not warn about initializing
16747         with ` = {0}'.
16748
16749 2011-04-22  Alan Modra  <amodra@gmail.com>
16750
16751         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16752         when returning call_cookie.
16753         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16754         pointers, to functions with no more vector args than the current
16755         function, and some non-local calls for ABI_V4.
16756         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16757         sibcall_nonlocal_aix64): Combine to ..
16758         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
16759         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16760         (sibcall_value_nonlocal_aix<mode>): ..likewise.
16761         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16762         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
16763         operand.
16764         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16765         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16766         sibcall_value_symbolic_64): Delete.
16767
16768 2011-04-21  Xinliang David Li  <davidxl@google.com>
16769
16770         * cgraph.h: Remove pid.
16771         * cgraph.c: Remove pid.
16772         * value-prof.c (init_node_map): New function.
16773         (del_node_map): New function.
16774         (find_func_by_funcdef_no): New function.
16775         (gimple_ic_transform): Call new function.
16776         * cgraphunit.c (cgraph_finalize_function): Remove pid.
16777         * function.c (get_last_funcdef_no): New function.
16778         * function.h (get_last_funcdef_no): New function.
16779         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16780         to libgcov function.
16781         (tree-profiling): Call node map init and delete function.
16782
16783 2011-04-21  Ian Lance Taylor  <iant@google.com>
16784
16785         * godump.c (go_format_type): Use exported Go name for anonymous
16786         field name.
16787
16788 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16789
16790         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16791         Call builtin_function_type_list instead of builtin_function_type.
16792         (UNARY, BINARY, TRINARY, QUAD): Likewise.
16793
16794 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16795
16796         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16797         build_function_type_list instead of build_function_type.
16798         Delete variable `endlink'.
16799
16800 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16801
16802         * config/s390/s390.c (s390_init_builtins): Call
16803         build_function_type_list instead of build_function_type.
16804
16805 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16806
16807         * config/ia64/ia64.c (ia64_init_builtins): Call
16808         build_function_type_list instead of builtin_function_type.
16809
16810 2011-04-21  Easwaran Raman  <eraman@google.com>
16811
16812         * cfgexpand.c (stack_var): Remove OFFSET...
16813         (add_stack_var): ...and its reference here...
16814         (expand_stack_vars): ...and here.
16815         (stack_var_cmp): Sort by descending order of size.
16816         (partition_stack_vars): Change heuristic.
16817         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16818         (dump_stack_var_partition): Add newline after each partition.
16819
16820 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
16821             Jeff Law  <law@redhat.com>
16822
16823         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16824         * gengtype.c (matching_file_name_substitute): Likewise.
16825
16826 2011-04-21  Richard Guenther  <rguenther@suse.de>
16827
16828         PR lto/48703
16829         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16830
16831 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
16832
16833         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16834
16835 2011-04-21  Richard Guenther  <rguenther@suse.de>
16836
16837         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16838         file name.
16839
16840 2011-04-21  Richard Guenther  <rguenther@suse.de>
16841
16842         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16843         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
16844         Use DECL_P, not SSA_VAR_P.
16845         (ptr_derefs_may_alias_p): Likewise.
16846         (ptr_deref_may_alias_ref_p_1): Likewise.
16847         (decl_refs_may_alias_p): Likewise.
16848         (refs_may_alias_p_1): Likewise.
16849         (ref_maybe_used_by_call_p_1): Likewise.
16850         (call_may_clobber_ref_p_1): Likewise.
16851         (indirect_ref_may_alias_decl_p): Assume indirect refrences
16852         are either MEM_REF or TARGET_MEM_REF.
16853         (indirect_refs_may_alias_p): Likewise.
16854         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
16855         for MEM_EXPR of indirect calls.
16856
16857 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16858
16859         * vmsdbgout.c (write_srccorr): Compute file length from the string.
16860         (dst_file_info_struct): Remove flen field.
16861         (lookup_filename): Remove code that set flen field.
16862
16863 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16864
16865         * config/ia64/ia64.c (ia64_start_function): Add a guard.
16866
16867 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
16868
16869         PR target/48708
16870         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
16871         vec_extract and vec_concat for non-SSE4_1 targets.
16872
16873 2011-04-21  Richard Guenther  <rguenther@suse.de>
16874
16875         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
16876         return statements.
16877
16878 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16879
16880         * config/i386/cygming.h (union tree_node, TREE): Don't define or
16881         undefine.
16882         (FILE): Don't undefine.
16883
16884 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16885
16886         * config/alpha/alpha.c (struct machine_function): Use rtx, not
16887         struct rtx_def *.
16888         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
16889         struct rtx_def *.
16890         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
16891         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
16892         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
16893         rtx_def *.
16894         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
16895         definitions where used.
16896         * config/microblaze/microblaze.h (struct microblaze_args): Use
16897         rtx, not struct rtx_def *.
16898         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
16899         rtx_def *.
16900         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
16901         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
16902         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
16903         not struct rtx_def *.
16904         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
16905         struct rtx_def *.
16906         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
16907         rtx_def *.
16908         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
16909
16910 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16911
16912         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
16913         operand_equal_p to compare DR_BASE_ADDRESSes.
16914         (vect_check_interleaving): Likewise.
16915
16916 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16917
16918         PR target/46329
16919         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
16920         for all Neon struct constants.
16921
16922 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16923
16924         * target.def (legitimate_constant_p): New hook.
16925         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
16926         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
16927         * doc/tm.texi: Regenerate.
16928         * hooks.h (hook_bool_mode_rtx_true): Declare.
16929         * hooks.c (hook_bool_mode_rtx_true): Define.
16930         * system.h (LEGITIMATE_CONSTANT_P): Poison.
16931         * calls.c (precompute_register_parameters): Replace uses of
16932         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
16933         (emit_library_call_value_1): Likewise.
16934         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
16935         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
16936         * ira-costs.c (scan_one_insn): Likewise.
16937         * recog.c (general_operand, immediate_operand): Likewise.
16938         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
16939         * reload1.c (init_eliminable_invariants): Likewise.
16940
16941         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
16942         mode argument.
16943         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
16944         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
16945         argument.
16946         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16947         * config/alpha/predicates.md (input_operand): Update call to
16948         alpha_legitimate_constant_p.
16949
16950         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
16951         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
16952         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
16953         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16954         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
16955         (arm_legitimate_constant_p): New functions.
16956         (arm_cannot_force_const_mem): Make static.
16957
16958         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
16959
16960         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
16961         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
16962         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
16963         instead of bfin_legitimate_constant_p.
16964         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
16965         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16966
16967         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
16968
16969         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
16970
16971         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
16972         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
16973         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16974         (frv_legitimate_constant_p): Make static.  Add a mode argument.
16975
16976         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
16977         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
16978         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
16979
16980         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
16981         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
16982         * config/i386/i386.c (legitimate_constant_p): Rename to...
16983         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
16984         argument.
16985         (ix86_cannot_force_const_mem): Update accordingly.
16986         (ix86_legitimate_address_p): Likewise.
16987         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16988         * config/i386/i386.md: Update commentary.
16989
16990         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
16991         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
16992         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16993         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
16994
16995         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
16996
16997         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
16998         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
16999         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17000         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
17001
17002         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
17003         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
17004         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
17005
17006         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
17007         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17008         (m32r_legitimate_constant_p): New function.
17009
17010         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
17011         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
17012         LEGITIMATE_CONSTANT_P.
17013         (LEGITIMATE_CONSTANT_P): Delete.
17014         * config/m68k/m68k.c (m68k_expand_prologue): Call
17015         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
17016         (m68k_legitimate_constant_p): New function.
17017         * config/m68k/m68k.md: Update comments.
17018
17019         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
17020         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17021         (mcore_legitimate_constant_p): New function.
17022
17023         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
17024         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
17025         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
17026         Add a mode argument.
17027         (mep_legitimate_address): Update accordingly.
17028         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17029
17030         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
17031         Delete.
17032         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
17033         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
17034         static.  Check OP's mode for VOIDmode.
17035         (microblaze_legitimate_constant_p): New function.
17036         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17037
17038         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
17039         * config/mips/mips.c (mips_legitimate_constant_p): New function.
17040         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
17041         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17042         * config/mips/predicates.md: Update comments.
17043
17044         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
17045         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
17046         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17047         (mmix_legitimate_constant_p): Make static, return a bool, and take
17048         a mode argument.
17049         (mmix_print_operand_address): Update accordingly.
17050
17051         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
17052         Delete.
17053         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
17054         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
17055         static.  Add a mode argument.
17056         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17057
17058         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17059
17060         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17061         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17062         (pa_legitimate_constant_p): New function.
17063
17064         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17065
17066         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17067         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17068         (pdp11_legitimate_constant_p): New function.
17069
17070         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17071         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17072         (rs6000_legitimate_constant_p): New function.
17073
17074         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17075         (rx_legitimate_constant_p): ...this.
17076         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17077         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17078         (rx_legitimate_constant_p): ...this.
17079         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17080         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17081
17082         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17083         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17084         * config/s390/s390.c (legitimate_constant_p): Rename to...
17085         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
17086         and add a mode argument.
17087         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17088
17089         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17090
17091         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17092         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17093         (sh_legitimate_constant_p): New function.
17094
17095         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17096         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17097         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17098         (legitimate_constant_p): Rename to...
17099         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
17100         argument.
17101         (constant_address_p): Update accordingly.
17102
17103         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17104         argument and return a bool.
17105         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17106         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17107         (spu_legitimate_constant_p): Add a mode argument and return a bool.
17108         (spu_rtx_costs): Update accordingly.
17109         * config/spu/predicates.md (vec_imm_operand): Likewise.
17110
17111         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17112
17113         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17114         * config/v850/v850.c (v850_legitimate_constant_p): New function.
17115         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17116
17117         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17118         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17119         * config/vax/vax.c (legitimate_constant_p): Likewise.
17120
17121         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17122         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17123         (xtensa_legitimate_constant_p): New function.
17124
17125 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
17126
17127         * target.def (cannot_force_const_mem): Add a mode argument.
17128         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17129         * doc/tm.texi: Regenerate.
17130         * hooks.h (hook_bool_mode_rtx_false): Declare.
17131         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17132         (hook_bool_mode_const_rtx_true): Likewise.
17133         (hook_bool_mode_rtx_false): New function.
17134         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17135         to be non-VOID.  Update call to cannot_force_const_mem.
17136         (find_reloads): Update accordingly.
17137         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17138         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17139         argument.
17140         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17141         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
17142         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
17143         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
17144         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
17145         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
17146         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
17147         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17148         (m68k_cannot_force_const_mem): ...this new function.
17149         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
17150         argument.
17151         (mips_const_insns, mips_legitimize_const_move): Update calls.
17152         (mips_secondary_reload_class): Likewise.
17153         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17154         (pa_cannot_force_const_mem): ...this new function.
17155         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
17156         (rs6000_cannot_force_const_mem): ...this new function.
17157         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
17158         argument.
17159         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
17160         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
17161         to...
17162         (xtensa_cannot_force_const_mem): ...this new function.
17163
17164 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17165
17166         * config/mips/mips.c (mips16_build_function_stub): Call
17167         build_function_type_list instead of build_function_type.
17168         (mips16_build_call_stub): Likewise.
17169
17170 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17171
17172         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
17173         instead of build_function_type.
17174
17175 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17176
17177         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
17178         instead of build_function_type.
17179
17180 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
17181
17182         PR target/48678
17183         * config/i386/i386.md (insv): Change operand 0 constraint to
17184         "register_operand".  Change operand 1 and 2 constraint to
17185         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
17186         * config/i386/sse.md (sse4_1_pinsrb): Export.
17187         (sse2_pinsrw): Ditto.
17188         (sse4_1_pinsrd): Ditto.
17189         (sse4_1_pinsrq): Ditto.
17190         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
17191         * config/i386/i386.c (ix86_expand_pinsr): New.
17192
17193 2011-04-20  Easwaran Raman  <eraman@google.com>
17194
17195         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
17196         containing union type only with -fstrict-aliasing.
17197
17198 2011-04-20  Jim Meyering  <meyering@redhat.com>
17199
17200         Remove useless if-before-free tests.
17201         * calls.c (expand_call, save_area): Likewise.
17202         * cfgcleanup.c (try_forward_edges): Likewise.
17203         * collect2.c (collect_execute): Likewise.
17204         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
17205         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
17206         * coverage.c (coverage_checksum_string): Likewise.
17207         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
17208         * cselib.c (cselib_init): Likewise.
17209         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
17210         (df_set_clean_cfg): Likewise.
17211         * function.c (free_after_compilation): Likewise.
17212         * gcc.c (do_spec_1, main): Likewise.
17213         * gcov.c (create_file_names): Likewise.
17214         * gensupport.c (identify_predicable_attribute): Likewise.
17215         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
17216         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
17217         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
17218         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
17219         * ipa-pure-const.c (local_pure_const): Likewise.
17220         * ipa-reference.c (propagate): Likewise.
17221         * ira-costs.c (free_ira_costs): Likewise.
17222         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
17223         * matrix-reorg.c (mat_free): Likewise.
17224         * prefix.c (get_key_value): Likewise.
17225         * profile.c (compute_value_histograms): Likewise.
17226         * reload1.c (free_reg_equiv): Likewise.
17227         * sched-deps.c (free_deps): Likewise.
17228         * sel-sched-ir.c (fence_clear): Likewise.
17229         * sese.c (set_rename, if_region_set_false_region): Likewise.
17230         * tree-data-ref.c (free_rdg): Likewise.
17231         * tree-eh.c (lower_try_finally): Likewise.
17232         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
17233         * tree-ssa-live.c (delete_var_map): Likewise.
17234         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
17235         * tree-ssa-pre.c (phi_trans_add): Likewise.
17236
17237 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
17238
17239         PR tree-optimization/48611
17240         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
17241         beyond ERT_MUST_NOT_THROW region.
17242
17243 2011-04-20  Catherine Moore  <clm@codesourcery.com>
17244
17245         * config/mips/mips.opt (mfix-24k): New.
17246         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
17247         * config/mips/mips.md (length): Increase by 4 for stores if
17248         fixing 24K errata.
17249         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
17250         all noreorder if fixing 24K errata.
17251         * doc/invoke.texi: Document mfix-24k.
17252
17253 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
17254
17255         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
17256         quad-word modes, reduce to 9-bit index range when above 1016 limit.
17257
17258 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
17259
17260         * config/arm/arm.c (arm_gen_constant): Move movw support ....
17261         (const_ok_for_op): ... to here.
17262
17263 2011-04-20  Kai Tietz  <ktietz@redhat.com>
17264
17265         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
17266         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
17267
17268 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
17269
17270         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
17271
17272 2011-04-20  Richard Guenther  <rguenther@suse.de>
17273
17274         PR tree-optimization/47892
17275         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
17276         are if-convertible.
17277
17278 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
17279
17280         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
17281
17282 2011-04-20  Tristan Gingold  <gingold@adacore.com>
17283
17284         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
17285
17286 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
17287
17288         PR target/18145
17289
17290         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
17291         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
17292         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17293         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17294         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
17295
17296         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
17297         New prototype.
17298
17299         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
17300         (avr_asm_named_section, avr_asm_output_aligned_common,
17301         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
17302         New functions to update...
17303         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
17304         (avr_asm_init_sections): Overwrite section callbacks for
17305         data_section, bss_section.
17306         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
17307         from here to...
17308         (avr_file_end): ...here.
17309
17310 2011-04-20  Richard Guenther  <rguenther@suse.de>
17311
17312         PR middle-end/48695
17313         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
17314         objects and types here.  Adjust for their offset before comparing.
17315
17316 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
17317
17318         * tree-vect-stmts.c (vectorizable_store): Only chain one related
17319         statement per copy.
17320
17321 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
17322
17323         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
17324         (GIMPLE_H): Include $(INTERNAL_FN_H).
17325         (OBJS-common): Add internal-fn.o.
17326         (internal-fn.o): New rule.
17327         * internal-fn.def: New file.
17328         * internal-fn.h: Likewise.
17329         * internal-fn.c: Likewise.
17330         * gimple.h: Include internal-fn.h.
17331         (GF_CALL_INTERNAL): New gf_mask.
17332         (gimple_statement_call): Put fntype into a union with a new
17333         internal_fn field.
17334         (gimple_build_call_internal): Declare.
17335         (gimple_build_call_internal_vec): Likewise.
17336         (gimple_call_same_target_p): Likewise.
17337         (gimple_call_internal_p): New function.
17338         (gimple_call_internal_fn): Likewise.
17339         (gimple_call_fntype): Return null for internal calls.
17340         (gimple_call_set_fntype): Assert that the function is not internal.
17341         (gimple_call_set_fn): Likewise.
17342         (gimple_call_set_fndecl): Likewise.
17343         (gimple_call_set_internal_fn): New function.
17344         (gimple_call_addr_fndecl): Handle null functions.
17345         (gimple_call_return_type): Likewise null types.
17346         * gimple.c (gimple_build_call_internal_1): New function.
17347         (gimple_build_call_internal): Likewise.
17348         (gimple_build_call_internal_vec): Likewise.
17349         (gimple_call_same_target_p): Likewise.
17350         (gimple_call_flags): Handle calls to internal functions.
17351         (gimple_call_fnspec): New function.
17352         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
17353         (gimple_has_side_effects): Handle null functions.
17354         (gimple_rhs_has_side_effects): Likewise.
17355         (gimple_call_copy_skip_args): Handle calls to internal functions.
17356         * cfgexpand.c (expand_call_stmt): Likewise.
17357         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
17358         * gimple-fold.c (gimple_fold_call): Handle null functions.
17359         (gimple_fold_stmt_to_constant_1): Don't fold
17360         calls to internal functions.
17361         * gimple-low.c (gimple_check_call_args): Handle calls to internal
17362         functions.
17363         * gimple-pretty-print.c (dump_gimple_call): Likewise.
17364         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
17365         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
17366         (do_warn_unused_result): Likewise.
17367         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
17368         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
17369         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17370         the target of a call.
17371         (initialize_hash_element): Update accordingly.
17372         (hashable_expr_equal_p): Use gimple_call_same_target_p.
17373         (iterative_hash_hashable_expr): Handle calls to internal functions.
17374         (print_expr_hash_elt): Likewise.
17375         * tree-ssa-pre.c (can_value_number_call): Likewise.
17376         (eliminate): Handle null functions.
17377         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17378         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17379         (find_func_aliases): Likewise.
17380         * value-prof.c (gimple_ic_transform): Likewise.
17381         (gimple_indirect_call_to_profile): Likewise.
17382         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17383         * lto-streamer-out.c (output_gimple_stmt): Likewise.
17384
17385 2011-04-19  Jan Hubicka  <jh@suse.cz>
17386
17387         * ipa-inline-transform.c (save_inline_function_body): Add comments.
17388         * ipa-inline.c (inline_small_functions): Compute summaries first,
17389         populate heap later.
17390
17391 2011-04-19  Jan Hubicka  <jh@suse.cz>
17392
17393         * cgraph.h (save_inline_function_body): Remove.
17394         * ipa-inline-transform.c: New file, broke out of...
17395         * ipa-inline.c: ... this one; Update toplevel comment.
17396         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17397         make global.
17398         (update_noncloned_frequencies): Move to ipa-inline-transform.c
17399         (cgraph_mark_inline_edge): Rename to inline_call; move to
17400         ipa-inline-transform.c.
17401         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17402         move to ipa-inline-transform.c
17403         (recursive_inlining, inline_small_functions, flatten_function,
17404         ipa_inline, inline_always_inline_functions,
17405         early_inline_small_functions): Update.
17406         (inline_transform): Move to ipa-inline-transform.c.
17407         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17408         Declare.
17409         * Makefile.in (ipa-inline-transform.o): New file.
17410         * cgraphunit.c (save_inline_function_body): Move to
17411         ipa-inline-transform.c
17412
17413 2011-04-19  DJ Delorie  <dj@redhat.com>
17414
17415         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17416         registers if we already know there aren't any.
17417         (m32c_emit_epilogue): Don't emit a barrier here.
17418         (m32c_emit_eh_epilogue): Likewise.
17419         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17420         operands at expand time.
17421         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17422         int" wchar type.
17423         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17424         duplicates.  Provide aliases instead.
17425         * config/m32c/prologue.md (eh_return): Emit a barrier here.
17426         (eh_epilogue): Add a "(return)" here as a hint to other parts of
17427         the compiler.
17428
17429 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
17430
17431         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17432         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17433         (general_or_i64_p, sparc_register_move_cost): New function.
17434
17435 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17436
17437         * doc/install.texi (Configuration, --enable-threads): Remove mach.
17438         Add lynx, mipssde.  Sort table.
17439
17440 2011-04-19  Xinliang David Li  <davidxl@google.com>
17441
17442         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17443         not negative.
17444
17445 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
17446
17447         PR target/48678
17448         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17449         is a SUBREG with non-MODE_INT mode inside of it.
17450
17451 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17452
17453         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17454         also according to actual contants.
17455         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17456         (gimple_fold_call): Use it.
17457         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17458
17459 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17460
17461         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17462         non-pointer assignments.
17463
17464 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17465
17466         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17467         account anc_offset and otr_type from the indirect edge info.
17468         * ipa-prop.c (get_ancestor_addr_info): New function.
17469         (compute_complex_ancestor_jump_func): Assignment analysis moved to
17470         get_ancestor_addr_info, call it.
17471         (ipa_note_param_call): Do not initialize information about polymorphic
17472         calls, return the indirect call graph edge.  Remove the last
17473         parameter, adjust all callers.
17474         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17475         parameters.  Initialize polymorphic information in the indirect edge.
17476
17477 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17478
17479         PR lto/48148
17480         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17481         the types if they have different enumeration identifiers.
17482
17483 2011-04-19  Jan Hubicka  <jh@suse.cz>
17484
17485         * cgraph.h (cgraph_optimize_for_size_p): Declare.
17486         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17487         * predict.c (cgraph_optimize_for_size_p): Break out from ...
17488         (optimize_function_for_size_p) ... here.
17489
17490 2011-04-19  Richard Guenther  <rguenther@suse.de>
17491
17492         PR lto/48207
17493         * tree.c (free_lang_data): Do not reset the decl-assembler-name
17494         langhook.
17495
17496 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17497
17498         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17499         if DECL_NO_INLINE_WARNING_P is set on the function.
17500
17501 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
17502
17503         PR fortran/47976
17504         * reload1.c (inc_for_reload): Return void. All callers changed.
17505         (emit_input_reload_insns): Don't try to delete previous output
17506         reloads to a register, or record spill_reg_store for autoincs.
17507
17508 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
17509
17510         * gengtype.h: Updated copyright year.
17511         (struct input_file_st): Add inpisplugin field.
17512         (type_fileloc): New function.
17513         * gengtype.c
17514         (write_typed_struct_alloc_def): Add gcc_assert.
17515         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17516         (write_typed_alloc_defns): Don't output for plugin files.
17517         (input_file_by_name): Clear inpisplugin field.
17518         (main): Set inpisplugin field for plugin files.
17519
17520 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
17521
17522         * gengtype-state.c (string_eq): New.
17523         (read_state): Use string_eq instead of strcmp when creating the
17524         state_ident_tab.
17525
17526 2011-04-19  Wei Guozhi  <carrot@google.com>
17527
17528         PR target/47855
17529         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17530         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17531         linkage.
17532         * config/arm/constraints.md (Uu): New constraint.
17533         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17534
17535 2011-04-19  Tristan Gingold  <gingold@adacore.com>
17536
17537         * config.gcc (-*-*-*vms): Added.
17538         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17539         definitions moved.
17540         * config/vms/vms-ld.c: New file.
17541         * config/vms/vms-ar.c: New file.
17542         * config/vms/t-vmsnative: New file.
17543
17544 2011-04-18  Xinliang David Li  <davidxl@google.com>
17545
17546         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17547
17548 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17549
17550         PR middle-end/48661
17551         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17552         if TREE_TYPE (v) is non-NULL.
17553
17554         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17555         gimple_get_virt_mehtod_for_binfo.
17556         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17557         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17558         callers.
17559         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17560
17561 2011-04-18  Michael Matz  <matz@suse.de>
17562             Steve Ellcey  <sje@cup.hp.com>
17563
17564         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17565         use its mode as source mode if it isn't VOIDmode.
17566
17567 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
17568
17569         * doc/passes.texi: Fill crossref nodes.
17570
17571 2011-04-18  Jim Meyering  <meyering@redhat.com>
17572
17573         Fix doubled-word typos in comments and strings
17574         * config/alpha/vms-unwind.h: s/for for/for/
17575         * config/arm/unwind-arm.h: Likewise.
17576         * config/microblaze/microblaze.c: Likewise.
17577         * config/sh/constraints.md: s/in in/in/
17578         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17579
17580 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
17581
17582         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17583         (AVX_FLOAT_MODE_P): Ditto.
17584         (AVX128_VEC_FLOAT_MODE_P): Ditto.
17585         (AVX256_VEC_FLOAT_MODE_P): Ditto.
17586         (AVX_VEC_FLOAT_MODE_P): Ditto.
17587         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17588         (UNSPEC_MASKSTORE): Ditto.
17589         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17590         Merge from <sse>_movmsk<ssemodesuffix> and
17591         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
17592         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
17593         iterator.
17594         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
17595         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17596         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
17597
17598 2011-04-18  Jan Hubicka  <jh@suse.cz>
17599
17600         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
17601
17602         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
17603         (want_inline_function_called_once_p): Break out the logic from
17604         ipa_inline.
17605         (edge_badness): Ensure that profile is not misupdated.
17606         (lookup_recursive_calls): Prioritize by call frequencies.
17607         (inline_small_functions): Move program size estimates here;
17608         actually process whole queue even when unit growth has been
17609         met. (to properly compute inline_failed reasons and for the
17610         case unit size decrease.) Revisit comments on recursive inlining.
17611         (ipa_inline): Remove unit summary code; first inline hot calls
17612         of functions called once, cold calls next.
17613         (order, nnodes): Remove unused variables.
17614         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
17615         (GTFILES): Remove ipa-inline.c
17616         * sel-sched.c (fill_insns): Silence uninitialized var warning.
17617
17618 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17619
17620         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
17621
17622 2011-04-18  Jie Zhang  <jie@codesourcery.com>
17623             Richard Earnshaw  <rearnsha@arm.com>
17624
17625         * arm.c (neon_builtin_type_bits): Remove.
17626         (typedef enum neon_builtin_mode): New.
17627         (T_MAX): Don't define.
17628         (typedef enum neon_builtin_datum): Remove bits, codes[],
17629         num_vars and base_fcode.  Add mode, code and fcode.
17630         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
17631         VAR10): Change accordingly.
17632         (neon_builtin_data[]): Change accordingly
17633         (arm_init_neon_builtins): Change accordingly.
17634         (neon_builtin_compare): Remove.
17635         (locate_neon_builtin_icode): Remove.
17636         (arm_expand_neon_builtin): Change accordingly.
17637
17638         * arm.h (enum arm_builtins): Move to ...
17639         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
17640
17641         * arm.c (arm_builtin_decl): Declare.
17642         (TARGET_BUILTIN_DECL): Define.
17643         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
17644         (arm_builtin_decls[]): New.
17645         (arm_init_neon_builtins): Store builtin declarations in
17646         arm_builtin_decls[].
17647         (arm_init_tls_builtins): Likewise.
17648         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
17649         (arm_builtin_decl): New.
17650
17651 2011-04-18  Richard Guenther  <rguenther@suse.de>
17652
17653         * tree.c (upper_bound_in_type): Build properly canonicalized
17654         INTEGER_CSTs.
17655         (lower_bound_in_type): Likewise.
17656
17657 2011-04-18  Richard Guenther  <rguenther@suse.de>
17658
17659         * gimple.h (gimple_call_addr_fndecl): New function.
17660         (gimple_call_fndecl): Use it.
17661         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17662         for direct calls.
17663         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17664         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17665
17666 2011-04-18  Richard Guenther  <rguenther@suse.de>
17667
17668         PR middle-end/48650
17669         * tree.c (build_string): STRING_CST is now derived from tree_typed.
17670
17671 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17672
17673         PR lto/48492
17674         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17675         DECL_IN_CONSTANT_POOL without RTL.
17676
17677 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
17678             Ira Rosen  <ira.rosen@linaro.org>
17679
17680         PR target/48252
17681         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17682         to match neon_vzip/vuzp/vtrn_internal.
17683         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17684         outputs explicitly dependent on both inputs.
17685         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17686
17687 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17688
17689         PR tree-optimization/48616
17690         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17691         whether the shift is by scalar or vector based on whether all SLP
17692         scalar stmts have the same rhs.
17693
17694 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
17695
17696         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17697         memory operands.
17698
17699 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
17700
17701         PR target/43700
17702         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17703         registers.
17704
17705 2011-04-17  Jan Hubicka  <jh@suse.cz>
17706
17707         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17708         * cgrpahunit.c (cgraph_finalize_function): Do not set
17709         finalized_by_frontend.
17710         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17711         finalized_by_frontend.
17712
17713 2011-04-17  Jan Hubicka  <jh@suse.cz>
17714
17715         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17716         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17717         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17718         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17719         method.
17720         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17721         gimple-fold.c
17722         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17723
17724 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
17725
17726         PR lto/48538
17727         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17728         is non-null before accessing it.
17729         (input_cgraph): Remove trailing spaces.
17730
17731 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17732
17733         * params.def (sms-min-sc): New param flag.
17734         * modulo-sched.c (sms_schedule): Use it.
17735         * doc/invoke.texi (sms-min-sc): Document it.
17736
17737 2011-04-17  Jan Hubicka  <jh@suse.cz>
17738
17739         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17740         present, also set gimple_call_set_cannot_inline.
17741         * ipa-inline.c: Update toplevel comment.
17742         (MAX_TIME): Remove.
17743         (cgraph_clone_inlined_nodes): Fix linebreaks.
17744         (cgraph_check_inline_limits): Restructure to ...
17745         (caller_growth_limits): ... this one; be more tolerant
17746         on growth in nested inline chains; add explanatory comment;
17747         fix stack accounting thinko introduced by previous patch.
17748         (cgraph_default_inline_p): Remove.
17749         (report_inline_failed_reason): New function.
17750         (can_inline_edge_p): New function.
17751         (can_early_inline_edge_p): New function.
17752         (leaf_node_p): Move upwards in file.
17753         (want_early_inline_function_p): New function.
17754         (want_inline_small_function_p): New function.
17755         (want_inline_self_recursive_call_p): New function.
17756         (cgraph_edge_badness): Rename to ...
17757         (edge_badness) ... this one; fix linebreaks.
17758         (update_edge_key): Update call of edge_baddness; add
17759         detailed dump about queue updates.
17760         (update_caller_keys): Use can_inline_edge_p and
17761         want_inline_small_function_p.
17762         (cgraph_decide_recursive_inlining): Rename to...
17763         (recursive_inlining): Use can_inline_edge_p and
17764         want_inline_self_recursive_call_p; simplify and remove no longer
17765         valid FIXME.
17766         (cgraph_set_inline_failed): Remove.
17767         (add_new_edges_to_heap): Use can_inline_edge_p and
17768         want_inline_small_function_p.
17769         (cgraph_decide_inlining_of_small_functions): Rename to ...
17770         (inline_small_functions): ... this one; cleanup; use
17771         can/want predicates; cleanup debug ouput; work edges till fibheap
17772         is exhausted and do not stop once unit growth is reached; remove
17773         later loop processing remaining edges.
17774         (cgraph_flatten): Rename to ...
17775         (flatten_function): ... this one; use can_inline_edge_p
17776         and can_early_inline_edge_p predicates.
17777         (cgraph_decide_inlining): Rename to ...
17778         (ipa_inline): ... this one; remove unreachable nodes before
17779         inlining functions called once; simplify the pass.
17780         (cgraph_perform_always_inlining): Rename to ...
17781         (inline_always_inline_functions): ... this one; use
17782         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17783         (cgraph_decide_inlining_incrementally): Rename to ...
17784         (early_inline_small_functions): ... this one; simplify
17785         using new predicates; cleanup; make dumps prettier.
17786         (cgraph_early_inlining): Rename to ...
17787         (early_inliner): newer inline regular functions into always-inlines;
17788         fix updating of call stmt summaries.
17789         (pass_early_inline): Update for new names.
17790         (inline_transform): Fix formating.
17791         (gate_cgraph_decide_inlining): Rename to ...
17792         (pass_ipa_inline): ... this one.
17793         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17794         * ipa-inline-analysis.c (dump_inline_summary): Update.
17795         (compute_inline_parameters): Do not compute disregard_inline_limits;
17796         look for mismatching arguments.
17797         (estimate_growth): Fix handlig of non-trivial self recursion.
17798         (inline_read_summary): Do not read info->disregard_inline_limits.
17799         (inline_write_summary): Do not write info->disregard_inline_limits.
17800         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17801         and move all checks into can_inline_edge_p predicate; re-enable code
17802         comparing optimization levels.
17803         (expand_call_inline): Do not test inline_forbidden_into_p.
17804         * Makefile.in (ipa-inline.o): Update arguments.
17805
17806 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17807
17808         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17809
17810 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17811
17812         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17813
17814 2011-04-17  Michael Matz  <matz@suse.de>
17815
17816         PR tree-optimization/48622
17817         PR lto/48645
17818         * ipa-inline-analysis.c (inline_read_summary): Read size/time
17819         in same order as they're written.
17820
17821 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17822
17823         * config/pa/predicates.md: Reorganize and simplify predicates.
17824         Eliminate duplicate code checks.
17825         (arith_operand): Rename to arith14_operand
17826         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17827         * config/pa/pa.md: Use renamed operands.
17828         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17829         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17830         arith11_operand, adddi3_operand, indexed_memory_operand,
17831         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17832         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17833         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17834         move_dest_operand, move_src_operand, prefetch_cc_operand,
17835         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17836         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17837         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17838         div_operand, int5_operand, movb_comparison_operator,
17839         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
17840         arith_double_operand, ireg_operand, lhs_lshift_operand,
17841         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
17842         integer_store_memory_operand): Likewise.
17843         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
17844         (integer_store_memory_operand, read_only_operand,
17845         function_label_operand, borx_reg_operand,
17846         non_hard_reg_operand): Likewise.
17847         (eq_neq_comparison_operator): Delete unused operator.
17848         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
17849         function_label_operand.
17850         (emit_move_sequence): Likewise.
17851
17852 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17853
17854         * config/i386/sse.md (sseunpackmode): New mode attribute.
17855         (ssepackmode): Ditto.
17856         (vec_pack_trunc_<mode>): Macroize expander from
17857         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
17858         (vec_unpacks_lo_<mode>): Macroize expander from
17859         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17860         (vec_unpacks_hi_<mode>): Macroize expander from
17861         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17862         (vec_unpacku_lo_<mode>): Macroize expander from
17863         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17864         (vec_unpacku_hi_<mode>): Macroize expander from
17865         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17866         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
17867         ix86_expand_sse4_unpack.
17868         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
17869
17870 2011-04-16  Jan Hubicka  <jh@suse.cz>
17871
17872         * cgraphbuild.c: Include ipa-inline.h.
17873         (reset_inline_failed): Use initialize_inline_failed.
17874         * cgraph.c: Include ipa-inline.h.
17875         (cgraph_create_node_1): Do not initialize estimated_growth.
17876         (initialize_inline_failed): More to ipa-inline-analysis.c
17877         (dump_cgraph_node): Do not dump inline flags.
17878         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
17879         and disregard_inline_limits flags.
17880         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
17881         time, size, estimated_growth.
17882         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
17883         Update.
17884         * cgraphunit.c (cgraph_decide_is_function_needed): Use
17885         DECL_DISREGARD_INLINE_LIMITS.
17886         (cgraph_analyze_function): Do not initialize
17887         node->local.disregard_inline_limits.
17888         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17889         inlinable, versionable and disregard_inline_limits.
17890         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
17891         cgraph_check_inline_limits, cgraph_default_inline_p,
17892         cgraph_edge_badness, update_caller_keys, update_callee_keys,
17893         add_new_edges_to_heap): Update.
17894         (cgraph_decide_inlining_of_small_function): Update; set
17895         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
17896         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
17897         cgraph_decide_inlining_incrementally): Update.
17898         * ipa-inline.h (inline_summary): Add inlinable, versionable,
17899         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
17900         time, size and estimated_growth parameters.
17901         (estimate_edge_growth): Update.
17902         (initialize_inline_failed): Declare.
17903         * ipa-split.c: Include ipa-inline.h
17904         (execute_split_functions): Update.
17905         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
17906         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
17907         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
17908         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
17909         estimated_growth to INT_MIN.
17910         (inline_node_duplication_hook): Likewise.
17911         (dump_inline_summary): Dump new fields.
17912         (compute_inline_parameters): Update.
17913         (estimate_edge_time, estimate_time_after_inlining,
17914         estimate_size_after_inlining, estimate_growth, inline_read_summary,
17915         inline_write_summary):
17916         (initialize_inline_failed): Move here from cgraph.c.
17917         * tree-sra.c: Include ipa-inline.h.
17918         (ipa_sra_preliminary_function_checks): Update.
17919         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
17920         ipa-inline.h.
17921
17922 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17923
17924         * config/i386/sse.md (V16): New mode iterator.
17925         (VI1, VI8): Ditto.
17926         (AVXMODEQI, AVXMODEDI): Remove.
17927         (sse2, sse3): New mode attribute.
17928         (mov<mode>): Use V16 mode iterator.
17929         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
17930         (push<mode>1): Use V16 mode iterator.
17931         (movmisalign<mode>): Ditto.
17932         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17933         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
17934         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17935         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
17936         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
17937         avx_movdqu<avxmodesuffix>.
17938         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
17939         *avx_movdqu<avxmodesuffix>.
17940         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
17941         avx_lddqu<avxmodesuffix>.
17942         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
17943         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
17944         avx_movnt<AVXMODEDI:mode>.
17945         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
17946         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
17947
17948 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17949
17950         PR target/48629
17951         * haifa-sched.c (prune_ready_list, schedule_block): Use
17952         sched_pressure_p rather than flag_sched_pressure.
17953
17954 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
17955
17956         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17957         cgraph_get_node instead of cgraph_get_create_node.
17958
17959 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
17960
17961         * cfgexpand.c (expand_debug_expr): Use
17962         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
17963
17964 2011-04-15  Michael Matz  <matz@suse.de>
17965
17966         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
17967         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
17968         * function.c (gimplify_parameters): Ditto.
17969         * gimplify.c (gimplify_vla_decl): Ditto.
17970
17971         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
17972         (gimple_call_set_alloca_for_var): New inline function.
17973         (gimple_call_alloca_for_var_p): Ditto.
17974         * gimple.c (gimple_build_call_from_tree): Remember
17975         CALL_ALLOCA_FOR_VAR_P state.
17976         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
17977
17978         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
17979         calls if they were for VLA objects.
17980
17981 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17982
17983         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
17984         of ADR_EXPRs.
17985
17986 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17987
17988         PR middle-end/48601
17989         * tree-emutls.c (lower_emutls_function_body): Call
17990         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
17991         result is non-NULL.
17992
17993 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
17994
17995         * c-decl.c (detect_field_duplicates): Call
17996         objc_detect_field_duplicates instead of objc_get_interface_ivars.
17997
17998 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
17999
18000         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
18001         * gimple.c (gimple_asm_clobbers_memory_p): Define.
18002         * ipa-pure-const.c (check_stmt): Call it.
18003         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
18004
18005 2011-04-15  Richard Guenther  <rguenther@suse.de>
18006
18007         PR tree-optimization/48290
18008         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
18009         Properly decide inhibiting propagation based on the valueized
18010         operand.  Do loop-closed SSA form preserving here ...
18011         (init_copy_prop): ... not here.
18012
18013 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
18014
18015         PR target/48612
18016         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
18017         (*ieee_smax<mode>3): Likewise.
18018
18019 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18020
18021         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
18022         Replace match_operand with match_dup for the third operand in
18023         these expanders.
18024
18025 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
18026
18027         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
18028         to track processing of conditionals.  Update all callers.
18029         (try_combine, simplify_if_then_else): Update.
18030
18031 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
18032
18033         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
18034         -fsched-pressure.
18035
18036 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
18037
18038         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
18039         instead of match_operand for operand 3.
18040
18041 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
18042
18043         * recog.h (insn_operand_data): Add an "allows_mem" field.
18044         * genoutput.c (output_operand_data): Initialize it.
18045         * optabs.c (maybe_legitimize_operand_same_code): New function.
18046         (maybe_legitimize_operand): Use it when matching the original
18047         op->value.
18048
18049 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18050
18051         * gimplify.c: Fix issues in comments throughout.
18052         (voidify_wrapper_expr): Fix long line.
18053         (build_stack_save_restore): Likewise.
18054         (gimplify_loop_expr): Likewise.
18055         (gimplify_compound_lval): Likewise.
18056         (gimplify_init_ctor_eval): Likewise.
18057         (gimplify_modify_expr_rhs): Likewise.
18058         (omp_notice_threadprivate_variable): Likewise.
18059
18060 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18061
18062         * cfgexpand.c (expand_call_stmt): Convert the function type to the
18063         original one if this is not a builtin function.
18064
18065 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
18066
18067         PR target/48605
18068         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18069         offset it as needed based on top 2 bits in operands[3], change
18070         MEM mode to SFmode and mask those 2 bits away from operands[3].
18071
18072 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
18073
18074         * c-parser.c (c_parser_objc_protocol_definition): Updated for
18075         change from objc_declare_protocols() to objc_declare_protocol().
18076
18077 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
18078
18079         * config/i386/sse.md (sse4_1): New mode attribute.
18080         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18081         avx_blend<ssemodesuffix><avxmodesuffix> and
18082         sse4_1_blend<ssemodesuffix> using VF mode iterator.
18083         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18084         avx_blendv<ssemodesuffix><avxmodesuffix> and
18085         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18086         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18087         avx_dp<ssemodesuffix><avxmodesuffix> and
18088         sse4_1_dp<ssemodesuffix> using VF mode iterator.
18089         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18090         (sse4_1_packusdw): Merge with *avx_packusdw.
18091         (sse4_1_pblendvb): Merge with *avx_pblendvb.
18092         (sse4_1_pblendw): Merge with *avx_pblendw.
18093         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18094         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18095         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18096         VF mode iterator.
18097         (sse4_1_round<ssescalarmodesuffix>): Merge with
18098         *avx_round<ssescalarmodesuffix>.
18099         (aesenc): Merge with *avx_aesenc.
18100         (aesenclast): Merge with *avx_aesenclast.
18101         (aesdec): Merge with *avx_aesdec.
18102         (aesdeclast): Merge with *avx_aesdeclast.
18103         (pclmulqdq): Merge with *pclmulqdq.
18104         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18105         New predicate.
18106         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18107
18108 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
18109
18110         PR middle-end/48608
18111         * cfgexpand.c (get_decl_align_unit): Renamed to ...
18112         (align_local_variable): This.  Update DECL_ALIGN.
18113         (add_stack_var): Updated.
18114         (expand_one_stack_var): Likewise.
18115
18116 2011-04-14  Richard Guenther  <rguenther@suse.de>
18117
18118         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18119         Remove.
18120         (dse_initialize_block_local_data, dse_leave_block,
18121         record_voperand_set, get_stmt_uid): Likewise.
18122         (dse_possible_dead_store_p): Allow any kind of killing stmt.
18123         (dse_optimize_stmt): Remove voperand set handling code.
18124         Simplify and improve to handle any kind of killing stmt.
18125         (dse_record_phi): Remove.
18126         (dse_enter_block): Simplify.
18127         (tree_ssa_dse): Likewise.
18128         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18129
18130 2011-04-14  Jan Hubicka  <jh@suse.cz>
18131
18132         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18133         * cgraph.h (struct inline_summary): Move to ipa-inline.h
18134         (cgraph_local_info): Remove inline_summary.
18135         * ipa-cp.c: Include ipa-inline.h.
18136         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18137         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18138         accesor.
18139         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18140         (input_overwrite_node): Do not set inline summary.
18141         (input_node): Do not stream inline summary.
18142         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
18143         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
18144         growth; we do not have inline parameters computed for that anyway.
18145         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
18146         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
18147         (inline_summary_t): New type and VECtor.
18148         (debug_inline_summary, dump_inline_summaries): Declare.
18149         (inline_summary): Use VOCtor.
18150         (estimate_edge_growth): Kill hack computing call stmt size directly.
18151         * lto-section-in.c (lto_section_name): Add inline section.
18152         * ipa-inline-analysis.c: Include lto-streamer.h
18153         (node_removal_hook_holder, node_duplication_hook_holder): New holders
18154         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
18155         (inline_summary_vec): Define.
18156         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
18157         dump_inline_summaries): New functions.
18158         (estimate_function_body_sizes): Properly compute size/time of outgoing
18159         calls.
18160         (compute_inline_parameters): Alloc inline_summary; do not compute
18161         size/time of incomming calls.
18162         (estimate_edge_time): Avoid missing time summary hack.
18163         (inline_read_summary): Read inline summary info.
18164         (inline_write_summary): Write inline summary info.
18165         (inline_free_summary): Free all hooks and inline summary vector.
18166         * lto-streamer.h: Add LTO_section_inline_summary section.
18167         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
18168         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
18169
18170 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18171
18172         * tree-vectorizer.h (vect_strided_store_supported): Add a
18173         HOST_WIDE_INT argument.
18174         (vect_strided_load_supported): Likewise.
18175         (vect_permute_store_chain): Return void.
18176         (vect_transform_strided_load): Likewise.
18177         (vect_permute_load_chain): Delete.
18178         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
18179         count argument.  Check that the count is a power of two.
18180         (vect_strided_load_supported): Likewise.
18181         (vect_permute_store_chain): Return void.  Update after above changes.
18182         Assert that the access is supported.
18183         (vect_permute_load_chain): Likewise.
18184         (vect_transform_strided_load): Return void.
18185         * tree-vect-stmts.c (vectorizable_store): Update calls after
18186         above interface changes.
18187         (vectorizable_load): Likewise.
18188         (vect_analyze_stmt): Don't check for strided powers of two here.
18189
18190 2011-04-14  Richard Guenther  <rguenther@suse.de>
18191
18192         PR tree-optimization/48590
18193         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18194         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18195         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
18196         BUILT_IN_STACK_SAVE.
18197         * tree-ssa-dce.c (propagate_necessity): Handle
18198         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18199
18200 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
18201
18202         * c-parser.c (c_parser_objc_class_declaration): Updated call to
18203         objc_declare_class.
18204
18205 2011-04-14  Richard Guenther  <rguenther@suse.de>
18206
18207         * tree.h (get_object_alignment_1): Declare.
18208         * builtins.c (get_object_alignment_1): Split out worker from ...
18209         (get_object_alignment): ... here.
18210         * fold-const.c (get_pointer_modulus_and_residue): Use
18211         get_object_alignment_1.
18212
18213 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18214
18215         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
18216         type parameter.
18217         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
18218         parameter.  Generalise code to handle arrays as well as vectors.
18219         (vect_setup_realignment): Update accordingly.
18220         * tree-vect-stmts.c (vectorizable_store): Likewise.
18221         (vectorizable_load): Likewise.
18222
18223 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18224
18225         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
18226         within the per-copy loop.
18227
18228 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18229
18230         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
18231         in the dump file.
18232
18233 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18234
18235         * doc/options.texi (Negative): Explicitly mention that the
18236         Negative chain must be circular.
18237
18238 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
18239
18240         * function.h (block_chainon): Declare.
18241         * function.c (block_chainon): Define.
18242
18243 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
18244             Eric Weddington  <eric.weddington@atmel.com>
18245             Georg-Johann Lay  <avr@gjlay.de>
18246
18247         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
18248         New Includes
18249         (avr_init_builtins, avr_expand_builtin,
18250         avr_expand_delay_cycles, avr_expand_unop_builtin,
18251         avr_expand_binop_builtin ): New functions.
18252         (avr_builtin_id): New enum
18253         (struct avr_builtin_description): New struct
18254         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
18255         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18256
18257         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
18258         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
18259         UNSPECV_DELAY_CYCLES): new enumeration values
18260         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
18261         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
18262         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
18263         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
18264         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
18265         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
18266         "fmulsu"): New insns
18267
18268         * config/avr/avr-c.c: fix line endings
18269         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
18270         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
18271         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
18272         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
18273         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
18274
18275         * doc/extend.texi (AVR Built-in Functions): New node
18276         (Target Builtins): Add documentation of AVR
18277         built-in functions.
18278
18279 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
18280
18281         PR target/44643
18282         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
18283         alone. Error if non-const data has attribute progmem.
18284
18285 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18286
18287         * tree.h (struct tree_constructor): Include tree_typed instead of
18288         tree_common.
18289         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
18290         TS_TYPED instead of TS_COMMON.
18291
18292 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
18293
18294         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
18295         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
18296         (sse2_psadbw): Merge with *avx_psadbw.
18297         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
18298         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
18299         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
18300         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
18301         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
18302         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
18303         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
18304         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
18305         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
18306         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
18307         (ssse3_palignrti): Merge with *avx_palignrti.
18308
18309 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18310
18311         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
18312         * tree-ssanames.c (fini_ssanames): VEC_free it.
18313         (make_ssa_name_fn): Update for VECness of free_ssanames.
18314         (release_ssa_name, release_dead_ssa_names): Likewise.
18315         * tree.h (struct tree_ssa_name): Include tree_typed instead of
18316         tree_common.
18317         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
18318         TS_TYPED instead of TS_COMMON.
18319
18320 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18321
18322         * postreload-gcse.c (gcse_after_reload_main): Add calls to
18323         statistics_counter_event.
18324         * tree-ssa-copyrename.c (stats): Define.
18325         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
18326         statistics_counter_event.
18327         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
18328         (bswap_stats, widen_mul_stats): Define.
18329         (insert_reciprocals): Increment rdivs_inserted.
18330         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
18331         rfuncs_inserted.  Add calls to statistics_counter_event.
18332         (execute_cse_sincos_1): Increment inserted.
18333         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
18334         statistics_counter_event.
18335         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
18336         of bswap_stats.  Add calls to statistics_counter_event.
18337         (convert_mult_to_widen): Increment widen_mults_inserted.
18338         (convert_plusminus_to_widen): Increment maccs_inserted.
18339         (convert_mult_to_fma): Increment fmas_inserted.
18340         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
18341         calls to statistics_counter_event.
18342
18343 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
18344
18345         PR rtl-optimization/48455
18346         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
18347         `temp_costs->mem_cost'.
18348
18349 2011-04-13  Jan Hubicka  <jh@suse.cz>
18350
18351         * ipa-inline.h: New file.
18352         * ipa-inline-analysis.c: New file. Broken out of ...
18353         * ipa-inline.c: ... this file; update toplevel comment;
18354         include ipa-inline.h
18355         (inline_summary): Move to ipa-inline.h
18356         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
18357         ipa-inline-analysis.c.
18358         (cgraph_estimate_time_after_inlining): Rename to
18359         estiamte_time_after_inlining; move to ipa-inline-analysis.c
18360         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
18361         to estimate_edge_growth.
18362         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
18363         rename to estimate_size_after_inlining.
18364         (cgraph_mark_inline_edge): Update for new naming convention.
18365         (cgraph_check_inline_limits): Likewise.
18366         (cgraph_edge_badness): Likewise.
18367         (cgraph_decide_recursive_inlining): Likewise.
18368         (cgraph_decide_inlining_of_small_functions): Likewise.
18369         (cgraph_decide_inlining_incrementally): Likewise.
18370         (cgraph_estimate_growth): Rename to estimate_growth; move to
18371         ipa-inline-analysis.c.
18372         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18373         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18374         (compute_inline_parameters): Likewise.
18375         (compute_inline_parameters_for_current): Likewise.
18376         (pass_inline_parameters): Likewise.
18377         (inline_indirect_intraprocedural_analysis): Likewise.
18378         (analyze_function): Rename to inline_analyze_function; likewise.
18379         (add_new_function): Move to ipa-inline-analysis.c.
18380         (inline_generate_summary): Likewise.
18381         (inline_read_summary): Likewise.
18382         (inline_write_summary): Likewise.
18383         * Makefile.in (ipa-inline-analysis.c): New file.
18384
18385 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18386
18387         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18388         * configure: Regenerate.
18389
18390 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18391
18392         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18393         instead of tree_common.
18394         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18395         Likewise.
18396         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18397         TS_TYPED rather than TS_COMMON.
18398         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18399
18400 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
18401
18402         PR target/45263
18403         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18404         r20 around calls of __tablejump_elpm__
18405
18406 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18407
18408         PR middle-end/48591
18409         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18410         NULL.
18411         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18412
18413 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
18414
18415         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18416         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18417         (cfi_vec): New typedef.
18418         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18419         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18420         (cie_cfi_vec): New static variable.
18421         (cie_cfi_head): Delete.
18422         (add_cfi): Accept a cfi_vec * as first argument. All callers and
18423         declaration changed. Use vector rather than list operations.
18424         (new_cfi): Don't initialize the dw_cfi_next field.
18425         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18426         rather than list operations.
18427         (lookup_cfa): Use vector rather than list operations.
18428         (output_cfis): New argument upto. Accept a cfi_vec rather than
18429         a dw_cfi_ref list head as argument. All callers changed.
18430         Iterate over the vector using upto as a maximum index.
18431         (output_all_cfis): New static function.
18432         (output_fde): Use vector rather than list operations. Use the
18433         new upto argument for output_cfis rather than manipulating a
18434         list.
18435         (dwarf2out_begin_prologue): Change initializations to match
18436         new struct members.
18437         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18438         from the vector length rather than searching for the end of a list.
18439         Use output_all_cfis.
18440         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18441
18442 2011-04-13  Nick Clifton  <nickc@redhat.com>
18443
18444         * config/rx/rx.md (movmemsi): Do not use this pattern when
18445         volatile pointers are involved.
18446
18447 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
18448
18449         * config/i386/sse.md (pinsrbits): Remove.
18450         (sse2_packsswb): Merge with *avx_packsswb.
18451         (sse2_packssdw): Merge with *avx_packssdw.
18452         (sse2_packuswb): Merge with *avx_packuswb.
18453         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18454         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18455         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18456         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18457         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18458         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18459         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18460         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18461         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18462         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18463         (sse2_loadld): Merge with *avx_loadld.
18464         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18465         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18466         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18467         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18468         (vec_concatv2di): Merge with *vec_concatv2di_avx.
18469
18470 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
18471
18472         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18473         calling TREE_CHAIN.
18474         * print-tree.c (print_node): Likewise.
18475         * tree-inline.c (copy_tree_r): Likewise.
18476         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18477         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18478         instead of TS_COMMON.
18479         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18480         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18481         (copy_node_stat): Zero TREE_CHAIN only if necessary.
18482         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18483         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18484         ...and these...
18485         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18486         * tree.h: ...here.
18487         (TREE_CHAIN): Check for a TS_COMMON structure.
18488         (TREE_TYPE): Check for a TS_TYPED structure.
18489
18490 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
18491
18492         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18493         cgraph_get_create_node instead of cgraph_node.
18494
18495 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18496
18497         * c-parser.c (c_parser_initelt): Updated call to
18498         objc_build_message_expr.
18499         (c_parser_postfix_expression): Likewise.
18500
18501 2011-04-12  Kai Tietz  <ktietz@redhat.com>
18502
18503         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18504         MASK_MS_BITFIELD_LAYOUT bit.
18505
18506 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18507
18508         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18509         assert it is always true.
18510         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18511         moves.
18512
18513 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18514
18515         * c-parser.c (c_lex_one_token): Rewritten conditional used when
18516         compiling Objective-C to be more efficient.
18517
18518 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
18519
18520         * opts-common.c (decode_cmdline_options_to_array): Remove variable
18521         argv_copied.
18522
18523 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18524
18525         * recog.h, genoutput.c, optabs.c: Revert last patch.
18526
18527 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18528
18529         PR target/48090
18530         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18531
18532 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18533
18534         * recog.h (insn_operand_data): Add an "allows_mem" field.
18535         * genoutput.c (output_operand_data): Initialize it.
18536         * optabs.c (maybe_legitimize_operand_same_code): New function.
18537         (maybe_legitimize_operand): Use it when matching the original
18538         op->value.
18539
18540 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18541
18542         * genpreds.c (process_define_predicate): Move most processing
18543         to gensupport.c.  Continue to validate the expression.
18544         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18545         (process_define_predicate): Move processing to gensupport.c.
18546         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18547         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18548         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
18549         argument.
18550         (valid_predicate_name_p): New function, split out from old
18551         genpreds.c:process_define_predicate.
18552         (process_define_predicate): New function, combining code from
18553         old genpreds.c and genrecog.c functions.
18554         (process_rtx): Call it for DEFINE_PREDICATE and
18555         DEFINE_SPECIAL_PREDICATE.
18556
18557 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18558
18559         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18560         size of a '%A' memory reference.
18561         (T_DREG, T_QREG): New neon_builtin_type_bits.
18562         (arm_init_neon_builtins): Assert that the load and store operands
18563         are neon_struct_operands.
18564         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18565         (NEON_ARG_MEMORY): New builtin_arg.
18566         (neon_dereference_pointer): New function.
18567         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18568         Handle NEON_ARG_MEMORY.
18569         (arm_expand_neon_builtin): Update after above interface changes.
18570         Use NEON_ARG_MEMORY for loads and stores.
18571         * config/arm/predicates.md (neon_struct_operand): New predicate.
18572         * config/arm/iterators.md (V_two_elem): Tweak formatting.
18573         (V_three_elem): Use BLKmode for accesses that have no associated mode.
18574         (V_four_elem): Tweak formatting.
18575         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18576         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18577         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18578         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18579         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18580         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18581         (neon_vst4<mode>): Replace pointer operand with a memory operand.
18582         Use %A in the output template.
18583         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18584         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18585         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18586         the width of the memory access.  Remove post-increment.
18587         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18588
18589 2011-04-12  Nick Clifton  <nickc@redhat.com>
18590
18591         * config/v850/v850.c (expand_prologue): Do not use the CALLT
18592         instruction for interrupt handlers if the target is the basic V850
18593         architecture.
18594         (expand_epilogue): Likewise.
18595
18596 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18597
18598         PR rtl-optimization/48549
18599         * combine.c (propagate_for_debug): Also stop after BB_END of
18600         this_basic_block.  Process LAST and just stop processing after it.
18601         (combine_instructions): If last_combined_insn has been deleted,
18602         set last_combined_insn to its PREV_INSN.
18603
18604 2011-04-12  Richard Guenther  <rguenther@suse.de>
18605
18606         PR tree-optimization/46076
18607         * gimple.h (struct gimple_statement_call): Add fntype field.
18608         (gimple_call_fntype): Adjust.
18609         (gimple_call_set_fntype): New function.
18610         * gimple.c (gimple_build_call_1): Set the call function type.
18611         * gimplify.c (gimplify_call_expr): Preserve the function
18612         type the frontend used for the call.
18613         (gimplify_modify_expr): Likewise.
18614         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
18615         function type.
18616         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
18617         function type.
18618         * tree-ssa.c (useless_type_conversion_p): Function pointer
18619         conversions are useless.
18620
18621 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18622
18623         * cgraph.h (cgraph_node): Remove function declaration.
18624         (cgraph_create_node): Declare.
18625         (cgraph_get_create_node): Likewise.
18626         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
18627         Updated all callers.
18628         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
18629         the decl does not already exist.  Call cgraph_get_create_node instead
18630         of cgraph_node.
18631         (cgraph_get_create_node): New function.
18632         (cgraph_same_body_alias): Update comment.
18633         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
18634         assert it does not return NULL.
18635         (cgraph_update_edges_for_call_stmt): Likewise.
18636         (cgraph_clone_edge): Likewise.
18637         (cgraph_create_virtual_clone): Likewise.
18638         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
18639         instead of cgraph_node.
18640         (cgraph_add_new_function): Call cgraph_create_node or
18641         cgraph_get_create_node instead of cgraph_node.
18642         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
18643         instead of cgraph_node.
18644         (record_eh_tables): Likewise.
18645         (mark_address): Likewise.
18646         (mark_load): Likewise.
18647         (build_cgraph_edges): Call cgraph_get_create_node instead
18648         of cgraph_node.
18649         (rebuild_cgraph_edges): Likewise.
18650         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
18651         instead of cgraph_node.
18652         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
18653         cgraph_node.
18654         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
18655         cgraph_create_node instead of cgraph_node.
18656         * c-decl.c (finish_function): Call cgraph_get_create_node instead
18657         of cgraph_node.
18658         * lto-cgraph.c (input_node): Likewise.
18659         * lto-streamer-in.c (input_function): Likewise.
18660         * varasm.c (mark_decl_referenced): Likewise.
18661         (assemble_alias): Likewise.
18662
18663 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18664
18665         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18666         instead of cgraph_node and assert it does not return NULL.
18667         * lto-streamer-in.c (lto_read_body): Likewise.
18668         * omp-low.c (new_omp_context): Likewise.
18669         (create_task_copyfn): Likewise.
18670         * tree-emutls.c (lower_emutls_function_body): Likewise.
18671         * matrix-reorg.c (transform_allocation_sites): Likewise.
18672
18673 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18674
18675         PR c/48552
18676         * c-typeck.c (build_asm_expr): Error out on attempts to use
18677         void type outputs or inputs for constraints that allow reg or
18678         don't allow memory.
18679
18680 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
18681             Richard Earnshaw  <rearnsha@arm.com>
18682
18683         PR target/48250
18684         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18685         to use sign-magnitude offsets. Reject unsupported unaligned
18686         cases. Add detailed description in comments.
18687         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18688         condition from TARGET_32BIT to TARGET_ARM.
18689
18690 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
18691
18692         * tree.h (struct typed_tree): New.
18693         (struct tree_common): Include it instead of tree_base.
18694         (TREE_TYPE): Update for new location of type field.
18695         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18696         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18697         (union tree_node): Add typed field.
18698         * treestruct.def (TS_TYPED): New.
18699         * lto-streamer.c (check_handled_ts_structures): Handle it.
18700         * tree.c (MARK_TS_TYPED): New macro.
18701         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18702
18703 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
18704
18705         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18706         (force_nonfallthru): Do not alter the loop nest if no basic block
18707         was created.
18708
18709 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18710
18711         * config/i386/sse.md (VI): New mode iterator.
18712         (SSEMODEI): Remove.
18713         (AVX256MODEI): Ditto.
18714         (AVXMODEF4P): Ditto.
18715         (avxvecpsmode): Ditto.
18716         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
18717         (sse2_andnot<mode>3): New expander.
18718         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18719         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
18720         (<any_logic:code><mode>3): Use VI mode iterator.
18721         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18722         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
18723         (*andnottf3): Handle AVX three-operand constraints.
18724         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18725
18726 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18727             Robert Millan  <rmh@gnu.org>
18728
18729         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18730         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18731         GNU_USER_DYNAMIC_LINKER64): Define.
18732         (REG_NAME): Don't undefine.
18733         (MD_UNWIND_SUPPORT): Undefine.
18734         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18735         (REG_NAME): Don't undefine.
18736         (MD_UNWIND_SUPPORT): Undefine.
18737         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18738
18739 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18740
18741         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18742         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18743
18744 2011-04-11  Xinliang David Li  <davidxl@google.com>
18745
18746         * value-profile.c (check_ic_target): New function.
18747         (gimple_ic_transform): Sanity check indirect call target.
18748         * gimple-low.c (gimple_check_call_args): Interface change.
18749         (gimple_check_call_matching_types): New function.
18750         * tree-inline.c (tree_can_inline_p): Call new function.
18751
18752 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
18753
18754         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18755         tree-pretty-print.h & realmpfr.h.
18756
18757 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
18758
18759         PR middle-end/48464
18760         * ira.c (setup_pressure_classes): Fix typo in loop condition.
18761         (setup_allocno_and_important_classes): Ditto.
18762
18763 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18764
18765         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18766         GNU_USER_DYNAMIC_LINKER.
18767         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18768         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18769         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18770         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18771         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18772         GNU_USER_TARGET_OS_CPP_BUILTINS.
18773         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18774         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18775         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18776         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18777         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18778         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18779         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18780         GNU_USER_TARGET_OS_CPP_BUILTINS.
18781         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18782         GNU_USER_DYNAMIC_LINKER.
18783         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18784         GNU_USER_TARGET_OS_CPP_BUILTINS.
18785         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18786         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18787         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18788         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18789         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18790         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18791         GNU_USER_DYNAMIC_LINKER64): Remove.
18792         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18793         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18794         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18795         GNU_USER_DYNAMIC_LINKER.
18796         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18797         GNU_USER_TARGET_OS_CPP_BUILTINS.
18798         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18799         GNU_USER_TARGET_OS_CPP_BUILTINS.
18800         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18801         to GNU_USER_TARGET_OS_CPP_BUILTINS.
18802         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18803         GNU_USER_TARGET_OS_CPP_BUILTINS.
18804         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18805         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18806         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18807         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18808         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18809         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18810         GNU_USER_DYNAMIC_LINKER.
18811         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18812         GNU_USER_TARGET_OS_CPP_BUILTINS.
18813         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18814         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18815         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18816         GNU_USER_DYNAMIC_LINKER.
18817         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18818         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18819         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
18820         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18821         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18822         GNU_USER_DYNAMIC_LINKER.
18823         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18824         GNU_USER_DYNAMIC_LINKERN32.
18825         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18826         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
18827         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
18828         GNU_USER_DYNAMIC_LINKER32.
18829         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18830         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18831         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18832         GNU_USER_DYNAMIC_LINKER.
18833         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18834         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18835         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18836         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18837         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18838         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
18839         GNU_USER_DYNAMIC_LINKER32.
18840         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18841         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
18842         GNU_USER_DYNAMIC_LINKER.
18843         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
18844         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18845         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18846         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
18847         GNU_USER_DYNAMIC_LINKER64.
18848         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
18849         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18850         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18851         GNU_USER_DYNAMIC_LINKER.
18852         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
18853         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18854         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18855         GNU_USER_DYNAMIC_LINKER.
18856         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
18857         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18858         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18859         GNU_USER_DYNAMIC_LINKER32.
18860         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18861         GNU_USER_DYNAMIC_LINKER64.
18862         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18863         GNU_USER_DYNAMIC_LINKER64.
18864         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
18865         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18866         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
18867         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18868         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18869
18870 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18871
18872         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
18873         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
18874         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
18875         GNU_USER_DYNAMIC_LINKER.
18876         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18877         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
18878         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
18879         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
18880         GNU_USER_DYNAMIC_LINKER64.
18881         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18882         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
18883         GNU_USER_LINK_EMULATION.
18884         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18885         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
18886         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
18887         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
18888         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
18889         CPP_SPEC, CC1_SPEC): Remove.
18890         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
18891         (GNU_USER_DYNAMIC_LINKER): Define.
18892         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
18893         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
18894         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
18895         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
18896         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
18897         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
18898         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18899         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
18900         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
18901         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
18902         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
18903         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
18904         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
18905         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
18906         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
18907         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18908         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18909         GNU_USER_DYNAMIC_LINKER.
18910         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18911         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18912         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18913         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18914         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18915         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18916         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
18917         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
18918         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
18919         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
18920
18921 2011-04-11  Kai Tietz  <ktietz@redhat.com>
18922
18923         PR target/9601
18924         PR target/11772
18925         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
18926         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
18927         comment.
18928         (ix86_is_msabi_thiscall): Removed.
18929         (ix86_is_type_thiscall): Likewise.
18930         (ix86_get_callcvt): New function.
18931         (ix86_comp_type_attributes): Simplify check.
18932         (ix86_function_regparm): Use ix86_get_callcvt for calling
18933         convention attribute checks.
18934         (ix86_return_pops_args): Likewise.
18935         (ix86_static_chain): Likewise.
18936         (x86_this_parameter): Likewise.
18937         (x86_output_mi_thunk): Likewise.
18938         (ix86_function_type_abi): Optimize check for types without attributes.
18939         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
18940         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
18941         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
18942         by flag-values.
18943         (IX86_BASE_CALLCVT): Helper macro.
18944         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18945         Use ix86_get_callcvt for calling convention attribute checks and avoid
18946         symbol-decoration for stdcall in TARGET_RTD case.
18947         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18948         Likewise.
18949         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
18950         for declaration.
18951
18952 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18953
18954         * config/i386/sse.md (VI_128): New mode iterator.
18955         (VI12_128): Rename from SSEMODE12.
18956         (VI14_128): Rename from SSEMODE14.
18957         (VI124_128): New mode iterator.
18958         (VI24_128): Rename from SSEMODE248.
18959         (VI248_128): Rename from SSEMODE248.
18960         (SSEMODE124C8): Remove.
18961         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18962         (*sse2_<plusminus_insn><mode>3): Merge with
18963         *avx_<plusminus_insn><mode>3.
18964         (*mulv8hi3): Merge with *avx_mulv8hi3.
18965         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
18966         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
18967         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
18968         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
18969         (ashr<mode>3): Merge with *avx_ashr<mode>3.
18970         (lshr<mode>3): Merge with *avx_lshr<mode>3.
18971         (ashl<mode>3): Merge with *avx_ashl<mode>3.
18972         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
18973         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
18974         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18975         (*<smaxmin:code>v8hi3): Ditto.
18976         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
18977         (*<smaxmin:code>v16qi3): Ditto.
18978         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
18979         (*sse2_eq<mode>3): Ditto.
18980         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
18981         (*sse2_gt<mode>3): Ditto.
18982         (vcondv2di): Split out of vcond<mode>.
18983         (vconduv2di): Split out of vcondu<mode>.
18984
18985 2011-04-11  Richard Guenther  <rguenther@suse.de>
18986
18987         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
18988         before calling tree_low_cst.
18989
18990 2011-04-11  Richard Guenther  <rguenther@suse.de>
18991
18992         * stor-layout.c (layout_type): Compute all array index size operations
18993         in the original type.
18994         (initialize_sizetypes): Add comment.
18995         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
18996
18997 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18998
18999         * common.opt (Tbss=, Tdata=, Ttext=): New options.
19000
19001 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19002
19003         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
19004         of cgraph_node, handle NULL return value.
19005         (cgraph_global_info): Likewise.
19006         (cgraph_rtl_info): Likewise.
19007         * tree-inline.c (estimate_num_insns): Likewise.
19008         * gimplify.c (unshare_body): Likewise.
19009         (unvisit_body): Likewise.
19010         (gimplify_body): Likewise.
19011         * predict.c (optimize_function_for_size_p): Likewise.
19012         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19013         (call_may_clobber_ref_p_1): Likewise.
19014         * varasm.c (function_section_1): Likewise.
19015         (assemble_start_function): Likewise.
19016
19017 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19018
19019         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
19020         of cgraph_node.
19021         * final.c (rest_of_clean_state): Likewise.
19022         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
19023         * passes.c (pass_init_dump_file): Likewise.
19024         (execute_all_ipa_transforms): Likewise.
19025         (function_called_by_processed_nodes_p): Likewise.
19026         * predict.c (maybe_hot_frequency_p): Likewise.
19027         (probably_never_executed_bb_p): Likewise.
19028         (compute_function_frequency): Likewise.
19029         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
19030         (unnest_nesting_tree_1): Likewise.
19031         (lower_nested_functions): Likewise.
19032         * tree-optimize.c (execute_fixup_cfg): Likewise.
19033         (tree_rest_of_compilation): Likewise.
19034         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
19035         * tree-sra.c (ipa_early_sra): Likewise.
19036         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19037         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
19038         * ipa.c (record_cdtor_fn): Likewise.
19039         * ipa-inline.c (cgraph_early_inlining): Likewise.
19040         (compute_inline_parameters_for_current): Likewise.
19041         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19042         * ipa-pure-const.c (local_pure_const): Likewise.
19043         * ipa-split.c (split_function): Likewise.
19044         (execute_split_functions): Likewise.
19045         * cgraphbuild.c (build_cgraph_edges): Likewise.
19046         (rebuild_cgraph_edges): Likewise.
19047         (cgraph_rebuild_references): Likewise.
19048         (remove_cgraph_callee_edges): Likewise.
19049         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
19050         (verify_cgraph_node): Likewise.
19051         (cgraph_analyze_functions): Likewise.
19052         (cgraph_preserve_function_body_p): Likewise.
19053         (save_inline_function_body): Likewise.
19054         (save_inline_function_body): Likewise.
19055         * tree-inline.c (copy_bb): Likewise.
19056         (optimize_inline_calls): Likewise.
19057
19058 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19059
19060         PR tree-optimization/48195
19061         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19062         ipa_check_create_edge_args.
19063         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19064         ipa_check_create_edge_args.
19065         * ipa-inline.c (inline_generate_summary): Do not call
19066         ipa_check_create_node_params and ipa_check_create_edge_args.
19067         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19068         ipa_check_create_edge_args.
19069
19070 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
19071
19072         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19073         instead of loop.
19074         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19075         * function.c (record_hard_reg_sets): Likewise.
19076         * ira.c (compute_regs_asm_clobbered): Likewise.
19077         * sched-deps.c (sched_analyze_1): Likewise.
19078         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19079
19080 2011-04-09  Xinliang David Li  <davidxl@google.com>
19081
19082         PR tree-optimization/PR48484
19083         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19084         has_valid_pred lazily
19085
19086 2011-04-09  Duncan Sands  <baldrick@free.fr>
19087
19088         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19089
19090 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
19091
19092         * combine.c (combine_validate_cost): Adjust comments.  Set registered
19093         cost of I0 to zero at the end, if any.
19094
19095 2011-04-08  Xinliang David Li  <davidxl@google.com>
19096
19097         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19098         to insane profile data.
19099
19100 2011-04-08  Xinliang David Li  <davidxl@google.com>
19101
19102         * ipa-cp.c (ipcp_update_profiling): Correct
19103          negative scale factor due to insane profile data.
19104
19105 2011-04-08  Xinliang David Li  <davidxl@google.com>
19106
19107         * final.c (dump_basic_block_info): New function.
19108         (final): Dump basic block.
19109         (final_scan_insn): Remove old dump.
19110
19111 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19112
19113         PR target/47829
19114         * config.gcc (i386-*-freebsd): Disable unwind table generation for
19115         crtbegin/crtend.
19116
19117 2011-04-08  Michael Matz  <matz@suse.de>
19118
19119         PR middle-end/48389
19120         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19121         functions.
19122         (rebuild_jump_labels): Call rebuild_jump_labels_1.
19123         * rtl.h (rebuild_jump_labels_chain): Declare.
19124         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19125         insns inserted on edges.
19126
19127 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
19128
19129         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19130         * config/arm/arm-arches.def: New.
19131         * config/arm/arm-opts.h: New.
19132         * config/arm/genopt.sh: New.
19133         * config/arm/arm-tables.opt: New (generated).
19134         * config/arm/arm.c (arm_handle_option, arm_target_help,
19135         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19136         (all_architectures): Get most table contents from arm-arches.def.
19137         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19138         arm_selected_tune here.
19139         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19140         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19141         (march=, mcpu=, mtune=): Use Enum and Var.
19142         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
19143         (arm.o): Update dependencies.
19144
19145 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
19146
19147         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
19148         of header_file.
19149         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
19150         (write_typed_alloc_defns): Likewise.
19151         (main): Calls write_typed_alloc_defns with output_header.
19152
19153 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
19154
19155         PR inline-asm/48435
19156         * ira-color.c (setup_profitable_hard_regs): Add comments.
19157         Don't take prohibited hard regs into account.
19158         (setup_conflict_profitable_regs): Rename to
19159         get_conflict_profitable_regs.
19160         (check_hard_reg_p): Check prohibited hard regs.
19161
19162 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
19163
19164         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
19165         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
19166         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
19167
19168 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19169
19170         PR target/48366
19171         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
19172         move from floating point to shift amount register.
19173         (emit_move_sequence): Remove secondary reload support for floating
19174         point to shift amount amount register copies.
19175         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
19176         amount register copies.
19177         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
19178         register, return false if mode isn't a scalar integer mode.
19179         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
19180
19181 2011-04-08  Richard Guenther  <rguenther@suse.de>
19182
19183         * gimple.c (gimple_call_flags): Remove kludge.
19184
19185 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19186
19187         * sel-sched.c (sel_region_init): Move call to
19188         sel_setup_region_sched_flags after setup_current_loop_nest.
19189
19190 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
19191
19192         PR rtl-optimization/48272
19193         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
19194         init_insn_reg_pressure_info.  Adjust a caller.
19195         * sched-int.h (init_insn_reg_pressure_info): Declare.
19196         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
19197         when sched-pressure is enabled.
19198
19199 2011-04-08  Richard Guenther  <rguenther@suse.de>
19200
19201         * gimple.c (gimple_set_modified): Do not queue calls to
19202         MODIFIED_NORETURN_CALLS here ...
19203         * tree-ssa-operands.c (update_stmt_operands): ... but here.
19204
19205 2011-04-08  Richard Guenther  <rguenther@suse.de>
19206
19207         PR lto/48467
19208         * toplev.c (lang_dependent_init): Do not open asm_out_file
19209         in WPA mode, nor perform debug machinery initialization.
19210         (finalize): Do not unlink asm_out_file in WPA mode.
19211
19212 2011-04-08  Richard Guenther  <rguenther@suse.de>
19213
19214         * gimple.h (gimple_call_fntype): New function.
19215         (gimple_call_return_type): Use it.
19216         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
19217         * gimple-low.c (gimple_check_call_args): Likewise.
19218         * gimple.c (gimple_call_flags): Likewise.
19219         (gimple_call_arg_flags): Likewise.
19220         (gimple_call_return_flags): Likewise.
19221         * tree-cfg.c (verify_gimple_call): Likewise.
19222         (do_warn_unused_result): Likewise.
19223         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
19224         * value-prof.c (gimple_ic_transform): Fix fndecl check.
19225
19226 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
19227
19228         PR rtl-optimization/48235
19229         * sel-sched.c (code_motion_process_successors): Recompute the last
19230         insn in basic block if control flow changed.
19231         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
19232         Update condition for ilist_remove.
19233
19234 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19235
19236         PR rtl-optimization/48302
19237         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
19238         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
19239         it to record added preheader blocks.
19240         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
19241         on to sel_add_loop_preheaders.
19242         (sel_region_init): Move call to setup_current_loop_nest after
19243         sel_init_bbs.
19244
19245 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19246
19247         PR target/48273
19248         * cfgloop.h (loop_has_exit_edges): New helper.
19249         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
19250         non-clonable.
19251         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19252         that have no exit edges.
19253
19254 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19255
19256         PR rtl-optimization/48442
19257         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
19258         all callers.  Adjust assert.
19259
19260 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
19261
19262         PR tree-optimization/48377
19263         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
19264         is_packed to true even for types with smaller TYPE_ALIGN than
19265         TYPE_SIZE.
19266
19267 2011-04-08  Richard Guenther  <rguenther@suse.de>
19268
19269         PR bootstrap/48513
19270         * doc/tm.texi: Re-generate.
19271
19272 2011-04-08  Wei Guozhi  <carrot@google.com>
19273
19274         PR target/47855
19275         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
19276         * config/arm/arm.c (arm_attr_length_push_multi): New function.
19277         * config/arm/arm.md (*push_multi): Change the length computation to
19278         call a C function.
19279
19280 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
19281
19282         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
19283         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
19284         * doc/tm.texi: Regenerate.
19285         * system.h (ASM_OUTPUT_BSS): Poison.
19286         * varasm.c (asm_output_bss): Remove function.
19287         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
19288
19289         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
19290         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
19291         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
19292         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19293         Likewise.
19294         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19295         Likewise.
19296         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19297         Likewise.
19298         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
19299
19300 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
19301
19302         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
19303         EnumValue lines.
19304
19305 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
19306
19307         * config/m68k/m68k.c (m68k_handle_option): Don't handle
19308         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
19309         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
19310         OPT_mcpu32.
19311         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19312         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
19313         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
19314         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
19315         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
19316         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
19317         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19318         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
19319         options.  Don't map other m68k options manually.  Don't handle
19320         old-style options as canonical.
19321         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19322         * doc/install.texi (m68k-*-*): Document binutils version requirement.
19323
19324 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
19325
19326         * basic-block.h (force_nonfallthru): Move to...
19327         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
19328         (force_nonfallthru): ...here.
19329         * cfghooks.c (force_nonfallthru): New function.
19330         * cfgrtl.c (force_nonfallthru): Rename into...
19331         (rtl_force_nonfallthru): ...this.
19332         (commit_one_edge_insertion): Do not set AUX field.
19333         (commit_edge_insertions): Do not discover new basic blocks.
19334         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
19335         (cfg_layout_rtl_cfg_hooks): Likewise.
19336         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
19337         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
19338         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
19339
19340 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
19341
19342         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19343         Remove macros.
19344
19345 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
19346
19347         * config/i386/sse.md: Update copyright year.
19348         (avxcvtvecmode): Remove.
19349         (sse_movhlps): Merge with *avx_movhlps.
19350         (sse_movlhps): Merge with *avx_movlhps.
19351         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
19352         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
19353         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
19354         (sse_loadhps): Merge with *avx_loadhps.
19355         (sse_storelps): Merge with *avx_storelps.
19356         (sse_loadlps): Merge with *avx_loadlps.
19357         (sse_movss): Merge with *avx_movss.
19358         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
19359         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
19360         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
19361         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
19362         (vec_set<mode>_0): Ditto.
19363         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
19364         (sse4_1_insertps): Merge with *avx_insertps.
19365         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
19366         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
19367         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
19368         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
19369         (sse2_storehpd): Merge with *avx_storehpd.
19370         (sse2_loadhpd): Merge with *avx_loadhpd.
19371         (sse2_loadlpd): Merge with *avx_loadlpd.
19372         (sse2_movsd): Merge with *avx_movsd.
19373         (*vec_concatv2df): Merge with *vec_concatv2df.
19374
19375 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
19376
19377         PR debug/48343
19378         * combine.c (combine_instructions): Add last_combined_insn,
19379         update it if insn is after it, pass it to all try_combine calls.
19380         (try_combine): Add last_combined_insn parameter, pass it instead of
19381         i3 to propagate_for_debug.
19382
19383 2011-04-07  Nick Clifton  <nickc@redhat.com>
19384
19385         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19386         to handle MDR <-> data register transfers.
19387         (movhi_internal): Likewise.
19388
19389 2011-04-07  Alan Modra  <amodra@gmail.com>
19390
19391         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19392         previous stack info.
19393
19394 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19395
19396         PR target/43920
19397         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
19398         flow_find_cross_jump.  Swap variables to implement backward replacement.
19399         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19400
19401 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19402
19403         PR target/43920
19404         * cfgcleanup.c (walk_to_nondebug_insn): New function.
19405         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
19406         and bb2.
19407         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19408         src1 or src2.  Redirect edges to the last basic block.  Update
19409         frequency and count on multiple basic blocks in case of fallthru.
19410
19411 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19412
19413         PR target/43920
19414         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19415         function.
19416         (old_insns_match_p): Change return type.  Replace return false/true
19417         with return dir_none/dir_both.  Use can_replace_by.
19418         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
19419         direction from dir_p.  Register replacement direction in dir, last_dir
19420         and afterlast_dir.  Handle new return type of old_insns_match_p using
19421         merge_dir.  Return replacement direction in dir_p.
19422         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19423         return type of old_insns_match_p.
19424         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19425         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19426         flow_find_cross_jump.
19427         * basic-block.h (enum replace_direction): New type.
19428         (flow_find_cross_jump): Add parameter to declaration.
19429
19430 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19431
19432         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19433         (AVXMODEDCVTPS2DQ): Ditto.
19434         (VEC_FLOAT_MODE): Ditto.
19435         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
19436         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19437         (<any_logic:code><mode>3): Use VF mode iterator.
19438         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19439         Use VF mode iterator.
19440         (copysign<mode>3): Use VF mode iterator.
19441         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
19442         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19443         (*<any_logic:code><MODEF:mode>3): Merge with
19444         *avx_<any_logic:code><MODEF:mode>3.
19445         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19446         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19447         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19448         (avx_cvtdq2ps<avxmodesuffix>): Remove.
19449         (sse2_cvtdq2ps): Use %v modifier.
19450         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19451         (avx_cvtps2dq<avxmodesuffix>): Remove.
19452         (sse2_cvtps2dq): Use %v modifier.
19453         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19454         (avx_cvttps2dq<avxmodesuffix>): Remove.
19455         (sse2_cvttps2dq): Use %v modifier.
19456         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19457         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19458         (sse2_cvtsd2siq): Fix insn template.
19459         (sse2_cvtsd2siq_2): Ditto.
19460         (sse2_cvttsd2siq): Ditto.
19461         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19462         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19463
19464 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19465
19466         * gcov-io.c: Use GCC Runtime Library Exception.
19467
19468 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
19469
19470         PR debug/48466
19471         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19472         as base_reg whatever register reg has been eliminated to, instead
19473         of hardcoding STACK_POINTER_REGNUM.
19474
19475 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19476
19477         * doc/tm.texi.in: Document C target hooks as separate from general
19478         target hooks.
19479         * doc/tm.texi: Regenerate.
19480         * genhooks.c (struct hook_desc): Add docname field.
19481         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
19482         docname field.
19483         (hook_array): Include c-target.def.
19484         (emit_documentation): Use docname field in output.
19485         (emit_init_macros): Take docname argument.  Only emit definitions
19486         for hooks matching docname.
19487         (main): Expect additional arguments in all cases.  Pass argument
19488         to emit_init_macros.
19489         * target.def: Move initial macro definitions and comments to
19490         target-hooks-macros.h.
19491         (gcc_targetcm): Move to c-family/c-target.def.
19492         * target.h (targetcm): Move declaration to c-family/c-target.h.
19493         * targhooks.c (default_handle_c_option): Move to
19494         c-family/c-opts.c.
19495         * targhooks.h (default_handle_c_option): Move declaration to
19496         c-family/c-common.h.
19497         * target-hooks-macros.h: New file.
19498         * config.gcc (target_has_targetcm): Define and use to add to
19499         c_target_objs and cxx_target_objs.
19500         * config/default-c.c: New file.
19501         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19502         of target.h and target-def.h.
19503         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19504         (darwin_objc_construct_string, darwin_cfstring_ref_p,
19505         darwin_check_cfstring_format_arg): Make static.
19506         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19507         TARGET_STRING_OBJECT_REF_TYPE_P,
19508         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19509         * config/darwin-protos.h (darwin_objc_construct_string,
19510         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19511         declare.
19512         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19513         TARGET_STRING_OBJECT_REF_TYPE_P,
19514         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19515         * config/t-darwin (darwin-c.o): Update dependencies.
19516         * system.h (TARGET_HAS_TARGETCM): Poison.
19517         * Makefile.in (TARGET_H): Update.
19518         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19519         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19520         (default-c.o): New target.
19521         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19522         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19523         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
19524         c-target.def.
19525         (build/genhooks.o): Update dependencies.
19526
19527 2011-04-06  Richard Guenther  <rguenther@suse.de>
19528
19529         * ipa-inline.c (enum inlining_mode): Remove.
19530         (cgraph_flatten): Use some other token.
19531         (cgraph_edge_early_inlinable_p): New function, split out from ...
19532         (cgraph_perform_always_inlining): New function, split out from ...
19533         (cgraph_decide_inlining_incrementally): ... here.
19534         (cgraph_mark_inline_edge): Adjust.
19535         (cgraph_early_inlining): Re-structure.
19536         (pass_early_inline): Require SSA form.
19537
19538 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
19539             Julian Brown  <julian@codesourcery.com>
19540             Mark Shinwell  <shinwell@codesourcery.com>
19541
19542         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19543         LO_REGS only for Thumb-1.
19544         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19545         be used in short instructions when optimising for size on Thumb-2.
19546
19547 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19548
19549         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19550         associated with user returns to be preserved.
19551
19552 2011-04-06  Tristan Gingold  <gingold@adacore.com>
19553
19554         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19555         symbol_queue_size, DBXOUT_DECR_NESTING,
19556         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19557         if XCOFF_DEBUGGING_INFO.
19558
19559 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19560
19561         * config/i386/i386.md (attribute isa): New.
19562         (attribute enabled): New.
19563         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19564         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19565         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19566         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19567         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19568         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19569         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19570         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19571
19572         * config/i386/sse.md (VF): New mode iterator.
19573         (VF1): Ditto.
19574         (VF2): Ditto.
19575         (VF_128): Ditto.
19576         (SSEMODEF4): Remove.
19577         (attribute sse): Handle V8SF and V4DF modes.
19578         (<absneg:code><mode>2): Use VF mode iterator.
19579         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
19580         mode iterator.
19581         (<plusminus_insn><mode>3): Use VF mode iterator.
19582         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19583         Use VF mode iterator.
19584         (<sse>_vm<plusminus_insn><mode>3): Merge with
19585         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
19586         (mul<mode>3): Use VF mode iterator.
19587         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
19588         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
19589         mode iterator.
19590         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19591         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
19592         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
19593         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
19594         mode iterator.
19595         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
19596         Use VF1 mode iterator.
19597         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
19598         (sqrt<VF2:mode>2): New expander.
19599         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
19600         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
19601         and sqrtv2df2.  Use VF mode iterator.
19602         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
19603         mode iterator.
19604         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
19605         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
19606         Use VF1 mode iterator.
19607         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
19608         (<smaxmin:code><mode>3): Use VF mode iterator.
19609         (*<smaxmin:code><mode>3_finite): Merge with
19610         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
19611         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19612         (<sse>_vm<smaxmin:code><mode>2): Merge with
19613         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
19614         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
19615         mode iterator.
19616         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
19617         mode iterator.
19618         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
19619         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
19620         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
19621         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
19622         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
19623         VF mode iterator.
19624         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
19625         Use VF_128 mode iterator.
19626         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
19627         mode iterator.
19628         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
19629         VF_128 mode iterator.
19630         (vcond<mode>): Use VF mode iterator.
19631         * config/i386/predicates.md (sse_comparison_operator): Merge with
19632         avx_comparison_float_operator.  Do not declare as special_predicate.
19633         * config/i386/i386.c (struct builtin_description): Update for renamed
19634         compare patterns.
19635         (ix86_expand_args_builtin): Ditto.
19636         (ix86_expand_sse_compare_mask): Ditto.
19637
19638 2011-04-06  Richard Guenther  <rguenther@suse.de>
19639
19640         * tree-inline.c (estimate_num_insns): For calls simply account
19641         for all passed arguments and a used return value.
19642
19643 2011-04-06  Richard Guenther  <rguenther@suse.de>
19644
19645         PR tree-optimization/47663
19646         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
19647         call_stmt_time fields.
19648         (cgraph_edge_inlinable_p): Declare.
19649         (cgraph_edge_recursive_p): New inline function.
19650         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
19651         (cgraph_clone_edge): Copy it.
19652         * ipa-inline.c (cgraph_estimate_edge_time): New function.
19653         Account for call stmt time.
19654         (cgraph_estimate_time_after_inlining): Take edge argument.
19655         (cgraph_estimate_edge_growth): Account call stmt size.
19656         (cgraph_estimate_size_after_inlining): Take edge argument.
19657         (cgraph_mark_inline_edge): Adjust.
19658         (cgraph_check_inline_limits): Likewise.
19659         (cgraph_recursive_inlining_p): Remove.
19660         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19661         (cgraph_decide_recursive_inlining): Take edge argument and
19662         adjust.
19663         (cgraph_decide_inlining_of_small_functions): Do not avoid
19664         diags for recursive inlining here.
19665         (cgraph_flatten): Adjust.
19666         (cgraph_decide_inlining_incrementally): Likewise.
19667         (estimate_function_body_sizes): Remove call cost handling.
19668         (compute_inline_parameters): Initialize caller edge call costs.
19669         (cgraph_estimate_edge_growth): New function.
19670         (cgraph_estimate_growth): Use it.
19671         (cgraph_edge_badness): Likewise.
19672         (cgraph_check_inline_limits): Take an edge argument.
19673         (cgraph_decide_inlining_of_small_functions): Adjust.
19674         (cgraph_decide_inlining): Likewise.
19675         * tree-inline.c (estimate_num_insns): Only account for call
19676         return value if it is used.
19677         (expand_call_inline): Avoid diagnostics on recursive inline
19678         functions here.
19679         * lto-cgraph.c (lto_output_edge): Output edge call costs.
19680         (input_edge): Input edge call costs.
19681
19682 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19683
19684         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19685
19686 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
19687
19688         * doc/invoke.texi (Spec Files): Fix typo.
19689
19690 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19691
19692         * profile.c (branch_prob): Move declaration of local variable.  Remove
19693         obsolete ??? comment.  Expand the location explicitly instead of using
19694         the LOCATION_FILE and LOCATION_LINE macros.
19695
19696 2011-04-06  Wei Guozhi  <carrot@google.com>
19697
19698         PR target/47855
19699         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19700         (arm_cond_branch): Likewise.
19701         (arm_cond_branch_reversed): Likewise.
19702         (arm_jump): Likewise.
19703         (push_multi): Likewise.
19704         * config/arm/constraints.md (Py): New constraint.
19705
19706 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19707
19708         PR bootstrap/48471
19709         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19710         Move these...
19711         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19712         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19713         #ifdef DBX_DEBUGGING_INFO.
19714
19715 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
19716
19717         PR bootstrap/48403
19718         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19719         if old and new states differ.
19720
19721 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19722
19723         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19724         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19725         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19726         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19727         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19728         mcfv4e): Use Alias.
19729         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19730         ColdFire options to -mcpu= options.
19731
19732 2011-04-05  Jeff Law  <law@redhat.com>
19733
19734         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19735         check if BB is a successor of LOOP->header and return
19736         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19737
19738 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19739
19740         * cprop.c (struct reg_use): Remove.
19741         (reg_use_table): Make an array of RTX.
19742         (find_used_regs, constprop_register, local_cprop_pass,
19743         bypass_block): Simplify users of reg_use_table.
19744         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
19745         on one of the uses found by find_used_regs.
19746
19747 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19748
19749         PR bootstrap/48469
19750         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19751         declaration.
19752
19753 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19754
19755         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19756         as an rtx.
19757         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19758
19759 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19760
19761         PR middle-end/48441
19762         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19763
19764 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19765
19766         * combine.c: Include obstack.h.
19767         (struct insn_link): Define.
19768         (uid_log_links): Adjust type.
19769         (FOR_EACH_LOG_LINK): New macro.
19770         (insn_link_obstack): Declare.
19771         (alloc_insn_link): Define.
19772         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
19773         type of link variables.
19774         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19775         (try_combine, record_promoted_values, distribute_notes): Likewise.
19776         (distribute_links): Likewise.  Tweak prototype.
19777         (clear_log_links): Delete.
19778         (adjust_for_new_dest): Call alloc_insn_link.
19779         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19780
19781 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19782
19783         * gcse.c (modify_mem_list): Convert to an array of VECs.
19784         (canon_modify_mem_list, compute_transp): Tweak formatting.
19785         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
19786         (load_killed_in_block_p): Likewise.
19787         (record_last_mem_set_info): Likewise.
19788         (clear_modify_mem_tables): Likewise.
19789
19790 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19791
19792         PR middle-end/48461
19793         * function.c (emit_use_return_register_into_block): Only define if
19794         HAVE_return.
19795
19796 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
19797
19798         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19799
19800 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19801
19802         * config/rx/rx-opts.h: New.
19803         * config/rx/rx.c (rx_cpu_type): Remove.
19804         (rx_handle_option): Don't assert that global structures are in
19805         use.  Access variables via opts pointer.  Defer most handling of
19806         OPT_mint_register_.  Use error_at.
19807         (rx_option_override): Handle deferred OPT_mint_register_ here.
19808         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19809         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19810         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19811         (rx_cpu_types): New Enum and EnumValue entries.
19812         (mint-register=): Use Defer and use Var accordingly.
19813
19814 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19815
19816         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19817         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19818         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19819         Move these...
19820         (debug_free_queue, debug_nesting, symbol_queue_index):
19821         ...and these...
19822         * dbxout.c: ...to here.  Make static.
19823
19824 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19825
19826         * gcse.c (modify_pair): Define.  Define a VEC of it.
19827         (canon_modify_mem_list): Convert to an array of VECs.
19828         (free_insn_expr_list_list): Delete.
19829         (clear_modify_mem_tables): Call VEC_free instead.
19830         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19831         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19832         (canon_list_insert, compute_transp): Likewise.
19833
19834 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19835
19836         PR target/43920
19837         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19838         for size.
19839
19840 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19841
19842         PR target/43920
19843         * function.c (emit_use_return_register_into_block): New function.
19844         (thread_prologue_and_epilogue_insns): Use
19845         emit_use_return_register_into_block.
19846
19847 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19848
19849         PR target/43920
19850         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
19851         insn.
19852
19853 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19854
19855         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
19856
19857 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
19858
19859         * config/arm/arm.md (define_constants for unspec): Replace with
19860         define_c_enum.
19861         (define_constants for unspecv): Replace with define_c_enum.
19862         * config/arm/neon.md (define_constants for unspec): Replace with
19863         define_c_enum.
19864
19865 2011-04-04  Richard Henderson  <rth@redhat.com>
19866
19867         PR bootstrap/48400
19868         * dwarf2out.c (output_line_info): Always emit line info from
19869         at least one section.
19870         (dwarf2out_init): Create text_section_line_info here ...
19871         (set_cur_line_info_table): ... not here.
19872
19873 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19874
19875         PR target/48380
19876         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
19877         not called.
19878
19879         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
19880
19881 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
19882
19883         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
19884         (expr_equiv_p): Remove.
19885         (insert_set_in_table): Look at <dest, src> pair instead of expr.
19886         (hash_scan_set): Update call to insert_set_in_table.
19887         (dump_hash_table): Dump <dest, src> pair.
19888         (lookup_set): Simplify.  Lookup <dest, src> pair.
19889         (compute_transp): Remove, fold heavily simplified code into...
19890         (compute_local_properties): ...here.  Expect COMP and TRANSP
19891         unconditionally.
19892         (find_avail_set): Take set directly from struct expr.
19893         (find_bypass-set): Likewise.
19894         (bypass_block): Likewise.
19895         (cprop_insn): Likewise.  Remove redundant INSN_P test.
19896
19897         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
19898         checks on form of COND from find_implicit_sets to here.
19899         (find_implicit_sets): Cleanup control flow. Split critical edges
19900         if it exposes implicit sets.  Allocate/resize implicit_sets as
19901         necessary.
19902         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
19903         changed something.  Run df_analyze after find_implicit_sets if any
19904         edges were split.  Do not allocate implicit_sets here.
19905
19906         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
19907         (gcse_obstack): Renamed to cprop_obstack.
19908         (GNEW, GNEWVEC, GNEWVAR): Remove.
19909         (gmalloc): Remove.
19910         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
19911         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
19912         (gcse_alloc): Likewise, and rename to cprop_alloc.
19913         (alloc_gcse_men, free_gcse_mem): Remove.
19914         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
19915         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
19916         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
19917
19918         * cprop.c (oprs_not_set_p): Remove.
19919         (mark_set, mark_clobber): Remove.
19920         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
19921         (reg_not_set_p): New function.
19922         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
19923         (cprop_insn): Likewise.
19924         (cprop_jump): Use FOR_EACH_EDGE.
19925
19926 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
19927
19928         PR bootstrap/48403
19929         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
19930         (rank_for_schedule): Use scheduled_insns vector instead of
19931         last_scheduled_insn.
19932         (ok_for_early_queue_removal): Likewise.
19933         (queue_to_ready): Search forward in nonscheduled_insns_begin if
19934         we have a dbg_cnt.
19935         (choose_ready): Likewise.
19936         (commit_schedule): Use VEC_iterate.
19937         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
19938         a dbg_cnt, use it and ensure the first insn is in the ready list.
19939         (haifa_sched_init): Allocate scheduled_insns.
19940         (sched_extend_ready_list): Don't allocate it; reserve space.
19941         (haifa_sched_finish): Free it.
19942
19943 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19944
19945         * optc-gen.awk: Always remove type from Variable entry before
19946         recording in var_seen.
19947
19948 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
19949
19950         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
19951         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
19952         call to tidy_fallthru_edges.
19953
19954 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19955
19956         * doc/options.texi (ToLower): Document.
19957         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
19958         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
19959         * opts.h (cl_option): Add cl_tolower field.
19960         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
19961         arguments with lowercase strings.
19962         * config/rx/rx.opt (mcpu=): Add ToLower.
19963         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
19964         argument.
19965
19966 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19967
19968         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
19969
19970 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19971
19972         * config/vax/vax.c: Include reload.h.
19973
19974 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
19975
19976         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
19977         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19978         (sparc_preferred_reload_class): New function.
19979
19980 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
19981
19982         PR debug/48401
19983         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19984         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
19985
19986 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
19987
19988         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
19989         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
19990
19991 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
19992
19993         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
19994         (ASM_OUTPUT_ALIGNED_BSS): Define.
19995
19996 2011-04-03  Michael Matz  <matz@suse.de>
19997
19998         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
19999         and next_slot members.
20000         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
20001         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
20002         (lto_streamer_cache_append): Declare.
20003         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
20004         unsigned index, remove offset parameter, ensure that we append
20005         or update existing entries.
20006         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
20007         parameter, update next_slot for append.
20008         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
20009         parameter.
20010         (lto_streamer_cache_insert_at): Likewise.
20011         (lto_streamer_cache_append): New function.
20012         (lto_streamer_cache_lookup): Use unsigned index.
20013         (lto_streamer_cache_get): Likewise.
20014         (lto_record_common_node): Don't test tree_node_can_be_shared.
20015         (preload_common_node): Adjust call to lto_streamer_cache_insert.
20016         (lto_streamer_cache_delete): Don't free offsets member.
20017         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
20018         (lto_output_string_with_length): Use lto_output_data_stream.
20019         (lto_output_tree_header): Remove ix parameter, don't write it.
20020         (lto_output_builtin_tree): Likewise.
20021         (lto_write_tree): Adjust callers to above, don't track and write
20022         offset, write unsigned index.
20023         (output_unreferenced_globals): Don't emit all global vars.
20024         (write_global_references): Use unsigned indices.
20025         (lto_output_decl_state_refs): Likewise.
20026         (write_symbol): Likewise.
20027         * lto-streamer-in.c (lto_input_chain): Move earlier.
20028         (input_function): Use unsigned index.
20029         (input_alias_pairs): Don't read and then ignore all global vars.
20030         (lto_materialize_tree): Remove ix_p parameter, don't read index,
20031         don't pass it back, use lto_streamer_cache_append.
20032         (lto_register_var_decl_in_symtab): Use unsigned index.
20033         (lto_register_function_decl_in_symtab): Likewise.
20034         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
20035         index.
20036         (lto_get_builtin_tree): Don't read index, use
20037         lto_streamer_cache_append.
20038         (lto_read_tree): Adjust call to lto_materialize_tree.
20039
20040         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
20041         don't use function calls in arguments to MIN.
20042
20043         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
20044         twice.
20045
20046         * gimple.c (gimple_type_leader_entry): Mark deletable.
20047
20048 2011-04-03  Alan Modra  <amodra@gmail.com>
20049
20050         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
20051
20052 2011-04-03  Michael Matz  <matz@suse.de>
20053
20054         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
20055         an integer.
20056         * tree.h (tree_decl_non_common.vindex): Adjust comment.
20057
20058 2011-04-03  Michael Matz  <matz@suse.de>
20059
20060         * cgraphbuild.c (record_reference): Canonicalize constructor values.
20061         * gimple-fold.c (canonicalize_constructor_val): Accept being called
20062         without function context.
20063         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20064         current_function_decl and cfun.
20065
20066 2011-04-03  Michael Matz  <matz@suse.de>
20067
20068         * tree.c (decl_init_priority_insert): Don't create entry for
20069         default priority.
20070         (decl_fini_priority_insert): Ditto.
20071         (fields_compatible_p, find_compatible_field): Remove.
20072         * tree.h (fields_compatible_p, find_compatible_field): Remove.
20073         * gimple.c (gimple_compare_field_offset): Adjust block comment.
20074
20075 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
20076
20077         * combine.c (try_combine): Remove useless local variable.
20078
20079 2011-04-03  Richard Guenther  <rguenther@suse.de>
20080             Ira Rosen  <ira.rosen@linaro.org>
20081
20082         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20083         non-variable offsets and compare the remaining bases of the two
20084         accesses instead of looking for exact same data-ref.
20085
20086 2011-04-02  Kai Tietz  <ktietz@redhat.com>
20087
20088         PR target/48416
20089         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20090
20091         * i386.c (ix86_is_msabi_thiscall): New helper function.
20092         (ix86_is_type_thiscall): New helper function.
20093         (ix86_comp_type_attributes): Handle thiscall for method-functions
20094         special.
20095         (init_cumulative_args): Likewise.
20096         (find_drap_reg): Likewise.
20097         (ix86_static_chain): Likewise.
20098         (x86_this_parameter): Likewise.
20099         (x86_output_mi_thunk): Likewise.
20100
20101 2011-04-01  Olivier Hainque  <hainque@adacore.com>
20102             Nicolas Setton  <setton@adacore.com>
20103             Eric Botcazou  <ebotcazou@adacore.com>
20104
20105         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20106         (add_gnat_descriptive_type_attribute): New function.
20107         (gen_array_type_die): Call it.
20108         (gen_enumeration_type_die): Likewise.
20109         (gen_struct_or_union_type_die): Likewise.
20110         (modified_type_die): Likewise.
20111         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20112         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20113         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20114
20115 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20116
20117         PR bootstrap/48148
20118         * dwarf2out.c (resolve_addr): Don't call force_decl_die
20119         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20120
20121         Revert:
20122         2011-03-17  Richard Guenther  <rguenther@suse.de>
20123
20124         PR bootstrap/48148
20125         * lto-cgraph.c (input_overwrite_node): Clear the abstract
20126         origin for decls in other ltrans units.
20127         (input_varpool_node): Likewise.
20128
20129 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20130
20131         PR middle-end/48335
20132         * expr.c (expand_assignment): Handle all possibilities
20133         if TO_RTX is CONCAT.
20134         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20135         (store_split_bit_field): If SUBREG_REG (op0) or
20136         op0 itself has smaller mode than word, return it
20137         for offset 0 and const0_rtx for out-of-bounds stores.
20138         If word is const0_rtx, skip it.
20139
20140 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
20141
20142         * config/h8300/h8300.c (print_operand_address): Rename to...
20143         (h8300_print_operand_address): ...this. Make static. Adjust comments.
20144         Call h8300_print_operand and h8300_print_operand_address instead of
20145         print_operand and print_operand_address. Declare.
20146         (print_operand): Renake to...
20147         (h8300_print_operand): ...this. Make static. Adjust comments.
20148         Call h8300_print_operand instead of print_operand. Declare.
20149         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
20150         (h8300_register_move_cost): Likewise.
20151         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
20152         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
20153         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
20154         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
20155         * config/h8300/h8300-protos.h (print_operand): Delete.
20156         (print_operand_address): Delete.
20157
20158 2011-04-01  Richard Henderson  <rth@redhat.com>
20159
20160         PR 48400
20161         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
20162         in strict mode before dwarf4.  Re-order tests to early out
20163         before switching sections.
20164
20165 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
20166
20167         * config/h8300/constraints.md: New file.
20168         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
20169         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
20170         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
20171         * config/h8300/predicates.md (bit_operand): Likewise.
20172         (incdec_operand): Use satisfies_constraint_M and
20173         satisfies_constraint_O.  Don't use C code block.
20174         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
20175         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
20176         (compute_mov_length): Use satisfies_constraint_G.
20177         (fix_bit_operand): Use satisfies_constraint_U.
20178         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
20179         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
20180         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
20181         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
20182         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
20183         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
20184         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20185         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
20186         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
20187         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
20188         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
20189         (EXTRA_MEMORY_CONSTRAINT): Delete.
20190
20191 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
20192             Michael Meissner  <meissner@linux.vnet.ibm.com>
20193
20194         PR target/48262
20195         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
20196         operands, as per the specifications.
20197
20198         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
20199         (vec_extract_evenv4sf): Ditto.
20200         (vec_extract_evenv8hi): Ditto.
20201         (vec_extract_evenv16qi): Ditto.
20202         (vec_extract_oddv4si): Ditto.
20203
20204 2011-03-31  Mark Wielaard  <mjw@redhat.com>
20205
20206         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
20207         high_pc attribute if the CU has no associated code. Only output
20208         DW_AT_entry_pc for CU if not generating strict dwarf and
20209         dwarf_version < 4.
20210
20211 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
20212
20213         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
20214         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
20215         out of ...
20216         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
20217         * final.c (final_start_function): Call the new function rather
20218         than using a NULL argument for dwarf2out_frame_debug.
20219
20220         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
20221         that contains the prologue.
20222
20223         * haifa-sched.c (queue_insn): New arg REASON.  All callers
20224         changed.  Print it in debugging output.
20225
20226         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
20227
20228         * sched-ebb.c (begin_schedule_ready): Remove second argument.
20229         Split most of the code into...
20230         (begin_move_insn): ... here.  New function.
20231         (ebb_sched_info): Add a pointer to it.
20232         * haifa-sched.c (scheduled_insns): New static variable.
20233         (sched_extend_ready_list): Allocate it.
20234         (schedule_block): Use it to record the order of scheduled insns.
20235         Perform RTL changes to move insns only after all scheduling
20236         decisions have been made.
20237         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
20238         begin_move_insn field.
20239         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
20240         * sched-int.h (struct haifa_sched_info): Remove second argument
20241         from begin_schedule_ready hook.  Add new member begin_move_insn.
20242         * sched-rgn.c (begin_schedule_ready): Remove second argument.
20243         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
20244
20245         * haifa-sched.c (prune_ready_list): New function, broken out of
20246         schedule_block.
20247         (schedule_block): Use it.
20248
20249 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20250
20251         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
20252
20253 2011-04-01  Kai Tietz  <ktietz@redhat.com>
20254
20255         * config.gcc (*-*-mingw*): Allow as option the
20256         posix threading model.
20257         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
20258         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20259         definition.
20260         (CPP_SPEC): Add pthread/no-pthread handling.
20261         (LIB_SPEC): Likewise.
20262         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
20263         (LIB_SPEC): Likewise.
20264         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
20265         flag to pass -pthread option for shared libgcc build.
20266         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
20267         for shared libgcc build.
20268         * config/i386/t-mingw-pthread: New file.
20269         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
20270         New define to enable use of library pthread by default.
20271         * config/i386/mingw.opt (pthread): New driver option.
20272         (no-pthread): New driver option.
20273         * config/i386/cygming.opt: Make sure trailing empty line is retained.
20274         * config/i386/mingw-w64.opt: Likewise.
20275
20276 2011-04-01  Gary Funck  <gary@intrepid.com>
20277
20278         * c-decl.c (grokdeclarator): Fix formatting.
20279
20280 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20281
20282         * expr.c (emit_block_move_via_movmem): Use n_generator_args
20283         instead of n_operands.
20284         (set_storage_via_setmem): Likewise.
20285         * optabs.c (maybe_gen_insn): Likewise.
20286         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
20287         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
20288         (mips_expand_builtin_direct): Likewise.
20289         * config/spu/spu.c (expand_builtin_args): Likewise.
20290
20291 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20292
20293         * recog.h (insn_data_d): Add n_generator_args.
20294         * genoutput.c (data): Likewise.
20295         (output_insn_data): Print it.
20296         (max_opno, num_dups): Delete.
20297         (scan_operands): Just fill in "d->operand[...]".
20298         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
20299
20300 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20301
20302         * gensupport.h (pattern_stats): New structure.
20303         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
20304         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
20305         (max_operand_1, max_operand_vec): Delete.
20306         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
20307
20308 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
20309
20310         * emit-rtl.c (emit_pattern_after_setloc): New function.
20311         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
20312         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
20313         (emit_pattern_after): New function.
20314         (emit_insn_after, emit_jump_insn_after): Call it.
20315         (emit_call_insn_after, emit_debug_insn_after): Likewise.
20316         (emit_pattern_before_setloc): New function.
20317         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
20318         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
20319         Likewise.
20320         (emit_pattern_before): New function.
20321         (emit_insn_before, emit_jump_insn_before): Call it.
20322         (emit_call_insn_before, emit_debug_insn_before): Likewise.
20323
20324 2011-03-31  Richard Henderson  <rth@redhat.com>
20325
20326         * dwarf2out.c (dw_separate_line_info_ref): Remove.
20327         (dw_separate_line_info_entry): Remove.
20328         (enum dw_line_info_opcode): New.
20329         (dw_line_info_entry): Use it.
20330         (dw_line_info_table, dw_line_info_table_p): New.
20331         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
20332         (line_info_table, line_info_label_num): Remove.
20333         (line_info_table_in_use): Remove.
20334         (separate_line_info_table): Remove.
20335         (separate_line_info_table_allocated): Remove.
20336         (separate_line_info_table_in_use): Remove.
20337         (LINE_INFO_TABLE_INCREMENT): Remove.
20338         (line_info_label_num): New.
20339         (cur_line_info_table): New.
20340         (text_section_line_info, cold_text_section_line_info): New.
20341         (separate_line_info): New.
20342         (SEPARATE_LINE_CODE_LABEL): Remove.
20343         (print_dwarf_line_table): Remove.
20344         (debug_dwarf): Don't dump it.
20345         (output_one_line_info_table): New.
20346         (output_line_info): Use it.
20347         (new_line_info_table): New.
20348         (set_cur_line_info_table): New.
20349         (dwarf2out_switch_text_section): Use it.
20350         (dwarf2out_begin_function): Likewise.
20351         (push_dw_line_info_entry): New.
20352         (dwarf2out_source_line): Rewrite for new line info tables.
20353         (dwarf2out_init): Remove dead initailizations.
20354
20355 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
20356
20357         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
20358         various flags.
20359         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
20360         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
20361         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
20362         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
20363         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
20364         * opt-functions.awk (flag_init, switch_bit_fields): New.
20365         (switch_flags): Don't handle flags moved to bit-fields.  Don't
20366         generate CL_MISSING_OK or CL_SAVE.
20367         * optc-gen.awk: Update to generate bit-field output as well as
20368         flags field.
20369         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20370         bit-field instead of CL_REJECT_DRIVER flag.
20371         * opts-common.c (generate_canonical_option,
20372         decode_cmdline_option): Use bit-fields instead of CL_* flags.
20373         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20374         instead of CL_REJECT_NEGATIVE flag.
20375         * toplev.c (print_switch_values): Use cl_report bit-field instead
20376         of CL_REPORT flag.
20377
20378 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20379
20380         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20381         a zero minimum index only if it is redundant.
20382
20383 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
20384
20385         PR rtl-optimization/48381
20386         * ira-color.c (assign_hard_reg): Use hard reg set intersection
20387         instead of ira_class_hard_reg_index for calculating conflicting
20388         hard registers.
20389
20390 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
20391
20392         * cprop.c: Clean up hash table building.
20393         (reg_avail_info): Remove.
20394         (oprs_available_p): Remove.
20395         (record_last_reg_set_info): Remove.
20396         (record_last_set_info): Remove.
20397         (reg_available_p): New function.
20398         (gcse_constant_p): Do not treat unfolded conditions as constants.
20399         (make_set_regs_unavailable): New function.
20400         (hash_scan_set): Simplify with new reg_available_p.
20401         (compute_hash_table_work): Traverse insns stream only once.
20402         Do not compute reg_avail_info. Traverse insns in reverse order.
20403         Record implicit sets after recording explicit sets from the block.
20404
20405 2011-03-31  Michael Matz  <matz@suse.de>
20406
20407         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20408
20409 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
20410
20411         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20412         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20413         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20414         (h8300_mode_dependent_address_p): New function.
20415         (h8300_get_index): Make static.
20416
20417 2011-03-31  Jeff Law  <law@redhat.com>
20418
20419         * reload1.c (elimination_effects): Fix typo in recent change.
20420
20421         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20422         typo potentially leading to null pointer dereference.
20423
20424         * caller-save.c (new_saved_hard_reg): Eliminate return value.
20425         (setup_save_areas): Corresponding changes to avoid useless
20426         assignments.
20427
20428         * jump.c (reversed_comparison_code_parts): Avoid successive return
20429         statements when REVERSE_CONDITION is defined.
20430
20431         * expr.c (expand_assignment): Avoid useless assignments.
20432         (expand_expr_real_1): Likewise.
20433         (expand_expr_real_2): Avoid useless statements.
20434
20435         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20436
20437         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20438
20439         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20440         statements.
20441
20442         * stmt.c (expand_expr_stmt): Avoid useless assignment.
20443
20444 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
20445
20446         PR target/47109
20447         * doc/tm.texi.in (TARGET_VERSION): Remove.
20448         * doc/tm.texi: Regenerate.
20449         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20450         * collect2.c (main): Don't use TARGET_VERSION.
20451         * mips-tdump.c (main): Don't use TARGET_VERSION.
20452         * mips-tfile.c (main): Don't use TARGET_VERSION.
20453         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20454         * config/rs6000/vxworksae.h: Remove.
20455         * config/alpha/alpha.h (TARGET_VERSION): Remove.
20456         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20457         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20458         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20459         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20460         * config/arm/arm.h (TARGET_VERSION): Remove.
20461         * config/arm/coff.h (TARGET_VERSION): Remove.
20462         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20463         * config/arm/elf.h (TARGET_VERSION): Remove.
20464         * config/arm/freebsd.h (TARGET_VERSION): Remove.
20465         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20466         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20467         * config/arm/pe.h (TARGET_VERSION): Remove.
20468         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20469         * config/arm/semi.h (TARGET_VERSION): Remove.
20470         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20471         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20472         * config/arm/vxworks.h (TARGET_VERSION): Remove.
20473         * config/avr/avr.h (TARGET_VERSION): Remove.
20474         * config/bfin/bfin.h (TARGET_VERSION): Remove.
20475         * config/fr30/fr30.h (TARGET_VERSION): Remove.
20476         * config/frv/frv.h (TARGET_VERSION): Remove.
20477         * config/h8300/h8300.h (TARGET_VERSION): Remove.
20478         * config/i386/cygwin.h (TARGET_VERSION): Remove.
20479         * config/i386/darwin.h (TARGET_VERSION): Remove.
20480         * config/i386/darwin64.h (TARGET_VERSION): Remove.
20481         * config/i386/djgpp.h (TARGET_VERSION): Remove.
20482         * config/i386/freebsd.h (TARGET_VERSION): Remove.
20483         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20484         * config/i386/gnu.h (TARGET_VERSION): Remove.
20485         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20486         * config/i386/i386elf.h (TARGET_VERSION): Remove.
20487         * config/i386/linux.h (TARGET_VERSION): Remove.
20488         * config/i386/linux64.h (TARGET_VERSION): Remove.
20489         * config/i386/lynx.h (TARGET_VERSION): Remove.
20490         * config/i386/mingw32.h (TARGET_VERSION): Remove.
20491         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20492         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20493         * config/i386/netware.h (TARGET_VERSION): Remove.
20494         * config/i386/nto.h (TARGET_VERSION): Remove.
20495         * config/i386/openbsd.h (TARGET_VERSION): Remove.
20496         * config/i386/vxworks.h (TARGET_VERSION): Remove.
20497         * config/ia64/elf.h (TARGET_VERSION): Remove.
20498         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20499         * config/ia64/hpux.h (TARGET_VERSION): Remove.
20500         * config/ia64/linux.h (TARGET_VERSION): Remove.
20501         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20502         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20503         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20504         * config/lm32/lm32.h (TARGET_VERSION): Remove.
20505         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20506         * config/m32c/m32c.h (TARGET_VERSION): Remove.
20507         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20508         * config/m32r/m32r.h (TARGET_VERSION): Remove.
20509         * config/m68k/linux.h (TARGET_VERSION): Remove.
20510         * config/m68k/m68k.h (TARGET_VERSION): Remove.
20511         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20512         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20513         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20514         * config/mep/mep.h (TARGET_VERSION): Remove.
20515         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20516         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20517         * config/mips/iris6.h (MACHINE_TYPE): Remove.
20518         * config/mips/linux.h (TARGET_VERSION): Remove.
20519         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20520         * config/mips/vxworks.h (TARGET_VERSION): Remove.
20521         * config/mmix/mmix.h (TARGET_VERSION): Remove.
20522         * config/mn10300/linux.h (TARGET_VERSION): Remove.
20523         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20524         * config/pa/pa.h (TARGET_VERSION): Remove.
20525         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20526         * config/picochip/picochip.h (TARGET_VERSION): Remove.
20527         * config/rs6000/aix.h (TARGET_VERSION): Remove.
20528         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20529         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20530         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20531         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20532         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20533         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20534         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20535         * config/rs6000/linux.h (TARGET_VERSION): Remove.
20536         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20537         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20538         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20539         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20540         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20541         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20542         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20543         * config/s390/linux.h (TARGET_VERSION): Remove.
20544         * config/s390/s390.h (TARGET_VERSION): Remove.
20545         * config/s390/tpf.h (TARGET_VERSION): Remove.
20546         * config/score/score.h (TARGET_VERSION): Remove.
20547         * config/sh/linux.h (TARGET_VERSION): Remove.
20548         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20549         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20550         * config/sh/sh.h (TARGET_VERSION): Remove.
20551         * config/sh/sh64.h (TARGET_VERSION): Remove.
20552         * config/sh/superh.h (TARGET_VERSION): Remove.
20553         * config/sh/vxworks.h (TARGET_VERSION): Remove.
20554         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20555         * config/sparc/linux.h (TARGET_VERSION): Remove.
20556         * config/sparc/linux64.h (TARGET_VERSION): Remove.
20557         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20558         TARGET_NAME32, TARGET_NAME): Remove.
20559         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20560         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20561         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20562         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20563         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20564         * config/spu/spu.h (TARGET_VERSION): Remove.
20565         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20566         * config/v850/v850.h (TARGET_VERSION): Remove.
20567         * config/vax/linux.h (TARGET_VERSION): Remove.
20568         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20569         * config/xtensa/elf.h (TARGET_VERSION): Remove.
20570         * config/xtensa/linux.h (TARGET_VERSION): Remove.
20571
20572 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20573
20574         PR target/48142
20575         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20576         frame-related from frame-unrelated adjustments to the stack pointer.
20577
20578 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
20579
20580         * common.opt (fdebug-types-section): Move earlier.
20581         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20582
20583 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
20584
20585         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20586         var.
20587
20588 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
20589
20590         * tree.h (CASE_CHAIN): Define.
20591         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
20592         (gimple_redirect_edge_and_branch): Likewise.
20593
20594 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20595
20596         PR middle-end/48367
20597         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
20598         calculation.
20599
20600 2011-03-30  Jeff Law  <law@redhat.com>
20601
20602         * PR bootstrap/48371
20603         * reload1.c (reload): Fix botch in last change.
20604
20605         * reload.h (struct reload): Fix typo introduced in last change.
20606
20607 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20608
20609         * config/arm/arm.opt (mhard-float, msoft-float): Mark
20610         Undocumented.  Remove help text.
20611         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
20612         -mhard-float.
20613
20614 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20615
20616         * doc/options.texi (NegativeAlias): Document.
20617         (Alias): Mention NegativeAlias.
20618         * opt-functions.awk: Handle NegativeAlias.
20619         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
20620         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
20621         * opts.h (CL_NEGATIVE_ALIAS): Define.
20622         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
20623         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
20624         OPT_mspe_.
20625         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
20626         Alias entries.
20627         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20628         mno-spe and mno-isel instead of mspe=no and -misel=no.
20629
20630 2011-03-29  Mark Wielaard  <mjw@redhat.com>
20631
20632         * common.opt (fdebug-types-section): New flag.
20633         * doc/invoke.texi: Document new -fno-debug-types-section flag.
20634         * dwarf2out.c (use_debug_types): New define.
20635         (struct die_struct): Mark die_id with GTY desc use_debug_types.
20636         (print_die): Guard output of type unit signatures using
20637         use_debug_types.
20638         (build_abbrev_table): Replace assert of dwarf_version >= 4
20639         with assert on use_debug_types.
20640         (size_of_die): Likewise.
20641         (unmark_dies): Likewise.
20642         (value_format): Decide AT_ref_external form on use_debug_types.
20643         (output_die): Replace dwarf_version version check guard with
20644         use_debug_types where appropriate.
20645         (modified_type_die): Likewise.
20646         (gen_reference_type_die): Likewise.
20647         (dwarf2out_start_source_file): Likewise.
20648         (dwarf2out_end_source_file): Likewise.
20649         (prune_unused_types_walk_attribs): Likewise.
20650         (dwarf2out_finish): Likewise.
20651
20652 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20653
20654         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
20655
20656 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20657
20658         PR rtl-optimization/48332
20659         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20660         mode of input operand N and modeN to its actual mode.
20661
20662 2011-03-30  Jeff Law  <law@redhat.com>
20663
20664         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20665         define accessor macro.
20666         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20667         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20668         (reg_equiv_init): Likewise.
20669         (reg_equivs_size): New variable.
20670         (reg_equiv_init_size): Remove.
20671         (allocate_initial_values): Move prototype to here from....
20672         * integrate.h (allocate_initial_values): Remove prototype.
20673         * integrate.c: Include reload.h.
20674         (allocate_initial_values): Corresponding changes.
20675         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20676         (fix_reg_equiv_init, no_equiv): Corresponding changes.
20677         (update_equiv_regs): Corresponding changes.
20678         (ira): Corresponding changes.
20679         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20680         (push_secondary_reload): Corresponding changes.
20681         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20682         (make_memloc, find_reloads_address): Corresponding changes.
20683         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20684         (find_reloads_address_1): Corresponding changes.
20685         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20686         (refers_to_regno_for_reload_p): Corresponding changes.
20687         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20688         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20689         * reload1.c: Include ggc.h.
20690         (grow_reg_equivs): New function.
20691         (replace_pseudos_in, reload): Corresponding changes.
20692         (calculate_needs_all_insns, alter_regs): Corresponding changes.
20693         (eliminate_regs_1, elimination_effects): Corresponding changes.
20694         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20695         (delete_output_reload): Likewise.
20696         * caller-save.c (mark_referenced_regs): Corresponding changes.
20697         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20698         * frv/predicates.md (frv_load_operand): Corresponding changes.
20699         * microblaze/microblaze.c (double_memory_operand): Corresponding
20700         changes.
20701         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20702         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20703         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20704         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20705         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20706         changes.
20707         * pa/pa.c (emit_move_sequence): Corresponding changes.
20708         * vax/vax.c (nonindexed_address_p): Corresponding changes.
20709
20710 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20711
20712         PR target/47551
20713         * config/arm/arm.c (coproc_secondary_reload_class): Handle
20714         structure modes.  Don't check neon_vector_mem_operand for
20715         vector or structure modes.
20716
20717 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20718             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20719
20720         PR target/43590
20721         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20722         operand 1 and reshuffle the operands to match.
20723         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20724
20725 2011-03-30  Christian Schüler  <cschueler@gmx.de>
20726
20727         PR driver/48208
20728         * config/c.opt (F): Added 'Driver' to -F option.
20729
20730         PR driver/48260
20731         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20732           handler function.
20733         * config/darwin.opt: Added '-arch' option.
20734
20735 2011-03-30  Nick Clifton  <nickc@redhat.com>
20736
20737         * config/rx/rx.md: Add peepholes and patterns to combine
20738         extending loads and simple arithmetic instructions.
20739         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20740         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20741         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20742         modes to use pre-decrement and post-increment addressing.
20743         (rx_is_restricted_memory_address): Add range checking of REG+INT
20744         addresses.
20745         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
20746         (rx_memory_move_cost): Adjust cost of stores.
20747         (rx_adjust_insn_length): New function.
20748
20749 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
20750
20751         PR c/48305
20752         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20753         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20754         matching arg00/arg01 types.
20755
20756 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
20757
20758         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20759         last_location to UNKNOWN_LOCATION.
20760
20761 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
20762
20763         PR target/48349
20764         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20765         FLOAT_SSE_REGS.
20766
20767 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20768             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20769
20770         PR bootstrap/48337
20771         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20772         Init(PROCESSOR_V7).
20773         (sparc_cpu): Likewise.
20774         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20775         PROCESSOR_V7.
20776
20777 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20778
20779         PR target/48336
20780         PR middle-end/48342
20781         PR rtl-optimization/48345
20782         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20783         hard regs for given mode from profitable regs when doing secondary
20784         allocation.
20785
20786 2011-03-29  Jeff Law  <law@redhat.com>
20787
20788         PR bootstrap/48327
20789         * tree-ssa-threadupdate.c (struct redirection_data): Remove
20790         do_not_duplicate field.
20791         (lookup_redirection_data): Corresponding changes.
20792         (create_duplicates): Always create a template block.
20793         (redirect_edges): Remove code which reused the original block
20794         when it was going to become unreachable code.
20795         (thread_block): Don't set do_not_duplicate field.
20796
20797 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
20798
20799         * lto-opts.c (register_user_option_p, lto_register_user_option):
20800         Make type argument unsigned.
20801         * lto-streamer.h (lto_register_user_option): Make type argument
20802         unsigned.
20803         * opth-gen.awk: Make CL_* macros unsigned.
20804         * opts-common.c (find_opt): Make lang_mask argument unsigned.
20805         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20806         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20807         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20808         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20809         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20810         (find_opt): Make lang_mask argument unsigned.
20811
20812 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20813
20814         PR rtl-optimization/48331
20815         PR rtl-optimization/48334
20816         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20817         for any used algorithm.
20818
20819 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20820
20821         * ira-conflicts.c (build_object_conflicts): Add unused attribute
20822         to parent_max.
20823
20824 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
20825
20826         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20827         (alpha_option_override): Don't set alpha_sr_alias_set.
20828         (emit_frame_store_1): Use gen_frame_mem rather than calling
20829         set_mem_alias_set.
20830         (alpha_expand_epilogue): Ditto.
20831
20832 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
20833
20834         PR tree-optimization/48290
20835         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20836         vectorization, check that relevant phis in the basic block after
20837         the inner loop are really inner loop's exit phis.
20838
20839 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
20840
20841         PR debug/48190
20842         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
20843         (cached_dw_loc_list_def): New structure.
20844         (cached_dw_loc_list): New typedef.
20845         (cached_dw_loc_list_table): New variable.
20846         (cached_dw_loc_list_table_hash): New function.
20847         (cached_dw_loc_list_table_eq): Likewise.
20848         (add_location_or_const_value_attribute): Take a bool cache_p.
20849         Cache the list when the parameter is true.
20850         (gen_formal_parameter_die): Update caller.
20851         (gen_variable_die): Likewise.
20852         (dwarf2out_finish): Likewise.
20853         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
20854         while generating debug info for the decl.
20855         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
20856         (dwarf2out_init): Initialize cached_dw_loc_list_table.
20857         (resolve_addr): Cache the result of resolving a chain of
20858         location lists.
20859
20860 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
20861
20862         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
20863         conflict object hard regset nodes have intersecting hard reg sets.
20864
20865         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
20866         after regstat_init_n_sets_and_refs.
20867
20868         * ira.c: Add more comments at the top.
20869         (setup_stack_reg_pressure_class, setup_pressure_classes):
20870         Add comments how we compute the register pressure classes.
20871         (setup_allocno_and_important_classes): Add more comments.
20872         (setup_class_translate_array, reorder_important_classes)
20873         (setup_reg_class_relations): Add comments.
20874
20875         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
20876         start of the file.
20877
20878         * ira-color.c: Add 2011 to the Copyright line.
20879         (assign_hard_reg):  Add more comments.
20880         (improve_allocation): Ditto.
20881
20882         * ira-costs.c: Add 2011 to the Copyright line.
20883         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
20884         comments.
20885         (setup_regno_cost_classes_by_mode): Ditto.
20886
20887         Initial patches from ira-improv branch:
20888
20889         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20890
20891         * ira-build.c (ira_create_object): Remove initialization of
20892         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
20893         (ira_create_allocno): Remove initialization of
20894         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
20895         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
20896         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20897         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
20898         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
20899         Initialize ALLOCNO_ADD_DATA.
20900         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
20901         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
20902         ALLOCNO_REG.
20903         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
20904         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
20905
20906         * ira.c (ira_reallocate): Remove.
20907         (setup_pressure_classes): Call
20908         ira_init_register_move_cost_if_necessary.  Use
20909         ira_register_move_cost instead of ira_get_register_move_cost.
20910         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
20911         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
20912
20913         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
20914         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20915         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
20916         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
20917         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
20918         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
20919         Fix formatting.
20920         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
20921         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20922         (struct allocno_color_data): New.
20923         (allocno_color_data_t): New typedef.
20924         (allocno_color_data): New definition.
20925         (ALLOCNO_COLOR_DATA): New macro.
20926         (struct object_color_data): New.
20927         (object_color_data_t): New typedef.
20928         (object_color_data): New definition.
20929         (OBJECT_COLOR_DATA): New macro.
20930         (update_copy_costs, calculate_allocno_spill_cost): Call
20931         ira_init_register_move_cost_if_necessary.  Use
20932         ira_register_move_cost instead of ira_get_register_move_cost.
20933         (move_spill_restore, update_curr_costs): Ditto.
20934         (allocno_spill_priority): Make it inline.
20935         (color_pass): Allocate and free allocno_color_dat and object_color_data.
20936         (struct coalesce_data, coalesce_data_t): New.
20937         (allocno_coalesce_data): New definition.
20938         (ALLOCNO_COALESCE_DATA): New macro.
20939         (merge_allocnos, coalesced_allocno_conflict_p): Use
20940         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
20941         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
20942         (coalesce_allocnos): Ditto.
20943         (setup_coalesced_allocno_costs_and_nums): Ditto.
20944         (collect_spilled_coalesced_allocnos): Ditto.
20945         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
20946         (setup_slot_coalesced_allocno_live_ranges): Ditto.
20947         (coalesce_spill_slots): Ditto.
20948         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
20949         free allocno_coalesce_data.
20950
20951         * ira-conflicts.c: Fix formatting.
20952         (process_regs_for_copy): Call
20953         ira_init_register_move_cost_if_necessary.  Use
20954         ira_register_move_cost instead of ira_get_register_move_cost.
20955         (build_object_conflicts): Optimize.
20956
20957         * ira-costs.c (record_reg_classes): Optimize.  Call
20958         ira_init_register_move_cost_if_necessary.  Use
20959         ira_register_move_cost, ira_may_move_in_cost, and
20960         ira_may_move_out_cost instead of ira_get_register_move_cost and
20961         ira_get_may_move_cost.
20962         (record_address_regs): Ditto.
20963         (scan_one_insn): Optimize.
20964         (find_costs_and_classes): Optimize.
20965         (process_bb_node_for_hard_reg_moves): Call
20966         ira_init_register_move_cost_if_necessary.  Use
20967         ira_register_move_cost instead of ira_get_register_move_cost.
20968
20969         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
20970         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
20971         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
20972         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
20973         definitions.
20974         (ira_initiate_emit_data, ira_finish_emit_data)
20975         (create_new_allocno): New functions.
20976         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
20977         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
20978         Use ira_register_move_cost instead of ira_get_register_move_cost.
20979
20980         * ira-int.h: Fix some comments.
20981         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
20982         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20983         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
20984         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
20985         add_data.
20986         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
20987         bitfield after mode.  Make hard_regno a short int.  Make
20988         hard_regno short.  Remove first_coalesced_allocno and
20989         next_coalesced_allocno.  Move mem_optimized_dest_p,
20990         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
20991         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
20992         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
20993         temp, colorable_p.  Add new member add_data.
20994         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
20995         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
20996         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
20997         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
20998         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
20999         (ALLOCNO_ADD_DATA): New macro.
21000         (ira_emit_data_t): New typedef.
21001         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
21002         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
21003         from struct ira_allocno.
21004         (ALLOCNO_EMIT_DATA): New macro.
21005         (ira_allocno_emit_data, allocno_emit_reg): New.
21006         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
21007         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
21008         (OBJECT_ADD_DATA): New macro.
21009         (ira_reallocate): Remove.
21010         (ira_initiate_emit_data, ira_finish_emit_data): New.
21011         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
21012         (ira_init_register_move_cost_if_necessary): New.
21013         (ira_object_conflict_iter_next): Merge into
21014         ira_object_conflict_iter_cond.
21015         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
21016
21017         * ira-live.c (process_single_reg_class_operands): Call
21018         ira_init_register_move_cost_if_necessary.  Use
21019         ira_register_move_cost instead of ira_get_register_move_cost.
21020
21021         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
21022
21023         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
21024
21025         * ira-costs.c: Fix formatting.
21026         (cost_classes, cost_classes_num): Remove.
21027         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
21028         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
21029         (cost_classes_del, cost_classes_htab): New.
21030         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
21031         (initiate_regno_cost_classes, setup_cost_classes): New.
21032         (setup_regno_cost_classes_by_aclass): New.
21033         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
21034         (record_reg_classes): Use regno_cost_classes instead of
21035         cost_classes.  Move checking opposite operand up.
21036         (record_address_regs): Use regno_cost_classes
21037         instead of cost_classes.
21038         (scan_one_insn): Ditto.  Use always general register.
21039         (print_allocno_costs): Use regno_cost_classes instead of
21040         cost_classes.
21041         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
21042         (find_costs_and_classes): Set up cost classes for each registers.
21043         Use also their mode for this.  Use regno_cost_classes instead of
21044         cost_classes.
21045         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
21046         cost_classes.
21047         (free_ira_costs, ira_init_costs): Don't use cost_classes.
21048         (ira_costs, ira_set_pseudo_classes): Call
21049         initiate_regno_cost_classes and finish_regno_cost_classes.
21050
21051         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
21052
21053         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
21054
21055         * target.def (ira_cover_classes): Remove.
21056
21057         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
21058
21059         * doc/tm.texi.in: Ditto.
21060
21061         * ira-conflicts.c: Remove mentioning cover classes from the file.
21062         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
21063         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
21064
21065         * targhooks.c (default_ira_cover_classes): Remove.
21066
21067         * targhooks.h (default_ira_cover_classes): Ditto.
21068
21069         * haifa-sched.c: Remove mentioning cover classes from the file.
21070         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
21071         ira_pressure_classes and ira_pressure_classes_num instead of
21072         ira_reg_class_cover_size and ira_reg_class_cover.  Use
21073         sched_regno_pressure_class instead of sched_regno_cover_class.
21074         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21075         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21076
21077         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
21078         classes from the file.
21079         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21080         (struct object_hard_regs, struct object_hard_regs_node): New.
21081         (struct ira_object): New members profitable_hard_regs,
21082         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21083         (struct ira_allocno): Rename cover_class to aclass.  Rename
21084         cover_class_cost and updated_cover_class_cost to class_cost and
21085         updated_class_cost.  Remove splay_removed_p and
21086         left_conflict_size.  Add new members colorable_p.
21087         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21088         (ALLOCNO_COLORABLE_P): New macro.
21089         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21090         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21091         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21092         (OBJECT_...): Rename parameter C to O.
21093         (OBJECT_PROFITABLE_HARD_REGS): New macro.
21094         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21095         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21096         (struct target_ira_int): New members x_ira_max_memory_move_cost,
21097         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21098         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21099         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21100         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
21101         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
21102         x_ira_reg_class_subunion.
21103         (ira_max_memory_move_cost, ira_max_register_move_cost)
21104         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21105         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21106         (ira_important_class_nums, ira_reg_class_superunion): New macros.
21107         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21108         (ira_reg_class_union): Rename to ira_reg_class_subunion.
21109         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21110         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21111         (ira_tune_allocno_costs_and_cover_classes): Rename to
21112         ira_tune_allocno_costs.
21113         (ira_debug_hard_regs_forest): New.
21114         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21115         (ira_object_conflict_iter_next): Fix comments.
21116         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21117         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21118         cover_class to aclass.
21119         (ira_allocate_and_accumulate_costs): Ditto.
21120         (ira_allocate_and_set_or_copy_costs): Ditto.
21121
21122         * opts.c (decode_options): Remove ira_cover_class check.
21123
21124         * ira-color.c: Remove mentioning cover classes from the file.  Use
21125         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21126         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21127         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
21128         (splay-tree.h): Remove include.
21129         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21130         before copy_freq_compare_func.
21131         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21132         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21133         New definitions.
21134         (hard_regs_roots, hard_regs_node_vec): Ditto.
21135         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21136         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21137         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21138         (create_new_object_hard_regs_node): Ditto.
21139         (add_new_object_hard_regs_node_to_forest): Ditto.
21140         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21141         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
21142         Ditto.
21143         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
21144         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
21145         (remove_unused_object_hard_regs_nodes): Ditto.
21146         (enumerate_object_hard_regs_nodes): Ditto.
21147         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
21148         (object_hard_regs_subnode_t): Ditto.
21149         (struct object_hard_regs_subnode): Ditto.
21150         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
21151         (setup_object_hard_regs_subnode_index): Ditto.
21152         (get_object_hard_regs_subnodes_num): Ditto.
21153         (form_object_hard_regs_nodes_forest): Ditto.
21154         (finish_object_hard_regs_nodes_tree): Ditto.
21155         (finish_object_hard_regs_nodes_forest): Ditto.
21156         (allocnos_have_intersected_live_ranges_p): Rename to
21157         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
21158         (pseudos_have_intersected_live_ranges_p): Rename to
21159         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
21160         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
21161         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
21162         (update_copy_costs): Remove assert.  Skip cost update if the hard
21163         reg does not belong the class.
21164         (assign_hard_reg): Process only profitable hard regs.
21165         (uncolorable_allocnos_num): Make it scalar.
21166         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
21167         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
21168         and ira_reg_class_max_nregs.
21169         (bucket_allocno_compare_func): Check frequency first.
21170         (sort_bucket): Add compare function as a parameter.
21171         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
21172         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
21173         (push_allocno_to_stack): Rewrite for checking new allocno
21174         colorability.
21175         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
21176         (push_only_colorable): Pass new parameter to sort_bucket.
21177         (push_allocno_to_spill): Remove.
21178         (allocno_spill_priority_compare): Make it inline and rewrite.
21179         (splay_tree_allocate, splay_tree_free): Remove.
21180         (allocno_spill_sort_compare): New function.
21181         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
21182         build and use splay tree.  Choose first allocno in uncolorable
21183         allocno bucket to spill.  Remove setting spill cost.
21184         (all_conflicting_hard_regs): Remove.
21185         (setup_allocno_available_regs_num): Check only profitable hard
21186         regs.  Print info about hard regs nodes.
21187         (setup_allocno_left_conflicts_size): Remove.
21188         (put_allocno_into_bucket): Don't call
21189         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
21190         (improve_allocation): New.
21191         (color_allocnos): Call setup_profitable_hard_regs,
21192         form_object_hard_regs_nodes_forest, improve_allocation,
21193         finish_object_hard_regs_nodes_forest.  Setup spill cost.
21194         (print_loop_title): Use pressure classes.
21195         (color_allocnso): Ditto.
21196         (do_coloring): Remove allocation and freeing splay_tree_node_pool
21197         and allocnos_for_spilling.
21198         (ira_sort_regnos_for_alter_reg): Don't setup members
21199         {first,next}_coalesced_allocno.
21200         (color): Remove allocating and freeing removed_splay_allocno_vec.
21201         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
21202         prohibited_class_mode_regs.
21203
21204         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
21205         formatting.
21206         (update_allocno_pressure_excess_length): Use pressure classes.
21207         (inc_register_pressure, dec_register_pressure): Check for pressure
21208         class.
21209         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
21210         pressure class.  Use ira_reg_class_nregs instead of
21211         ira_reg_class_max_nregs.
21212         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
21213         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
21214         (single_reg_class): Use ira_reg_class_nregs instead of
21215         ira_reg_class_max_nregs.
21216         (process_bb_node_lives): Use pressure classes.
21217
21218         * ira-emit.c: Remove mentioning cover classes from the file.  Use
21219         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
21220         (change_loop): Use pressure classes.
21221         (modify_move_list): Call ira_set_allocno_class instead of
21222         ira_set_allocno_cover_class.
21223
21224         * ira-build.c: Remove mentioning cover classes from the file.  Use
21225         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
21226         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
21227         ALLOCNO_UPDATED_CLASS_COST instead of
21228         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
21229         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
21230         (ira_create_allocno): Remove initialization of
21231         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
21232         ALLOCNO_COLORABLE_P.
21233         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21234         Update conflict regs for the objects.
21235         (create_cap_allocno): Remove assert.  Don't propagate
21236         ALLOCNO_AVAILABLE_REGS_NUM.
21237         (ira_free_allocno_costs): New function.
21238         (finish_allocno): Change a part of code into call of
21239         ira_free_allocno_costs.
21240         (low_pressure_loop_node_p): Use pressure classes.
21241         (object_range_compare_func): Don't compare classes.
21242         (setup_min_max_conflict_allocno_ids): Ditto.
21243
21244         * loop-invariant.c: Remove mentioning cover classes from the file.
21245         Use ira_pressure_classes and ira_pressure_classes_num instead of
21246         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
21247         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
21248         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21249         Use reg_allocno_class instead of reg_cover_class.
21250         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
21251         STACK_REG_COVER_CLASS.
21252         (get_regno_cover_class): Rename to get_regno_pressure_class.
21253         (move_loop_invariants): Initialize and finalize regstat.
21254
21255         * ira.c: Remove mentioning cover classes from the file.  Add
21256         comments about coloring without cover classes.  Use ALLOCNO_CLASS
21257         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
21258         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
21259         setup_class_subset_and_memory_move_costs.
21260         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
21261         (setup_cover_and_important_classes): Rename to
21262         setup_allocno_and_important_classes.
21263         (setup_class_translate_array): New.
21264         (setup_class_translate): Call it for allocno and pressure classes.
21265         (cover_class_order): Rename to allocno_class_order.
21266         (comp_reg_classes_func): Use ira_allocno_class_translate instead
21267         of ira_class_translate.
21268         (reorder_important_classes): Set up ira_important_class_nums.
21269         (setup_reg_class_relations): Set up ira_reg_class_superunion.
21270         (print_class_cover): Rename to print_classes.  Add parameter.
21271         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21272         Print pressure classes too.
21273         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
21274         setup_reg_subclasses.
21275         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21276         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21277         (setup_prohibited_class_mode_regs): Use
21278         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
21279         (clarify_prohibited_class_mode_regs): New function.
21280         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
21281         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
21282         (ira_init_once): Initialize them.
21283         (free_register_move_costs): Process them.
21284         (ira_init): Move calls of find_reg_classes and
21285         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
21286         Call clarify_prohibited_class_mode_regs.
21287         (ira_no_alloc_reg): Remove.
21288         (too_high_register_pressure_p): Use pressure classes.
21289
21290         * sched-deps.c: Remove mentioning cover classes from the file.
21291         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
21292         ira_pressure_classes and ira_pressure_classes_num instead of
21293         ira_reg_class_cover_size and ira_reg_class_cover.
21294         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
21295         sched_regno_pressure_class instead of sched_regno_cover_class.
21296         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
21297         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21298
21299         * ira.h: Add 2010 to Copyright.
21300         (ira_no_alloc_reg): Remove external.
21301         (struct target_ira): Rename x_ira_hard_regno_cover_class,
21302         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
21303         x_ira_class_translate to x_ira_hard_regno_allocno_class,
21304         x_ira_allocno_classes_num, x_ira_allocno_classes, and
21305         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
21306         x_ira_pressure_classes, x_ira_pressure_class_translate, and
21307         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
21308         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
21309         x_ira_no_alloc_regs.
21310         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21311         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
21312         ira_allocno_classes_num and ira_allocno_classes.
21313         (ira_class_translate): Rename to ira_allocno_class_translate.
21314         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
21315         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
21316         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21317         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
21318         (ira_no_alloc_regs): New.
21319
21320         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
21321         classes from the file.  Use ALLOCNO_CLASS instead of
21322         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
21323         ALLOCNO_COVER_CLASS_COST.
21324         (regno_cover_class): Rename to regno_aclass.
21325         (record_reg_classes): Use ira_reg_class_subunion instead of
21326         ira_reg_class_union.
21327         (record_address_regs): Check overflow.
21328         (scan_one_insn): Ditto.
21329         (print_allocno_costs): Print total mem cost fore regional allocation.
21330         (print_pseudo_costs): Use REG_N_REFS.
21331         (find_costs_and_classes): Use classes intersected with them on the
21332         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
21333         ira_reg_class_union.  Use ira_allocno_class_translate and
21334         regno_aclass instead of ira_class_translate and regno_cover_class.
21335         Modify code for finding regno_aclass.  Setup preferred classes for
21336         the next pass.
21337         (setup_allocno_cover_class_and_costs): Rename to
21338         setup_allocno_class_and_costs.  Use regno_aclass instead of
21339         regno_cover_class.  Use ira_set_allocno_class instead of
21340         ira_set_allocno_cover_class.
21341         (init_costs, finish_costs): Use regno_aclass instead of
21342         regno_cover_class.
21343         (ira_costs): Use setup_allocno_class_and_costs instead of
21344         setup_allocno_cover_class_and_costs.
21345         (ira_tune_allocno_costs_and_cover_classes): Rename to
21346         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
21347         by processing objects.  Use ira_reg_class_max_nregs instead of
21348         ira_reg_class_nregs.
21349
21350         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
21351
21352         * sched-int.h: Remove mentioning cover classes from the file.
21353         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
21354
21355         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
21356         classes from the file.
21357         (struct reg_pref): Rename coverclass into allocnoclass.
21358         (reg_cover_class): Rename to reg_allocno_class.
21359
21360         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
21361
21362         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
21363
21364         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
21365
21366         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
21367
21368         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
21369
21370         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21371
21372         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21373
21374         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21375
21376         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21377
21378         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21379
21380         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21381         (i386_ira_cover_classes): Ditto.
21382
21383         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21384
21385         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21386
21387         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21388
21389         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21390
21391         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21392
21393         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21394
21395         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21396         (mips_ira_cover_classes): Ditto.
21397
21398         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21399
21400         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21401
21402         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21403
21404         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21405
21406         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21407
21408         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21409         (IRA_COVER_CLASSES_VSX): Ditto.
21410
21411         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21412         (rs6000_ira_cover_classes): Ditto.
21413
21414         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21415
21416         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21417
21418         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21419
21420         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21421
21422         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21423
21424         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21425
21426         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21427
21428         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21429
21430         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21431
21432         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21433
21434 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
21435
21436         PR debug/48253
21437         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21438         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21439         dw_fde_unlikely_section_end_label, cold_in_std_section,
21440         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21441         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21442         fields.
21443         (output_fde): Use dw_fde_second_{begin,end} if second is
21444         true, otherwise dw_fde_{begin,end}.
21445         (output_call_frame_info): Test dw_fde_second_begin != NULL
21446         instead of dw_fde_switched_sections.
21447         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21448         fields, initialize new fields.  Initialize in_std_section
21449         unconditionally from the first partition.
21450         (dwarf2out_end_epilogue): Don't override dw_fde_end when
21451         dw_fde_second_begin is non-NULL.
21452         (dwarf2out_switch_text_section): Stop initializing removed
21453         dw_fde_struct fields, initialize new fields, initialize
21454         also dw_fde_end here.  Set dw_fde_switch_cfi even when
21455         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
21456         (struct var_loc_list_def): Add last_before_switch field.
21457         (arange_table, arange_table_allocated, arange_table_in_use,
21458         ARANGE_TABLE_INCREMENT, add_arange): Removed.
21459         (size_of_aranges): Count !in_std_section and !second_in_std_section
21460         hunks in fdes, instead of looking at arange_table_in_use.
21461         (output_aranges): Add aranges_length argument, don't call
21462         size_of_aranges here.  Instead of using aranges_table*
21463         emit ranges for fdes when !in_std_section resp.
21464         !second_in_std_section.
21465         (dw_loc_list): Break ranges crossing section switch.
21466         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
21467         use dw_fde_second_end instead of dw_fde_end as end of last range.
21468         (gen_subprogram_die): Don't call add_arange.  Use
21469         dw_fde_{begin,end} for first partition and if switched
21470         section dw_fde_second_{begin,end} for the second.
21471         (var_location_switch_text_section_1,
21472         var_location_switch_text_section): New functions.
21473         (dwarf2out_begin_function): Initialize cold_text_section even
21474         when function_section () isn't text_section.
21475         (prune_unused_types): Don't walk arange_table.
21476         (dwarf2out_finish): Don't needlessly test
21477         flag_reorder_blocks_and_partition when testing cold_text_section_used.
21478         If info_section_emitted, call size_of_aranges and if it indicates
21479         non-empty .debug_aranges, call output_aranges with the computed
21480         size.  Stop using removed dw_fde_struct fields, use
21481         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21482         for second.
21483
21484         PR debug/48203
21485         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21486         create ENTRY_VALUE if incoming or address of incoming's MEM
21487         is a hard REG.
21488         * dwarf2out.c (mem_loc_descriptor): Don't emit
21489         DW_OP_GNU_entry_value of DW_OP_fbreg.
21490         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21491         on ENTRY_VALUE is able to find the canonical parameter VALUE.
21492         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21493         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21494         ENTRY_VALUE_EXPs.
21495         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21496         is a REG_P or MEM_P with REG_P address, compute hash directly
21497         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21498         (preserve_only_constants): Don't clear VALUES forwaring
21499         ENTRY_VALUE to some other VALUE.
21500
21501 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
21502
21503         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21504         instead of GEN_INT.
21505
21506 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21507
21508         * cfgexpand.c (expand_gimple_cond): Always set the source location and
21509         block before expanding the statement.
21510         (expand_gimple_stmt_1): Likewise.  Set them here...
21511         (expand_gimple_stmt): ...and not here.  Tidy.
21512         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21513         unknown.
21514
21515 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21516
21517         * Makefile.in: New rule for cprop.o.
21518         * gcse.c: Move constant/copy propagation to cprop.c.
21519         (compute_local_properties): Only handle expression tables.
21520         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21521         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21522         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21523         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21524         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21525         compute_cprop_data, find_used_regs, try_replace_reg,
21526         find_avail_set, cprop_jump, constprop_register, cprop_insn,
21527         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21528         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21529         find_bypass_set, reg_killed_on_edge, bypass_block,
21530         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21531         execute_rtl_cprop, pass_rtl_cprop): Move to...
21532         * cprop.c: ...here.  New file, constant/copy propagation for RTL
21533         moved from gcse.c to here with minor cleanups in duplicated code.
21534
21535 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
21536
21537         * config/i386/i386.c (flag_opts): Fix a typo in
21538         -mavx256-split-unaligned-store.
21539
21540 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21541
21542         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21543         LIBCALL_VALUE): Remove macros.
21544         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21545         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21546         (h8300_function_value, h8300_libcall_value,
21547         h8300_function_value_regno_p): New functions.
21548
21549 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21550
21551         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21552
21553 2011-03-28  Jeff Law  <law@redhat.com>
21554
21555         * tree-ssa-threadupdate.c (redirect_edges): Call
21556         create_edge_and_update_destination_phis as needed.
21557         (create_edge_and_update_destination_phis): Accept new BB argument.
21558         All callers updated.
21559         (thread_block): Do not update the profile when threading around
21560         intermediate blocks.
21561         (thread_single_edge): Likewise.
21562         (determine_bb_domination_status): If BB is not a successor of the
21563         loop header, return NONDOMINATING.
21564         (register_jump_thread): Note when we register a jump thread around
21565         an intermediate block.
21566         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21567         (thread_across_edge): Use it.
21568
21569 2011-03-28  Tristan Gingold  <gingold@adacore.com>
21570
21571         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21572         when for_return is 2.
21573
21574 2011-03-28  Jeff Law  <law@redhat.com>
21575
21576         * var-tracking.c (canonicalize_values_mark): Delete unused
21577         lhs assignment.
21578         (canonicalize_values_star, set_variable_part): Likewise.
21579         (clobber_variable_part, delete_variable_part): Likewise.
21580
21581 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21582
21583         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21584
21585 2011-03-28  Martin Jambor  <mjambor@suse.cz>
21586
21587         * tree-inline.c (expand_call_inline): Do not check that destination
21588         node is analyzed.
21589         (optimize_inline_calls): Assert that destination node is analyzed.
21590         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21591         not call tree_lowering_passes.
21592         * cgraph.h (cgraph_analyze_function): Declare.
21593         * cgraphunit.c (cgraph_analyze_function): Make public.
21594
21595 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
21596
21597         * config/sparc/sparc-opts.h: New.
21598         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
21599         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
21600         (sparc_option_override): Store processor_type enumeration rather
21601         than string in cpu_default.  Remove name and enumeration from
21602         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
21603         without using sparc_select.  Use target_flags_explicit instead of
21604         fpu_option_set.
21605         * config/sparc/sparc.h (enum processor_type): Move to
21606         sparc-opts.h.
21607         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
21608         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
21609         HeaderInclude entry.
21610         (mcpu=, mtune=): Use Var and Enum.
21611         (sparc_processor_type): New Enum and EnumValue entries.
21612
21613 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21614             Iain Sandoe  <iains@gcc.gnu.org>
21615
21616         PR target/48245
21617         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
21618
21619 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21620
21621         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
21622         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
21623         Insert new statements at it in lieu of STMT.
21624         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
21625         * tree-vect-stmts.c (vectorizable_store): Likewise.
21626         (vectorizable_load): Likewise.
21627
21628 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
21629
21630         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
21631         (divtf3): Ditto.
21632         (multf3): Ditto.
21633         (subtf3): Ditto.
21634
21635 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21636
21637         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
21638         unaligned 256bit load/store.
21639         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
21640         (*avx_movdqu<avxmodesuffix>): Likewise.
21641
21642 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21643
21644         PR target/48288
21645         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
21646         * config/pa/pa.md (iordi3): Use new predicate in expander.
21647         (iorsi3): Likewise.
21648
21649 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
21650
21651         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
21652         FUNCTION_VALUE_REGNO_P): Remove macros.
21653         * config/mips/mips-protos.h (mips_function_value): Remove.
21654         * config/mips/mips.c (mips_function_value): Rename to...
21655         (mips_function_value_1): ... this. Make static.  Handle receiving
21656         the function type in 'fn_decl_or_type' argument.
21657         (mips_function_value, mips_libcall_value,
21658         mips_function_value_regno_p): New function.
21659         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21660         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21661
21662 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21663
21664         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21665         and -mavx256-split-unaligned-store.
21666         (ix86_option_override_internal): Split 32-byte AVX unaligned
21667         load/store by default.
21668         (ix86_avx256_split_vector_move_misalign): New.
21669         (ix86_expand_vector_move_misalign): Use it.
21670
21671         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21672         -mavx256-split-unaligned-store.
21673
21674         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21675         256bit load/store.  Generate unaligned store on misaligned memory
21676         operand.
21677         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21678         256bit load/store.
21679         (*avx_movdqu<avxmodesuffix>): Likewise.
21680
21681         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21682         -mavx256-split-unaligned-store.
21683
21684 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21685
21686         PR target/38598
21687         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21688         Update commentary.
21689
21690 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21691
21692         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21693         opno arguments with an expand_operand.  Use create_input_operand.
21694         (mips_prepare_builtin_target): Delete.
21695         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21696         functions.
21697         (mips_expand_builtin_direct): Use create_output_operand and
21698         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
21699         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
21700         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21701
21702 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
21703
21704         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21705         function.
21706         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21707
21708 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21709
21710         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21711         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
21712         basic blocks and call commit_edge_insertions directly.
21713         (fixup_abnormal_edges): Move from here to...
21714         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
21715         on the edges and return whether some have actually been inserted.
21716         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21717         compensation code.
21718
21719 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
21720
21721         PR rtl-optimization/48144
21722         * sel-sched-ir.c (merge_history_vect): Factor out from ...
21723         (merge_expr_data): ... here.
21724         (av_set_intersect): Rename to av_set_code_motion_filter.
21725         Update all callers.  Call merge_history_vect when an expression
21726         is found in both sets.
21727         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21728
21729 2011-03-26  Alan Modra  <amodra@gmail.com>
21730
21731         * config/rs6000/predicates.md (word_offset_memref_op): Handle
21732         cmodel medium addresses.
21733         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21734         64-bit gpr loads and stores.
21735         (rs6000_secondary_reload_ppc64): New function.
21736         * config/rs6000/rs6000-protos.h: Declare it.
21737         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21738
21739 2011-03-26  Alan Modra  <amodra@gmail.com>
21740
21741         PR target/47487
21742         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21743         GNU Go in traceback table.
21744
21745 2011-03-25  Richard Henderson  <rth@redhat.com>
21746
21747         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21748         if there are exactly 6 operands.
21749         (set_storage_via_setmem): Similarly.
21750
21751 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21752
21753         * collect2.c (write_c_file_stat): Handle backslash
21754         as right-hand directory separator.
21755         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21756         checking just for slash.
21757         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21758         instead of checking for trailing slash.
21759         * gcc.c (record_temp_file): Use filename_cmp instead
21760         of strcmp.
21761         (do_spec_1): Likewise.
21762         (replace_outfile_spec_function): Likewise.
21763         (is_directory): Use filename_ncmp instead of strncmp.
21764         (print_multilib_info): Likewise.
21765         * gcov.c (find_source): Use filename_cmp instead
21766         instead of strcmp.
21767         (make_gcov_file_name): Fix order of slash/backslash
21768         checks.
21769         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21770         (add_standard_paths): Likewise.
21771         * mips-tfile.c (saber_stop): Handle backslash.
21772         * prefix.c (update_path): Use filename_ncmp instead of
21773         strncmp.
21774         * profile.c (output_location): Use filename_cmp instead
21775         of strcmp.
21776         * read-md.c (handle_toplevel_file): Handle backslash.
21777         * tlink.c (frob_extension):  Likewise.
21778         * tree-cfg.c (same_line_p): Use filename_cmp instead of
21779         strcmp.
21780         * tree-dump.c (dequeue_and_dump): Handle backslash.
21781         * tree.c (get_file_function_name): Likewise.
21782         * gengtype.c (read_input_list): Likewise.
21783         (get_file_realbasename): Likewise.
21784         (get_output_file_with_visibility): Use filename_cmp
21785         instead of strcmp.
21786
21787 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
21788
21789         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21790         case to VFPv1.
21791
21792 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21793
21794         * fold-const.c (expr_location_or): New function.
21795         (fold_truth_not_expr): Call it.
21796
21797 2011-03-25  Jeff Law  <law@redhat.com>
21798
21799         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21800         va_end.
21801         * c-family/c-common.c (def_fn_type): Likewise.
21802         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21803         * emit-rtl.c (gen_rtvec): Likewise.
21804         * lto/lto-lang.c (def_fn_type): Likewise.
21805
21806 2011-03-25  Richard Guenther  <rguenther@suse.de>
21807
21808         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21809         also generate copies.
21810         (fini_copy_prop): Handle constant values properly.
21811
21812 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
21813
21814         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21815         mode size instead of bitsize with DWARF2_ADDR_SIZE.
21816         (hash_loc_operands, compare_loc_operands): Handle
21817         DW_OP_GNU_entry_value.
21818
21819 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21820
21821         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21822         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21823         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21824         comment and use macro TARGET_64BIT_MS_ABI instead.
21825         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21826         and change default behavior for 32-bit MS_ABI.
21827         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21828         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21829         32-bit, too.
21830         (ix86_cfun_abi): Likewise.
21831         (ix86_maybe_switch_abi): Adjust comment.
21832         (init_cumulative_args): Check for bit-ness in MS_ABI case.
21833         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21834         instead of checking for SYSV_ABI.
21835         (ix86_nsaved_sseregs): Likewise.
21836         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21837         to 16 bytes.
21838         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
21839         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
21840         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
21841         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
21842         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
21843
21844 2011-03-25  Richard Guenther  <rguenther@suse.de>
21845
21846         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
21847         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21848         (verify_gimple): Remove.
21849         * tree-cfg.c (verify_gimple_call): Merge verification
21850         from verify_stmts.
21851         (verify_gimple_phi): Merge verification from verify_stmts.
21852         (verify_gimple_label): New function.
21853         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
21854         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21855         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
21856         (verify_stmts): Rename to verify_gimple_in_cfg.
21857         (verify_gimple_in_cfg): New function.
21858         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
21859         * tree-ssa.c (verify_ssa): Likewise.
21860         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
21861
21862 2011-03-25  Richard Guenther  <rguenther@suse.de>
21863
21864         * passes.c (init_optimization_passes): Add FRE pass after
21865         early SRA.
21866
21867 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
21868             Andrew Stubbs  <ams@codesourcery.com>
21869
21870         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
21871         for Cortex-A8.
21872         (arm_movdi_vfp_cortexa8): New pattern.
21873         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
21874         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
21875         instructions when tuning for Cortex-A8.  Set attribute "arch".
21876         * config/arm/arm.md: Move include arm-tune.md up a bit.
21877         (define_attr "arch"): Add "onlya8" and "nota8" values.
21878         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
21879
21880 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21881
21882         PR bootstrap/48282
21883         Revert:
21884         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21885
21886         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21887         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21888         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21889         * passes.c (init_optimization_passes): Move
21890         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21891
21892 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21893
21894         * c-typeck.c (comptypes_internal): Replace target
21895         hook call of comp_type_attributes by version in tree.c file.
21896         * gimple.c (gimple_types_compatible_p_1): Likewise.
21897         * tree-ssa.c (useless_type_conversion_p): Likewise.
21898         * tree.c (build_type_attribute_qual_variant): Likewise.
21899         (attribute_value_equal): New static helper function.
21900         (comp_type_attributes): New function.
21901         (merge_attributes): Use attribute_value_equal for comparison.
21902         (attribute_list_contained): Likewise.
21903         * tree.h (comp_type_attributes): New prototype.
21904
21905 2011-03-25  Richard Guenther  <rguenther@suse.de>
21906
21907         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
21908         of complex types at -O0.
21909         (verify_gimple_assign_binary): Likewise.
21910         (verify_gimple_assign_ternary): Likewise.
21911
21912 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21913
21914         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
21915         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
21916
21917 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21918
21919         PR debug/48041
21920         * dwarf2out.c (output_abbrev_section): Only write table when
21921         abbrev_die_table_in_use > 1.
21922
21923 2011-02-24  Richard Henderson  <rth@redhat.com>
21924
21925         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
21926         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
21927         (alpha_expand_unaligned_load_words): Use extql.
21928         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
21929         (emit_insxl): Handle all modes for consistency.
21930
21931 2011-02-24  Richard Henderson  <rth@redhat.com>
21932
21933         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
21934         (alpha_expand_unaligned_load): Likewise.
21935         (alpha_expand_unaligned_store): Likewise.
21936         (alpha_expand_unaligned_load_words): Likewise.
21937         (alpha_expand_unaligned_store_words): Likewise.
21938         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
21939         (alpha_split_lock_test_and_set_12): Likewise.
21940         (print_operand, alpha_fold_builtin_extxx): Likewise.
21941         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
21942         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
21943         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
21944         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
21945         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
21946         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
21947         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
21948         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
21949         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
21950         (extwl, extll, extql): Similarly.
21951         (inswh, inslh, insqh): Similarly.
21952         (mskbl, mskwl, mskll, mskql): Similarly.
21953         (mskwh, msklh, mskqh): Similarly.
21954
21955 2011-02-24  Richard Henderson  <rth@redhat.com>
21956
21957         * config/alpha/alpha.md (attribute isa): Add er, ner.
21958         (attribute enabled): Handle them.
21959         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
21960
21961 2011-02-24  Richard Henderson  <rth@redhat.com>
21962
21963         * config/alpha/alpha.md (attribute isa): Add vms.
21964         (attribute enabled): Handle it.
21965         (*movsf): Merge *movsf_{nofix,fix,nofp}.
21966         (*movdf): Merge *movdf_{nofix,fix,nofp}.
21967         (*movtf): Rename from *movtf_internal for consistency.
21968         (*movsi): Merge with *movsi_nt_vms.
21969         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
21970         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
21971         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
21972         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
21973
21974 2011-02-24  Richard Henderson  <rth@redhat.com>
21975
21976         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
21977         (extendqisi2, extendhisi2): Likewise.
21978         (extendqidi2): Simplify BWX/non-BWX expansions.
21979         (extendhidi2): Similarly.
21980
21981 2011-02-24  Richard Henderson  <rth@redhat.com>
21982
21983         * config/alpha/alpha.md (attribute isa): New.
21984         (attribute enabled): New.
21985         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
21986         (zero_extendqisi2, zero_extendqidi2): Similarly.
21987         (zero_extendhisi2, zero_extendhidi2): Similarly.
21988         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
21989
21990 2011-02-24  Richard Henderson  <rth@redhat.com>
21991
21992         * config/alpha/predicates.md (input_operand): Revert last change;
21993         update comment to mention 32-bit VMS rather than Windows.
21994
21995 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21996
21997         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21998         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21999         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22000         * passes.c (init_optimization_passes): Move
22001         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22002
22003 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22004
22005         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
22006
22007 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
22008
22009         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
22010         correctly.
22011
22012 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
22013
22014         PR debug/48204
22015         * simplify-rtx.c (simplify_const_unary_operation): Call
22016         real_convert when changing mode class with FLOAT_EXTEND.
22017
22018 2011-03-24  Nick Clifton  <nickc@redhat.com>
22019
22020         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
22021         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22022         * config/rx/rx.c (rx_option_override): Set align_jumps,
22023         align_loops and align_labels if not set by the user.
22024         (rx_align_for_label): New function.
22025         (rx_max_skip_for_label): New function.
22026         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
22027         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
22028         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
22029         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
22030         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
22031
22032 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22033
22034         PR rtl-optimization/48263
22035         * optabs.c (expand_binop_directly): Reinstate convert_modes code
22036         and original commutative_p handling.  Use maybe_gen_insn.
22037
22038 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22039
22040         * reload.c (find_reloads_subreg_address): Add address_reloaded
22041         parameter and return true there if the full address has been
22042         reloaded.
22043         (find_reloads_toplev): Pass address_reloaded flag.
22044         (find_reloads_address_1): Don't use address_reloaded parameter.
22045
22046 2011-03-24  Jeff Law  <law@redhat.com>
22047
22048         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
22049         unused variable "ann".
22050         (remove_unused_locals): Likewise.
22051
22052         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
22053         statement.
22054
22055         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
22056         after it is freed.
22057
22058 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22059
22060         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22061         for invalid symbolic addresses.
22062         (s390_secondary_reload): Don't use s390_check_symref_alignment for
22063         larl operands.
22064
22065 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22066
22067         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22068         the argument in calls to fold_truth_not_expr.
22069
22070 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22071
22072         * tree.c (record_node_allocation_statistics): New function.
22073         (make_node_stat, copy_node_stat, build_string): Call it.
22074         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22075         (build1_stat, build_omp_clause): Likewise.
22076
22077 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22078
22079         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22080         last commit.
22081
22082 2011-03-24  Richard Guenther  <rguenther@suse.de>
22083
22084         PR tree-optimization/48271
22085         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22086         blocks that still exist.
22087
22088 2011-03-24  Richard Guenther  <rguenther@suse.de>
22089
22090         PR tree-optimization/48270
22091         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22092         not free datarefs before ddrs.
22093
22094 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22095
22096         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22097         from the address built for a reference with variable offset.
22098
22099 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
22100
22101         PR target/48237
22102         * config/i386/i386.md (*movdf_internal_rex64): Do not split
22103         alternatives that can be handled with movq or movabsq insn.
22104         (*movdf_internal): Disable for !TARGET_64BIT.
22105         (*movdf_internal_nointeger): Ditto.
22106         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22107
22108 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22109
22110         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22111         (FUNCTION_ARG_ADVANCE): Likewise.
22112         * tm.texi.in: Change references to them to hook references.
22113         * tm.texi: Regenerate.
22114         * targhooks.c (default_function_arg): Eliminate check for target macro.
22115         (default_function_incoming_arg): Likewise.
22116         (default_function_arg_advance): Likewise.
22117         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22118         (function_arg_advance): Likewise.
22119         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22120
22121 2011-03-24  Richard Guenther  <rguenther@suse.de>
22122
22123         PR middle-end/48269
22124         * tree-object-size.c (addr_object_size): Do not double-account
22125         for MEM_REF offsets.
22126
22127 2011-03-24  Diego Novillo  <dnovillo@google.com>
22128
22129         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22130         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22131         (lto_input_data_block): Move from lto-opts.c.  Make extern.
22132         Update all users.
22133         (lto_input_string): Rename from input_string.  Make extern.
22134         Update all users.
22135         * lto-streamer-out.c (lto_output_string_with_length): Rename from
22136         output_string_with_length.
22137         Output 0 to indicate a non-NULL string.  Update all callers to
22138         not emit 0.
22139         (lto_output_string): Rename from output_string.  Make extern.
22140         Update all users.
22141         (lto_output_decl_state_streams): Make extern.
22142         (lto_output_decl_state_refs): Make extern.
22143         * lto-streamer.h (lto_input_string): Declare.
22144         (lto_input_data_block): Declare.
22145         (lto_output_string): Declare.
22146         (lto_output_string_with_length): Declare.
22147         (lto_output_decl_state_streams): Declare.
22148         (lto_output_decl_state_refs): Declare.
22149
22150 2011-03-24  Richard Guenther  <rguenther@suse.de>
22151
22152         PR tree-optimization/46562
22153         * tree.c (build_invariant_address): New function.
22154         * tree.h (build_invariant_address): Declare.
22155         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
22156         a renamed function moved ...
22157         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
22158         Take valueization callback parameter.
22159         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
22160         * gimple-fold.h: New file.
22161         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
22162         (ccp_fold, fold_const_aggregate_ref,
22163         fold_ctor_reference, fold_nonarray_ctor_reference,
22164         fold_array_ctor_reference, fold_string_cst_ctor_reference,
22165         get_base_constructor): Move ...
22166         * gimple-fold.c: ... here.
22167         (gimple_fold_stmt_to_constant_1): New function
22168         split out from ccp_fold.  Take a valueization callback parameter.
22169         Valueize all operands.
22170         (gimple_fold_stmt_to_constant): New wrapper function.
22171         (fold_const_aggregate_ref_1): New function split out from
22172         fold_const_aggregate_ref.  Take a valueization callback parameter.
22173         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
22174         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
22175         invariant POINTER_PLUS_EXPRs to invariant form.
22176         (vn_valueize): New function.
22177         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
22178         * tree-vrp.c (vrp_valueize): New function.
22179         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
22180         to fold statements to constants.
22181         * tree-ssa-pre.c (eliminate): Properly guard propagation of
22182         function declarations.
22183         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
22184         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
22185
22186 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22187
22188         * config/h8300/predicates.md (jump_address_operand): Fix register
22189         mode check.
22190
22191 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
22192
22193         * doc/invoke.texi (max-stores-to-sink): Document.
22194         * params.h (MAX_STORES_TO_SINK): Define.
22195         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
22196         if either vectorization or if-conversion is disabled.
22197         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
22198         tree-vect-data-refs.c vect_equal_offsets.
22199         (dr_equal_offsets_p): New function.
22200         (find_data_references_in_bb): Remove static.
22201         * tree-data-ref.h (find_data_references_in_bb): Declare.
22202         (dr_equal_offsets_p): Likewise.
22203         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
22204         (vect_drs_dependent_in_basic_block): Update calls to
22205         vect_equal_offsets.
22206         (vect_check_interleaving): Likewise.
22207         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
22208         (cond_if_else_store_replacement): Rename to...
22209         (cond_if_else_store_replacement_1): ... this.  Change arguments and
22210         documentation.
22211         (cond_if_else_store_replacement): New function.
22212         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
22213         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
22214
22215 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
22216
22217         PR target/46934
22218         * config/arm/arm.md (casesi): Use the gen_int_mode() function
22219         to subtract lower bound instead of GEN_INT().
22220
22221 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
22222
22223         PR other/48179
22224         PR other/48221
22225         PR other/48234
22226         * doc/extend.texi (Alignment): Move section to match order in TOC.
22227         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
22228         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
22229
22230 2011-03-23  Jeff Law  <law@redhat.com>
22231
22232         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
22233         before removing the edge.
22234
22235         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
22236         it may have been freed by redirect_branch_edge or
22237         redirect_edge_succ_nodup.
22238
22239 2011-03-23  Richard Guenther  <rguenther@suse.de>
22240
22241         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
22242         (check_va_list_escapes): Likewise.
22243         (check_all_va_list_escapes): Likewise.
22244
22245 2011-03-23  Richard Guenther  <rguenther@suse.de>
22246
22247         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
22248         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
22249         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
22250         (alias.o): Likewise.
22251         (ipa-type-escape.o): Remove.
22252         (ipa-struct-reorg.o): Likewise.
22253         (GTFILES): Remove ipa-struct-reorg.c.
22254         * alias.c: Do not include ipa-type-escape.h.
22255         * tree-ssa-alias.c: Likewise.
22256         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
22257         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
22258         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
22259         and ipa-type-escape passes.
22260         * tree-pass.h (pass_ipa_type_escape): Remove.
22261         (pass_ipa_struct_reorg): Likewise.
22262         * ipa-struct-reorg.h: Remove.
22263         * ipa-struct-reorg.c: Likewise.
22264         * ipa-type-escape.h: Likewise.
22265         * ipa-type-escape.c: Likewise.
22266         * doc/invoke.texi (-fipa-struct-reorg): Remove.
22267         (--param struct-reorg-cold-struct-ratio): Likewise.
22268         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22269         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22270         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
22271
22272 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22273
22274         * config/s390/2084.md: Enable all insn reservations also for z9_ec
22275         cpu attribute value.
22276         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
22277         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
22278         * config/s390/s390.c (processor_flags_table): New constant array.
22279         (s390_handle_arch_option): Remove.
22280         (s390_handle_option): Remove s390_handle_arch_option invocations
22281         and OPT_mwarn_framesize_ handling.
22282         (s390_option_override): Remove s390_handle_arch_option invocation.
22283         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
22284         warnings.
22285         * config/s390/s390.md (cpu attribute): Add z9_ec value.
22286         * config/s390/s390.opt (s390_tune, s390_arch)
22287         (march=): Replace s390_arch_option enum and values with
22288         processor_type.  Set variable name to s390_arch.  Set
22289         initialization value.
22290         (mtune=): Replace s390_arch_option with processor_type.  Set
22291         variable name to s390_tune.  Set initialization value.
22292
22293 2011-03-23  Julian Brown  <julian@codesourcery.com>
22294
22295         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
22296         accesses which are not naturally aligned.
22297
22298 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
22299
22300         PR target/47553
22301         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
22302
22303 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
22304
22305         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
22306         parameter from "int" to "enum insn_code".
22307         (expand_operand_type): New enum.
22308         (expand_operand): New structure.
22309         (create_expand_operand): New function.
22310         (create_fixed_operand, create_output_operand): Likewise
22311         (create_input_operand, create_convert_operand_to): Likewise.
22312         (create_convert_operand_from, create_address_operand): Likewise.
22313         (create_integer_operand): Likewise.
22314         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
22315         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22316         (expand_insn, expand_jump_insn): Likewise.
22317         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
22318         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
22319         (expand_movstr, expand_builtin___clear_cache): Likewise.
22320         (expand_builtin_lock_release): Likewise.
22321         * explow.c (allocate_dynamic_stack_space): Likewise.
22322         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
22323         and use the default handling in that case.
22324         * expmed.c (check_predicate_volatile_ok): Delete.
22325         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
22326         (emit_cstore): Likewise.
22327         * expr.c (emit_block_move_via_movmem): Likewise.
22328         (set_storage_via_setmem, expand_assignment): Likewise.
22329         (emit_storent_insn, try_casesi): Likewise.
22330         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
22331         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
22332         (expand_vec_shift_expr, expand_binop_directly): Likewise.
22333         (expand_twoval_unop, expand_twoval_binop): Likewise.
22334         (expand_unop_direct, emit_indirect_jump): Likewise.
22335         (emit_conditional_move, vector_compare_rtx): Likewise.
22336         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
22337         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
22338         (expand_sync_lock_test_and_set): Likewise.
22339         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
22340         (emit_unop_insn): Likewise.
22341         (expand_copysign_absneg): Change icode to an insn_code.
22342         (create_convert_operand_from_type): New function.
22343         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
22344         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22345         (expand_insn, expand_jump_insn): Likewise.
22346         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
22347         than const_int_operand for operand 2.
22348
22349 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22350
22351         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
22352         if possible.
22353
22354 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22355
22356         * emit-rtl.c (emit_pattern_before_noloc): New function.
22357         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
22358         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
22359         (emit_pattern_after_noloc): New function.
22360         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
22361         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
22362
22363 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22364
22365         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
22366         (__ffsDI2): Likewise.
22367
22368 2011-03-22  Richard Henderson  <rth@redhat.com>
22369
22370         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22371         of !TARGET_ABI_OPEN_VMS.
22372         (alpha_trampoline_init, alpha_start_function): Likewise.
22373         (alpha_expand_epilogue, alpha_file_start): Likewise.
22374         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22375         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22376         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22377         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22378         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22379
22380 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22381
22382         * config/s390/s390-opts.h: New.
22383         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22384         s390_arch_flags, s390_warn_framesize, s390_stack_size,
22385         s390_stack_guard): Remove.
22386         (s390_handle_arch_option): Return void.  Take enum
22387         s390_arch_option value instead of string and searching array.
22388         (s390_handle_option): Don't assert that global structures are in
22389         use.  Access variables via opts pointer.  Use error_at.  Don't use
22390         sscanf for -mstack-guard= or -mstack-size=.  Update call to
22391         s390_handle_arch_option.
22392         (s390_option_override): Update call to s390_handle_arch_option.
22393         (s390_emit_prologue): Use %d format for s390_stack_size in
22394         diagnostic.  Use %wd for HOST_WIDE_INT.
22395         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22396         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22397         * config/s390/s390.opt (config/s390/s390-opts.h): New
22398         HeaderInclude entry.
22399         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22400         s390_arch_flags, s390_warn_framesize): New Variable entries.
22401         (s390_arch_option): New Enum and EnumValue entries.
22402         (march=): Use Enum instead of Var.
22403         (mstack-guard=, mstack-size=): Use UInteger and Var.
22404         (mtune=): Use Enum.
22405
22406 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22407
22408         * config/score/score.c (score_handle_option): Don't assert that
22409         global structures are in use.  Access target_flags via opts
22410         pointer.  Use value of -march= option to determine target_flags
22411         settings.
22412         * config/score/score.opt (march=): Use Enum.
22413         (score_arch): New Enum and EnumValue entries.
22414
22415 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22416
22417         * config/mep/mep.c (option_mtiny_specified): Remove.
22418         (mep_option_override): Move register handling for -mivc2 from
22419         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
22420         instead of option_mtiny_specified.
22421         (mep_handle_option): Access target_flags via opts pointer.  Don't
22422         assert that global structures are in use.  Defer part of -mivc2
22423         handling and move it to mep_option_override.
22424         * config/mep/mep.opt (IVC2): New Mask entry.
22425         (mivc2): Use Var and Defer instead of Mask.
22426
22427 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22428
22429         * config/v850/v850-opts.h: New.
22430         * config/v850/v850.c (small_memory): Replace with
22431         small_memory_physical_max array.  Make that array static const.
22432         (v850_handle_memory_option): Take integer value of argument.  Take
22433         gcc_options pointer, option text and location.  Return void.
22434         Update for changes to small memory structures.
22435         (v850_handle_option): Access target_flags via opts pointer.  Don't
22436         assert that global structures are in use.  Update calls to
22437         v850_handle_memory_option.
22438         (v850_encode_data_area): Update references to small memory settings.
22439         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22440         (enum small_memory_type): Move to v850-opts.h.
22441         * config/v850/v850.opt (config/v850/v850-opts.h): New
22442         HeaderInclude entry.
22443         (small_memory_max): New Variable entry.
22444         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
22445         (mtda, mzda): Likewise.
22446
22447 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22448
22449         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22450         pointer.  Don't assert that global structures are in use.
22451
22452 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22453
22454         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22455         via opts pointer.  Don't assert that global structures are in use.
22456
22457 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22458
22459         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22460         (munix=93): Use Var.
22461         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22462         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22463         * config/pa/pa-opts.h: New.
22464         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22465         (pa_handle_option): Don't assert that global structures are in
22466         use.  Access target_flags via opts pointer.  Don't handle
22467         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22468         OPT_munix_98 here.
22469         (pa_option_override): Handle deferred OPT_mfixed_range_.
22470
22471 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22472
22473         * config/mn10300/mn10300-opts.h: New.
22474         * config/mn10300/mn10300.c (mn10300_processor,
22475         mn10300_tune_string): Remove.
22476         (mn10300_handle_option): Don't assert that global structures are
22477         in use.  Access mn10300_processor via opts pointer.  Don't handle
22478         OPT_mtune_ here.
22479         * config/mn10300/mn10300.h (enum processor_type): Move to
22480         mn10300-opts.h.
22481         (mn10300_processor): Remove.
22482         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22483         HeaderInclude entry.
22484         (mn10300_processor): New Variable entry.
22485         (mtune=): Use Var.
22486
22487 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22488
22489         * config/microblaze/microblaze.c: Don't include opts.h.
22490         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22491         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22492         (mno-clearbss): Use Var and Warn.
22493
22494 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22495
22496         * config/m32r/m32r-opts.h: New.
22497         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22498         (m32r_handle_option): Don't assert that global structures are in
22499         use.  Access target_flags and m32r_cache_flush_func via opts
22500         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
22501         OPT_mno_flush_trap here.
22502         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22503         include of m32r-opts.h.
22504         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22505         HeaderInclude entry.
22506         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22507         (mmodel=): Use Enum and Var.
22508         (m32r_model): New Enum and EnumValue entries.
22509         (mno-flush-trap): Use Var.
22510         (msdata=): Use Enum and Var.
22511         (m32r_sdata): New Enum and EnumValue entries.
22512
22513 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22514
22515         * config/m32c/m32c.c: Don't include opts.h.
22516         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22517         m32c_handle_option): Remove.
22518         (m32c_option_override): Check global_options_set.x_target_memregs
22519         instead of target_memregs_set.
22520         * config/m32c/m32c.h (target_memregs): Remove.
22521         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22522         variable.
22523
22524 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22525
22526         * config/iq2000/iq2000-opts.h: New.
22527         * config/iq2000/iq2000.c: Don't include opts.h.
22528         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22529         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22530         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22531         HeaderInclude entry.
22532         (iq2000_tune): New Variable entry.
22533         (march=): Add comment.  Use Enum.
22534         (iq2000_arch): New Enum and EnumValue entries.
22535         (mcpu=): Use Enum and Var.
22536         (iq2000_tune): New Enum and EnumValue entries.
22537
22538 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22539
22540         * config/ia64/ia64-opts.h: New.
22541         * config/ia64/ia64.c (ia64_tune): Remove.
22542         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22543         here.  Use error_at.
22544         (ia64_option_override): Handle deferred OPT_mfixed_range_.
22545         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22546         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22547         HeaderInclude entry.
22548         (ia64_tune): New Variable entry.
22549         (mfixed-range=): Use Defer and Var.
22550         (mtune=): Use Enum and Var.
22551         (ia64_tune): New Enum and EnumValue entries.
22552
22553 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22554
22555         * config/frv/frv-opts.h: New.
22556         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22557         frv-opts.h.
22558         (frv_cpu_type): Remove.
22559         * config/frv/frv.c: Don't include opts.h.
22560         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22561         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22562         (frv_cpu_type): New Variable entry.
22563         (frv_cpu): New Enum and EnumValue entries.
22564
22565 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22566
22567         * config/cris/cris.c (cris_handle_option): Access target_flags via
22568         opts pointer.  Don't assert that global structures are in use.
22569         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22570         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22571
22572 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22573
22574         * config/bfin/bfin-opts.h: New.
22575         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22576         bfin_si_revision, bfin_workarounds): Remove.
22577         (bfin_cpus): Make static const.
22578         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22579         not bfin_lib_id_given.
22580         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
22581         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22582         pointer. Use error_at.  Don't assert that global structures are in use.
22583         * config/bfin/bfin.h: Include bfin-opts.h.
22584         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22585         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22586         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22587         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22588         entries.
22589
22590 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22591
22592         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
22593         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
22594         or -msoft-float here.
22595         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
22596         -msoft-float and -mhard-float.
22597         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
22598         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22599         msoft-float.
22600         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
22601         -msoft-float.
22602         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
22603         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
22604         not mhard-float.
22605         (LIBGCC_SPEC): Don't handle -msoft-float.
22606         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
22607         -mhard-float.
22608         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22609         msoft-float.
22610         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
22611         -mfloat-abi=*, not -msoft-float and -mhard-float.
22612         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
22613         -msoft-float.
22614         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
22615         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
22616         mhard-float and msoft-float.
22617         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
22618         mfloat-abi=soft in comments, not mhard-float and msoft-float.
22619         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22620         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
22621         mhard-float.
22622         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
22623         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
22624         msoft-float.
22625         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
22626         not mhard-float.
22627         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
22628         not msoft-float.
22629
22630 2011-03-22  Richard Henderson  <rth@redhat.com>
22631
22632         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
22633         TARGET_ABI_WINDOWS_NT.
22634         (alpha_output_function_end_prologue): Likewise.
22635         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
22636         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22637         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
22638         (trap, *movsi_nt_vms): Likewise.
22639         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
22640         (*tablejump_osf_nt_internal): Remove.
22641         * config/alpha/predicates.md (input_operand): Only test Pmode.
22642
22643 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22644
22645         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
22646         via opts pointer.  Use error_at.  Don't assert that global
22647         structures are in use.
22648
22649 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22650
22651         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
22652         (ix86_handle_option): Access ix86_isa_flags and
22653         ix86_isa_flags_explicit via opts pointer.  Don't assert that
22654         global structures are in use.
22655         (ix86_function_specific_save, ix86_function_specific_restore):
22656         Update ix86_isa_flags_explicit field name.
22657         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22658         (ix86_isa_flags_explicit): Rename TargetSave entry to
22659         x_ix86_isa_flags_explicit.
22660
22661 2011-03-22  Richard Henderson  <rth@redhat.com>
22662
22663         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22664         (alpha_option_override, direct_return): Likewise.
22665         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22666         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22667         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22668         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22669         (alpha_expand_epilogue, alpha_end_function): Likewise.
22670         (alpha_init_libfuncs): Likewise.
22671         (struct machine_function): Remove unicosmk members.
22672         (print_operand) ['t']: Remove.
22673         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22674         unicosmk_output_module_name, unicosmk_output_common,
22675         current_section_align, unicosmk_output_text_section_asm_op,
22676         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22677         unicosmk_section_type_flags, unicosmk_unique_section,
22678         unicosmk_asm_named_section, unicosmk_insert_attributes,
22679         unicosmk_output_align, unicosmk_defer_case_vector,
22680         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22681         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22682         unicosmk_output_ssib, unicosmk_add_call_info_word,
22683         unicosmk_extern_head, unicosmk_output_default_externs,
22684         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22685         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22686         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22687         * config/alpha/alpha-protos.h: Update.
22688         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22689         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22690         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22691         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22692         (*mulsi_se, mulvsi3): Likewise.
22693         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22694         (*divmodsi_internal, call, call_value, realign): Likewise.
22695         (moddi3, umoddi3): Likewise; remove duplicate expander.
22696         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22697         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22698         (*movdi_nofix): Remove r/U alternative.
22699         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22700         * config/alpha/constraints.md ("U"): Remove.
22701         * config/alpha/predicates.md (call_operand"): Don't test
22702         TARGET_ABI_UNICOSMK.
22703
22704 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22705
22706         * target.def (handle_option): Take gcc_options and
22707         cl_decoded_option pointers and location_t.
22708         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22709         * doc/tm.texi: Regenerate.
22710         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22711         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22712         * lto-opts.c (lto_reissue_options): Generate option structure for
22713         targetm.handle_option call.
22714         * opts.c (target_handle_option): Update call to
22715         targetm.handle_option.  Remove assertions about values now passed
22716         down to hook.
22717         * targhooks.c (default_target_handle_option): New.
22718         * targhooks.h (default_target_handle_option): Declare.
22719         * config/alpha/alpha.c: Include opts.h.
22720         (alpha_handle_option): Update to new hook interface.
22721         * config/arm/arm.c: Include opts.h.
22722         (arm_handle_option): Update to new hook interface.
22723         * config/arm/t-arm (arm.o): Update dependencies.
22724         * config/bfin/bfin.c: Include opts.h.
22725         (bfin_handle_option): Update to new hook interface.
22726         * config/cris/cris.c: Include opts.h.
22727         (cris_handle_option): Update to new hook interface.
22728         * config/frv/frv.c: Include opts.h.
22729         (frv_handle_option): Update to new hook interface.
22730         * config/i386/i386.c: Include opts.h.
22731         (ix86_handle_option): Update to new hook interface.
22732         (ix86_valid_target_attribute_inner_p): Generate option structure
22733         for call to ix86_handle_option.
22734         * config/i386/t-i386 (i386.o): Update dependencies.
22735         * config/ia64/ia64.c: Include opts.h.
22736         (ia64_handle_option): Update to new hook interface.
22737         * config/ia64/t-ia64 (ia64.o): Update dependencies.
22738         * config/iq2000/iq2000.c: Include opts.h.
22739         (iq2000_handle_option): Update to new hook interface.
22740         * config/m32c/m32c.c: Include opts.h.
22741         (m32c_handle_option): Update to new hook interface.
22742         * config/m32r/m32r.c: Include opts.h.
22743         (m32r_handle_option): Update to new hook interface.
22744         * config/m68k/m68k.c: Include opts.h.
22745         (m68k_handle_option): Update to new hook interface.
22746         * config/mep/mep.c: Include opts.h.
22747         (mep_handle_option): Update to new hook interface.
22748         * config/microblaze/microblaze.c: Include opts.h.
22749         (microblaze_handle_option): Update to new hook interface.
22750         * config/mips/mips.c: Include opts.h.
22751         (mips_handle_option): Update to new hook interface.
22752         * config/mn10300/mn10300.c: Include opts.h.
22753         (mn10300_handle_option): Update to new hook interface.
22754         * config/pa/pa.c: Include opts.h.
22755         (pa_handle_option): Update to new hook interface.
22756         * config/pdp11/pdp11.c: Include opts.h.
22757         (pdp11_handle_option): Update to new hook interface.
22758         * config/rs6000/rs6000.c: Include opts.h.
22759         (rs6000_handle_option): Update to new hook interface.
22760         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22761         * config/rx/rx.c: Include opts.h.
22762         (rx_handle_option): Update to new hook interface.
22763         * config/s390/s390.c: Include opts.h.
22764         (s390_handle_option): Update to new hook interface.
22765         * config/score/score.c: Include opts.h.
22766         (score_handle_option): Update to new hook interface.
22767         * config/sh/sh.c: Include opts.h.
22768         (sh_handle_option): Update to new hook interface.
22769         * config/sparc/sparc.c: Include opts.h.
22770         (sparc_handle_option): Update to new hook interface.
22771         * config/v850/v850.c: Include opts.h.
22772         (v850_handle_option): Update to new hook interface.
22773
22774 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22775
22776         * gcc.c (driver_unknown_option_callback): Only permit and save
22777         unknown -Wno- options.
22778         (driver_wrong_lang_callback): Save options directly instead of via
22779         driver_unknown_option_callback.
22780
22781 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22782
22783         * combine.c (simplify_set): Try harder to find the best CC mode when
22784         simplifying a nested COMPARE on the RHS.
22785
22786 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22787
22788         * config/alpha/gnu.h: Remove.
22789         * config/arc: Remove directory.
22790         * config/arm/netbsd.h: Remove.
22791         * config/arm/t-pe: Remove.
22792         * config/crx: Remove directory.
22793         * config/i386/netbsd.h: Remove.
22794         * config/m68hc11: Remove directory.
22795         * config/m68k/uclinux-oldabi.h: Remove.
22796         * config/mcore/mcore-pe.h: Remove.
22797         * config/mcore/t-mcore-pe: Remove.
22798         * config/netbsd-aout.h: Remove.
22799         * config/rs6000/gnu.h: Remove.
22800         * config/sh/sh-symbian.h: Remove.
22801         * config/sh/symbian-base.c: Remove.
22802         * config/sh/symbian-c.c: Remove.
22803         * config/sh/symbian-cxx.c: Remove.
22804         * config/sh/symbian-post.h: Remove.
22805         * config/sh/symbian-pre.h: Remove.
22806         * config/sh/t-symbian: Remove.
22807         * config/svr3.h: Remove.
22808         * config/vax/netbsd.h: Remove.
22809         * config.build: Don't handle i[34567]86-*-pe.
22810         * config.gcc: Remove handling of deprecations for most deprecated
22811         targets.
22812         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22813         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22814         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22815         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22816         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22817         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22818         Remove cases.
22819         * config.host: Don't handle i[34567]86-*-pe.
22820         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22821         (ASM_SPEC32): Don't handle -mcall-gnu.
22822         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22823         -mcall-gnu.
22824         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22825         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22826         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22827         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22828         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22829         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22830         conditional on SYMBIAN.
22831         * configure.ac: Don't handle powerpc*-*-gnu*.
22832         * configure: Regenerate.
22833         * doc/extend.texi (interrupt attribute): Don't mention CRX.
22834         * doc/install-old.texi (m6811, m6812): Don't mention.
22835         * doc/install.texi (arc-*-elf*): Don't document multilib option.
22836         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22837         (m68k-uclinuxoldabi): Don't mention.
22838         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
22839         Remove.
22840         (-mcall-gnu): Remove.
22841         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
22842         families): Remove constraint documentation.
22843
22844 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
22845
22846         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
22847         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
22848         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
22849
22850 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22851
22852         PR target/48226
22853         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
22854         vector when peeking at the next token for vector, don't expand the
22855         keywords.
22856
22857 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
22858
22859         * config/avr/avr-protos.h (expand_epilogue): Change prototype
22860         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
22861         * config/avr/avr.c (init_cumulative_args)
22862         (avr_function_arg_advance): Use it.
22863         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
22864         sibcall epilogues.
22865         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
22866         (avr_function_ok_for_sibcall): ...this new function.
22867         (avr_lookup_function_attribute1): New static Function.
22868         (avr_naked_function_p, interrupt_function_p)
22869         (signal_function_p, avr_OS_task_function_p)
22870         (avr_OS_main_function_p): Use it.
22871         * config/avr/avr.md ("sibcall", "sibcall_value")
22872         ("sibcall_epilogue"): New expander.
22873         ("*call_insn", "*call_value_insn"): New insn.
22874         ("call_insn", "call_value_insn"): Remove
22875         ("call", "call_value", "epilogue"): Change expander to handle
22876         sibling calls.
22877
22878 2011-03-21  Nick Clifton  <nickc@redhat.com>
22879
22880         * doc/invoke.texi (Overall Options): Move closing brace to end of
22881         options list.
22882         (Optimization Options): Add missing @gol.
22883         (Directory Options): Likewise.
22884         (i386 and x86-64 Options): Likewise.
22885         (RS6000 and PowerPC Options): Likewise.
22886         (i386 and x86-64 Windows Options): Likewise.
22887         (V850 Options): Add text missing from descriptions.
22888
22889 2011-03-22  Richard Henderson  <rth@redhat.com>
22890
22891         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
22892         (avr_incoming_return_addr_rtx): New.
22893         (emit_push_byte): New.
22894         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
22895         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
22896         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
22897         (emit_pop_byte): New.
22898         (expand_epilogue): Use it.  Pop frame pointer by bytes.
22899         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
22900         (INCOMING_RETURN_ADDR_RTX): New.
22901         (INCOMING_FRAME_SP_OFFSET): New.
22902         (ARG_POINTER_CFA_OFFSET): New.
22903         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
22904         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
22905         (pophi): Remove.
22906
22907         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
22908
22909 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22910
22911         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22912         (FUNCTION_ARG_ADVANCE): Likewise.
22913         * tm.texi.in: Change references to them to hook references.
22914         * tm.texi: Regenerate.
22915         * targhooks.c (default_function_arg): Eliminate check for target
22916         macro.
22917         (default_function_incoming_arg): Likewise.
22918         (default_function_arg_advance): Likewise.
22919         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22920         (function_arg_advance): Likewise.
22921         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22922
22923 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22924
22925         * tree.c (build_call_1): New function.
22926         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
22927
22928 2011-03-22  Richard Guenther  <rguenther@suse.de>
22929
22930         PR tree-optimization/48228
22931         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
22932         for single-arg PHIs.
22933
22934 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
22935
22936         PR rtl-optimization/48143
22937         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
22938         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
22939         sse2_cvtps2pd): Likewise.
22940
22941 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22942
22943         * recog.c (canonicalize_change_group): Use validate_unshare_change.
22944
22945 2011-03-22  Richard Guenther  <rguenther@suse.de>
22946
22947         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
22948         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
22949         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
22950         and REALIGN_LOAD_EXPR.
22951         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
22952         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
22953         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
22954         DOT_PROD_EXPR case ...
22955         (expand_expr_real_2): ... here.
22956         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
22957         and REALIGN_LOAD_EXPR.
22958         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
22959         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
22960         (vect_create_epilog_for_reduction): Likewise.
22961         (vectorizable_reduction): Likewise.
22962         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
22963         * tree-vect-stmts.c (vectorizable_load): Likewise.
22964
22965 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22966
22967         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
22968
22969 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22970
22971         * config/s390/s390.c (s390_delegitimize_address): Fix offset
22972         handling for PLTOFF/GOTOFF.
22973
22974 2011-03-22  Nick Clifton  <nickc@redhat.com>
22975
22976         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
22977         trailing backslash from the end of the macro definition.
22978
22979 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22980
22981         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
22982         and PLT unspecs.
22983
22984 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
22985
22986         * expr.h (prepare_operand): Move to...
22987         * optabs.h (prepare_operand): ...here and change the insn code
22988         parameter from "int" to "enum insn_code".
22989         (insn_operand_matches): Declare.
22990         * expr.c (init_expr_target): Use insn_operand_matches.
22991         (compress_float_constant): Likewise.
22992         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
22993         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
22994         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
22995         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
22996         Likewise.
22997         (gen_cond_trap): Likewise.
22998         (prepare_operand): Likewise.  Change icode to an insn_code.
22999         (insn_operand_matches): New function.
23000         * reload.c (find_reloads_address_1): Use insn_operand_matches.
23001         * reload1.c (gen_reload): Likewise.
23002         * targhooks.c (default_secondary_reload): Likewise.
23003
23004 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
23005
23006         * config/alpha/alpha.md (unspec): New define_c_enum.
23007         (unspecv): Ditto.
23008
23009 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
23010
23011         PR debug/48214
23012         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
23013         between a call and its CALL_ARG_LOCATION note.
23014
23015 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
23016
23017         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
23018
23019 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
23020
23021         PR c/42544
23022         PR c/48197
23023         * c-common.c (shorten_compare): If primopN is first sign-extended
23024         to opN and then zero-extended to result type, set primopN to opN.
23025
23026 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
23027
23028         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
23029         for barrier handlers.
23030
23031 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
23032
23033         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
23034         UNSPEC constants to be in the unspec enumeration, and redefine
23035         all UNSPECV constants to be in the unspecv enumeration, so that
23036         dumps print which unspec/unspec_volatile this is.
23037         * config/rs6000/vector.md (UNSPEC_*): Ditto.
23038         * config/rs6000/paired.md (UNSPEC_*): Ditto.
23039         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
23040         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
23041         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
23042
23043         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
23044         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
23045         UNSPECV_LWSYNC, since these are used as unspec_volatile.
23046         * config/rs6000/sync.md (isync, lwsync): Ditto.
23047
23048 2011-03-21  Richard Guenther  <rguenther@suse.de>
23049
23050         * params.def (lto-min-partition): Fix typo.
23051
23052 2011-03-21  Richard Guenther  <rguenther@suse.de>
23053
23054         PR c/47939
23055         * c-decl.c (grokdeclarator): Drop to the main variant only
23056         for array types.  Drop flag_gen_aux_info check.
23057
23058 2011-03-21  Richard Guenther  <rguenther@suse.de>
23059
23060         PR translation/47911
23061         * params.def (lto-partitions): Fix typo.
23062         (lto-min-partition): Fix wording.
23063
23064 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
23065
23066         * config/rs6000/t-freebsd: Remove duplication from file.
23067
23068 2011-03-21  Richard Guenther  <rguenther@suse.de>
23069
23070         PR middle-end/47661
23071         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23072
23073 2011-03-21  Richard Guenther  <rguenther@suse.de>
23074
23075         PR lto/48210
23076         * params.def (lto-partitions): Require at least 1 partition.
23077
23078 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23079
23080         * gthr-solaris.h: Remove.
23081         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23082         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23083         (LIB_SPEC): Likewise.
23084         * config/sol2.opt (threads): Remove.
23085         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23086         (sparc*-*-solaris2*): Likewise.
23087         * configure.ac (enable_threads): Enable solaris support.
23088         * configure: Regenerate.
23089         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23090         * doc/install.texi (Configuration, --enable-threads=lib): Remove
23091         solaris.
23092
23093 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23094
23095         * config.gcc: Obsolete *-*-solaris2.8*.
23096         * doc/install.texi (Specific, *-*-solaris2*): Document it.
23097
23098 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23099
23100         PR bootstrap/48135
23101         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23102         reference.  Solaris 8 perl works.
23103
23104 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23105
23106         PR bootstrap/48135
23107         * doc/install.texi (Prerequisites): Move jar etc. up.
23108         Explain support library version requirements.
23109
23110 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23111
23112         PR bootstrap/48135
23113         * doc/install.texi (Prerequisites): Move Perl to build
23114         requirements.  Always necessary on Solaris 2 with Sun ld.
23115
23116 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23117
23118         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23119         binutils 2.21.
23120         (Specific, i?86-*-solaris2.[89]): Likewise.
23121         (Specific, i?86-*-solaris2.10): Likewise.
23122         (Specific, mips-sgi-irix6): Likewise.
23123         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23124         Update for binutils 2.21.
23125
23126 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23127
23128         * configure.ac (gcc_cv_lto_plugin): Fix typo.
23129         Allow -fuse-linker-plugin for non-default plugin linker.
23130         * configure: Regenerate.
23131
23132 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
23133
23134         PR bootstrap/48167
23135         * gengtype.c (files_rules): Added rule for cp/parser.h.
23136
23137 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
23138
23139         PR target/48213
23140         * config/s390/s390.c (s390_delegitimize_address): Don't call
23141         lowpart_subreg if orig_x has BLKmode.
23142
23143 2011-03-21  Kai Tietz  <ktietz@redhat.com>
23144
23145         PR target/12171
23146         * doc/plugins.texi: Adjust documentation for plugin register_callback.
23147         * tree.h (attribute_spec): Add new member affects_type_identity.
23148         * attribs.c (empty_attribute_table): Adjust attribute_spec
23149         initializers.
23150         * config/alpha/alpha.c: Likewise.
23151         * config/arc/arc.c: Likewise.
23152         * config/arm/arm.c: Likewise.
23153         * config/avr/avr.c: Likewise.
23154         * config/bfin/bfin.c: Likewise.
23155         * config/crx/crx.c: Likewise.
23156         * config/darwin.h: Likewise.
23157         * config/h8300/h8300.c: Likewise.
23158         * config/i386/cygming.h: Likewise.
23159         * config/i386/i386.c: Likewise.
23160         * config/ia64/ia64.c: Likewise.
23161         * config/m32c/m32c.c: Likewise.
23162         * config/m32r/m32r.c: Likewise.
23163         * config/m68hc11/m68hc11.c: Likewise.
23164         * config/m68k/m68k.c: Likewise.
23165         * config/mcore/mcore.c: Likewise.
23166         * config/mep/mep.c: Likewise.
23167         * config/microblaze/microblaze.c: Likewise.
23168         * config/mips/mips.c: Likewise.
23169         * config/rs6000/rs6000.c: Likewise.
23170         * config/rx/rx.c: Likewise.
23171         * config/sh/sh.c: Likewise.
23172         * config/sol2.h: Likewise.
23173         * config/sparc/sparc.c: Likewise.
23174         * config/spu/spu.c: Likewise.
23175         * config/stormy16/stormy16.c: Likewise.
23176         * config/v850/v850.c: Likewise.
23177
23178 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
23179
23180         * simplify-rtx.c (simplify_binary_operation_1): Handle
23181         (xor (and A B) C) case when B and C are both constants.
23182
23183 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
23184
23185         * tree-dfa.c (add_referenced_var): Fix typo in comment.
23186
23187 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23188
23189         PR bootstrap/48168
23190         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
23191
23192 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
23193
23194         PR rtl-optimization/48156
23195         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
23196         assume df and df_lr are not NULL.
23197
23198 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23199
23200         PR debug/48023
23201         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
23202         between a call and its CALL_ARG_LOCATION note.
23203
23204 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23205
23206         PR debug/48178
23207         * config/sh/sh.c (find_barrier): Don't emit a constant pool
23208         between a call and its corresponding CALL_ARG_LOCATION note.
23209
23210 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
23211
23212         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
23213         instead of loop. Use HARD_REGISTER_NUM_P predicate.
23214         * haifa-sched.c (setup_ref_regs): Ditto.
23215         * caller-save.c (add_used_regs_1): Ditto.
23216         * dse.c (look_for_hardregs): Ditto.
23217         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
23218         * sched-rgn.c (check_live_1): Ditto.
23219
23220 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
23221
23222         * c-decl.c (diagnose_mismatched_decls): Give an error for
23223         redefining a typedef with variably modified type.
23224
23225 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
23226
23227         * c-decl.c (grokfield): Don't allow typedefs for structures or
23228         unions with no tag by default.
23229         * doc/extend.texi (Unnamed Fields): Update.
23230
23231 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
23232
23233         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23234         Rewrite using indirect functions.
23235         (lwp_slwpcb): Ditto.
23236         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
23237         (avx_vinsertf128<mode>): Ditto.
23238
23239 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23240
23241         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
23242         unspecs.
23243
23244 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23245
23246         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
23247         splitting between a call and its corresponding CALL_ARG_LOCATION note.
23248
23249 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
23250
23251         PR rtl-optimization/48170
23252         * gcse.c (hoist_code): Remove bogus asserts.
23253
23254 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
23255
23256         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
23257         computation for prologue/epilogue.
23258
23259 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23260
23261         * Makefile.in (check-consistency): Remove.
23262
23263 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
23264
23265         PR debug/48176
23266         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
23267         arange_table_in_use is 0, but either text_section_used or
23268         cold_text_section_used is true.  Don't call it if
23269         !info_section_emitted.
23270
23271 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
23272
23273         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
23274         FUNCTION_VALUE_REGNO_P): Remove.
23275         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
23276         Remove.
23277         * config/avr/avr.c (avr_ret_register): Make static inline.
23278         (avr_function_value_regno_p): New function.
23279         (avr_libcall_value): Make static. Add 'func' argument.
23280         (avr_function_value): Make static. Rename 'func' argument to
23281         'fn_decl_or_type', forward it to avr_libcall_value. Call
23282         avr_ret_register function instead of RET_REGISTER macro.
23283         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23284
23285 2011-03-18  Jason Merrill  <jason@redhat.com>
23286
23287         PR c++/23372
23288         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
23289
23290 2011-03-18  Richard Guenther  <rguenther@suse.de>
23291
23292         * doc/install.texi (--enable-gold): Remove.
23293         (--with-plugin-ld): Document.
23294         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
23295
23296 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
23297
23298         PR middle-end/47790
23299         * expr.c (optimize_bitfield_assignment_op): Revamp to work
23300         again after expansion changes.
23301
23302 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
23303
23304         * combine.c (try_combine): Do simplification only call of
23305         subst() on i2 even when i1 is present. Update comments.
23306
23307 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
23308
23309         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
23310         and UNSPEC_PCREL_SYMOFF.
23311
23312 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23313
23314         * config/s390/s390.md: Use define_c_enum for the unspec constant
23315         definitions.
23316
23317 2011-03-18  Richard Henderson  <rth@redhat.com>
23318             Jakub Jelinek  <jakub@redhat.com>
23319
23320         PR bootstrap/48161
23321         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
23322         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
23323
23324 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
23325
23326         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23327         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
23328         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
23329         Change return type to bool.
23330         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23331
23332 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23333
23334         PR debug/48163
23335         * var-tracking.c (prepare_call_arguments): If CALL target
23336         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
23337         pc instead of looking it up using cselib_lookup and use
23338         Pmode for it if x has VOIDmode.
23339         * dwarf2out.c (gen_subprogram_die): If also both first and
23340         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
23341
23342         PR debug/48163
23343         * function.c (assign_parms): For data.passed_pointer parms
23344         use MEM of data.entry_parm instead of data.entry_parm itself
23345         as DECL_INCOMING_RTL.
23346         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
23347         also when passed and declared mode is the same, DECL_RTL
23348         is a MEM with pseudo as address and DECL_INCOMING_RTL is
23349         a MEM too.
23350
23351 2011-03-16  Jeff Law  <law@redhat.com>
23352
23353         PR rtl-optimization/37273
23354         * ira-costs.c (scan_one_insn): Detect constants living in memory and
23355         handle them like argument loads from stack slots.  Do not double
23356         count memory for memory constants and argument loads from stack slots.
23357
23358 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
23359
23360         PR debug/48160
23361         * var-tracking.c (prepare_call_arguments): Check SUBREG.
23362
23363 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
23364
23365         PR target/48171
23366         * config/i386/i386.opt: Add Save to -mavx and -mfma.
23367
23368 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23369
23370         PR bootstrap/48153
23371         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23372         if dwarf_strict.
23373         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23374         Clear call_arg_locations and call_arg_loc_last always.
23375
23376         PR middle-end/48152
23377         * var-tracking.c (prepare_call_arguments): If argument needs to be
23378         passed by reference, adjust argtype and mode.
23379
23380 2011-03-17  Richard Guenther  <rguenther@suse.de>
23381
23382         PR middle-end/48134
23383         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23384         a value make sure to fold the statement.
23385
23386 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
23387
23388         PR target/43872
23389         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23390         return condition with !cfun->calls_alloca.
23391
23392 2011-03-17  Richard Guenther  <rguenther@suse.de>
23393
23394         PR bootstrap/48148
23395         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23396         origin for decls in other ltrans units.
23397         (input_varpool_node): Likewise.
23398
23399 2011-03-17  Richard Guenther  <rguenther@suse.de>
23400
23401         PR middle-end/48165
23402         * tree-object-size.c (compute_object_offset): Properly return
23403         the offset operand of MEM_REFs as sizetype.
23404
23405 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23406
23407         PR rtl-optimization/48141
23408         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23409         * dse.c: Include params.h.
23410         (active_local_stores_len): New variable.
23411         (add_wild_read, dse_step1): Clear it when setting active_local_stores
23412         to NULL.
23413         (record_store, check_mem_read_rtx): Decrease it when removing
23414         from the chain.
23415         (scan_insn): Likewise.  Increase it when adding to chain, if it
23416         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23417         set active_local_stores to NULL before the addition.
23418         * Makefile.in (dse.o): Depend on $(PARAMS_H).
23419
23420         PR rtl-optimization/48141
23421         * dse.c (record_store): If no positions are needed in an insn
23422         that cannot be deleted, at least unchain it from active_local_stores.
23423
23424 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
23425
23426         PR debug/47510
23427         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23428         (lookup_type_die_strip_naming_typedef): ... here.
23429         (get_context_die): Use it.
23430         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23431         the anonymous struct named by the naming typedef.
23432
23433 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23434
23435         PR target/48154
23436         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23437         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23438
23439 2011-03-16  Jeff Law  <law@redhat.com>
23440
23441         * tree-vrp.c (identify_jump_threads): Slightly simplify type
23442         check for operands of conditional.  Allow type to be a pointer.
23443
23444 2011-03-16  Richard Guenther  <rguenther@suse.de>
23445
23446         PR tree-optimization/48149
23447         * fold-const.c (fold_binary_loc): Fold
23448         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23449
23450 2011-03-16  Richard Guenther  <rguenther@suse.de>
23451
23452         PR tree-optimization/26134
23453         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23454         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23455         (non_rewritable_mem_ref_base): Handle complex type component
23456         accesses, constrain offsets for vector and complex extracts
23457         more properly.
23458
23459 2011-03-16  Richard Guenther  <rguenther@suse.de>
23460
23461         PR tree-optimization/48146
23462         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23463         operands avoiding the need for renaming.
23464
23465 2011-03-16  Richard Guenther  <rguenther@suse.de>
23466
23467         * gimple-fold.c (maybe_fold_reference): Open-code relevant
23468         constant folding.  Move MEM_REF canonicalization first.
23469         Rely on fold_const_aggregate_ref for initializer folding.
23470         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23471
23472 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23473
23474         PR middle-end/48136
23475         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23476         arg0/arg1 or their arguments are always fold converted to matching
23477         types.
23478
23479         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23480         to nargs.
23481
23482 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23483
23484         PR lto/46944
23485         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23486         Handle in-tree gold.
23487         (ld_vers): Extract binutils version for gold.
23488         (gcc_cv_ld_hidden): Handle gold here.
23489         (gcc_cv_lto_plugin): Determine level of linker plugin support.
23490         * configure: Regenerate.
23491         * config.in: Regenerate.
23492         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23493         -fuse-linker-plugin otherwise.
23494         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
23495         (LINK_COMMAND_SPEC): Use it.
23496         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23497
23498 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23499
23500         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23501         * calls.c: Remove debug.h include.
23502         (emit_call_1): Don't call virtual_call_token debug hook.
23503         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23504         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23505         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23506         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23507         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23508         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23509         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23510         dwarf2out_virtual_call): Remove.
23511         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23512         copy_call_info and virtual_call hooks.
23513         (dwarf2out_init): Don't initialize vcall_insn_table,
23514         debug_dcall_section and debug_vcall_section.
23515         (prune_unused_types): Don't mark nodes from dcall_table.
23516         (dwarf2out_finish): Don't output dcall or vcall tables.
23517         * final.c (final_scan_insn): Don't call direct_call or
23518         virtual_call debug hooks.
23519         * debug.h (struct gcc_debug_hooks): Remove direct_call,
23520         virtual_call_token, copy_call_info and virtual_call hooks.
23521         (debug_nothing_uid): Remove prototype.
23522         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23523         copy_call_info and virtual_call hooks.
23524         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23525         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23526         * debug.c (do_nothing_debug_hooks): Likewise.
23527         (debug_nothing_uid): Remove.
23528         * doc/invoke.texi (-fenable-icf-debug): Remove.
23529         * common.opt (-fenable-icf-debug): Likewise.
23530
23531         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23532         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23533         call's MEM.  Handle functions returning aggregate through a hidden
23534         first pointer.  For virtual calls add clobbered pc to call arguments
23535         chain.
23536         * dwarf2out.c (gen_subprogram_die): Emit
23537         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23538         can't be emitted.
23539
23540         PR debug/45882
23541         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23542         * rtl.h (ENTRY_VALUE_EXP): Define.
23543         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23544         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23545         * print-rtl.c (print_rtx): Likewise.
23546         * gengtype.c (adjust_field_rtx_def): Likewise.
23547         * var-tracking.c (vt_add_function_parameter): Adjust
23548         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23549         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23550         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23551         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23552         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23553
23554         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23555         Call var_location debug hook even on CALL_INSNs.
23556         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23557         * rtl.def (ENTRY_VALUE): New.
23558         * dwarf2out.c: Include cfglayout.h.
23559         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23560         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23561         (struct call_arg_loc_node): New type.
23562         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23563         tail_call_site_count): New variables.
23564         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23565         DW_TAG_GNU_call_site_parameter.
23566         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23567         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23568         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23569         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23570         and DW_AT_GNU_all_source_call_sites.
23571         (mem_loc_descriptor): Handle ENTRY_VALUE.
23572         (add_src_coords_attributes): Don't add enything if
23573         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23574         (dwarf2out_abstract_function): Save and clear call_arg_location,
23575         call_site_count and tail_call_site_count around dwarf2out_decl call.
23576         (gen_call_site_die): New function.
23577         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23578         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23579         (dwarf2out_function_decl): Clear call_arg_locations,
23580         call_arg_loc_last, set call_site_count and tail_call_site_count
23581         to -1 and free block_map.
23582         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23583         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
23584         followed by any real instructions.
23585         (dwarf2out_begin_function): Set call_site_count and
23586         tail_call_site_count to 0.
23587         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23588         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23589         attempt to force a DIE for it and worst case remove the attribute.
23590         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23591         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
23592         the decl itself.
23593         * var-tracking.c: Include tm_p.h.
23594         (vt_stack_adjustments): For calls call note_register_arguments.
23595         (argument_reg_set): New variable.
23596         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
23597         ensure the VALUE is resolved.
23598         (call_arguments): New variable.
23599         (prepare_call_arguments): New function.
23600         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
23601         (struct expand_loc_callback_data): Add ignore_cur_loc field.
23602         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
23603         always use the best expression.
23604         (vt_expand_loc): Add ignore_cur_loc argument.
23605         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
23606         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
23607         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
23608         note for all calls.
23609         (vt_add_function_parameter): Use cselib_lookup_from_insn.
23610         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
23611         argument.  Don't call cselib_preserve_only_values and
23612         cselib_reset_table.
23613         (note_register_arguments): New function.
23614         (vt_initialize): Compute argument_reg_set.  Call
23615         vt_add_function_parameters before processing basic blocks instead of
23616         afterwards.  For calls call prepare_call_arguments before calling
23617         cselib_process_insn.
23618         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
23619         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
23620         (var-tracking.o): Depend on $(TM_P_H).
23621         * cfglayout.h (insn_scope): New prototype.
23622         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
23623         * cfglayout.c (insn_scope): No longer static.
23624         * insn-notes.def (CALL_ARG_LOCATION): New.
23625         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
23626         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
23627         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
23628         nothing for DECL_EXTERNAL BLOCK_VARS.
23629
23630 2011-03-16  Alan Modra  <amodra@gmail.com>
23631
23632         PR target/45844
23633         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
23634         create invalid offset address for vsx splat insn.
23635         * config/rs6000/predicates.md (splat_input_operand): New.
23636         * config/rs6000/vsx.md (vsx_splat_*): Use it.
23637
23638 2011-03-15  Xinliang David Li  <davidxl@google.com>
23639
23640         PR c/47837
23641         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
23642         (normalize_preds): New function.
23643         (is_use_properly_guarded): Normalize def predicates.
23644
23645 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23646
23647         PR target/46788
23648         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
23649         in the output template.
23650
23651 2011-03-15  Richard Guenther  <rguenther@suse.de>
23652
23653         PR middle-end/47650
23654         * tree-pretty-print.c (dump_function_declaration): Properly
23655         dump unprototyped and varargs function types.
23656
23657 2011-03-15  Richard Guenther  <rguenther@suse.de>
23658
23659         PR tree-optimization/13954
23660         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23661         and friends.
23662
23663 2011-03-15  Richard Guenther  <rguenther@suse.de>
23664
23665         PR tree-optimization/48037
23666         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23667         selects into BIT_FIELD_REFs.
23668         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23669         vector select.
23670
23671 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
23672
23673         PR tree-optimization/48129
23674         * builtins.c (fold_builtin_snprintf): Convert to type of
23675         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23676         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23677
23678 2011-03-15  Richard Guenther  <rguenther@suse.de>
23679
23680         PR tree-optimization/41490
23681         * tree-ssa-dce.c (propagate_necessity): Handle returns without
23682         value but with VUSE.
23683         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23684         return statements.
23685         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23686         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23687         * tree-tailcall.c (find_tail_calls): Ignore returns.
23688
23689 2011-03-15  Richard Guenther  <rguenther@suse.de>
23690
23691         PR middle-end/48031
23692         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23693         or variable-indexed array accesses when in gimple form.
23694
23695 2011-03-15  Richard Guenther  <rguenther@suse.de>
23696
23697         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23698
23699 2011-03-15  Alan Modra  <amodra@gmail.com>
23700
23701         PR target/48032
23702         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23703         presume symbol_refs without a symbol_ref_decl are suitably
23704         aligned, nor other trees we may see here.  Handle anchor symbols.
23705         (legitimate_constant_pool_address_p): Comment.  Add mode param.
23706         Check cmodel=medium addresses.  Adjust all calls.
23707         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23708         creating cmodel=medium optimized access to locals.
23709         * config/rs6000/constraints.md (R): Pass QImode to
23710         legitimate_constant_pool_address_p.
23711         * config/rs6000/predicates.md (input_operand): Pass mode to
23712         legitimate_constant_pool_address_p.
23713         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23714         Update prototype.
23715
23716 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23717
23718         PR target/48053
23719         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23720         64-bit constants being loaded into registers other than GPRs such
23721         as loading 0 into a VSX register.
23722
23723 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23724
23725         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23726
23727 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23728
23729         PR middle-end/47917
23730         * builtins.c (fold_builtin_snprintf): New function.
23731         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23732         (fold_builtin_4): Likewise.
23733
23734         PR middle-end/38878
23735         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23736         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
23737         and C - X == X also strip nops from +/-/p+ operand.
23738         When optimizing -X == C, fold C to arg0's type.
23739
23740         PR debug/47946
23741         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23742         emit it as add_AT_int instead of add_AT_unsigned.
23743
23744 2011-03-14  Tom Tromey  <tromey@redhat.com>
23745
23746         * unwind-dw2.c: Include sys/sdt.h if it exists.
23747         (_Unwind_DebugHook): Use STAP_PROBE2.
23748         * config.in, configure: Rebuild.
23749         * configure.ac: Check for sys/sdt.h.
23750
23751 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
23752
23753         * config/i386/i386.md (ROUND_FLOOR): New constant.
23754         (ROUND_CEIL): Ditto.
23755         (ROUND_TRUNC): Ditto.
23756         (ROUND_MXCSR): Ditto.
23757         (ROUND_NO_EXC): Ditto.
23758         (rint<mode>2): Use new defines instead of numerical constants.
23759         (floor<mode>2): Ditto.
23760         (ceil<mode>2): Ditto.
23761         (btrunc<mode>2): Ditto.
23762         * config/i386/i386-builtin-types.def: Define ROUND function type
23763         aliases.
23764         * config/i386/i386.c (enum ix86_builtins): Add
23765         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23766         (struct builtin_description): Add
23767         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23768         (ix86_expand_sse_round): New static function.
23769         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23770         function types.
23771         (ix86_builtin_vectorized_function): Handle
23772         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23773
23774 2011-03-14  Tom Tromey  <tromey@redhat.com>
23775
23776         * c-parser.c (c_parser_asm_string_literal): Clear
23777         warn_overlength_strings.
23778
23779 2011-03-14  Tom Tromey  <tromey@redhat.com>
23780
23781         * c-parser.c (disable_extension_diagnostics): Save
23782         warn_overlength_strings.
23783         (restore_extension_diagnostics): Restore warn_overlength_strings.
23784
23785 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23786
23787         * BASE-VER: Change to 4.7.0.
23788
23789 2011-03-14  Richard Guenther  <rguenther@suse.de>
23790
23791         PR middle-end/48098
23792         * tree.c (build_vector_from_val): Adjust assert to requirements
23793         and reality.
23794
23795 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23796
23797         PR bootstrap/48102
23798         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23799
23800 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
23801
23802         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23803         terms of target_flags_explicit. Adjust copyright year.
23804
23805         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23806         * config/rs6000/t-freebsd: New file. Add override for
23807         LIB2FUNCS_EXTRA.
23808
23809 2011-03-13  Chris Demetriou  <cgd@google.com>
23810
23811         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23812         (-fno-diagnostics-show-option): this, to reflect current default.
23813         (-Werror=): Update text about -fno-diagnostics-show-option.
23814
23815 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
23816
23817         PR target/48053
23818         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23819         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23820         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23821         mode is not V2DImode or V2DFmode.
23822         (vspltis_constant): Do not handle V2DImode and V2DFmode.
23823         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23824         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23825         registers to 0.
23826         (movdi_internal64): Likewise.
23827
23828 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
23829
23830         PR tree-optimization/47127
23831         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23832         parameter.
23833         (set_cloog_options): Same.
23834         (scop_to_clast): Same.
23835         (print_clast_stmt): Do not call cloog_state_malloc and
23836         cloog_state_free.
23837         (print_generated_program): Same.
23838         (gloog): Same.
23839         * graphite-clast-to-gimple.h (cloog_state): Declared.
23840         (scop_to_clast): Adjust declaration.
23841         * graphite.c (cloog_state): Defined here.
23842         (graphite_initialize): Call cloog_state_malloc.
23843         (graphite_finalize): Call cloog_state_free.
23844
23845 2011-03-11  Jason Merrill  <jason@redhat.com>
23846
23847         * attribs.c (lookup_attribute_spec): Take const_tree.
23848         * tree.h: Adjust.
23849
23850 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
23851
23852         * config/sparc/sparc.c (sparc_option_override): Use
23853         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
23854
23855 2011-03-11  Richard Guenther  <rguenther@suse.de>
23856
23857         PR tree-optimization/48067
23858         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
23859         multiplication result will be only used once on the target
23860         stmt.
23861
23862 2011-03-11  Richard Guenther  <rguenther@suse.de>
23863
23864         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
23865
23866 2011-03-11  Richard Guenther  <rguenther@suse.de>
23867
23868         PR lto/48073
23869         * tree.c (find_decls_types_r): Do not walk types only reachable
23870         from IDENTIFIER_NODEs.
23871
23872 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23873
23874         PR middle-end/48044
23875         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
23876         all vnode->force_output nodes as needed.
23877
23878 2011-03-11  Jason Merrill  <jason@redhat.com>
23879
23880         PR c++/48069
23881         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
23882         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
23883
23884 2011-03-11  Martin Jambor  <mjambor@suse.cz>
23885
23886         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
23887         cgraph_node.
23888
23889 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23890
23891         PR tree-optimization/48063
23892         * ipa-inline.c (cgraph_decide_inlining): Don't try to
23893         inline functions called once if !tree_can_inline_p (node->callers).
23894
23895 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
23896
23897         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
23898         extra_objs.
23899         * config/score/score3.c: Delete.
23900         * config/score/score3.h: Delete.
23901         * config/score/mul-div.S: Delete.
23902         * config/score/sfp-machine.h: Add new file.
23903         * config/score/constraints.md: Add new file.
23904         * config/score/t-score-softfp: Add new file.
23905         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
23906         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
23907         (score7_extra_constraint): Delete.
23908         (score7_option_override): Remove unused code.
23909         * config/score/score.c: Remove score3 and score5 define and code.
23910         * config/score/score.h: Remove score3 and score5 define and code.
23911         * config/score/score.md: Remove score3 template and unusual insn.
23912         * config/score/score.opt: Remove score3 and score5 options.
23913
23914 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23915
23916         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
23917         when _HPUX_SOURCE is defined.
23918         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
23919
23920 2011-03-10  Jason Merrill  <jason@redhat.com>
23921
23922         PR c++/48029
23923         * stor-layout.c (layout_type): Don't set structural equality
23924         on arrays of incomplete type.
23925         * tree.c (type_hash_eq): Handle comparing them properly.
23926
23927 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
23928
23929         PR debug/48043
23930         * config/s390/s390.c (s390_delegitimize_address): Make sure the
23931         result mode matches original rtl mode.
23932
23933 2011-03-10  Nick Clifton  <nickc@redhat.com>
23934
23935         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
23936         (andsi3, andsi3_flags): Fix timings for three operand alternative.
23937
23938 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
23939
23940         PR rtl-optimization/47866
23941         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
23942         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
23943         if target wasn't scalar.
23944         * function.c (assign_stack_temp_for_type): Assert that neither
23945         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
23946         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
23947         macro.
23948         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
23949
23950 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23951
23952         * config/s390/s390-protos.h (s390_label_align): New prototype.
23953         * config/s390/s390.c (s390_label_align): New function.
23954         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
23955
23956 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
23957
23958         PR target/47755
23959         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
23960         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
23961         (output_vec_const_move): Ditto.
23962
23963 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
23964
23965         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
23966         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
23967         * config/mips/mips.c (mips_preferred_reload_class): Make static.
23968         Change 'rclass' argument and result type to reg_class_t.
23969         (TARGET_PREFERRED_RELOAD_CLASS): Define.
23970
23971 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
23972
23973         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23974         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
23975         (TARGET_MEMORY_MOVE_COST): Define.
23976         (avr_register_move_cost, avr_memory_move_cost): New Functions.
23977
23978 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
23979
23980         PR debug/47881
23981         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
23982         removed anything.
23983
23984         PR tree-optimization/48022
23985         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
23986         for EQ/NE_EXPR.
23987
23988 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
23989
23990         PR debug/47991
23991         * var-tracking.c (find_use_val): Return NULL for
23992         cui->sets && cui->store_p BLKmode MEMs.
23993
23994 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
23995
23996         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
23997         Remove.
23998         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
23999         xstormy16_print_operand_address): Remove.
24000         * config/stormy16/stormy16.c (xstormy16_print_operand,
24001         xstormy16_print_operand_address): Make static.
24002         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24003
24004 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
24005
24006         PR target/47862
24007         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24008         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
24009         before definition.
24010
24011 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
24012
24013         PR bootstrap/48000
24014         * cfgloopmanip.c (fix_bb_placements): Return immediately
24015         if FROM is BASE_LOOP's header.
24016
24017 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
24018
24019         * gimplify.c (gimplify_function_tree): Fix building calls
24020         to __builtin_return_address.
24021
24022 2011-03-07  Alan Modra  <amodra@gmail.com>
24023
24024         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
24025         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
24026         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
24027         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
24028         return_mode args.
24029         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
24030         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
24031         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
24032         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
24033         * config/rs6000/rs6000.c
24034         (rs6000_elf_end_indicate_exec_stack): Rename to..
24035         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
24036         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
24037         (rs6000_file_start): ..here.
24038         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
24039         file scope variables.
24040         (call_ABI_of_interest): New function.
24041         (init_cumulative_args): Set above vars when function return value
24042         is a float, vector, or small struct.
24043         (rs6000_function_arg_advance_1): Likewise for function args.
24044         (rs6000_va_start): Set rs6000_passes_float if variable arg function
24045         references float args.
24046
24047 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
24048
24049         * doc/cfg.texi: Remove "See" before @ref.
24050         * doc/invoke.texi: Likewise.
24051
24052 2011-03-05  Jason Merrill  <jason@redhat.com>
24053
24054         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
24055
24056 2011-03-05  Anthony Green  <green@moxielogic.com>
24057
24058         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24059
24060 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
24061
24062         PR rtl-optimization/47899
24063         * cfgloopmanip.c (fix_bb_placements): Fix first argument
24064         to flow_loop_nested_p when moving the loop upward.
24065
24066 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
24067
24068         PR target/47719
24069         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
24070
24071 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
24072
24073         PR tree-optimization/47967
24074         * ipa-cp.c (build_const_val): Return NULL instead of creating
24075         VIEW_CONVERT_EXPR for mismatching sizes.
24076         (ipcp_create_replace_map): Return NULL if build_const_val failed.
24077         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24078         give up on versioning.
24079
24080 2011-03-05  Alan Modra  <amodra@gmail.com>
24081
24082         PR target/47986
24083         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24084         full cmodel medium/large lo_sum + high addresses.
24085
24086 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24087
24088         * config/s390/s390.c (s390_decompose_address): Reject non-literal
24089         pool references in UNSPEC_LTREL_OFFSET.
24090
24091 2011-03-04  Jan Hubicka  <jh@suse.cz>
24092
24093         PR lto/47497
24094         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24095         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24096         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24097         Add node pointers.
24098         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24099         cgraph_add_thunk): Add node pointers.
24100         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24101         associated to right node.
24102         (input_node): Update use of cgraph_same_body_alias
24103         and cgraph_add_thunk.
24104
24105 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
24106
24107         * config/i386/i386.opt (mprefer-avx128): New flag.
24108         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24109         modes when the flag -mprefer-avx128 is on.
24110
24111 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
24112
24113         * dwarf2out.c (compare_loc_operands): Fix address handling.
24114
24115 2011-03-04  Alan Modra  <amodra@gmail.com>
24116
24117         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24118
24119 2011-03-04  Richard Guenther  <rguenther@suse.de>
24120
24121         PR middle-end/47968
24122         * expmed.c (extract_bit_field_1): Prefer vector modes that
24123         vec_extract patterns can handle.
24124
24125 2011-03-04  Richard Guenther  <rguenther@suse.de>
24126
24127         PR middle-end/47975
24128         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24129
24130 2011-03-04  Richard Henderson  <rth@redhat.com>
24131
24132         * explow.c (emit_stack_save): Remove 'after' parameter.
24133         (emit_stack_restore): Likewise.
24134         * expr.h: Update to match.
24135         * builtins.c, calls.c, stmt.c: Likewise.
24136         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24137         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24138         * function.c (expand_function_end): Insert the emit_stack_save
24139         sequence before parm_birth_insn instead of after.
24140
24141 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
24142
24143         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
24144         (ssse3_pmaddubsw128): Ditto.
24145         (ssse3_pmaddubsw): Ditto.
24146
24147 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
24148
24149         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
24150
24151 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
24152
24153         PR c/47963
24154         * gimplify.c (omp_add_variable): Only call omp_notice_variable
24155         on TYPE_SIZE_UNIT if it is a DECL.
24156
24157         PR debug/47283
24158         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
24159         first operand is not is_gimple_mem_ref_addr, try to fold it.
24160         If the operand still isn't is_gimple_mem_ref_addr, clear
24161         MEM_EXPR on op0.
24162
24163 2011-03-03  Richard Guenther  <rguenther@suse.de>
24164
24165         PR middle-end/47283
24166         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
24167         match comment.
24168         (refs_may_alias_p_1): For release branches return true if
24169         we are confused by our input.
24170
24171 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24172
24173         * config/s390/s390.c (s390_function_value): Rename to ...
24174         (s390_function_and_libcall_value): ... this.
24175         (s390_function_value): New function.
24176         (s390_libcall_value): New function.
24177         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
24178         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
24179         target macro definitions.
24180         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
24181
24182 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
24183
24184         * config/i386/freebsd64.h (CC1_SPEC): Define.
24185         * config/i386/linux64.h (CC1_SPEC): Define.
24186         * config/i386/x86-64.h (CC1_SPEC): Don't define.
24187
24188 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
24189
24190         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24191         Remove.
24192         * config/stormy16/stormy16.c: Include reload.h.
24193         (xstormy16_memory_move_cost): New function.
24194         (TARGET_MEMORY_MOVE_COST): Define.
24195
24196 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
24197
24198         PR rtl-optimization/47925
24199         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
24200         with side effects.  Remove the more-specific check for volatile asms.
24201
24202 2011-03-02  Alan Modra  <amodra@gmail.com>
24203
24204         PR target/47935
24205         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
24206         toc relative addresses for valid offsets.
24207
24208 2011-03-01  Richard Guenther  <rguenther@suse.de>
24209
24210         PR tree-optimization/47890
24211         * tree-vect-loop.c (get_initial_def_for_induction): Set
24212         related stmt properly.
24213
24214 2011-03-01  Richard Guenther  <rguenther@suse.de>
24215
24216         PR lto/47924
24217         * lto-streamer.c (lto_record_common_node): Also register
24218         the canonical type.
24219
24220 2011-03-01  Richard Guenther  <rguenther@suse.de>
24221
24222         PR lto/46911
24223         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24224         Do not stream DECL_ABSTRACT_ORIGIN.
24225         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24226         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24227         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24228         Do not stream DECL_ABSTRACT_ORIGIN.
24229         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24230         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24231
24232 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
24233
24234         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
24235         FUNCTION_VALUE_REGNO_P): Remove.
24236         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
24237         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
24238         Add 'outgoing' argument.
24239         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
24240         function.
24241         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24242         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24243
24244 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
24245
24246         PR debug/28047
24247         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
24248         (lookup_filename): Likewise.
24249         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
24250
24251 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
24252             Jakub Jelinek  <jakub@redhat.com>
24253
24254         PR middle-end/47893
24255         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
24256         (assign_stack_local_1): Change last argument type to int.
24257         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
24258         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
24259         don't record padding space into frame_space_list nor use those areas.
24260         (assign_stack_local): Adjust caller.
24261         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
24262         of assign_stack_local, pass 0 as last argument.
24263         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
24264         callers.
24265
24266 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
24267
24268         PR debug/47283
24269         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
24270         Use target address_mode and pointer_mode hooks instead of hardcoded
24271         Pmode and ptr_mode.  Handle some simple cases of extending if
24272         POINTERS_EXTEND_UNSIGNED < 0.
24273         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
24274         Call convert_debug_memory_address.
24275         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
24276         convert_debug_memory_address.
24277
24278         PR middle-end/46790
24279         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
24280         * configure: Regenerated.
24281         * config.in: Regenerated.
24282         * varasm.c (default_function_section): Return NULL
24283         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
24284
24285 2011-02-28  Martin Jambor  <mjambor@suse.cz>
24286
24287         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
24288         the description to match the printed values.
24289
24290 2011-02-28  Richard Guenther  <rguenther@suse.de>
24291
24292         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
24293         of the copied scope tree.
24294
24295 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24296
24297         * doc/extend.texi (Function Attributes): Avoid deeply (and
24298         wrongly) nested tables.
24299
24300 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
24301
24302         PR middle-end/47903
24303         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
24304         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
24305         r isn't op0 nor op1.
24306
24307 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
24308
24309         * config/avr/avr.md: Remove magic comment for emacs.
24310
24311 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
24312
24313         PR target/45261
24314         * config/avr/avr.c (avr_option_override): Use error on bad options.
24315         (avr_help): New function.
24316         (TARGET_HELP): Define.
24317
24318 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
24319
24320         PR target/42240
24321         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
24322         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
24323
24324 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
24325
24326         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
24327         (ARM Options): Ditto.
24328         (i386 and x86-64 Options): Ditto.
24329         (RX Options): Ditto.
24330         (SPARC Options): Ditto.
24331
24332 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
24333
24334         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
24335         FreeBSD 6 and later.  Generally use cpu generic.
24336
24337 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
24338
24339         * doc/cpp.texi: Update copyright years.
24340
24341 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
24342
24343         PR target/46898
24344         * config/lm32/lm32.md (ashrsi3): Added needed variable.
24345
24346 2011-02-25  Jon Beniston  <jon@beniston.com>
24347
24348         PR target/46898
24349         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
24350         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
24351         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
24352         (lm32_block_move_inline): Add type cast to remove warning.
24353         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
24354         (gen_int_relational): Move declarations to start of function.
24355
24356 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
24357
24358         PR tree-optimization/45470
24359         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
24360         can throw internally only.
24361         * tree-vect-stmts.c (vectorizable_call): Likewise.
24362
24363 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
24364
24365         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
24366         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24367         * config/stormy16/stormy16-protos.h
24368         (xstormy16_preferred_reload_class): Remove.
24369         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24370         static. Change 'rclass' argument and return type to reg_class_t.
24371         (TARGET_PREFERRED_RELOAD_CLASS,
24372         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24373
24374 2011-02-24  Richard Guenther  <rguenther@suse.de>
24375
24376         * lto-streamer-in.c (input_bb): Do not find referenced vars
24377         in debug statements.
24378
24379 2011-02-23  Jason Merrill  <jason@redhat.com>
24380
24381         * common.opt (fabi-version): Document v5 and v6.
24382
24383 2011-02-23  Richard Guenther  <rguenther@suse.de>
24384
24385         PR tree-optimization/47849
24386         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24387
24388 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24389
24390         * opts-common.c (decode_cmdline_option): Print empty string
24391         argument as "" in decoded->orig_option_with_args_text.
24392         * gcc.c (execute): Print empty string argument as ""
24393         in the verbose output.
24394         (do_spec_1): Keep empty string argument.
24395
24396 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
24397
24398         * config.gcc: Declare score-* and crx-* obsolete.
24399
24400 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24401
24402         PR rtl-optimization/47763
24403         * web.c (web_main): Ignore naked clobber when replacing register.
24404
24405 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
24406
24407         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24408         Remove.
24409
24410 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24411
24412         PR doc/47848
24413         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24414
24415 2011-02-22  Mike Stump  <mikestump@comcast.net>
24416
24417         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24418         assembler.
24419         * configure: Regenerate.
24420
24421 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
24422
24423         PR rtl-optimization/46002
24424         * ira-color.c (update_copy_costs): Change class intersection
24425         test to reg_class_contents[] test of 'hard_regno'.
24426
24427 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
24428
24429         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24430         than Driver option.
24431         * config/hpux11.opt (mt): Likewise.
24432         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24433         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24434         * config/vax/elf.opt (mno-asm-pic): Likewise.
24435         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24436
24437 2011-02-21  Mike Stump  <mikestump@comcast.net>
24438
24439         PR target/47822
24440         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24441         tree so we can get save the type.
24442         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24443         for CFString instead of trying to use past the end of the builtins.
24444         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24445         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24446         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24447         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24448         Rename to darwin_builtin_cfstring.
24449         (darwin_init_cfstring_builtins): Return the built type.
24450
24451 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
24452
24453         PR target/47840
24454         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24455         (_mm256_insert_epi64): Use _mm_insert_epi64.
24456
24457 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
24458
24459         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24460         * config/stormy16/stormy16-protos.h
24461         (xstormy16_mode_dependent_address_p): Remove.
24462         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24463         Make static. Change return type to bool. Change argument type to
24464         const_rtx. Remove dead code.
24465         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24466
24467 2011-02-21  Richard Guenther  <rguenther@suse.de>
24468
24469         PR lto/47820
24470         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24471         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24472         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24473         TUs context.
24474         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24475         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24476
24477 2011-02-20  Richard Guenther  <rguenther@suse.de>
24478
24479         PR lto/47822
24480         * tree.c (free_lang_data_in_decl): Clean builtins from
24481         the TU decl BLOCK_VARS.
24482
24483 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
24484
24485         PR debug/47620
24486         PR debug/47630
24487         * haifa-sched.c (fix_tick_ready): Skip tick computation
24488         for debug insns.
24489
24490 2011-02-19  Richard Guenther  <rguenther@suse.de>
24491
24492         PR lto/47647
24493         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24494         Remove lazy BLOCK_VARS streaming.
24495         (lto_input_ts_block_tree_pointers): Likewise.
24496         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24497
24498 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24499
24500         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24501
24502 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24503
24504         * config/i386/biarch32.h, config/i386/mach.h,
24505         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24506
24507 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
24508
24509         PR target/47800
24510         * config/i386/i386.md (peephole2 for shift and plus): Use
24511         operands[1] original mode in the first insn.
24512
24513 2011-02-18  Mike Stump  <mikestump@comcast.net>
24514
24515         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24516
24517 2011-02-18  Jan Hubicka  <jh@suse.cz>
24518
24519         PR middle-end/47788
24520         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24521         to zero when the function is not inlinable at all.
24522
24523 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24524
24525         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24526         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24527         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24528         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24529         * config/pa/t-pa64: Likewise.
24530         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24531
24532 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24533
24534         PR driver/47787
24535         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24536
24537 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24538
24539         PR target/47792
24540         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24541
24542 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
24543
24544         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24545         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24546         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24547         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24548         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24549         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24550         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24551         m32r_load_postinc_p, m32r_store_preinc_predec_p,
24552         m32r_legitimate_address_p): New functions.
24553         * config/m32r/constraints.md (constraint "S"): Don't use
24554         STORE_PREINC_PREDEC_P.
24555         (constraint "U"): Don't use LOAD_POSTINC_P.
24556
24557 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
24558
24559         PR rtl-optimization/46178
24560         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24561         compute ira_hard_regno_cover_class[].
24562
24563 2011-02-18  Richard Guenther  <rguenther@suse.de>
24564
24565         PR lto/47798
24566         * lto-streamer.h (lto_global_var_decls): Declare.
24567         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24568         statics for global var processing.
24569
24570 2011-02-18  Richard Guenther  <rguenther@suse.de>
24571
24572         PR tree-optimization/47737
24573         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24574         edge dominance check.
24575
24576 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24577
24578         PR debug/47780
24579         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24580         avoid invalid rtx sharing.
24581
24582 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
24583
24584         * doc/cpp.texi (Obsolete Features): Add background on the
24585         origin of assertions.
24586
24587 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
24588
24589         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24590         objc_abi == 2.
24591         * config/darwin.c (output_objc_section_asm_op): Added support for
24592         ABI v1 and v2.
24593         (is_objc_metadata): New.
24594         (darwin_objc2_section): New.
24595         (darwin_objc1_section): New.
24596         (machopic_select_section): Added support for ABI v1 and v2.
24597         (darwin_emit_objc_zeroed): New.
24598         (darwin_output_aligned_bss): Detect objc metadata and treat it
24599         appropriately.
24600         (darwin_asm_output_aligned_decl_common): Same.
24601         (darwin_asm_output_aligned_decl_local): Same.
24602         * config/darwin-sections.def: Updated for ABI v1 and v2.
24603         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
24604         compiling Objective-C code for the NeXT runtime, default to using
24605         ABI version 0 for 32-bit, and version 2 for 64-bit.
24606
24607 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24608
24609         * common.opt (optimize_fast): New Variable.
24610         * opts.c (default_options_optimization): Use opts->x_optimize_fast
24611         instead of local variable ofast.
24612
24613 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
24614
24615         * doc/invoke.texi (fobjc-abi-version): Documented.
24616         (fobjc-nilcheck): Documented.
24617         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
24618         version.
24619
24620 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24621
24622         PR driver/47390
24623         * common.opt (export-dynamic): New Driver option.
24624         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
24625
24626 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24627
24628         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
24629
24630 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
24631             Jan Hubicka  <jh@suse.cz>
24632
24633         PR debug/47106
24634         PR debug/47402
24635         * cfgexpand.c (account_used_vars_for_block): Remove.
24636         (estimated_stack_frame_size): Use referenced vars.
24637         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
24638         that were referenced in the original function.  Test src_fn
24639         rather than cfun.  Drop redundant get_var_ann.
24640         (setup_one_parameter): Drop redundant get_var_ann.
24641         (declare_return_variable): Likewise.
24642         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
24643         (copy_arguments_for_versioning): Drop redundant get_var_ann.
24644         * ipa-inline.c (compute_inline_parameters): Do not compute
24645         disregard_inline_limits here.
24646         (compute_inlinable_for_current, pass_inlinable): New.
24647         (pass_inline_parameters): Require PROP_referenced_vars.
24648         * cgraphunit.c (cgraph_process_new_functions): Don't run
24649         compute_inline_parameters explicitly unless function is in SSA form.
24650         (cgraph_analyze_function): Set .disregard_inline_limits.
24651         * tree-sra.c (convert_callers): Compute inliner parameters
24652         only for functions already in SSA form.
24653
24654 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24655
24656         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24657         -mlittle-endian-data.
24658
24659 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24660
24661         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24662         -mno-fpu, not -fpu and -no-fpu.
24663         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24664         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24665
24666 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
24667
24668         PR target/43653
24669         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24670         input reload with PLUS RTX.
24671
24672 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24673
24674         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24675         of InverseVar(MDMX).
24676
24677 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24678
24679         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24680         --m4-340.
24681
24682 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24683
24684         * config/mn10300/mn10300.opt (mno-crt0): New.
24685
24686 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24687
24688         * config/m68k/uclinux.opt (static-libc): New Driver option.
24689
24690 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24691
24692         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24693
24694 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24695
24696         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24697         %{muser-extend-enabled}.
24698
24699 2011-02-16  Richard Guenther  <rguenther@suse.de>
24700
24701         PR tree-optimization/47738
24702         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24703         the TODO from tree_predictive_commoning.
24704
24705 2011-02-15  Jeff Law  <law@redhat.com>
24706
24707         Revert
24708         2011-01-25  Jeff Law  <law@redhat.com>
24709
24710         PR rtl-optimization/37273
24711         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24712         handle them like argument loads from stack slots.  Do not double
24713         count memory for memory constants and argument loads from stack slots.
24714
24715 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
24716
24717         PR target/47755
24718         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24719         mode for vector constants.  Remove code that checks for TImode.
24720
24721 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24722
24723         PR debug/47106
24724         PR debug/47402
24725         * cgraph.h (compute_inline_parameters): Return void.
24726         * ipa-inline.c (compute_inline_parameters): Adjust.
24727
24728 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24729
24730         PR debug/47106
24731         PR debug/47402
24732         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24733         rather than decl.
24734         * cfgexpand.c (estimated_stack_frame_size): Likewise.
24735         * ipa-inline.c (compute_inline_parameters): Adjust.
24736
24737 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24738
24739         PR debug/47106
24740         PR debug/47402
24741         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24742         Adjust all users.  Pass FN to...
24743         * tree-flow-inline.h (first_referenced_var): ... this.  Add
24744         fn argument.
24745         * ipa-struct-reorg.c: Adjust.
24746         * tree-dfa.c: Adjust.
24747         * tree-into-ssa.c: Adjust.
24748         * tree-sra.c: Adjust.
24749         * tree-ssa-alias.c: Adjust.
24750         * tree-ssa-live.c: Adjust.
24751         * tree-ssa.c: Adjust.
24752         * tree-ssanames.c: Adjust.
24753         * tree-tailcall.c: Adjust.
24754
24755 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24756
24757         PR debug/47106
24758         PR debug/47402
24759         * tree-flow.h (referenced_var_lookup): Add fn parameter.
24760         Adjust all callers.
24761         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24762         * tree-flow-inline.h: Adjust.
24763         * gimple-pretty-print.c: Adjust.
24764         * tree-into-ssa.c: Adjust.
24765         * tree-ssa.c: Adjust.
24766         * cfgexpand.c: Adjust.
24767
24768 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24769
24770         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24771         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24772         (EXTRA_CONSTRAINT): Delete.
24773         * config/iq2000/constraints.md: New file.
24774         * config/iq2000/iq2000.md: Include it.
24775         (define_insn ""): Delete.
24776         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24777         unsupported constraint letters from patterns.
24778         (call_value, call_value_internal1): Likewise.
24779         (call_value_multiple_internal1): Likewise.
24780
24781 2011-02-15  Nick Clifton  <nickc@redhat.com>
24782
24783         * config/mn10300/mn10300.c: Include tm-constrs.h.
24784         (struct liw_data): New data structure describing an LIW candidate
24785         instruction.
24786         (extract_bundle): Use struct liw_data.  Allow small integer
24787         operands for some instructions.
24788         (check_liw_constraints): Use struct liw_data.  Remove swapped
24789         parameter.  Add comments describing the checks.  Fix bug when
24790         assigning the source of liw1 to the source of liw2.
24791         (liw_candidate): Delete.  Code moved into extract_bundle.
24792         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
24793         before swapping.
24794         * config/mn10300/predicates.md (liw_operand): New predicate.
24795         Allows registers and small integer constants.
24796         * config/mn10300/constraints.md (O): New constraint.  Accetps
24797         integers in the range -8 to +7 inclusive.
24798         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24799         for moving a small integer into a register.  Give this alternative
24800         LIW attributes.
24801         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24802         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24803         using the J,K,L and M constraints,
24804         (liw): Remove SI mode on second operands to allow for HI and QI
24805         mode values.
24806         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
24807         instruction.
24808
24809 2011-02-15  Richard Guenther  <rguenther@suse.de>
24810
24811         PR tree-optimization/47743
24812         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24813         for a non-type-compatible VN lookup bail out.
24814
24815 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24816
24817         * config/fr30/constraints.md: New file.
24818         * config/fr30/fr30.md: Include it.
24819         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24820         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24821         (EXTRA_CONSTRAINT): Delete.
24822
24823 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24824
24825         * config/frv/constraints.md: New file.
24826         * config/frv/predicates.md: Include it.
24827         * config/frv/frv.c (reg_class_from_letter): Delete.
24828         (frv_option_override): Don't initialize it.
24829         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24830         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24831         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24832         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24833         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24834         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24835         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24836         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24837         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24838         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
24839         (REG_CLASS_FROM_CONSTRAINT): Delete.
24840
24841 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
24842
24843         PR middle-end/47581
24844         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
24845         if frame size is 0 in a leaf function.
24846
24847 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24848
24849         PR pch/14940
24850         * config/alpha/host-osf.c: New file.
24851         * config/alpha/x-osf: New file.
24852         * config.host (alpha*-dec-osf*): Use it.
24853
24854 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24855
24856         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24857         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
24858         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
24859         (rx_mode_dependent_address_p): ...this. Make static. Change argument
24860         type to const_rtx.
24861         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24862
24863 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24864
24865         * config/stormy16/constraints.md: New file.
24866         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
24867         Use satisfies_constraint_Q and satisfies_constraint_R.
24868         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
24869         Delete.
24870         (xstormy16_legitiamte_address_p): Declare.
24871         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
24872         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24873         (EXTRA_CONSTRAINT): Delete.
24874         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
24875         Un-staticize.
24876         (xstormy16_extra_constraint_p): Delete.
24877
24878 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
24879
24880         PR tree-optimization/46494
24881         * loop-unroll.c (split_edge_and_insert): Adjust comment.
24882         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
24883         (pass_rtl_loop_done): Add TODO_verify_flow.
24884         * fwprop.c (pass_rtl_fwprop): Likewise.
24885         * modulo-sched.c (pass_sms): Likewise.
24886         * tree-ssa-dom.c (pass_dominator): Likewise.
24887         * tree-ssa-loop-ch.c (pass_ch): Likewise.
24888         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
24889         (pass_tree_loop_done): Likewise.
24890         * tree-ssa-pre.c (execute_pre): Likewise.
24891         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
24892         * tree-ssa-sink.c (pass_sink_code): Likewise.
24893         * tree-vrp.c (pass_vrp): Likewise.
24894
24895 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24896
24897         * config/v850/constraints.md: New file.
24898         * config/v850/v850.md: Include it.
24899         * config/v850/predicates.md (reg_or_0_operand): Use
24900         satisfies_constraint_G.
24901         (special_symbolref_operand): Use satisfies_constraint_K.
24902         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
24903         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
24904         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
24905         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24906         (EXTRA_CONSTRAINT): Delete.
24907         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
24908         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
24909         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
24910
24911 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24912
24913         PR target/47696
24914         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
24915         description.
24916
24917 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24918
24919         * config/mcore/constraints.md: New file.
24920         * config/mcore/mcore.md: Include it.
24921         * config/mcore/mcore.c (reg_class_from_letter): Delete.
24922         * config/mcore/mcore.h (reg_class_from_letter): Delete.
24923         (REG_CLASS_FROM_LETTER): Delete.
24924         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
24925         insn_const_int_ok_for_constraint.
24926         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
24927         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
24928         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24929         (EXTRA_CONSTRAINT): Delete.
24930
24931 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24932
24933         PR ada/41929
24934         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
24935         (IS_SIGHANDLER): Define.
24936         (sparc64_is_sighandler): New function, split off from
24937         sparc64_fallback_frame_state.
24938         (sparc_is_sighandler): New function, split off from
24939         sparc_fallback_frame_state.
24940         (sparc64_fallback_frame_state): Merge with ...
24941         (sparc_fallback_frame_state): ... this into ...
24942         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
24943         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
24944         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
24945         stack instead of hardcoded offsets.
24946
24947 2011-02-14  Andriy Gapon  <avg@freebsd.org>
24948
24949         PR target/45808
24950         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
24951
24952 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24953
24954         * configure: Regenerate.
24955
24956 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
24957
24958         PR driver/45731
24959         * gcc.c (asm_options): Correct spec matching --target-help.
24960
24961 2011-02-12  Martin Jambor  <mjambor@suse.cz>
24962
24963         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
24964         to gimple call error.
24965
24966 2011-02-12  Mike Stump  <mikestump@comcast.net>
24967
24968         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
24969         comments in backslash regions.
24970
24971 2011-02-12  Mike Stump  <mikestump@comcast.net>
24972             Jakub Jelinek  <jakub@redhat.com>
24973             Iain Sandoe  <iains@gcc.gnu.org>
24974
24975         PR target/47324
24976         * dwarf2out.c (output_cfa_loc): When required, apply the
24977         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
24978         (output_loc_sequence): Likewise.
24979         (output_loc_operands_raw): Likewise.
24980         (output_loc_sequence_raw): Likewise.
24981         (output_cfa_loc): Likewise.
24982         (output_loc_list): Suppress register number adjustment when
24983         calling output_loc_sequence()
24984         (output_die): Likewise.
24985
24986 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
24987
24988         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24989         Remove macros.
24990         * config/xtensa/xtensa.c (xtensa_register_move_cost,
24991         xtensa_memory_move_cost): New functions.
24992         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
24993
24994 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
24995
24996         PR lto/47225
24997         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
24998         in the current directory.
24999         * configure: Rebuilt.
25000
25001 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
25002
25003         * config/darwin.c (darwin_override_options): Add a hunk missed
25004         from the commit of r168571.  Trim comment line lengths and
25005         correct indents of the preceding block.
25006
25007 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
25008
25009         * gcc.c (driver_handle_option): Concatenate the argument to -F with
25010         the switch.
25011
25012 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
25013
25014         * common.opt (nostartfiles): New Driver option.
25015
25016 2011-02-11  Xinliang David Li  <davidxl@google.com>
25017
25018         PR tree-optimization/47707
25019         * tree-chrec.c (convert_affine_scev): Keep type precision.
25020
25021 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
25022
25023         PR tree-optimization/47420
25024         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
25025
25026 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
25027
25028         PR rtl-optimization/47614
25029         * rtl.h (check_for_inc_dec): Declare.
25030         * dse.c (check_for_inc_dec): Externalize...
25031         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
25032         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
25033
25034 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
25035
25036         PR driver/47678
25037         * gcc.c (main): Do not compile inputs if there were errors in
25038         option handling.
25039         * opts-common.c (read_cmdline_option): Check for wrong language
25040         after other error checks.
25041
25042 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
25043
25044         * cgraph.c: Fix comment typos.
25045         * cgraph.h: Likewise.
25046         * cgraphunit.c: Likewise.
25047         * ipa-cp.c: Likewise.
25048         * ipa-inline.c: Likewise.
25049         * ipa-prop.c: Likewise.
25050         * ipa-pure-const.c: Likewise.
25051         * ipa-ref.c: Likewise.
25052         * ipa-reference.c: Likewise.
25053
25054 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
25055
25056         PR debug/47684
25057         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
25058
25059 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25060
25061         PR testsuite/47400
25062         * doc/sourcebuild.texi (Require Support): Document
25063         dg-require-ascii-locale.
25064
25065 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
25066
25067         * doc/lto.texi (Write summary): Fix missing parentheses.
25068
25069 2011-02-10  DJ Delorie  <dj@redhat.com>
25070
25071         * config/m32c/m32c.c (m32c_option_override): Disable
25072         -fcombine-stack-adjustments until flag value tracking and compare
25073         optimization can be rewritten.
25074
25075 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
25076
25077         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25078         PROCESSOR_POWER7.
25079         (PROCESSOR_DEFAULT64): Likewise.
25080
25081 2011-02-10  Richard Henderson  <rth@redhat.com>
25082
25083         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25084         change from 2011-02-03.
25085         * config/rx/rx.c (flags_from_code): Likewise.
25086         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25087         is valid, n/pz otherwise.
25088         (rx_select_cc_mode): Return CCmode if Y is not zero.
25089
25090 2011-02-10  Richard Guenther  <rguenther@suse.de>
25091
25092         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25093
25094 2011-02-10  Richard Guenther  <rguenther@suse.de>
25095
25096         PR tree-optimization/47677
25097         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25098
25099 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
25100
25101         PR target/47665
25102         * combine.c (make_compound_operation): Only change shifts into
25103         multiplication for SCALAR_INT_MODE_P.
25104
25105 2011-02-10  Jie Zhang  <jie@codesourcery.com>
25106
25107         PR testsuite/47622
25108         Revert
25109         2011-02-05  Jie Zhang  <jie@codesourcery.com>
25110         PR debug/42631
25111         * web.c (entry_register): Don't clobber the number of the
25112         first uninitialized reference in used[].
25113
25114 2011-02-09  Richard Guenther  <rguenther@suse.de>
25115
25116         PR tree-optimization/47664
25117         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25118         all edges again.
25119
25120 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
25121
25122         PR target/46481
25123         PR target/47032
25124         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25125         PROCESSOR_POWER7.
25126         (PROCESSOR_DEFAULT64): Same.
25127         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25128
25129 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25130
25131         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25132
25133 2011-02-09  Martin Jambor  <mjambor@suse.cz>
25134
25135         PR middle-end/45505
25136         * tree-sra.c (struct access): New flags grp_scalar_read and
25137         grp_scalar_write.  Changed description of assignment read and write
25138         flags.
25139         (dump_access): Dump new flags, reorder all of them.
25140         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25141         to detect multiple scalar reads.
25142         (analyze_access_subtree): Use the new scalar read write flags instead
25143         of the old flags.  Adjusted comments.
25144
25145 2011-02-08  DJ Delorie  <dj@redhat.com>
25146
25147         PR target/47548
25148         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
25149         patterns.
25150
25151 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25152
25153         * config/m68k/uclinux.opt: New.
25154         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
25155
25156 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25157
25158         * config/cris/elf.opt (sim): New Driver option.
25159
25160 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25161
25162         * config/xtensa/elf.opt: New.
25163         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
25164
25165 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25166
25167         * config/vax/elf.opt: New.
25168         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
25169
25170 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25171
25172         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
25173
25174 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25175
25176         * config/gnu-user.opt: New.
25177         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
25178         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
25179         *-*-uclinux*): Use gnu-user.opt.
25180
25181 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
25182
25183         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
25184         * config/i386/gnu.h (CPP_SPEC): Likewise.
25185
25186 2011-02-08  Ian Lance Taylor  <iant@google.com>
25187
25188         * common.opt (fcx-limited-range): Add SetByCombined flag.
25189         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
25190         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
25191         (fassociative-math, freciprocal-math): Likewise.
25192         (funsafe-math-optimizations): Likewise.
25193         * opth-gen.awk: Handle SetByCombined.
25194         * optc-gen.awk: Likewise.
25195         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
25196         (set_unsafe_math_optimizations_flags): Likewise.
25197         * doc/options.texi (Option properties): Document SetByCombined.
25198
25199 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25200
25201         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
25202         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
25203         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
25204         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
25205         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
25206
25207 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
25208
25209         PR tree-optimization/46834
25210         PR tree-optimization/46994
25211         PR tree-optimization/46995
25212         * graphite-sese-to-poly.c (used_outside_reduction): New.
25213         (detect_commutative_reduction): Call used_outside_reduction.
25214         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
25215         translate_scalar_reduction_to_array only when at least one
25216         loop-phi/close-phi tuple has been detected.
25217
25218 2011-02-08  Richard Guenther  <rguenther@suse.de>
25219
25220         PR middle-end/47639
25221         * tree-vect-generic.c (expand_vector_operations_1): Update
25222         stmts here ...
25223         (expand_vector_operations): ... not here.  Cleanup EH info
25224         and the CFG if required.
25225
25226 2011-02-08  Richard Guenther  <rguenther@suse.de>
25227
25228         PR tree-optimization/47641
25229         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
25230         require type compatibility.
25231
25232 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25233
25234         * gimple-low.c (lower_function_body): Don't remove the location of
25235         the return statement here.
25236         (lower_gimple_return): Do it here instead but only if the return
25237         statement is actually used twice.
25238
25239 2011-02-08  Richard Guenther  <rguenther@suse.de>
25240
25241         PR tree-optimization/47632
25242         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
25243         unused up_to_stmt parameter, return whether cfg-cleanup is
25244         necessary, remove EH info properly.
25245         (forward_propagate_into_gimple_cond): Adjust caller.
25246         (forward_propagate_into_cond): Likewise.
25247         (forward_propagate_comparison): Likewise.
25248         (tree_ssa_forward_propagate_single_use_vars): Make
25249         forward_propagate_comparison case similar to the two others.
25250
25251 2011-02-08  Nick Clifton  <nickc@redhat.com>
25252
25253         * config/mn10300/mn10300.opt (mliw): New command line option.
25254         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
25255         (liw_bundling): New automaton.
25256         (liw): New attribute.
25257         (liw_op): New attribute.
25258         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
25259         (movsi_internal): Add LIW attributes.
25260         (andsi3): Likewise.
25261         (iorsi3): Likewise.
25262         (xorsi3): Likewise.
25263         (addsi3): Separate register and immediate alternatives.
25264         Add LIW attributes.
25265         (subsi3): Likewise.
25266         (cmpsi): Likewise.
25267         (aslsi3): Likewise.
25268         (lshrsi3): Likewise.
25269         (ashrsi3): Likewise.
25270         (liw): New pattern.
25271         * config/mn10300/mn10300.c (liw_op_names): New
25272         (mn10300_print_operand): Handle 'W' operand descriptor.
25273         (extract_bundle): New function.
25274         (check_liw_constraints): New function.
25275         (liw_candidate): New function.
25276         (mn10300_bundle_liw): New function.
25277         (mn10300_reorg): New function.
25278         (TARGET_MACHINE_DEPENDENT_REORG): Define.
25279         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
25280         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
25281         __LIW__ or __NO_LIW__.
25282         * doc/invoke.texi: Describe the -mliw command line option.
25283
25284 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25285
25286         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
25287         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25288         pthread_mutex_unlock): Remove.
25289         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
25290         * config/pa/t-pa64: Likewise.
25291         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
25292         shared libc if not linking against libpthread.
25293         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25294
25295 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
25296
25297         PR target/47558
25298         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
25299         on 10.6 and later to ensure that we always use the unwinder from
25300         the system.  Only add -no_compact_unwind when tarteting darwin
25301         10.6 or later.
25302
25303 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
25304
25305         PR target/46997
25306         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
25307         (vec_interleave_lowv2sf): Ditto.
25308         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
25309         (vec_extract_oddv2sf): Ditto.
25310
25311 2011-02-07  Mike Stump  <mikestump@comcast.net>
25312
25313         PR target/42333
25314         Add __ieee_divdc3 entry point.
25315         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
25316         entry point.
25317         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
25318         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
25319         * config/darwin.c (darwin_rename_builtins): Add.
25320         * config/darwin-protos.h (darwin_rename_builtins): Add.
25321
25322 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
25323
25324         PR target/47636
25325         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
25326         for the condition.
25327
25328 2011-02-07  Mike Stump  <mikestump@comcast.net>
25329
25330         * config/darwin.opt (mmacosx-version-min): Update default OS version.
25331
25332 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
25333
25334         PR target/47534
25335         * config/avr/libgcc.S (exit): Move .endfunc
25336
25337 2011-02-07  Richard Guenther  <rguenther@suse.de>
25338
25339         PR tree-optimization/47615
25340         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
25341         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
25342         (run_scc_vn): Initialize it.
25343         (visit_reference_op_load): Use it.
25344         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
25345
25346 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25347
25348         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
25349         DImode trapping arithmetic libfuncs.
25350
25351 2011-02-07  Richard Guenther  <rguenther@suse.de>
25352
25353         PR tree-optimization/47621
25354         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
25355         two duplicates ...
25356         (execute_update_addresses_taken): ... here.  Make it more
25357         conservative in what we accept.
25358
25359 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
25360
25361         * config/sparc/freebsd.h (ASM_SPEC): Define.
25362         * config/sparc/vxworks.h (ASM_SPEC): Define.
25363
25364 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
25365
25366         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25367
25368 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
25369
25370         * doc/invoke.texi: Remove reference to compiler internals from
25371         user documentation.
25372
25373         * reg-notes.def: Remove REG_VALUE_PROFILE.
25374         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25375
25376 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
25377
25378         PR middle-end/47610
25379         * varasm.c (default_section_type_flags): If decl is NULL,
25380         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25381
25382 2011-02-05  Jie Zhang  <jie@codesourcery.com>
25383
25384         PR debug/42631
25385         * web.c (entry_register): Don't clobber the number of the
25386         first uninitialized reference in used[].
25387
25388 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
25389
25390         PR tree-optimization/46194
25391         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25392         (build_classic_dist_vector_1): Do not represent classic distance
25393         vectors when the access functions are variating in different loops.
25394
25395 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25396
25397         * config/mips/iris6.opt: New.
25398         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25399
25400 2011-02-04  Richard Henderson  <rth@redhat.com>
25401             Steve Ellcey  <sje@cup.hp.com>
25402
25403         PR target/46997
25404         * config/ia64/predicates.md (mux1_brcst_element): New.
25405         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25406         * config/ia64/ia64.c (ia64_unpack_assemble): New.
25407         (ia64_unpack_sign): New.
25408         (ia64_expand_unpack): Rewrite using new routines.
25409         (ia64_expand_widen_sum): Ditto.
25410         (ia64_expand_dot_prod_v8qi): Ditto.
25411         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25412         routines, add endian check.
25413         (pmpy2_even): Rename from pmpy2_r, add endian check.
25414         (pmpy2_odd): Rename from pmpy2_l, add endian check.
25415         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25416         (vec_widen_smult_hi_v4hi): Ditto.
25417         (vec_widen_umult_lo_v4hi): Ditto.
25418         (vec_widen_umult_hi_v4hi): Ditto.
25419         (mulv2si3): Change endian checks.
25420         (sdot_prodv4hi): Rewrite with new calls.
25421         (udot_prodv4hi): New.
25422         (vec_pack_ssat_v4hi): Add endian check.
25423         (vec_pack_usat_v4hi): Ditto.
25424         (vec_pack_ssat_v2si): Ditto.
25425         (max1_even): Rename from max1_r, add endian check.
25426         (max1_odd): Rename from max1_l, add endian check.
25427         (*mux1_rev): Format change.
25428         (*mux1_mix): Ditto.
25429         (*mux1_shuf): Ditto.
25430         (*mux1_alt): Ditto.
25431         (*mux1_brcst_v8qi): Use new predicate.
25432         (vec_extract_evenv8qi): Remove endian check.
25433         (vec_extract_oddv8qi): Ditto.
25434         (vec_interleave_lowv4hi): Format change.
25435         (vec_interleave_highv4hi): Ditto.
25436         (mix2_even): Rename from mix2_r, add endian check.
25437         (mix2_odd): Rename from mux2_l, add endian check.
25438         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25439         (vec_extract_evenodd_helper): Format change.
25440         (vec_extract_evenv4hi): Remove endian check.
25441         (vec_extract_oddv4hi): Remove endian check.
25442         (vec_interleave_lowv2si): Format change.
25443         (vec_interleave_highv2si): Format change.
25444         (vec_initv2si): Remove endian check.
25445         (vecinit_v2si): Add endian check.
25446         (reduc_splus_v2sf): Add endian check.
25447         (reduc_smax_v2sf): Ditto.
25448         (reduc_smin_v2sf): Ditto.
25449         (vec_initv2sf): Remove endian check.
25450         (fpack): Add endian check.
25451         (fswap): Add endian check.
25452         (vec_interleave_highv2sf): Add endian check.
25453         (vec_interleave_lowv2sf): Add endian check.
25454         (fmix_lr): Add endian check.
25455         (vec_setv2sf): Format change.
25456         (*vec_extractv2sf_0_be): Use shift to extract operand.
25457         (*vec_extractv2sf_1_be): New.
25458         (vec_pack_trunc_v4hi): Add endian check.
25459         (vec_pack_trunc_v2si): Format change.
25460
25461 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
25462
25463         PR inline-asm/23200
25464         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
25465         do bb, locus and block comparison and disallow loads if it is not set.
25466         (stmt_is_replaceable_p): New function.
25467         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25468         callers.
25469         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25470         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25471         SSA_NAME_DEF_STMT.
25472         * tree-flow.h (stmt_is_replaceable_p): New prototype.
25473
25474 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25475
25476         * config/rs6000/xilinx.opt: New.
25477         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25478
25479 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25480
25481         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25482
25483 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
25484
25485         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25486         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25487         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25488         secondary_reload_info, xtensa_secondary_reload): Remove.
25489         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25490         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25491         (xtensa_preferred_reload_class): Make static. Change return and
25492         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25493         Use CONST_DOUBLE_P predicate.
25494         (xtensa_preferred_output_reload_class): New function.
25495         (xtensa_secondary_reload): Make static.
25496
25497 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
25498
25499         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25500         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25501         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25502
25503 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25504
25505         PR middle-end/31490
25506         * output.h (SECTION_RELRO): Define.
25507         (SECTION_MACH_DEP): Adjust.
25508         (get_variable_section): New prototype.
25509         * varpool.c (varpool_finalize_named_section_flags): New function.
25510         (varpool_assemble_pending_decls): Call it.
25511         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25512         * cgraphunit.c (cgraph_output_in_order): Call
25513         varpool_finalize_named_section_flags.
25514         * varasm.c (get_section): Allow section flags conflicts between
25515         relro and read-only sections if the section hasn't been declared yet.
25516         Set SECTION_OVERRIDE after diagnosing section type conflict.
25517         (get_variable_section): No longer static.
25518         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25519         readonly sections that need relocations.
25520         (decl_readonly_section_1): New function.
25521         (decl_readonly_section): Use it.
25522
25523         Revert:
25524         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
25525                     Steve Ellcey  <sje@cup.hp.com>
25526
25527         PR middle-end/31490
25528         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25529         if section attribute used.
25530
25531 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25532
25533         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25534         * config/darwin.c (SECTION_NO_ANCHOR): Define.
25535         (darwin_init_sections): Remove assertion.
25536
25537 2011-02-03  Nick Clifton  <nickc@redhat.com>
25538
25539         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25540         lt and ge.
25541         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25542         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25543         instead of "n" and "pz".
25544         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25545         CC_FLAG_S.
25546
25547 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25548
25549         PR target/47312
25550         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25551         fma, expand FMA_EXPR as fma{,f,l} call.
25552
25553         PR lto/47274
25554         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25555         copy them into a unsigned char variable and pass address of it to
25556         lto_output_data_stream.
25557
25558         PR target/47564
25559         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25560         around backend_init_target and lang_dependent_init_target calls.
25561         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25562         (verify_cgraph_node): Don't call set_cfun here.  Use
25563         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25564         Set error_found for incorrectly represented calls to thunks.
25565
25566 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25567
25568         PR debug/43092
25569         PR rtl-optimization/43494
25570         * rtl.h (for_each_inc_dec_fn): New type.
25571         (for_each_inc_dec): Declare.
25572         * rtlanal.c (struct for_each_inc_dec_ops): New type.
25573         (for_each_inc_dec_find_inc_dec): New fn.
25574         (for_each_inc_dec_find_mem): New fn.
25575         (for_each_inc_dec): New fn.
25576         * dse.c (struct insn_size): Remove.
25577         (replace_inc_dec, replace_inc_dec_mem): Remove.
25578         (emit_inc_dec_insn_before): New fn.
25579         (check_for_inc_dec): Use it, along with for_each_inc_dec.
25580         (canon_address): Pass mem modes to cselib_lookup.
25581         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
25582         (cselib_lookup_from_insn): Likewise.
25583         (cselib_subst_to_values): Likewise.
25584         * cselib.c (find_slot_memmode): New var.
25585         (cselib_find_slot): New fn.  Use it instead of
25586         htab_find_slot_with_hash everywhere.
25587         (entry_and_rtx_equal_p): Use find_slot_memmode.
25588         (autoinc_split): New fn.
25589         (rtx_equal_for_cselib_p): Rename and implement in terms of...
25590         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
25591         Deal with autoinc.  Special-case recursion into MEMs.
25592         (cselib_hash_rtx): Likewise.
25593         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
25594         address and MEM modes.
25595         (cselib_subst_to_values): Add memmode, pass it on.
25596         Deal with autoinc.
25597         (cselib_lookup): Add memmode argument, pass it on.
25598         (cselib_lookup_from_insn): Add memmode.
25599         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
25600         (struct cselib_record_autoinc_data): New.
25601         (cselib_record_autoinc_cb): New fn.
25602         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
25603         mode to cselib_lookup.  Reset autoinced REGs here instead of...
25604         (cselib_process_insn): ... here.
25605         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
25606         to cselib_lookup.
25607         (add_uses): Likewise, also to cselib_subst_to_values.
25608         (add_stores): Likewise.
25609         * sched-deps.c (add_insn_mem_dependence): Pass mode to
25610         cselib_subst_to_values.
25611         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
25612         * gcse.c (do_local_cprop): Adjusted.
25613         * postreload.c (reload_cse_simplify_set): Adjusted.
25614         (reload_cse_simplify_operands): Adjusted.
25615         * sel-sched-dump (debug_mem_addr_value): Pass mode.
25616
25617 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25618
25619         PR tree-optimization/45122
25620         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
25621         unsafe assumptions when there's more than one loop exit.
25622
25623 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25624
25625         PR target/47272
25626         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25627         Document using vector double with the load/store builtins, and
25628         that the load/store builtins always use Altivec instructions.
25629
25630         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
25631         to use altivec memory instructions, even on VSX.
25632         (vector_altivec_store_<mode>): Ditto.
25633
25634         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
25635         function.
25636
25637         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25638         V2DF, V2DI support to load/store overloaded builtins.
25639
25640         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
25641         altivec load/store builtins for V2DF/V2DI types.
25642
25643         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25644         set avoid indexed addresses on power6 if -maltivec.
25645         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
25646         vector_altivec_load/vector_altivec_store builtins.
25647         (altivec_expand_st_builtin): Ditto.
25648         (altivec_expand_builtin): Add VSX memory builtins.
25649         (rs6000_init_builtins): Add V2DI types to internal types.
25650         (altivec_init_builtins): Add support for V2DF/V2DI altivec
25651         load/store builtins.
25652         (rs6000_address_for_altivec): Insure memory address is appropriate
25653         for Altivec.
25654
25655         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
25656         vec_vsx_ld and vec_vsx_st.
25657         (vsx_store_<mode>): Ditto.
25658
25659         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25660         variables to hold long long types for VSX vector memory builtins.
25661         (RS6000_BTI_unsigned_long_long): Ditto.
25662         (long_long_integer_type_internal_node): Ditti.
25663         (long_long_unsigned_type_internal_node): Ditti.
25664
25665         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25666         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25667         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25668
25669         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25670         short cuts.
25671         (vec_vsx_st): Ditto.
25672
25673 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25674
25675         * config/pa/pa-hpux10.opt: New.
25676         * config/hpux11.opt (pthread): New Driver option.
25677         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25678         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25679
25680 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25681
25682         * config/ia64/vms.opt: New.
25683         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25684
25685 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25686
25687         PR target/47580
25688         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25689         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25690         generator functions.
25691         (vsx_floatuns<VSi><mode>2): Ditto.
25692         (vsx_fix_trunc<mode><VSi>2): Ditto.
25693         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25694
25695 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25696
25697         * config/i386/djgpp.opt (posix): New Driver option.
25698
25699 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
25700
25701         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25702         Move to the unsupported targets list.
25703
25704 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
25705
25706         PR rtl-optimization/47525
25707         * df-scan.c: Update copyright years.
25708         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25709         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25710
25711 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25712
25713         * config/i386/sysv4.h (TARGET_VERSION): Remove.
25714         (SUBTARGET_RETURN_IN_MEMORY): Remove.
25715         (ASM_OUTPUT_ASCII): Remove.
25716         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25717
25718 2011-02-02  Jeff Law  <law@redhat.com>
25719
25720         PR middle-end/47543
25721         * reload.c (find_reloads_address): Handle reg+d address where both
25722         components are invalid by reloading the entire address.
25723
25724 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25725             Richard Guenther  <rguenther@suse.de>
25726
25727         PR tree-optimization/40979
25728         PR bootstrap/47044
25729         * passes.c (init_optimization_passes): After LIM call copy_prop
25730         and DCE to clean up.
25731         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25732
25733 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25734
25735         PR tree-optimization/47576
25736         PR tree-optimization/47555
25737         * doc/invoke.texi (scev-max-expr-complexity): Documented.
25738         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25739         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25740         * tree-scalar-evolution.c (follow_ssa_edge): Use
25741         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25742
25743 2011-02-02  Richard Guenther  <rguenther@suse.de>
25744
25745         PR tree-optimization/47566
25746         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25747
25748 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25749
25750         PR debug/47106
25751         PR debug/47402
25752         * tree-inline.c (declare_return_variable): Remove unused caller
25753         variable.
25754
25755         PR debug/47106
25756         PR debug/47402
25757         * tree-flow-inline.h (clear_is_used, is_used_p): New.
25758         * cfgexpand.c (account_used_vars_for_block): Use them.
25759         * tree-nrv.c (tree_nrv): Likewise.
25760         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25761         (dump_scope_block): Likewise.
25762         (remove_unused_locals): Likewise.
25763
25764         PR debug/47106
25765         PR debug/47402
25766         * tree-inline.c (declare_return_variable): Add result decl to
25767         local decls only once.
25768         * gimple-low.c (record_vars_into): Mark newly-created variables
25769         as referenced.
25770
25771 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25772
25773         PR debug/47498
25774         PR debug/47501
25775         PR debug/45136
25776         PR debug/45130
25777         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25778         debug insns.
25779         (no_real_insns_p, schedule_block, set_priorities): Drop special
25780         treatment of boundary debug insns.
25781         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25782         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25783         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25784         (BOUNDARY_DEBUG_INSN_P): Likewise.
25785         (SCHEDULE_DEBUG_INSN_P): Likewise.
25786         * sched-rgn.c (init_ready_list): Drop special treatment of
25787         boundary debug insns.
25788         * final.c (rest_of_clean_state): Clear notes' BB.
25789
25790 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25791
25792         * config/openbsd.opt (assert=): New Driver option.
25793
25794 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25795
25796         * config/i386/nto.opt: New.
25797         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25798
25799 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25800
25801         * config/i386/netware.opt: New.
25802         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25803
25804 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25805
25806         * config/interix.opt (posix): New Driver option.
25807
25808 2011-02-01  DJ Delorie  <dj@redhat.com>
25809
25810         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25811
25812         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25813         class for A0/A1.
25814
25815 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
25816
25817         PR tree-optimization/47561
25818         * toplev.c (process_options): Print the Graphite flags.  Add
25819         flag_loop_flatten to the list of options requiring Graphite.
25820
25821 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25822
25823         * config/i386/cygming.opt (posix): New Driver option.
25824
25825 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25826
25827         * config/arm/vxworks.opt: New.
25828         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25829
25830 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25831
25832         * config/alpha/elf.opt: New.
25833         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25834         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25835
25836 2011-02-01  Richard Guenther  <rguenther@suse.de>
25837
25838         PR tree-optimization/47559
25839         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
25840         store-motion on references that can throw.
25841
25842 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
25843
25844         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
25845         * tree-pass.h (TDF_CSELIB): New macro.
25846         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
25847         cselib_lookup): Check for it rather than for TDF_DETAILS.
25848
25849 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
25850
25851         PR driver/47547
25852         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
25853         is HOST_BIT_BUCKET.
25854
25855         * opts.c (finish_options): Don't add x_aux_base_name if it is
25856         HOST_BIT_BUCKET.
25857
25858 2011-02-01  Richard Guenther  <rguenther@suse.de>
25859
25860         PR tree-optimization/47555
25861         Revert
25862         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
25863
25864         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25865
25866 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25867
25868         PR gcc/46692
25869         * config/lm32/t-lm32: Add multilib for all CPU options.
25870
25871 2011-02-01  Richard Guenther  <rguenther@suse.de>
25872
25873         PR tree-optimization/47541
25874         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
25875         sure to have a field at offset zero.
25876
25877 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25878
25879         * config/arc/arc.opt (EB, EL): New Driver options.
25880
25881 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25882
25883         * config/alpha/osf5.opt: New.
25884         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
25885
25886 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25887
25888         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
25889
25890 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
25891
25892         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
25893         -floop-interchange.
25894         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
25895         is an alias of -floop-interchange and that it requires the
25896         Graphite infrastructure.
25897         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
25898         flag_loop_interchange based on the value of flag_tree_loop_linear.
25899
25900 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
25901             Richard Guenther  <rguenther@suse.de>
25902
25903         PR tree-optimization/47538
25904         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
25905         type instead of r1type, except for comparisons.  For right
25906         shifts and comparisons punt if there are mismatches in
25907         sizetype vs. non-sizetype types.
25908
25909 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25910
25911         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25912         avx_runtime.
25913
25914 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25915
25916         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
25917         version number.
25918         * configure: Regenerate.
25919
25920 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25921
25922         * configure.ac (gcc_cv_ld_static_option): Define.
25923         (gcc_cv_ld_dynamic_option): Define.
25924         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
25925         instead.
25926         (HAVE_LD_STATIC_DYNAMIC): Update message.
25927         (LD_STATIC_OPTION): Define.
25928         (LD_DYNAMIC_OPTION): Define.
25929         * configure: Regenerate.
25930         * config.in: Regenerate.
25931         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
25932         HAVE_LD_STATIC_DYNAMIC]: Use them.
25933
25934 2011-01-31  Nick Clifton  <nickc@redhat.com>
25935
25936         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
25937         registers inside interrupt handlers if the handler is not a leaf
25938         function.
25939
25940 2011-01-31  Nick Clifton  <nickc@redhat.com>
25941
25942         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
25943         reg_renumber returning an INVALID_REGNUM.
25944
25945 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25946
25947         PR libgcj/44341
25948         * doc/install.texi: Document host options discarded when cross
25949         configuring target libraries.
25950
25951 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25952
25953         Reverted:
25954         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25955         PR debug/45136
25956         PR debug/45130
25957         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25958         debug insns.
25959         (no_real_insns_p, schedule_block, set_priorities): Drop special
25960         treatment of boundary debug insns.
25961         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25962         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25963         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25964         (BOUNDARY_DEBUG_INSN_P): Likewise.
25965         (SCHEDULE_DEBUG_INSN_P): Likewise.
25966         * sched-rgn.c (init_ready_list): Drop special treatment of
25967         boundary debug insns.
25968         * final.c (rest_of_clean-state): Clear notes' BB.
25969
25970 2011-01-31  Alan Modra  <amodra@gmail.com>
25971
25972         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
25973         toc relative expressions as we do in print_operand_address.
25974
25975 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
25976
25977         * doc/extend.texi: Follow spelling conventions.
25978         * doc/invoke.texi: Fix a typo.
25979
25980 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
25981
25982         * config/hpux11.opt: New.
25983         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
25984         ia64*-*-hpux*): Use hpux11.opt.
25985
25986 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
25987
25988         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
25989         to tmake_file.
25990
25991 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25992
25993         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
25994         support sites.
25995
25996 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25997
25998         * doc/install.texi (Binaries): Remove outdated reference for
25999         Motorola 68HC11/68HC12 downloads.
26000
26001 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
26002
26003         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
26004         Drepper's paper.
26005
26006 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
26007
26008         PR bootstrap/47147
26009         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
26010         used by NetBSD.
26011
26012 2011-01-28  Ahmad Sharif  <asharif@google.com>
26013
26014         * value-prof.c (check_counter): Corrected error message.
26015
26016 2011-01-29  Jie Zhang  <jie@codesourcery.com>
26017
26018         * config/arm/arm.c (arm_legitimize_reload_address): New.
26019         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26020         arm_legitimize_reload_address.
26021         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
26022
26023 2011-01-28  Ian Lance Taylor  <iant@google.com>
26024
26025         * godump.c (go_define): Ignore macros whose definitions include
26026         two adjacent operands.
26027
26028 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
26029
26030         PR target/42894
26031         * varasm.c (force_const_mem): Store copy of x in desc->constant
26032         instead of x itself.
26033         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
26034         itself into REG_EQUAL note.
26035
26036 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
26037
26038         * config/freebsd.opt (posix, rdynamic): New Driver options.
26039
26040 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26041
26042         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
26043         -Bstatic/-Bdynamic.
26044         * configure: Regenerate.
26045
26046 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
26047
26048         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
26049         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
26050
26051 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
26052
26053         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
26054         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
26055         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26056         (s390_preferred_reload_class): Make static. Change return and
26057         'rclass' argument type to reg_class_t.
26058
26059 2011-01-27  Jan Hubicka  <jh@suse.cz>
26060
26061         PR middle-end/46949
26062         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26063         (process_function_and_variable_attributes): Check defined weakrefs.
26064
26065 2011-01-27  Martin Jambor  <mjambor@suse.cz>
26066
26067         PR tree-optimization/47228
26068         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26069         build_ref_for_offset.
26070
26071 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26072
26073         * config/spu/spu-elf.h (ASM_SPEC): Remove.
26074
26075 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
26076
26077         PR rtl-optimization/46856
26078         * postreload.c (reload_combine_recognize_const_pattern): Do not
26079         separate cc0 setter and user on cc0 targets.
26080
26081 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
26082
26083         PR c/43082
26084         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26085         passed a VOID_TYPE expression, immediately emit an error and
26086         return error_mark_node.
26087
26088 2011-01-26  Jeff Law  <law@redhat.com>
26089
26090         PR rtl-optimization/47464
26091         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26092         rather than may_trap_p as needed.
26093
26094 2011-01-26  DJ Delorie  <dj@redhat.com>
26095
26096         PR rtl-optimization/46878
26097         * combine.c (insn_a_feeds_b): Check for the implicit cc0
26098         setter/user dependency as well.
26099
26100 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
26101
26102         PR rtl-optimization/44469
26103         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26104         after removing trivially dead basic blocks.
26105
26106 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26107
26108         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26109         * config/frv/frv.h (LINK_SPEC): Likewise.
26110         * config/i386/netware.h (LINK_SPEC): Likewise.
26111         * config/m68k/linux.h (ASM_SPEC): Likewise.
26112         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26113         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26114         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26115         * config/sparc/linux.h (ASM_SPEC): Likewise.
26116         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26117         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26118
26119 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26120
26121         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26122         * config/frv/frv.h (ASM_SPEC): Likewise.
26123         * config/m68k/linux.h (ASM_SPEC): Likewise.
26124         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26125         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26126         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26127         * config/sparc/linux.h (ASM_SPEC): Likewise.
26128         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26129         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26130
26131 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26132
26133         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26134         * config/frv/frv.h (LINK_SPEC): Likewise.
26135         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26136
26137 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26138
26139         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26140         * config/frv/frv.h (ASM_SPEC): Likewise.
26141         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
26142         * config/m68k/linux.h (ASM_SPEC): Likewise.
26143         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26144         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26145         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26146         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
26147         * config/sparc/linux.h (ASM_SPEC): Likewise.
26148         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26149         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26150         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
26151
26152 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
26153
26154         PR target/46997
26155         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
26156         (*mux2): Ditto.
26157         (vec_extract_evenodd_help): Ditto.
26158         (vec_extract_evenv4hi): Ditto.
26159         (vec_extract_oddv4hi): Ditto.
26160         (vec_interleave_lowv2si): Ditto.
26161         (vec_interleave_highv2si): Ditto.
26162         (vec_extract_evenv2si): Ditto.
26163         (vec_extract_oddv2si: Ditto.
26164         (vec_pack_trunc_v2si): Ditto.
26165
26166 2011-01-22  Jan Hubicka  <jh@suse.cz>
26167
26168         PR target/47237
26169         * cgraph.h (cgraph_local_info): New field can_change_signature.
26170         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
26171         signature can change.
26172         (ipcp_estimate_growth): Call sequence simplify only if calle signature
26173         can change.
26174         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
26175         (cgraph_function_versioning): We can not change signature of functions
26176         that don't allow that.
26177         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
26178         (lto_input_node): Likewise.
26179         * ipa-inline.c (compute_inline_parameters): Compute
26180         local.can_change_signature.
26181         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
26182         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
26183         functions that can not change signature.
26184         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
26185         init_cumulative_args): Do not use local calling conventions
26186         for functions that can not change signature.
26187
26188 2011-01-22  Jan Hubicka  <jh@suse.cz>
26189
26190         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
26191
26192 2011-01-26  Richard Guenther  <rguenther@suse.de>
26193
26194         PR tree-optimization/47190
26195         * cgraphunit.c (process_common_attributes): New function.
26196         (process_function_and_variable_attributes): Use it.
26197
26198 2011-01-26  Richard Guenther  <rguenther@suse.de>
26199
26200         PR lto/47423
26201         * cgraphbuild.c (record_eh_tables): Record reference to personality
26202         function.
26203
26204 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
26205
26206         PR debug/45454
26207         * sel-sched.c (moveup_expr): Don't let debug insns prevent
26208         non-debug insns from moving up.
26209
26210 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
26211
26212         PR target/40125
26213         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
26214         t-dlldir{,-x} fragment for build and add it to tmake_file.
26215         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
26216         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
26217         * config/i386/t-dlldir: New file.
26218         (SHLIB_DLLDIR): Define.
26219         * config/i386/t-dlldir-x: New file.
26220         (SHLIB_DLLDIR): Define.
26221         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
26222         (SHLIB_INSTALL): Use it.
26223
26224 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
26225
26226         PR target/47246
26227         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
26228         lower bound of the allowed Thumb-2 coprocessor load/store
26229         index range to -256. Add explaining comment.
26230
26231 2011-01-25  Ian Lance Taylor  <iant@google.com>
26232
26233         * godump.c (go_define): Improve lexing of macro expansion to only
26234         accept expressions which match Go spec.
26235
26236 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
26237
26238         PR c++/43601
26239         * tree.c (handle_dll_attribute): Handle it.
26240         * doc/extend.texi (@item dllexport): Mention it.
26241         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
26242
26243 2011-01-25  Ian Lance Taylor  <iant@google.com>
26244
26245         PR tree-optimization/26854
26246         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
26247         (decl_jump_unsafe): Move higher in file, with no other change.
26248         (bind): Set has_jump_unsafe_decl if appropriate.
26249         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
26250         (check_earlier_gotos): Likewise.
26251         (c_check_switch_jump_warnings): Likewise.
26252
26253 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
26254
26255         * doc/invoke.texi (Warning Options): Add missing hyphen.
26256         (-fprofile-dir): Minor grammatical fixes.
26257         (-fbranch-probabilities): Likewise.
26258
26259 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
26260
26261         PR debug/45136
26262         PR debug/45130
26263         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26264         debug insns.
26265         (no_real_insns_p, schedule_block, set_priorities): Drop special
26266         treatment of boundary debug insns.
26267         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26268         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26269         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26270         (BOUNDARY_DEBUG_INSN_P): Likewise.
26271         (SCHEDULE_DEBUG_INSN_P): Likewise.
26272         * sched-rgn.c (init_ready_list): Drop special treatment of
26273         boundary debug insns.
26274         * final.c (rest_of_clean-state): Clear notes' BB.
26275
26276 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26277
26278         * Makefile.in (LAMBDA_H): Removed.
26279         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
26280         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
26281         lambda-trans.o, and tree-loop-linear.o.
26282         (lto-symtab.o): Remove dependence on LAMBDA_H.
26283         (tree-loop-linear.o): Remove rule.
26284         (lambda-mat.o): Same.
26285         (lambda-trans.o): Same.
26286         (lambda-code.o): Same.
26287         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
26288         (tree-vect-slp.o): Same.
26289         * hwint.h (gcd): Moved here.
26290         (least_common_multiple): Same.
26291         * lambda-code.c: Removed.
26292         * lambda-mat.c: Removed.
26293         * lambda-trans.c: Removed.
26294         * lambda.h: Removed.
26295         * tree-loop-linear.c: Removed.
26296         * lto-symtab.c: Do not include lambda.h.
26297         * omega.c (gcd): Removed.
26298         * passes.c (init_optimization_passes): Remove pass_linear_transform.
26299         * tree-data-ref.c (print_lambda_vector): Moved here.
26300         (lambda_vector_copy): Same.
26301         (lambda_matrix_copy): Same.
26302         (lambda_matrix_id): Same.
26303         (lambda_vector_first_nz): Same.
26304         (lambda_matrix_row_add): Same.
26305         (lambda_matrix_row_exchange): Same.
26306         (lambda_vector_mult_const): Same.
26307         (lambda_vector_negate): Same.
26308         (lambda_matrix_row_negate): Same.
26309         (lambda_vector_equal): Same.
26310         (lambda_matrix_right_hermite): Same.
26311         * tree-data-ref.h: Do not include lambda.h.
26312         (lambda_vector): Moved here.
26313         (lambda_matrix): Same.
26314         (dependence_level): Same.
26315         (lambda_transform_legal_p): Removed declaration.
26316         (lambda_collect_parameters): Same.
26317         (lambda_compute_access_matrices): Same.
26318         (lambda_vector_gcd): Same.
26319         (lambda_vector_new): Same.
26320         (lambda_vector_clear): Same.
26321         (lambda_vector_lexico_pos): Same.
26322         (lambda_vector_zerop): Same.
26323         (lambda_matrix_new): Same.
26324         * tree-flow.h (least_common_multiple): Removed declaration.
26325         * tree-parloops.c (lambda_trans_matrix): Moved here.
26326         (LTM_MATRIX): Same.
26327         (LTM_ROWSIZE): Same.
26328         (LTM_COLSIZE): Same.
26329         (LTM_DENOMINATOR): Same.
26330         (lambda_trans_matrix_new): Same.
26331         (lambda_matrix_vector_mult): Same.
26332         (lambda_transform_legal_p): Same.
26333         * tree-pass.h (pass_linear_transform): Removed declaration.
26334         * tree-ssa-loop.c (tree_linear_transform): Removed.
26335         (gate_tree_linear_transform): Removed.
26336         (pass_linear_transform): Removed.
26337         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
26338         flag_loop_interchange.
26339
26340 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26341
26342         PR tree-optimization/47265
26343         PR tree-optimization/47443
26344         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
26345         if name still has some uses.
26346
26347 2011-01-25  Martin Jambor  <mjambor@suse.cz>
26348
26349         PR tree-optimization/47382
26350         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
26351         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
26352
26353 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
26354
26355         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
26356         sjlj_except_unwind_info.
26357
26358 2011-01-25  Richard Guenther  <rguenther@suse.de>
26359
26360         PR tree-optimization/47426
26361         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
26362         visible functions results escape.
26363
26364 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26365
26366         PR target/45701
26367         * config/arm/arm.c (any_sibcall_uses_r3): New function.
26368         (arm_get_frame_offsets): Use it.
26369
26370 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26371             Jakub Jelinek  <jakub@redhat.com>
26372
26373         PR tree-optimization/47271
26374         * tree-if-conv.c (bb_postdominates_preds): New.
26375         (if_convertible_bb_p): Call bb_postdominates_preds.
26376         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26377         (predicate_scalar_phi): Call bb_postdominates_preds.
26378
26379 2011-01-25  Nick Clifton  <nickc@redhat.com>
26380
26381         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26382         * config/rx/rx.c (rx_function_value): Likewise.
26383         (rx_promote_function_mode): Likewise.
26384         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26385         in order to make it legitimate.
26386         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26387         make sure that the first operand is the same as the result register.
26388         (addsi3_unspec): Delete.
26389         (subdi3): Do not accept immediate operands.
26390         (subdi3_internal): Likewise.
26391
26392 2011-01-25  Jeff Law  <law@redhat.com>
26393
26394         PR rtl-optimization/37273
26395         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26396         handle them like argument loads from stack slots.  Do not double
26397         count memory for memory constants and argument loads from stack slots.
26398
26399 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26400
26401         PR tree-optimization/47427
26402         PR tree-optimization/47428
26403         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26404         coalesce if the new root var would be TREE_READONLY.
26405
26406 2011-01-25  Richard Guenther  <rguenther@suse.de>
26407
26408         PR middle-end/47414
26409         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26410         correct type for TBAA.
26411
26412 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26413
26414         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26415         (close_phi_written_to_memory): Call for_each_index with
26416         dr_indices_valid_in_loop.
26417
26418 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26419
26420         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26421         when it is initialized.
26422
26423 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26424
26425         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26426         call to graphite_find_data_references_in_stmt.
26427         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26428         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
26429         call to graphite_find_data_references_in_stmt.
26430         (analyze_drs_in_stmts): Same.
26431         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26432         in which the scalar analysis of indices is performed.
26433         (create_data_ref): Same.  Update call to dr_analyze_indices.
26434         (find_data_references_in_stmt): Update call to create_data_ref.
26435         (graphite_find_data_references_in_stmt): Same.
26436         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26437         declaration.
26438         (create_data_ref): Same.
26439         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26440         call to create_data_ref.
26441
26442 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26443
26444         * graphite-sese-to-poly.c (build_poly_scop): Move
26445         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26446
26447 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26448
26449         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26450         VAR_DECL, PARM_DECL, and RESULT_DECL.
26451
26452 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26453
26454         * graphite-dependences.c (reduction_dr_1): Allow several reductions
26455         in a reduction PBB.
26456         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26457         that have already been marked as PBB_IS_REDUCTION.
26458
26459 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26460
26461         * graphite-scop-detection.c (same_close_phi_node): New.
26462         (remove_duplicate_close_phi): New.
26463         (make_close_phi_nodes_unique): New.
26464         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26465
26466 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26467
26468         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26469         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26470         of both data references to be the same.
26471
26472 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26473
26474         * graphite-dependences.c (build_lexicographical_constraint): Remove
26475         the gdim parameter.
26476         (build_lexicographical_constraint): Adjust call to
26477         ppl_powerset_is_empty.
26478         (dependence_polyhedron): Same.
26479         (graphite_legal_transform_dr): Same.
26480         (graphite_carried_dependence_level_k): Same.
26481         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26482         parameter.
26483         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26484
26485 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26486
26487         * graphite-sese-to-poly.c
26488         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26489         (close_phi_written_to_memory): New.
26490         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26491         and unshare_expr.
26492
26493 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26494
26495         * doc/install.texi: Update the expected version number of PPL to 0.11.
26496         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26497         #if PPL_VERSION_MINOR < 11.
26498
26499 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26500
26501         * graphite-dependences.c: Include graphite-cloog-util.h.
26502         (new_poly_ddr): Inlined into dependence_polyhedron.
26503         (free_poly_ddr): Moved close by new_poly_ddr.
26504         (dependence_polyhedron_1): Renamed dependence_polyhedron.
26505         Early return NULL when ppl_powerset_is_empty returns true.
26506         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
26507         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
26508         (graphite_legal_transform_dr): Call new_poly_ddr.
26509         (graphite_carried_dependence_level_k): Same.
26510         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
26511         (dot_transformed_deps_stmt_1): Removed.
26512         (dot_deps_stmt_1): Call dot_deps_stmt_2.
26513         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
26514         (dot_deps_1): Call dot_deps_2.
26515         * Makefile.in (graphite-dependences.o): Add missing dependence on
26516         graphite-cloog-util.h.
26517
26518 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26519
26520         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26521         (build_lexicographical_constraint): Same.
26522         (dependence_polyhedron_1): Same.
26523         (graphite_legal_transform_dr): Same.
26524         (graphite_carried_dependence_level_k): Same.
26525         * graphite-ppl.c (ppl_powerset_is_empty): New.
26526         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26527         * tree-data-ref.c (dump_data_reference): Print the basic block index.
26528
26529 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26530
26531         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26532         the "a followed by b" relation and document it.
26533
26534 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26535
26536         * graphite-dependences.c (build_lexicographical_constraint): Stop the
26537         iteration when the bag of constraints is empty.
26538
26539 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26540
26541         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26542
26543 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26544
26545         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26546         nest and two loop depths as parameters.
26547         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26548         lst_perfect_nestify.
26549
26550 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26551
26552         * graphite-dependences.c (print_pddr): Call
26553         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26554
26555 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26556
26557         * graphite-ppl.c (debug_gmp_value): New.
26558         * graphite-ppl.h (debug_gmp_value): Declared.
26559
26560 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
26561
26562         * doc/install.texi: Document availability of cloog-0.16.
26563
26564 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
26565
26566         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26567         invalid postdominance info.
26568
26569 2011-01-24  Jan Hubicka  <jh@suse.cz>
26570
26571         PR c/21659
26572         * doc/extend.texi (weak pragma): Drop claim that it must
26573         appear before definition.
26574         * varasm.c (merge_weak, declare_weak): Only sanity check
26575         that DECL is not output at a time it is declared weak.
26576
26577 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
26578
26579         * machmode.def: Fixed comments.
26580
26581 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
26582
26583         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26584
26585 2011-01-24  Paul Koning  <ni1d@arrl.net>
26586
26587         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26588         WORDS_BIG_ENDIAN.
26589
26590 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
26591
26592         PR target/46519
26593         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
26594         (block_info): Add scanned and prev.
26595         (move_or_delete_vzeroupper_2): Return if the basic block
26596         has been scanned and the upper 128bit state is unchanged
26597         from the last scan.
26598         (move_or_delete_vzeroupper_1): Return true if the exit
26599         state is changed.
26600         (move_or_delete_vzeroupper): Visit basic blocks using the
26601         work-list based algorithm based on vt_find_locations in
26602         var-tracking.c.
26603
26604         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
26605
26606 2011-01-24  Nick Clifton  <nickc@redhat.com>
26607
26608         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
26609         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
26610         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
26611         then define __v850e1__.
26612         * doc/invoke.texi: Document -mv850es.
26613
26614 2011-01-24  Richard Henderson  <rth@redhat.com>
26615
26616         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
26617         compound unordered comparisons.
26618         * config/rx/rx.c (rx_split_fp_compare): Remove.
26619         * config/rx/rx-protos.h: Update.
26620         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
26621         (cbranchsf4): Don't call rx_split_fp_compare.
26622         (*cbranchsf4): Use rx_split_cbranch.
26623         (*cmpsf): Don't accept "i" constraint.
26624         (*conditional_branch): Only valid after reload.
26625         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
26626
26627 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26628
26629         PR target/47385
26630         * config/rs6000/altivec.md (vector constant splitters): Add
26631         support for creating vector single precision constants if -mvsx is
26632         used and we would create the constant using Altivec primitives.
26633
26634 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
26635             Richard Sandiford  <rdsandiford@googlemail.com>
26636
26637         PR rtl-optimization/47166
26638         * reload1.c (emit_reload_insns): Disable the spill_reg_store
26639         mechanism for PRE_MODIFY and POST_MODIFY.
26640         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
26641         reloadreg.
26642
26643 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
26644
26645         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
26646
26647 2011-01-22  Jan Hubicka  <jh@suse.cz>
26648
26649         PR lto/47333
26650         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
26651
26652 2011-01-22  Jan Hubicka  <jh@suse.cz>
26653
26654         PR tree-optimization/43884
26655         PR lto/44334
26656         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26657         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26658
26659 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
26660
26661         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26662         * config/s390/s390.c (s390_register_move_cost,
26663         s390_memory_move_cost): New.
26664         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26665
26666 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26667
26668         PR middle-end/47401
26669         * except.c (sjlj_assign_call_site_values): Move setting the
26670         crtl->uses_eh_lsda flag to ...
26671         (sjlj_mark_call_sites): ... here.
26672         (sjlj_emit_function_enter): Support NULL dispatch label.
26673         (sjlj_build_landing_pads): In a function with no landing pads
26674         that still has must-not-throw regions, generate code to register
26675         a personality function with empty LSDA.
26676
26677 2011-01-21  Richard Henderson  <rth@redhat.com>
26678
26679         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26680
26681         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26682
26683         * compare-elim.c: New file.
26684         * Makefile.in (OBJS-common): Add it.
26685         (compare-elim.o): New.
26686         * common.opt (fcompare-elim): New.
26687         * opts.c (default_options_table): Add OPT_fcompare_elim.
26688         * tree-pass.h (pass_compare_elim_after_reload): New.
26689         * passes.c (init_optimization_passes): Add it.
26690         * recog.h: Protect against re-inclusion.
26691         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26692         * doc/invoke.texi (-fcompare-elim): Document it.
26693         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26694         * doc/tm.texi: Rebuild.
26695
26696 2011-01-22  Nick Clifton  <nickc@redhat.com>
26697
26698         * config/rx/rx.md (cstoresf4): Pass comparison operator to
26699         rx_split_fp_compare.
26700
26701 2011-01-22  Nick Clifton  <nickc@redhat.com>
26702
26703         * config/rx/rx.md (UNSPEC_CONST): New.
26704         (deallocate_and_return): Wrap the amount popped off the stack in
26705         an UNSPEC_CONST in order to stop it being rejected by
26706         -mmax-constant-size.
26707         (pop_and_return): Add a "(return)" rtx.
26708         (call): Drop the immediate operand.
26709         (call_internal): Likewise.
26710         (call_value): Likewise.
26711         (call_value_internal): Likewise.
26712         (sibcall_internal): Likewise.
26713         (sibcall_value_internal): Likewise.
26714         (sibcall): Likewise.  Generate an explicit call using
26715         sibcall_internal.
26716         (sibcall_value): Likewise.
26717         (mov<>): FAIL if a constant operand is not legitimate.
26718         (addsi3_unpsec): New pattern.
26719
26720         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26721         (ok_for_max_constant): New function.
26722         (gen_safe_add): New function.
26723         (rx_expand_prologue): Use gen_safe_add.
26724         (rx_expand_epilogue): Likewise.
26725         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
26726         UNSPEC CONSTs.
26727
26728 2011-01-21  Jeff Law  <law@redhat.com>
26729
26730         PR tree-optimization/47053
26731         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26732         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26733         statements are deleted.
26734         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
26735         is nonempty, then purge dead edges and cleanup the CFG.
26736
26737 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26738
26739         PR debug/47402
26740         Temporarily revert:
26741         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26742         PR debug/47106
26743         * tree-dfa.c (create_var_ann): Mark variable as used.
26744
26745 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26746
26747         PR middle-end/45566
26748         * except.c (convert_to_eh_region_ranges): Emit queued no-region
26749         notes from other section in hot/cold partitioning even if
26750         last_action is -3.  Increment call_site_base.
26751
26752         PR rtl-optimization/47366
26753         * fwprop.c (forward_propagate_into): Return bool.  If
26754         any changes are made, -fnon-call-exceptions is used and
26755         REG_EH_REGION note is present, call purge_dead_edges
26756         and return true if it purged anything.
26757         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26758         any EH edges were purged.
26759
26760 2011-01-21  Jeff Law  <law@redhat.com>
26761
26762         PR rtl-optimization/41619
26763         * caller-save.c (setup_save_areas): Break out code to determine
26764         which hard regs are live across calls by examining the reload chains
26765         so that it is always used.
26766         Eliminate code which checked REG_N_CALLS_CROSSED.
26767
26768 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26769
26770         PR tree-optimization/47355
26771         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26772         NOP has non-debug uses beyond PHIs in new_bb.
26773
26774 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26775
26776         PR debug/47106
26777         * cfgexpand.c (account_used_vars_for_block): Only account vars
26778         that are annotated as used.
26779         (estimated_stack_frame_size): Don't set TREE_USED.
26780         * tree-dfa.c (create_var_ann): Mark variable as used.
26781
26782 2011-01-21  Richard Guenther  <rguenther@suse.de>
26783
26784         PR middle-end/47395
26785         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26786
26787 2011-01-21  Richard Guenther  <rguenther@suse.de>
26788
26789         PR tree-optimization/47365
26790         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26791         (vn_reference_lookup_pieces): Adjust.
26792         (vn_reference_lookup): Likewise.
26793         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26794         (vn_reference_lookup_3): Only look through kills if in
26795         VN_WALKREWRITE mode.
26796         (vn_reference_lookup_pieces): Adjust.
26797         (vn_reference_lookup): Likewise.
26798         (visit_reference_op_load): Likewise.
26799         (visit_reference_op_store): Likewise.
26800         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26801         (compute_avail): Likewise.
26802         (eliminate): Likewise.
26803
26804 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26805
26806         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26807         DECL_IGNORED_P non-reg vars if they are used.
26808
26809         PR tree-optimization/47391
26810         * varpool.c (const_value_known_p): Return false if
26811         decl is volatile.
26812
26813 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
26814
26815         PR bootstrap/47215
26816         * config/i386/i386.c (ix86_local_alignment): Handle
26817         case for va_list_type_node is nil.
26818         (ix86_canonical_va_list_type): Likewise.
26819
26820 2011-01-21  Alan Modra  <amodra@gmail.com>
26821
26822         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26823         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26824
26825 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26826
26827         * config/arm/arm.md (define_attr type): Rename f_load
26828         and f_store to f_fpa_load and f_fpa_store. Update.
26829         (write_conflict): Deal with rename fallout.
26830         (*push_fp_multi): Likewise.
26831         * config/arm/fpa.md (f_load): Use f_fpa_load.
26832         (f_store): Use f_fpa_store.
26833         (*movsf_fpa): Likewise.
26834         (*movdf_fpa): Likewise.
26835         (*movxf_fpa): Likewise.
26836         (*thumb2_movsf_fpa): Likewise.
26837         (*thumb2_movdf_fpa): Likewise.
26838         (*thumb2_movxf_fpa): Likewise.
26839         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
26840         f_loadd and f_stored.
26841         (*thumb2_movdi_vfp): Likewise.
26842         (*thumb2_movsf_vfp): Fix attribute to f_loads.
26843         (*thumb2_movsi_vfp): Likewise.
26844         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
26845         Use f_loads instead of f_load.
26846         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
26847
26848 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
26849
26850         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26851         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
26852         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26853         (xtensa_mode_dependent_address_p): New function.
26854         (constantpool_address_p): Make static. Change return type to bool.
26855         Change argument type to const_rtx. Use CONST_INT_P predicate.
26856
26857 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
26858
26859         PR debug/46583
26860         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
26861
26862 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26863
26864         PR debug/47283
26865         * cfgexpand.c (expand_debug_expr): Instead of generating
26866         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
26867         etc. handling.
26868
26869 2011-01-20  Richard Guenther  <rguenther@suse.de>
26870
26871         PR middle-end/47370
26872         * tree-inline.c (remap_gimple_op_r): Recurse manually for
26873         the pointer operand of MEM_REFs.
26874
26875 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26876
26877         PR tree-optimization/46130
26878         * ipa-split.c (consider_split): If return_bb contains non-virtual
26879         PHIs other than for retval or if split_function would not adjust it,
26880         refuse to split.
26881
26882 2011-01-20  Richard Guenther  <rguenther@suse.de>
26883
26884         PR tree-optimization/47167
26885         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
26886         Revert previous change, only avoid enumeral type changes.
26887
26888 2011-01-19  Mike Stump  <mikestump@comcast.net>
26889
26890         * doc/tm.texi.in (BRANCH_COST): Englishify.
26891         * doc/tm.texi (BRANCH_COST): Likewise.
26892
26893 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
26894
26895         PR c++/47291
26896         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
26897         (gen_scheduled_generic_parms_dies): New functions.
26898         (gen_struct_or_union_type_die): Schedule template parameters DIEs
26899         generation for the end of CU compilation.
26900         (dwarf2out_finish): Generate template parameters DIEs here.
26901
26902 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26903
26904         PR debug/46240
26905         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
26906         debug bind stmt on merge edges.
26907
26908 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26909
26910         PR debug/47079
26911         PR debug/46724
26912         * function.c (instantiate_expr): Instantiate incoming rtl of
26913         implicit arguments, and recurse on VALUE_EXPRs.
26914         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
26915         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
26916
26917 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26918
26919         * c-parser.c (c_parser_for_statement): Initialize
26920         collection_expression.
26921
26922 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26923
26924         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
26925
26926 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26927
26928         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
26929         (LINK_SHLIB_SPEC): Don't use %(link_path).
26930         (SUBTARGET_EXTRA_SPECS): Remove link_path.
26931
26932 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26933
26934         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
26935         (NO_SHARED_LIB_SUPPORT): Remove.
26936         (LINK_SHLIB_SPEC): Remove one conditional definition.
26937
26938 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26939
26940         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
26941         %{call_shared}.
26942         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
26943         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
26944         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
26945         %{call_shared} and conditionals on these options not being passed.
26946         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
26947         %{call_shared}.
26948
26949 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26950
26951         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
26952         simplify.
26953
26954         * ipa-split.c: Spelling fixes.
26955
26956 2011-01-19  Richard Henderson  <rth@redhat.com>
26957
26958         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
26959         (*mulsi3): Likewise.
26960
26961         * longlong.h [__mn10300__] (count_leading_zeros): New.
26962         [__mn10300__] (umul_ppmm, smul_ppmm): New.
26963         [__mn10300__] (add_ssaaaa, subddmmss): New.
26964         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
26965         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
26966
26967 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26968
26969         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
26970
26971 2011-01-19  Richard Henderson  <rth@redhat.com>
26972
26973         * config/mn10300/mn10300.md (addsi3_flags): New.
26974         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
26975         (subsi3_flags, subc_internal, subdi3): New.
26976         (subdi3_internal, *subdi3_degenerate): New.
26977         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
26978
26979         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
26980         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
26981         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
26982         * config/mn10300/mn10300-protos.h: Update.
26983         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
26984         (return_ret): Likewise.  Rename from return_internal_regs.
26985         (return_internal): Remove.
26986
26987         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
26988         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
26989         (mn10300_legitimate_constant_p): Likewise.
26990         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
26991         (mn10300_frame_size): New.
26992         (mn10300_expand_prologue): Use it.
26993         (mn10300_expand_epilogue): Likewise.
26994         (mn10300_initial_offset): Likewise.
26995         * config/mn10300/mn10300-protos.h: Update.
26996         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
26997         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
26998         (prologue, epilogue, return_internal): Tidy output code.
26999         (mn10300_store_multiple_operation, return): Likewise.
27000         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
27001         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
27002         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
27003         (load_pic, am33_load_pic): New.
27004         (mn10300_load_pic0, mn10300_load_pic1): New.
27005
27006         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
27007         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
27008         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
27009         (cc_flags_for_mode, cc_flags_for_code): New.
27010         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
27011         overflow flag is not valid.  Validate that the flags we need
27012         for the comparison are valid.
27013         (mn10300_output_cmp): Remove.
27014         (mn10300_output_add): New.
27015         (mn10300_select_cc_mode): Use cc_flags_for_code.
27016         (mn10300_split_cbranch): New.
27017         (mn10300_match_ccmode): New.
27018         (mn10300_split_and_operand_count): New.
27019         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
27020         to the function.
27021         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
27022         (addsi3): ... here.  Use mn10300_output_add.
27023         (*addsi3_flags): New.
27024         (*am33_subsi3, *mn10300_subsi3): Merge...
27025         (subsi3): ... here.  Use attribute isa.
27026         (*subsi3_flags): New.
27027         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
27028         when possible.
27029         (*am33_andsi3, *mn10300_andsi3): Merge...
27030         (andsi3): ... here.
27031         (*andsi3_flags): New.
27032         (andsi3 splitters): New.
27033         (*am33_iorsi3, *mn10300_iorsi3): Merge...
27034         (iorsi3): ... here.
27035         (*iorsi3_flags): New.
27036         (*am33_xorsi3, *mn10300_xorsi3): Merge...
27037         (xorsi3): ... here.
27038         (*xorsi3_flags): New.
27039         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
27040         (one_cmplsi2): ... here.
27041         (*one_cmplsi2_flags): New.
27042         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
27043         instead of "dax" in constraints.  Use mn10300_split_cbranch.
27044         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
27045         use matching constraints to eliminate a self-comparison.
27046         (*integer_conditional_branch): Rename from integer_conditional_branch.
27047         Use int_mode_flags to match CC_REG.
27048         (*cbranchsi4_btst, *btstsi): New.
27049         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
27050         mn10300_split_cbranch.
27051         (*am33_cmpsf): Rename from am33_cmpsf.
27052         (*float_conditional_branch): Rename from float_conditional_branch.
27053         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
27054         (zero_extendqisi2): ... here.
27055         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
27056         (zero_extendhisi2): ... here.
27057         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
27058         (extendqisi2): ... here.
27059         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27060         (extendhisi2): ... here.
27061         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27062         (ashlsi3): ... here.
27063         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27064         (lshrsi3): ... here.
27065         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27066         (ashrsi3): ... here.
27067         (consecutive add peephole): Remove.
27068         * config/mn10300/predicates.md (label_ref_operand): New.
27069         (int_mode_flags): New.
27070         (CCZN_comparison_operator): New.
27071
27072         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27073         (throughput_42_latency_43): New reservation.
27074         (mulsidi3, umulsidi3): New expanders.
27075         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
27076         the MDR register to allocation; separately allocate the low and
27077         high parts of the DImode result.
27078         (umulsidi3_internal): Similarly.
27079         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27080         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
27081         (udivsi3, umodsi3): Remove.
27082         (udivmodsi4, divmodsi4): New expanders.
27083         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
27084         (*divmodsi4): Simiarly.
27085         (ext_internal): New.
27086
27087         * config/mn10300/constraints.md ("z"): New constraint.
27088         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27089         (FIXED_REGISTERS): Don't fix MDR.
27090         (CALL_USED_REGSITERS): Reformat nicely.
27091         (REG_ALLOC_ORDER): Add MDR.
27092         (enum regclass): Add MDR_REGS.
27093         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27094         (IRA_COVER_CLASSES): Add MDR_REGS.
27095         (REGNO_REG_CLASS): Handle MDR_REG.
27096         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27097         (mn10300_register_move_cost): Likewise.
27098         * config/mn10300/mn10300.md (MDR_REG): New.
27099         (*movsi_internal): Handle moves to/from MDR_REGS.
27100
27101         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27102         POST_MODIFY.
27103         (mn10300_secondary_reload): Tidy combination reload classes.
27104         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27105         addresses for AM33.  Allow symbolic offsets for reg+imm.
27106         (mn10300_regno_in_class_p): New.
27107         (mn10300_legitimize_reload_address): New.
27108         * config/mn10300/mn10300.h (enum reg_class): Remove
27109         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27110         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
27111         SP_OR_GENERAL_REGS.
27112         (REG_CLASS_NAMES): Update to match.
27113         (REG_CLASS_CONTENTS): Likewise.
27114         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27115         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27116         (REGNO_IN_RANGE_P): Remove.
27117         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27118         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27119         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27120         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27121         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27122         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27123         (REGNO_GENERAL_P): New.
27124         (HAVE_POST_MODIFY_DISP): New.
27125         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27126         (LEGITIMIZE_RELOAD_ADDRESS): New.
27127         * config/mn10300/mn10300-protos.h: Update.
27128
27129         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27130         DATA_REGS for AM33 stack-pointer destination.
27131         (mn10300_preferred_output_reload_class): Likewise.
27132         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27133         into a form appropriate for ...
27134         (TARGET_SECONDARY_RELOAD): New.
27135         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27136         * config/mn10300/mn10300-protos.h: Update.
27137         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27138         reload_insi; use the "A" constraint for the scratch; handle AM33
27139         moves of sp to non-address registers.
27140
27141         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
27142         (*movqi_internal): ... here.
27143         (*am33_movhi, *mn10300_movhi): Merge into...
27144         (*movhi_internal): ... here.
27145         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
27146         as the source/destination of moves from/to SP.
27147         (movsf): Only allow for AM33-2.
27148         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
27149         any integer constant constraint.  Only allow for AM33-2.  Tidy
27150         all of the alternative outputs.
27151         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
27152         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
27153         for MN103.
27154         (udivsi3, umodsi3): New patterns for MN103 only.
27155
27156 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
27157
27158         * doc/tm.texi.in: Spell out that a lack of register class unions
27159         can lead to ICEs.
27160         * doc/tm.texi: Regenerate.
27161
27162 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
27163
27164         PR rtl-optimization/47337
27165         * dce.c (check_argument_store): New function.
27166         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
27167
27168         PR tree-optimization/47290
27169         * tree-eh.c (infinite_empty_loop_p): New function.
27170         (cleanup_empty_eh): Use it.
27171
27172 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
27173
27174         PR target/46997
27175         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
27176         (a64_expand_widen_sum): Ditto.
27177         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
27178         (vec_extract_evenodd_help): Ditto.
27179         (vec_extract_evenv4hi): Ditto.
27180         (vec_extract_oddv4hi): Ditto.
27181         (vec_extract_evenv2si): Ditto.
27182         (vec_extract_oddv2si): Ditto.
27183         (vec_extract_evenv2sf): Ditto.
27184         (vec_extract_oddv2sf): Ditto.
27185         (vec_pack_trunc_v4hi: Ditto.
27186         (vec_pack_trunc_v2si): Ditto.
27187         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
27188         (vec_interleave_highv8qi): Ditto.
27189         (mix1_r): Ditto.
27190         (vec_extract_oddv8qi): Ditto.
27191         (vec_interleave_lowv4hi): Ditto.
27192         (vec_interleave_highv4hi): Ditto.
27193         (vec_interleave_lowv2si): Ditto.
27194         (vec_interleave_highv2si): Ditto.
27195
27196 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27197
27198         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
27199         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
27200         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
27201         (pa_c_mode_for_suffix): New.
27202         (TARGET_EXPAND_BUILTIN): Define.
27203         (TARGET_C_MODE_FOR_SUFFIX): Define.
27204         (pa_builtins): Define.
27205         (pa_init_builtins): Register __float128 type and init new support
27206         builtins.
27207         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
27208         * config/pa/quadlib.c (_U_Qfcopysign): New.
27209
27210 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
27211
27212         PR middle-end/46894
27213         * explow.c (allocate_dynamic_stack_space): Do not assume more than
27214         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
27215         are defined.
27216
27217 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27218
27219         PR tree-optimization/47179
27220         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
27221         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
27222
27223 2011-01-18  Richard Guenther  <rguenther@suse.de>
27224
27225         PR rtl-optimization/47216
27226         * emit-rtl.c: Include tree-flow.h.
27227         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
27228         of replicating it with different semantics.
27229         * Makefile.in (emit-rtl.o): Adjust.
27230
27231 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27232
27233         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
27234         (cortex_a9_dp): Handle neon types correctly.
27235
27236 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
27237
27238         PR rtl-optimization/47299
27239         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
27240         subtarget.  Use normal multiplication if both operands are constants.
27241         * expmed.c (expand_widening_mult): Don't try to optimize constant
27242         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
27243         before using it.
27244
27245 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27246
27247         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
27248         spacing after 'e.g.', typos, comma, hyphenation.
27249
27250 2011-01-17  Richard Henderson  <rth@redhat.com>
27251
27252         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
27253         (rx_restricted_mem_operand): New.
27254         (rx_shift_operand): Use register_operand.
27255         (rx_source_operand, rx_compare_operand): Likewise.
27256         * config/rx/rx.md (addsi3_flags): New expander.
27257         (adddi3): Rewrite as expander.
27258         (adc_internal, *adc_flags, adddi3_internal): New patterns.
27259         (subsi3_flags): New expander.
27260         (subdi3): Rewrite as expander.
27261         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
27262
27263         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
27264         (rx_init_builtins): Remove sat builtin.
27265         (rx_expand_builtin): Likewise.
27266         * config/rx/rx.md (ssaddsi3): New.
27267         (*sat): Rename from sat.  Represent the CC_REG input.
27268
27269         * config/rx/predicates.md (rshift_operator): New.
27270         * config/rx/rx.c (rx_expand_insv): Remove.
27271         * config/rx/rx-protos.h: Update.
27272         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
27273         operand to the canonical position.
27274         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
27275         (*bitclr, *bitclr_in_memory): Similarly.
27276         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
27277         (insv): Retain the zero_extract in the expansion.
27278
27279         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
27280         (bswaphi2, bitinvert, revw): Likewise.
27281
27282         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
27283         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
27284         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
27285         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
27286         (bitset, bitset_in_memory): Likewise.
27287         (bitinvert, bitinvert_in_memory): Likewise.
27288         (bitclr, bitclr_in_memory): Likewise.
27289         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
27290         (rx_strend, rx_cmpstrn): Likewise.
27291         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
27292         (bitop peep2 patterns): Remove.
27293
27294         * config/rx/rx.c (rx_match_ccmode): New.
27295         * config/rx/rx-protos.h: Update.
27296         * config/rx/rx.md (abssi2): Clobber, don't set flags.
27297         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
27298         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
27299         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
27300         (fix_truncsfsi2, floatsisf2): Likewise.
27301         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
27302         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
27303         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
27304         (*subsi3_flags, *xorsi3_flags): New.
27305
27306         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
27307
27308         * config/rx/rx.c (rx_print_operand): Remove workaround for
27309         unsplit comparison operations.
27310
27311         * config/rx/rx.md (movsicc): Split after reload.
27312         (*movsicc): Merge *movsieq and *movsine via match_operator.
27313         (*stcc): New pattern.
27314
27315         * config/rx/rx.c (rx_float_compare_mode): Remove.
27316         * config/rx/rx.h (rx_float_compare_mode): Remove.
27317         * config/rx/rx.md (cstoresi4): Split after reload.
27318         (*sccc): New pattern.
27319
27320         * config/rx/predicates.md (label_ref_operand): New.
27321         (rx_z_comparison_operator): New.
27322         (rx_zs_comparison_operator): New.
27323         (rx_fp_comparison_operator): New.
27324         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
27325         Validate that the flags are set properly for the comparison.
27326         (rx_gen_cond_branch_template): Remove.
27327         (rx_cc_modes_compatible): Remove.
27328         (mode_from_flags): New.
27329         (flags_from_code): Rename from flags_needed_for_conditional.
27330         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
27331         (rx_select_cc_mode): Likewise.
27332         (rx_split_fp_compare): New.
27333         (rx_split_cbranch): New.
27334         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
27335         (*cbranchsi4): Use match_operator and rx_split_cbranch.
27336         (*cbranchsf4): Similarly.
27337         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
27338         match_operator and rx_split_cbranch.
27339         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
27340         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
27341         (*cmpsi): Rename from cmpsi.
27342         (*tstsi): Rename from tstsi.
27343         (*cmpsf): Rename from cmpsf; use CC_Fmode.
27344         (*conditional_branch): Rename from conditional_branch.
27345         (*reveresed_conditional_branch): Remove.
27346         (b<code>): Remove expander.
27347         * config/rx/rx-protos.h: Update.
27348
27349         * config/rx/rx.c (rx_compare_redundant): Remove.
27350         * config/rx/rx.md (cmpsi): Don't use it.
27351         * config/rx/rx-protos.h: Update.
27352
27353         * config/rx/rx-modes.def (CC_F): New mode.
27354         * config/rx/rx.c (rx_select_cc_mode): New.
27355         * config/rx/rx.h (SELECT_CC_MODE): Use it.
27356         * config/rx/rx-protos.h: Update.
27357
27358 2011-01-17  Richard Henderson  <rth@redhat.com>
27359
27360         * except.c (dump_eh_tree): Fix stray ; after for statement.
27361
27362 2011-01-17  Richard Guenther  <rguenther@suse.de>
27363
27364         PR tree-optimization/47313
27365         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
27366         handling before copying the body.  Properly deal with
27367         by-reference result in SSA form.
27368
27369 2011-01-17  Ian Lance Taylor  <iant@google.com>
27370
27371         PR target/47219
27372         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27373         (struct_value_alias_set): Don't define.
27374         (sparc_option_override): Don't set sparc_sr_alias_set and
27375         struct_value_alias_set.
27376         (save_or_restore_regs): Use gen_frame_mem rather than calling
27377         set_mem_alias_set.
27378         (sparc_struct_value_rtx): Likewise.
27379
27380 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27381
27382         PR target/47318
27383         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27384         (_mm_maskstore_pd): Likewise.
27385         (_mm_maskload_ps): Likewise.
27386         (_mm_maskstore_ps): Likewise.
27387         (_mm256_maskload_pd): Change mask to __m256i.
27388         (_mm256_maskstore_pd): Likewise.
27389         (_mm256_maskload_ps): Likewise.
27390         (_mm256_maskstore_ps): Likewise.
27391
27392         * config/i386/i386-builtin-types.def: Updated.
27393         (ix86_expand_special_args_builtin): Likewise.
27394
27395         * config/i386/i386.c (bdesc_special_args): Update
27396         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27397         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27398         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27399         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27400
27401         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27402         Use <avxpermvecmode> on mask register.
27403         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27404
27405 2011-01-17  Olivier Hainque  <hainque@adacore.com>
27406             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27407             Eric Botcazou  <ebotcazou@adacore.com>
27408
27409         PR target/46655
27410         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27411         if <= USHRT_MAX in 32-bit mode.
27412
27413 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27414
27415         * doc/install.texi (Configuration, Specific): Wrap long
27416         lines in examples.  Allow line wrapping in long options
27417         and URLs where beneficial for PDF output.
27418
27419 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
27420
27421         * config/mips/mips.c (mips_classify_symbol): Don't return
27422         SYMBOL_PC_RELATIVE for nonlocal labels.
27423
27424 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
27425
27426         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27427
27428 2011-01-15  Jan Hubicka  <jh@suse.cz>
27429
27430         PR tree-optimization/47276
27431         * ipa.c (function_and_variable_visibility): Do not try to mark alias
27432         declarations as needed.
27433
27434 2011-01-15  Martin Jambor  <mjambor@suse.cz>
27435
27436         * common.opt (fdevirtualize): New flag.
27437         * doc/invoke.texi (Option Summary): Document it.
27438         * opts.c (default_options_table): Add devirtualize flag.
27439         * ipa-prop.c (detect_type_change): Return immediately if
27440         devirtualize flag is not set.
27441         (detect_type_change_ssa): Likewise.
27442         (compute_known_type_jump_func): Likewise.
27443         (ipa_analyze_virtual_call_uses): Likewise.
27444
27445 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27446
27447         PR tree-optimization/45934
27448         PR tree-optimization/46302
27449         * ipa-prop.c (type_change_info): New type.
27450         (stmt_may_be_vtbl_ptr_store): New function.
27451         (check_stmt_for_type_change): Likewise.
27452         (detect_type_change): Likewise.
27453         (detect_type_change_ssa): Likewise.
27454         (compute_complex_assign_jump_func): Check for dynamic type change.
27455         (compute_complex_ancestor_jump_func): Likewise.
27456         (compute_known_type_jump_func): Likewise.
27457         (compute_scalar_jump_functions): Likewise.
27458         (ipa_analyze_virtual_call_uses): Likewise.
27459         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27460
27461 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27462
27463         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27464         * config/i386/i386.opt (msse5): New Alias.
27465
27466 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27467
27468         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27469         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27470         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27471         * config/sparc/sparc.h (CC1_SPEC): Likewise.
27472
27473 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27474
27475         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27476         -mcpu options.
27477         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27478         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27479         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27480         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27481         Likewise.
27482         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27483
27484 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27485
27486         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27487
27488 2011-01-14  Mike Stump  <mikestump@comcast.net>
27489
27490         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27491         * config/fr30/fr30.md: Likweise
27492         (movsi_push): Likewise.
27493         (movsi_pop): Likewise.
27494         (enter_func): Likewise.
27495         * config/moxie/moxie.md (movsi_push): Likewise.
27496         (movsi_pop): Likewise.
27497
27498 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27499
27500         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27501         %{no_archive} %{exact_version}.
27502         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27503         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27504         %{no_archive} %{exact_version}.
27505         * config/mips/openbsd.h (LINK_SPEC): Likewise.
27506         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27507         * config/mips/vxworks.h: Likewise.
27508
27509 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27510
27511         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27512
27513 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27514
27515         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27516         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27517
27518 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27519
27520         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27521         -nodefaultlib.
27522
27523 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27524
27525         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27526         for mcpu not cpu.
27527         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27528         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27529         not cpu.
27530         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27531         Don't handle -shlib.
27532
27533 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27534
27535         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27536         (CC1_SPEC): Don't handle -profile.
27537
27538 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27539
27540         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27541         * config/mips/mips.h (CC1_SPEC): Likewise.
27542
27543 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27544
27545         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27546         * config/mips/mips.h (CC1_SPEC): Likewise.
27547
27548 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27549
27550         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27551         * config/m32r/linux.h (LINK_SPEC): Likewise.
27552         * config/mips/linux.h (LINK_SPEC): Likewise.
27553         * config/mips/linux64.h (LINK_SPEC): Likewise.
27554         * config/sparc/linux.h (LINK_SPEC): Likewise.
27555         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27556         LINK_SPEC): Likewise.
27557         * config/xtensa/linux.h (LINK_SPEC): Likewise.
27558
27559 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27560
27561         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27562         %{version:-v}.
27563         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27564
27565 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27566
27567         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27568         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27569
27570 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27571
27572         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27573
27574 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27575
27576         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27577         supports -Bstatic/-Bdynamic.
27578         * configure: Regenerate.
27579
27580 2011-01-14  Jan Hubicka  <jh@suse.cz>
27581             Jack Howarth  <howarth@bromo.med.uc.edu>
27582
27583         PR target/46037
27584         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27585         when checking debug_info_level. Test write_symbols instead of
27586         debug_hooks->var_location when setting flag_var_tracking_uninit.
27587
27588 2011-01-14  Richard Guenther  <rguenther@suse.de>
27589
27590         PR tree-optimization/47179
27591         * target.def (ref_may_alias_errno): New target hook.
27592         * targhooks.h (default_ref_may_alias_errno): Declare.
27593         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
27594         (default_ref_may_alias_errno): New function.
27595         * target.h (struct ao_ref_s): Declare.
27596         * tree-ssa-alias.c: Include target.h.
27597         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
27598         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
27599         (targhooks.o): Likewise.
27600         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
27601         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
27602
27603 2011-01-14  Richard Guenther  <rguenther@suse.de>
27604
27605         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
27606
27607 2011-01-14  Richard Guenther  <rguenther@suse.de>
27608
27609         PR tree-optimization/47280
27610         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
27611         return CFG changes.
27612         (tree_ssa_forward_propagate_single_use_vars): Deal with
27613         CFG changes from associate_plusminus.
27614
27615 2011-01-14  Richard Guenther  <rguenther@suse.de>
27616
27617         PR middle-end/47281
27618         Revert
27619         2011-01-11  Richard Guenther  <rguenther@suse.de>
27620
27621         PR tree-optimization/46076
27622         * tree-ssa.c (useless_type_conversion_p): Conversions from
27623         unprototyped to empty argument list function types are useless.
27624
27625 2011-01-14  Richard Guenther  <rguenther@suse.de>
27626
27627         PR tree-optimization/47286
27628         * tree-ssa-structalias.c (new_var_info): Register variables are global.
27629
27630 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27631
27632         PR middle-end/46823
27633         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
27634
27635 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
27636
27637         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
27638         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27639         * config/xtensa/xtensa.c (xtensa_libcall_value,
27640         xtensa_function_value_regno_p): New functions.
27641         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27642
27643 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
27644
27645         PR c++/47213
27646         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
27647         PE specific hook.
27648         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
27649         New function prototype.
27650         * config/i386/winnt.c (i386_pe_assemble_visibility):
27651         Warn only if attribute was specified by user.
27652
27653 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
27654
27655         PR target/47251
27656         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27657         floating point.
27658         (floatunsdidf2_fcfidu): Ditto.
27659
27660 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27661
27662         * config/s390/s390.c (print_operand_address): Replace 'error' with
27663         'output_operand_lossage'.
27664         (print_operand): Likewise.
27665
27666 2011-01-13  Jeff Law  <law@redhat.com>
27667
27668         PR rtl-optimization/39077
27669         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27670         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27671         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27672         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27673         * gcse.c (prune_insertions_deletions): New function.
27674         (compute_pre_data): Use it.
27675
27676 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
27677
27678         PR debug/PR46973
27679         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27680         static function.
27681         (prune_unused_types_mark): Use it.
27682
27683 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
27684
27685         PR rtl-optimization/45352
27686         * sel-sched.c: Update copyright years.
27687         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27688         in the advancing loop when we have issued issue_rate insns.
27689
27690 2011-01-12  Richard Henderson  <rth@redhat.com>
27691
27692         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27693         (TARGET_MD_ASM_CLOBBERS): New.
27694
27695         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27696         (TARGET_DELEGITIMIZE_ADDRESS): New.
27697
27698         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27699         (clzsi2, *bsch): New patterns.
27700
27701         * config/mn10300/mn10300.md (INT): New mode iterator.
27702         (*mov<INT>_clr): New pattern, and peep2 to generate it.
27703
27704         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27705         flag_split_wide_types.
27706
27707         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27708         (mn10300_trampoline_init): Rewrite without a template, an immediate
27709         load and a direct branch.
27710         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27711
27712 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
27713
27714         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27715         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27716         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27717         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27718
27719 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
27720
27721         PR debug/47209
27722         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27723         of type.
27724
27725 2011-01-12  Jan Hubicka  <jh@suse.cz>
27726
27727         PR driver/47244
27728         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27729         (PLUGIN_COND_CLOSE): New macro.
27730         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27731
27732 2011-01-12  Richard Guenther  <rguenther@suse.de>
27733
27734         PR lto/47259
27735         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27736         register variables in a MEM_REF.
27737
27738 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
27739
27740         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27741         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27742         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27743         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27744         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27745         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27746         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27747         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27748         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27749         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27750         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27751         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27752         * config/gnu-user.h: New.  Copied from linux.h.
27753         (LINUX_TARGET_STARTFILE_SPEC): Rename to
27754         GNU_USER_TARGET_STARTFILE_SPEC.
27755         (LINUX_TARGET_ENDFILE_SPEC): Rename to
27756         GNU_USER_TARGET_ENDFILE_SPEC.
27757         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27758         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27759         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27760         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27761         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27762         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27763         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27764         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27765         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27766         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27767         * config/arm/linux-eabi.h (CC1_SPEC): Use
27768         GNU_USER_TARGET_CC1_SPEC.
27769         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27770         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27771         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27772         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27773         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27774         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27775         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27776         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27777
27778 2011-01-12  Richard Guenther  <rguenther@suse.de>
27779
27780         PR other/46946
27781         * doc/invoke.texi (ffast-math): Document it is turned on
27782         with -Ofast.
27783
27784 2011-01-12  Jan Hubicka  <jh@suse.cz>
27785
27786         PR tree-optimization/47233
27787         * opts.c (common_handle_option): Disable ipa-reference with profile
27788         feedback.
27789
27790 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27791
27792         * c-parser.c (c_parser_objc_at_property_declaration): Improved
27793         error message.
27794
27795 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27796
27797         * c-parser.c (c_lex_one_token): Updated and reindented some
27798         comments.  No changes in code.
27799
27800 2011-01-11  Ian Lance Taylor  <iant@google.com>
27801
27802         * godump.c (go_output_var): Don't output the variable if there is
27803         already a type with the same name.
27804
27805 2011-01-11  Ian Lance Taylor  <iant@google.com>
27806
27807         * godump.c (go_format_type): Don't generate float80.
27808
27809 2011-01-11  Richard Henderson  <rth@redhat.com>
27810
27811         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27812         declaration.  Rewrite for both speed and size.
27813         (mn10300_address_cost_1): Remove.
27814         (mn10300_register_move_cost): New.
27815         (mn10300_memory_move_cost): New.
27816         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
27817         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
27818         extensions, shifts, BSWAP, CLZ.
27819         (mn10300_wide_const_load_uses_clr): Remove.
27820         (TARGET_REGISTER_MOVE_COST): New.
27821         (TARGET_MEMORY_MOVE_COST): New.
27822         * config/mn10300/mn10300-protos.h: Update.
27823         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27824
27825         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27826         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27827         * config/mn10300/mn10300-protos.h: Update.
27828         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27829         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27830         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27831         (*test_int_bitfield, *test_byte_bitfield): Remove.
27832         (*bit_test, *subreg_bit_test): Remove.
27833         * config/mn10300/predicates.md (const_8bit_operand): Remove.
27834
27835         * config/mn10300/constraints.md ("c"): Rename from "A".
27836         ("A", "D"): New constraint letters.
27837         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27838         (fmssf4, fnmasf4, fnmssf4): Likewise.
27839
27840         * config/mn10300/mn10300.md (isa): New attribute.
27841         (enabled): New attribute.
27842
27843         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
27844         (abssf2, negsf2): Define only for hardware fp.
27845         (sqrtsf2): Reformat.
27846         (addsf3, subsf3, mulsf3): Merge expander and insn.
27847
27848         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
27849         (DEBUGGER_AUTO_OFFSET): Remove.
27850         (DEBUGGER_ARG_OFFSET): Remove.
27851
27852         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
27853         Emit register stores with the same offsets as the hardware.
27854         (mn10300_store_multiple_operation): Don't check that the register
27855         save offsets are monotonic.
27856         * config/mn10300/mn10300-protos.h: Update.
27857
27858         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
27859
27860         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
27861         in terms of the value on the stack, not the MDR register.
27862
27863 2011-01-11  Jan Hubicka  <jh@suse.cz>
27864
27865         PR lto/45721
27866         PR lto/45375
27867         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
27868         (symbol_alias_set_destroy, symbol_alias_set_contains,
27869         propagate_aliases_backward): Declare.
27870         * lto-streamer-out.c (struct sets): New sturcture.
27871         (trivally_defined_alias): New function.
27872         (output_alias_pair_p): Rewrite.
27873         (output_unreferenced_globals): Fix output of alias pairs.
27874         (produce_symtab): Likewise.
27875         * ipa.c (function_and_variable_visibility): Set weak alias destination
27876         as needed in lto.
27877         * varasm.c (symbol_alias_set_t): Remove.
27878         (symbol_alias_set_destroy): Export.
27879         (propagate_aliases_forward, propagate_aliases_backward): New functions
27880         based on ...
27881         (compute_visible_aliases): ... this one; remove.
27882         (trivially_visible_alias): New
27883         (trivially_defined_alias): New.
27884         (remove_unreachable_alias_pairs): Rewrite.
27885         (finish_aliases_1): Reorganize code checking if alias is defined.
27886         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
27887         in LTO mode.
27888
27889 2011-01-11  Richard Guenther  <rguenther@suse.de>
27890
27891         PR tree-optimization/46076
27892         * tree-ssa.c (useless_type_conversion_p): Conversions from
27893         unprototyped to empty argument list function types are useless.
27894
27895 2011-01-11  Richard Guenther  <rguenther@suse.de>
27896
27897         PR middle-end/45235
27898         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
27899         volatile MEMs as MEM_READONLY_P.
27900
27901 2011-01-11  Richard Guenther  <rguenther@suse.de>
27902
27903         PR tree-optimization/47239
27904         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
27905
27906 2011-01-11  Jeff Law  <law@redhat.com>
27907
27908         PR tree-optimization/47086
27909         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
27910         IVs from statements that might throw.
27911
27912 2011-01-10  Jan Hubicka  <jh@suse.cz>
27913
27914         PR lto/45375
27915         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
27916
27917 2011-01-10  Jan Hubicka  <jh@suse.cz>
27918
27919         PR lto/45375
27920         * profile.c (read_profile_edge_counts): Ignore profile inconistency
27921         when correcting profile.
27922
27923 2011-01-10  Jan Hubicka  <jh@suse.cz>
27924
27925         PR lto/46083
27926         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
27927         DECL_FINI_PRIORITY.
27928         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
27929         Restore DECL_FINI_PRIORITY.
27930
27931 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27932
27933         * doc/gimple.texi: Fix quoting of multi-word return values in
27934         @deftypefn statements.  Ensure presence of return value.  Wrap
27935         overlong @deftypefn lines.
27936         (is_gimple_operand, is_gimple_min_invariant_address): Remove
27937         descriptions of removed functions.
27938         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
27939         of multi-word return value in @deftypefn statement.
27940
27941 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27942
27943         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
27944         (Conditional Expressions, Logical Operators)
27945         (Statement and operand traversals): Do not indent smallexample
27946         code.  Fix duplicate function argument in example.
27947
27948 2011-01-10  Jeff Law  <law@redhat.com>
27949
27950         PR tree-optimization/47141
27951         * ipa-split.c (split_function): Handle case where we are
27952         returning a value and the return block has a virtual operand phi.
27953
27954 2011-01-10  Jan Hubicka  <jh@suse.cz>
27955
27956         PR tree-optimization/47234
27957         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
27958         (pass_feedback_split_functions): Declare.
27959         * passes.c (init_optimization_passes): Add ipa-split as subpass of
27960         tree-profile.
27961         * ipa-split.c (gate_split_functions): Update comments; disable
27962         split-functions for profile_arc_flag and branch_probabilities.
27963         (gate_feedback_split_functions): New function.
27964         (execute_feedback_split_functions): New function.
27965         (pass_feedback_split_functions): New global var.
27966
27967 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
27968
27969         PR lto/46760
27970         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
27971         calling gimple_call_set_cannot_inline.
27972
27973 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
27974
27975         * config/darwin-sections.def: Remove unused section.
27976
27977 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
27978
27979         PR c++/47218
27980         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
27981
27982 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
27983
27984         PR objc/47232
27985         * c-parser.c (c_parser_declaration_or_fndef): Improved
27986         error message.
27987
27988 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
27989
27990         * config/i386/winnt.c (i386_pe_start_function): Make sure
27991         to switch back to function's section.
27992
27993 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
27994
27995         PR gcc/46902
27996         PR testsuite/46912
27997         * plugin.c: Move include of dlfcn.h from here...
27998         * system.h: ... to here.
27999
28000 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28001
28002         * doc/cpp.texi (C++ Named Operators): Fix markup for header
28003         file name.
28004         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
28005         two extra empty pages in PDF output.
28006
28007 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
28008
28009         PR objc/47078
28010         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
28011         for error recovery purposes behave as if it was not specified so
28012         that the default type is usd.
28013
28014 2011-01-07  Jan Hubicka  <jh@suse.cz>
28015
28016         PR tree-optmization/46469
28017         * ipa.c (function_and_variable_visibility): Clear needed flags on
28018         nodes with external decls; handle weakrefs merging correctly.
28019
28020 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
28021
28022         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
28023         not false.
28024
28025 2011-01-07  Jan Hubicka  <jh@suse.cz>
28026
28027         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
28028         and no longer claim that gold is required for linker plugin.
28029         * configure: Regenerate.
28030         * gcc.c (PLUGIN_COND): New macro.
28031         (LINK_COMMAND_SPEC): Use it.
28032         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
28033         * config.in (HAVE_LTO_PLUGIN): New.
28034         * configure.ac (--with-lto-plugin): New parameter; autodetect
28035         HAVE_LTO_PLUGIN.
28036
28037 2011-01-07  Jan Hubicka  <jh@suse.cz>
28038
28039         PR tree-optimization/46367
28040         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
28041         when we can update original.
28042         (cgraph_mark_inline_edge): Sanity check.
28043         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
28044
28045 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28046
28047         * config/spu/spu.h (ASM_COMMENT_START): Define.
28048
28049 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
28050
28051         PR driver/42445
28052         * gcc.c (%>S): New.
28053         (SWITCH_KEEP_FOR_GCC): Likewise.
28054         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
28055         (do_spec_1): Handle "%>".
28056
28057         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
28058
28059 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
28060
28061         PR target/47201
28062         * config/i386/i386.c (ix86_delegitimize_address): If
28063         simplify_gen_subreg fails, return orig_x.
28064
28065         PR bootstrap/47187
28066         * value-prof.c (gimple_stringop_fixed_value): Handle
28067         lhs of the call properly.
28068
28069 2011-01-07  Jan Hubicka  <jh@suse.cz>
28070
28071         PR lto/45375
28072         * lto-opt.c (lto_reissue_options): Set flag_shlib.
28073
28074 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28075
28076         * target.def (function_switched_text_sections): New hook.
28077         * doc/tm.texi: Regenerated.
28078         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28079         * final.c (default_function_switched_text_sections): New.
28080         (final_scan_insn): Call function_switched_text_sections when a
28081         mid-function section change occurs.
28082         * output.h (default_function_switched_text_sections): Declare.
28083         * config/darwin-protos.h (darwin_function_switched_text_sections):
28084         Likewise.
28085         * config/darwin.c (darwin_function_switched_text_sections): New.
28086         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28087
28088 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28089
28090         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
28091         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
28092         the secondary code fragment when outputting for DWARF == 2.
28093
28094 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
28095
28096         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28097         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28098         Remove.
28099         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28100         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28101
28102 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28103
28104         PR debug/46704
28105         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28106         when it is not empty.
28107
28108 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
28109
28110         Bobcat Enablement
28111         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28112         (case ${target}): Add btver1.
28113         * config/i386/driver-i386.c (host_detect_local_cpu): Let
28114         -march=native recognize btver1 processors.
28115         * config/i386/i386-c.c (ix86_target_macros_internal): Add
28116         btver1 def_and_undef
28117         * config/i386/i386.c (struct processor_costs btver1_cost): New
28118         btver1 cost table.
28119         (m_BTVER1): New definition.
28120         (m_AMD_MULTIPLE): Includes m_BTVER1.
28121         (initial_ix86_tune_features): Add btver1 tune.
28122         (processor_target_table): Add btver1 entry.
28123         (static const char *const cpu_names): Add btver1 entry.
28124         (software_prefetching_beneficial_p): Add btver1.
28125         (ix86_option_override_internal): Add btver1 instruction sets.
28126         (ix86_issue_rate): Add btver1.
28127         (ix86_adjust_cost): Add btver1.
28128         * config/i386/i386.h (TARGET_BTVER1): New definition.
28129         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28130         (enum processor_type): Add PROCESSOR_BTVER1.
28131         * config/i386/i386.md (define_attr "cpu"): Add btver1.
28132
28133 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28134
28135         PR target/43309
28136         * config/i386/i386.c (legitimize_tls_address)
28137         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28138         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28139         (tls_initial_exec_64_sun): New pattern.
28140
28141 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
28142
28143         * doc/invoke.texi (Overall Options): Improve wording and markup
28144         of the description of -wrapper.
28145
28146 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
28147
28148         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
28149         rdynamic, threads): New Driver options.
28150
28151 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28152
28153         PR target/38118
28154         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
28155         if coming from .tdata.
28156         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
28157
28158 2011-01-06  Jan Hubicka  <jh@suse.cz>
28159
28160         PR lto/47188
28161         * collect2.c (main): Do not enable LTOmode when plugin is active.
28162
28163 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28164
28165         PR other/45915
28166         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
28167         --version output if supported.
28168         * configure: Regenerate.
28169
28170 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
28171
28172         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
28173         Driver options.
28174
28175 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
28176
28177         PR c/47150
28178         * c-convert.c (convert): When converting a complex expression
28179         other than COMPLEX_EXPR to a different complex type, ensure
28180         c_save_expr is called instead of save_expr, unless in_late_binary_op.
28181         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
28182         when converting COMPLEX_TYPE.
28183
28184 2011-01-06  Ira Rosen  <irar@il.ibm.com>
28185
28186         PR tree-optimization/47139
28187         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
28188         only the last reduction value is used outside the loop.  Update
28189         documentation.
28190
28191 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
28192
28193         * config/rtems.opt: New.
28194         * config.gcc (*-*-rtems*): Use rtems.opt.
28195
28196 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
28197
28198         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
28199         processors do not support 3DNow instructions.
28200
28201 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28202
28203         * config/spu/spu.c (spu_option_override): Set parameter
28204         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
28205
28206 2011-01-05  Jan Hubicka  <jh@suse.cz>
28207
28208         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
28209         at the command line.
28210
28211 2011-01-05  Martin Jambor  <mjambor@suse.cz>
28212
28213         PR lto/47162
28214         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
28215         deltas on streamed outgoing edges.
28216         (output_node_opt_summary): Output info for outgoing edges only when
28217         the node is in new parameter set.
28218         (output_cgraph_opt_summary): New parameter set, passed to the two
28219         aforementioned functions.  Update its forward declaration and its
28220         callee too.
28221
28222 2011-01-05  Tom Tromey  <tromey@redhat.com>
28223
28224         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
28225         operator to c_finish_omp_atomic.
28226         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
28227         (build_unary_op): Update.
28228         (build_modify_expr): Update.
28229         (build_asm_expr): Update.
28230
28231 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28232
28233         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
28234         newly inserted insns.
28235         (pad_bb): Likewise.
28236         (spu_emit_branch_hint): Likewise.
28237         (insert_hbrp_for_ilb_runout): Likewise.
28238         (spu_machine_dependent_reorg): Call df_finish_pass after
28239         schedule_insns returns.
28240
28241 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28242
28243         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
28244
28245 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
28246
28247         PR tree-optimization/47005
28248         * tree-sra.c (struct access): Add 'non_addressable' bit.
28249         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
28250         (decide_one_param_reduction): Return 0 if the parameter is passed by
28251         reference and one of the accesses in the group is non_addressable.
28252
28253 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28254
28255         PR tree-optimization/47056
28256         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
28257         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
28258         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
28259
28260 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28261
28262         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
28263         initializer.  Skip view conversions from aggregate types.
28264
28265 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
28266
28267         PR bootstrap/47055
28268         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
28269
28270 2011-01-04  Philipp Thomas  <pth@suse.de>
28271
28272         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
28273         obvious typo.
28274
28275 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28276
28277         * function.c (thread_prologue_and_epilogue_insns): Do not crash
28278         on empty epilogue sequences.
28279
28280 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
28281
28282         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
28283         non-static): New Driver options.
28284
28285 2011-01-04  Jie Zhang  <jie@codesourcery.com>
28286
28287         PR driver/47137
28288         * gcc.c (default_compilers[]): Set combinable field to 0
28289         for all assembly languages.
28290
28291 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
28292
28293         * config/mips/loongson3a.md: New file.
28294         * config/mips/mips.md: Include loongson3a.md.
28295         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
28296         TUNE_LOONGSON_3A.
28297
28298 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
28299
28300         PR middle-end/47017
28301         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
28302         instead of convert_memory_address_addr_space on the base expression.
28303
28304 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28305
28306         * config/spu/spu.c (spu_option_override): Update error text
28307         for bad -march= / -mtune= values.
28308
28309 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28310
28311         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
28312         if branch-hint optimization will be performed.
28313
28314 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
28315
28316         PR tree-optimization/47148
28317         * ipa-split.c (split_function): Convert arguments to
28318         DECL_ARG_TYPE if possible.
28319
28320         PR tree-optimization/47155
28321         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
28322         when computing uns.
28323
28324         PR rtl-optimization/47157
28325         * combine.c (try_combine): If undobuf.other_insn becomes
28326         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
28327         and set *new_direct_jump_p too.
28328
28329 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
28330
28331         PR tree-optimization/47021
28332         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
28333
28334 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
28335
28336         * gcc.c (process_command): Update copyright notice dates.
28337         * gcov.c (print_version): Likewise.
28338         * gcov-dump.c (print_version): Likewise.
28339         * mips-tfile.c (main): Likewise.
28340         * mips-tdump.c (main): Likewise.
28341
28342 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28343
28344         PR tree-optimization/46801
28345         * tree-sra.c (type_internals_preclude_sra_p): Check whether
28346         aggregate fields start at byte boundary instead of the bit-field flag.
28347
28348 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
28349
28350         PR driver/47137
28351         * gcc.c (main): Revert revision 168407.
28352
28353 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28354
28355         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
28356
28357 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28358
28359         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
28360         vector optab to expand vector/scalar shift, update gimple to vector.
28361
28362 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28363
28364         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
28365         a thunk.
28366
28367 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28368
28369         PR tree-optimization/46984
28370         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28371         HOST_WIDE_INT.
28372         (cgraph_create_indirect_edge): Fixed line length.
28373         (cgraph_indirect_call_info): Declare.
28374         (cgraph_make_edge_direct) Update declaration.
28375         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28376         (cgraph_create_indirect_edge): Use it.
28377         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
28378         callees.
28379         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28380         the new thunk_delta representation.
28381         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28382         HOST_WIDE_INT.
28383         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28384         (ipa_read_indirect_edge_info): Likewise.
28385         * lto-cgraph.c (output_edge_opt_summary): New function.
28386         (output_node_opt_summary): Call it on all outgoing edges.
28387         (input_edge_opt_summary): New function.
28388         (input_node_opt_summary): Call it on all outgoing edges.
28389
28390 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
28391
28392         PR driver/47137
28393         * gcc.c (main): Don't check have_o when settting combine_inputs.
28394
28395 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
28396
28397         * regrename.c: Add general comment describing the pass.
28398         (struct du_head): Remove 'length' field.
28399         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28400         (regrename_optimize): Do not sort chains.  Rework comments, add others.
28401         Force renaming to the preferred class (if any) in the first pass and do
28402         not consider registers that belong to it in the second pass.
28403         (create_new_chain): Do not set 'length' field.
28404         (scan_rtx_reg): Likewise.
28405
28406 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
28407
28408         PR tree-optimization/47140
28409         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28410         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28411         to bit_value_binop.
28412
28413         PR rtl-optimization/47028
28414         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28415         parm_birth_insn instead of at the beginning of first bb.
28416
28417 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
28418
28419         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28420         Remove the word "see" before "@pxref".
28421         * doc/rtl.texi: Remove the word "see" before "@pxref".
28422
28423 2011-01-01  Jan Hubicka  <jh@suse.cz>
28424
28425         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28426         memory.
28427
28428 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
28429
28430         PR target/38662
28431         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28432
28433 \f
28434 Copyright (C) 2011 Free Software Foundation, Inc.
28435
28436 Copying and distribution of this file, with or without modification,
28437 are permitted in any medium without royalty provided the copyright
28438 notice and this notice are preserved.