name-lookup.c (lookup_arg_dependent): Use conditional timevars.
[official-gcc.git] / gcc / ChangeLog
blob384245996248fde5317544b04e223edf940336d6
1 2011-09-14  Tom de Vries  <tom@codesourcery.com>
3         PR middle-end/50251
4         * explow.c (emit_stack_restore): Set crtl->need_drap if
5         stack_restore is emitted.
7 2011-09-14  Julian Brown  <julian@codesourcery.com>
9         * config/arm/arm.c (arm_override_options): Add unaligned_access
10         support.
11         (arm_file_start): Emit attribute for unaligned access as
12         appropriate.
13         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
14         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
15         (insv, extzv): Add unaligned-access support.
16         (extv): Change to expander. Likewise.
17         (extzv_t1, extv_regsi): Add helpers.
18         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
19         (unaligned_storesi, unaligned_storehi): New.
20         (*extv_reg): New (previous extv implementation).
21         * config/arm/arm.opt (munaligned_access): Add option.
22         * config/arm/constraints.md (Uw): New constraint.
23         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
24         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
25         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
26         volatile accesses when -fstrict-volatile-bitfields is in effect.
27         (extract_bit_field_1): Likewise.
29 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
31         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
32         a scalar integer before applying integer-only optimisations to
33         inner arithmetic.
35 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
37         * config/mips/mips.c (mips_expand_epilogue): Generate a
38         simple_return only if the return address is in r31.
40 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
42         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
43         NULL for a jump that is a cc0 insn, pick the previous insn for
44         move_before.
46 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
48         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
49         throughout file.
51 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
53         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
54         throughout file.
56 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
58         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
59         symbol_ref throughout file.
61 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
63         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
64         throughout file.
66 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
68         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
69         throughout file.
71 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
73         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
74         throughout file.
75         * config/arm/neon.md: Likewise.
76         * config/arm/vfp.md: Likewise.
77         * config/arm/thumb2.md: Likewise.
78         * config/arm/cortex-m4.md: Likewise.
80 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
82         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
83         define_insn patterns for combine.
85 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
87         * reorg.c: Always define make_return_insns.
89 2011-09-13  Jan Hubicka  <jh@suse.cz>
91         PR other/49533
92         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
94 2011-09-13  Jan Hubicka  <jh@suse.cz>
96         PR other/49533
97         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
99 2011-09-13  Paul Brook  <paul@codesourcery.com>
101         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
102         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
103         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
104         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
105         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
106         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
107         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
108         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
109         enabling unwind tables.
110         (c6x_debug_unwind_info): New function.
111         (TARGET_ARM_EABI_UNWINDER): Define.
112         (TARGET_DEBUG_UNWIND_INFO): Define.
113         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
114         (TARGET_EXTRA_CFI_SECTION): Remove.
115         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
116         * ginclude/unwind-arm-common.h: New file.
118 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
119         
120         PR target/50358
121         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
122         * config/avr/avr.md: (extend_s): New code attribute.
123         (mul_r_d): New code attribute.
124         (*maddqihi4, *umaddqihi4): New insns.
125         (*msubqihi4, *umsubqihi4): New insns.
126         (*usmaddqihi4, *sumaddqihi4): New insns.
127         (*usmsubqihi4, *susubdqihi4): New insns.
128         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
129         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
130         (*umsubqihi4.uconst.ashift): New insn-and-split.
131         (*msubqihi4.sconst.ashift): New insn-and-split.
132         (*sumaddqihi4.uconst): New insn-and-split.
133         (*sumsubqihi4.uconst): New insn-and-split.
134         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
135         PLUS:HI and MINUS:HI.
137 2011-09-13  Revital Eres  <revital.eres@linaro.org>
139         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
140         (optimize_sc): Adjust call to remove_node_from_ps.
141         (sms_schedule): Add print info.
143 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
145         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
146         flags specially.
148 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
150         PR bootstrap/50010
151         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
152         NOTE_INSN_CFI notes, with the exception of
153         NOTE_INSN_SWITCH_TEXT_SECTIONS.
155 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
156             Richard Sandiford  <rdsandiford@googlemail.com>
158         * config/mips/mips.c (mips_epilogue): New structure.
159         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
160         restoring registers.
161         (mips_epilogue_emit_cfa_restores): New function.
162         (mips_epilogue_set_cfa): Likewise.
163         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
164         the current CFA register from the stack, redefine the CFA in terms
165         of the stack pointer.
166         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
167         to the epilogue instructions.
169 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
171         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
172         argument.
173         (mips16e_build_save_restore): Update accordingly.
175 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
177         PR rtl-optimization/50212
178         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
179         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
181         PR debug/50299
182         * calls.c (load_register_parameters): Use use_reg_mode instead
183         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
184         entry.
185         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
186         for stack CALL_INSN_FUNCTION_USAGE uses.
187         * expr.h (use_reg_mode): New prototype.
188         (use_reg): Changed into inline around use_reg_mode.
189         * expr.c (use_reg): Renamed to...
190         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
191         mode to that mode instead of VOIDmode.
192         * var-tracking.c (prepare_call_arguments): Don't track parameters
193         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
194         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
195         EXPR_LIST mode.
197 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
199         PR target/43746
200         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
201         (progmem_section): New Variable.
202         (avr_asm_init_sections): Initialize it.
203         (TARGET_ASM_SELECT_SECTION): Define to...
204         (avr_asm_select_section): ... this new Function.
205         (avr_replace_prefix): New Function.
206         (avr_asm_function_rodata_section): Use it.
207         (avr_insert_attributes): Don't add section attribute for PROGMEM.
208         (avr_section_type_flags): Use avr_progmem_p instead of section
209         name to detect if object is in PROGMEM.
210         (avr_asm_named_section): Set section name prefix for objects in
211         PROGMEM.
213 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
215         PR bootstrap/50352
216         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
217         sprintf format string.
219 2011-09-12  Richard Guenther  <rguenther@suse.de>
221         PR tree-optimization/50343
222         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
223         that the reduction is over an SSA name before checking its
224         definition.
226 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
228         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
229         throughout file.
231 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
233         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
234         throughout file.
235         * config/mips/sb1.md: Likewise.
236         * config/mips/predicates.md: Replace (match_test "!...")
237         with (not (match_test "..."))
238         * config/mips/constraints.md: Likewise.
240 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
242         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
243         * config/arm/arm-tables.opt: Regenerate.
244         * config/arm/arm-tune.md: Regenerate.
245         * config/arm/arm.c (arm_file_start): Output .arch directive when
246         user passes -mcpu=generic-*.
247         (arm_issue_rate): Add genericv7a support.
248         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
249         (ASM_CPU_SPEC): New define.
250         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
251         * config/arm/semi.h (ASM_SPEC): Likewise.
252         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
253         and -mtune=generic-*.
255 2011-09-09  Richard Guenther  <rguenther@suse.de>
257         PR tree-optimization/50328
258         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
259         constant or default-def operand.
261 2011-09-09  Richard Guenther  <rguenther@suse.de>
263         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
264         last statement.
266 2011-09-09  Richard Guenther  <rguenther@suse.de>
268         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
269         instead of a statement.
270         * gimple-fold.c (fold_stmt_inplace): Likewise.
271         * sese.c (graphite_copy_stmts_from_block): Adjust.
272         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
273         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
274         fold_stmt.
275         (forward_propagate_addr_into_variable_array_index): Likewise.
276         (forward_propagate_addr_expr_1): adjust.
277         (associate_plusminus): Likewise.
278         (ssa_forward_propagate_and_combine): Likewise.
279         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
280         (execute_cse_reciprocals): Likewise.
281         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
283 2011-09-09  Nick Clifton  <nickc@redhat.com>
285         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
286         Return a positive value to indicate that the bits at the
287         bottom of the register should be cleared.
289 2011-09-09  Richard Guenther  <rguenther@suse.de>
291         * tree-ssa-operands.c (swap_tree_operands): Always adjust
292         existing operand positions.
294 2011-09-09  Richard Guenther  <rguenther@suse.de>
296         PR middle-end/50333
297         * tree-data-ref.c (split_constant_offset): Do not try to handle
298         ternary ops.
300 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
302         PR tree-optimization/50318
303         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
304         typo in use of mult_rhs1 and mult_rhs2.
306 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
308         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
309         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
311 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
313         * config/arm/arm.md (push_multi): Emit predicates.
314         (push_fp_multi): Likewise.
315         * config/arm/arm.c (vfp_output_fstmd): Likewise.
317 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
319         PR c++/33255 - Support -Wunused-local-typedefs warning
320         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
321         (pushdecl): Use the new record_locally_defined_typedef.
322         (store_parm_decls): Allocate cfun->language.
323         (finish_function): Use the new maybe_warn_unused_local_typedefs,
324         and free cfun->language.
325         (c_push_function_context): Allocate cfun->language here only if needed.
326         (c_pop_function_context): Likewise, mark cfun->language
327         for collection only when it should be done.
328         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
329         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
330         maybe_record_local_typedef_use.
331         * doc/invoke.texi: Update documentation for
332         -Wunused-local-typedefs.
334 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
336         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
337         (ix86_avoid_lea_for_add): Likewise.
338         (ix86_avoid_lea_for_addr): Likewise.
339         (ix86_split_lea_for_addr): Likewise.
341         * config/i386/i386.c (LEA_MAX_STALL): New.
342         (increase_distance): Likewise.
343         (insn_defines_reg): Likewise.
344         (insn_uses_reg_mem): Likewise.
345         (distance_non_agu_define_in_bb): Likewise.
346         (distance_agu_use_in_bb): Likewise.
347         (ix86_lea_outperforms): Likewise.
348         (ix86_ok_to_clobber_flags): Likewise.
349         (ix86_avoid_lea_for_add): Likewise.
350         (ix86_avoid_lea_for_addr): Likewise.
351         (ix86_split_lea_for_addr): Likewise.
352         (distance_non_agu_define): Search in pred BBs added.
353         (distance_agu_use): Search in succ BBs added.
354         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
355         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
356         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
358         * config/i386/i386.md: Split added to transform non destructive
359         add into move and add.
360         (lea_1): transformed into insn_and_split to avoid AGU stalls.
361         (lea<mode>_2): Likewise.
363 2011-09-08  Martin Jambor  <mjambor@suse.cz>
365         PR tree-optimization/50287
366         * ipa-split.c (split_function): Do not create SSA names for
367         non-gimple-registers.
369 2011-09-08  Richard Guenther  <rguenther@suse.de>
371         PR tree-optimization/19831
372         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
373         skip builtins with vdefs that do not really store something.
374         (propagate_necessity): For calls to free that we can associate
375         with an allocation function do not mark the freed pointer
376         definition necessary.
377         (eliminate_unnecessary_stmts): Remove a call to free if
378         the associated call to an allocation function is not necessary.
380 2011-09-08  Richard Guenther  <rguenther@suse.de>
382         PR tree-optimization/19831
383         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
384         allocation functions as necessary.
386 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
388         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
389         cut from ...
390         (darwin_default_min_version): Amended to provide defaults
391         for the cross directory case.
392         (darwin_driver_init): call darwin_default_min_version unconditionally.
393         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
394         * config/darwin9.h: Likewise.
395         * config/darwin10.h: Likewise.
396         * config/rs6000/darwin7.h: Likewise.
398 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
400         PR target/50310
401         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
402         code early if TARGET_AVX.
403         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
405 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
407         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
408         duplicates.
410         PR target/50310
411         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
412         "mode" attribute computation.
414 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
416         * regrename.c (struct du_head): Make nregs signed.
417         (closed_chains): Remove.
418         (create_new_chain): Return the new chain.
419         (chain_from_id): New static function.
420         (dump_def_use_chain): Change argument to be an int, indicating
421         the first ID to print.  All callers changed.
422         (merge_overlapping_regs): Use chain_from_id.  Assert that
423         chains don't conflict with themselves.
424         (rename_chains): Take no argument.  Iterate over id_to_chain
425         rather to find chains to rename.  Clear tick before the main loop.
426         (struct incoming_reg_info): New struct.
427         (struct bb_rename_info): New struct.
428         (init_rename_info, set_incoming_from_chain, merge_chains): New
429         static functions.
430         (regrename_analyze): New static function, broken out of
431         regrename_optimize.  Record and make use of open chain information
432         at basic block boundaries, and merge chains where possible.
433         (scan_rtx_reg): Make this_nregs signed.  Don't update
434         closed_chains.
435         (build_def_use): Return a bool to indicate success.  All callers
436         changed.  Don't initialize global data here.
437         (regrename_optimize): Move most code out of here into
438         regrename_analyze.
439         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
440         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
441         static inline functions.
442         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
444         * bb-reorder.c (insert_section_boundary_note): Don't check
445         optimize_function_for_speed_p.
446         (gate_handle_partition_blocks): Do it here instead.
447         (gate_handle_reorder_blocks): Move preliminary checks here ...
448         (rest_of_handle_reorder_blocks): ... from here.
450 2011-09-07  Martin Jambor  <mjambor@suse.cz>
452         PR middle-end/50301
453         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
454         function index bounds.
455         (perhaps_add_new_callers): Likewise.
457 2011-09-07  Martin Jambor  <mjambor@suse.cz>
459         PR tree-optimization/49911
460         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
461         enumerations to the corresponding plain integer type.
463 2011-09-07  Richard Guenther  <rguenther@suse.de>
465         PR tree-optimization/50319
466         * tree-if-conv.c (set_bb_predicate): Assert we only set
467         canonical predicates.
468         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
469         around canonical predicates.
470         (predicate_bbs): Do not re-gimplify already canonical
471         predicates.  Properly unshare them though.
472         (find_phi_replacement_condition): Simplify.
474 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
476         PR target/49030
477         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
478         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
479         reusing the old code from get_arm_condition_code.  Return ARM_NV
480         for invalid comparison codes.
481         (get_arm_condition_code): Redefine in terms of
482         maybe_get_arm_condition_code.
483         * config/arm/predicates.md (arm_comparison_operator): Use
484         maybe_get_arm_condition_code.
486 2011-09-07  Richard Guenther  <rguenther@suse.de>
488         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
489         Canonicalize negated predicates by swapping edges.
490         (forward_propagate_into_cond): Likewise.
492 2011-09-07  Richard Guenther  <rguenther@suse.de>
494         PR tree-optimization/50213
495         * tree-flow.h (simple_iv_increment_p): Declare.
496         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
497         POINTER_PLUS_EXPR.
498         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
499         not propagate simple IV counter increments.
501 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
502             Iain Sandoe  <iains@gcc.gnu.org>
504         * config/rs6000/rs6000.c (compute_save_world_info): Test
505         cfun->has_nonlocal_label to determine if the out-of-line save
506         world call may be used.
508 2011-09-07  Nick Clifton  <nickc@redhat.com>
510         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
511         label on the parallel part of the insn.
513 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
515         PR debug/50191
516         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
517         avoid_constant_pool_reference first instead of last.
519 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
521         * doc/configfiles.texi (Configuration Files): Update documentation
522         about tm_p.h and remove FIXME comment.
524 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
526         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
527         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
529 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
531         * config/darwin10.h Remove duplicate LIB_SPEC.
533 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
535         PR middle-end/44382
536         * target.def (reassociation_width): New hook.
538         * doc/tm.texi.in (reassociation_width): Likewise.
540         * doc/tm.texi (reassociation_width): Likewise.
542         * doc/invoke.texi (tree-reassoc-width): New param documented.
544         * hooks.h (hook_int_uint_mode_1): New default hook.
546         * hooks.c (hook_int_uint_mode_1): Likewise.
548         * config/i386/i386.h (ix86_tune_indices): Add
549         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
551         (TARGET_REASSOC_INT_TO_PARALLEL): New.
552         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
554         * config/i386/i386.c (initial_ix86_tune_features): Add
555         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
557         (ix86_reassociation_width): New function.
559         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
561         * tree-ssa-reassoc.c (get_required_cycles): New function.
562         (get_reassociation_width): Likewise.
563         (swap_ops_for_binary_stmt): Likewise.
564         (rewrite_expr_tree_parallel): Likewise.
566         (rewrite_expr_tree): Refactored.  Part of code moved into
567         swap_ops_for_binary_stmt.
569         (reassociate_bb): Now checks reassociation width to be used and
570         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
572 2011-09-06  Richard Guenther  <rguenther@suse.de>
574         PR tree-optimization/47025
575         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
576         uses nothing.
577         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
578         BUILT_IN_FREE.
579         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
580         definitely points to.
581         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
582         BUILT_IN_VA_START doesn't let its va_list argument escape.
583         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
584         not make any previous stores necessary.
586 2011-09-06  Martin Jambor  <mjambor@suse.cz>
588         * ipa-inline.h (struct inline_summary): Move versionable flag...
589         * cgraph.h (struct cgraph_local_info): ...here
590         * ipa-cp.c (determine_versionability): Use the new versionable flag.
591         (determine_versionability): Likewise.
592         (ipcp_versionable_function_p): Likewise.
593         (ipcp_generate_summary): Likewise.
594         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
595         versionable flag.
596         (compute_inline_parameters): Do not clear the versionable flag.
597         (inline_read_section): Do not stream the versionable flag.
598         (inline_write_summary): Likewise.
599         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
600         (input_overwrite_node): Likewise.
602 2011-09-06  Richard Guenther  <rguenther@suse.de>
604         PR tree-optimization/48149
605         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
606         (vn_valueize): Move earlier.
607         (valueize_expr): Use vn_valueize.
608         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
609         operands.
610         (simplify_unary_expression): Simplify.
612 2011-09-06  Richard Guenther  <rguenther@suse.de>
614         PR tree-optimization/48317
615         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
616         trailing array.
617         (sizeof_vn_nary_op): New inline function.
618         (vn_nary_op_lookup_pieces): Adjust.
619         (vn_nary_op_insert_pieces): Likewise.
620         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
621         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
622         any number of operands.
623         (vn_nary_length_from_stmt): New function.
624         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
625         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
626         sized temporary.
627         (vn_nary_op_lookup): Likewise.
628         (vn_nary_op_lookup_stmt): Likewise.
629         (vn_nary_op_insert_into): Likewise.
630         (vn_nary_op_insert_stmt): Likewise.
631         (visit_use): Handle CONSTRUCTOR as nary.
632         * tree-ssa-pre.c (phi_translate_1): Adjust.
633         (create_expression_by_pieces): Likewise.
634         (compute_avail): Likewise.
636 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
638          * config/arm/arm.c (arm_preferred_simd_mode): Check
639         TARGET_NEON_VECTORIZE_DOUBLE instead of
640         TARGET_NEON_VECTORIZE_QUAD.
641         (arm_autovectorize_vector_sizes): Likewise.
642         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
643         mask of mvectorize-with-neon-double.  Add RejectNegative.
644         (mvectorize-with-neon-double): New.
646 2011-09-06  Richard Guenther  <rguenther@suse.de>
648         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
650 2011-09-06  Tom de Vries  <tom@codesourcery.com>
652         * recog.c (asm_labels_ok): New function.
653         (check_asm_operands): Use asm_labels_ok.
655 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
657         PR target/49606
658         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
659         (PMODE_INSN): New macro.
660         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
661         (mips_got_load, mips_expand_synci_loop): Likewise.
662         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
663         cprestore patterns.
664         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
665         copygp_mips16 patterns.
666         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
667         and use_cprestore patterns.
668         (mips_override_options): Check for incompatible -mabi and -mlong
669         combinations.
670         * config/mips/mips.md (unspec_got<mode>): Rename to...
671         (unspec_got_<mode>): ...this.
672         (copygp_mips16): Use the Pmode iterator.
673         (potential_cprestore, cprestore, use_cprestore): Likewise.
674         (clear_cache, indirect_jump): Use PMODE_INSN.
675         (indirect_jump<mode>): Rename to...
676         (indirect_jump_<mode>): ...this.
677         (tablejump): Use PMODE_INSN.
678         (tablejump<mode>): Rename to...
679         (tablejump_<mode>): ...this.
680         (exception_receiver): Handle restore_gp_si and restore_gp_di.
681         (restore_gp): Use the Pmode iterator.
682         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
683         PMODE_INSN.
685 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
687         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
688         Fix the type of the BIT_AND_EXPR.
690 2011-09-05  David S. Miller  <davem@davemloft.net>
692         * config.host: Add driver-sparc.o and sparc/x-sparc on
693         native sparc*-*-linux* builds.
694         * config/sparc/driver-sparc.c: Correct Linux strings.
695         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
696         * config/sparc/linux64.h: Likewise.
697         * doc/invoke.texi: Document that Linux also supports
698         -mcpu=native and -mtune=native on sparc.
700         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
701         PROCESSOR_NIAGARA4): New.
702         * config/sparc/sparc.opt: Handle new processor types.
703         * config/sparc/sparc.md: Add to "cpu" attribute.
704         * config/sparc/sparc.h (TARGET_CPU_niagara3,
705         TARGET_CPU_niagara4): New, treat as niagara2.
706         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
707         * config/sparc/sol2.h: Likewise.
708         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
709         * config/sparc/sparc.c (sparc_option_override): Add
710         niagara3 and niagara4 handling.
711         (sparc32_initialize_trampoline): Likewise.
712         (sparc64_initialize_trampoline): Likewise.
713         (sparc_use_sched_lookahead): Likewise.
714         (sparc_issue_rate): Likewise.
715         (sparc_register_move_cost): Likewise.
716         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
717         and niagara4 as appropriate.
718         * doc/invoke.texi: Document new processor types.
719         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
720         and --with-tune options.
722         * config/sparc/sol2-64.h: Move ...
723         * config/sparc/default-64.h: ... to here.  Update comment.
724         * config.gcc: Update Solaris sparc to use default-64.h, also
725         prefix this header into the list on sparc64-*-linux.
726         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
727         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
728         to MASK_HARD_QUAD.
730 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
732         PR target/50289
733         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
734         that contain global register variable.
736 2011-09-05  Richard Guenther  <rguenther@suse.de>
738         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
740 2011-09-05  Richard Guenther  <rguenther@suse.de>
742         * stor-layout.c (layout_type): Use size_binop for array size
743         calculations.
745 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
747         * config/avr/avr.h (progmem_section): Remove Declaration.
748         * config/avr/avr.c (progmem_section): Make static and rename to
749         progmem_swtable_section.
750         (avr_output_addr_vec_elt): No need to switch sections.
751         (avr_asm_init_sections): Use output_section_asm_op as section
752         callback for progmem_swtable_section.
753         (avr_output_progmem_section_asm_op): Remove Function.
754         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
755         (avr_asm_function_rodata_section): New static Function.
756         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
757         alignment 2**1 for jump tables.
759 2011-09-04  Jan Hubicka  <jh@suse.cz>
761         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
762         parameter is SSA name.
764 2011-09-04  Richard Guenther  <rguenther@suse.de>
766         Revert
767         2011-08-31  Richard Guenther  <rguenther@suse.de>
769         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
770         special-casing.
772 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
774         PR debug/49901
775         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
777 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
778             Ira Rosen  <ira.rosen@linaro.org>
780         PR tree-optimization/50208
781         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
782         argument.  Check that def_stmt is inside the loop.
783         (vect_recog_widen_mult_pattern): Update calls to
784         vect_handle_widen_mult_by_cons.
785         (vect_operation_fits_smaller_type): Check that def_stmt is
786         inside the loop.
788 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
790         * tree-vectorizer.c (vect_print_dump_info): Print line
791         number when dumping to a file.
792         (vectorize_loops): Add new messages to dump file.
794 2011-09-03  Martin Jambor  <mjambor@suse.cz>
796         * ipa-prop.h (ipa_jump_func_t): New typedef.
797         (struct ipa_edge_args): Removed field argument_count, field
798         jump_functions turned into a vector.
799         (ipa_set_cs_argument_count): Removed.
800         (ipa_get_cs_argument_count): Updated to work on vectors.
801         (ipa_get_ith_jump_func): Likewise.
802         * ipa-prop.c (ipa_count_arguments): Removed.
803         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
804         jump functions.  Update caller.
805         (compute_pass_through_member_ptrs): Likewise.
806         (compute_cst_member_ptr_arguments): Likewise.
807         (ipa_compute_jump_functions_for_edge): Get number of arguments from
808         the statement, allocate vector.
809         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
810         (duplicate_ipa_jump_func_array): Removed.
811         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
812         (ipa_read_node_info): Allocate vector.
814 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
816         PR middle-end/50232
817         * config/pa/pa.md (return): Define "return" insn pattern.
818         (epilogue): Use it when no epilogue is needed.
819         * config/pa/pa.c (pa_can_use_return_insn): New function.
820         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
822 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
824         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
825         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
826         Force at least BITS_PER_UNIT alignment on the new variable.
828 2011-09-02  Gary Funck <gary@intrepid.com>
830         * opts.c (print_specific_help): Fix off-by-one compare in
831         assertion check.
832         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
833         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
834         Increase by +5 to allow for more languages.
835         * optc-gen.awk: Generate #if that ensures that the number of
836         languages is within the implementation-defined limit.
838 2011-09-02  Michael Matz  <matz@suse.de>
840         PR middle-end/50260
841         * ipa-split.c (split_function): Call add_referenced_var.
843         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
844         (cond_if_else_store_replacement_1): Ditto.
845         * tree-ssa-pre.c (get_representative_for): Ditto.
846         (create_expression_by_pieces): Ditto.
847         (insert_into_preds_of_block): Ditto.
848         * tree-sra.c (create_access_replacement): Ditto.
849         (get_replaced_param_substitute): Ditto.
851 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
853         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
854         automata_options.
855         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
856         (l1w, s1w, l2w, s2w): Define in the main automaton.
857         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
858         units.
859         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
860         (c6x_unit_names): Add the new units.
861         (c6x_unit_codes): New static array.
862         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
863         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
864         UNIT_QID_SIDE_OFFSET): New macros.
865         (RESERVATION_S2): Adjust value.
866         (c6x_option_override): Compute c6x_unit_codes.
867         (assign_reservations): Take the unit_mask of the last instruction
868         into account.  Detect floating point reservations by looking for
869         the new units.  Don't assign reservations if the field is already
870         nonzero.
871         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
872         (init_sched_state): Initialize it.
873         (c6x_clear_sched_context): Free it.
874         (insn_set_clock): Clear reservation.
875         (prev_cycle_state): New static variable.
876         (c6x_init_sched_context): Save it.
877         (c6x_sched_init): Allocate space for it and clear it.
878         (c6x_sched_dfa_pre_cycle_insn): New static function.
879         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
880         (c6x_variable_issue): Only record units in the unit_mask that
881         were not set at the start of the cycle.
882         (c6x_variable_issue): Compute and store the unit_mask from the
883         current state.
884         (reorg_split_calls): Ensure the new information remains correct.
885         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
886         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
887         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
888         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
889         Add special reservations.
890         * config/c6x/c6x-sched.md: Regenerate.
892 2011-09-02  Martin Jambor  <mjambor@suse.cz>
894         * ipa-prop.h (ipa_node_params): Removed fields
895         called_with_var_arguments and node_versionable.
896         (ipa_set_called_with_variable_arg): Removed.
897         (ipa_is_called_with_var_arguments): Likewise.
898         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
899         (determine_versionability): Do not check for type attributes and va
900         builtins.  Record versionability into inline summary.
901         (initialize_node_lattices): Do not check
902         ipa_is_called_with_var_arguments.
903         (propagate_constants_accross_call): Likewise, ignore arguments we do
904         not have PARM_DECLs for, set variable flag for parameters that were
905         not passed a value.
906         (create_specialized_node): Dump info that we cannot change signature.
907         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
908         number of arguments.
909         (ipa_make_edge_direct_to_target): Likewise.
910         (ipa_update_after_lto_read): Likewise.
911         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
912         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
913         they were remapped.
915 2011-09-02  Richard Guenther  <rguenther@suse.de>
917         PR tree-optimization/27460
918         PR middle-end/29269
919         * doc/md.texi (vcond): Document.
920         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
921         optab with two modes.
922         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
923         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
924         (vcond_optab): Adjust.
925         (vcondu_optab): Likewise.
926         (expand_vec_cond_expr_p): Adjust prototype.
927         * optabs.c (get_vcond_icode): Adjust.
928         (expand_vec_cond_expr_p): Likewise.
929         (expand_vec_cond_expr): Likewise.
930         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
931         vector type.
932         (vectorizable_condition): Allow differing types for comparison
933         and result.
934         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
935         for the comparison.
936         * config/i386/sse.md (vcond<mode>): Split to
937         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
938         vcond<V_128:mode><VI124_128:mode> and
939         vcondu<V_128:mode><VI124_128:mode>.
940         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
941         (vconduv2di): Likewise.
942         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
943         (vcondu<mode>): Likewise.
944         * config/ia64/vect.md (vcond<mode>): Likewise.
945         (vcondu<mode>): Likewise.
946         (vcondv2sf): Likewise.
947         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
948         * config/rs6000/paired.md (vcondv2sf): Likewise.
949         * config/rs6000/vector.md (vcond<mode>): Likewise.
950         (vcondu<mode>): Likewise.
951         * config/spu/spu.md (vcond<mode>): Likewise.
952         (vcondu<mode>): Likewise.
954 2011-09-02  Richard Guenther  <rguenther@suse.de>
956         * pretty-print.h (pp_unsigned_wide_integer): New.
957         * tree-pretty-print.c (dump_generic_node): Print unsigned
958         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
960 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
962         PR target/49987
963         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
964         valid CONST_VECTOR operands.
965         (rs6000_expand_vector_init): Likewise.
967 2011-09-02  Martin Jambor  <mjambor@suse.cz>
969         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
970         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
971         BINFO_VTABLE.  Parameter delta removed, all callers updated.
972         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
973         BINFO_VTABLE.
974         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
975         all calls.
976         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
977         handling of thunk_delta.
978         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
979         (devirtualization_time_bonus): Do not handle thunk deltas.
980         (ipcp_discover_new_direct_edges): Likewise.
981         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
982         (try_make_edge_direct_simple_call): Likewise.
983         (try_make_edge_direct_virtual_call): Likewise.
984         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
985         parameter set as unused.
986         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
987         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
988         parameter set as unused.
989         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
990         (input_edge_opt_summary): Likewise.
991         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
992         BINFO_VIRTUALS at all.
993         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
995 2011-09-02  Richard Guenther  <rguenther@suse.de>
997         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
998         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
1000 2011-08-31  Richard Guenther  <rguenther@suse.de>
1002         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
1003         handling here, from ...
1004         (expand_expr_real_1): ... here.
1005         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
1006         and VEC_COND_EXPR.
1007         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
1008         a GIMPLE_TERNARY_RHS.
1009         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
1010         and VEC_COND_EXPR here ...
1011         (verify_gimple_assign_single): ... not here.
1012         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
1013         * tree-object-size.c (cond_expr_object_size): Adjust.
1014         (collect_object_sizes_for): Likewise.
1015         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
1016         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
1017         (ssa_forward_propagate_and_combine): Adjust.
1018         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
1019         as ternary.
1020         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
1021         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
1022         * tree-vect-stmt.c (vectorizable_condition): Likewise.
1023         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
1024         (extract_range_from_assignment): Likewise.
1026 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
1028         * config/i386/i386.md: Use (match_test ...) for attribute tests.
1029         * config/i386/mmx.md: Likewise.
1030         * config/i386/sse.md: Likewise.
1031         * config/i386/predicates.md (call_insn_operand): Use
1032         (not (match_test "...")) instead of (match_test "!...")
1033         * config/i386/constraints.md (w): Likewise.
1035 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
1037         * doc/md.texi: Describe the use of match_tests in attribute tests.
1038         * rtl.def (MATCH_TEST): Update commentary.
1039         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
1040         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
1042 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
1044         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
1045         (attr_string): Use copy_md_ptr_loc.
1047 2011-08-31  Martin Jambor  <mjambor@suse.cz>
1049         PR middle-end/49886
1050         * ipa-inline-analysis.c (compute_inline_parameters): Set
1051         can_change_signature of noes with typde attributes.
1052         * ipa-split.c (split_function): Do not skip any arguments if
1053         can_change_signature is set.
1055 2011-08-31  Martin Jambor  <mjambor@suse.cz>
1057         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
1058         check removed.
1060 2011-08-31  Richard Guenther  <rguenther@suse.de>
1062         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1063         special-casing.
1065 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
1067         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
1069 2011-08-31  Tom de Vries  <tom@codesourcery.com>
1071         PR middle-end/43513
1072         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
1073         * tree-ssa-ccp.c (params.h): Include.
1074         (fold_builtin_alloca_for_var): New function.
1075         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
1077 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
1079         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1080         Handle FMA option.
1082 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
1084         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
1085         b3 and b4 unsigned.
1087 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
1089         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
1090         when code is SET.
1092 2011-08-30  Richard Guenther  <rguenther@suse.de>
1094         PR middle-end/48571
1095         * gimple.h (maybe_fold_offset_to_address): Remove.
1096         (maybe_fold_offset_to_reference): Likewise.
1097         (maybe_fold_stmt_addition): Likewise.
1098         (may_propagate_address_into_dereference): Likewise.
1099         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1100         array references.
1101         * gimple-fold.c (canonicalize_constructor_val): Likewise.
1102         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1103         addresses instead.
1104         (may_propagate_address_into_dereference): Remove.
1105         (maybe_fold_offset_to_array_ref): Likewise.
1106         (maybe_fold_offset_to_reference): Likewise.
1107         (maybe_fold_offset_to_address): Likewise.
1108         (maybe_fold_stmt_addition): Likewise.
1109         (fold_gimple_assign): Do not reconstruct array references but
1110         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1111         MEM_REF addresses.
1112         (gimple_fold_stmt_to_constant_1): Likewise.
1113         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1114         * gimplify.c (gimplify_conversion): Likewise.
1115         (gimplify_expr): Likewise.
1117 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
1119         * config/i386/fmaintrin.h: New.
1120         * config.gcc: Add fmaintrin.h.
1121         * config/i386/i386.c
1122         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1123         <IX86_BUILTIN_VFMADDSD3>: Likewise.
1124         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1125         (*fmai_fmadd_<mode>): Likewise.
1126         (*fmai_fmsub_<mode>): Likewise.
1127         (*fmai_fnmadd_<mode>): Likewise.
1128         (*fmai_fnmsub_<mode>): Likewise.
1129         * config/i386/immintrin.h: Add fmaintrin.h.
1131 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
1133         * genautomata.c (NO_COMB_OPTION): New macro.
1134         (no_comb_flag): New static variable.
1135         (gen_automata_option): Handle NO_COMB_OPTION.
1136         (comb_vect_p): False if no_comb_flag.
1137         (add_vect): Move computation of min/max values.  Return early if
1138         no_comb_flag.
1139         * doc/md.texi (automata_option): Document no-comb-vect.
1141         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1142         "__x86.get_pc_thunk".
1144         * bb-reorder.c (insert_section_boundary_note): Only do it if
1145         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1147 2011-08-30  Christian Bruel  <christian.bruel@st.com>
1149         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1150         flag_profile_use.
1152 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1154         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1155         to off.  Document switch.
1156         * doc/invoke.texi (-msave-toc-indirect): Ditto.
1158 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1160         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1161         conditionals and comments inside macro arguments.
1163 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1164             Richard Guenther  <rguenther@suse.de>
1166         * tree.h (constant_boolean_node): Adjust prototype.
1167         * fold-const.c (fold_convert_loc): Move aggregate conversion
1168         leeway down.
1169         (constant_boolean_node): Make value parameter boolean, add
1170         vector type handling.
1171         (fold_unary_loc): Use constant_boolean_node.
1172         (fold_binary_loc): Preserve types properly when folding
1173         COMPLEX_EXPR <__real x, __imag x>.
1174         * gimplify.c (gimplify_expr): Handle vector comparison.
1175         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
1176         comparison.
1177         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
1178         comparisons.
1180 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1182         PR middle-end/48722
1183         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
1184         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
1185         (verify_rtl_sharing): Likewise and verify_rtx_sharing
1186         in there too.
1187         (unshare_all_rtl_in_chain): For CALL_INSNs
1188         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
1190 2011-08-29  Richard Guenther  <rguenther@suse.de>
1192         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
1193         on the built ADDR_EXPR.
1195 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1197         PR debug/50215
1198         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
1199         before adding ENTRY_VALUE to val->locs.
1201 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
1203         PR bootstrap/50218
1204         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
1205         comp.
1207 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
1209         * doc/rtl.texi (simple_return): Document.
1210         (parallel, PATTERN): Here too.
1211         * doc/md.texi (return): Mention it's allowed to expand to simple_return
1212         in some cases.
1213         (simple_return): Document standard pattern.
1214         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
1215         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
1216         * reorg.c (function_return_label, function_simple_return_label):
1217         New static variables, replacing...
1218         (end_of_function_label): ... this.
1219         (simplejump_or_return_p): New static function.
1220         (optimize_skip, steal_delay_list_from_fallthrough,
1221         fill_slots_from_thread): Use it.
1222         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
1223         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
1224         (find_end_label): Take a new arg which is one of the two return
1225         rtxs.  Depending on which, set either function_return_label or
1226         function_simple_return_label.  All callers changed.
1227         (make_return_insns): Make both kinds.
1228         (dbr_schedule): Adjust for two kinds of end labels.
1229         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
1230         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
1231         (gen_expand, gen_split): Use ANY_RETURN_P.
1232         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
1233         * rtl.def (SIMPLE_RETURN): New code.
1234         * ifcvt.c (find_if_case_1): Be more careful about
1235         redirecting jumps to the EXIT_BLOCK.
1236         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
1237         returnjump_p_1): Handle SIMPLE_RETURNs.
1238         * print-rtl.c (print_rtx): Likewise.
1239         * rtl.c (copy_rtx): Likewise.
1240         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
1241         * combine.c (simplify_set): Likewise.
1242         * resource.c (find_dead_or_set_registers, mark_set_resources):
1243         Likewise.
1244         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
1245         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
1246         (init_emit_regs): Initialize simple_return_rtx.
1247         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
1248         force_nonfallthru_and_redirect.
1249         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
1250         (GR_SIMPLE_RETURN): New enum value.
1251         (simple_return_rtx): New macro.
1252         * basic-block.h (force_nonfallthru_and_redirect): Adjust
1253         declaration.
1254         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
1255         argument.  All callers changed.  Be careful about what kinds of
1256         returnjumps to generate.
1257         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
1258         ix86_pad_short_function): Likewise.
1259         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
1260         of return.
1261         * config/mips/mips.md (any_return): New code_iterator.
1262         (optab): Add cases for return and simple_return.
1263         (return): Expand to a simple_return.
1264         (simple_return): New pattern.
1265         (*<optab>, *<optab>_internal for any_return): New patterns.
1266         (return_internal): Remove.
1267         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
1268         a simple_return_internal.
1270 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1272         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
1273         (vec_extract_lo_<mode>): Prevent both operands in memory.
1274         (vec_extract_lo_v16hi): Ditto.
1275         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1277 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1279         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
1280         (*sse2_mulv4si3): Ditto.
1281         (mulv2di3): Ditto.
1282         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1283         notes to REG_EQUAL.
1285 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1287         PR target/50202
1288         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1289         when all outputs are unused.
1290         (sse4_2_pcmpistr): Ditto.
1292 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
1294         * config/i386/i386.md (round<mode>2): New expander.
1295         * config/i386/i386.c (enum ix86_builtins): Add
1296         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
1297         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
1298         descriptions.
1299         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
1300         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
1302 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
1304         PR middle-end/50083
1305         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
1306         only when TARGET_C99_FUNCTIONS.
1307         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
1308         <BUILT_IN_RINT{,F,L}>: Ditto.
1310 2011-08-26  Michael Matz  <matz@suse.de>
1311             Jakub Jelinek  <jakub@redhat.com>
1313         PR lto/50165
1314         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
1315         don't call strlen twice, use memcpy.
1317 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
1319         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
1320         * config/i386/bmiintrin.h: Likewise.
1321         * config/i386/lzcntintrin.h: Likewise.
1323         * config/i386/immintrin.h: Include <lzcntintrin.h>,
1324         <bmiintrin.h> and <bmi2intrin.h>.
1326 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1328         PR target/50166
1329         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
1330         * configure: Regenerate.
1332 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1334         PR c/50179
1335         * c-typeck.c (c_process_expr_stmt): Skip over nops and
1336         call mark_exp_read even if exprv is ADDR_EXPR.
1338 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
1340         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
1341         to df_set_dead_notes_for_mw.
1343 2011-08-26  Richard Guenther  <rguenther@suse.de>
1345         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1347 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
1348             Tom de Vries  <tom@codesourcery.com>
1350         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
1351         (struct ivopts_data): Add loop_single_exit_p field.
1352         (niter_for_exit): Change parameter desc_p into return value.  Return
1353         desc if desc->may_be_zero.  Free desc if unused.
1354         (niter_for_single_dom_exit): Change return type.
1355         (find_induction_variables): Handle changed return type of
1356         niter_for_single_dom_exit.  Dump may_be_zero.
1357         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
1358         (set_use_iv_cost): Add and handle comp parameter.
1359         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
1360         comp argument to set_use_iv_cost.
1361         (strip_wrap_conserving_type_conversions, expr_equal_p)
1362         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
1363         (may_eliminate_iv): Add comp parameter.  Handle new return type of
1364         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
1365         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
1366         and may_eliminate_iv.
1367         (rewrite_use_compare): Move call to iv_elimination_compare to ...
1368         (may_eliminate_iv): Here.
1369         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
1371 2011-08-26  Tom de Vries  <tom@codesourcery.com>
1373         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
1374         accessing TREE_TYPE.
1376 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
1378         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
1379         (*ior_scc_scc_cmp): Likewise
1380         (*and_scc_scc): Likewise.
1381         (*and_scc_scc_cmp): Likewise.
1382         (*and_scc_scc_nodom): Likewise.
1383         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
1385 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1387         * rtlanal.c (nonzero_bits1): Handle CLRSB.
1389 2011-08-26  Richard Guenther  <rguenther@suse.de>
1391         * expr.c (string_constant): Handle &MEM_REF.
1393 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
1395         * config/arm/arm.c (struct four_ints): New type.
1396         (count_insns_for_constant): Delete function.
1397         (find_best_start): Delete function.
1398         (optimal_immediate_sequence): New function.
1399         (optimal_immediate_sequence_1): New function.
1400         (arm_gen_constant): Move constant splitting code to
1401         optimal_immediate_sequence.
1402         Rewrite constant negation/invertion code.
1404 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
1406         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1407         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1408         Remove prototype. Remove static function type.
1409         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1410         Add arch attribute.
1411         * config/arm/constraints.md (Pj, PJ): New constraints.
1413 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1415         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1416         ("cortex_a9_multiply_long"): New and use above.  Handle all
1417         long multiply cases.
1418         ("cortex_a9_multiply"): Handle smmul and smmulr.
1419         ("cortex_a9_mac"): Handle smmla.
1421 2011-08-25  Richard Henderson  <rth@redhat.com>
1423         PR 50132
1424         PR 49864
1425         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1426         non-constant stack adjutment.
1427         * expr.c (find_args_size_adjust): Break out from ...
1428         (fixup_args_size_notes): ... here.
1429         * rtl.h (find_args_size_adjust): Declare.
1431 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
1433         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1434         sse4 and sse4_noavx.
1435         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1436         (*pushdf_rex64): Change Y2 register constraint to x.
1437         (*movdf_internal_rex64): Ditto.
1438         (*zero_extendsidi2_rex64): Ditto.
1439         (*movdi_internal): Change Y2 register constraint to x
1440         and update "isa" attribute.
1441         (*pushdf): Ditto.
1442         (*movdf internal): Ditto.
1443         (zero_extendsidi2_1): Ditto.
1444         (*truncdfdf_mixed): Ditto.
1445         (*truncxfdf2_mixed): Ditto.
1446         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1447         register constraint to x.
1448         (*movv2sf_internal_rex64): Ditto.
1449         (*mov<mode>_internal): Change Y2 register constraint to x
1450         and add "isa" attribute.
1451         (*movv2sf_internal): Ditto.
1452         (*vec_extractv2si_1): Ditto.
1453         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1454         constraints to x and update "isa" attribute.
1455         (*vec_interleave_highv2df): Change Y3 registerconstraint
1456         to x and update "isa" attribute.
1457         (*vec_interleave_lowv2df): Ditto.
1458         (*vec_concatv2df): Change Y2 register constraint to x and
1459         update "isa" attribute.
1460         (sse2_loadld): Ditto.
1461         (*vec_extractv2di_1): Ditto.
1462         (*vec_dupv4si): Ditto.
1463         (*vec_dupv2di): Ditto.
1464         (*vec_concatv4si): Ditto.
1465         (vec_concatv2di): Ditto.
1466         * config/i386/constraints.md (Y2): Remove.
1467         (Y3): Ditto.
1468         (Y4): Ditto.
1470 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1472         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1473         dump_def_use_chain): Don't declare.
1474         (mark_conflict, create_new_chain): Move before users.
1475         (regrename_optimize): Move to near end of file.
1477 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1479         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1480         (secondary_input_reload_class): Remove Prototype.
1481         * config/avr/avr.c (byte_immediate_operand): Remove Function.
1482         * config/avr/avr.md (setmemhi): Use u8_operand.
1483         (strlenhi): Use const0_rtx for comparison.
1484         * config/avr/avr.h (avr_reg_order): Remove Declaration.
1486 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1488         * config/avr/avr.c (reg_class_tab): Make local to
1489         avr_regno_reg_class.  Return smallest register class available.
1491 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1493         * config/avr/avr.c (STR_PREFIX_P): New Define.
1494         (avr_asm_declare_function_name): Use it.
1495         (avr_asm_named_section): Use it.
1496         (avr_section_type_flags): Use it.
1498 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1500         * doc/md.texi (automata_option): Document collapse-ndfa.
1501         * genautomata.c (COLLAPSE_OPTION): New macro.
1502         (collapse_flag): New static variable.
1503         (struct description): New member normal_decls_num.
1504         (struct automaton): New members advance_ainsn and collapse_ainsn.
1505         (gen_automata_option): Check for COLLAPSE_OPTION.
1506         (collapse_ndfa_insn_decl): New static variable.
1507         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1508         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1509         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1510         necessary.  Use normal_decls_num rather than decls_num, remove
1511         test for special decls.
1512         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1513         (make_automaton); Likewise.  Use the new advance_cycle_insn member
1514         of struct automaton.
1515         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1516         is set.
1517         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1518         transition.  Create the necessary transitions for it.
1519         (create_ainsns): Return void.  Take an automaton_t argument, and
1520         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
1521         callers changed.
1522         (COLLAPSE_NDFA_VALUE_NAME): New macro.
1523         (output_tables): Output code to define it.
1524         (output_internal_insn_code_evaluation): Output code to accept
1525         const0_rtx as collapse-ndfa transition.
1526         (output_default_latencies, output_print_reservation_func,
1527         output_print_description): Reorganize loops to use normal_decls_num
1528         as loop bound; remove special case for advance_cycle_insn_decl.
1529         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1530         (check_automata_insn_issues): Check for collapse_ainsn.
1531         (expand_automate): Allocate sufficient space.  Initialize
1532         normal_decls_num.
1534 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1536         * config/avr/avr.md: Fix indentation from r177991.
1538 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1540         * regrename.c (struct du_head): Remove member terminated.
1541         (create_new_chain): Don't initialize it.
1542         (scan_rtx_reg): Don't set or test it, test the open_chains_set
1543         bitmap instead.
1544         (tick, this_tick): New global variables, moved out of
1545         regrename_optimize.
1546         (current_id, open_chains, closed_chains, open_chains_set,
1547         live_in_chains, live_hard_regs): Reorder declarations.
1548         (dump_def_use_chain): Move function earlier in the file.
1549         (rename_chains): New static function, broken out of
1550         regrename_optimize.
1551         (regrename_optimize): Use it.  Remove #if 0'ed code.
1553 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1555         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1557 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1559         PR target/50172
1560         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1562 2011-08-24  Richard Guenther  <rguenther@suse.de>
1564         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1565         ref in the basic-block case.  Move stripping array-refs
1566         to the place we create an access-function for it.  Remove
1567         bogus stripping down a MEM_REF to its base.
1569 2011-08-24  Richard Guenther  <rguenther@suse.de>
1571         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1572         with -fno-strict-overflow.
1574 2011-08-24  Richard Guenther  <rguenther@suse.de>
1576         * tree-vectorizer.c (vect_print_dump_info): Avoid the
1577         file and location clutter when dumping to dump files.
1579 2011-08-24  Simon Baldwin  <simonb@google.com>
1581         * gengtype-state.c (write_state): Remove timestamped header line.
1583 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1585         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1586         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1587         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1588         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1589         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1590         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1591         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1592         rules.
1593         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1595 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1597         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1599 2011-08-24  Richard Guenther  <rguenther@suse.de>
1601         PR tree-optimization/50067
1602         * tree-data-ref.c (dr_analyze_indices): Do not add an access
1603         function for a MEM_REF base that has no evolution in the loop
1604         nest or that is not analyzable.
1606 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
1608         * ira.c (ira_init_register_move_cost): Check small subclasses
1609         through ira_reg_class_max_nregs and ira_available_class_regs.
1611 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1613         * config/i386/constraints.md (Yp): New register constraint.
1614         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1615         Yp register constraint.
1616         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1617         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1618         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1620 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1622         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1624 2011-08-23  Mark Heffernan  <meheff@google.com>
1626         PR middle-end/38509
1627         * common.opt (Wfree-nonheap-object): New option.
1628         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
1629         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
1630         to warning.
1631         (expand_builtin): Make warning conditional.
1633 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1635         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
1636         (length_immediate): Handle imulx, ishiftx and rotatex.
1637         (imm_disp): Ditto.
1638         (isa): Add bmi2.
1639         (enabled): Handle bmi2.
1640         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
1641         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
1642         (*bmi2_umulditi3_1): New insn pattern.
1643         (*bmi2_umulsidi3_1): Ditto.
1644         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
1645         (*bmi2_ashl<mode>3_1): New insn pattern.
1646         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
1647         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
1648         (*bmi2_ashlsi3_1_zext): New insn pattern.
1649         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
1650         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
1651         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
1652         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
1653         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
1654         flags dependency.
1655         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
1656         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
1657         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
1658         flags dependency.
1659         (*bmi2_rorx<mode>3_1): New insn pattern.
1660         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
1661         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
1662         (*rotatert<mode>3_1 splitter): Ditto.
1663         (*bmi2_rorxsi3_1_zext): New insn pattern.
1664         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
1665         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
1666         (*rotatertsi3_1_zext splitter): Ditto.
1668 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1670         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
1671         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
1672         (ix86_handle_option): Handle OPT_mbmi2 case.
1673         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
1674         (x86_64-*-*): Likewise.
1675         * config/i386/bmi2intrin.h: New file.
1676         * config/i386/cpuid.h (bit_BMI2): New.
1677         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1678         BMI2 feature.
1679         * config/i386/i386-c.c (ix86_target_macros_internal):
1680         Conditionally define __BMI2__.
1681         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
1682         Handle BMI2 option.
1683         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
1684         (print_reg): New code.
1685         (ix86_print_operand): Likewise.
1686         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1687         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1688         IX86_BUILTIN_PEXT64.
1689         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1690         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1691         IX86_BUILTIN_PEXT64.
1692         * config/i386/i386.h (TARGET_BMI2): New.
1693         * config/i386/i386.md (UNSPEC_PDEP): New.
1694         (UNSPEC_PEXT): Likewise.
1695         (*bmi2_bzhi_<mode>3): Likewise.
1696         (*bmi2_pdep_<mode>3): Likewise.
1697         (*bmi2_pext_<mode>3): Likewise.
1698         * config/i386/i386.opt (mbmi2): New.
1699         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1700         is defined.
1701         * doc/extend.texi: Document BMI2 built-in functions.
1702         * doc/invoke.texi: Document -mbmi2.
1704 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
1706         PR middle-end/50161
1707         * simplify-rtx.c (simplify_const_unary_operation): If
1708         op is CONST_INT, don't look at op_mode, but use instead mode.
1709         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1710         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1711         operation and TRUNCATE/ZERO_EXTEND if needed.
1712         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1713         Document that operand mode must be same as operation mode,
1714         or VOIDmode.
1715         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1716         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1717         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1718         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1719         use the mode of operand for the operation and add truncate
1720         or zero_extend around if needed.
1721         * config/c6x/c6x.md (ctzdi2): Likewise.
1722         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1724 2011-08-12  Michael Matz  <matz@suse.de>
1726         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1727         (gimple_expand_cfg): Merge alignment info for coalesced pointer
1728         SSA names.
1730 2011-08-23  Richard Guenther  <rguenther@suse.de>
1732         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1733         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1734         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1735         from ...
1736         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1737         (mem_refs_may_alias_p): Adjust.
1738         * tree-data-ref.h (dr_may_alias_p): Adjust.
1739         * tree-data-ref.c: Include tree-affine.h.
1740         (dr_analyze_indices): Do nothing for the non-loop case.
1741         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
1742         more cases in the non-loop case.
1743         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1744         calls to dr_may_alias_p.
1745         (write_alias_graph_to_ascii_ecc): Likewise.
1746         (write_alias_graph_to_ascii_dot): Likewise.
1747         (build_alias_set_optimal_p): Likewise.
1749 2011-08-23  Richard Guenther  <rguenther@suse.de>
1751         PR tree-optimization/50162
1752         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1754 2011-08-23  Richard Guenther  <rguenther@suse.de>
1756         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1757         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1758         (create_data_ref): Also dump access functions for the created data-ref.
1760 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
1761             Kirill Yukhin  <kirill.yukhin@intel.com>
1763         PR target/50155
1764         * config/i386/sse.md (VI_AVX2): New.
1765         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1766         (*<plusminus_insn><mode>3): Ditto.
1767         (<sse2_avx2>_andnot<mode>3): Ditto.
1768         (*andnot<mode>3): Fix order of cond operands.
1769         Add asserts for correct TARGET_xxx.
1770         (*<any_logic:code><mode>3): Ditto.
1772 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
1774         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1775         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1776         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1777         regclass argument type to reg_class_t. Change 'max' and 'v' vars
1778         and return types to unsigned char. Use reg_class_contents instead
1779         of class_contents.
1780         (TARGET_CLASS_MAX_NREGS): Define.
1782 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
1784         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1785         to make computed_jump_p return true.
1787 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1789         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1790         (PICFLAG_FOR_TARGET): Substitute.
1791         * aclocal.m4: Regenerate.
1792         * configure: Regenerate.
1794 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
1796         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1797         after reading in the pch.
1799 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1801         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1802         * configure: Regenerated.
1804 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
1806         PR tree-optimization/50133
1807         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1808         from stmt instead of some statement around gsi.
1810         PR middle-end/50141
1811         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1812         innerdecl is a VAR_DECL.
1814 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
1816         * config/i386/avx2intrin.h: New file.
1817         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1818         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1819         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1820         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1821         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1822         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1823         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1824         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1825         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1826         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1827         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1828         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1829         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1830         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1831         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1832         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1833         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1834         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1835         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1836         VOID_FTYPE_PV8SI_V8SI_V8SI,
1837         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1838         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1839         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1840         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1841         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1842         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1843         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1844         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1845         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1846         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1847         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1848         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1849         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1850         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1851         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1852         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1853         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1854         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1855         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1856         V4DI_FTYPE_V4DI_INT_CONVERT,
1857         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1858         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1859         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1860         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1861         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1862         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1863         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1864         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1865         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1866         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1867         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1868         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1869         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1870         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1871         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1872         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1873         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1874         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1875         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1876         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1877         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1878         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1879         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1880         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1881         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1882         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1883         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1884         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1885         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1886         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1887         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1888         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1889         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1890         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1891         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1892         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1893         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1894         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1895         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1896         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1897         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1898         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1899         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1900         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1901         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1902         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1903         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1904         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1905         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1906         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1907         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1908         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1909         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1910         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1911         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1912         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1913         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1914         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1915         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1916         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
1917         IX86_BUILTIN_VBROADCASTSS_PS256,
1918         IX86_BUILTIN_VBROADCASTSD_PD256,
1919         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1920         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1921         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1922         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1923         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1924         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1925         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1926         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1927         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1928         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1929         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1930         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1931         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
1932         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1933         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1934         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1935         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1936         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
1937         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
1938         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
1939         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
1940         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
1941         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
1942         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
1943         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
1944         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
1945         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
1946         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1947         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1948         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1949         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
1950         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
1951         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1952         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1953         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1954         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1955         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1956         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1957         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1958         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1959         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1960         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1961         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1962         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1963         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1964         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1965         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1966         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1967         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1968         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1969         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1970         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1971         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1972         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1973         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1974         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1975         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1976         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1977         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1978         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1979         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1980         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1981         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1982         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1983         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1984         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1985         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1986         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1987         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1988         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1989         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1990         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1991         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1992         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1993         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1994         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1995         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1996         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1997         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1998         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1999         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2000         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2001         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2002         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2003         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2004         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2005         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2006         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2007         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2008         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
2009         IX86_BUILTIN_VBROADCASTSD_PD256,
2010         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2011         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2012         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2013         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2014         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2015         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2016         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2017         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2018         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2019         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2020         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2021         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2022         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2023         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
2024         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
2025         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
2026         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
2027         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
2028         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
2029         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
2030         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
2031         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
2032         IX86_BUILTIN_GATHERDIV8SI.
2033         (ix86_preferred_simd_mode): Support AVX2 modes.
2034         (ix86_expand_args_builtin): Support AVX2 builtins.
2035         (ix86_expand_special_args_builtin): Likewise.
2036         (ix86_expand_builtin): Likewise.
2037         * config/i386/i386.md (UNSPEC_VPERMSI): New.
2038         (UNSPEC_VPERMDF): Likewise.
2039         (UNSPEC_VPERMSF): Likewise.
2040         (UNSPEC_VPERMDI): Likewise.
2041         (UNSPEC_VPERMTI): Likewise.
2042         (UNSPEC_GATHER): Likewise.
2043         (ssemodesuffix): Extend.
2044         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
2045         is defined.
2046         * config/i386/predicates.md (const1248_operand): New.
2047         * config/i386/sse.md (VI1_AVX2): New mode iterator.
2048         (VI2_AVX2): Likewise.
2049         (VI4_AVX2): Likewise.
2050         (VI8_AVX2): Likewise.
2051         (VIMAX_AVX2): Likewise.
2052         (SSESCALARMODE): Likewise.
2053         (VI12_AVX2): Likewise.
2054         (VI24_AVX2): Likewise.
2055         (VI124_AVX2): Likewise.
2056         (VI248_AVX2): Likewise.
2057         (VI48_AVX2): Likewise.
2058         (VI4SD_AVX2): Likewise.
2059         (V48_AVX2): Likewise.
2060         (AVX256MODE2P): Likewise.
2061         (AVXMODE48P_DI): Likewise.
2062         (sse2_avx2): New mode attribute.
2063         (ssse3_avx2): Likewise.
2064         (sse4_1_avx2): Likewise.
2065         (avx_avx2): Likewise.
2066         (ssebytemode): Likewise.
2067         (AVXTOSSEMODE): Likewise.
2068         (AVXMODE48P_DI): Likewise.
2069         (gthrfirstp): Likewise.
2070         (gthrlastp): Likewise.
2071         (lshift): New code_iterator
2072         (lshift): New code attribute.
2073         (lshift): Likewise.
2074         (ssescalarmodesuffix): Update.
2075         (sseunpackmode): Likewise.
2076         (ssepackmode): Likewise.
2077         (avx2_vec_dupv4sf): New insn pattern.
2078         (avx2_vec_dupv8sf): Likewise.
2079         (avx2_interleave_highv4di): Likewise.
2080         (avx2_interleave_lowv4di): Likewise.
2081         (avx2_umulv4siv4di3): Likewise
2082         (*avx2_umulv4siv4di3): Likewise
2083         (avx2_pmaddwd): Likewise.
2084         (*avx2_pmaddwd): Likewise.
2085         (avx2_lshrqv4di3): Likewise.
2086         (avx2_lshlqv4di3): Likewise.
2087         (avx2_lshl<mode>3): Likewise.
2088         (avx2_<umaxmin:code><mode>3): Likewise.
2089         (*avx2_<umaxmin:code><mode>3): Likewise.
2090         (avx2_<smaxmin:code><mode>3): Likewise.
2091         (*avx2_<smaxmin:code><mode>3): Likewise.
2092         (avx2_eq<mode>3): Likewise.
2093         (*avx2_eq<mode>3): Likewise.
2094         (avx2_gt<mode>3): Likewise.
2095         (avx2_interleave_highv32qi): New.
2096         (avx2_interleave_lowv32qi): Likewise.
2097         (avx2_interleave_highv16hi): Likewise.
2098         (avx2_interleave_lowv16hi): Likewise.
2099         (avx2_interleave_highv8si): Likewise.
2100         (avx2_interleave_lowv8si): Likewise.
2101         (avx2_pshufd): Likewise.
2102         (avx2_pshufd_1): Likewise.
2103         (avx2_pshuflwv3): Likewise.
2104         (avx2_pshuflw_1): Likewise.
2105         (avx2_pshufhwv3): Likewise.
2106         (avx2_pshufhw_1): Likewise.
2107         (avx2_uavgv32qi3): Likewise.
2108         (*avx2_uavgv32qi3): Likewise.
2109         (avx2_uavgv16hi3): Likewise.
2110         (*avx2_uavgv16hi3): Likewise.
2111         (avx2_pmovmskb): Likewise.
2112         (avx2_phaddwv16hi3): Likewise.
2113         (avx2_phadddv8si3): Likewise.
2114         (avx2_phaddswv16hi3): Likewise.
2115         (avx2_phsubwv16hi3): Likewise.
2116         (avx2_phsubdv8si3): Likewise.
2117         (avx2_phsubswv16hi3): Likewise.
2118         (avx2_pmaddubsw256): Likewise.
2119         (avx2_umulhrswv16hi3): Likewise.
2120         (*avx2_umulhrswv16hi3): Likewise.
2121         (avx2_packusdw): Likewise.
2122         (avx2_pblendd<mode>): Likewise.
2123         (avx2_<code>v16qiv16hi2): Likewise.
2124         (avx2_<code>v8qiv8si2): Likewise.
2125         (avx2_<code>v8hiv8si2): Likewise.
2126         (avx2_<code>v4qiv4di2): Likewise.
2127         (avx2_<code>v4hiv4di2): Likewise.
2128         (avx2_<code>v4siv4di2): Likewise.
2129         (avx2_pbroadcast<mode>): Likewise.
2130         (avx2_permvarv8si): Likewise.
2131         (avx2_permv4df): Likewise.
2132         (avx2_permvarv8sf): Likewise.
2133         (avx2_permv4di): Likewise.
2134         (avx2_permv2ti): Likewise.
2135         (avx2_vec_dupv4df): Likewise.
2136         (avx2_vbroadcasti128_<mode>): Likewise.
2137         (avx2_vec_set_lo_v4di): Likewise.
2138         (avx2_vec_set_hi_v4di): Likewise.
2139         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2140         (avx2_extracti128): Likewise.
2141         (avx2_inserti128): Likewise.
2142         (avx2_ashrvv8si): Likewise.
2143         (avx2_ashrvv4si): Likewise.
2144         (avx2_<lshift>vv8si): Likewise.
2145         (avx2_<lshift>v<mode>): Likewise.
2146         (avx2_<lshift>vv2di): Likewise.
2147         (avx2_gathersi<mode>): Likewise.
2148         (*avx2_gathersi<mode>): Likewise.
2149         (avx2_gatherdi<mode>): Likewise.
2150         (*avx2_gatherdi<mode>): Likewise.
2151         (avx2_gatherdi<mode>256): Likewise.
2152         (*avx2_gatherdi<mode>256): Likewise.
2153         (<plusminus_insn><mode>3): Use VI mode iterator.
2154         (*<plusminus_insn><mode>3): Use VI mode iterator.
2155         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2156         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2157         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2158         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2159         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
2160         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
2161         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2162         Use VI2_AVX2 mode iterator.
2163         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2164         Use VI2_AVX2 mode iterator.
2165         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
2166         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
2167         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2168         Use VI4_AVX2 mode iterator.
2169         (ashr<mode>3): Use VI24_AVX2 mode iterator.
2170         (lshr<mode>3): Use VI248_AVX2 mode iterator.
2171         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2172         Use VIMAX_AVX2 mode iterator.
2173         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2174         Use VI mode iterator.
2175         (*andnot<mode>3): Update for AVX2.
2176         (*<any_logic:code><mode>3): Likewise.
2177         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
2178         Use VI1_AVX mode iterator.
2179         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
2180         Use VI2_AVX mode iterator.
2181         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
2182         Use VI1_AVX mode iterator.
2183         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
2184         Use VI8_AVX2 mode iterator.
2185         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
2186         Use VI1_AVX2 mode iterator.
2187         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
2188         Use VI124_AVX2 mode iterator.
2189         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
2190         Use SSESCALARMODE mode iterator.
2191         (abs<mode>2): Use VI124_AVX2 mode iterator.
2192         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
2193         Use VI8_AVX2 mode iterator.
2194         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
2195         Use VI1_AVX2 mode iterator.
2196         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
2197         Use VI1_AVX2 mode iterator.
2198         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
2199         Use VI2_AVX2 mode iterator.
2200         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
2201         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
2202         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
2203         avx_maskstore<ssemodesuffix><avxsizesuffix>.
2204         Use V48_AVX2 mode iterator.
2205         * doc/extend.texi: Document AVX2 built-in functions.
2206         * doc/invoke.texi: Document -mavx2.
2208 2011-08-22  Matthias Klose <doko@debian.org>
2210         Revert:
2211         2011-07-11  Arthur Loiret  <aloiret@debian.org>
2212                     Matthias Klose <doko@debian.org>
2213         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2214         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2215         convention.
2216         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2218 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
2220         PR bootstrap/50146
2221         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
2222         to #ifndef HONOR_REG_ALLOC_ORDER block.
2224 2011-08-21  Richard Henderson  <rth@redhat.com>
2226         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
2227         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
2228         * resource.c (next_insn_no_annul): Likewise.
2229         (mark_set_resources): Likewise.
2230         * reorg.c (delete_from_delay_slot): Likewise.
2231         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
2232         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
2234 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
2236         * config/i386/i386.md (any_div): Remove.
2237         (sgnprefix): Update for removal.
2238         (u): Ditto.
2240 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
2242         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
2243         for ira_reg_class_max_nregs.  Increase pressure by 1.
2244         (mark_pseudo_regno_subword_dead): Use allocno class
2245         for ira_reg_class_max_nregs.
2247 2011-08-20  Richard Henderson  <rth@redhat.com>
2249         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2250         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2251         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2252         config/c6x/ltf.c: Adjust include path for soft-fp.
2254 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
2256         PR other/46770
2257         * config.gcc (tm_file): Add initfini-array.h if
2258         .init_arrary/.fini_array are supported.
2260         * crtstuff.c: Don't generate .ctors nor .dtors sections if
2261         USE_INITFINI_ARRAY is defined.
2263         * output.h (default_elf_init_array_asm_out_constructor): New.
2264         (default_elf_fini_array_asm_out_destructor): Likewise.
2265         * varasm.c (elf_init_array_section): Likewise.
2266         (elf_fini_array_section): Likewise.
2267         (get_elf_initfini_array_priority_section): Likewise.
2268         (default_elf_init_array_asm_out_constructor): Likewise.
2269         (default_elf_fini_array_asm_out_destructor): Likewise.
2271         * config/initfini-array.h: New.
2273 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
2275         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
2276         OK for ST_REGS and FP_REGS before taking those classes into account.
2278 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
2280         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
2281         before checking for annulled branches.
2283 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
2285         * config/i386/i386.c (ix86_binary_operator_ok): Use
2286         satisfies_constraint_L.
2288 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
2289             Michael Matz  <matz@suse.de>
2291         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
2292         trunc (a + copysign (nextafter (0.5, 0.0), a)).
2294 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
2296         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2297         * doc/tm.texi: Regenerate.
2298         * targhooks.c (default_preferred_output_reload_class): Don't use
2299         PREFERRED_OUTPUT_RELOAD_CLASS macro.
2300         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
2302 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
2304         PR tree-optimization/48739
2305         * tree-ssa.c: Include cfgloop.h.
2306         (execute_update_addresses_taken): When updating ssa, if in loop closed
2307         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
2308         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
2310 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
2312         PR rtl-optimization/49936
2313         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
2314         for calculation of max register move costs.
2316 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2318         * c-parser.c (c_parser_postfix_expression): Convert operands of
2319         __builtin_complex to their semantic types.
2321 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2323         PR middle-end/49721
2324         * explow.c (convert_memory_address_addr_space): Also permute the
2325         conversion and addition of constant for zero-extend.
2327 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2329         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
2330         * doc/extend.texi (__builtin_complex): Document.
2332 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2334         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
2335         beyond conversions.
2336         (convert_mult_to_widen): Convert constant inputs to the right type.
2337         (convert_plusminus_to_widen): Don't automatically reject inputs that
2338         are not an SSA_NAME.
2339         Convert constant inputs to the right type.
2341 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2343         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
2344         to the correct type.
2346 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2348         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
2349         unsigned inputs of different modes.
2350         (convert_plusminus_to_widen): Likewise.
2352 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2354         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
2355         'type'.
2356         Use 'type' from caller, not inferred from 'rhs'.
2357         Don't reject non-conversion statements. Do return lhs in this case.
2358         (is_widening_mult_p): Add new argument 'type'.
2359         Use 'type' from caller, not inferred from 'stmt'.
2360         Pass type to is_widening_mult_rhs_p.
2361         (convert_mult_to_widen): Pass type to is_widening_mult_p.
2362         (convert_plusminus_to_widen): Likewise.
2364 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2366         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
2367         Ensure the the larger type is the first operand.
2369 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2371         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
2372         unsupported unsigned multiplies to signed.
2373         (convert_plusminus_to_widen): Likewise.
2375 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2377         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
2378         conversion statement separating multiply-and-accumulate.
2380 2011-08-19  Richard Guenther  <rguenther@suse.de>
2382         PR tree-optimization/50067
2383         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
2384         offset only if we accounted for it.
2386 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2388         * config/arm/arm.md (maddhidi4): Remove '*' from name.
2389         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
2390         * optabs.c (find_widening_optab_handler_and_mode): New function.
2391         (expand_widen_pattern_expr): Use find_widening_optab_handler.
2392         (expand_binop_directly): Likewise.
2393         (expand_binop): Likewise.
2394         * optabs.h (find_widening_optab_handler): New macro define.
2395         (find_widening_optab_handler_and_mode): New prototype.
2396         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
2397         type precision rules.
2398         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
2399         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
2400         (is_widening_mult_rhs_p): Allow widening by more than one mode.
2401         Explicitly disallow mis-matched input types.
2402         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
2403         input types to fit the new handler.
2404         (convert_plusminus_to_widen): Likewise.
2406 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2408         * expr.c (expand_expr_real_2): Use widening_optab_handler.
2409         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2410         (gen_insn): $N now means $a must be wider than $b, not consecutive.
2411         * optabs.c (widened_mode): New function.
2412         (expand_widen_pattern_expr): Use widening_optab_handler.
2413         (expand_binop_directly): Likewise.
2414         (expand_binop): Likewise.
2415         * optabs.h (widening_optab_handlers): New struct.
2416         (optab_d): New member, 'widening'.
2417         (widening_optab_handler): New function.
2418         (set_widening_optab_handler): New function.
2419         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2420         widening_optab_handler.
2421         (convert_plusminus_to_widen): Likewise.
2423 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2425         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2426         pedantic.
2427         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2428         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2430 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2432         * opth-gen.awk: Do not declare target save/restore structures and
2433         functions if IN_RTS defined.
2435 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2437         PR target/49437
2438         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2439         when stack was realigned in interrupt handler prologue.
2441 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
2443         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2444         (quals_from_declspecs): Assert _Noreturn not present.
2445         (grokdeclarator): Handle _Noreturn.
2446         (build_null_declspecs): Initialize noreturn_p.
2447         (declspecs_add_scspec): Handle RID_NORETURN.
2448         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2449         (c_parser_attributes): Handle RID_NORETURN.
2450         * c-tree.h (struct c_declspecs): Add noreturn_p.
2451         * ginclude/stdnoreturn.h: New.
2452         * Makefile.in (USER_H): Add stdnoreturn.h.
2454 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2456         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2457         (OPTION_MASK_ISA_AVX_UNSET): Update.
2458         (OPTION_MASK_ISA_AVX2_UNSET): New.
2459         (ix86_handle_option): Handle OPT_mavx2 case.
2460         * config/i386/cpuid.h (bit_AVX2): New.
2461         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2462         AVX2 feature.
2463         * config/i386/i386-c.c (ix86_target_macros_internal):
2464         Conditionally define __AVX2__.
2465         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2466         Define "core-avx2" processor alias.  Handle avx2 option.
2467         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2468         * config/i386/i386.h (TARGET_AVX2): New.
2469         * config/i386/i386.opt (mavx2): New.
2470         * doc/invoke.texi: Document -mavx2.
2472 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
2474         PR rtl-optimization/49890
2475         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2476         subclasses of class which is superset of a pressure class.
2478 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2479             Igor Zamyatin <igor.zamyatin@intel.com>
2481         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2482         with HOST_WIDE_INT for isa_flag.
2483         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2484         isa variables.
2486         * config/i386/i386.c (ix86_target_string): Replace int with
2487         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
2488         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2489         (pta_flags): Removed.
2490         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2491         (pta): Use HOST_WIDE_INT on flags.
2492         (builtin_isa): Use HOST_WIDE_INT on isa.
2493         (ix86_add_new_builtins): Likewise.
2494         (def_builtin): Use HOST_WIDE_INT on mask.
2495         (def_builtin_const): Likewise.
2496         (builtin_description): Likewise.
2498         * config/i386/i386.opt (ix86_isa_flags): Replace int with
2499         HOST_WIDE_INT.
2500         (ix86_isa_flags_explicit): Likewise.
2501         (x_ix86_isa_flags_explicit): Likewise.
2503 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
2505         PR rtl-optimization/50107
2506         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2507         (ira_hard_reg_in_set_p): New.
2509         * ira-color.c (calculate_saved_nregs): New.
2510         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
2511         hard regs.
2512         (allocno_reload_assign, fast_allocation): Use
2513         ira_hard_reg_set_intersection_p instead of
2514         ira_hard_reg_not_in_set_p.
2516         * ira.c (setup_reg_renumber): Use
2517         ira_hard_reg_set_intersection_p instead of
2518         ira_hard_reg_not_in_set_p.
2519         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2520         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2522         * ira-costs.c (ira_tune_allocno_costs): Use
2523         ira_hard_reg_set_intersection_p instead of
2524         ira_hard_reg_not_in_set_p.
2526 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2527             Igor Zamyatin <igor.zamyatin@intel.com>
2529         * hwint.h (HOST_WIDE_INT_1): New.
2531         * opt-functions.awk (switch_bit_fields): Initialize the
2532         host_wide_int field.
2533         (host_wide_int_var_name): New.
2534         (var_type_struct): Check and return HOST_WIDE_INT.
2536         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2538         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2540         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
2541         check masks for HOST_WIDE_INT.
2543         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2544         (option_enabled): Likewise.
2545         (get_option_state): Likewise.
2547         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
2548         to HOST_WIDE_INT.
2550 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2551             Marc Glisse  <marc.glisse@normalesup.org>
2553         PR libstdc++-v3/1773
2554         * target.def (decl_mangling_context): New C++ hook.
2555         * doc/tm.texi: Regenerate.
2556         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2557         * config/sol2-protos.h: Group by source file.
2558         (solaris_cxx_decl_mangling_context): Declare.
2559         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2560         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2561         Use $<.
2562         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2563         Add sol2-stubs.o to extra_objs.
2565 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
2567         PR target/50009
2568         * stor-layout.c (update_alignment_for_field): Don't ICE on
2569         packed flexible array members if ms_bitfield_layout_p.
2571         PR target/50092
2572         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2573         on the result before returning it.
2575         PR debug/50017
2576         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2577         is a debug stmt, use location of the first non-debug stmt after it.
2579 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2581         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2582         (arm_size_rtx_costs): Likewise.
2584 2011-08-18  Richard Guenther  <rguenther@suse.de>
2586         * tree.h (tree_int_cst_msb): Remove.
2587         * tree.c (tree_int_cst_msb): Likewise.
2588         (tree_int_cst_sign_bit): Move from ...
2589         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2591 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2593         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2594         * doc/tm.texi: Regenerate.
2595         * target.def (rtx_costs): Add an opno parameter.
2596         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2597         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2598         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2599         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2600         * cse.c (COST_IN): Add an opno parameter.
2601         (notreg_cost): Likewise.  Update call to rtx_cost.
2602         (COST, fold_rtx): Update accordingly.
2603         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2604         * expmed.c (emit_store_flag): Likewise.
2605         * optabs.c (avoid_expensive_constant): Add an opno parameter.
2606         Update call to rtx_cost.
2607         (expand_binop_directly, expand_binop): Likewise.
2608         (expand_twoval_binop, prepare_cmp_insn): Likewise.
2609         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2610         (set_src_cost, get_full_set_src_cost): Update accordingly.
2611         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
2612         to target hook.
2613         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
2614         (default_adress_cost): Update calls to rtx_cost.
2616         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2617         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2618         (arm_rtx_costs): Add an opno parameter.
2619         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2620         adjust any recursive rtx-cost calls.
2621         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2622         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2623         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2624         * config/cris/cris.c (cris_rtx_costs): Likewise.
2625         * config/frv/frv.c (frv_rtx_costs): Likewise.
2626         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2627         * config/i386/i386.c (ix86_rtx_costs): Likewise.
2628         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2629         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2630         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2631         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2632         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2633         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2634         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2635         * config/mep/mep.c (mep_rtx_cost): Likewise.
2636         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2637         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
2638         (mips_zero_extend_cost): Add an opno parameter.
2639         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2640         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
2641         to rtx_cost.
2642         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
2643         rtx-cost calls.
2644         * config/pa/pa.c (hppa_rtx_costs): Likewise.
2645         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2646         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
2647         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2648         (rs6000_debug_rtx_costs): Likewise.
2649         * config/s390/s390.c (s390_rtx_costs): Likewise.
2650         * config/score/score-protos.h (score_rtx_costs): Likewise.
2651         * config/score/score.c (score_rtx_costs): Likewise.
2652         * config/sh/sh.c (andcosts): Update call to rtx_cost.
2653         (sh_rtx_costs): Add an opno parameter.
2654         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2655         * config/spu/spu.c (spu_rtx_costs): Likewise.
2656         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2657         * config/v850/v850.c (v850_rtx_costs): Likewise.
2658         * config/vax/vax.c (vax_rtx_costs): Likewise.
2659         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2661 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2663         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
2664         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
2665         rtx_cost.
2666         * calls.c (precompute_register_parameters): Likewise.
2667         * combine.c (expand_compound_operation, make_extraction): Likewise.
2668         (force_to_mode, distribute_and_simplify_rtx): Likewise.
2669         * dse.c (find_shift_sequence): Likewise.
2670         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
2671         * expr.c (compress_float_constant): Likewise.
2672         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2673         * gcse.c (want_to_gcse_p): Likewise.
2674         * ifcvt.c (noce_try_sign_mask): Likewise.
2675         * loop-doloop.c (doloop_optimize): Likewise.
2676         * loop-invariant.c (create_new_invariant): Likewise.
2677         * optabs.c (avoid_expensive_constant): Likewise.
2678         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
2679         (try_replace_in_use, reload_cse_move2add): Likewise.
2680         * reload1.c (calculate_elim_costs_all_insns): Likewise.
2681         (note_reg_elim_costly): Likewise.
2682         * rtlanal.c (insn_rtx_cost): Likewise.
2683         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2684         * stmt.c (lshift_cheap_p): Likewise.
2685         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
2686         * config/avr/avr.c (final_prescan_insn): Likewise.
2687         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2688         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
2690 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2692         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2693         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2694         * cfgloopanal.c (seq_cost): Likewise.
2695         * loop-invariant.c (create_new_invariant): Likewise.
2696         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2697         (reload_cse_move2add): Use get_full_set_rtx_cost.
2699 2011-08-18  Richard Guenther  <rguenther@suse.de>
2701         * expr.c (get_inner_reference): Fix typo in last change.
2703 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
2704             Joseph Myers  <joseph@codesourcery.com>
2706         PR tree-optimization/49963
2707         * hwint.c (absu_hwi): Define.
2708         * hwint.h (absu_hwi): Declare.
2709         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2710         of abs_hwi.
2711         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2712         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2714 2011-08-18  Richard Guenther  <rguenther@suse.de>
2716         * expr.c (get_inner_reference): Sign-extend the constant
2717         twos-complement offset before doing arbitrary precision
2718         arithmetic on it.
2719         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2720         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2721         to get_constraint_for_ptr_offset.
2723 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2725         PR target/50068
2726         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2728 2011-08-17  Richard Guenther  <rguenther@suse.de>
2730         * tree.h (convert_to_ptrofftype_loc): New function.
2731         (convert_to_ptrofftype): Define.
2732         * builtins.c (expand_builtin_bzero): Use size_type_node.
2733         (fold_builtin_bzero): Likewise.
2734         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2735         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2736         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2737         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2738         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2739         * fold-const.c (build_range_check): Negate using the original type.
2740         (fold_unary_loc): Use fold_build_pointer_plus_loc.
2741         * gimple-fold.c (gimple_adjust_this_by_delta): Use
2742         convert_to_ptrofftype.
2743         * gimplify.c (gimplify_self_mod_expr): Likewise.
2744         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2745         (graphite_create_new_loop_guard): Likewise.
2746         * graphite-sese-to-poly.c (my_long_long): Remove.
2747         (scop_ivs_can_be_represented): Adjust.
2748         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2749         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2750         * tree-loop-distribution.c (build_size_arg_loc): Use
2751         size_type_node.
2752         (generate_memset_zero): Simplify.
2753         * tree-mudflap.c: Use fold_convert, not convert.
2754         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2755         its own type.
2756         (determine_offset): Likewise for DR_STEP.
2757         (valid_initializer_p): Likewise.
2758         * tree-profile.c (prepare_instrumented_value): Convert the pointer
2759         to an integer type of same size.
2760         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2761         to sizetype without need.
2762         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2763         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2764         * tree-ssa-loop-manip.c (create_iv): Likewise.
2765         (determine_exit_conditions): Adjust comment.
2766         * tree-ssa-pre.c (create_expression_by_pieces): Use
2767         convert_to_ptrofftype.
2768         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2769         * varasm.c (array_size_for_constructor): Compute using double_ints.
2771 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2773         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2774         when generating an integer result where possible.  Short-cut
2775         comparison against 0 also for QImode.
2777 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2779         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2780         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2781         prototype.
2782         * config/spu/spu.c (spu_legitimize_reload_address): New function.
2783         (spu_legitimate_address_p): Do not check displacement if the base
2784         is an eliminable stack register.
2786 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
2788         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2789         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2790         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2791         m32c_preferred_output_reload_class): Remove.
2792         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2793         Change rclass argument and return types to reg_class_t. Use
2794         reg_class_subset_p instead of class_sizes.
2795         (m32c_preferred_output_reload_class): Make static. Change rclass
2796         argument and return types to reg_class_t.
2797         (TARGET_PREFERRED_RELOAD_CLASS,
2798         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2800 2011-08-16  Kai Tietz  <ktietz@redhat.com>
2802         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2804 2011-08-16  Richard GUenther  <rguenther@suse.de>
2806         PR tree-optimization/50082
2807         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2808         warnings here, instead of ...
2809         (ssa_forward_propagate_and_combine): ... here.
2810         (forward_propagate_into_comparison_1): Adjust.
2811         (forward_propagate_into_comparison): Likewise.
2812         (forward_propagate_into_gimple_cond): Likewise.
2813         (forward_propagate_into_cond): Likewise.
2815 2011-08-16  Andreas Schwab  <schwab@redhat.com>
2817         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2818         instead of ggc_alloc_zone_vec_rtvec_def.
2820 2011-08-16  Richard Guenther  <rguenther@suse.de>
2822         * tree.h (ptrofftype_p): New helper function.
2823         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2824         offset verification.
2825         (verify_gimple_assign_binary): Likewise.
2826         * tree.c (build2_stat): Likewise.
2827         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2828         (reset_evolution_in_loop): Likewise.
2829         * tree-chrec.h (build_polynomial_chrec): Likewise.
2831 2011-08-16  Liang Wang  <lwang1@marvell.com>
2833         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2834         ggc_alloc_zone_vec_rtvec_def.
2836 2011-08-16  Richard Guenther  <rguenther@suse.de>
2838         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2839         helper factored out from ...
2840         (extract_range_from_binary_expr_1): ... here.  Re-structure
2841         to not glob handling too different tree codes.
2843 2011-08-15  Richard Henderson  <rth@redhat.com>
2845         PR middle-end/50006
2846         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2847         setting out to include allocate_stack named pattern as well.
2848         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2849         * stmt.c (expand_stack_restore): Likewise.
2851 2011-08-15  Richard Guenther  <rguenther@suse.de>
2853         PR middle-end/50082
2854         * fold-const.c (maybe_canonicalize_comparison_1): Properly
2855         convert the modified operand to the other operand type.
2856         (fold_comparison): Call maybe_canonicalize_comparison_1 with
2857         useless conversions stripped from comparison operands.
2859 2011-08-15  Richard Guenther  <rguenther@suse.de>
2861         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2862         (extract_range_from_unary_expr_1): Restructure.
2864 2011-08-15  Richard Guenther  <rguenther@suse.de>
2866         PR tree-optimization/50058
2867         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2868         copy matching.
2870 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2872         PR target/50022
2873         * config/arm/arm.c (output_move_double): Add 2 parameters
2874         to count the number of insns emitted and whether to emit or not.
2875         Use the flag to decide when to emit and count number of instructions
2876         that will be emitted.
2877         Handle case where output_move_double might be called for calculating
2878         lengths with an invalid constant.
2879         (arm_count_output_move_double_insns): Define.
2880         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
2881         (output_move_double): Adjust prototype.
2882         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
2883         output_move_double.
2884         ("*movdi_vfp_cortexa8"): Likewise and add attribute
2885         for ce_count.
2886         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
2887         ("*movdf_soft_insn"): Likewise.
2888         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
2889         ("*cirrus_thumb2_movdi"): Likewise.
2890         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
2891         ("*cirrus_movdf_hard_insn"): Likewise.
2892         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
2893         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
2894         ("mov<mode>_internal VMMX"): Likewise.
2895         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
2897 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
2899         * config/i386/i386.c (ix86_expand_round_sse4): New function.
2900         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
2901         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
2902         for TARGET_ROUND.
2904         (rint<mode>2): Simplify TARGET_ROUND check.
2905         (floor<mode>2): Ditto.
2906         (ceil<mode>2): Ditto.
2907         (btrunc<mode>2): Ditto.
2909 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
2911         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
2912         as mmix_preferred_output_reload_class.
2914 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
2916         * PR target/49903
2917         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
2918         (branch_unspec): New insn.
2919         (branch): Beauty farm.
2920         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
2921         to be IF_THEN_ELSE.
2922         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
2923         New static functions.
2924         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
2925         Use CONST_INT_P.  Beauty.
2927 2011-08-12  Richard Henderson  <rth@redhat.com>
2929         PR rtl-opt/49994
2930         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
2931         * sched-deps.c (init_deps): Clear it.
2932         (deps_analyze_insn): Consume it.
2933         (sched_analyze_insn): Fill it.
2935 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2937         PR target/48328
2938         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
2939         for tbh instructions.
2941 2011-08-12  Diego Novillo  <dnovillo@google.com>
2943         * data-streamer.h (streamer_write_zero): Rename from output_zero.
2944         (streamer_write_uhwi): Rename from lto_output_uleb128.
2945         (streamer_write_hwi): Rename from output_sleb128.
2946         (streamer_write_string): Rename from lto_output_string.
2947         (streamer_string_index): Rename from lto_string_index.
2948         (streamer_write_string_with_length): Rename from
2949         lto_output_string_with_length.
2950         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
2951         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
2952         (streamer_read_string): Rename from lto_input_string.
2953         (streamer_read_indexed_string): Rename from input_string_internal.
2954         (streamer_read_uhwi): Rename from lto_input_uleb128.
2955         (streamer_read_hwi): Rename from lto_input_sleb128.
2956         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
2957         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
2958         (streamer_write_enum): Rename from lto_output_enum.
2959         (streamer_read_enum): Rename from lto_input_enum.
2960         (streamer_write_record_start): Rename from output_record_start.
2961         (streamer_read_record_start): Rename from input_record_start.
2962         (streamer_write_bitpack): Rename from lto_output_bitpack.
2963         (streamer_read_bitpack): Rename from lto_input_bitpack.
2964         (streamer_write_char_stream): Rename from lto_output_1_stream.
2965         (streamer_read_uchar): Rename from lto_input_1_unsigned.
2966         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
2967         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
2968         (streamer_read_string_cst): Rename from input_string_cst.
2969         (streamer_read_chain): Rename from lto_input_chain.
2970         (streamer_alloc_tree): Rename from lto_materialize_tree.
2971         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
2972         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
2973         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
2974         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
2975         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
2976         (streamer_write_chain): Rename from lto_output_chain.
2977         (streamer_write_tree_header): Rename from lto_output_tree_header.
2978         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
2979         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
2980         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
2981         (streamer_write_builtin): Rename from lto_output_builtin_tree.
2982         (streamer_check_handled_ts_structures): Rename from
2983         check_handled_ts_structures.
2984         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
2985         (streamer_tree_cache_insert_at): Rename from
2986         lto_streamer_cache_insert_at.
2987         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
2988         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
2989         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
2990         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
2991         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
2992         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
2993         (write_identifier): Rename from output_identifier.
2994         (write_ts_common_tree_pointers): Rename from
2995         lto_output_ts_common_tree_pointers.
2996         (write_ts_vector_tree_pointers): Rename from
2997         lto_output_ts_vector_tree_pointers.
2998         (write_ts_complex_tree_pointers): Rename from
2999         lto_output_ts_complex_tree_pointers.
3000         (write_ts_decl_minimal_tree_pointers): Rename from
3001         lto_output_ts_decl_minimal_tree_pointers.
3002         (write_ts_decl_common_tree_pointers): Rename from
3003         lto_output_ts_decl_common_tree_pointers.
3004         (write_ts_decl_non_common_tree_pointers): Rename from
3005         lto_output_ts_decl_non_common_tree_pointers.
3006         (write_ts_decl_with_vis_tree_pointers): Rename from
3007         lto_output_ts_decl_with_vis_tree_pointers.
3008         (write_ts_field_decl_tree_pointers): Rename from
3009         lto_output_ts_field_decl_tree_pointers.
3010         (write_ts_function_decl_tree_pointers): Rename from
3011         lto_output_ts_function_decl_tree_pointers.
3012         (write_ts_type_common_tree_pointers): Rename from
3013         lto_output_ts_type_common_tree_pointers.
3014         (write_ts_type_non_common_tree_pointers): Rename from
3015         lto_output_ts_type_non_common_tree_pointers.
3016         (write_ts_list_tree_pointers): Rename from
3017         lto_output_ts_list_tree_pointers.
3018         (write_ts_vec_tree_pointers): Rename from
3019         lto_output_ts_vec_tree_pointers.
3020         (write_ts_exp_tree_pointers): Rename from
3021         lto_output_ts_exp_tree_pointers.
3022         (write_ts_block_tree_pointers): Rename from
3023         lto_output_ts_block_tree_pointers.
3024         (write_ts_binfo_tree_pointers): Rename from
3025         lto_output_ts_binfo_tree_pointers.
3026         (write_ts_constructor_tree_pointers): Rename from
3027         lto_output_ts_constructor_tree_pointers.
3028         (write_ts_target_option): Rename from lto_output_ts_target_option.
3029         (write_ts_translation_unit_decl_tree_pointers): Rename from
3030         lto_output_ts_translation_unit_decl_tree_pointers.
3031         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
3032         Rename from lto_streamer_cache_add_to_node_array.
3033         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
3034         (record_common_node): Rename from lto_record_common_node.
3036         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
3037         declarations.
3038         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
3039         function.
3040         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
3041         unused function.
3042         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
3043         (ipa-reference.o): Likewise.
3044         * lto-section-out.c: Include data-streamer.h.
3045         * ipa-reference.c: Include data-streamer.h.
3047 2011-08-12  Nick Clifton  <nickc@redhat.com>
3049         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
3050         * doc/md.texi (cmpstrn): Note that the comparison stops if both
3051         fetched bytes are zero.
3052         (cmpstr): Likewise.
3053         (cmpmem): Note that the comparison does not stop if both of the
3054         fetched bytes are zero.
3056 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
3058         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
3059         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
3060         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
3061         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
3062         to integer_type_node.
3063         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
3064         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
3065         * builtins.c (expand_builtin_in): Ditto.
3066         (mathfn_built_in_1): Ditto.
3067         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
3068         BUILT_IN_IFLOOR.
3069         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
3070         BUILT_IN_IROUND.
3071         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
3072         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
3073         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
3075 2011-08-12  Richard Guenther  <rguenther@suse.de>
3077         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
3079 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
3081         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
3083 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
3085         * config/arm/arm.c (get_label_padding): New function.
3086         (create_fix_barrier, arm_reorg): Use it.
3088 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
3090         PR target/49781
3091         * config/i386/i386.md (*lea_5_zext): New.
3092         (*lea_6_zext): Ditto.
3093         * config/i386/predicates.md (const_32bit_mask): New predicate.
3094         (lea_address_operand): Reject AND.
3095         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3096         const_32bit_mask immediate.
3097         (ix86_print_operand_address): Handle AND.
3098         (memory_address_length): Ditto.
3100 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
3101             Brian Hackett  <bhackett1024@gmail.com>
3103         * plugin.def: Add event for finish_decl.
3104         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3105         * c-decl.c (finish_decl): Invoke callbacks on above event.
3106         * doc/plugins.texi: Document above event.
3108 2011-08-11  Richard Guenther  <rguenther@suse.de>
3110         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3111         lookups, make looking through aggregate copies stronger.
3113 2011-08-11  Richard Henderson  <rth@redhat.com>
3115         PR bootstrap/50018
3116         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3118 2011-08-11  Richard Guenther  <rguenther@suse.de>
3120         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3121         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3122         (vrp_visit_stmt): Likewise.
3124 2011-08-11  Richard Guenther  <rguenther@suse.de>
3126         PR middle-end/50040
3127         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3128         load of the other piece with TREE_NO_WARNING.
3129         * tree-flow.h (warn_uninit): Adjust prototype.
3130         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3131         the base variable and the expression that is used separately.
3132         Properly query all TREE_NO_WARNING flags.
3133         (struct walk_data): Remove.
3134         (warn_uninitialized_var): Likewise.
3135         (warn_uninitialized_vars): Do not walk gimple pieces but simply
3136         look at all SSA uses of the statement.  Handle unused memory
3137         separately.
3138         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3140 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
3142         * config/rx/rx.md (movsicc): Allow register to register transfers.
3143         (*movsicc): Likewise.
3144         (*stcc): Restrict this pattern to EQ and NE compares.
3145         (*stcc_reg): New pattern.  Works for any comparison but only for
3146         register transfers.
3148 2011-08-11   Diego Novillo  <dnovillo@google.com>
3150         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3151         Call stream_write_tree instead of output_record_start.
3152         (lto_output_ts_binfo_tree_pointers): Likewise.
3154         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3155         Convert it to a macro.
3156         (stream_read_tree): Likewise.
3158         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3159         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3161         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3162         and tree_read_bitfields.
3163         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3164         (lto_write_tree): Call it.
3165         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3166         * streamer-hooks.h (struct streamer_hooks): Remove fields
3167         name, is_streamable and alloc_tree. Update all users.
3168         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3169         (lto_materialize_tree): ... here.
3170         Handle CALL_EXPR codes.
3171         Remove call to lto_streamer_cache_append.
3172         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3173         * tree-streamer.h (tree_read_bitfields): Declare.
3175         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
3176         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
3177         * tree-streamer.h (stream_read_tree): New.  Replace all calls
3178         to lto_input_tree with it.
3179         (stream_write_tree): New.  Replace all calls to lto_output_tree,
3180         lto_output_tree_ref and lto_output_tree_or_ref with it.
3181         * lto-streamer-in.c (lto_read_tree): Inline code from
3182         lto_streamer_read_tree.
3183         (lto_input_tree): Move from tree-streamer-in.c.
3184         * lto-streamer-out.c (lto_output_tree_ref): Make static.
3185         Remove handling of NULL values for EXPR.
3186         Do not handle EXPRs that are not indexable.
3187         (lto_write_tree): Move from tree-streamer-out.c.
3188         Inline lto_streamer_write_tree.
3189         (lto_output_tree): Move from tree-streamer-out.c.
3190         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
3191         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
3192         (lto_preload_common_nodes): Likewise.
3193         Remove assertions and adjustments for nodes
3194         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
3195         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
3196         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
3197         * lto-streamer.h (lto_input_tree): Declare.
3198         (lto_output_tree_ref): Remove.
3199         * streamer-hooks.h (struct streamer_hooks): Remove fields
3200         preload_common_nodes, indexable_with_decls_p,
3201         pack_value_fields, unpack_value_fields and output_tree_header.
3202         Update all users.
3203         * tree-streamer-in.c (lto_materialize_tree): Make extern.
3204         (lto_input_tree_pointers): Likewise.
3205         (lto_read_tree): Move to lto-streamer-in.c.
3206         (lto_input_integer_cst): Make extern.
3207         (lto_get_pickled_tree): Likewise.
3208         (lto_get_builtin_tree): Likewise.
3209         (lto_input_tree): Move to lto-streamer-in.c.
3210         * tree-streamer-out.c (pack_value_fields): Make extern.
3211         (lto_output_tree_or_ref): Remove.  Replace all callers with
3212         calls to stream_write_tree.
3213         (lto_output_builtin_tree): Make extern.
3214         (lto_streamer_write_tree): Inline into lto_write_tree.
3215         (lto_output_tree_pointers): Make extern.
3216         (lto_output_tree_header): Likewise.
3217         (lto_output_integer_cst): Likewise.
3218         (lto_write_tree): Move to lto-streamer-out.c.
3219         (lto_output_tree): Likewise.
3220         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
3221         (preload_common_nodes): Likewise.
3222         (lto_streamer_cache_create): Call it.
3223         * tree-streamer.h: Include streamer-hooks.h.
3224         (stream_write_tree): New.
3225         (stream_read_tree): New.
3226         (lto_input_tree): Remove.
3227         (lto_materialize_tree): Declare.
3228         (lto_input_tree_pointers): Declare.
3229         (lto_get_pickled_tree): Declare.
3230         (lto_get_builtin_tree): Declare.
3231         (lto_input_integer_cst): Declare.
3232         (lto_output_tree_header): Declare.
3233         (pack_value_fields): Declare.
3234         (lto_output_tree_pointers): Declare.
3235         (lto_output_integer_cst): Declare.
3236         (lto_output_builtin_tree): Declare.
3238 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3240         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
3241         only if producer writes to the register given by regno.
3243 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3244             Alexander Monakov  <amonakov@ispras.ru>
3246         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
3247         (sched_get_condition_with_rev_uncached): ... this.  Factor out
3248         condition caching logic into ...
3249         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
3250         attempt to use cache for instructions with zero luid.
3251         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
3252         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
3254 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3256         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
3257         get_seqno_for_a_jump.  Update the caller.
3258         (get_seqno_by_succs): New.  Use it ...
3259         (get_seqno_for_a_jump): ... here to find a seqno if looking at
3260         predecessors was not sufficient.
3261         (get_seqno_by_preds): Include head in iteration range, exclude insn.
3263 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3265         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
3267 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3269         * sel-sched-ir.h (register_unavailable_p): Declare.
3270         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
3271         (set_unavailable_target_for_expr): ... here to properly test
3272         availability of a register.
3273         (speculate_expr): Ditto.
3274         * sel-sched.c (substitute_reg_in_expr): Ditto.
3275         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
3277 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3279         * sel-sched.c (verify_target_availability): Fix usage of
3280         hard_regno_nregs.
3282 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3284         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
3285         recognized by cannot_copy_insn_p hook and volatile instructions.
3287 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3289         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
3291 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
3293         * doc/md.texi (define_bypass): Say that the instruction names can
3294         be filename-style globs.
3295         * Makefile.in (FNMATCH_H): Define.
3296         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
3297         * genattrtab.c: Include fnmatch.h.
3298         (bypass_list): Change field name from "insn" to "pattern".
3299         (gen_bypass_1): Update accordingly.
3300         (process_bypasses): Use fnmatch to check for matches between
3301         insn reservations and define_bypasses.
3302         * genautomata.c: Include fnmatch.h.
3303         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
3304         and out_pattern respectively.
3305         (gen_bypass, insert_bypass): Update accordingly.
3306         (for_each_matching_insn, process_bypass_2, process_bypass_1)
3307         (process_bypass): New functions.
3308         (process_decls): Use process_bypass.  Update after field name changes.
3310 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
3312         PR target/49687
3313         * config/avr/avr.md (smulqi3_highpart): New insn.
3314         (umulqi3_highpart): New insn.
3315         (*subqi3.ashiftrt7): New insn.
3316         (smulhi3_highpart): New expander.
3317         (umulhi3_highpart): Nex expander.
3318         (*smulhi3_highpart_call): New insn.
3319         (*umulhi3_highpart_call): New insn.
3320         (extend_u): New code attribute.
3321         (extend_prefix): Rename code attribute to extend_su.
3322         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
3323         widening QI/HI multiply.
3325 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
3327         PR tree-optimization/50039
3328         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
3329         that DEF_STMT has a stmt_vec_info.
3331 2011-08-10  Richard Guenther  <rguenther@suse.de>
3333         * tree.h (can_trust_pointer_alignment): Remove.
3334         * builtins.c (can_trust_pointer_alignment): Remove.
3336 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3338         * c-typeck.c (scalar_to_vector): New function. Try scalar to
3339         vector conversion.
3340         (stv_conv): New enum for scalar_to_vector return type.
3341         (build_binary_op): Adjust.
3342         * doc/extend.texi: Description of scalar to vector expansion.
3344 2011-08-10  Richard Guenther  <rguenther@suse.de>
3346         * tree.h (get_pointer_alignment): Remove max-align argument.
3347         (get_object_alignment): Likewise.
3348         * builtins.c (get_object_alignment_1): Adjust.
3349         (get_object_alignment): Remove max-align argument.
3350         (get_pointer_alignment): Likewise.
3351         (expand_builtin_strlen): Adjust.
3352         (expand_builtin_memcpy): Likewise.
3353         (expand_builtin_mempcpy_args): Likewise.
3354         (expand_builtin_strncpy): Likewise.
3355         (expand_builtin_memset_args): Likewise.
3356         (expand_builtin_memcmp): Likewise.
3357         (expand_builtin_strcmp): Likewise.
3358         (expand_builtin_strncmp): Likewise.
3359         (get_builtin_sync_mem): Likewise.
3360         (fold_builtin_memset): Likewise.
3361         (fold_builtin_memory_op): Likewise.
3362         (expand_builtin_memory_chk): Likewise.
3363         * emit-rtl.c (get_mem_align_offset): Likewise.
3364         (set_mem_attributes_minus_bitpos): Likewise.
3365         * expr.c (expand_assignment): Likewise.
3366         (expand_expr_real_1): Likewise.
3367         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
3368         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3369         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
3370         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3371         * value-prof.c (gimple_stringops_transform): Likewise.
3373 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
3375         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
3376         * doc/tm.texi: Regenerate.
3378 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
3380         PR target/29560
3381         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
3382         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
3383         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
3384         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
3385         shift target is unused.
3387 2011-08-10  Richard Guenther  <rguenther@suse.de>
3389         PR tree-optimization/49937
3390         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
3391         using get_object_alignment_1.
3393 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
3395         * config/i386/i386.c (ix86_emit_i387_round): New function.
3396         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
3397         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
3398         Use ix86_emit_i387_round to expand round function for i387 math.
3399         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
3400         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
3402 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3404         * config/sync.c: Move to ../libgcc.
3405         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3406         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3407         Remove.
3409 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3411         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3412         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3413         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3414         Change 'from' and 'to' arguments type to reg_class_t.
3415         (TARGET_REGISTER_MOVE_COST): Define.
3417 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
3419         PR target/50026
3420         Revert:
3421         PR rtl-optimization/49990
3422         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3423         ignore classes which can not change mode.
3424         (find_costs_and_classes): Ditto.
3426 2011-08-09  Richard Guenther  <rguenther@suse.de>
3428         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3429         information for ranges with only negative values.
3430         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3431         BIT_AND_EXPR handling to handle ranges with negative values.
3433 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
3435         * config/i386/i386.c: Remove traling spaces.
3436         * config/i386/sse.md: Likewise.
3437         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3438         (*fma_fmsub_<mode>): Likewise.
3439         (*fma_fnmadd_<mode>): Likewise.
3440         (*fma_fnmsub_<mode>): Likewise.
3442 2011-08-09  Nick Clifton  <nickc@redhat.com>
3444         * config/rx/rx.md: Disable extender peepholes at -O3.
3446 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
3448         PR target/49781
3449         * config/i386/i386.md (reload_noff_load): New.
3450         (reload_noff_store): Ditto.
3451         * config/i386/i386.c (ix86_secondary_reload): Use
3452         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3453         double-word moves from/to non-offsetable addresses instead of
3454         generating XMM temporary.
3456 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3458         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3460 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
3462         PR tree-optimization/50014
3463         * tree-vect-loop.c (vectorizable_reduction): Get def type before
3464         calling vect_get_vec_def_for_stmt_copy ().
3466 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
3468         PR rtl-optimization/49990
3469         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3470         ignore classes which can not change mode.
3471         (find_costs_and_classes): Ditto.
3473 2011-08-08  Richard Henderson  <rth@redhat.com>
3475         PR middle-end/49990
3476         * config/i386/i386.c (ix86_expand_prologue): Call
3477         for SEH target gen_prologue_use instead of gen_blockage
3478         at prologue's end.
3480 2011-08-08  Martin Jambor  <mjambor@suse.cz>
3482         PR middle-end/49923
3483         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3484         memory alignment.
3486 2011-08-08   Diego Novillo  <dnovillo@google.com>
3488         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3489         (DATA_STREAMER_H): New.
3490         (GIMPLE_STREAMER_H): New.
3491         (TREE_STREAMER_H): New.
3492         (STREAMER_HOOKS_H): New.
3493         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3494         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3495         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3496         (data-streamer.o): New.
3497         (data-streamer-in.o): New.
3498         (data-streamer-out.o): New.
3499         (gimple-streamer-in.o): New.
3500         (gimple-streamer-out.o): New.
3501         (streamer-hooks.o): New.
3502         (tree-streamer.o): New.
3503         (tree-streamer-in.o): New.
3504         (tree-streamer-out.o): New.
3505         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3506         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3507         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3508         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3509         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3510         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3511         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3512         (ipa-inline-analysis.o): Likewise.
3513         (ipa-pure-const.o): Likewise.
3514         * data-streamer-in.c: New.
3515         * data-streamer-out.c: New.
3516         * data-streamer.c: New.
3517         * data-streamer.h: New.
3518         * gimple-streamer-in.c: New.
3519         * gimple-streamer-out.c: New.
3520         * gimple-streamer.h: New.
3521         * ipa-inline-analysis.c: Include data-streamer.h.
3522         * ipa-prop.c: Include data-streamer.h.
3523         * ipa-pure-const.c: Include data-streamer.h.
3524         * lto-cgraph.c: Include data-streamer.h.
3525         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3526         (lto_input_widest_uint_uleb128): Likewise.
3527         (lto_input_sleb128): Likewise.
3528         (bp_unpack_var_len_unsigned): Likewise.
3529         (bp_unpack_var_len_int): Likewise.
3530         * lto-section-out.c (lto_output_uleb128_stream): Move to
3531         data-streamer-out.c.
3532         (lto_output_widest_uint_uleb128_stream): Likewise.
3533         (lto_output_sleb128_stream): Likewise.
3534         (bp_pack_var_len_unsigned): Likewise.
3535         (bp_pack_var_len_int): Likewise.
3536         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3537         (struct string_slot): Remove.  Update all users.
3538         (lto_tag_check_set): Make extern.
3539         (lto_tag_check_range): Move to lto-streamer.h.
3540         (lto_tag_check): Likewise.
3541         (hash_string_slot_node): Remove.  Update all users.
3542         (eq_string_slot_node): Remove.  Update all users.
3543         (string_for_index): Move to data-streamer-in.c
3544         (input_string_internal): Likewise.
3545         (input_string_cst): Move to tree-streamer-in.c.
3546         (input_identifier): Likewise.
3547         (lto_input_string): Move to data-streamer-in.c
3548         (input_record_start): Move to data-streamer.h
3549         (canon_file_name): Use new definition of struct string_slot
3550         from data-streamer.h.  Set S_SLOT.LEN.
3551         (lto_input_location): Make extern.
3552         (lto_input_chain): Move to tree-streamer-in.c.
3553         (lto_init_eh): Make extern.
3554         (input_phi): Move to gimple-streamer-in.c.
3555         (input_gimple_stmt): Likewise.
3556         (input_bb): Likewise.
3557         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3558         (unpack_ts_real_cst_value_fields): Likewise.
3559         (unpack_ts_fixed_cst_value_fields): Likewise.
3560         (unpack_ts_decl_common_value_fields): Likewise.
3561         (unpack_ts_decl_wrtl_value_fields): Likewise.
3562         (unpack_ts_decl_with_vis_value_fields): Likewise.
3563         (unpack_ts_function_decl_value_fields): Likewise.
3564         (unpack_ts_type_common_value_fields): Likewise.
3565         (unpack_ts_block_value_fields): Likewise.
3566         (unpack_ts_translation_unit_decl_value_fields): Likewise.
3567         (unpack_value_fields): Likewise.
3568         (lto_materialize_tree): Likewise.
3569         (lto_input_ts_common_tree_pointers): Likewise.
3570         (lto_input_ts_vector_tree_pointers): Likewise.
3571         (lto_input_ts_complex_tree_pointers): Likewise.
3572         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3573         (lto_input_ts_decl_common_tree_pointers): Likewise.
3574         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3575         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3576         (lto_input_ts_field_decl_tree_pointers): Likewise.
3577         (lto_input_ts_function_decl_tree_pointers): Likewise.
3578         (lto_input_ts_type_common_tree_pointers): Likewise.
3579         (lto_input_ts_type_non_common_tree_pointers): Likewise.
3580         (lto_input_ts_list_tree_pointers): Likewise.
3581         (lto_input_ts_vec_tree_pointers): Likewise.
3582         (lto_input_ts_exp_tree_pointers): Likewise.
3583         (lto_input_ts_block_tree_pointers): Likewise.
3584         (lto_input_ts_binfo_tree_pointers): Likewise.
3585         (lto_input_ts_constructor_tree_pointers): Likewise.
3586         (lto_input_ts_target_option): Likewise.
3587         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3588         (lto_input_tree_pointers): Likewise.
3589         (lto_get_pickled_tree): Likewise.
3590         (lto_get_builtin_tree): Likewise.
3591         (lto_read_tree): Likewise.
3592         (lto_input_integer_cst): Likewise.
3593         (lto_input_tree): Likewise.
3594         * lto-streamer-out.c: Include data-streamer.h,
3595         gimple-streamer.h and streamer-hooks.h.
3596         (struct string_slot): Move to data-streamer.h.
3597         (hash_string_slot_node): Likewise.
3598         (eq_string_slot_node): Likewise.
3599         (lto_string_index): Move to data-streamer-out.c.
3600         (lto_output_string_with_length): Likewise.
3601         (lto_output_string): Likewise.
3602         (output_string_cst): Move to tree-streamer-out.c.
3603         (output_identifier): Likewise.
3604         (output_zero): Move to data-streamer-out.c
3605         (output_uleb128): Likewise.
3606         (output_sleb128): Likewise.
3607         (output_record_start): Move to data-streamer.h
3608         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3609         (pack_ts_real_cst_value_fields): Likewise.
3610         (pack_ts_fixed_cst_value_fields): Likewise.
3611         (pack_ts_decl_common_value_fields): Likewise.
3612         (pack_ts_decl_wrtl_value_fields): Likewise.
3613         (pack_ts_decl_with_vis_value_fields): Likewise.
3614         (pack_ts_function_decl_value_fields): Likewise.
3615         (pack_ts_type_common_value_fields): Likewise.
3616         (pack_ts_block_value_fields): Likewise.
3617         (pack_ts_translation_unit_decl_value_fields): Likewise.
3618         (pack_value_fields): Likewise.
3619         (lto_output_chain): Likewise.
3620         (lto_output_ts_common_tree_pointers): Likewise.
3621         (lto_output_ts_vector_tree_pointers): Likewise.
3622         (lto_output_ts_complex_tree_pointers): Likewise.
3623         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3624         (lto_output_ts_decl_common_tree_pointers): Likewise.
3625         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
3626         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
3627         (lto_output_ts_field_decl_tree_pointers): Likewise.
3628         (lto_output_ts_function_decl_tree_pointers): Likewise.
3629         (lto_output_ts_type_common_tree_pointers): Likewise.
3630         (lto_output_ts_type_non_common_tree_pointers): Likewise.
3631         (lto_output_ts_list_tree_pointers): Likewise.
3632         (lto_output_ts_vec_tree_pointers): Likewise.
3633         (lto_output_ts_exp_tree_pointers): Likewise.
3634         (lto_output_ts_block_tree_pointers): Likewise.
3635         (lto_output_ts_binfo_tree_pointers): Likewise.
3636         (lto_output_ts_constructor_tree_pointers): Likewise.
3637         (lto_output_ts_target_option): Likewise.
3638         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
3639         (lto_output_tree_pointers): Likewise.
3640         (lto_output_tree_header): Likewise.
3641         (lto_output_builtin_tree): Likewise.
3642         (lto_write_tree): Likewise.
3643         (lto_output_integer_cst): Likewise.
3644         (lto_output_tree): Likewise.
3645         (output_phi): Move to gimple-streamer-out.c.
3646         (output_gimple_stmt): Likewise.
3647         (output_bb): Likewise.
3648         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
3649         (streamer_hooks): Move to streamer-hooks.c.
3650         (check_handled_ts_structures): Move to tree-streamer.c
3651         (lto_streamer_cache_add_to_node_array): Likewise.
3652         (lto_streamer_cache_insert_1): Likewise.
3653         (lto_streamer_cache_insert): Likewise.
3654         (lto_streamer_cache_insert_at): Likewise.
3655         (lto_streamer_cache_append): Likewise.
3656         (lto_streamer_cache_lookup): Likewise.
3657         (lto_streamer_cache_get): Likewise.
3658         (lto_record_common_node): Likewise.
3659         (lto_preload_common_nodes): Likewise.
3660         (lto_streamer_cache_create): Likewise.
3661         (lto_streamer_cache_delete): Likewise.
3662         (streamer_hooks_init): Move to streamer-hooks.c.
3663         * lto-streamer.h: Include diagnostic.h
3664         (struct output_block, struct lto_input_block,
3665         struct data_in, struct bitpack_d): Remove forward declarations.
3666         (struct bitpack_d): Move to data-streamer.h.
3667         (struct lto_streamer_cache_d): Move to tree-streamer.h.
3668         (struct streamer_hooks): Move to streamer-hooks.h.
3669         (bp_pack_var_len_unsigned): Move to data-streamer.h.
3670         (bp_pack_var_len_int): Likewise.
3671         (bp_unpack_var_len_unsigned): Likewise.
3672         (bp_unpack_var_len_int): Likewise.
3673         (lto_input_location): Declare.
3674         (lto_tag_check_set): Declare.
3675         (lto_init_eh): Declare.
3676         (lto_output_tree_ref): Declare.
3677         (lto_output_location): Declare.
3678         (bitpack_create): Move to data-streamer.h.
3679         (bp_pack_value): Likewise.
3680         (lto_output_bitpack): Likewise.
3681         (lto_input_bitpack): Likewise.
3682         (bp_unpack_value): Likewise.
3683         (lto_output_1_stream): Likewise.
3684         (lto_input_1_unsigned): Likewise.
3685         (lto_output_int_in_range): Likewise.
3686         (lto_input_int_in_range): Likewise.
3687         (bp_pack_int_in_range): Likewise.
3688         (bp_unpack_int_in_range): Likewise.
3689         (lto_output_enum): Likewise.
3690         (lto_input_enum): Likewise.
3691         (bp_pack_enum): Likewise.
3692         (bp_unpack_enum): Likewise.
3693         * streamer-hooks.c: New.
3694         * streamer-hooks.h: New.
3695         * tree-streamer-in.c: New.
3696         * tree-streamer-out.c: New.
3697         * tree-streamer.c: New.
3698         * tree-streamer.h: New.
3700 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3702         * gthr-posix95.h: Remove.
3703         * gthr.h [_PTHREADS95]: Remove.
3704         * configure.ac (enable_threads): Remove posix95.
3705         * configure: Regenerate.
3706         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3708 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
3710         PR target/49781
3711         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3712         SImode addresses.
3713         (ix86_print_operand_address): Handle zero-extended addresses.
3714         (memory_address_length): Add length of addr32 prefix for
3715         zero-extended addresses.
3716         (ix86_secondary_reload): Handle moves to/from double-word general
3717         registers from/to zero-extended addresses.
3718         * config/i386/predicates.md (lea_address_operand): Reject
3719         zero-extended operands.
3721 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
3723         PR other/48007
3724         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3726         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3727         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3729         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3730         (_Unwind_Context_Reg_Val): Likewise.
3731         (_Unwind_Get_Unwind_Word): Likewise.
3732         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3733         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3734         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3735         for EXTENDED_CONTEXT_BIT.
3736         (__frame_state_for): Likewise.
3737         (uw_init_context_1): Likewise.
3738         (_Unwind_GetGR): Updated.
3739         (_Unwind_SetGR): Likewise.
3740         (_Unwind_GetGRPtr): Likewise.
3741         (_Unwind_SetGRPtr): Likewise.
3742         (_Unwind_SetGRValue): Likewise.
3743         (_Unwind_GRByValue): Likewise.
3744         (uw_install_context_1): Likewise.
3746         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3747         ASSUME_EXTENDED_UNWIND_CONTEXT.
3748         * doc/tm.texi: Regenerated.
3750 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3752         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3754 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3756         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3757         Linux/GNU-specific.
3758         (DEC Alpha Options, -mtune): Likewise.
3759         (MIPS Options, -march): native is supported on IRIX.
3761 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3763         * config/sparc/driver-sparc.c: New file.
3764         * config/sparc/x-sparc: New file.
3765         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3766         * config/sparc/sparc.opt (native): New value for enum processor_type.
3767         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3768         * config/sparc/sparc.c (sparc_option_override): Abort if
3769         PROCESSOR_NATIVE gets here.
3770         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3771         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3772         DRIVER_SELF_SPECS): Define.
3773         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3774         (SPARC Options, -mtune): Likewise.
3775         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3776         Substitute result.
3777         * configure: Regenerate.
3778         * Makefile.in (EXTRA_GCC_LIBS): Set.
3779         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3780         (cpp$(exeext)): Likewise.
3782 2011-08-08  Richard Guenther  <rguenther@suse.de>
3784         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3785         split out from ...
3786         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
3787         by composition.
3789 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
3791         PR tree-optimization/50005
3792         * ipa-inline-analysis (remap_predicate): Add cast to
3793         silence signed/unsigned comparison warning.
3795 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3797         * modulo-sched.c (get_sched_window): Use a table for the debug output.
3798         Print the current ii.
3799         (sms_schedule_by_order): Reduce whitespace in dump line.
3801 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3803         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3804         and one loop for successors.  Fix upper bound of memory range.
3806 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3808         PR target/50001
3809         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3810         (TARGET_INSTANTIATE_DECLS): New define.
3812 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
3813             Mikael Morin   <mikael.morin@sfr.fr>
3815         * Makefile.in (INCLUDES_FOR_TARGET): New.
3816         (LIBGCC2_CFLAGS): Use it.
3817         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3819 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3821         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3822         frame->save_regs_using_mov calculation.
3824 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3826         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3827         * config/i386/sse.md (castmode): New mode attribute.
3828         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3829         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3831 2011-08-05  Jan Hubicka  <jh@suse.cz>
3833         PR middle-end/49494
3834         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3836 2011-08-05  Jan Hubicka  <jh@suse.cz>
3838         PR middle-end/49500
3839         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3840         handle aliases.
3841         (create_emultls_var):New function.
3842         (ipa_lower_emutls): Handle aliases correctly.
3844 2011-08-05  Jan Hubicka  <jh@suse.cz>
3846         PR middle-end/49735
3847         * ipa-inline.c (recursive_inlining): Look through aliases.
3849 2011-08-05  Jason Merrill  <jason@redhat.com>
3851         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3852         declarations to beginning of function.
3854 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3856         PR rtl-optimization/49900
3857         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3858         ensure basic blocks stay in the same order.
3860 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
3862         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3863         store_bit_field.
3864         (s390_expand_atomic): Same.
3866 2011-08-05  Richard Henderson  <rth@redhat.com>
3868         PR rtl-opt/49977
3869         * dwarf2cfi.c (scan_insn_after): Split out of ...
3870         (scan_trace): ... here.  Correctly place notes wrt sequences.
3872 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3873             Richard Henderson  <rth@redhat.com>
3875         PR rtl-opt/49982
3876         * expr.c (fixup_args_size_notes): Look through no-op moves.
3878 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3880         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
3881         of "m" for operand 0.  Add type and mode attribute.
3882         (*pushxf_nointeger"): Use "<" constraint for operand 0.
3883         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
3884         constraint instead of "o" for opreand 1.
3885         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
3886         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
3887         operand 0, alternative 4.
3888         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
3890 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3892         * config/i386/predicates.md (lea_address_operand): Rename from
3893         no_seg_address_operand.
3894         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
3895         (*lea_1_zext): Ditto.
3896         (*lea_2): Ditto.
3897         (*lea_2_zext): Ditto.
3899 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3901         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
3902         parts.base and parts.index.
3903         * config/i386/predicates.md (aligned_operand): Ditto.
3904         (cmpxchg8b_pic_memory_operand): Ditto.
3906 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3908         * config/soft-fp: Move to ../libgcc.
3909         * Makefile.in (SFP_MACHINE): Remove.
3910         (libgcc-support): Remove $(SFP_MACHINE) dependency.
3911         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
3912         * config/arm/t-arm-softfp: Move to
3913         ../libgcc/config/arm/t-softfp.
3914         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
3915         * config/c6x/t-c6x-softfp: Remove.
3916         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
3917         * config/i386/t-fprules-softfp: Move to
3918         ../libgcc/config/t-softfp-tf.
3919         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
3920         * config/ia64/t-fprules-softfp: Remove.
3921         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
3922         * config/lm32/t-fprules-softfp: Remove.
3923         * config/moxie/sfp-machine.h: Remove.
3924         * config/moxie/t-moxie-softfp: Remove.
3925         * config/rs6000/darwin-ldouble-format: Move to
3926         ../libgcc/config/rs6000/ibm-ldouble-format.
3927         * config/rs6000/darwin-ldouble.c: Move to
3928         ../libgcc/config/rs6000/ibm-ldouble.c
3929         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
3930         * config/rs6000/libgcc-ppc64.ver: Likewise.
3931         * config/rs6000/sfp-machine.h: Likewise.
3932         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
3933         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
3934         (LIB2FUNCS_EXTRA): Remove.
3935         (TARGET_LIBGCC2_CFLAGS): Remove.
3936         * config/rs6000/t-aix52: Likewise
3937         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3938         $(srcdir)/config/rs6000/darwin-ldouble.c.
3939         (SHLIB_MAPFILES): Remove.
3940         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
3941         $(srcdir)/config/rs6000/darwin-ldouble.c.
3942         * config/rs6000/t-fprules-softfp: Move to
3943         ../libgcc/config/t-softfp-sfdf.
3944         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
3945         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
3946         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
3947         $(srcdir)/config/rs6000/darwin-ldouble.c.
3948         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
3949         * config/score/t-score-softfp: Remove.
3950         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
3951         soft-fp/t-softfp from tmake_file.
3952         (arm*-*-uclinux*): Likewise.
3953         (arm*-*-ecos-elf): Likewise.
3954         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
3955         (arm*-*-rtems*): Likewise.
3956         (arm*-*-elf): Likewise.
3957         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
3958         tmake_file.
3959         (moxie-*-uclinux*): Likewise.
3960         (moxie-*-rtems*): Likewise.
3961         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
3962         tmake_file.
3963         (lm32-*-rtems*): Likewise.
3964         (lm32-*-uclinux*): Likewise.
3965         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
3966         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3967         (powerpc-*-linux*, powerpc64-*-linux*): Remove
3968         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3969         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
3970         tmake_file.
3971         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
3972         tmake_file.
3973         (tic6x-*-uclinux): Likewise.
3974         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
3975         soft-fp/t-softfp from tmake_file.
3976         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
3977         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
3978         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
3979         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3980         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
3982 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3984         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
3985         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
3986         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
3987         TPBIT, TPBIT_FUNCS.
3988         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
3989         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
3990         Remove.
3991         * config/arm/t-vxworks: Likewise.
3992         * config/arm/t-wince-pe: Likewise.
3993         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
3994         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3995         * config/bfin/t-bfin-elf: Likewise.
3996         * config/bfin/t-bfin-linux: Likewise.
3997         * config/bfin/t-bfin-uclinux: Likewise.
3998         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
3999         Remove.
4000         * config/fr30/t-fr30: Likewise.
4001         * config/frv/t-frv: Likewise.
4002         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
4003         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4004         * config/m32c/t-m32c: Likewise.
4005         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
4006         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4007         * config/mcore/t-mcore: Likewise.
4008         * config/mep/t-mep: Likewise.
4009         * config/microblaze/t-microblaze: Likewise.
4010         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
4011         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4012         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
4013         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4014         * config/mn10300/t-linux: Remove.
4015         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4016         * config/pdp11/t-pdp11: Likewise.
4017         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
4018         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
4019         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4020         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
4021         * config/rs6000/t-aix52: Likewise.
4022         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4023         $(srcdir)/config/rs6000/ppc64-fp.c.
4024         * config/rs6000/t-fprules-fpbit: Remove.
4025         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
4026         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4027         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
4028         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4029         * config/sparc/t-elf: Likewise.
4030         * config/sparc/t-leon: Likewise.
4031         * config/sparc/t-leon3: Likewise.
4032         * config/spu/t-spu-elf: Likewise.
4033         (DPBIT_FUNCS): Remove.
4034         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4035         * config/v850/t-v850: Likewise.
4036         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
4037         (avr-*-*): Likewise.
4038         (h8300-*-rtems*): Set libgcc_tm_file.
4039         (h8300-*-elf*): Likewise.
4040         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
4041         tmake_file.
4042         (powerpc-*-eabisim*): Likewise.
4043         (powerpc-*-elf*): Likewise.
4044         (powerpc-*-eabialtivec*): Likewise.
4045         (powerpc-xilinx-eabi*): Likewise.
4046         (powerpc-*-eabi*): Likewise.
4047         (powerpc-*-rtems*): Likewise.
4048         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
4049         (powerpcle-*-elf*): Likewise.
4050         (powerpcle-*-eabisim*): Likewise.
4051         (powerpcle-*-eabi*): Likewise.
4052         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
4053         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
4054         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
4055         Remove.
4057 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4059         * Makefile.in (UNWIND_H): Remove.
4060         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
4061         ../libgcc/Makefile.in.
4062         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
4063         (LIBUNWINDDEP): Remove.
4064         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
4065         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
4066         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
4067         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
4068         Don't copy $(UNWIND_H).
4069         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
4070         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
4071         * aclocal.m4: Regenerate.
4072         * configure: Regenerate.
4073         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
4074         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
4075         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
4076         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
4077         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
4078         * config/arm/libunwind.S, config/arm/pr-support.c,
4079         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
4080         ../libgcc/config/arm.
4081         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
4082         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
4083         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
4084         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
4085         ($(T)frvend$(objext)): Likewise.
4086         * config/ia64/t-glibc (LIB2ADDEH): Remove.
4087         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
4088         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
4089         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
4090         ../libgcc/config/ia64.
4091         * config/ia64/t-hpux (LIB2ADDEH): Remove.
4092         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4093         * config/ia64/t-vms (LIB2ADDEH): Remove.
4094         * config/ia64/vms.h (UNW_IVMS_MODE,
4095         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4096         * config/picochip/t-picochip (LIB2ADDEH): Remove.
4097         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4098         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4099         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4100         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4101         $(srcdir)/../libgcc to refer to unwinder sources.
4102         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4103         * config/t-darwin (LIB2ADDEH): Remove.
4104         * config/t-freebsd (LIB2ADDEH): Remove.
4105         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4106         * config/t-libunwind-elf: Move to ../libgcc/config.
4107         * config/t-linux (LIB2ADDEH): Remove.
4108         * config/t-sol2 (LIB2ADDEH): Remove.
4109         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4110         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4112 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
4114         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4116         * doc/invoke.texi: Document core-avx-i.
4118 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4120         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4122 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
4124         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4125         result of multiple results reduction when extracting the final
4126         value using scalar code.
4128 2011-08-05  Richard Guenther  <rguenther@suse.de>
4130         PR tree-optimization/49984
4131         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4133 2011-08-05  Richard Guenther  <rguenther@suse.de>
4135         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4136         return true for constant integer ranges.
4137         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4138         BIT_IOR_EXPR handling.
4140 2011-08-04  Kai Tietz  <ktietz@redhat.com>
4142         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4143         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4145 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
4147         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4148         pattern def statement, and its access macro.
4149         (NUM_PATTERNS): Set to 5.
4150         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4151         pattern def statement.
4152         (vect_transform_loop): Likewise.
4153         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4154         function vect_recog_over_widening_pattern ().
4155         (vect_operation_fits_smaller_type): New function.
4156         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4157         Likewise.
4158         (vect_pattern_recog_1): Move the code that marks pattern
4159         statements to vect_mark_pattern_stmts (), and call it.  Update
4160         documentation.
4161         * tree-vect-stmts.c (vect_supportable_shift): New function.
4162         (vect_analyze_stmt): Handle pattern def statement.
4163         (new_stmt_vec_info): Initialize pattern def statement.
4165 2011-08-04  Richard Henderson  <rth@redhat.com>
4167         PR target/49964
4168         * config/i386/i386.c (ix86_expand_call): Don't create nested
4169         PARALLELs for TARGET_VZEROUPPER.
4170         (ix86_split_call_vzeroupper): Fix extraction of the original call.
4171         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4172         recognize nested PARALLELs.
4173         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4174         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4175         *sibcall_value_pop_vzeroupper): Likewise.
4177 2011-08-04  Richard Henderson  <rth@redhat.com>
4179         PR middle-end/49968
4180         * calls.c (expand_call): Use fixup_args_size_notes for
4181         emit_stack_restore.
4182         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
4183         in non-standard modes.
4185 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
4187         * gcc.c (self_spec): New variable.
4188         (static_specs): Add self_spec.
4189         (main): Call do_self_spec on "self_spec" specs after reading
4190         user specs files.  Move compare_debug handling right after that.
4192 2011-08-04  Richard Guenther  <rguenther@suse.de>
4194         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
4195         (value_range_nonnegative_p): New function.
4196         (ssa_name_nonnegative_p): Use it.
4197         (value_range_constant_singleton): New function.
4198         (op_with_constant_singleton_value_range): Use it.
4199         (extract_range_from_binary_expr_1): New function, split out from ...
4200         (extract_range_from_binary_expr): ... this.  Remove fallback
4201         constant folding done here.
4203 2011-08-04  Richard Guenther  <rguenther@suse.de>
4205         PR tree-optimization/49806
4206         * tree-vrp.c (op_with_boolean_value_range_p): New function.
4207         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
4208         a new statement for a final conversion to bool.
4210 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
4212         * gengtype-state.c: Include "bconfig.h" if
4213         GENERATOR_FILE is defined, "config.h" otherwise.
4214         * gengtype.c: Likewise.
4215         * gengtype-lex.l: Likewise.
4216         * gengtype-parse.c: Likewise.
4217         * Makefile.in (gengtype-lex.o-warn): New variable.
4218         (plugin_resourcesdir): Likewise.
4219         (plugin_bindir): Likewise.
4220         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
4221         (MOSTLYCLEANFILES): Add gengtype$(exeext).
4222         (native): Depend on gengtype$(exeext) is $enable_plugin
4223         is set to "yes".
4224         (gtype.state): Depend on s-gtype. Use temporary file.
4225         (gengtype-lex.o): New rule.
4226         (gengtype-parse.o): Likewise.
4227         (gengtype-state.o): Likewise.
4228         (gengtype$(exeext)): Likewise.
4229         (install-gengtype): Likewise.
4230         (gengtype.o): Likewise.
4231         (build/gengtype.o): Depend on version.h.
4232         (build/gengtype-state): Depend on double-int.h, version.h,
4233         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
4234         (install-plugin): Depend on install-gengtype.
4236 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
4238         PR middle-end/49905
4239         * tree.h (init_attributes): New prototype.
4240         * attribs.c (init_attributes): No longer static.
4242 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4244         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
4245         maybe_suffix.
4247 2011-08-03   David Li  <davidxl@google.com>
4249         * tree-optimize.c (execute_fixup_cfg): Fix up entry
4250         outgoing edge counts after inlining.
4252 2011-08-03   David Li  <davidxl@google.com>
4254         * profile.c (compute_branch_probabilities): Compute
4255         function frequency after profile annotation.
4257 2011-08-04  Alan Modra  <amodra@gmail.com>
4259         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
4260         use_backchain_to_restore_sp initialisation.
4261         (rs6000_legitimate_offset_address_p): Simplify offset test.
4263 2011-08-03  Richard Henderson  <rth@redhat.com>
4265         * config/spu/spu.md: Use define_c_enum instead of define_constants.
4266         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
4267         (UNSPECV_NOP): New.
4269 2011-08-03  Richard Henderson  <rth@redhat.com>
4271         PR target/34888
4272         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
4274 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
4276         PR tree-optimization/49948
4277         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
4279 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
4281         * config/m32c/m32c.c (class_sizes): Remove.
4282         (reduce_class): Change arguments and return type to reg_class_t.
4283         Change type cc var to HARD_REG_SET. Change type best var to
4284         reg_class_t. Change type best_size var to unsigned int. Remove
4285         initialization class_sizes var. Use reg_class_size array instead
4286         of class_sizes. Use reg_class_contents array instead
4287         of class_contents.
4289 2011-08-03  Richard Guenther  <rguenther@suse.de>
4291         PR middle-end/49958
4292         * fold-const.c (fold_binary_loc): Only associate
4293         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
4294         overflow wraps.
4296 2011-08-03  Alan Modra  <amodra@gmail.com>
4298         PR rtl-optimization/49941
4299         * jump.c (mark_jump_label): Comment.
4300         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
4301         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
4302         (mark_used_flags): Don't mark RETURN.
4304 2011-08-03  Richard Guenther  <rguenther@suse.de>
4306         PR tree-optimization/49938
4307         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
4308         deal with a POLYNOMIAL_CHREC.
4310 2011-08-03  Revital Eres  <revital.eres@linaro.org>
4312         * modulo-sched.c (calculate_stage_count,
4313         calculate_must_precede_follow, get_sched_window,
4314         try_scheduling_node_in_cycle, remove_node_from_ps): Add
4315         declaration.
4316         (update_node_sched_params, set_must_precede_follow, optimize_sc):
4317         New functions.
4318         (reset_sched_times): Call update_node_sched_params.
4319         (sms_schedule): Call optimize_sc.
4320         (get_sched_window): Change function arguments.
4321         (sms_schedule_by_order): Update call to get_sched_window.
4322         Call set_must_precede_follow.
4323         (calculate_stage_count): Add function argument.
4325 2011-08-02  Richard Henderson  <rth@redhat.com>
4327         PR target/49864
4328         PR target/49879
4329         * reg-notes.def (REG_ARGS_SIZE): New.
4330         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
4331         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
4332         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
4333         different stack levels.
4334         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
4335         (maybe_move_args_size_note): New.
4336         (combine_stack_adjustments_for_block): Use it.
4337         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
4338         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
4339         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
4340         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
4341         (cur_cfa): New.
4342         (queued_args_size): Remove.
4343         (add_cfi_args_size): Assert size is non-negative.
4344         (stack_adjust_offset, dwarf2out_args_size): Remove.
4345         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
4346         (notice_args_size, notice_eh_throw): New.
4347         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
4348         (dwarf2out_frame_debug_adjust_cfa): Likewise.
4349         (dwarf2out_frame_debug_cfa_offset): Likewise.
4350         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
4351         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
4352         (change_cfi_row): Don't emit args_size.
4353         (maybe_record_trace_start_abnormal): Split out from ...
4354         (maybe_record_trace_start): Here.  Set args_size_undefined.
4355         (create_trace_edges): Update to match.
4356         (scan_trace): Handle REG_ARGS_SIZE.
4357         (connect_traces): Connect args_size between EH insns.
4358         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
4359         * explow.c (suppress_reg_args_size): New.
4360         (adjust_stack_1): Split out from ...
4361         (adjust_stack): ... here.
4362         (anti_adjust_stack): Use it.
4363         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
4364         * expr.c (mem_autoinc_base): New.
4365         (fixup_args_size_notes): New.
4366         (emit_single_push_insn_1): Rename from emit_single_push_insn.
4367         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
4368         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
4369         * reload1.c (reload_as_needed): Likewise.
4370         * rtl.h (fixup_args_size_notes): Declare.
4372 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
4374         PR bootstrap/49914
4375         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
4376         of abs.
4377         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4378         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4380 2011-08-02  Richard Henderson  <rth@redhat.com>
4382         * config/h8300/h8300.c (push, pop): Return the insn.
4383         (h8300_swap_into_er6): Generate correct unwind info.
4384         (h8300_swap_out_of_er6): Likewise.
4385         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
4386         complex cfa expression.
4387         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
4389 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
4391         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4393 2011-08-02  Richard Henderson  <rth@redhat.com>
4395         PR target/49878
4396         * config/h8300/h8300.c (h8300_move_ok): New.
4397         * config/h8300/h8300-protos.h: Declare it.
4398         * config/h8300/h8300.md (P): New mode iterator.
4399         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
4400         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
4401         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
4402         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
4403         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4404         and pushqi1_h8300hs_normal; use PRE_MODIFY and
4405         register_no_sp_elim_operand.
4406         (*pushhi1_h8300hs_<P>): Similarly.
4407         (pushqi1, pushhi1, pushhi1_h8300): Remove.
4408         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4410 2011-08-02  Richard Henderson  <rth@redhat.com>
4412         PR target/49881
4413         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4415 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
4417         * c-parser.c (enum c_parser_prec): New enum, moved from within
4418         c_parser_binary_expression.
4419         (c_parser_binary_expression): Add PREC argument.  Stop parsing
4420         if operator has lower or equal precedence than PREC.
4421         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4422         callers.
4423         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4424         Adjust c_finish_omp_atomic caller.
4425         (c_parser_omp_taskyield): New function.
4426         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4427         (c_parser_omp_clause_name): Handle final and mergeable clauses.
4428         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4429         functions.
4430         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4431         and PRAGMA_OMP_CLAUSE_MERGEABLE.
4432         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4433         (c_parser_omp_clause_reduction): Handle min and max.
4434         * c-typeck.c (c_finish_omp_clauses): Don't complain about
4435         const qualified predetermined vars in firstprivate clause.
4436         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4437         Handle MIN_EXPR and MAX_EXPR.
4438         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4439         and OMP_CLAUSE_MERGEABLE.
4440         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4441         and OMP_ATOMIC_CAPTURE_NEW.
4442         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4443         OMP_CLAUSE_MERGEABLE.
4444         (omp_clause_code_name): Likewise.
4445         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4446         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4447         and OMP_CLAUSE_MERGEABLE.
4448         (OMP_CLAUSE_FINAL_EXPR): Define.
4449         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4450         OMP_CLAUSE_MERGEABLE.
4451         (expand_task_call): Likewise.
4452         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4453         (expand_omp_atomic_fetch_op): Handle cases where old or new
4454         value is needed afterwards.
4455         (expand_omp_atomic): Call expand_omp_atomic_load resp.
4456         expand_omp_atomic_store.
4457         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4458         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4459         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4460         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4461         * tree-nested.c (convert_nonlocal_omp_clauses,
4462         convert_local_omp_clauses): Likewise.
4463         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4464         OMP_ATOMIC_CAPTURE_NEW): New.
4465         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4466         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4467         New inlines.
4468         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4469         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4470         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4472 2011-08-02  Kai Tietz  <ktietz@redhat.com>
4474         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4475         boolean-type.
4476         (ssa_forward_propagate_and_combine): Interprete result of
4477         forward_propagate_comparison.
4478         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4479         boolean-typed operands for comparisons.
4481 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
4483         * config/avr/libgcc.S: Gather related function in the
4484         same input section.
4485         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4486         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4487         references.
4488         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4489         __udivmodsi4, __divmodsi4, __prologue_saves__,
4490         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4491         __do_copy_data, __do_clear_bss, __do_global_ctors,
4492         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4494 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
4496         PR target/47766
4497         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4498         (stack_protect_test): The pattern compares ptr_mode value.
4500 2011-08-02  Alan Modra  <amodra@gmail.com>
4502         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4503         note for save_LR_around_toc_setup sequence.
4505 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4507         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4509 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
4510             Joseph Myers  <joseph@codesourcery.com>
4512         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4513         * hwint.c: Include diagnostic-core.h.
4514         (abs_hwi): New.
4515         (gcd): Moved here...
4516         (pos_mul_hwi): New.
4517         (mul_hwi): New.
4518         (least_common_multiple): Moved here...
4519         * hwint.h (gcd): ... from here.
4520         (least_common_multiple): ... from here.
4521         (HOST_WIDE_INT_MIN): New.
4522         (HOST_WIDE_INT_MAX): New.
4523         (abs_hwi): Declared.
4524         (gcd): Declared.
4525         (pos_mul_hwi): Declared.
4526         (mul_hwi): Declared.
4527         (least_common_multiple): Declared.
4528         * omega.c (check_pos_mul): Removed.
4529         (check_mul): Removed.
4530         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4531         mul_hwi instead of check_mul.
4533 2011-08-01  Richard Henderson  <rth@redhat.com>
4535         PR target/49881
4536         * config/avr/avr.h (PUSH_ROUNDING): New.
4537         * config/avr/avr.md (pushqi1): Rename from *pushqi.
4538         (*pushhi, *pushsi, *pushsf): Remove.
4539         (MPUSH): New mode iterator.
4540         (push<MPUSH>1): New expander.
4542 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
4544         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4545         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4546         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4547         mmix_preferred_output_reload_class): Remove.
4548         * config/mmix/mmix.c (mmix_preferred_reload_class,
4549         mmix_preferred_output_reload_class): Make static. Change rclass
4550         argument and return type to reg_class_t.
4551         (TARGET_PREFERRED_RELOAD_CLASS,
4552         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4554 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
4556         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4557         handling.
4559 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4561         PR target/47766
4562         * config/i386/i386.md (PTR): New.
4563         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4564         (stack_protect_test): Likewise.
4565         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4566         (stack_tls_protect_set_<mode>): Likewise.
4567         (stack_tls_protect_test_<mode>): Likewise.
4569 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
4571         PR target/49927
4572         * config/i386/i386.c (ix86_address_subreg_operand): New.
4573         (ix86_decompose_address): Use ix86_address_subreg_operand.
4574         (ix86_legitimate_address_p): Do not assert that subregs satisfy
4575         register_no_elim_operand in DImode.
4577 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
4579         PR tree-optimization/49926
4580         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4581         in a chain doesn't have uses both inside and outside the loop.
4583 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4585         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4586         * config/avr/avr-devices.c (avr_mcu_types): Use it.
4587         * config/avr/avr-mcus.def (AVR_MCU): Use it.
4588         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4589         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4590         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4591         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4592         to detect if XJMP must not be skipped.
4594 2011-08-02  Alan Modra  <amodra@gmail.com>
4596         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4597         Delete.
4598         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4599         (rs6000_emit_prologue): Don't prematurely return when
4600         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
4601         save_toc_in_prologue case.
4602         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4603         calls_alloca.
4605 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4607         * config/avr/avr-devices.c: Delete SVN property svn:executable.
4608         * config/avr/predicates.md: Ditto.
4609         * config/avr/driver-avr.c: Ditto.
4610         * config/avr/genopt.sh: Set SVN property svn:executable to *.
4612 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4614         * calls.c (emit_library_call_value_1): Declare size only if
4615         BLOCK_REG_PADDING is defined.
4617 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
4619         PR target/49547
4620         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4621         (x86_64-*-*): Likewise.
4622         * config/i386/i386.opt (mlzcnt): New.
4623         * config/i386/abmintrin.h: File removed.
4624         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4625         * config/i386/lzcntintrin.h: ... here.  New file.
4626         (__lzcnt): Rename to ...
4627         (__lzcnt32): ... this.
4628         * config/i386/bmiintrin.h (head): Update copyright year.
4629         (__lzcnt_u16): Removed.
4630         (__lzcnt_u32): Likewise.
4631         (__lzcnt_u64): Likewise.
4632         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
4633         is defined, remove abmintrin.h.
4634         * config/i386/cpuid.h (bit_LZCNT): New.
4635         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4636         LZCNT feature.
4637         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4638         __LZCNT__ if needed.
4639         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
4640         (ix86_option_override_internal): Handle LZCNT option.
4641         (ix86_valid_target_attribute_inner_p): Likewise.
4642         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
4643         * config/i386/i386.h (TARGET_LZCNT): New.
4644         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
4645         * config/i386/i386.md (clz<mode>2): Update insn constraint.
4646         (clz<mode>2_lzcnt): Likewise.
4647         * doc/invoke.texi: Mention -mlzcnt option.
4648         * doc/extend.texi: Likewise.
4650 2011-08-01  Julian Brown  <julian@codesourcery.com>
4652         * configure.ac (fixed-point): Add ARM support.
4653         * configure: Regenerate.
4654         * config/arm/arm.c (arm_fixed_mode_set): New struct.
4655         (arm_set_fixed_optab_libfunc): New.
4656         (arm_set_fixed_conv_libfunc): New.
4657         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
4658         ARM-specific names.
4659         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
4660         return values in SImode.
4661         (arm_return_in_msb): Return fixed-point types in the msb.
4662         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
4663         upwards.
4664         (arm_scalar_mode_supported_p): Support fixed-point modes.
4665         (arm_vector_mode_supported_p): Support vector fixed-point modes.
4666         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
4667         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
4668         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
4669         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
4670         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
4671         New mode iterators.
4672         (qaddsub_suf): New mode attribute.
4673         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
4674         vector modes.
4675         * config/arm/predicates.md (sat_shift_operator): New predicate.
4676         * config/arm/arm-fixed.md: New.
4677         * config/arm/arm.md: Include arm-fixed.md.
4678         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
4680 2011-08-01  Julian Brown  <julian@codesourcery.com>
4682         * calls.c (emit_library_call_value_1): Support padding for libcall
4683         arguments and return values.
4684         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
4685         downwards in big-endian mode.
4687 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4689         PR debug/49887
4690         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4691         * config/sol2-protos.h: Likewise.
4692         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4693         solaris_code_end.
4694         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4695         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4696         solaris_file_end.
4697         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4699 2011-08-01  Julian Brown  <julian@codesourcery.com>
4701         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4703 2011-08-01  Julian Brown  <julian@codesourcery.com>
4705         * final.c (output_addr_const): Print fixed-point constants as
4706         decimal not hex.
4708 2011-08-01  Richard Guenther  <rguenther@suse.de>
4710         * stor-layout.c (initialize_sizetypes): Properly sign-extend
4711         bitsiztype TYPE_MAX_VALUE.
4713 2011-08-01  Julian Brown  <julian@codesourcery.com>
4715         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4716         comparison helpers.
4718 2011-07-31  Richard Henderson  <rth@redhat.com>
4720         * config/h8300/crti.asm: Add flags to .section directive.
4721         * config/h8300/crtn.asm: Likewise.
4723 2011-07-31  Richard Henderson  <rth@redhat.com>
4725         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4726         * tree.c (build_common_tree_nodes): Likewise.
4728 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4730         PR target/49880
4731         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4732         (divsi3_i1): Likewise.
4734 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4736         PR tree-optimization/49749
4737         * tree-ssa-reassoc.c (get_rank): New forward declaration.
4738         (PHI_LOOP_BIAS): New macro.
4739         (phi_rank): New function.
4740         (loop_carried_phi): Likewise.
4741         (propagate_rank): Likewise.
4742         (get_rank): Add calls to phi_rank and propagate_rank.
4744 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4746         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4747         of TARGET_64BIT.
4748         (PTRDIFF_TYPE): Likewise.
4750 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
4752         PR target/49920
4753         * config/i386/i386.md (strset): Do not expand strset_singleop
4754         when %eax or $edi are fixed.
4755         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4756         (*strsetsi_1): Ditto.
4757         (*strsethi_1): Ditto.
4758         (*strsetqi_1): Ditto.
4759         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4760         (*rep_stossi): Ditto.
4761         (*rep_stosqi): Ditto.
4762         (*strlenqi_1): Ditto.
4763         (cmpstrnsi): Also fail when %ecx is fixed.
4764         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4765         (*cmpstrnqi_1): Ditto.
4766         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4767         (*strmovsi_1): Ditto.
4768         (*strmovhi_1): Ditto.
4769         (*strmovqi_1): Ditto.
4770         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4771         (*rep_movsi): Ditto.
4772         (*rep_movqi): Ditto.
4774 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
4776         PR target/47908
4777         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4778         Disable instruction scheduling for non-ColdFire targets.
4779         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4781 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4783         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4784         of anti-dep edge from a branch.
4785         (add_cross_iteration_register_deps): Create anti-dep edge from
4786         a branch.
4788 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4790         * modulo-sched.c: Change comment.
4791         (reset_sched_times): Fix print message.
4792         (print_partial_schedule): Add print info.
4794 2011-07-31  Tom de Vries  <tom@codesourcery.com>
4796         PR middle-end/43513
4797         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4798         get_object_alignment and TYPE_ALIGN.
4800 2011-07-30  Tom de Vries  <tom@codesourcery.com>
4802         PR middle-end/43513
4803         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4804         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4806 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4808         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4809         <sys/sbd.h>.
4810         (cpu_types): New array.
4811         (cputype): New function.
4812         (host_detect_local_cpu): Only define buf, f if !__sgi__.
4813         Use scaninvent instead of /proc/cpuinfo if __sgi__.
4814         * config.host: Also use driver-native.o, mips/x-native on
4815         mips-sgi-irix*.
4816         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4817         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4818         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4820 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
4822         PR middle-end/49897
4823         PR middle-end/49898
4824         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4825         in nested parallel and outer is a gimple_reg, mark it as addressable
4826         and set its bit in task_shared_vars bitmap too.
4828 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4830         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4832 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4834         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4835         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4836         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4837         AMASK_LOCKPFTCHOK): Define.
4838         (host_detect_local_cpu): Remove buf, f, cpu_names.
4839         Define cpu_types, implver, amask.
4840         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4841         native CPU.
4842         * config.host: Also use driver-alpha.o, alpha/x-alpha on
4843         alpha*-dec-osf*.
4844         * config/alpha/osf5.h [__alpha__ || __alpha]
4845         (host_detect_local_cpu): Declare.
4846         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4847         (DRIVER_SELF_SPECS): Define.
4849 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4851         PR target/47715
4852         * config/i386/i386.md (*load_tp_x32): New.
4853         (*load_tp_x32_zext): Ditto.
4854         (*add_tp_x32): Ditto.
4855         (*add_tp_x32_zext): Ditto.
4856         (*load_tp_<mode>): Disable for TARGET_X32 targets.
4857         (*add_tp_<mode>): Ditto.
4858         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4859         ptr_mode and convert to Pmode if needed.
4861 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4863         PR target/49687
4864         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4865         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4866         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4867         Add X to register footprint: Clobber r26/r27.
4869 2011-07-29  Richard Guenther  <rguenther@suse.de>
4871         * builtins.c (fold_builtin_signbit): Build the comparison
4872         with a proper type.
4874 2011-07-29  Richard Guenther  <rguenther@suse.de>
4876         PR tree-optimization/49893
4877         * tree-predcom.c (suitable_reference_p): Volatile references
4878         are not suitable.
4880 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4882         PR target/49313
4883         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4884         (__ctzsi2): Result for 0 may be undefined.
4885         (__ctzhi2): Result for 0 may be undefined.
4886         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4887         (__popcountsi2): Ditto. And don't clobber r26.
4888         (__popcountdi2): Ditto. And don't clobber r27.
4889         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4890         (parityhi2): New expand.
4891         (paritysi2): New expand.
4892         (popcounthi2): New expand.
4893         (popcountsi2): New expand.
4894         (clzhi2): New expand.
4895         (clzsi2): New expand.
4896         (ctzhi2): New expand.
4897         (ctzsi2): New expand.
4898         (ffshi2): New expand.
4899         (ffssi2): New expand.
4900         (copysignsf3): New insn.
4901         (bswapsi2): New expand.
4902         (*parityhi2.libgcc): New insn.
4903         (*parityqihi2.libgcc): New insn.
4904         (*paritysihi2.libgcc): New insn.
4905         (*popcounthi2.libgcc): New insn.
4906         (*popcountsi2.libgcc): New insn.
4907         (*popcountqi2.libgcc): New insn.
4908         (*popcountqihi2.libgcc): New insn-and-split.
4909         (*clzhi2.libgcc): New insn.
4910         (*clzsihi2.libgcc): New insn.
4911         (*ctzhi2.libgcc): New insn.
4912         (*ctzsihi2.libgcc): New insn.
4913         (*ffshi2.libgcc): New insn.
4914         (*ffssihi2.libgcc): New insn.
4915         (*bswapsi2.libgcc): New insn.
4917 2011-07-29  Richard Guenther  <rguenther@suse.de>
4919         * tree-vrp.c (get_value_range): Only set parameter default
4920         definitions to varying, leave others at undefined.
4921         (extract_range_from_binary_expr): Fix undefined handling.
4922         (vrp_visit_phi_node): Handle merged undefined state.
4924 2011-07-29  Wei Guozhi  <carrot@google.com>
4926         PR rtl-optimization/49799
4927         * combine.c (make_compound_operation): Check if the bit field is valid
4928         before change it to bit field extraction.
4930 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4932         PR rtl-optimization/49891
4933         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
4934         newly created returnjumps.
4936 2011-07-28  DJ Delorie  <dj@redhat.com>
4938         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
4939         local frame in a naked function, and produce a suitable error for
4940         that specific case.
4942         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
4943         registers to be reloaded in HI classes when the target is HI.
4945 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4947         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
4948         bound_one, bound_two.
4950 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4952         PR middle-end/48648
4953         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
4954         CLAST assignments.
4955         (translate_clast): Same.
4956         (translate_clast_assignment): New.
4958 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4960         PR tree-optimization/49876
4961         * sese.c (rename_uses): Do not return false on gloog_error: set
4962         the new_expr to integer_zero_node and continue code generation.
4963         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
4965 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4967         PR debug/49846
4968         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
4969         arguments also check if they aren't initialized with a MODE_INT
4970         mode of the same size.
4972 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
4974         * expr.c (get_bit_range): Handle *MEM_REF's.
4976 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
4978         * rtlanal.c (tablejump_p): False for returns.
4979         * reorg.c (first_active_target_insn): New static function.
4980         (find_end_label): Set JUMP_LABEL for a new returnjump.
4981         (optimize_skip, get_jump_flags, rare_destination,
4982         mostly_true_jump, get_branch_condition,
4983         steal_delay_list_from_target, own_thread_p,
4984         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
4985         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
4986         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
4987         * jump.c (delete_related_insns): Likewise.
4988         (jump_to_label_p): New function.
4989         (redirect_target): New static function.
4990         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
4991         (redirect_jump_1): Assert that the new label is nonnull.
4992         (redirect_jump): Likewise.
4993         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
4994         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
4995         exit block.
4996         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
4997         changed.  Ensure that the right label is passed to redirect_jump.
4998         * function.c (emit_return_into_block,
4999         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
5000         ret_rtx in their JUMP_LABEL.
5001         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
5002         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
5003         pass ret_rtx as label.
5004         * cfglayout.c (fixup_reorder_chain): Use
5005         force_nonfallthru_and_redirect rather than force_nonfallthru.
5006         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
5007         * rtl.h (ANY_RETURN_P): New macro.
5008         (jump_to_label_p): Declare.
5009         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
5010         JUMP_LABELs.
5011         (mark_target_live_regs): Likewise.
5012         * basic-block.h (force_nonfallthru_and_redirect): Declare.
5013         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
5014         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
5015         alpha_tablejump_best_label): Remove functions.
5016         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
5017         alpha_tablejump_best_label): Remove declarations.
5018         * config/sh/sh.c (barrier_align, split_branches): Adjust for
5019         ret_rtx in JUMP_LABELs.
5020         * config/arm/arm.c (is_jump_table): Likewise.
5022 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5024         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
5025         special predicate.  Remove explicit mode checks.
5027 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
5029         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
5030         DW_AT_data_member_location containing just DW_OP_plus_uconst.
5032         PR debug/49871
5033         * dwarf2out.c (size_of_die, value_format, output_die): Use
5034         DW_FORM_udata instead of DW_FORM_data[48] for
5035         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
5037 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5039         * config/i386/i386.md (*tls_global_dynamic_64): Update
5040         length attribute.
5042 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5044         PR target/47715
5045         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
5046         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
5047         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
5048         (tls_dynamic_gnu2_64): Ditto.
5049         (*tls_dynamic_gnu2_lea_64): Ditto.
5050         (*tls_dynamic_gnu2_call_64): Ditto.
5051         (*tls_dynamic_gnu2_combine_64): Ditto.
5053 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5055         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
5057 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5059         PR target/47364
5060         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
5062 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5064         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
5065         before the core constraints. Adjust attributes.
5066         ("*thumb2_movdf_vfp"): Likewise.
5068 2011-07-28  Kai Tietz  <ktietz@redhat.com>
5070         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
5071         (simplify_truth_ops_using_ranges): Likewise.
5072         (build_assert_expr_for): Likewise.
5073         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
5074         and handle BIT_NOT_EXPR for truth-operation.
5076 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
5078         PR target/49313
5079         Undo r176835 from trunk
5080         2011-07-27  Georg-Johann Lay
5082 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
5084         PR target/49687
5085         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
5086         Add _muluhisi3, _mulshisi3, _usmulhisi3.
5087         * config/avr/libgcc.S (__mulsi3): Rewrite.
5088         (__mulhisi3): Rewrite.
5089         (__umulhisi3): Rewrite.
5090         (__usmulhisi3): New.
5091         (__muluhisi3): New.
5092         (__mulshisi3): New.
5093         (__mulohisi3): New.
5094         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5095         declare.
5096         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5097         (pseudo_register_or_const_int_operand): New.
5098         (combine_pseudo_register_operand): New.
5099         (u16_operand): New.
5100         (s16_operand): New.
5101         (o16_operand): New.
5102         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5103         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5104         (any_extend, any_extend2): New code iterators.
5105         (extend_prefix): New code attribute.
5106         (mulsi3): Rewrite. Turn insn to expander.
5107         (mulhisi3): Ditto.
5108         (umulhisi3): Ditto.
5109         (usmulhisi3): New expander.
5110         (*mulsi3): New insn-and-split.
5111         (mulu<mode>si3): New insn-and-split.
5112         (muls<mode>si3): New insn-and-split.
5113         (mulohisi3): New insn-and-split.
5114         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5115         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5116         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5117         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5118         insn-and-split.
5119         (*mulsi3_call): Rewrite.
5120         (*mulhisi3_call): Rewrite.
5121         (*umulhisi3_call): Rewrite.
5122         (*usmulhisi3_call): New insn.
5123         (*muluhisi3_call): New insn.
5124         (*mulshisi3_call): New insn.
5125         (*mulohisi3_call): New insn.
5126         (extendqihi2): Use combine_pseudo_register_operand as predicate
5127         for operand 1.
5128         (extendqisi2): Ditto.
5129         (zero_extendqihi2): Ditto.
5130         (zero_extendqisi2): Ditto.
5131         (zero_extendhisi2): Ditto.
5132         (extendhisi2): Ditto. Don't early-clobber operand 0.
5134 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5136         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5138 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5140         PR tree-optimization/49471
5141         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5142         iv only when the largest type is unsigned.  Do not call
5143         lang_hooks.types.type_for_size.
5145 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5147         PR middle-end/45450
5148         * graphite-poly.c (apply_poly_transforms): Disable legality check
5149         after an openscop read.
5151 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5153         PR middle-end/47691
5154         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5155         copy_bb_and_scalar_dependences.
5156         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
5157         (graphite_copy_stmts_from_block): Update call to rename_uses.
5158         (copy_bb_and_scalar_dependences): Update call to
5159         graphite_copy_stmts_from_block.
5160         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5162 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
5164         PR target/49313
5165         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5166         (__ctzsi2): Result for 0 may be undefined.
5167         (__ctzhi2): Result for 0 may be undefined.
5168         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5169         (__popcountsi2): Ditto. And don't clobber r26.
5170         (__popcountdi2): Ditto. And don't clobber r27.
5171         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5172         (parityhi2): New expand.
5173         (paritysi2): New expand.
5174         (popcounthi2): New expand.
5175         (popcountsi2): New expand.
5176         (clzhi2): New expand.
5177         (clzsi2): New expand.
5178         (ctzhi2): New expand.
5179         (ctzsi2): New expand.
5180         (ffshi2): New expand.
5181         (ffssi2): New expand.
5182         (copysignsf3): New insn.
5183         (bswapsi2): New expand.
5184         (*parityhi2.libgcc): New insn.
5185         (*parityqihi2.libgcc): New insn.
5186         (*paritysihi2.libgcc): New insn.
5187         (*popcounthi2.libgcc): New insn.
5188         (*popcountsi2.libgcc): New insn.
5189         (*popcountqi2.libgcc): New insn.
5190         (*popcountqihi2.libgcc): New insn-and-split.
5191         (*clzhi2.libgcc): New insn.
5192         (*clzsihi2.libgcc): New insn.
5193         (*ctzhi2.libgcc): New insn.
5194         (*ctzsihi2.libgcc): New insn.
5195         (*ffshi2.libgcc): New insn.
5196         (*ffssihi2.libgcc): New insn.
5197         (*bswapsi2.libgcc): New insn.
5199 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
5201         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
5202         the mode of symbolic_opreand RTXes.
5204 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
5206         * config/i386/predicates.md (x86_64_movabs_operand): Return false
5207         for pic_32bit_operand RTXes.
5208         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
5209         in DImode.
5211 2011-07-27  Kai Tietz  <ktietz@redhat.com>
5213         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
5214         for 32-bit, too.
5215         (ix86_handle_abi_attribute): Allow function attributes
5216         ms_abi/sysv_abi in 32-bit mode, too.
5217         * doc/extend.texi: Adjust attribute documentation.
5219         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
5220         expression handling.
5221         (and_var_with_comparison_1): Likewise.
5223 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
5225         * params.h (ALLOW_STORE_DATA_RACES): New.
5226         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
5227         * Makefile.in (expr.o): Depend on PARAMS_H.
5228         * machmode.h (get_best_mode): Add argument.
5229         * fold-const.c (optimize_bit_field_compare): Add argument to
5230         get_best_mode.
5231         (fold_truthop): Same.
5232         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
5233         * expr.c (emit_group_store): Same.
5234         (copy_blkmode_from_reg): Same.
5235         (write_complex_part): Same.
5236         (optimize_bitfield_assignment_op): Add argument.
5237         Add argument to get_best_mode.
5238         (get_bit_range): New.
5239         (expand_assignment): Calculate maxbits and pass it down accordingly.
5240         (store_field): New argument.
5241         (expand_expr_real_2): New argument to store_field.  Include params.h.
5242         * expr.h (store_bit_field): New argument.
5243         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
5244         into account maxbits.
5245         * calls.c (store_unaligned_arguments_into_pseudos): New argument
5246         to store_bit_field.
5247         * expmed.c (store_bit_field_1): New argument.  Use it.
5248         (store_bit_field): Same.
5249         (store_fixed_bit_field): Same.
5250         (store_split_bit_field): Same.
5251         (extract_bit_field_1): Pass new argument to get_best_mode.
5252         (extract_bit_field): Same.
5253         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
5254         * doc/invoke.texi: Document parameter allow-store-data-races.
5256 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
5258         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
5260 2011-07-27  Kai Tietz  <ktietz@redhat.com>
5262         * tree-vrp.c (extract_range_from_binary_expr): Remove
5263         TRUTH-binary cases and add new bitwise-cases.
5264         (extract_range_from_assignment): Likewise.
5265         (register_edge_assert_for_1): Likeiwise.
5266         (register_edge_assert_for): Likewise.
5267         (simplify_truth_ops_using_ranges): Likewise.
5268         (simplify_stmt_using_ranges): Likewise.
5270 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
5272         PR target/47372
5273         * config/i386/i386.c (ix86_delegitimize_address): Call
5274         simplify_gen_subreg for PIC with mode of x only if modes of
5275         x and orig_x are different.
5277 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
5279         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
5280         to GC allocated copy of the string.
5281         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
5282         before .debug_line, not after it.
5284 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5286         PR middle-end/47046
5287         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
5288         evolution_function_is_affine_p on CHREC_RIGHT.
5290 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5292         * tree-data-ref.c (max_stmt_executions_tree): Do not call
5293         lang_hooks.types.type_for_size.
5295 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5297         PR middle-end/47653
5298         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
5299         loops using wrapping semantics.
5301 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5303         PR middle-end/48805
5304         * tree-scalar-evolution.c (instantiate_scev_r): Return
5305         chrec_dont_know for ADDR_EXPR.
5307 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5308             H.J. Lu  <hongjiu.lu@intel.com>
5310         PR target/47369
5311         PR target/49853
5312         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
5313         if legitimize_tls_address returned operand in wrong mode. Allow
5314         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
5315         if legitimize_pic_address returned operand in wrong mode.
5317 2011-07-26  Martin Jambor  <mjambor@suse.cz>
5319         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
5320         return false for invariants.
5322 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5324         * config/i386/i386.md (add->lea splitter): Implement using SWI
5325         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
5326         (add->lea zext splitter): Change operand 2 predicate to
5327         x86_64_nonmemory_operand.
5329 2011-07-26  Richard Guenther  <rguenther@suse.de>
5331         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
5332         frequency makes everything hot.
5334 2011-07-26  Richard Guenther  <rguenther@suse.de>
5336         PR tree-optimization/49840
5337         * tree-vrp.c (range_fits_type_p): Properly handle full
5338         double-int precision.
5340 2011-07-26  Martin Jambor  <mjambor@suse.cz>
5342         PR bootstrap/49786
5343         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
5344         counts.
5345         (update_specialized_profile): Likewise.
5347 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5348             H.J. Lu  <hongjiu.lu@intel.com>
5350         PR target/47381
5351         PR target/49832
5352         PR target/49833
5353         * config/i386/i386.md (i): Change SImode attribute to "e".
5354         (g): Change SImode attribute to "rme".
5355         (di): Change SImode attribute to "nF".
5356         (general_operand): Change SImode attribute to x86_64_general_operand.
5357         (general_szext_operand): Change SImode attribute to
5358         x86_64_szext_general_operand.
5359         (immediate_operand): Change SImode attribute to
5360         x86_64_immediate_operand.
5361         (nonmemory_operand): Change SImode attribute to
5362         x86_64_nonmemory_operand.
5363         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
5364         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
5365         (*lea_1): Use SWI48 mode iterator.
5366         (*lea_1_zext): New insn pattern.
5367         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
5368         (*bt<mode>): Ditto.
5369         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
5370         Update operand constraints.
5371         (addsi_1_zext): Ditto.
5372         (*add<mode>2): Ditto.
5373         (*addsi_3_zext): Ditto.
5374         (*subsi_1_zext): Ditto.
5375         (*subsi_2_zext): Ditto.
5376         (*subsi_3_zext): Ditto.
5377         (*addsi3_carry_zext): Ditto.
5378         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
5379         (*mulsi3_1_zext): Ditto.
5380         (*andsi_1): Ditto.
5381         (*andsi_1_zext): Ditto.
5382         (*andsi_2_zext): Ditto.
5383         (*<any_or:code>si_1_zext): Ditto.
5384         (*<any_or:code>si_2_zext): Ditto.
5385         (*test<mode>_1): Use <general_operand> predicate for operand 1.
5386         (*and<mode>_2): Ditto.
5387         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
5388         (add->lea splitter): Check operand modes in insn constraint.  Extend
5389         operands less than SImode wide to SImode.
5390         (add->lea zext splitter): Do not extend input operands to DImode.
5391         (*lea_general_1): Handle only QImode and HImode operands.
5392         (*lea_general_2): Ditto.
5393         (*lea_general_3): Ditto.
5394         (*lea_general_1_zext): Remove.
5395         (*lea_general_2_zext): Ditto.
5396         (*lea_general_3_zext): Ditto.
5397         (*lea_general_4): Check operand modes in insn constraint.  Extend
5398         operands less than SImode wide to SImode.
5399         (ashift->lea splitter): Ditto.
5400         * config/i386/i386.c (ix86_print_operand_address): Print address
5401         registers with 'q' modifier on 64bit targets.
5402         * config/i386/predicates.md (pic_32bit_opreand): Define as special
5403         predicate.  Reject non-SI and non-DI modes.
5405 2011-07-25  Andrew Pinski  <apinski@cavium.com>
5407         PR tree-opt/49671
5408         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5409         TREE_THIS_NOTRAP into the inner most MEM_REF.
5410         Always copy TREE_THIS_VOLATILE.
5411         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5412         arguments are not volatile references.
5414 2011-07-25  Richard Henderson  <rth@redhat.com>
5416         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5417         * final.c (final_scan_insn): Don't test for it.
5418         (rest_of_clean_state): Likewise.
5420 2011-07-25  Richard Henderson  <rth@redhat.com>
5422         PR debug/49841
5423         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5424         (emit_frame_save): Likewise.
5425         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5426         insn onto a dummy blockage insn after the join label.
5428 2011-07-25  Richard Henderson  <rth@redhat.com>
5430         * dwarf2cfi.c (dw_trace_info): Add ID member.
5431         (get_trace_index): Remove.  Change users to use ID member.
5432         (before_next_cfi_note): New.
5433         (connect_traces): Remove unreachable traces before the main loop.
5434         Look across one trace and generate remember/restore_state if needed.
5436 2011-07-25  Richard Henderson  <rth@redhat.com>
5438         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5440 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
5442         * genattr.c (write_upcase, gen_attr <enum definition writing>):
5443         Move to ...
5444         * genattr-common.c ... here.
5445         (main): Call gen_attr.
5446         * optc-gen.awk: Make generated program include insn-attr-common.h .
5447         * Makefile.in (oprions.o): Depend on insn-attr-common.h
5449 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5451         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5452         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5453         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5454         m32c_print_operand, m32c_print_operand_address): Remove.
5455         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5456         Change return type to bool. Change argument type to bool.
5457         (m32c_print_operand, m32c_print_operand_address): Make static.
5458         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5459         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5461 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5463         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5464         attributes): Document mmap.
5466 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5468         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5469         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5470         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5471         mmix_print_operand, mmix_print_operand_address): Remove.
5472         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5473         Change return type to bool. Change argument type to bool.
5474         (mmix_print_operand, mmix_print_operand_address): Make static.
5475         (mmix_intval, mmix_output_condition): Change 'x' argument type
5476         to const_rtx.
5477         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5478         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5480 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
5482         PR target/39386
5483         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5484         shift counter for x << x and x >> x shifts.
5486 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5488         PR target/47124
5489         * config.gcc: Reject *-*-solaris2 configuration.
5491 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
5493         PR tree-optimization/49809
5494         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5495         gimple_get_lhs instead of gimple_assign_lhs.
5497 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5499         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5501 2011-07-25  Richard Guenther  <rguenther@suse.de>
5503         PR tree-optimization/49822
5504         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5505         more.  Make sure to preserve stmts with side-effects.  Properly
5506         handle virtual defs, follow a longer def chain.
5508 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
5510         PR plugins/45348
5511         PR plugins/48425
5512         PR plugins/46577
5513         * Makefile.in: Do not flatten c-family directory when installing
5514         plugin headers.
5516 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5518         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5519         original nodes if we are dealing with virtual clones.
5521 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
5523         * common/config/c6x/c6x-common.c: New file.
5525 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
5527         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5529 2011-07-25  Richard Guenther  <rguenther@suse.de>
5531         PR tree-optimization/49715
5532         * tree-vrp.c: Include expr.h and optabs.h.
5533         (range_fits_type_): New function.
5534         (simplify_float_conversion_using_ranges): Likewise.
5535         (simplify_stmt_using_ranges): Call it.
5536         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5537         * optabs.c (can_float_p): Export.
5538         * optabs.h (can_float_p): Declare.
5540 2011-07-25  Richard Guenther  <rguenther@suse.de>
5542         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5543         (get_value_range): For out-of-range SSA names or names created
5544         after propagation return a read-only varying range.
5545         (dump_all_value_ranges): Adjust.
5546         (vrp_initialize): Likewise.
5547         (vrp_finalize): Likewise.
5549 2011-07-24  Richard Henderson  <rth@redhat.com>
5551         PR debug/49831
5552         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
5553         them entirely.
5555 2011-07-24  Richard Henderson  <rth@redhat.com>
5557         PR debug/49825
5558         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5559         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5561 2011-07-24  Richard Henderson  <rth@redhat.com>
5563         PR debug/49827
5564         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5566 2011-07-24  Richard Henderson  <rth@redhat.com>
5568         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5569         Zero args_size for abnormal edges.  Adjust all callers.
5571 2011-07-24  Richard Henderson  <rth@redhat.com>
5573         PR debug/49825
5574         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5576 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
5578         PR bootstrap/49835
5579         * collect2.c (demangle_flag): Removed.
5581 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
5583         * configure.ac (demangler_in_ld): Default to yes.
5584         * configure: Regenerated.
5585         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5586         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5587         --no-demangle options straight through to ld.  When
5588         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5589         way that has the intended effect on Windows.
5591 2011-07-23  Richard Henderson  <rth@redhat.com>
5593         * dwarf2cfi.c: Include basic-block.h.
5594         (dw_label_info): Remove.
5595         (trace_work_list, trace_index): New.
5596         (remember_row, emit_cfa_remember): Remove.
5597         (dw_trace_info_hash, dw_trace_info_eq): New.
5598         (get_trace_index, get_trace_info): New.
5599         (save_point_p): New.
5600         (free_cfi_row): Remove.
5601         (add_cfi): Do not emit DW_CFA_remember_state.
5602         (cfa_row_equal_p): New.
5603         (barrier_args_size): Remove.
5604         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5605         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5606         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5607         (dwarf2out_cfi_begin_epilogue): Remove.
5608         (dwarf2out_frame_debug_restore_state): Remove.
5609         (connect_traces, create_pseudo_cfg): New.
5610         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5611         * Makefile.in (dwarf2cfi.o): Update.
5613 2011-07-23  Richard Henderson  <rth@redhat.com>
5615         * dwarf2cfi.c (dw_trace_info): New.
5616         (dw_label_info): New.
5617         (cie_return_save): New.
5618         (cur_trace): New.
5619         (queued_args_size): Rename from args_size.  Update all users.
5620         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5621         (def_cfa_1): Use cur_trace instead of cfa_*.
5622         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5623         (clobbers_queued_reg_save, reg_saved_in): Likewise.
5624         (dwarf2out_frame_debug_expr): Likewise.
5625         (create_cie_data): Split out from ...
5626         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
5628 2011-07-23  Richard Henderson  <rth@redhat.com>
5630         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
5631         Update all users to match.
5632         (execute_dwarf2_frame): Free reg_saved_in_data.
5634 2011-07-23  Richard Henderson  <rth@redhat.com>
5636         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
5637         (queued_reg_saves): Don't GTY.  Change to a VEC.
5638         (queue_reg_save): Update to match.
5639         (dwarf2out_flush_queued_reg_saves): Likewise.
5640         (clobbers_queued_reg_save): Likewise.
5641         (reg_saved_in): Likewise.
5642         (execute_dwarf2_frame): Free queued_reg_saves.
5644 2011-07-23  Richard Henderson  <rth@redhat.com>
5646         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
5648 2011-07-23  Richard Henderson  <rth@redhat.com>
5650         * dwarf2cfi.c (add_cfi_args_size): Split out from...
5651         (dwarf2out_args_size): ... here.
5652         (add_cfi_restore): Split out from ...
5653         (dwarf2out_frame_debug_cfa_restore): ... here.
5654         (def_cfa_0): Split out from ...
5655         (def_cfa_1): ... here.
5656         (cfi_oprnd_equal_p, cfi_equal_p): New.
5657         (change_cfi_row): New.
5658         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
5659         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
5660         (output_cfis): Remove.
5661         * dwarf2out.c (output_fde): Simplify output_cfi loop.
5662         (dwarf2out_switch_text_section): Don't call output_cfis.
5663         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
5664         * dwarf2out.h: Update decls.
5665         (enum dw_val_class): Add dw_val_class_none.
5667 2011-07-23  Richard Henderson  <rth@redhat.com>
5669         * dwarf2cfi.c (update_row_reg_save): New.
5670         (dwarf2out_frame_debug_cfa_expression): Use it.
5671         (dwarf2out_frame_debug_cfa_restore): Likewise.
5672         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
5674 2011-07-23  Richard Henderson  <rth@redhat.com>
5676         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
5678 2011-07-23  Richard Henderson  <rth@redhat.com>
5680         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
5681         (cie_cfi_row): New.
5682         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
5683         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
5684         (cur_row, remember_row): New.
5685         (def_cfa_1): Use cur_row instead of the old_* variables.
5686         (dwarf2out_frame_debug_restore_state): Similarly.
5687         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
5688         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
5689         (dwarf2out_frame_debug_adjust_cfa): Likewise.
5690         (dwarf2out_frame_debug_cfa_offset): Likewise.
5691         (dwarf2out_frame_debug_expr): Likewise.
5692         (execute_dwarf2_frame): Set up cur_row.
5693         * dwarf2out.h (struct cfa_loc): Mark for GTY.
5695 2011-07-23  Richard Henderson  <rth@redhat.com>
5697         * basic-block.h (EDGE_PRESERVE): New.
5698         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5699         * bb-reorder.c: Include except.h.
5700         (fix_up_crossing_landing_pad): New.
5701         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5702         landing pads in the right partition.  Duplicate as necessary.
5703         (partition_hot_cold_basic_blocks): Fix up DF info after
5704         duplicating landing pads.
5705         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5706         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5707         is set properly.  Validate that EH edges are not CROSSING.
5708         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5709         (dw2_build_landing_pads): ... here.
5710         (convert_to_eh_region_ranges): Remove code to fixup crossing
5711         landing pads.
5712         * except.h (expand_dw2_landing_pad_for_region): Declare.
5713         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5715 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
5717         PR target/49816
5718         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5720 2011-07-22  Jason Merrill  <jason@redhat.com>
5722         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5724 2011-07-22  Richard Henderson  <rth@redhat.com>
5726         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5728 2011-07-22  Richard Henderson  <rth@redhat.com>
5730         * jump.c (maybe_propagate_label_ref): Split out of...
5731         (mark_all_labels): ... here.  Do not attempt label_ref
5732         propagation while in cfglayout mode.
5734 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5736         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5737         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5738         (dwarf_attr_name): Handle DW_AT_GNU_macros.
5739         (dwarf2out_define): If the vector is empty and
5740         lineno is 0, emit a dummy entry first.
5741         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
5742         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5743         optimize_macinfo_range): New functions.
5744         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
5745         mergeable, optimize longer strings using
5746         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5747         optimize longer sequences of define/undef ops from headers
5748         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
5749         emit a section headers.
5750         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5751         and macinfo_section_label to DEBUG_MACRO_SECTION
5752         resp. DEBUG_MACRO_SECTION_LABEL.
5753         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5754         instead of DW_AT_macro_info.
5756         PR other/32998
5757         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5758         options.
5759         * dwarf2out.c: Include opts.h.
5760         (dchar_p): New typedef.  Define heap VEC for it.
5761         (producer_string): New variable.
5762         (gen_producer_string): New function.
5763         (gen_compile_unit_die): Use it.
5764         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5765         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5766         * doc/invoke.texi: Document -grecord-gcc-switches and
5767         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5768         to -frecord-gcc-switches description.
5770 2011-07-22  Jason Merrill  <jason@redhat.com>
5772         PR c++/30112
5773         * c-decl.c (c_linkage_bindings): Define.
5775 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5777         PR debug/49815
5778         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5780 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
5782         * config/i386/i386.c (ix86_option_override_internal): Disallow
5783         MS ABI in x32 mode.
5784         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5785         only for TARGET_LP64.
5786         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5788 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5790         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5791         avoid warnings when GCC is built with a C++ compiler.
5793 2011-07-22  Martin Jambor  <mjambor@suse.cz>
5795         PR lto/49796
5796         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5797         if decl node is in another partition, call cgraph_get_node only once.
5799 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
5801         * config.gcc (x86_64-*-linux*): Set
5802         default_gnu_indirect_function to yes.
5804 2011-07-22  Richard Guenther  <rguenther@suse.de>
5806         PR tree-optimization/45819
5807         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5808         preserve volatile and notrap flags.
5810 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5811             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5813         PR bootstrap/49794
5814         * configure.ac: Test AM_ICONV with CXX.
5815         * configure: Regenerate.
5816         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5818 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5820         PR bootstrap/49797
5821         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5822         (set_cloog_options): Use it.
5824 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5826         PR c++/49756
5827         * gcc.c (main): Call stack_limit_increase (64MB).
5828         * toplev.c (toplev_main): Likewise.
5830 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5832         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5833         instead of force_reg.
5835 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5837         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5838         needed and use force_reg after convert.
5839         (ix86_expand_call): Likewise.
5840         (ix86_expand_special_args_builtin): Likewise.
5841         (ix86_expand_builtin): Likewise.
5843 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5845         PR middle-end/47654
5846         PR middle-end/49649
5847         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5848         in parameter.  Initialize v1 and v2 based on the values returned
5849         by clast_name_to_lb_ub.
5850         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5851         values.
5852         (type_for_clast_bin): Same.
5853         (type_for_clast_expr): Same.
5854         (type_for_clast_eq): Update calls to type_for_clast_expr.
5855         (type_for_clast_for): Same.
5856         (build_iv_mapping): Same.
5857         * graphite-ppl.h (value_min): New.
5859 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5861         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5862         types whenever possible.
5864 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5866         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5867         and ub fields.
5868         (new_clast_name_index): Add lb and ub parameters.
5869         (free_clast_name_index): New.
5870         (clast_name_to_lb_ub): New.
5871         (save_clast_name_index): Add lb and ub parameters.
5872         (compute_bounds_for_param): New.
5873         (type_for_level): Removed.
5874         (type_for_clast_for): Removed level parameter.  Do not call
5875         type_for_level.
5876         (graphite_create_new_loop): Store the lb and ub for the clast_name
5877         of the iterator of the loop that has been generated.
5878         (graphite_create_new_loop_guard): Remove parameter level.
5879         (create_params_index): Store the lb and ub of each parameter.
5880         (gloog): Use free_clast_name_index.  Pass to create_params_index
5881         the current scop.
5883 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5885         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
5886         (max_precision_type): Inline max_signed_precision_type.
5887         (type_for_clast_red): Use max_precision_type.
5888         (type_for_clast_bin): Same.
5889         (type_for_clast_for): Same.
5891 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5893         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
5894         type_for_interval.
5895         (gcc_type_for_value): Renamed type_for_value.
5896         (gcc_type_for_clast_term): Renamed type_for_clast_term.
5897         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
5898         (gcc_type_for_clast_red): Renamed type_for_clast_red.
5899         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
5900         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
5901         (graphite_translate_clast_equation): Update calls.
5902         (compute_type_for_level): Renamed type_for_level.
5903         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
5904         (build_iv_mapping): Update calls.
5905         (graphite_create_new_loop_guard): Same.
5907 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5909         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
5910         comment.
5912 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5914         * graphite-clast-to-gimple.c (struct ivs_params): New.
5915         (clast_name_to_gcc): Use ivs_params to pass around parameters.
5916         (clast_to_gcc_expression): Same.
5917         (clast_to_gcc_expression_red): Same.
5918         (gcc_type_for_clast_term): Same.
5919         (gcc_type_for_clast_expr): Same.
5920         (gcc_type_for_clast_red): Same.
5921         (gcc_type_for_clast_bin): Same.
5922         (gcc_type_for_clast_eq): Same.
5923         (graphite_translate_clast_equation): Same.
5924         (graphite_create_guard_cond_expr): Same.
5925         (graphite_create_new_guard): Same.
5926         (graphite_create_new_loop): Same.
5927         (build_iv_mapping): Same.
5928         (translate_clast_user): Same.
5929         (graphite_create_new_loop_guard): Same.
5930         (translate_clast): Same.
5931         (translate_clast_for_loop): Same.
5932         (translate_clast_for): Same.
5933         (translate_clast_guard): Same.
5934         (initialize_cloog_names): Fix typo.
5935         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
5937 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5939         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
5940         (new_clast_name_index): Add level parameter.
5941         (clast_name_to_level): New.
5942         (save_clast_name_index): Add level parameter.
5943         (newivs_to_depth_to_newiv): Removed.
5944         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
5945         (graphite_create_new_loop): Add level parameter.  Pass level to
5946         save_clast_name_index.
5947         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
5948         (create_params_index): Pass level to save_clast_name_index.
5950 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5952         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
5953         recompute type, lb, and ub.  Get them from...
5954         (graphite_create_new_loop_guard): ...here.  Pass in parameter
5955         pointers to type, lb, and ub.
5956         (translate_clast_for_loop): Update function calls.
5957         (translate_clast_for): Same.
5959 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5961         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
5962         psct_dynamic_dim.
5963         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
5964         (gcc_type_for_iv_of_clast_loop): Update use of level.
5965         (gloog): Start counting nesting level from 0.
5966         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
5967         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
5968         psct_dynamic_dim on level.
5970 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5972         * config/i386/i386.c (ix86_legitimize_address): Convert to
5973         Pmode if needed.
5975 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5977         * config/i386/i386.c (function_value_64): Always return pointers
5978         in Pmode.
5979         (ix86_promote_function_mode): New.
5980         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
5982 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5984         PR tree-optimization/49749
5985         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
5986         remove no-longer-used maxrank variable.
5988 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5990         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
5992 2011-07-21  Jason Merrill  <jason@redhat.com>
5994         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
5995         * recog.h (struct insn_data_d): Check it instead of
5996         HAVE_DESIGNATED_INITIALIZERS.
5997         * genoutput.c (output_insn_data): Likewise.
5999 2011-07-21  Richard Guenther  <rguenther@suse.de>
6001         PR tree-optimization/49770
6002         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
6003         valueized any operand.  Renamed from ...
6004         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
6005         (valueize_shared_reference_ops_from_ref): Return whether we
6006         valueized any operand.
6007         (vn_reference_lookup): Only when we valueized any operand
6008         use the valueized reference for alias analysis.  Do not preserve
6009         the original reference tree in this case.
6011 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
6013         * config/i386/i386.c (ix86_decompose_address): Reject all but
6014         register operands and subregs of DImode hard registers in index.
6016 2011-07-21  Kai Tietz  <ktietz@redhat.com>
6018         * fold-const.c (fold_unary_loc): Preserve indirect
6019         comparison cast to none-boolean type.
6020         * tree-ssa.c (useless_type_conversion_p): Preserve cast
6021         from/to boolean-type.
6022         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
6023         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
6024         * tree-cfg.c (verify_gimple_comparison): Check result
6025         type of comparison expression.
6026         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
6027         of condition result and disallow type-cast sinking into comparison.
6029 2011-07-21  Richard Guenther  <rguenther@suse.de>
6031         * tree-ssa-forwprop.c (combine_conversions): Return whether
6032         we have to run cfg-cleanup.  Properly remove dead stmts.
6033         (ssa_forward_propagate_and_combine): Adjust.
6035 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
6037         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
6039 2011-07-21  Kai Tietz  <ktietz@redhat.com>
6041         * tree-ssa-propagate.c (substitute_and_fold): Use
6042         do_dce flag to deside, if BB's statements are scanned
6043         in last to first, or first to last order.
6045 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
6047         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
6049 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
6050             Uros Bizjak  <ubizjak@gmail.com>
6051             Richard Henderson  <rth@redhat.com>
6053         * config/i386/constraints.md (w): New.
6055         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
6056         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
6058         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
6059         instead of TARGET_64BIT.
6061         * config/i386/i386.md (indirect_jump): Replace
6062         nonimmediate_operand with indirect_branch_operand.
6063         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
6064         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
6065         Convert operand 0 to Pmode for x32 if not PIC.
6066         (*tablejump_1): Replace nonimmediate_operand with
6067         indirect_branch_operand.  Replace constraint "m" with "w".
6068         (*call_vzeroupper): Replace constraint "m" with "w".
6069         (*call): Likewise.
6070         (*call_rex64_ms_sysv_vzeroupper): Likewise.
6071         (*call_rex64_ms_sysv): Likewise.
6072         (*call_value_vzeroupper): Likewise.
6073         (*call_value): Likewise.
6074         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
6075         (*call_value_rex64_ms_sysv): Likewise.
6076         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6078         * config/i386/predicates.md (indirect_branch_operand): New.
6079         (call_insn_operand): Support x32.
6081 2011-07-20  Michael Eager  <eager@eagercon.com>
6083         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
6085 2011-07-20  Richard Henderson  <rth@redhat.com>
6087         * cfg.c (dump_bb_info): Dump basic_block->flags.
6088         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
6090 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
6092         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6093         of DImode hard registers in index.
6094         (ix86_legitimate_address_p): Allow subregs of base and index to span
6095         more than a word.  Assert that subregs of base and index satisfy
6096         register_no_elim_operand predicates.  Reject addresses where
6097         base and index have different modes.
6099 2011-07-20  Robert Millan  <rmh@gnu.org>
6101         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6103 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6105         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6106         removing now-unnecessary assignment.
6108 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6110         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6111         memory address space to the type's address space.
6113 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
6115         PR target/36467
6116         PR target/49687
6117         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6118         and expand appropriately if there is a CONST_INT in operand2.
6119         (usmulqihi3): New insn.
6120         (*sumulqihi3): New insn.
6121         (*osmulqihi3): New insn.
6122         (*oumulqihi3): New insn.
6123         (*muluqihi3.uconst): New insn_and_split.
6124         (*muluqihi3.sconst): New insn_and_split.
6125         (*mulsqihi3.sconst): New insn_and_split.
6126         (*mulsqihi3.uconst): New insn_and_split.
6127         (*mulsqihi3.oconst): New insn_and_split.
6128         (*ashifthi3.signx.const): New insn_and_split.
6129         (*ashifthi3.signx.const7): New insn_and_split.
6130         (*ashifthi3.zerox.const): New insn_and_split.
6131         (mulsqihi3): New insn.
6132         (muluqihi3): New insn.
6133         (muloqihi3): New insn.
6134         * config/avr/predicates.md (const_2_to_7_operand): New.
6135         (const_2_to_6_operand): New.
6136         (u8_operand): New.
6137         (s8_operand): New.
6138         (o8_operand): New.
6139         (s9_operand): New.
6140         (register_or_s9_operand): New.
6142 2011-07-20  Kai Tietz  <ktietz@redhat.com>
6144         * builtins.c (fold_builtin_expect): See through the cast
6145         from truthvalue_type_node to long.
6147 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
6149         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6150         where we can use them from the standard and altivec instruction
6151         sets, instead of always using the 3 operand VSX forms that require
6152         the destination to overlap one of the inputs.
6153         (vsx_fms*): Ditto.
6154         (vsx_fnma*): Ditto.
6155         (vsx_fnms*): Ditto.
6157         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6158         for DF types.
6159         (fmsdf4_fpr): Ditto.
6160         (nfmadf4_fpr): Ditto.
6161         (nfmsdf4_fpr): Ditto.
6163 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
6165         * genrecog.c (make_insn_sequence): Correct position numbering
6166         when filtering out match_scratch and match_dup.
6168 2011-07-20  Richard Guenther  <rguenther@suse.de>
6170         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6171         against already removed statements.
6172         (forward_propagate_into_comparison): Remove dead defining stmts.
6173         (forward_propagate_into_gimple_cond): Likewise.
6174         (forward_propagate_into_cond): Simplify.
6175         (ssa_forward_propagate_and_combine): Handle changed cfg from
6176         forward_propagate_into_comparison.
6177         * tree-ssa-phiopt.c (conditional_replacement): Use proper
6178         locations for newly built statements.
6180 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
6182         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
6184 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6186         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
6187         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
6189 2011-07-20  Richard Guenther  <rguenther@suse.de>
6191         PR middle-end/18908
6192         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
6193         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
6194         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
6196 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
6198         * config/frv/frv.c (frv_register_move_cost): Define explicitly
6199         costs for subclasses of GR_REGS.
6201 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
6203         PR target/49780
6204         * config/i386/predicates.md (no_seg_addres_operand): No more special.
6205         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6206         of DImode hard registers in base.
6207         (ix86_legitimate_address_p): Allow SImode and DImode base and index
6208         registers.
6210 2011-07-20  Richard Guenther  <rguenther@suse.de>
6212         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
6213         (unify_nodes): Deal with that.
6214         (solve_graph): Likewise.
6216 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
6218         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
6219         canonicalize left operand from ZERO_EXTEND to AND.
6221 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
6223         * target.def (class_max_nregs): New hook.
6224         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
6225         * doc/tm.texi: Regenerate.
6226         * targhooks.c (default_class_max_nregs): New function.
6227         * targhooks.h (default_class_max_nregs): Declare.
6228         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
6229         x_ira_reg_class_min_nregs arrays to unsigned char.
6230         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
6231         hook instead of CLASS_MAX_NREGS macro.
6232         * reginfo.c (restore_register_info): Ditto.
6233         * ira-conflicts.c (process_regs_for_copy): Use
6234         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6235         Change type rclass and aclass vars to reg_class_t.
6236         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
6237         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
6238         reg_class_t.
6239         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
6240         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6242         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
6243         * config/i386/i386.c (ix86_class_max_nregs): New function.
6244         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
6245         instead of CLASS_MAX_NREGS macro.
6246         (TARGET_CLASS_MAX_NREGS): Define.
6247         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
6248         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
6249         * config/avr/avr.c (class_max_nregs): Remove function.
6250         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
6251         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
6252         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
6253         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
6254         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
6255         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
6256         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
6257         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
6258         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
6259         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
6260         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
6261         * config/score/score.h (CLASS_MAX_NREGS): Remove.
6262         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
6263         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
6264         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
6266 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
6268         * cif-code.def (OVERWRITABLE): Fix typo and move around.
6269         (TARGET_OPTIMIZATION_MISMATCH): Delete.
6270         (EH_PERSONALITY): Fix typo.
6271         (NON_CALL_EXCEPTIONS): Fix message.
6272         (OPTIMIZATION_MISMATCH): Adjust message.
6273         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
6275 2011-07-19  Ian Lance Taylor  <iant@google.com>
6277         * doc/install.texi (Configuration): Document
6278         --enable-build-poststage1-with-cxx.
6280 2011-07-19  Robert Millan  <rmh@gnu.org>
6282         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
6283         (GLIBC_DYNAMIC_LINKER): Remove.
6285         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
6286         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6287         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6288         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
6289         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
6290         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
6292         * config/mips/linux.h: Remove everything except for ...
6293         (GLIBC_DYNAMIC_LINKER): ... this macro.
6295         * config/mips/linux64.h: Remove everything except for ...
6296         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6297         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6298         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
6299         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
6300         (GNU_USER_LINK_EMULATIONN32): New macros.
6302         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
6303         Use the new headers.
6305 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6307         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
6308         Add offset_known_p and size_known_p fields.
6309         (MEM_OFFSET_KNOWN_P): Update accordingly.
6310         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
6311         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
6312         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
6313         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
6314         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
6315         (init_emit_regs): Likewise.
6317 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6319         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
6320         (MEM_OFFSET): Change from returning an rtx to returning a
6321         HOST_WIDE_INT.
6322         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
6323         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
6324         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6325         (clear_mem_offset): Declare.
6326         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
6327         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
6328         MEM_OFFSET to get a HOST_WIDE_INT offset.
6329         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
6330         (adjust_offset_for_component_ref): Take a bool "known_p"
6331         parameter and a HOST_WIDE_INT "offset" parameter.
6332         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
6333         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
6334         than an rtx.  Use clear_mem_offset to clear the offset.
6335         * cfgcleanup.c (merge_memattrs): Likewise.
6336         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
6337         * function.c (assign_parm_find_stack_rtl): Likewise.
6338         (assign_parm_setup_stack): Likewise.
6339         * print-rtl.c (print_rtx): Likewise.
6340         * reload.c (find_reloads_subreg_address): Likewise.
6341         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6342         * var-tracking.c (INT_MEM_OFFSET): Likewise.
6343         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6344         (get_mem_align_offset): Likewise.
6345         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6346         (clear_mem_offset): New function.
6347         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
6348         offset rather than an rtx.  Assume both the expressio and offset
6349         are available.
6350         (r10k_needs_protection_p_1): Update accordingly, checking the
6351         expression and offset availability here instead.
6353 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6355         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
6356         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
6357         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
6358         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
6359         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6360         (clear_mem_size): Declare.
6361         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6362         (clear_mem_size): New function.
6363         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
6364         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
6365         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
6366         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
6367         to clear the size.
6368         (nonoverlapping_memrefs_p): Likewise.
6369         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
6370         (expand_builtin_init_trampoline): Likewise.
6371         * calls.c (compute_argument_addresses): Likewise.
6372         * cfgcleanup.c (merge_memattrs): Likewise.
6373         * dce.c (find_call_stack_args): Likewise.
6374         * dse.c (record_store, scan_insn): Likewise.
6375         * dwarf2out.c (dw_sra_loc_expr): Likewise.
6376         * expr.c (emit_block_move_hints): Likewise.
6377         * function.c (assign_parm_find_stack_rtl): Likewise.
6378         * print-rtl.c (print_rtx): Likewise.
6379         * reload.c (find_reloads_subreg_address): Likewise.
6380         * rtlanal.c (may_trap_p_1): Likewise.
6381         * var-tracking.c (track_expr_p): Likewise.
6382         * varasm.c (assemble_trampoline_template): Likewise.
6383         * config/arm/arm.c (arm_print_operand): Likewise.
6384         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
6385         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
6386         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
6387         (expand_constant_setmem_prologue): Likewise.
6388         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
6389         * config/rs6000/rs6000.c (expand_block_move): Likewise.
6390         (adjacent_mem_locations): Likewise.
6391         * config/s390/s390.c (s390_expand_setmem): Likewise.
6392         (s390_expand_insv): Likewise.
6393         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
6394         (*extendqi<mode>2_short_displ): Likewise.
6395         * config/sh/sh.c (expand_block_move): Likewise.
6396         * config/sh/sh.md (extv, extzv): Likewise.
6398 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6400         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
6401         (mem_attrs_htab_eq): ...here.
6402         (find_mem_attrs): Replace with...
6403         (set_mem_attrs): ...this function.  Take a mem_attrs structure
6404         rather than individual fields.
6405         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6406         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6407         (set_mem_size, change_address, adjust_address_1, offset_address)
6408         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6409         Update accordingly.
6411 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6413         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6414         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6415         Provide a dummy definition of MEM_ADDR_SPACE for generators.
6416         (target_rtl): Add x_mode_mem_attrs.
6417         (mode_mem_attrs): New macro.
6418         (get_mem_attrs): New function.
6419         * emit-rtl.c (get_mem_attrs): Rename to...
6420         (find_mem_attrs): ...this.
6421         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6422         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6423         (set_mem_size, change_address, adjust_address_1, offset_address)
6424         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6425         Update accordingly.
6426         (init_emit_regs): Initialize mode_mem_attrs.
6428 2011-07-19  Richard Guenther  <rguenther@suse.de>
6430         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6431         TRUTH_*_EXPR handling.
6432         * tree-ssa-operands.c (get_expr_operands): Likewise.
6433         * tree-ssa-pre.c (fully_constant_expression): Likewise.
6434         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6435         Likewise.
6436         (is_and_or_or): Likewise.
6437         (is_norm_cond_subset_of): Likewise.
6439 2011-07-19  Richard Guenther  <rguenther@suse.de>
6441         * tree.h (fold_build_pointer_plus_loc): New helper function.
6442         (fold_build_pointer_plus_hwi_loc): Likewise.
6443         (fold_build_pointer_plus): Define.
6444         (fold_build_pointer_plus_hwi): Likewise.
6445         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6446         (fold_builtin_memory_op): Likewise.
6447         (fold_builtin_stpcpy): Likewise.
6448         (fold_builtin_memchr): Likewise.
6449         (fold_builtin_strstr): Likewise.
6450         (fold_builtin_strchr): Likewise.
6451         (fold_builtin_strrchr): Likewise.
6452         (fold_builtin_strpbrk): Likewise.
6453         (fold_builtin_strcat): Likewise.
6454         (expand_builtin_memory_chk): Likewise.
6455         (fold_builtin_memory_chk): Likewise.
6456         * c-typeck.c (build_unary_op): Likewise.
6457         * cgraphunit.c (thunk_adjust): Likewise.
6458         * fold-const.c (build_range_check): Likewise.
6459         (fold_binary_loc): Likewise.
6460         * omp-low.c (extract_omp_for_data): Likewise.
6461         (expand_omp_for_generic): Likewise.
6462         (expand_omp_for_static_nochunk): Likewise.
6463         (expand_omp_for_static_chunk): Likewise.
6464         * tree-affine.c (add_elt_to_tree): Likewise.
6465         * tree-data-ref.c (split_constant_offset_1): Likewise.
6466         * tree-loop-distribution.c (generate_memset_zero): Likewise.
6467         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6468         * tree-predcom.c (ref_at_iteration): Likewise.
6469         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6470         (add_to_parts): Likewise.
6471         (create_mem_ref): Likewise.
6472         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6473         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6474         (number_of_iterations_le): Likewise.
6475         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6476         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6477         (vect_create_addr_base_for_vector_ref): Likewise.
6478         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6479         (vect_create_cond_for_alias_checks): Likewise.
6480         * tree-vrp.c (extract_range_from_assert): Likewise.
6481         * config/alpha/alpha.c (alpha_va_start): Likewise.
6482         (alpha_gimplify_va_arg_1): Likewise.
6483         * config/i386/i386.c (ix86_va_start): Likewise.
6484         (ix86_gimplify_va_arg): Likewise.
6485         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6486         * config/mep/mep.c (mep_expand_va_start): Likewise.
6487         (mep_gimplify_va_arg_expr): Likewise.
6488         * config/mips/mips.c (mips_va_start): Likewise.
6489         (mips_gimplify_va_arg_expr): Likewise.
6490         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6491         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6492         (rs6000_gimplify_va_arg): Likewise.
6493         * config/s390/s390.c (s390_va_start): Likewise.
6494         (s390_gimplify_va_arg): Likewise.
6495         * config/sh/sh.c (sh_va_start): Likewise.
6496         (sh_gimplify_va_arg_expr): Likewise.
6497         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6498         * config/spu/spu.c (spu_va_start): Likewise.
6499         (spu_gimplify_va_arg_expr): Likewise.
6500         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6501         Likewise.
6502         (xstormy16_gimplify_va_arg_expr): Likewise.
6503         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6504         (xtensa_gimplify_va_arg_expr): Likewise.
6506 2011-07-19  Richard Guenther  <rguenther@suse.de>
6508         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6509         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6510         handling.
6512         PR middle-end/18908
6513         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6514         result of BIT_*_EXPR to bitfield precision.
6516 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
6518         PR tree-optimization/49742
6519         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6520         as a potential write.
6522 2011-07-19  Richard Guenther  <rguenther@suse.de>
6524         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6525         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6526         (forward_propagate_comparison): Simplify, remove obsolete code.
6528 2011-07-19  Richard Guenther  <rguenther@suse.de>
6530         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6531         BIT_XOR_EXPR, same as the RTL expander does.
6532         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6533         (verify_gimple_assign_unary): Likewise.
6534         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6535         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6536         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6538 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
6540         PR tree-optimization/49768
6541         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6542         if offset is smaller than bitoffset, but offset+size is bigger
6543         than bitoffset.
6545 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
6547         PR tree-optimization/49771
6548         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6549         zero step, set segment length to the size of the data-ref's type.
6551 2011-07-18  Martin Jambor  <mjambor@suse.cz>
6553         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6554         comments.
6555         (ipcp_values_pool): Declare.
6556         (ipcp_sources_pool): Likewise.
6557         (ipcp_lattice): Changed to forward declaration.
6558         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6559         cannot_devirtualize.
6560         (ipa_node_params): New fields descriptors, lattices, known_vals,
6561         clone_for_all_contexts and node dead, removed fields params and
6562         count_scale.
6563         (ipa_set_param_count): Removed.
6564         (ipa_get_param_count): Made to work with descriptors vector.
6565         (ipa_get_param): Updated.
6566         (ipa_param_cannot_devirtualize_p): Removed.
6567         (ipa_param_types_vec_empty): Likewise.
6568         (ipa_set_param_used): New function.
6569         (ipa_get_param_used): Updated to use descriptors vector.
6570         (ipa_func_list): Removed.
6571         (ipa_init_func_list): Removed declaration.
6572         (ipa_push_func_to_list_1): Likewise.
6573         (ipa_pop_func_from_list): Likewise.
6574         (ipa_push_func_to_list): Removed.
6575         (ipa_lattice_from_jfunc): Remove declaration.
6576         (ipa_get_jf_pass_through_result): Declare.
6577         (ipa_get_jf_ancestor_result): Likewise.
6578         (ipa_value_from_jfunc): Likewise.
6579         (ipa_get_lattice): Update.
6580         (ipa_lat_is_single_const): New function.
6581         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6582         (ipa_init_func_list): Likewise.
6583         (ipa_pop_func_from_list): Likewise.
6584         (ipa_get_param_decl_index): Fix coding style.
6585         (count_formal_params): Removed.
6586         (count_formal_params_1): Renamed to count_formal_params.
6587         (ipa_populate_param_decls): Update to use descriptors vector.
6588         (ipa_initialize_node_params): Likewise.
6589         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6590         (ipa_analyze_params_uses): Likewise.
6591         (ipa_free_node_params_substructures): Likewise and free also lattices
6592         and known values.
6593         (duplicate_array): Removed.
6594         (ipa_edge_duplication_hook): Add the new edge to the list of edge
6595         clones.
6596         (ipa_node_duplication_hook): Update to use new lattices.
6597         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6598         (ipa_free_all_structures_after_iinln): Likewise.
6599         (ipa_write_node_info): Update to use new lattices.
6600         (ipa_read_node_info): Likewise.
6601         (ipa_get_jf_pass_through_result): New function.
6602         (ipa_get_jf_ancestor_result): Likewise.
6603         (ipa_value_from_jfunc): Likewise.
6604         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6605         * ipa-cp.c: Reimplemented.
6606         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6607         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6608         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6609         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6610         * doc/invoke.texi (devirt-type-list-size): Removed description.
6611         (ipa-cp-value-list-size): Added description.
6613 2011-07-18  Richard Henderson  <rth@redhat.com>
6615         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6616         before calling create_basic_block.
6618 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
6620         PR middle-end/49675
6621         * tree.c (build_common_builtin_nodes): Register
6622         __builtin_return_address, __cyg_profile_func_enter
6623         and __cyg_profile_func_exit.
6625 2011-07-18  Richard Henderson  <rth@redhat.com>
6627         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
6628         (add_labels_and_missing_jumps): ... here.
6629         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
6631 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
6633         PR target/47744
6634         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6635         of DImode hard registers in PLUS address chains.
6637 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6639         PR bootstrap/49769
6640         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
6641         (alpha*-*-freebsd*): Likewise.
6642         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6643         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6644         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
6645         crtprec80.o, crtfastmath.o to extra_parts for all targets.
6646         (ia64*-*-elf*): Remove extra_parts.
6647         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
6648         (sparc64-*-linux*): Likewise.
6649         (sparc64-*-freebsd*): Likewise.
6651         Revert:
6652         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
6653         (ia64*-*-linux*): Likewise.
6654         (mips64*-*-linux*): Likewise.
6655         (mips*-*-linux*): Likewise.
6657 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
6659         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
6661 2011-07-18  Richard Guenther  <rguenther@suse.de>
6663         * gimplify.c (gimplify_expr): Use input_location, not saved_location
6664         when building new trees.
6666 2011-07-18  Richard Guenther  <rguenther@suse.de>
6668         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
6669         expansion result to bitfield precision if required.
6671 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6673         * config.gcc (i[3456x]86-*-netware*): Remove.
6675         * gthr-nks.h: Remove.
6676         * configure.ac (enable_threads): Remove nks.
6677         * configure: Regenerate.
6679         * config/i386/i386.c (ix86_encode_section_info): Remove netware
6680         reference.
6681         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
6682         <netware.h> reference.
6684         * config/i386/netware-libgcc.c,
6685         gcc/config/i386/netware-libgcc.def,
6686         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
6687         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
6688         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
6689         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6691         * doc/extend.texi (Function Attributes,
6692         callee_pop_aggregate_return): Remove i?86-netware reference.
6693         * doc/install.texi (Configuration, --enable-threads): Remove nks.
6695 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6697         PR target/49746
6698         Revert:
6699         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6701         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6702         patterns.
6704 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
6706         PR middle-end/49732
6707         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6709 2011-07-16  Matthias Klose  <doko@ubuntu.com>
6711         * doc/install.texi: Document --enable-static-libjava.
6713 2011-07-15  Richard Henderson  <rth@redhat.com>
6715         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6716         Replace all three arguments by returning a VEC of edges.
6717         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6718         pointers and counts.
6719         (fix_edges_for_rarely_executed_code): Merge ...
6720         (rest_of_handle_partition_blocks): ... into...
6721         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
6722         any work was performed.
6723         (pass_partition_blocks): Clear todo_flags_finish.
6725 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
6726             Jakub Jelinek  <jakub@redhat.com>
6727             Jonathan Wakely  <jwakely.gcc@gmail.com>
6729         PR libstdc++/49745
6730         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6731         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6733 2011-07-15  Jason Merrill  <jason@redhat.com>
6735         PR testsuite/49741
6736         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6737         rather than --tool_opts.
6739 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
6741         * doc/plugins.texi (Building GCC plugins): gengtype needs its
6742         corresponding gtype.state.
6744 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6746         PR target/49723
6747         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6749 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
6751         PR target/48220
6752         * doc/md.texi (Standard Names): Document window_save.
6753         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6754         expand_debug_expr and expand_debug_source_expr.  If the target has
6755         a window_save instruction, adjust the ENTRY_VALUE_EXP.
6756         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6757         SSA_NAME_VAR is a parameter.
6758         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6759         * var-tracking.c (parm_reg_t): New type and associated vector type.
6760         (windowed_parm_regs): New variable.
6761         (adjust_insn): If the target has a window_save instruction and this
6762         is the instruction, make its effect on parameter registers explicit.
6763         (next_non_note_insn_var_location): New function.
6764         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6765         (vt_add_function_parameter): If the target has a window_save insn,
6766         adjust the incoming RTL and record that in windowed_parm_regs.
6767         (vt_finalize): Free windowed_parm_regs.
6769 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6771         * doc/invoke.texi (C6X Options): New section.
6772         * doc/md.texi (TI C6X family): New section.
6773         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6774         tic6x-*-uclinux.
6775         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6776         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6777         Provide C6X definitions.
6778         * config/c6x/c6x.md: New file.
6779         * config/c6x/constraints.md: New file.
6780         * config/c6x/predicates.md: New file.
6781         * config/c6x/c6x-sched.md.in: New file.
6782         * config/c6x/c6x-sched.md: New file.
6783         * config/c6x/gensched.sh: New file.
6784         * config/c6x/c6x-mult.md.in: New file.
6785         * config/c6x/genmult.sh: New file.
6786         * config/c6x/c6x-mult.md: New file.
6787         * config/c6x/sync.md: New file.
6788         * config/c6x/c6x-protos.h: New file.
6789         * config/c6x/sfp-machine.h: New file.
6790         * config/c6x/c6x.c: New file.
6791         * config/c6x/c6x.h: New file.
6792         * config/c6x/crti.s: New file.
6793         * config/c6x/crtn.s: New file.
6794         * config/c6x/lib1funcs.asm: New file.
6795         * config/c6x/c6x-modes.def: New file.
6796         * config/c6x/genopt.sh: New file.
6797         * config/c6x/c6x.opt: New file.
6798         * config/c6x/c6x-tables.opt: New file.
6799         * config/c6x/c6x-opts.h: New file.
6800         * config/c6x/c6x-isas.def: New file.
6801         * config/c6x/elf.h: New file.
6802         * config/c6x/elf-common.h: New file.
6803         * config/c6x/uclinux-elf.h: New file.
6804         * config/c6x/t-c6x: New file.
6805         * config/c6x/t-c6x-elf: New file.
6806         * config/c6x/t-c6x-uclinux: New file.
6807         * config/c6x/t-c6x-softfp: New file.
6808         * config/c6x/gtd.c: New file.
6809         * config/c6x/gtf.c: New file.
6810         * config/c6x/ltd.c: New file.
6811         * config/c6x/ltf.c: New file.
6812         * config/c6x/ged.c: New file.
6813         * config/c6x/gef.c: New file.
6814         * config/c6x/led.c: New file.
6815         * config/c6x/lef.c: New file.
6816         * config/c6x/eqd.c: New file.
6817         * config/c6x/eqf.c: New file.
6818         * config/c6x/libgcc-c6xeabi.ver: New file.
6820         Revert
6821         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6822         PR rtl-optimization/11320
6823         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6824         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6825         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6826         current_sched_info->compute_jump_reg_dependencies. Record which
6827         registers are used and which registers are set by the jump.
6828         Clear deps->reg_conditional_sets after a barrier.
6829         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6830         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6831         (init_deps): Initialize reg_conditional_sets.
6832         (free_deps): Clear reg_conditional_sets.
6833         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6834         Mark registers live on entry of the fallthrough block and conditionally
6835         set as set by the jump. Mark registers live on entry of non-fallthrough
6836         blocks as used by the jump.
6837         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6838         Mark new parameters as unused.
6840 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
6842         PR tree-opt/49309
6843         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6844         Use fold_build2_loc instead of build2.
6845         Use the correct type for the new tree.
6847 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6849         PR rtl-optimization/11320
6850         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6851         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6853 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6855         PR target/49487
6856         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6857         of REG.
6858         (*rotw<mode>): Use const_int_operand for operand2.
6859         Use match_scatch for operand3.
6860         (*rotb<mode>): Ditto
6861         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6863 2011-07-14  Richard Guenther  <rguenther@suse.de>
6865         PR tree-optimization/49651
6866         * tree-ssa-structalias.c (get_constraint_for_1): Properly
6867         handle dereferences with subvariables.
6869 2011-07-14  Richard Guenther  <rguenther@suse.de>
6871         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6872         (fold_stmt_1): Do it here directly on gimple and as a first thing.
6874 2011-07-14  Richard Guenther  <rguenther@suse.de>
6876         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
6877         not bool_var when folding bool_var != 1 or bool_var == 0.
6879 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6881         * haifa-sched.c (schedule_insns): Remove outdated comment.
6882         (schedule_block): When computing a known value for TODO_SPEC,
6883         just set it rather than using logical operations.
6884         (try_ready): Likewise.  Use a local variable rather than a
6885         pointer to TODO_SPEC.  Reorder an if statement to move the
6886         easy case to the then block.
6887         * sched-deps.c (dep_spec_p): New static function.
6888         (update_dep): Use it to decide whether to call
6889         change_spec_dep_to_hard.
6890         (get_back_and_forw_lists): Use it.
6891         (sd_resolve_dep): Likewise.
6892         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
6893         (haifa_note_mem_dep): Likewise.
6894         (check_dep): Likewise.
6895         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
6896         (sched_free_deps): Free in two passes.
6898 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
6900         PR middle-end/49736
6901         * expr.c (all_zeros_p): Undo bogus part of last change.
6903 2011-07-14  Matthias Klose <doko@ubuntu.com>
6905         * doc/extend.texi (optimize attribute): Fix typo.
6907 2011-07-14  Richard Guenther  <rguenther@suse.de>
6909         * gimplify.c (gimplify_expr): Only do required conversions.
6911 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6913         PR target/43746
6914         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
6915         i.e. use default_elf_select_section.
6916         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
6917         (READONLY_DATA_SECTION_ASM_OP): Remove.
6918         (TARGET_ASM_NAMED_SECTION): Move from here...
6919         * config/avr/avr.c: ...to here.
6920         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
6921         (avr_asm_named_section): Make static.
6923 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6925         PR bootstrap/49739
6926         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
6927         and crtfastmath.o for Linux/x86.
6929 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6931         * haifa-sched.c: Include "hashtab.h"
6932         (sched_no_dce): New global variable.
6933         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
6934         SHADOW_P): New macros.
6935         (last_clock_var, cycle_issued_insns): Move declarations.
6936         (must_backtrack): New static variable.
6937         (struct delay_pair): New structure.
6938         (delay_htab, delay_htab_i2): New static variables.
6939         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
6940         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
6941         functions.
6942         (dep_cost_1): If delay pairs exist, try to look up the insns and
6943         use the correct pair delay if we find them.
6944         (rank-for_schedule): Tweak priority for insns that must be scheduled
6945         soon to avoid backtracking.
6946         (queue_insn): Detect conditions which force backtracking.
6947         (ready_add): Likewise.
6948         (struct sched_block_state): Add member shadows_only_p.
6949         (struct haifa_save_data): New structure.
6950         (backtrack_queue): New static variable.
6951         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
6952         unschedule_insns_until, restore_last_backtrack_point,
6953         free_topmost_backtrack_point, free_backtrack_queue,
6954         estimate_insn_tick, estimate_shadow_tick): New functions.
6955         (prune_ready_list): New arg shadows_only_p.  All callers changed.
6956         If true, remove everything that isn't SHADOW_P.  Look up delay
6957         pairs and estimate ticks to avoid scheduling the first insn too early.
6958         (verify_shadows): New function.
6959         (schedule_block): Add machinery to enable backtracking.
6960         (sched_init): Take sched_no_dce into account when setting
6961         DF_LR_RUN_DCE.
6962         (free_delay_pairs): New function.
6963         (init_h_i_d): Initialize INSN_EXACT_TICK.
6964         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
6965         * sched-deps.c (sd_unresolve_dep): New function.
6966         * sched-int. (struct haifa_sched_info): New fields save_state
6967         and restore_state.
6968         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
6969         feeds_backtrack_insn and shadow_p.
6970         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
6971         (sched_no_dce): Declare variable.
6972         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
6973         sd_unresolve_dep): Declare functions.
6974         * modulo-sched.c (sms_sched_info): Clear the two new fields.
6975         * sched-rgn.c (rgn_const_sched_info): Likewise.
6976         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6977         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
6978         (ebb_sched_info): Add them for the two new fields.
6979         (add_deps_for_risky_insns): Call add_delay_dependencies.
6981 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6983         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
6984         Rename -mr11.
6985         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
6986         (rs6000_call_indirect_aix): Ditto.
6987         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
6988         (call_indirect_aix<ptrsize>_internal): Ditto.
6989         (call_indirect_aix<ptrsize>_nor11): Ditto.
6990         (call_indirect_aix<ptrsize>_internal2): Ditto.
6991         (call_value_indirect_aix<ptrsize>): Ditto.
6992         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6993         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6994         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6995         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
6997 2011-07-13  Jason Merrill  <jason@redhat.com>
6999         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
7001 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7003         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
7004         * config/spu/spu.md ("clrsb<mode>2"): New expander.
7006 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
7008         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
7009         * configure: Regenerate.
7011 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7013         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
7014         (asm_file_start): Remove.
7015         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
7016         free_bb_for_insn around code that modifies insns before
7017         restarting df analysis.
7019 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7021         PR target/49541
7022         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
7023         (LINK_SPEC): ... here.
7025 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7027         * haifa-sched.c (struct sched_block_state): New.
7028         (schedule_block): Move some local variables into such a structure.
7030 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7032         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
7033         * config/i386/t-crtpc: Remove.
7034         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7035         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
7036         tmake_file.
7037         (x86_64-*-darwin*): Likewise.
7038         (i[34567]86-*-linux*): Likewise.
7039         (x86_64-*-linux*): Likewise.
7041         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
7042         Handle -mpc32, -mpc64, -mpc80.
7044 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7046         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
7047         * config/alpha/t-crtfm: Remove.
7048         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
7049         * config/i386/t-crtfm: Remove.
7050         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
7051         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
7052         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
7053         * config/sparc/t-crtfm: Remove.
7055         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
7056         (alpha*-*-freebsd*): Likewise.
7057         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
7058         (x86_64-*-darwin*): Likewise.
7059         (i[34567]86-*-linux*): Likewise.
7060         (x86_64-*-linux*): Likewise.
7061         (x86_64-*-mingw*): Likewise.
7062         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
7063         (ia64*-*-freebsd*): Likewise.
7064         (ia64*-*-linux*): Likewise.
7065         (mips64*-*-linux*): Likewise.
7066         (mips*-*-linux*): Likewise.
7067         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
7068         (sparc64-*-linux*): Likewise.
7069         (sparc64-*-freebsd*): Likewise.
7071 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7073         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
7074         * config/darwin-crt3.c: Move to ../libgcc/config.
7075         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7076         ($(T)crt3$(objext)): Remove.
7077         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
7078         ($(T)crt2$(objext)): Remove.
7079         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
7080         (powerpc64-*-darwin*): Likewise.
7082 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
7084         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
7086         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
7087         (addsi_1_zext): This.
7089 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7091         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
7092         * doc/tm.texi: Regenerate.
7093         * target.def (mergeable_rodata_prefix): New defhookpod.
7094         * varasm.c (mergeable_string_section, mergeable_constant_section):
7095         Use it. Allocate name with alloca.
7097 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
7099         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7101 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7103         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7104         overlap check.
7106 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7108         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
7109         (count_type_elements): Delete.
7110         (complete_ctor_at_level_p): Declare.
7111         * expr.c (flexible_array_member_p): New function, split out from...
7112         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
7113         parameter with for_ctor_p.  When for_ctor_p is true, return the
7114         number of elements that should appear in the top-level constructor,
7115         otherwise return an estimate of the number of scalars.
7116         (categorize_ctor_elements): Replace p_must_clear with p_complete.
7117         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
7118         (complete_ctor_at_level_p): New function, borrowing union logic
7119         from old categorize_ctor_elements_1.
7120         (mostly_zeros_p): Return true if the constructor is not complete.
7121         (all_zeros_p): Update call to categorize_ctor_elements.
7122         * gimplify.c (gimplify_init_constructor): Update call to
7123         categorize_ctor_elements.  Don't call count_type_elements.
7124         Unconditionally prevent clearing for variable-sized types,
7125         otherwise rely on categorize_ctor_elements to detect
7126         incomplete initializers.
7128 2011-07-13  Richard Guenther  <rguenther@suse.de>
7130         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7131         the final type is integral.
7133 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7135         * sched-int.h (struct _dep): Add member cost.
7136         (DEP_COST, UNKNOWN_DEP_COST): New macros.
7137         * sched-deps.c (init_dep_1): Initialize DEP_COST.
7138         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7139         (sched_change_pattern): Reset it for dependent insns.
7141 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7143         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7144         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7145         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7146         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7147         (CRT0_S, MCRT0_S): Remove.
7148         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7149         Remove.
7150         (s-crt0): Remove.
7151         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7153 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
7155         * cse.c (insert_with_costs): Put semi-colon after empty loop body
7156         on the next line.
7157         * emit-rtl.c (push_to_sequence): Likewise.
7158         * haifa-sched.c (max_issue): Likewise.
7159         * matrix-reorg.c (add_allocation_site): Likewise.
7160         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7161         * reload.c (alternative_allows_const_pool_ref): Likewise.
7162         * sched-rgn.c (rgn_add_block): Likewise.
7163         (rgn_fix_recovery_cfg): Likewise.
7164         * tree.c (attribute_list_contained): Likewise.
7166 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
7168         * config/i386/i386.c: Tidy processor feature bitmasks.
7169         (m_P4_NOCONA): New.
7171 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
7173         PR rtl-opt/49474
7174         * cprop.c (find_implicit_sets): Correct the condition.
7176 2011-07-12  Richard Henderson  <rth@redhat.com>
7178         PR target/49713
7179         * dwarf2out.h (dwarf_frame_regnum): Remove.
7180         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
7181         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
7182         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
7183         (execute_dwarf2_frame): Initialize them.
7184         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
7185         users of the macros with the variables.
7186         (expand_builtin_dwarf_sp_column): Revert last change.
7187         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
7188         result of DWARF_FRAME_REGNUM into a local variable.
7190 2011-07-12  Richard Henderson  <rth@redhat.com>
7192         PR target/49714
7193         * config/i386/i386.c (x86_output_mi_thunk): Use
7194         machopic_indirect_call_target instead of machopic_indirection_name
7195         directly.
7197 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
7198             Eric Botcazou  <ebotcazou@adacore.com>
7200         * prefix.h: Wrap up in extern "C" block.
7202 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
7204         AMD bdver2 Enablement
7205         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
7206         (case ${target}): Add bdver2.
7207         * config/i386/driver-i386.c (host_detect_local_cpu): Let
7208         -march=native recognize bdver2 processors.
7209         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7210         bdver2 def_and_undef
7211         * config/i386/i386.c (struct processor_costs bdver2_cost): New
7212         bdver2 cost table.
7213         (m_BDVER2): New definition.
7214         (m_AMD_MULTIPLE): Includes m_BDVER2.
7215         (initial_ix86_tune_features): Add bdver2 tuning.
7216         (processor_target_table): Add bdver2 entry.
7217         (static const char *const cpu_names): Add bdver2 entry.
7218         (ix86_option_override_internal): Add bdver2 instruction sets.
7219         (ix86_issue_rate): Add bdver2.
7220         (ix86_adjust_cost): Add bdver2.
7221         (has_dispatch): Add bdver2.
7222         * config/i386/i386.h (TARGET_BDVER2): New definition.
7223         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
7224         (enum processor_type): Add PROCESSOR_BDVER2.
7225         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
7226         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
7227         description.
7229 2011-07-12  Richard Henderson  <rth@redhat.com>
7231         PR target/49714
7232         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
7233         destination address in memory on some paths.
7235 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
7237         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
7238         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
7239         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
7240         * function.c (locate_and_pad_parm): Take it into account.
7241         * target.def (function_arg_round_boundary): New hook.
7242         * targhooks.c (default_function_arg_round_boundary): New function.
7243         * targhooks.h (default_function_arg_round_boundary): Declare.
7244         * doc/tm.texi: Regenerate.
7246 2011-07-12  Richard Guenther  <rguenther@suse.de>
7248         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
7249         Do not perform no-op changes.
7251 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
7253         * config/arm/predicates.md (neon_struct_operand): Make a normal
7254         predicate.
7255         (neon_struct_or_register_operand): New predicate.
7256         * config/arm/neon.md (movmisalign<mode>): Replace predicates
7257         with neon_struct_or_register_operand.
7258         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
7259         neon_struct_operand instead of memory_operand.
7261 2011-07-12  Martin Jambor  <mjambor@suse.cz>
7263         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
7264         * cgraph.c (cgraph_get_node_or_alias): Removed.
7265         (change_decl_assembler_name): Changed all calls to
7266         cgraph_get_node_or_alias to a call to cgraph_get_node.
7267         (cgraph_make_decl_local): Likewise.
7268         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
7269         * varasm.c (default_binds_local_p_1): Likewise.
7270         (decl_binds_to_current_def_p): Likewise.
7272 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
7274         PR tree-optimization/49712
7275         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
7277 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
7279         * genautomata.c (add_arc): Return void.  All callers changed.
7280         (make_automaton): Remove dead code.
7282 2011-07-11  Richard Henderson  <rth@redhat.com>
7284         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
7285         (DW_FRAME_POINTER_REGNUM): New.
7286         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
7287         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
7288         (dwf_regno): New.
7289         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
7290         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
7291         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
7292         Use it.
7293         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
7294         * dwarf2out.h (dwarf_frame_regnum): New.
7295         (struct cfa_loc): Document the domain of the reg member.
7297 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
7299         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
7300         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
7302 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
7304         PR debug/49676
7305         * dwarf2out.c (int_shift_loc_descriptor): New function.
7306         (int_loc_descriptor): If shorter, emit i as
7307         (i >> shift), shift, DW_OP_shl for suitable shift value.
7308         Similarly, try to optimize large negative values using
7309         DW_OP_neg of a positive value if shorter.
7310         (size_of_int_shift_loc_descriptor): New function.
7311         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
7312         changes.
7313         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
7314         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
7315         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
7316         is shorter.
7317         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
7318         addend as added DW_OP_plus if it is shorter.
7320 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7322         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
7323         (DTORS_SECTION_ASM_OP): Define.
7325 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7327         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
7328         * config/t-dfprules: Move to ../libgcc/config.
7329         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7330         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7331         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
7332         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
7333         Likewise.
7334         (i[34567]86-*-cygwin*): Likewise.
7335         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
7336         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
7337         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
7338         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
7339         D64PBIT_FUNCS, D128PBIT_FUNCS.
7341 2011-07-11  Richard Guenther  <rguenther@suse.de>
7343         * tree-vrp.c (simplify_conversion_using_ranges): Manually
7344         translate the source value-range through the conversion chain.
7346 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
7348         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
7350 2011-07-11  Arthur Loiret  <aloiret@debian.org>
7352         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
7353         a bi-arch compiler defaulting to 31-bit. In this case:
7354         (tmake_file): Add s390/t-linux64.
7355         * doc/install.texi: Add s390-linux to the list of targets supporting
7356         --enable-targets=all.
7358 2011-07-11  Arthur Loiret  <aloiret@debian.org>
7359             Matthias Klose <doko@debian.org>
7361         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
7362         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
7363         (tm_file): Add mips/linux64.h.
7364         (tmake_file): Add mips/t-linux64.
7365         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7366         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
7367         instead of hardcoded mabi=n32.
7368         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7369         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7370         convention.
7372 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7374         * passes.c (init_optimization_passes): Add invariant motion pass
7375         after induction variable optimization.
7377 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
7379         PR target/39633
7380         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
7381         offsets 1..5 set cc0 in a usable way.
7383 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
7385         * tree.h (call_expr_arg): Remove.
7386         (call_expr_argp): Likewise.
7388 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
7390         * config/sparc/sparc.md (save_register_window_1): Rename to...
7391         (window_save): ...this.
7392         * config/sparc/sparc.c (emit_save_register_window): Rename to...
7393         (emit_window_save): ...this.
7394         (sparc_expand_prologue): Adjust to above renaming.
7396 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7398         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
7399         of movabs for x32.
7401 2011-07-10  Richard Henderson  <rth@redhat.com>
7403         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7404         run final, instead of emitting text directly.
7406 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7408         * config/i386/i386.c (ix86_option_override_internal): Turn on
7409         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
7410         small PIC models for TARGET_X32.
7412 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
7414         PR target/49684
7415         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7416         $(LIBGCC2_CFLAGS).
7418         PR bootstrap/49680
7419         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7420         stray notes and debug insns by using prev_nonnote_nondebug_insn
7421         instead of PREV_INSN.
7423 2011-07-09  Richard Henderson  <rth@redhat.com>
7425         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7426         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7427         * dwarf2out.c: ... here.
7428         (output_all_cfis): Remove.
7429         (dwarf2out_switch_text_section): Use output_cfis directly.
7430         (size_of_locs): Export.
7431         (output_loc_sequence, output_loc_sequence_raw): Export.
7432         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7433         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7434         output_cfa_loc_raw): Move to ...
7435         * dwarfcfi.c: ... here.
7436         * dwarf2out.h: Update decls.
7438 2011-07-09  Richard Henderson  <rth@redhat.com>
7440         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7441         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7442         * dwarf2cfi.c: ... here.
7443         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7444         (DWARF_ROUND, DWARF_CIE_ID): Remove.
7445         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7446         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7447         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7449 2011-07-09  Richard Henderson  <rth@redhat.com>
7451         * dwarf2cfi.c (cie_return_save): New.
7452         (queue_reg_save): Use compare_reg_or_pc.
7453         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7454         (dwarf2out_frame_debug_expr): Likewise.
7455         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7456         (initial_return_save): Likewise.
7457         (execute_dwarf2_frame): Save and restore initial return save from
7458         the cie to the fde.
7459         * config/mips/mips.c (mips_frame_set): Remove special case for
7460         DWARF_FRAME_RETURN_COLUMN.
7462 2011-07-09  Richard Henderson  <rth@redhat.com>
7464         * dwarf2cfi.c (lookup_cfa): Remove.
7465         (execute_dwarf2_frame): Assert queues are empty on entry.
7466         Setup initial cfa directly, not via lookup_cfa.
7467         Don't clear args_size state here.
7469 2011-07-09  Richard Henderson  <rth@redhat.com>
7471         * dwarf2cfi.c (add_cfi_vec): New.
7472         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
7473         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
7474         (execute_dwarf2_frame): Set add_cfi_vec.
7476 2011-07-09  Richard Henderson  <rth@redhat.com>
7478         * defaults.h (ASM_COMMENT_START): Move here...
7479         * dwarf2asm.c: ... from here.
7480         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7481         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7482         * varasm.c: Likewise.
7484 2011-07-09  Richard Henderson  <rth@redhat.com>
7486         PR debug/49686
7487         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7488         (create_cfi_notes): ... do it here instead.
7490 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
7492         PR debug/49676
7493         * dwarf2out.c (size_of_int_loc_descriptor): New function.
7494         (address_of_int_loc_descriptor): Use it.
7495         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7497 2011-07-09  Richard Henderson  <rth@redhat.com>
7499         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7500         (prologue, epilogue): New.
7501         (return, *rts): New.
7502         (blockage, setd, seti): New.
7503         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7504         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7505         (pdp11_saved_regno): New.
7506         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7507         generate rtl instead of text.
7508         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7509         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
7510         * config/pdp11/pdp11-protos.h: Update.
7512 2011-07-09  Richard Henderson  <rth@redhat.com>
7514         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7515         try to insert an rtl prologue here.
7516         (rs6000_output_function_epilogue): Similarly.
7517         * config/rs6000/rs6000.md (prologue): Emit a barrier to
7518         satisfy !TARGET_SCHED_PROLOG.
7519         (epilogue, sibcall_epilogue): Likewise.
7521 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
7523         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7524         (FP_REG_P): Delete.
7525         (IN_OR_GLOBAL_P): Likewise.
7527 2011-07-08  Jason Merrill  <jason@redhat.com>
7529         PR c++/45437
7530         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7531         compound assignment.
7533         * cgraph.c (cgraph_add_to_same_comdat_group): New.
7534         * cgraph.h: Declare it.
7535         * ipa.c (function_and_variable_visibility): Make sure thunks
7536         have the right visibility.
7538 2011-07-08  Richard Henderson  <rth@redhat.com>
7540         PR bootstrap/49680
7541         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7542         any tablejump vector.
7544         PR bootstrap/49680
7545         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7546         end of the prologue.
7548 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
7550         PR target/49621
7551         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7552         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7553         * config/rs6000/vector.md (vector_select_<mode>,
7554         vector_select_<mode>_uns): Change second operand of NE to
7555         CONST0_RTX (<MODE>mode) instead of const0_rtx.
7556         * config/rs6000/altivec.md (*altivec_vsel<mode>,
7557         *altivec_vsel<mode>_uns): Expect second operand of NE to be
7558         zero_constant of the corresponding vector mode.
7559         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7560         Likewise.
7562 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7564         * graphite-dependences.c (build_alias_set_powerset): Remove
7565         continue from loop, add one more assert.
7567 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7569         PR target/46779
7570         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7571         In particular, allow 8-bit values in r28 and r29.
7572         (avr_hard_regno_scratch_ok): Disallow any register that might be
7573         part of the frame pointer.
7574         (avr_hard_regno_rename_ok): Same.
7575         (avr_legitimate_address_p): Don't allow SUBREGs.
7577 2011-07-08  Julian Brown  <julian@codesourcery.com>
7579         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7580         big-endian mode.
7581         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7582         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7583         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7584         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7585         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7586         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7587         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7588         registers in big-endian mode.
7590 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7592         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7593         in terms of another.
7594         (write_attr_value): Write a cast if necessary.
7596         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7597         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7598         (REG_WORDS_BIG_ENDIAN): Document.
7599         * doc/tm.texi: Regenerate.
7600         * reload.c (operands_match_p): Take it into account.
7601         (reload_adjust_reg_for_mode): Likewise.
7602         * rtlanal.c (subreg_get_info): Likewise.
7604 2011-07-08  Richard Guenther  <rguenther@suse.de>
7606         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7607         folding.
7609 2011-07-08  Kai Tietz  <ktietz@redhat.com>
7611         * fold-const.c (fold_truth_andor): Factored out truth_andor
7612         label from fold_binary as function.
7613         (fold_binary_loc): Replace truth_andor lable
7614         by function fold_truth_andor.
7616 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
7618         PR middle-end/49519
7619         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7620         check if address is stored in register. If so - give up.
7621         (check_sibcall_argument_overlap_1): Do not perform check of
7622         overlapping when it is call to address.
7624 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7626         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
7627         of magic '31'.
7629 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7631         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
7632         GET_MODE_BITSIZE where appropriate.
7633         (widen_leading, expand_parity, expand_ctz, expand_ffs,
7634         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
7635         expand_float, expand_fix): Likewise.
7636         * expr.c (convert_move, convert_modes, expand_expr_real_2,
7637         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7638         * stor-layout.c (get_mode_bounds): Likewise.
7639         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
7640         Likewise.
7641         * convert.c (convert_to_integer): Likewise.
7642         * expmed.c (expand_shift_1): Likewise.
7644         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
7645         a bitsize.
7647         * optabs.c (expand_binop): Tighten conditions for doubleword
7648         expansions.
7649         (widen_bswap): Assert that mode bitsize and precision are the same.
7650         * stor-layout.c (get_best_mode): Skip modes that have lower
7651         precision than bitsize.
7652         * recog.c (simplify_while_replacing): Assert that bitsize and
7653         precision are the same.
7655 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7657         * Makefile.in (LIBGCOV): Remove.
7658         (libgcc.mvars): Remove LIBGCOV.
7659         * libgov.c: Move to ../libgcc.
7661 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7663         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
7665 2011-07-08  Martin Jambor  <mjambor@suse.cz>
7667         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
7668         is too big for total scalarization.
7670 2011-07-07  Richard Henderson  <rth@redhat.com>
7672         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
7673         (DBX_DEBUGGING_INFO): Undef.
7675 2011-07-07  Richard Henderson  <rth@redhat.com>
7677         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
7678         Handle some opcodes specially for debugging.
7679         * print-rtl.c: Include dwarf2out.h
7680         (print_rtx): Handle NOTE_INSN_CFI.
7681         * Makefile.in (print-rtl.o): Update.
7683 2011-07-07  Richard Henderson  <rth@redhat.com>
7685         * tree-pass.h (pass_dwarf2_frame): Declare.
7686         * passes.c (init_optimization_passes): Add it.
7687         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
7688         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
7689         make static, do not call add_cfis_to_fde.
7690         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7691         dwarf2out_frame_init): Merge into...
7692         (execute_dwarf2_frame): ... here.  New function.
7693         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
7694         saved_do_cfi_asm to a tri-state variable.
7695         (gate_dwarf2_frame, pass_dwarf2_frame): New.
7696         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7697         if it has yet to be done.  Don't call dwarf2cfi_function_init.
7698         * dwarf2out.h, debug.h: Update decls.
7699         * final.c (final_start_function): Don't call
7700         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7701         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7702         * toplev.c (lang_dependent_init): Likewise.
7704 2011-07-07  Richard Henderson  <rth@redhat.com>
7706         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7707         FDE_TABLE_INCREMENT): Replace with...
7708         (fde_vec): ... this, a new vector.
7709         (current_fde): Remove.  Replace all users with cfun->fde.
7710         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7711         (size_of_aranges, dwarf2out_finish): Likewise.
7712         (dwarf2out_alloc_current_fde): Break out from ...
7713         (dwarf2out_begin_prologue): ... here.
7714         (dwarf2out_frame_init): Remove.
7715         * dwarf2cfi.c: Update all users of current_fde.
7716         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7717         * dwarf2out.h: Update decls.
7718         (dw_fde_node): Add fde_index member.
7719         * function.h (struct function): Add fde member.
7721 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7722             Richard Henderson  <rth@redhat.com>
7724         * dwarf2cfi.c (add_cfi): Remove.
7725         (dwarf2out_cfi_label): Remove force argument.  Only generate the
7726         label name.
7727         (add_fde_cfi): Simplify the different code paths.
7728         (add_cie_cfi): New.
7729         (old_cfa, old_cfa_remember): New.
7730         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7731         (last_reg_save_label): Remove.
7732         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7733         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7734         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7735         dwarf2out_frame_debug_cfa_expression,
7736         dwarf2out_frame_debug_cfa_restore,
7737         dwarf2out_frame_debug_cfa_window_save,
7738         dwarf2out_frame_debug_expr): Remove label parameter.
7739         (cfi_label_required_p, add_cfis_to_fde): New.
7740         (dwarf2out_frame_debug_after_prologue): New.
7741         (dwarf2cfi_frame_init): Initialize old_cfa.
7742         (dwarf2out_frame_debug_restore_state): Likewise.
7743         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7744         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7745         * final.c (final_start_function): Call
7746         dwarf2out_frame_debug_after_prologue.
7748 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7749             Richard Henderson  <rth@redhat.com>
7751         * dwarf2cfi.c (cfi_insn): New.
7752         (dwarf2out_cfi_label): Don't emit cfi label here.
7753         (add_fde_cfi): Create a NOTE_INSN_CFI.
7754         (dwarf2out_frame_debug): Setup cfi_insn.
7755         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7756         (dwarf2out_cfi_begin_epilogue): Make static.
7757         (dwarf2out_frame_debug_restore_state): Make static.
7758         * dwarf2out.c (output_cfi_directive): Make static.
7759         (dwarf2out_emit_cfi): New.
7760         * dwarf2out.h: Update.
7761         * final.c (final): Remove CFI notes.
7762         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7763         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7764         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7765         * insn-notes.def (NOTE_INSN_CFI): New.
7766         (NOTE_INSN_CFI_LABEL): New.
7767         * rtl.h (union rtunion_def): Add rt_cfi member.
7768         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7770 2011-07-07  Richard Henderson  <rth@redhat.com>
7772         * dwarf2cfi.c: New file.
7773         * Makefile.in (OBJS): Add it.
7774         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7775         * gengtype.c (open_base_files): Include dwarf2out.h.
7776         * coretypes.h (enum var_init_status): Move from ...
7777         * rtl.h: ... here.
7778         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7779         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7780         expand_builtin_dwarf_sp_column, init_return_column_size,
7781         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7782         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7783         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7784         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7785         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7786         compute_barrier_args_size, dwarf2out_args_size,
7787         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7788         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7789         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7790         queue_reg_save, dwarf2out_flush_queued_reg_saves,
7791         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7792         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7793         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7794         dwarf2out_frame_debug_cfa_expression,
7795         dwarf2out_frame_debug_cfa_restore,
7796         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7797         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7798         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7799         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7800         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7801         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7802         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7803         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7804         dw_loc_descr_node): Move to dwarf2out.h.
7805         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7806         mem_loc_descriptor): Export.
7807         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
7808         (dwarf2out_frame_init): Extract CIE generation code to
7809         dwarf2cfi_frame_init.
7811 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7813         PR target/49660
7814         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7815         MASK_V8PLUS, remove commented out flag and reorder.
7817 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7819         PR c/49644
7820         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7821         one non-complex and one complex argument, call c_save_expr on both
7822         operands.
7824 2011-07-07  Martin Jambor  <mjambor@suse.cz>
7826         PR middle-end/49495
7827         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7828         (verify_cgraph_node): Some functinality moved to
7829         verify_edge_corresponds_to_fndecl, call it.
7831 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7833         * config.gcc (*local*): Remove.
7834         * doc/install-old.texi: Don't mention local configurations.
7836 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7838         PR debug/49522
7839         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7840         referencing debug insns that have been reset.
7841         (dead_debug_insert_before): Don't assert reg is non-NULL,
7842         instead return immediately if it is NULL.
7844 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7846         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7848 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7850         * hw-doloop.c: New file.
7851         * hw-doloop.h: New file.
7852         * Makefile.in (OBJS): Add hw-doloop.o.
7853         (hw-doloop.o): New rule.
7854         ($(obj_out_file)): Add hw-doloop.h dependency.
7855         * config/bfin/bfin.c: Include "hw-doloop.h".
7856         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7857         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7858         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
7859         type changed to hwloop_info.  Return bool, true if the loop was
7860         successfully optimized.  Remove code that was moved to
7861         hw-doloop.c, and adjust other parts.
7862         (hwloop_fail): New static function, containing parts that used
7863         to be in bfin_optimize_loop.
7864         (bfin_discover_loop, bfin_discover_loops, free_loops,
7865         bfin_reorder_loops): Remove.
7866         (hwloop_pattern_reg): New static function.
7867         (bfin_doloop_hooks): New variable.
7868         (bfin_reorg_loops): Remove most code, call reorg_loops.
7869         * config/bfin/bfin.md (doloop_end splitter): Also enable if
7870         loop counter is a memory_operand.
7872 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7874         * config.gcc: Support --with-multilib-list for x86 Linux targets.
7876         * configure.ac: Mention x86-64 for --with-multilib-list.
7877         * configure: Regenerated.
7879         * config/i386/gnu-user64.h (SPEC_64): Support x32.
7880         (SPEC_32): Likewise.
7881         (ASM_SPEC): Likewise.
7882         (LINK_SPEC): Likewise.
7883         (TARGET_THREAD_SSP_OFFSET): Likewise.
7884         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
7885         (SPEC_X32): New.
7887         * config/i386/i386.h (TARGET_X32): New.
7888         (TARGET_LP64): New.
7889         (LONG_TYPE_SIZE): Likewise.
7890         (POINTER_SIZE): Likewise.
7891         (POINTERS_EXTEND_UNSIGNED): Likewise.
7892         (OPT_ARCH64): Support x32.
7893         (OPT_ARCH32): Likewise.
7895         * config/i386/i386.opt (mx32): New.
7897         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
7898         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7899         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
7900         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7902         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
7903         (BIONIC_DYNAMIC_LINKERX32): Likewise.
7904         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
7906         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
7908         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
7910         * doc/invoke.texi: Document -mx32.
7912 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7914         * doc/invoke.texi (mwords-little-endian): Deprecate.
7915         * config/arm/arm.opt (mwords-little-endian): Likewise.
7916         * config/arm/arm.c (arm_option_override): Warn about the deprecation
7917         of -mwords-little-endian.
7919 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7921         * reload1.c (choose_reload_regs): Use mode sizes to check whether
7922         an old reload register completely defines the required value.
7924 2011-07-07  Richard Guenther  <rguenther@suse.de>
7926         * fold-const.c (fold_unary_loc): Do not strip sign-changes
7927         for NEGATE_EXPR.
7929 2011-07-07  Richard Guenther  <rguenther@suse.de>
7931         * tree-vrp.c (simplify_conversion_using_ranges): New function.
7932         (simplify_stmt_using_ranges): Call it.
7934 2011-07-07  Kai Tietz  <ktietz@redhat.com>
7936         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
7937         (lookup_logical_inverted_value): Likewise.
7938         (simplify_bitwise_binary_1): Likewise.
7939         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
7941 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7943         * gcc.c (%[Spec]): Don't document.
7944         (struct spec_list): Update comment.
7945         (do_spec_1): Don't handle %[Spec].
7946         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
7948 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7950         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
7951         default based on TARGET_ASM_NAMED_SECTION.
7952         * common/common-target.def (have_named_sections): Default to true.
7953         * common/config/default-common.c: Don't include tm.h.
7954         * common/config/picochip/picochip-common.c
7955         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
7956         * common/config/m32c/m32c-common.c: Remove.
7957         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
7958         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7959         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7960         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7961         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7962         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7963         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7965 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7967         PR middle-end/49640
7968         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
7969         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
7971 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7973         PR libmudflap/49550
7974         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
7976 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7978         PR target/39150
7979         * configure.ac (gcc_cv_as_hidden): Also accept
7980         x86_64-*-solaris2.1[0-9]*.
7981         (gcc_cv_as_cfi_directive): Likewise.
7982         (gcc_cv_as_comdat_group_group): Likewise.
7983         (set_have_as_tls): Likewise.
7984         * configure: Regenerate.
7985         * config.gcc (i[34567]86-*-solaris2*): Also handle
7986         x86_64-*-solaris2.1[0-9]*.
7987         * config.host (i[34567]86-*-solaris2*): Likewise.
7988         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7989         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
7990         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
7991         (TARGET_LD_EMULATION): Use it.
7992         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
7993         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
7994         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
7995         (ASM_CPU64_DEFAULT_SPEC): Define.
7996         (ASM_CPU_SPEC): Use %(asm_cpu_default).
7997         (ASM_SPEC): Redefine.
7998         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
7999         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
8000         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
8001         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
8002         configuration.
8003         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
8005 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8007         * config/sol2.h (ASM_SPEC): Split into ...
8008         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
8009         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
8010         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
8011         (ASM_SPEC): Use ASM_SPEC_BASE.
8012         * config/sparc/sol2.h (ASM_SPEC): Redefine.
8014 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
8016         * config/avr/avr.md (*reload_insi): Change predicate #1 to
8017         const_int_operand.  Ditto for peep2 producing this insn.
8018         Add argument to output_reload_insisf call.
8019         (*movsi,*movsf): Add argument to output_movsisf call.
8020         (*reload_insf): New insn and new peep2 to produce it.
8021         * config/avr/avr-protos.h (output_movsisf): Change prototype.
8022         (output_reload_insisf): Change prototype.
8023         * config/avr/avr.c (avr_asm_len): New function.
8024         (output_reload_insisf): Rewrite.
8025         (output_movsisf): Change prototype.  output_reload_insisf for
8026         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
8027         (adjust_insn_length): Add argument to output_movsisf and
8028         output_reload_insisf call.
8030 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8032         * emit-rtl.c (paradoxical_subreg_p): New function.
8033         * rtl.h (paradoxical_subreg_p): Declare.
8034         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
8035         apply_distributive_law, simplify_comparison, simplify_set): Use it.
8036         * cse.c (record_jump_cond, cse_insn): Likewise.
8037         * expr.c (force_operand): Likewise.
8038         * rtlanal.c (num_sign_bit_copies1): Likewise.
8039         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
8040         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
8041         (push_reload): Use precision to check for paradoxical subregs.
8042         * expmed.c (extract_bit_field_1): Likewise.
8044         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
8045         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
8046         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
8047         simplify_set, simplify_logical, expand_compound_operation,
8048         make_extraction, force_to_mode, if_then_else_cond, extended_count,
8049         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
8050         record_value_for_reg): Likewise.
8051         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
8052         * simplify-rtx. c (simplify_unary_operation_1,
8053         simplify_binary_operation_1, simplify_const_relational_operation):
8054         Likewise.
8056         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
8057         instead of GET_MODE_BITSIZE where appropriate.
8058         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
8059         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
8060         init_num_sign_bit_copies_in_rep): Likewise.
8061         * cse.c (fold_rtx, cse_insn): Likewise.
8062         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
8063         * simplify-rtx.c (simplify_unary_operation_1,
8064         simplify_const_unary_operation, simplify_binary_operation_1,
8065         simplify_const_binary_operation, simplify_ternary_operation,
8066         simplify_const_relational_operation, simplify_subreg): Likewise.
8067         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
8068         simplify_if_then_else, simplify_set, expand_compound_operation,
8069         expand_field_assignment, make_extraction, if_then_else_cond,
8070         make_compound_operation, force_to_mode, make_field_assignment,
8071         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
8072         extended_count, try_widen_shift_mode, simplify_shift_const_1,
8073         simplify_comparison, record_promoted_value, simplify_compare_const,
8074         record_dead_and_set_regs_1): Likewise.
8076         Revert:
8077         * simplify-rtx.c (simplify_const_binary_operation): Use the
8078         shift_truncation_mask hook instead of performing modulo by width.
8079         Compare against mode precision, not bitsize.
8080         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8081         Use shift_truncation_mask instead of constructing the value manually.
8083 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8085         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
8086         declaration.
8087         (rs6000_save_toc_in_prologue_p): Ditto.
8089         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
8090         up the static chain (r11) during indirect function calls.
8091         (-msave-toc-indirect): New undocumented debug switch.
8093         * config/rs6000/rs6000.c (struct machine_function): Add
8094         save_toc_in_prologue field to note whether the prologue needs to
8095         save the TOC value in the reserved stack location.
8096         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
8097         to save the TOC in the prologue, do so.
8098         (rs6000_trampoline_init): Don't allow creating AIX style
8099         trampolines if -mno-r11 is in effect.
8100         (rs6000_call_indirect_aix): New function to create AIX style
8101         indirect calls, adding support for -mno-r11 to suppress loading
8102         the static chain, and saving the TOC in the prologue instead of
8103         the call body.
8104         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8105         TOC in the prologue.
8107         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8108         register numbers.
8109         (TOC_REGNUM): Ditto.
8110         (STATIC_CHAIN_REGNUM): Ditto.
8111         (ARG_POINTER_REGNUM): Ditto.
8112         (SFP_REGNO): Delete, unused.
8113         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8114         function descriptor offsets.
8115         (TOC_SAVE_OFFSET_64BIT): Ditto.
8116         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8117         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8118         (AIX_FUNC_DESC_SC_32BIT): Ditto.
8119         (AIX_FUNC_DESC_SC_64BIT): Ditto.
8120         (ptrload): New mode attribute for the appropriate load of a pointer.
8121         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8122         (call_indirect_aix64): Ditto.
8123         (call_value_indirect_aix32): Ditto.
8124         (call_value_indirect_aix64): Ditto.
8125         (call_indirect_nonlocal_aix32_internal): Ditto.
8126         (call_indirect_nonlocal_aix32): Ditto.
8127         (call_indirect_nonlocal_aix64_internal): Ditto.
8128         (call_indirect_nonlocal_aix64): Ditto.
8129         (call): Rewrite AIX indirect function calls.  Add support for
8130         eliminating the static chain, and for moving the save of the TOC
8131         to the function prologue.
8132         (call_value): Ditto.
8133         (call_indirect_aix<ptrsize>): Ditto.
8134         (call_indirect_aix<ptrsize>_internal): Ditto.
8135         (call_indirect_aix<ptrsize>_internal2): Ditto.
8136         (call_indirect_aix<ptrsize>_nor11): Ditto.
8137         (call_value_indirect_aix<ptrsize>): Ditto.
8138         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8139         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8140         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8141         (call_nonlocal_aix32): Relocate in the rs6000.md file.
8142         (call_nonlocal_aix64): Ditto.
8144         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8145         -mno-r11 documentation.
8147 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
8149         PR other/49658
8150         * doc/extend.texi (Compound Literals): Fix typo.
8152 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
8154         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8156 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
8158         * configure.ac (plugin-version.h): Generate
8159         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8160         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8161         macros.
8163         * configure: Regenerate.
8165         * doc/plugins.texi (Building GCC plugins): Mention
8166         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8168 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8170         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8171         * combine.c (make_extraction, gen_lowpart_or_truncate,
8172         apply_distributive_law, simplify_comparison,
8173         reg_truncated_to_mode, record_truncated_value): Use it.
8174         * cse.c (notreg_cost): Likewise.
8175         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8176         * expr.c (convert_move, convert_modes): Likewise.
8177         * optabs.c (expand_binop, expand_unop): Likewise.
8178         * postreload.c (move2add_last_label): Likewise.
8179         * regmove.c (optimize_reg_copy_3): Likewise.
8180         * rtlhooks.c (gen_lowpart_general): Likewise.
8181         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8183 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
8185         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
8187 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8189         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
8190         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
8191         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
8192         (simplify_const_unary_operation, simplify_binary_operation_1,
8193         simplify_const_binary_operation, simplify_const_relational_operation):
8194         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
8195         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
8196         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
8197         simplify_shift_const_1, simplify_comparison): Likewise.
8198         * expr.c (convert_modes): Likewise.
8199         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
8200         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
8201         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
8203         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
8205 2011-07-06  Richard Guenther  <rguenther@suse.de>
8207         PR tree-optimization/49645
8208         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
8209         register variables.
8210         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
8211         in type qualification here ...
8212         (copy_reference_ops_from_ref): ... not here.
8213         (vn_reference_lookup_3): ... or here.
8214         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
8215         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
8217 2011-07-06  Ian Lance Taylor  <iant@google.com>
8219         * doc/install.texi (Configuration): It's
8220         --enable-gnu-indirect-function, not --enable-indirect-function.
8222 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8224         * simplify-rtx.c (simplify_const_binary_operation): Use the
8225         shift_truncation_mask hook instead of performing modulo by width.
8226         Compare against mode precision, not bitsize.
8227         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8228         Use shift_truncation_mask instead of constructing the value manually.
8230 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8232         PR middle-end/47383
8233         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
8234         address computation and convert to address_mode if needed.
8236 2011-07-06  Richard Guenther  <rguenther@suse.de>
8238         * tree.c (build_common_tree_nodes_2): Merge with
8239         build_common_tree_nodes.
8240         * tree.h (build_common_tree_nodes): Adjust prototype.
8241         (build_common_tree_nodes_2): Remove.
8242         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8243         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
8245 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
8247         PR tree-optimization/49618
8248         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
8249         t recurse on the decl.
8250         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
8251         return true if expr isn't known to be defined in current
8252         TU or some other LTO partition.
8254 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
8256         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
8257         override CASE_VALUES_THRESHOLD.
8259         * stmt.c (toplevel): Include params.h.
8260         (case_values_threshold): Use the --param case-values-threshold
8261         value if non-zero, otherwise use machine dependent value.
8262         (expand_case): Use case_values_threshold.
8264         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
8266         * doc/invoke.texi (--param case-values-threshold): Document.
8268 2011-07-05  Richard Henderson  <rth@redhat.com>
8270         * dwarf2out.c (dwarf2out_cfi_label): Make static.
8271         (dwarf2out_flush_queued_reg_saves): Make static.
8272         (dwarf2out_reg_save): Remove.
8273         (dwarf2out_return_save): Remove.
8274         (dwarf2out_return_reg): Remove.
8275         (dwarf2out_reg_save_reg): Remove.
8276         (dwarf2out_def_cfa): Merge into ...
8277         (dwarf2out_frame_init): ... here.
8278         * dwarf2out.h, tree.h: Remove declarations as necessary.
8280 2011-07-05  Richard Henderson  <rth@redhat.com>
8282         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
8283         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8284         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
8285         the alloc insn.
8287         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
8288         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
8289         (process_epilogue): Don't call dwarf2out_def_cfa.
8291         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
8292         indicate the return address save.
8293         (process_cfa_register): Likewise.
8295         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
8296         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
8298         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
8299         for ar.pfs save at alloc insn.
8301 2011-07-05  Richard Henderson  <rth@redhat.com>
8303         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
8304         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8305         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
8306         stack pointer save.
8307         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
8308         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
8309         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
8310         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
8312 2011-07-05  Richard Henderson  <rth@redhat.com>
8314         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
8315         VUNSPEC_* constants here instead of via define_constants.
8316         (VUNSPEC_PEM): New constant.
8317         (procedure_entry_mask): New insn.
8318         (prologue): New expander.
8319         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
8320         (vax_expand_prologue): Rename from vax_output_function_prologue;
8321         emit rtl instead of text.
8322         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8323         (print_operand): Add 'x' prefix.
8325 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8327         PR middle-end/47715
8328         * calls.c (precompute_register_parameters): Promote the function
8329         argument before checking non-legitimate constant.
8331 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8333         PR tree-optimization/47654
8334         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
8335         (lst_do_strip_mine_loop): Return an int.
8336         (lst_do_strip_mine): Same.
8337         (scop_do_strip_mine): Same.
8338         (scop_do_block): Loop blocking should strip-mine at least two loops.
8339         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
8340         (scop_do_interchange): Same.
8341         * graphite-poly.h (scop_do_interchange): Update declaration.
8342         (scop_do_strip_mine): Same.
8344 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8346         * graphite-clast-to-gimple.c (precision_for_value): Removed.
8347         (precision_for_interval): Removed.
8348         (gcc_type_for_interval): Use mpz_sizeinbase.
8350 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8352         * graphite-ppl.h (value_max): Correct computation of max.
8354 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8356         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
8358 2011-07-05  Richard Guenther  <rguenther@suse.de>
8360         * c-decl.c (c_init_decl_processing): Defer building common
8361         tree nodes to c_common_nodes_and_builtins.
8363 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
8365         PR tree-optimization/49580
8366         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
8367         the loop's number of iterations.
8368         * tree-parloops.c (transform_to_exit_first_loop): Add the
8369         handling of the loop's number of iterations before the call
8370         to gimple_duplicate_sese_tail.
8371         Insert the stmt caclculating the new rhs of the loop's
8372         condition stmt to the preheader instead of iters_bb.
8374 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8376         PR rtl-optimization/47449
8377         * fwprop.c (forward_propagate_subreg): Don't propagate hard
8378         register nor zero/sign extended hard register.
8380 2011-07-05  Richard Guenther  <rguenther@suse.de>
8382         PR tree-optimization/49518
8383         PR tree-optimization/49628
8384         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
8385         irrelevant and invariant data-references.
8386         (vect_analyze_data_ref_access): For invariant loads clear the
8387         group association.
8389 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
8391         PR rtl-optimization/49619
8392         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
8393         pass VOIDmode as op0_mode to recursive call, and return temp even
8394         when different from tor, just if it is not IOR of the original
8395         PLUS arguments.
8397         PR rtl-optimization/49472
8398         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
8399         negating MULT, negate the second operand instead of first.
8400         (simplify_binary_operation_1) <case MULT>: If one operand is
8401         a NEG and the other is MULT, don't attempt to optimize by negation
8402         of the MULT operand if it only moves the NEG operation around.
8404         PR debug/49602
8405         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8406         get_current_def return value if it can't be trusted to be
8407         the current value of the variable in the current bb.
8409 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
8411         PR target/49600
8412         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8413         general register to memory for !TARGET_INTER_UNIT_MOVES.
8415 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8417         PR target/44643
8418         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8419         instead of TREE_READONLY.
8421 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8423         * doc/extend.texi (AVR Built-in Functions): Update documentation
8424         of __builtin_avr_fmul*.
8425         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8426         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8427         * config/avr/avr.md (fmul): Rename to fmul_insn.
8428         (fmuls): Rename to fmuls_insn.
8429         (fmulsu): Rename to fmulsu_insn.
8430         (fmul,fmuls,fmulsu): New expander.
8431         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8432         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8433         * config/avr/libgcc.S (__fmul): New function.
8434         (__fmuls): New function.
8435         (__fmulsu,__fmulsu_exit): New function.
8437 2011-07-04  Richard Guenther  <rguenther@suse.de>
8439         PR tree-optimization/49615
8440         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8441         basic-block index check.
8443 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8445         * longlong.h (count_leading_zeros, count_trailing_zeros,
8446         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8447         resp. 64.
8449 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
8451         PR tree-optimization/49610
8452         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8453         a basic block.
8455 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8456             Olivier Hainque  <hainque@adacore.com>
8457             Nicolas Setton  <setton@adacore.com>
8459         * tree.h (TYPE_ARTIFICIAL): New flag.
8460         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8461         the DIE of the type if it is artificial.
8462         (gen_array_type_die): Likewise.
8463         (gen_enumeration_type_die): Likewise.
8464         (gen_struct_or_union_type_die): Likewise.
8465         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8466         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8468 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8470         * tree-object-size.c (pass_through_call): Handle
8471         BUILT_IN_ASSUME_ALIGNED.
8473 2011-07-01  Martin Jambor  <mjambor@suse.cz>
8475         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8477 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
8479         PR middle-end/48016
8480         * explow.c (update_nonlocal_goto_save_area): Use proper mode
8481         for stack save area.
8482         * function.c (expand_function_start): Likewise.
8484 2011-07-01  Richard Guenther  <rguenther@suse.de>
8486         PR middle-end/49596
8487         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8488         may have unknown refs.
8490 2011-07-01  Kai Tietz  <ktietz@redhat.com>
8492         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8494 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8496         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8497         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8498         (Specific, mips-sgi-irix6): Likewise.
8500 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8502         PR libmudflap/49549
8503         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8505 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8507         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8508         [idx]= and [idx1 ... idx2]= before initializers if needed for
8509         array initializers.
8511 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
8513         * config.gcc (score-*-elf): Remove score7.o.
8514         * config/score/t-score-elf: Likewise.
8515         * config/score/score.c: Merge score7 to score.c and
8516         remove forwarding functions.
8517         * config/score/score7.c: Deleted.
8518         * config/score/score7.h: Deleted.
8520 2011-07-01  Richard Guenther  <rguenther@suse.de>
8522         PR tree-optimization/49603
8523         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8525 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8527         * tree-sra.c (struct access): Rename total_scalarization to
8528         grp_total_scalarization
8529         (completely_scalarize_var): New function.
8530         (sort_and_splice_var_accesses): Set total_scalarization in the
8531         representative access.
8532         (analyze_access_subtree): Propagate total scalarization accross the
8533         tree, no holes in totally scalarized trees, simplify coverage
8534         computation.
8535         (analyze_all_variable_accesses): Call completely_scalarize_var instead
8536         of completely_scalarize_record.
8538 2011-06-30  Richard Henderson  <rth@redhat.com>
8540         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8541         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8542         * config/i386/i386.c: Don't include dwarf2out.h.
8543         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8544         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8545         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
8546         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8547         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8549 2011-06-30  Richard Henderson  <rth@redhat.com>
8551         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8552         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8553         * final.c (final_scan_insn): Look for it, and invoke
8554         dwarf2out_frame_debug before the insn if found.
8556 2011-06-30  Richard Henderson  <rth@redhat.com>
8558         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8559         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8561 2011-06-30  Richard Henderson  <rth@redhat.com>
8563         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8564         Define a vector of this type.
8565         (regs_saved_in_regs): Use a VEC.
8566         (num_regs_saved_in_regs): Remove.
8567         (compare_reg_or_pc): New.
8568         (record_reg_saved_in_reg): Split out from...
8569         (dwarf2out_flush_queued_reg_saves): ... here.
8570         (clobbers_queued_reg_save): Update for VEC.
8571         (reg_saved_in): Likewise.
8572         (dwarf2out_frame_debug_init): Likewise.
8573         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8574         (dwarf2out_frame_debug_cfa_register): Likewise.
8576 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8578         PR tree-optimization/49572
8579         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8580         type of the RHS instead of that of the LHS for the expression type.
8582 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8584         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8585         unconditionally.
8587 2011-06-30  Richard Guenther  <rguenther@suse.de>
8589         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8590         * tree-ssa-structalias.c (create_variable_info_for): Do not
8591         add initial constraints for non-var-decls.  Properly handle
8592         globals in other ltrans partitions.
8593         (intra_create_variable_infos): Manually create constraints for
8594         the fake no-alias parameter.
8595         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8596         and assert there are no clones.
8598 2011-06-30  Richard Guenther  <rguenther@suse.de>
8600         PR tree-optimization/46787
8601         * tree-data-ref.c (dr_address_invariant_p): Remove.
8602         (find_data_references_in_stmt): Invariant accesses are ok now.
8603         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8604         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8605         invariant loads.
8607 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8609         PR tree-optimization/49094
8610         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8611         (build_accesses_from_assign): Use it.
8613 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8615         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8616         handling of BUILT_IN_ASSUME_ALIGNED.
8618         PR debug/49364
8619         * dwarf2out.c (output_abbrev_section): Don't return early
8620         if abbrev_die_table_in_use is 1.
8621         (dwarf2out_finish): Instead don't call output_abbrev_section
8622         nor emit abbrev_section_label in that case.
8624 2011-06-30  Nick Clifton  <nickc@redhat.com>
8626         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
8627         for the V850E.
8629 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8631         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8632         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
8634 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
8636         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8637         both pattern and original statements if necessary.
8638         (vect_transform_loop): Likewise.
8639         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
8640         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
8641         Mark the pattern statement only if the original statement doesn't
8642         have its own uses.
8643         (process_use): Call vect_mark_relevant with additional parameter.
8644         (vect_mark_stmts_to_be_vectorized): Likewise.
8645         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
8646         (vect_analyze_stmt): Handle both pattern and original statements
8647         if necessary.
8648         (vect_transform_stmt): Don't store vectorized pattern statement
8649         in the original statement.
8650         (vect_is_simple_use_1): Use related pattern statement only if the
8651         original statement is irrelevant.
8652         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8654 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
8656         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
8657         option.
8658         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
8659         entry.
8660         (TARGET_AVX128_OPTIMAL): New definition.
8661         * config/i386/i386.c (initial_ix86_tune_features): Initialize
8662         X86_TUNE_AVX128_OPTIMAL entry.
8663         (ix86_option_override_internal): Enable the generation
8664         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
8665         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
8666         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
8668 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
8670         PR tree-optimization/49539
8671         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
8672         names by means of stmt_references_abnormal_ssa_name.
8673         (associate_plusminus): Call can_propagate_from before propagating
8674         from definition statements.
8675         (ssa_forward_propagate_and_combine): Remove superfluous newline.
8677 2011-06-29  Richard Guenther  <rguenther@suse.de>
8679         * doc/invoke.texi: Document -scev dump modifier.
8680         * tree-pass.h (TDF_SCEV): New dump flag.
8681         * tree-dump.c (dump_option_value_in): Add scev.
8682         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
8683         * tree-scalar-evolution.c: Likewise.
8685 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8687         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
8688         (cxa_type_match): Correct declaration.
8689         (__gnu_unwind_pr_common): Reconstruct additional indirection
8690         when __cxa_type_match returns succeeded_with_ptr_to_base.
8692 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8694         PR rtl-optimization/49114
8695         * reload.c (struct replacement): Remove SUBREG_LOC member.
8696         (push_reload): Do not set it.
8697         (push_replacement): Likewise.
8698         (subst_reload): Remove dead code.
8699         (copy_replacements): Remove assertion.
8700         (copy_replacements_1): Do not handle SUBREG_LOC.
8701         (move_replacements): Likewise.
8702         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
8703         Detect subregs via recursive descent instead of via SUBREG_LOC.
8705 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8707         * config/avr/avr.c (avr_encode_section_info): Dispatch to
8708         default_encode_section_info.
8710 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
8712         PR tree-optimization/49545
8713         * builtins.c (get_object_alignment_1): Update function comment.
8714         Do not use DECL_ALIGN for functions, but test
8715         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8716         * fold-const.c (get_pointer_modulus_and_residue): Don't check
8717         for functions here.
8718         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8720 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
8722         PR debug/49567
8723         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8724         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8726 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8728         PR target/34734
8729         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8730         about uninitialized data attributed 'progmem' from here...
8731         (avr_encode_section_info): ...to this new function.
8732         (TARGET_ENCODE_SECTION_INFO): New define.
8733         (avr_section_type_flags): For data in ".progmem.data", remove
8734         section flag SECTION_WRITE.
8736 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8738         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8739         _xmulhisi3_exit.
8740         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8741         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
8742         (__umulhisi3): Ditto.
8743         * config/avr/avr.md (mulhisi3): New insn expender.
8744         (umulhisi3): New insn expender.
8745         (*mulhisi3_call): New insn.
8746         (*umulhisi3_call): New insn.
8748 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8750         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8752 2011-06-28  Richard Henderson  <rth@redhat.com>
8754         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
8755         all code and arguments that handled pushes.  Update all callers.
8757 2011-06-28  Richard Henderson  <rth@redhat.com>
8759         * config/arm/arm.c (arm_output_function_prologue): Don't call
8760         thumb1_output_function_prologue.
8761         (arm_expand_prologue): Avoid dead store.
8762         (number_of_first_bit_set): Use ctz_hwi.
8763         (thumb1_emit_multi_reg_push): New.
8764         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8765         to emit the entire prologue as rtl.
8766         (thumb1_output_interwork): Split out from
8767         thumb1_output_function_prologue.
8768         (thumb1_output_function_prologue): Remove.
8769         (arm_attr_length_push_multi): Handle thumb1.
8770         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8771         (prologue_thumb1_interwork): New.
8772         (*push_multi): Allow thumb1; use push_mult_memory_operand.
8773         * config/arm/predicates.md (push_mult_memory_operand): New.
8775 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8777         * config/sparc/sync.md (*stbar): Delete.
8778         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8780 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8782         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8784 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8786         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8787         (TARGET_64BIT_DEFAULT): Define.
8788         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8789         of tm_file.
8790         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8792 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8794         * common.opt (in_lto_p): New Variable entry.
8795         * flags.h (in_lto_p): Move to common.opt.
8796         * gcc.c: Include params.h.
8797         (set_option_handlers): Also use common_handle_option and
8798         target_handle_option.
8799         (main): Call global_init_params, finish_params and init_options_struct.
8800         * opts.c (debug_type_names): Move from toplev.c.
8801         (print_filtered_help): Access quiet_flag through opts pointer.
8802         (common_handle_option): Return early in the driver for some options.
8803         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8804         opts pointer.
8805         * toplev.c (in_lto_p): Move to common.opt.
8806         (debug_type_names): Move to opts.c.
8807         * Makefile.in (OBJS): Remove opts.o.
8808         (OBJS-libcommon-target): Add opts.o.
8809         (gcc.o): Update dependencies.
8811 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8813         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8815 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8817         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8818         with '=' constraint modifier.
8819         (*divdf3_vfp): Likewise.
8820         ("*mulsf3_vfp"): Likewise.
8821         ("*muldf3_vfp"): Likewise.
8822         ("*mulsf3negsf_vfp"): Likewise.
8823         ("*muldf3negdf_vfp"): Likewise.
8825 2011-06-28  Nick Clifton  <nickc@redhat.com>
8827         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8828         relaxation when performing an incremental link.
8830 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8832         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8833         within BB from last to first.
8835 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8837         * genattr-common.c: New.  Based on genattr.c.
8838         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8839         (MOSTLYCLEANFILES): Add insn-attr-common.h.
8840         (opts.o): Update dependencies.
8841         (.PRECIOUS): Add insn-attr-common.h.
8842         (simple_rtl_generated_h): Add insn-attr-common.h.
8843         (build/genattr-common.o): New.
8844         (genprogrtl): Add attr-common.
8845         * genattr.c (main): Include insn-attr-common.h.  Don't generate
8846         definitions of DELAY_SLOTS or INSN_SCHEDULING.
8847         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8849 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
8851         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8852         avr-*-* and avr-*-rtems* targets.
8854         * config/avr/elf.h: New file.
8855         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8856         (TARGET_ASM_SELECT_SECTION): Define.
8857         (INIT_SECTION_ASM_OP): Undefine.
8858         (FINI_SECTION_ASM_OP): Undefine.
8859         (READONLY_DATA_SECTION_ASM_OP): Undefine.
8860         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8861         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8862         * config/avr/avr.h:
8863         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8864         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8865         (MAX_OFILE_ALIGNMENT): Move to elf.h.
8866         (STRING_LIMIT): Move to elf.h.
8867         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8868         (ASM_DECLARE_OBJECT_NAME): Remove.
8869         (ESCAPES): Remove.
8870         (ASM_OUTPUT_SKIP): Remove.
8871         (DWARF2_DEBUGGING_INFO): Remove.
8872         (OBJECT_FORMAT_ELF): Remove.
8873         (USER_LABEL_PREFIX): Remove.
8874         (ASM_OUTPUT_EXTERNAL): Remove.
8875         (ASM_OUTPUT_ASCII): Remove.
8876         (TYPE_ASM_OP): Remove.
8877         (SIZE_ASM_OP): Remove.
8878         (WEAK_ASM_OP): Remove.
8879         (STRING_ASM_OP): Remove.
8880         (SET_ASM_OP): Remove.
8881         (ASM_WEAKEN_LABEL): Remove.
8882         (TYPE_OPERAND_FMT): Remove.
8883         (ASM_DECLARE_FUNCTION_SIZE): Remove.
8884         (ASM_FINISH_DECLARE_OBJECT): Remove.
8885         (NO_DOLLAR_IN_LABEL): Remove.
8886         (ASM_GENERATE_INTERNAL_LABEL): Remove.
8887         (ASM_OUTPUT_CASE_LABEL): Remove.
8888         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
8889         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
8890         (gas_output_ascii): Remove.
8891         (gas_output_limited_string): Remove.
8892         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
8893         * config/avr/avr-protos.h
8894         (gas_output_ascii): Remove prototye.
8895         (gas_output_limited_string): Remove prototype.
8897 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
8899         PR target/48637
8900         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
8901         asm operands.
8903 2011-06-27  Jan Hubicka  <jh@suse.cz>
8905         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
8906         node instead of references in node.
8908 2011-06-27  Richard Henderson  <rth@redhat.com>
8910         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
8911         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
8912         inside ifdef.
8914 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
8916         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
8918         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
8919         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
8920         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8921         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
8922         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8923         (evaluate_stmt, execute_fold_all_builtins): Handle
8924         BUILT_IN_ASSUME_ALIGNED.
8925         * tree-ssa-dce.c (propagate_necessity): Likewise.
8926         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8927         call_may_clobber_ref_p_1): Likewise.
8928         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
8929         (expand_builtin_assume_aligned): New function.
8930         * doc/extend.texi (__builtin_assume_aligned): Document.
8932         PR debug/49544
8933         * cselib.c (promote_debug_loc): If cselib_preserve_constants
8934         and l has two DEBUG_INSN owned locs instead of just one, adjust
8935         the second location's setting_insn too.
8937 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8939         PR libmudflap/38738
8940         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
8942 2011-06-27  Nick Clifton  <nickc@redhat.com>
8944         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
8945         bit position of highest bit set into a count of the high zero bits.
8947 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8949         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
8951 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8953         PR lto/48492
8954         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
8955         to a NULL parent.
8957 2011-06-27  Richard Guenther  <rguenther@suse.de>
8959         PR tree-optimization/49394
8960         * passes.c (execute_one_pass): Restore current_pass after
8961         applying IPA transforms.
8963 2011-06-27  Kai Tietz  <ktietz@redhat.com>
8965         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
8966         out of type precision after operation.
8967         (find_bswap): Take for limit value the integer auto-promotion
8968         into account.
8970 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8972         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
8973         forward scan as well.
8975 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8977         PR target/44241
8978         * config/vms/vms-protos.h: New file.
8979         * config/vms/vms-crtlmap.map: New file.
8980         * config/vms/vms.c: New file.
8981         * config/vms/make-crtlmap.awk: New file.
8982         * config/vms/vms-crtl.h: File removed.
8983         * config/vms/vms-crtl-64.h: File removed.
8984         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
8985         * config/alpha/vms64.h: Do not include vms-crtl-64.h
8986         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
8987         clear some builtins on VMS.  Calls vms_patch_builtins.
8988         (avms_asm_output_external): Remove.
8989         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
8990         (struct crtl_name_spec): Remove
8991         (DO_CTRL_NAMES): Remove.
8992         * config/ia64/vms.h (struct crtl_name_spec): Remove
8993         (DO_CTRL_NAMES): Remove.
8994         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
8995         clear some builtins on VMS.  Calls vms_patch_builtins.
8996         (ia64_asm_output_external): Remove DO_CRTL_NAME.
8997         * config/ia64/vms64.h: Do not include vms-crtl-64.h
8998         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
9000 2011-06-27  Tristan Gingold  <gingold@adacore.com>
9002         * config/alpha/alpha.c (alpha_end_function): Always generate .end
9003         directive on VMS.
9005 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
9007         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
9008         the function receives nonlocal gotos.
9010 2011-06-27  Richard Guenther  <rguenther@suse.de>
9012         PR tree-optimization/49536
9013         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
9014         For non-scalar inner types use a scalar type according to
9015         the scalar inner mode.
9017 2011-06-27  Richard Guenther  <rguenther@suse.de>
9019         PR tree-optimization/49365
9020         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
9022 2011-06-27  Richard Guenther  <rguenther@suse.de>
9024         PR tree-optimization/49169
9025         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
9026         the alignment of function decls.
9028 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
9030         PR target/47997
9031         * config/darwin.c (darwin_mergeable_string_section): Place string
9032         constants in '.cstring' rather than '.const' when CF/NSStrings are
9033         active.
9035 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
9037         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
9038         (emit_save_register_window): Likewise.
9039         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
9040         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
9041         Swap back %o7/%i7 in register naming.
9043 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
9045         PR driver/49371
9046         * config/darwin.c (darwin_override_options): Improve warning when
9047         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
9048         is given with fpie/fPIE.
9049         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
9050         * config/darwin9.h (PIE_SPEC): New.
9052 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
9054         * timevar.c (timevar_print): Increase width for display of timevar
9055         name.
9057 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
9059         PR c++/46400
9060         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
9061         instead of TYPE_CHAIN for chain_next for types.
9063 2011-06-24  Richard Henderson  <rth@redhat.com>
9065         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
9066         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
9067         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
9068         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
9069         (sparc_flat_expand_prologue): Emit individual instructions
9070         instead of one of the above.
9072 2011-06-24  Easwaran Raman  <eraman@google.com>
9074         PR rtl-optimization/49429
9075         PR target/49454
9076         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
9077         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
9078         used to copy y into x.
9079         * calls.c (initialize_argument_information): Mark
9080         an argument addressable if it is passed by invisible reference.
9081         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
9082         if it is passed by reference.
9084 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9086         PR rtl-optimization/49504
9087         * rtlanal.c (nonzero_bits1): Properly handle addition or
9088         subtraction of a pointer in Pmode if pointers extend unsigned.
9089         (num_sign_bit_copies1): Likewise.
9091 2011-06-24  Martin Jambor  <mjambor@suse.cz>
9093         PR tree-optimizations/49516
9094         * tree-sra.c (sra_modify_assign): Choose the safe path for
9095         aggregate copies if we also did scalar replacements.
9097 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9099         PR target/49335
9100         * config/arm/predicates.md (add_operator): New.
9101         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9103 2011-06-24  Andi Kleen  <ak@linux.intel.com>
9105         * tree-sra.c (type_internals_preclude_sra_p): Add msg
9106         parameter. Split up ifs and report reason in *msg.
9107         (reject): Add.
9108         (find_var_candiate): Add msg variable.
9109         Split up ifs and report reason to reject.
9110         (find_param_candidates): Add msg variable.
9111         Pass msg to type_internals_preclude_sra_p.
9113 2011-06-23  Jeff Law  <law@redhat.com>
9115         PR middle-end/48770
9116         * reload.h (reload): Change to return a bool.
9117         * ira.c (ira): If requested by reload, run a fast DCE pass after
9118         reload has completed.  Fix comment typo.
9119         * reload1.c (need_dce): New file scoped static.
9120         (reload): Set reload_completed here.  Return whether or not a DCE
9121         pass after reload is needed.
9122         (delete_dead_insn): Set need_dce as needed.
9124         PR middle-end/49465
9125         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9126         to detect threading through joiner block.  If there was already
9127         an edge to the new target, then do not change the PHI nodes.
9129 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
9131         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9132         get_pointer_alignment to see if base isn't sufficiently aligned.
9134 2011-06-23  Jan Hubicka  <jh@suse.cz>
9136         PR tree-optimize/49373
9137         * tree-pass.h (all_late_ipa_passes): Declare.
9138         * cgraphunit.c (init_lowered_empty_function): Fix properties.
9139         (cgraph_optimize): Execute late passes; remove unreachable funcions
9140         after materialization.
9141         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9142         LTOing.
9143         * passes.c (all_late_ipa_passes): Declare.
9144         (dump_passes, register_pass): Handle late ipa passes.
9145         (init_optimization_passes): Move ipa_pta to late passes; schedule
9146         fixup_cfg at beggining of all_passes.
9147         (apply_ipa_transforms): New function.
9148         (execute_one_pass): When doing simple ipa pass, apply all transforms.
9150 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
9152         * params.c: Include common/common-target.h.  Don't include tm.h.
9153         (lang_independent_params): Move from toplev.c.
9154         (global_init_params): New.
9155         * params.h (global_init_params): Declare.
9156         * target.def (default_params): Move to common-target.def.
9157         * toplev.c (lang_independent_options): Remove.
9158         (lang_independent_params): Move to params.c.
9159         (general_init): Use global_init_params.
9160         * common/common-target.def (option_default_params): Move from
9161         target.def.
9162         * common/config/ia64/ia64-common.c: Include params.h.
9163         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9164         from ia64.c.
9165         * common/config/rs6000/rs6000-common.c: Include params.h.
9166         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9167         from rs6000.c.
9168         * common/config/sh/sh-common.c: Include params.h.
9169         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9170         from sh.c.
9171         * common/config/spu/spu-common.c: Include params.h.
9172         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9173         from spu.c.
9174         * config/ia64/ia64.c (ia64_option_default_params,
9175         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
9176         * config/rs6000/rs6000.c (rs6000_option_default_params,
9177         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
9178         * config/sh/sh.c (sh_option_default_params,
9179         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
9180         * config/spu/spu.c (spu_option_default_params,
9181         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
9182         * Makefile.in (OBJS): Remove params.o.
9183         (OBJS-libcommon-target): Add params.o.
9184         (params.o, $(common_out_object_file)): Update dependencies.
9185         * doc/tm.texi: Regenerate.
9187 2011-06-23  Alan Modra  <amodra@gmail.com>
9189         PR bootstrap/49383
9190         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
9191         invocation for 2011-06-09 changes.
9193 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
9195         PR libgomp/49490
9196         * omp-low.c (expand_omp_for_static_nochunk): Only
9197         use n ceil/ nthreads size for the first n % nthreads threads in the
9198         team instead of all threads except for the last few ones which
9199         get less work or none at all.
9201         PR debug/49496
9202         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
9203         uses.
9205 2011-06-22  Richard Guenther  <rguenther@suse.de>
9207         PR tree-optimization/49493
9208         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
9209         Refer to the alias target of variables.
9210         (associate_varinfo_to_alias_1): Remove.
9211         (ipa_pta_execute): Do not associate aliases with anything.
9212         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
9213         (cgraph_function_node): Likewise.
9214         (cgraph_function_or_thunk_node): Likewise.
9215         (varpool_variable_node): Likewise.
9217 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
9219         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
9220         * config.gcc (arm*-*-linux*): Default to gnu tls.
9221         (arm*-*-*): Add --with-tls option.
9222         (all_defaults): Add 'tls'.
9224 2011-06-22  Richard Henderson  <rth@redhat.com>
9226         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
9227         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9228         (dwarf2out_frame_debug_cfa_window_save): Rename from
9229         dwarf2out_window_save; make static.
9230         * tree.h (dwarf2out_window_save): Don't declare.
9232         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
9233         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9234         (emit_save_register_window): Rename from gen_save_register_window;
9235         emit the insn and add REG_CFA_* notes.
9236         (sparc_expand_prologue): Update to match.
9237         * config/sparc/sparc.md (save_register_window_1): Simplify from
9238         save_register_window<P:mode>.
9240 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9242         PR target/49497
9243         * config/i386/i386.md (*lea_general_2): Always allow SImode.
9244         (*lea_general_2_zext): Likewise.
9245         (imul to lea peepholes): Use const359_operand and check
9246         TARGET_PARTIAL_REG_STALL.
9248         * config/i386/predicates.md (const359_operand): New.
9250 2011-06-22  Michael Matz  <matz@suse.de>
9252         * cgraphunit.c (assemble_thunk): Use correct return type.
9254 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
9255             Dmitry Melnik  <dm@ispras.ru>
9257         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
9258         (neon_output_shift_immediate): Ditto.
9259         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
9260         prototype.
9261         (neon_output_shift_immediate): Ditto.
9262         * config/arm/neon.md (vashl<mode>3): Modified constraint.
9263         (vashr<mode>3_imm): New insn pattern.
9264         (vlshr<mode>3_imm): Ditto.
9265         (vashr<mode>3): Modified constraint.
9266         (vlshr<mode>3): Ditto.
9267         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
9268         predicate.
9269         (imm_for_neon_rshift_operand): Ditto.
9270         (imm_lshift_or_reg_neon): Ditto.
9271         (imm_rshift_or_reg_neon): Ditto.
9273         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
9275 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
9277         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
9278         builtin calls even if likelyvalue is not CONSTANT.
9279         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
9280         Return get_value_for_expr of first operand
9281         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
9282         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9283         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
9284         their non-checking counterparts.
9285         (call_may_clobber_ref_p_1): Likewise.
9286         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
9287         like their non-checking counterparts.
9288         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9289         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
9290         like their non-checking counterparts.
9291         (find_func_clobbers): Likewise.
9292         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
9293         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
9295         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
9296         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
9297         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
9298         of base type reference as argument.
9299         (resolve_addr_in_expr): Likewise.  Fix keep computation.
9300         (convert_descriptor_to_signed): Renamed to...
9301         (convert_descriptor_to_mode): ... this.  For wider types convert to
9302         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
9303         (typed_binop): New function.
9304         (scompare_loc_descriptor, ucompare_loc_descriptor,
9305         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
9306         default to unsigned type instead of signed.
9308         PR debug/47858
9309         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
9310         (gimple_build_debug_source_bind_stat): New prototype.
9311         (gimple_build_debug_source_bind): Define.
9312         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
9313         gimple_debug_source_bind_get_value,
9314         gimple_debug_source_bind_get_value_ptr,
9315         gimple_debug_source_bind_set_var,
9316         gimple_debug_source_bind_set_value): New inlines.
9317         * gimple.c (gimple_build_debug_source_bind_stat): New function.
9318         * gimple-pretty-print.c (dump_gimple_debug): Handle
9319         GIMPLE_DEBUG_SOURCE_BIND.
9320         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
9321         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9322         * tree-parloops.c (eliminate_local_variables,
9323         separate_decls_in_region): Likewise.
9324         (separate_decls_in_region_debug): Renamed from
9325         separate_decls_in_region_debug_bind.  Handle
9326         gimple_debug_source_bind_p.
9327         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
9328         prototypes.
9329         (DECL_HAS_DEBUG_ARGS_P): Define.
9330         (struct tree_function_decl): Add has_debug_args_flag field.
9331         * tree.c (debug_args_for_decl): New variable.
9332         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
9333         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
9334         (rewrite_debug_stmt_uses): New function.
9335         (rewrite_stmt): Use it to rewrite debug stmt uses.
9336         * rtl.def (DEBUG_PARAMETER_REF): New.
9337         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
9338         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
9339         DEBUG_PARAMETER_REF.
9340         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
9341         * print-rtl.c (print_rtx): Likewise.
9342         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
9343         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
9344         debug stmts in the first bb.
9345         * tree-inline.c (remap_ssa_name): If remapping default def
9346         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
9347         a source bind debug stmt.
9348         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
9349         (maybe_move_debug_stmts_to_successors): Likewise.
9350         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
9351         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
9352         debug args vector from old_decl to new_decl.
9353         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
9354         or modified parameters, add debug bind stmts before call
9355         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
9356         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
9357         on DECL_DEBUG_EXPRs from debug args vector.
9358         (expand_debug_source_expr): New function.
9359         (expand_debug_locations): Use it for source bind insns.
9360         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
9361         * var-tracking.c (prepare_call_arguments): Add debug args
9362         to call_arguments if any.
9363         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
9364         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
9365         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
9366         (get_ref_die_offset, parameter_ref_descriptor): New functions.
9367         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
9368         (gen_subprogram_die): Handle parameters identified by
9369         DEBUG_PARAMETER_REF.
9371 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
9373         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
9374         * doc/install.texi (Configuration): Document --with-tls.
9375         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
9376         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
9377         (arm_tls_descseq_addr): New.
9378         (legitimize_tls_address): Add tlsdesc support.
9379         (arm_cannot_copy_insn_p): Check for tlscall.
9380         (arm_emit_tls_decoration): Likewise.
9381         * config/arm/arm.h (TARGET_GNU2_TLS): New.
9382         (OPTION_DEFAULT_SPECS): Add with-tls support.
9383         * config/arm/arm.md (R1_REGNUM): Define.
9384         (tlscall): New.
9385         * config/arm/arm.opt (tls_type): New enumeration type and values.
9386         (mtls-dialect): New switch.
9387         * config/arm/arm-opts.h (enum tls_type): New.
9389 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9391         * attribs.c (register_attribute): Added assert to check that all
9392         attribute specs are registered with a name that is not empty and
9393         does not start with '_'.
9394         (decl_attributes): Avoid the lookup of the "naked" attribute spec
9395         if the function has no attributes.
9396         * tree.c (is_attribute_with_length_p): Removed.
9397         (is_attribute_p): Removed.
9398         (private_is_attribute_p): New.
9399         (private_lookup_attribute): New.
9400         (lookup_attribute): Removed.
9401         (lookup_ident_attribute): New.
9402         (remove_attribute): Require the first argument to be in the form
9403         'text', not '__text__'.  Updated asserts.
9404         (merge_attributes): Use lookup_ident_attributes instead of
9405         lookup_attribute.
9406         (merge_dllimport_decl_attributes): Use remove_attribute.
9407         (attribute_list_contained): Likewise.
9408         (attribute_list_equal): Immediately return 1 if the arguments are
9409         identical pointers.
9410         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
9411         'int'.  Require the first argument to be in the form 'text', not
9412         '__text__'.  Require the second argument to be an identifier.
9413         (lookup_attribute): Made inline.  Require the first argument to be
9414         in the form 'text', not '__text__'.
9415         (private_is_attribute_p, private_lookup_attribute): New.
9416         Updated comments.
9418 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
9420         * builtins.c: Add sync_ or SYNC__ to builtin names.
9421         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9422         * omp-low.c: Add sync_ or SYNC__ to builtin names.
9424 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9426         PR target/33049
9427         * config/avr/avr.md (extzv): New expander.
9428         (*extzv): New insn.
9429         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9430         * config/avr/constraints.md (C04): New constraint.
9431         * doc/md.texi (Machine Constraints): Document it.
9433 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9435         PR middle-end/49489
9436         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9437         unsignedp argument instead of 1 for clrsb_optab.
9438         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9439         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
9440         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9441         * optabs.c (widen_leading): Call widen_operand and expand_unop
9442         with 0 as unsignedp argument instead of 1 for clrsb_optab.
9443         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9445 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9447         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9449 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
9451         * gensupport.c (add_define_attr): New static function.
9452         (is_predicable): Allow multi-alternative lists for the "predicable"
9453         attribute.
9454         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9455         (process_one_cond_exec): Call alter_attrs_for_insn.
9456         * doc/md.texi (Defining Attributes): Mention some standard names.
9457         (Conditional Execution): Update documentation for "predicable".
9459         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9460         __builtin_clrsbll): Document.
9461         * doc/rtl.texi (clrsb): New entry.
9462         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
9463         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
9464         (expand_unop): Handle clrsb_optab.
9465         (init_optabs): Initialize it.
9466         * optabs.h (enum optab_index): New entry OTI_clrsb.
9467         (clrsb_optab): Define.
9468         * genopinit.c (optabs): Add an entry for it.
9469         * builtins.c (expand_builtin): Handle clrsb builtin functions.
9470         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9471         BUILT_IN_CLRSBLL): New.
9472         * rtl.def (CLRSB): New code.
9473         * dwarf2out.c (mem_loc_descriptor): Handle it.
9474         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9475         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9476         and popcount.
9477         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9478         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9479         (__ctzDI2): Move declaration.
9480         * config/bfin/bfin.md (clrsbsi2): New expander.
9481         (signbitssi2): Use the CLRSB rtx.
9482         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
9483         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9485 2011-06-21  Richard Guenther  <rguenther@suse.de>
9487         * ipa-inline-transform.c (inline_transform): Fix previous change.
9489 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
9491         PR tree-optimization/49478
9492         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9493         with constant operand.
9495 2011-06-21  Richard Guenther  <rguenther@suse.de>
9497         * ipa-inline-transform.c (inline_transform): Fix typo.
9499 2011-06-21  Richard Guenther  <rguenther@suse.de>
9501         PR tree-optimization/49483
9502         * tree-vect-stmts.c (vectorizable_assignment): Also handle
9503         VIEW_CONVERT_EXPR conversions.
9505 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
9507         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9508         * config/avr/avr-tables.opt: New file (generated).
9509         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9510         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9511         avr-mcus.def.
9512         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9513         (avr_option_override): Don't process -mmcu= argument here.  Set
9514         avr_current_device using avr_mcu_index.
9515         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9516         * config/avr/avr.opt (mmcu=): Use Enum.
9517         * config/avr/t-avr (avr-devices.o): Update dependencies.
9518         ($(srcdir)/config/avr/avr-tables.opt): New.
9519         * target.def (help): Remove.
9520         * doc/tm.texi.in (TARGET_HELP): Remove.
9521         * doc/tm.texi: Regenerate.
9522         * opts.c: Don't include target.h.
9523         (common_handle_option): Don't call targetm.help.
9524         * system.h (TARGET_HELP): Poison.
9525         * Makefile.in (opts.o): Update dependencies.
9527 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9529         * config/usegld.h: New file.
9530         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9531         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9532         (LIB_SPEC): Likewise.  Search /lib.
9533         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9534         (RDYNAMIC_SPEC): Handle GNU ld.
9535         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9536         Define.
9537         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9538         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9539         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9540         (STACK_CHECK_STATIC_BUILTIN): Define.
9541         * config/sol2.opt (compat-bsd): Remove.
9542         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9543         * config/sol2-bi.h: New file.
9544         * config/sol2-gld.h: Remove.
9545         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9546         (NO_DBX_BNSYM_ENSYM): Remove.
9547         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9548         (STACK_CHECK_STATIC_BUILTIN): Remove.
9549         Test USE_GLD instead of TARGET_GNU_LD.
9550         * config/i386/sol2-10.h: Rename to ...
9551         * config/i386/sol2-bi.h .. this.
9552         (SUBTARGET_EXTRA_SPECS): Redefine.
9553         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9554         (MULTILIB_DEFAULTS): Remove.
9555         (DEFAULT_ARCH32_P): Define.
9556         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9557         (ARCH64_SUBDIR): Define.
9558         Test USE_GLD instead of TARGET_GNU_LD.
9559         (I386_EMULATION): Rename to ...
9560         (ARCH32_EMULATION): ... this.
9561         (X86_64_EMULATION): Rename to ...
9562         (ARCH64_EMULATION): ... this.
9563         (TARGET_LD_EMULATION): Remove.
9564         (LINK_ARCH_SPEC): Remove.
9565         * config/i386/sol2-gas.h: Remove.
9566         * config/i386/t-sol2-10: Rename to ...
9567         * config/i386/t-sol2-64: ... this.
9568         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9569         (AS_SPARC64_FLAG): Define.
9570         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9571         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9572         depending on TARGET_CPU_DEFAULT.
9573         (CPP_CPU_SPEC): Redefine.
9574         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9575         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9576         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9577         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9578         ASM_ARCH_DEFAULT_SPEC): Redefine.
9579         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9580         LINK_ARCH_DEFAULT_SPEC.
9581         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9582         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9583         (ARCH64_SUBDIR): Define.
9584         (LINK_ARCH64_SPEC): Redefine.
9585         (CC1_SPEC): Redefine.
9586         (OPTION_DEFAULT_SPECS): Redefine.
9587         (MULTILIB_DEFAULTS): Define.
9588         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9589         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9590         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9591         (NO_DBX_BNSYM_ENSYM): Remove.
9592         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9593         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9594         (TARGET_ASM_NAMED_SECTION): Likewise.
9595         (STACK_CHECK_STATIC_BUILTIN): Remove.
9596         * config/sparc/sol2-bi.h: Remove.
9597         * config/sparc/sol2-gas-bi.h: Remove.
9598         * config/sparc/sol2-gas.h: Remove.
9599         * config/sparc/sol2-gld-bi.h: Remove.
9600         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9601         common parts ...
9602         (*-*-solaris2*): ... here.
9604 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9606         PR other/43564
9607         * ipa-inline.c (can_inline_edge_p): Check
9608         !DECL_DISREGARD_INLINE_LIMITS.
9610 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9612         PR middle-end/49139
9613         * cgraphunit.c (process_function_and_variable_attributes): warn when
9614         always_inline functions that are not inline.
9615         * ipa-inline-transform.c (inline_transform): Always call
9616         optimize_inline.
9617         * tree-inline.c (tree_inlinable_function_p): Use error instead
9618         of sorry.
9619         (expand_call_inline): Likewise.
9621 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9623         * Makefile.in (dg_target_exps): Set.
9624         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9625         instead of 7, try to divide it more evenly.
9627 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
9629         PR target/49089
9630         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
9631         (avx256_split_unaligned_store): New definition.
9632         (ix86_option_override_internal): Enable avx256 unaligned load/store
9633         splitting only when avx256_split_unaligned_load/store is set.
9635 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9637         * regrename.c (scan_rtx_reg): Handle the case where we write to an
9638         open chain in a smaller mode without failing the entire block.
9640 2011-06-21  Alan Modra  <amodra@gmail.com>
9642         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
9643         CONST high part large-toc address.
9644         (rs6000_tls_referenced_p): Make static.
9645         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
9647 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9649         PR target/49385
9650         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
9651         one of the operands is a register.
9653 2011-06-20  Kai Tietz  <ktietz@redhat.com>
9655         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
9656         operations in combination with binary and.
9658 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9660         * regrename.c (do_replace): Don't update notes.
9662 2011-06-20  Alan Modra  <amodra@gmail.com>
9664         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
9665         of toc-relative address in CONST.
9666         (rs6000_delegitimize_address): Recognize changed address.
9667         (rs6000_legitimize_reload_address): Likewise.
9668         (rs6000_emit_move): Don't force these constants to memory.
9669         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
9670         toc-relative address in CONST.
9671         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9672         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9674 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9676         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
9677         (count_trailing_zeros): Likewise.
9679 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9681         PR other/49325
9682         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
9683         .init_array can be used with .ctors on targets.
9684         * configure: Regenerated.
9686 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9688         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
9689         if the element type is volatile.
9691 2011-06-18  Jan Hubicka  <jh@suse.cz>
9693         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9694         extra name aliases.
9695         (lto_symtab_resolve_can_prevail_p): Likewise.
9696         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9697         * cgraphbuild.c (record_reference): Remove extra body alias code.
9698         (mark_load): Likewise.
9699         (mark_store): Likewise.
9700         * cgraph.h (varpool_node): Remove extra_name filed;
9701         add alias_of and extraname_alias.
9702         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9703         (varpool_alias_aliased_node): New inline function.
9704         (varpool_variable_node): New function.
9705         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9706         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9707         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9708         (input_varpool_node): Likewise.
9709         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9710         (varpool_externally_visible_p): Remove extra body alias code.
9711         (function_and_variable_visibility): Likewise.
9712         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9713         (ipa_pta_execute): Use it.
9714         * varpool.c (varpool_remove_node): Remove extra name alias code.
9715         (varpool_mark_needed_node): Likewise.
9716         (varpool_analyze_pending_decls): Analyze aliases.
9717         (assemble_aliases): New functoin.
9718         (varpool_assemble_decl): Use it.
9719         (varpool_create_variable_alias): New function.
9720         (varpool_extra_name_alias): Rewrite.
9721         (varpool_for_node_and_aliases): New function.
9723 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
9725         PR target/49411
9726         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9727         last_arg_constant and last argument doesn't match its predicate,
9728         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9729         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9730         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9731         spelling of error message.
9732         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9733         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9734         const_0_to_255_operand instead of const_int_operand.
9736         Revert:
9737         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9739         * config/i386/sse.md (blendbits): Remove mode attribute.
9740         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9741         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9742         Check integer value of operand 3 in insn constraint.
9744 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
9746         PR rtl-optimization/48542
9747         * reload.c (find_equiv_reg): Stop looking when finding a
9748         setjmp-type call.
9749         * reload1.c (reload_as_needed): Invalidate all reload
9750         registers when crossing a setjmp-type call.
9752 2011-06-16  Jeff Law  <law@redhat.com>
9754         * tree-ssa-threadupdate.c (struct redirection_data): New field
9755         intermediate_edge.
9756         (THREAD_TARGET2): Define.
9757         (redirection_data_eq): Also check that the intermediate edge is equal.
9758         (lookup_redirection_data): Drop useless argument.  Extract the
9759         outgoing_edge and intermediate edge from E.  Callers updated.
9760         (copy_phi_args, update_destination_phis): New functions.
9761         (fix_duplicate_block_edges): Likewise.
9762         (create_edge_and_update_destination_phis): Duplicate all the edges
9763         hung off e->aux.  Use copy_phi_args.
9764         (create_duplicates): Use fix_duplicate_block_edges.
9765         (fixup_template_block): Likewise.
9766         (redirect_edges): If necessary, redirect the joiner block's incoming
9767         edge to the duplicate of the joiner block.
9768         (thread_block): Don't muck up loops when threading through a joiner
9769         block.
9770         (thread_through_loop_header): Handle threading through a joiner block.
9771         (mark_threaded_blocks, register_jump_thread): Likewise.
9772         * tree-flow.h (register_jump_thread): Add new argument.  Callers
9773         updated.
9774         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9775         (thread_across_edge): Handle threading through a joiner block.
9777 2011-06-16  Martin Jambor  <mjambor@suse.cz>
9779         PR tree-optimization/49343
9780         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9781         calculate offset, provide 2nd operand for the new COMPONENT_REF.
9783 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
9785         * config/darwin-protos.h (machopic_select_rtx_section): Move to
9786         inside RTX_CODE ifdef.
9788 2011-06-16  Tom de Vries  <tom@codesourcery.com>
9790         PR target/45098
9791         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9792         Disallow NULL pointer for pointer arithmetic.
9794 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9796         PR target/49398
9797         Revert.
9798         2011-06-10  Wei Guozhi  <carrot@google.com>
9800         PR target/45335
9801         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9802         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9803         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9804         related peephole2.
9805         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9806         related peephole2.
9807         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9808         (arm_legitimate_ldrd_p): New prototype.
9809         (arm_output_ldrd): New prototype.
9810         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9811         (arm_legitimate_ldrd_p): New function.
9812         (arm_output_ldrd): New function.
9814 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9816         PR middle-end/46500
9817         * doc/tm.texi.in: Update Copyright date.
9818         * doc/tm.texi: Regenerate.
9819         * targhooks.c (default_setup_incoming_varargs): Replace
9820         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9821         (default_pretend_outgoing_varargs_named): Likewise.
9822         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9823         (hook_callee_copies_named): Likewise.
9824         (default_function_arg_advance): Likewise.
9825         (default_function_arg): Likewise.
9826         (default_function_incoming_arg): Likewise.
9827         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9828         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9829         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9830         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9831         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9832         * targhooks.h (default_setup_incoming_varargs): Likewise.
9833         (default_pretend_outgoing_varargs_named): Likewise.
9834         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9835         (hook_callee_copies_named): Likewise.
9836         (default_function_arg_advance): Likewise.
9837         (default_function_arg): Likewise.
9838         (default_function_incoming_arg): Likewise.
9839         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9840         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9841         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9842         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9843         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9844         * target.def (pass_by_reference): Likewise.
9845         (setup_incoming_varargs, strict_argument_naming): Likewise.
9846         (pretend_outgoing_varargs_named, callee_copies): Likewise.
9847         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9848         (function_incoming_arg): Likewise.
9849         * target.h: Don't include "tm.h" .
9850         (cumulative_args_t): New typedef.
9851         [GCC_TM_H] (get_cumulative_args): New static inline function.
9852         [GCC_TM_H] (pack_cumulative_args): Likewise.
9853         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9854         argument type with cumulative_args_t.
9855         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9856         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9857         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9858         (frv_arg_partial_bytes, frv_function_arg): Likewise.
9859         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9860         (frv_function_arg_1): Likewise.
9861         * config/s390/s390.c (s390_pass_by_reference): Likewise.
9862         (s390_function_arg_advance, s390_function_arg): Likewise.
9863         * config/m32c/m32c.c (m32c_function_arg): Likewise.
9864         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9865         (m32c_strict_argument_naming): Likewise.
9866         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9867         (spu_function_arg_advance): Likewise.
9868         (spu_setup_incoming_varargs): Likewise.  Make static.
9869         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9870         Remove prototype.
9871         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9872         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9873         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
9874         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
9875         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
9876         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
9877         (mep_pass_by_reference, mep_function_arg): Likewise.
9878         (mep_function_arg_advance): Likewise.
9879         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9880         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
9881         (m32r_function_arg, m32r_function_arg_advance): Likewise.
9882         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
9883         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
9884         (ix86_function_arg, ix86_pass_by_reference): Likewise.
9885         (ix86_setup_incoming_varargs): Likewise.
9886         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9887         (sh_strict_argument_naming): Likewise.
9888         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
9889         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
9890         (sh_function_arg_advance, sh_function_arg): Likewise.
9891         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9892         (pdp11_function_arg_advance): Likewise.
9893         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9894         Likewise.
9895         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
9896         * config/avr/avr.c (avr_function_arg): Likewise.
9897         (avr_function_arg_advance): Likewise.
9898         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
9899         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
9900         (xtensa_function_arg_1): Likewise.
9901         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
9902         Likewise.
9903         (xstormy16_function_arg): Likewise.
9904         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9905         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
9906         (fr30_function_arg_advance): Likewise.
9907         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9908         (lm32_function_arg, lm32_function_arg_advance): Likewise.
9909         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9910         (moxie_function_arg, moxie_function_arg_advance): Likewise.
9911         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
9912         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9913         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
9914         (cris_function_arg, cris_function_incoming_arg): Likewise.
9915         (cris_function_arg_advance, cris_function_arg_1): Likewise.
9916         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9917         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
9918         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
9919         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9920         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
9921         (mn10300_arg_partial_bytes): Likewise.
9922         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9923         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
9924         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
9925         (ia64_function_arg_1): Likewise.
9926         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9927         (m68k_function_arg): Likewise.
9928         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
9929         (rs6000_function_arg, setup_incoming_varargs): Likewise.
9930         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
9931         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
9932         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
9933         (picochip_arg_advance): Likewise.
9934         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9935         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
9936         (mcore_function_arg_advance): Likewise.
9937         * config/score/score.c (score_pass_by_reference): Likewise.
9938         (score_function_arg_advance): Likewise.
9939         (score_arg_partial_bytes): Likewise.  Make static.
9940         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
9941         * config/arm/arm.c (arm_arg_partial_bytes): Replace
9942         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9943         (arm_function_arg, arm_function_arg_advance): Likewise.
9944         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
9945         * config/pa/pa.c (pa_pass_by_reference): Likewise.
9946         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
9947         (pa_function_arg): Likewise.
9948         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
9949         (mips_function_arg, mips_function_arg_advance): Likewise.
9950         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
9951         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
9952         * config/vax/vax.c (vax_function_arg): Likewise.
9953         (vax_function_arg_advance): Likewise.
9954         * config/h8300/h8300.c (h8300_function_arg): Likewise.
9955         (h8300_function_arg_advance): Likewise.
9956         * config/v850/v850.c (v850_pass_by_reference): Likewise.
9957         (v850_strict_argument_naming, v850_function_arg): Likewise.
9958         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
9959         (v850_setup_incoming_varargs): Likewise.
9960         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9961         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
9962         (mmix_function_arg, mmix_pass_by_reference): Likewise.
9963         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
9964         with const void *.
9965         * config/bfin/bfin.c (setup_incoming_varargs): Replace
9966         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9967         (bfin_function_arg_advance, bfin_function_arg): Likewise.
9968         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
9969         * calls.c (emit_call_1): Change type of args_so_far to
9970         cumulative_args_t.  Changed all callers.
9971         (initialize_argument_information): Likewise.
9972         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
9973         * dse.c (get_call_args): Likewise.
9974         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9975         * function.c (pass_by_reference, reference_callee_copied): Likewise.
9976         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
9977         New member args_so_far_v.  Changed all users.
9978         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
9979         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9980         * config/mips/mips.c (mips_output_args_xfer): Likewise.
9981         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9982         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9983         * config/microblaze/microblaze.c (microblaze_expand_prologue):
9984         Likewise.
9985         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
9986         m32r_pass_by_reference.
9988 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
9990         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
9991         argument to be a VEC of statements.
9992         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
9993         assert that pattern statements have to have their vector type set.
9994         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
9995         Change the first argument to be a VEC of statements.  Update
9996         documentation.
9997         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
9998         (vect_handle_widen_mult_by_const): New function.
9999         (vect_recog_widen_mult_pattern):  Change the first argument to be a
10000         VEC of statements.  Update documentation.  Check that the constant is
10001         INTEGER_CST.  Support multiplication by a constant that fits an
10002         intermediate type - call vect_handle_widen_mult_by_const.
10003         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
10004         call.  Handle additional pattern statements if necessary.
10006 2011-06-16  Nick Clifton  <nickc@redhat.com>
10008         PR target/49427
10009         * config.gcc: Set cpu_type to v850 for any V850 architecture.
10010         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
10011         md_file, extra_modes, out_file and extra_options are these are all
10012         deduced from cpu_type.
10014 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
10016         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
10017         truncation mask to 63.
10019 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
10021         PR target/49313
10022         PR target/29524
10023         * longlong.h: Add AVR support:
10024         (count_leading_zeros): New macro.
10025         (count_trailing_zeros): New macro.
10026         (COUNT_LEADING_ZEROS_0): New macro.
10027         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
10028         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
10029         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
10030         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
10031         (LIB2FUNCS_EXCLUDE): Add _clz.
10032         * config/avr/libgcc.S (XCALL): Move up in file.
10033         (XJMP): New C Macro.
10034         (DEFUN): New asm macro.
10035         (ENDF): New asm macro.
10036         (__ffssi2): New function.
10037         (__ffshi2): New function.
10038         (__loop_ffsqi2): New function.
10039         (__ctzsi2): New function.
10040         (__ctzhi2): New function.
10041         (__clzdi2): New function.
10042         (__clzsi2): New function.
10043         (__clzhi2): New function.
10044         (__paritydi2): New function.
10045         (__paritysi2): New function.
10046         (__parityhi2): New function.
10047         (__parityqi2): New function.
10048         (__popcounthi2): New function.
10049         (__popcountsi2): New function.
10050         (__popcountdi2): New function.
10051         (__popcountqi2): New function.
10052         (__bswapsi2): New function.
10053         (__bswapdi2): New function.
10054         (__ashldi3): New function.
10055         (__ashrdi3): New function.
10056         (__lshrdi3): New function.
10057         Fix suspicous lines.
10059 2011-06-16  Richard Guenther  <rguenther@suse.de>
10061         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
10062         the same as x != 0.
10063         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
10064         to (bool) X & 1.
10065         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
10066         equality compares against zero for the lower bit.
10068 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
10070         PR tree-optimization/49419
10071         * tree-vrp.c (execute_vrp): Call init_range_assertions
10072         before estimate_numbers_of_iterations, call
10073         free_number_of_iterations_estimates before calling
10074         remove_range_assertions.
10076 2011-06-16  Revital Eres  <revital.eres@linaro.org>
10078         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
10079         (struct partial_schedule): Add rows_length field.
10080         (verify_partial_schedule): Check rows_length.
10081         (ps_insert_empty_row): Handle rows_length.
10082         (create_partial_schedule): Likewise.
10083         (free_partial_schedule): Likewise.
10084         (reset_partial_schedule): Likewise.
10085         (create_ps_insn): Remove rest_count argument.
10086         (remove_node_from_ps): Update rows_length.
10087         (add_node_to_ps): Update rows_length and call create_ps_insn
10088         without passing row_rest_count.
10089         (rotate_partial_schedule): Update rows_length.
10091 2011-06-16  Revital Eres  <revital.eres@linaro.org>
10093         * ddg.c (add_intra_loop_mem_dep): New function.
10094         (build_intra_loop_deps): Call it.
10096 2011-06-13  Jeff Law  <law@redhat.com>
10098         * df-problems.c (df_lr_local_compute): Manually CSE
10099         PIC_OFFSET_TABLE_REGNUM.
10100         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10101         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10103 2011-06-13  Jan Hubicka  <jh@suse.cz>
10105         * cgraphunit.c (handle_alias_pairs): New function.
10106         (cgraph_finalize_compilation_unit): Use it.
10107         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10108         as externally visible.
10110 2011-06-15  Richard Guenther  <rguenther@suse.de>
10112         * expr.c (expand_expr_real_2): Reduce all integral types to
10113         bitfield precision.
10114         (expand_expr_real_1): Likewise.
10116 2011-06-15  Martin Jambor  <mjambor@suse.cz>
10118         PR tree-optimization/48613
10119         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10120         ipa_node_params_vector is NULL.
10122 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
10124         PR debug/49382
10125         * dwarf2out.c (dw_loc_list_node): Add force field.
10126         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10127         location in the list, even if it is modified before first real insn.
10128         (output_loc_list): Emit empty ranges with force flag set.
10129         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10131 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
10133         PR target/49349
10134         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10135         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
10136         above a fence.  Update comments.
10137         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10138         placed just above it.  Do not allow NULL place_to_insert.
10140 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
10142         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10143         (slpeel_tree_peel_loop_to_edge): Don't call
10144         remove_dead_stmts_from_loop.
10145         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10146         remove irrelevant pattern statements.  For irrelevant statements
10147         check if it is the last statement of a detected pattern, use
10148         corresponding pattern statement instead.
10149         (destroy_loop_vec_info): No need to remove pattern statements,
10150         only free stmt_vec_info.
10151         (vect_transform_loop): For irrelevant statements check if it is
10152         the last statement of a detected pattern, use corresponding
10153         pattern statement instead.
10154         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10155         pattern statements.  Set basic block for the new statement.
10156         (vect_pattern_recog): Update documentation.
10157         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10158         operands of pattern statements.
10159         (vectorizable_call): Fix printing.  In case of a pattern statement
10160         use the lhs of the original statement when creating a dummy
10161         statement to replace the original call.
10162         (vect_analyze_stmt): For irrelevant statements check if it is
10163         the last statement of a detected pattern, use corresponding
10164         pattern statement instead.
10165         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10166         statements use gsi of the original statement.
10168 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10170         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10171         common/common-target-def.h.
10172         * target.def (default_target_flags, handle_option,
10173         supports_split_stack, optimization_table, init_struct,
10174         except_unwind_info, unwind_tables_default, have_named_sections):
10175         Move to common/common-target.def.
10176         * target.h (enum opt_levels, struct default_options): Move to
10177         common/common-target.h.
10178         * targhooks.c (default_except_unwind_info,
10179         dwarf2_except_unwind_info, sjlj_except_unwind_info,
10180         default_target_handle_option, empty_optimization_table): Move to
10181         common/common-targhooks.c.
10182         * targhooks.h (default_except_unwind_info,
10183         dwarf2_except_unwind_info, sjlj_except_unwind_info,
10184         default_target_handle_option, empty_optimization_table): Move to
10185         common/common-targhooks.h.
10186         * common/common-target-def.h: Include common/common-targhooks.h.
10187         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
10188         defined.
10189         * common/common-target.def (handle_option, option_init_struct,
10190         option_optimization_table, default_target_flags,
10191         except_unwind_info, supports_split_stack, unwind_tables_default,
10192         have_named_sections): Move from target.def.
10193         (HOOK_PREFIX): Undefine at end of file.
10194         * common/common-target.h: Include input.h.
10195         (enum opt_levels, struct default_options): Move from target.h.
10196         * common/common-targhooks.c, common/common-targhooks.h: New.
10197         * config.gcc (target_has_targetm_common): Default to yes.
10198         (moxie*): Set target_has_targetm_common=no.
10199         (hppa*-*-*): Don't set target_has_targetm_common=yes.
10200         * doc/tm.texi: Regenerate.
10201         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
10202         (C_TARGET_DEF_H): Add common/common-targhooks.h.
10203         (GCC_OBJS): Remove vec.o.
10204         (OBJS): Remove hooks.o and vec.o.
10205         (OBJS-libcommon-target): Add vec.o, hooks.o and
10206         common/common-targhooks.o.
10207         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
10208         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
10209         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
10210         cfglayout.o, $(out_object_file), $(common_out_object_file)):
10211         Update dependencies.
10212         (common/common-targhooks.o): New.
10213         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
10214         * common/config/pa/pa-common.c: Include more headers.  Take
10215         copyright dates from pa.c.
10216         (pa_option_optimization_table, pa_handle_option,
10217         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
10218         TARGET_HANDLE_OPTION): Move from pa.c.
10219         * common/config/alpha/alpha-common.c,
10220         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
10221         common/config/bfin/bfin-common.c,
10222         common/config/cris/cris-common.c,
10223         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
10224         common/config/h8300/h8300-common.c,
10225         common/config/i386/i386-common.c,
10226         common/config/ia64/ia64-common.c,
10227         common/config/iq2000/iq2000-common.c,
10228         common/config/lm32/lm32-common.c,
10229         common/config/m32c/m32c-common.c,
10230         common/config/m32r/m32r-common.c,
10231         common/config/m68k/m68k-common.c,
10232         common/config/mcore/mcore-common.c,
10233         common/config/mep/mep-common.c,
10234         common/config/microblaze/microblaze-common.c,
10235         common/config/mips/mips-common.c,
10236         common/config/mmix/mmix-common.c,
10237         common/config/mn10300/mn10300-common.c,
10238         common/config/pdp11/pdp11-common.c,
10239         common/config/picochip/picochip-common.c,
10240         common/config/rs6000/rs6000-common.c,
10241         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
10242         common/config/score/score-common.c, common/config/sh/sh-common.c,
10243         common/config/sparc/sparc-common.c,
10244         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
10245         common/config/vax/vax-common.c,
10246         common/config/xstormy16/xstormy16-common.c,
10247         common/config/xtensa/xtensa-common.c: New.
10248         * config/alpha/alpha.c: Include common/common-target.h.
10249         (alpha_option_optimization_table, alpha_handle_option,
10250         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10251         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
10252         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
10253         * config/arm/arm.c (arm_option_optimization_table,
10254         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10255         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
10256         arm-common.c.
10257         * config/avr/avr.c (avr_option_optimization_table,
10258         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10259         to avr-common.c.
10260         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
10261         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
10262         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
10263         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
10264         * config/cris/cris.c (cris_option_optimization_table,
10265         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10266         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
10267         cris-common.c.
10268         * config/fr30/fr30.c (fr30_option_optimization_table,
10269         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
10270         to fr30-common.c.
10271         * config/frv/frv.c (frv_option_optimization_table,
10272         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
10273         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
10274         * config/h8300/h8300.c (h8300_option_optimization_table,
10275         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10276         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
10277         * config/i386/i386-protos.h (ix86_handle_option): Declare.
10278         * config/i386/i386.c: Include common/common-target.h.
10279         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
10280         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
10281         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
10282         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
10283         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
10284         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
10285         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
10286         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
10287         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
10288         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
10289         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
10290         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
10291         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
10292         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
10293         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
10294         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
10295         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
10296         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
10297         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
10298         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
10299         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
10300         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
10301         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
10302         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
10303         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
10304         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
10305         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
10306         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
10307         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
10308         ix86_option_optimization_table, ix86_option_init_struct,
10309         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
10310         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10311         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
10312         i386-common.c.
10313         * config/i386/t-i386 (i386.o): Update dependencies.
10314         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
10315         * config/ia64/ia64.c (ia64_option_optimization_table,
10316         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10317         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10318         ia64_handle_option): Move to ia64-common.c.
10319         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
10320         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
10321         * config/lm32/lm32.c (lm32_option_optimization_table,
10322         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10323         to lm32-common.c.
10324         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
10325         m32c-common.c.
10326         * config/m32r/m32r.c (m32r_option_optimization_table,
10327         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10328         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10329         m32r_handle_option): Move to m32r-common.c.
10330         (m32r_memory_move_cost): Remove comment referring to
10331         TARGET_HANDLE_OPTION.
10332         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
10333         Move to m68k-common.c.
10334         * config/mcore/mcore.c (mcore_option_optimization_table,
10335         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10336         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
10337         * config/mep/mep.c (mep_option_optimization_table,
10338         mep_handle_option, TARGET_HANDLE_OPTION,
10339         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
10340         Move to mep-common.c.
10341         * config/microblaze/microblaze.c
10342         (microblaze_option_optimization_table,
10343         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10344         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
10345         * config/mips/mips.c (mips_handle_option,
10346         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10347         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
10348         mips-common.c.
10349         * config/mmix/mmix.c (mmix_option_optimization_table,
10350         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10351         Move to mmix-common.c.
10352         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
10353         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
10354         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10355         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
10356         * config/pa/pa.c: Include common/common-target.h.
10357         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10358         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10359         pa_handle_option): Move to pa-common.c.
10360         (pa_option_override): Use targetm_common.except_unwind_info.
10361         (pa_asm_output_mi_thunk, pa_function_section): Use
10362         targetm_common.have_named_sections.
10363         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
10364         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10365         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10366         pdp11_handle_option, pdp11_option_init_struct): Move to
10367         pdp11-common.c.
10368         * config/picochip/picochip.c (picochip_option_optimization_table,
10369         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
10370         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
10371         * config/rs6000/rs6000.c: Include common/common-target.h.
10372         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
10373         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
10374         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
10375         rs6000_handle_option): Move to rs6000-common.c.
10376         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10377         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
10378         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10379         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
10380         * config/s390/s390.c (processor_flags_table,
10381         s390_option_optimization_table, s390_option_init_struct,
10382         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
10383         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10384         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
10385         * config/s390/s390.h (processor_flags_table): Declare.
10386         * config/score/score.c (score_option_optimization_table,
10387         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10388         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
10389         score_handle_option): Move to score-common.c.
10390         * config/sh/sh.c (sh_option_optimization_table,
10391         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10392         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10393         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
10394         * config/sparc/sparc.c: Include common/common-target.h.
10395         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10396         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
10397         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
10398         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
10399         spu_option_init_struct): Move to spu-common.c.
10400         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
10401         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
10402         * config/v850/v850.c (small_memory_physical_max,
10403         v850_handle_memory_optionn v850_handle_option,
10404         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10405         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10406         v850-common.c.
10407         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10408         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10409         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10410         Move to xtensa-common.c.
10411         * cfglayout.c: Include common/common-target.h.
10412         (fixup_reorder_chain): Use targetm_common.have_named_sections.
10413         * cfgrtl.c: Include common/common-target.h.
10414         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10415         targetm_common.have_named_sections.
10416         * dbxout.c: Include common/common-target.h.
10417         (dbxout_function_end): Use targetm_common.have_named_sections.
10418         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10419         targetm_common.except_unwind_info.
10420         * dwarf2out.c: Include common/common-target.h.
10421         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10422         dwarf2out_begin_prologue, dwarf2out_frame_init,
10423         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10424         targetm_common.except_unwind_info.
10425         * except.c: Include common/common-target.h.
10426         (init_eh, finish_eh_generation,
10427         output_one_function_exception_table): Use
10428         targetm_common.except_unwind_info.
10429         (switch_to_exception_section): Use targetm_common.have_named_sections.
10430         * explow.c: Include common/common-target.h.
10431         * expr.c: Include common/common-target.h.
10432         (build_personality_function): Use targetm_common.except_unwind_info.
10433         * function.c: Include common/common-target.h.
10434         (expand_function_end): Use targetm_common.except_unwind_info.
10435         * haifa-sched.c: Include common/common-target.h.
10436         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10437         * lto-opts.c: Include common/common-target.h instead of target.h.
10438         (lto_reissue_options): Use targetm_common.handle_option.
10439         * opts.c: Include common/common-target.h.
10440         (target_handle_option): Use targetm_common.handle_option.
10441         (init_options_struct): Update comment referring to
10442         targetm.target_option.optimization.  Use
10443         targetm_common.default_target_flags,
10444         targetm_common.unwind_tables_default and
10445         targetm_common.option_init_struct.
10446         (default_options_optimization): Use
10447         targetm_common.option_optimization_table.
10448         (finish_options): Use targetm_common.except_unwind_info,
10449         targetm_common.unwind_tables_default,
10450         targetm_common.have_named_sections and
10451         targetm_common.supports_split_stack.
10452         * toplev.c: Include common/common-target.h.
10453         (process_options): Use targetm_common.have_named_sections.
10454         * tree-tailcall.c: Include common/common-target.h.
10455         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10456         * tree.c: Include common/common-target.h.
10457         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10458         * varasm.c: Include common/common-target.h.
10459         (resolve_unique_section, hot_function_section,
10460         default_function_section): Use targetm_common.have_named_sections.
10462 2011-06-14  Easwaran Raman  <eraman@google.com>
10464         PR rtl-optimization/44194
10465         * dse.c: Include tree-flow.h
10466         (insn_info): Add new field non_frame_wild_read.
10467         (group_info): Add new fields escaped_n and escaped_p.
10468         (kill_on_calls): New variable.
10469         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10470         (dse_step0): Initialize kill_on_calls.
10471         (can_escape): New function.
10472         (set_usage_bits): Add additional parameter; record information
10473         about escaped locations.
10474         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10475         (dse_step2_nospill): Set kill_on_calls based on
10476         group->escaped_n and group->escaped_n.
10477         (add_wild_read): Refactor into...
10478         (reset_active_stores): ... New function, and
10479         (free_read_records): ... New function.
10480         (add_non_frame_wild_read): New function.
10481         (scan_insn): Call add_non_frame_wild_read on non-const calls.
10482         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10483         (dse_step5_nospill): Call scan_reads_nospill for instructions
10484         marked as non_frame_wild_read.
10485         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10487 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10489         * common/common-target-def.h, common/common-target.def,
10490         common/common-target.h, common/config/default-common.c,
10491         common/config/pa/pa-common.c: New files.
10492         * Makefile.in (common_out_file, common_out_object_file,
10493         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10494         (OBJS-libcommon-target): Include $(common_out_object_file).
10495         (prefix.o): Update dependencies.
10496         ($(common_out_object_file), common/common-target-hooks-def.h,
10497         s-common-target-hooks-def-h): New.
10498         (s-tm-texi): Also check timestamp on common-target.def.
10499         (build/genhooks.o): Update dependencies.
10500         * config.gcc (common_out_file, target_has_targetm_common): Define.
10501         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10502         TARGET_ALWAYS_STRIP_DOTDOT.
10503         * configure.ac (common_out_object_file): Define.
10504         (common_out_file, common_out_object_file): Substitute.
10505         (common): Create directory.
10506         * configure: Regenerate.
10507         * doc/tm.texi.in (targetm_common): Document.
10508         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10509         * doc/tm.texi: Regenerate.
10510         * genhooks.c (hook_array): Also include common/common-target.def.
10511         * prefix.c (tm.h): Don't include.
10512         (common/common-target.h): Include.
10513         (ALWAYS_STRIP_DOTDOT): Don't define.
10514         (update_path): Use targetm_common.always_strip_dotdot instead of
10515         ALWAYS_STRIP_DOTDOT.
10516         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10518 2011-06-14  David Li  <davidxl@google.com>
10520         * passes.c (execute_function_todo): Remove TODO_dump_func.
10521         (execute_one_pass): Remove TODO_dump_func.
10522         (execute_function_dump): New function.
10523         * tree-vrp.c: Remove TODO_dump_func.
10524         * regrename.c: Remove TODO_dump_func.
10525         * fwprop.c: Remove TODO_dump_func.
10526         * tree-into-ssa.c: Remove TODO_dump_func.
10527         * tree-complex.c: Remove TODO_dump_func.
10528         * tracer.c: Remove TODO_dump_func.
10529         * tree-loop-distribution.c: Remove TODO_dump_func.
10530         * postreload-gcse.c: Remove TODO_dump_func.
10531         * postreload.c: Remove TODO_dump_func.
10532         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10533         * tree-tailcall.c: Remove TODO_dump_func.
10534         * ipa-cp.c: Remove TODO_dump_func.
10535         * final.c: Remove TODO_dump_func.
10536         * tree-emutls.c: Remove TODO_dump_func.
10537         * omp-low.c: Remove TODO_dump_func.
10538         * tree-ssa-dse.c: Remove TODO_dump_func.
10539         * tree-ssa-uncprop.c: Remove TODO_dump_func.
10540         * auto-inc-dec.c: Remove TODO_dump_func.
10541         * reorg.c: Remove TODO_dump_func.
10542         * tree-ssa-copyrename.c: Remove TODO_dump_func.
10543         * tree-ssa-ccp.c: Remove TODO_dump_func.
10544         * compare-elim.c: Remove TODO_dump_func.
10545         * mode-switching.c: Remove TODO_dump_func.
10546         * modulo-sched.c: Remove TODO_dump_func.
10547         * tree-call-cdce.c: Remove TODO_dump_func.
10548         * cse.c: Remove TODO_dump_func.
10549         * web.c: Remove TODO_dump_func.
10550         * tree-stdarg.c: Remove TODO_dump_func.
10551         * lto-streamer-out.c: Remove TODO_dump_func.
10552         * tree-ssa-math-opts.c: Remove TODO_dump_func.
10553         * tree-ssa-dom.c: Remove TODO_dump_func.
10554         * tree-nrv.c: Remove TODO_dump_func.
10555         * loop-init.c: Remove TODO_dump_func.
10556         * gimple-low.c: Remove TODO_dump_func.
10557         * ipa-inline.c: Remove TODO_dump_func.
10558         * tree-ssa-sink.c: Remove TODO_dump_func.
10559         * jump.c: Remove TODO_dump_func.
10560         * ifcvt.c: Remove TODO_dump_func.
10561         * tree-ssa-loop.c: Remove TODO_dump_func.
10562         * recog.c: Remove TODO_dump_func.
10563         * dse.c: Remove TODO_dump_func.
10564         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10565         * matrix-reorg.c: Remove TODO_dump_func.
10566         * tree-eh.c: Remove TODO_dump_func.
10567         * regmove.c: Remove TODO_dump_func.
10568         * function.c: Remove TODO_dump_func.
10569         * tree-vectorizer.c: Remove TODO_dump_func.
10570         * ipa-split.c: Remove TODO_dump_func.
10571         * gcse.c: Remove TODO_dump_func.
10572         * tree-if-conv.c: Remove TODO_dump_func.
10573         * init-regs.c: Remove TODO_dump_func.
10574         * tree-ssa-phiopt.c: Remove TODO_dump_func.
10575         * implicit-zee.c: Remove TODO_dump_func.
10576         * lower-subreg.c: Remove TODO_dump_func.
10577         * bt-load.c: Remove TODO_dump_func.
10578         * tree-dfa.c: Remove TODO_dump_func.
10579         * except.c: Remove TODO_dump_func.
10580         * emit-rtl.c: Remove TODO_dump_func.
10581         * store-motion.c: Remove TODO_dump_func.
10582         * cfgexpand.c: Remove TODO_dump_func.
10583         * tree-cfgcleanup.c: Remove TODO_dump_func.
10584         * cfgcleanup.c: Remove TODO_dump_func.
10585         * tree-ssa-pre.c: Remove TODO_dump_func.
10586         * tree-sra.c: Remove TODO_dump_func.
10587         * tree-mudflap.c: Remove TODO_dump_func.
10588         * tree-ssa-copy.c: Remove TODO_dump_func.
10589         * cfglayout.c: Remove TODO_dump_func.
10590         * tree-ssa-forwprop.c: Remove TODO_dump_func.
10591         * tree-ssa-dce.c: Remove TODO_dump_func.
10592         * ira.c: Remove TODO_dump_func.
10593         * tree-ssa.c: Remove TODO_dump_func.
10594         * integrate.c: Remove TODO_dump_func.
10595         * tree-optimize.c: Remove TODO_dump_func.
10596         * tree-ssa-phiprop.c: Remove TODO_dump_func.
10597         * tree-object-size.c: Remove TODO_dump_func.
10598         * combine.c: Remove TODO_dump_func.
10599         * bb-reorder.c: Remove TODO_dump_func.
10600         * cprop.c: Remove TODO_dump_func.
10601         * var-tracking.c: Remove TODO_dump_func.
10602         * tree-profile.c: Remove TODO_dump_func.
10603         * tree-vect-generic.c: Remove TODO_dump_func.
10604         * reg-stack.c: Remove TODO_dump_func.
10605         * sched-rgn.c: Remove TODO_dump_func.
10606         * tree-ssa-structalias.c: Remove TODO_dump_func.
10607         * tree-switch-conversion.c: Remove TODO_dump_func.
10608         * tree-cfg.c: Remove TODO_dump_func.
10609         * tree-ssa-reassoc.c: Remove TODO_dump_func.
10610         * combine-stack-adj.c: Remove TODO_dump_func.
10611         * dce.c: Remove TODO_dump_func.
10612         * tree-ssanames.c: Remove TODO_dump_func.
10613         * regcprop.c: Remove TODO_dump_func.
10615 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
10617         PR middle-end/47364
10618         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10619         and properly handle result not in Pmode.
10621 2011-06-14  Robert Millan  <rmh@gnu.org>
10623         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10624         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
10625         `config/linux.h'.
10627         * config/i386/kfreebsd-gnu64.h: New file.
10628         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
10629         with `i386/kfreebsd-gnu64.h'.
10631         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
10632         (GNU_USER_LINK_EMULATION64): New macros.
10633         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
10634         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
10635         of hardcoding `elf_i386' and `elf_x86_64'.
10637 2011-06-14  Nick Clifton  <nickc@redhat.com>
10639         PR target/49403
10640         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
10642         PR target/49402
10643         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
10645 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
10647         PR fortran/49103
10648         * tree.h (DECL_NONSHAREABLE): Define.
10649         (struct tree_decl_common): Change decl_common_unused to
10650         decl_nonshareable_flag.
10651         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
10652         Ignore vars with DECL_NONSHAREABLE bit set.
10653         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
10654         on stores to automatic aggregate vars.
10656         PR rtl-optimization/49390
10657         Revert:
10658         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
10660         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10661         MEM_ALIAS_SET.
10663 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
10664             Tom de Vries  <tom@codesourcery.com>
10666         PR target/45098
10667         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
10668         Document changed semantics.
10669         (max_stmt_executions, max_stmt_executions_int): Declare.
10670         * tree-data-ref.c (estimated_loop_iterations)
10671         (estimated_loop_iterations_int): Move functions...
10672         * tree-ssa-loop-niter.c (estimated_loop_iterations)
10673         (estimated_loop_iterations_int): here.
10674         (record_estimate): Change nb_iterations_upper_bound and
10675         nb_iterations_estimate semantics.
10676         (max_stmt_executions, max_stmt_executions_int): New function.
10677         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
10678         (max_stmt_executions_tree): this.
10679         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
10680         estimated_loop_iterations_tree.
10681         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
10682         max_stmt_executions_int instead of estimated_loop_iterations_int.
10683         * predict.c (predict_loops): Idem.
10684         * tree-parloops.c (parallelize_loops): Idem.
10685         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
10686         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
10687         (init_omega_for_ddr_1): Idem.
10688         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
10689         (loop_prefetch_arrays): Idem
10690         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10691         max_stmt_executions instead of estimated_loop_iterations.
10692         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10693         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10694         instead of nb_iterations_upper_bound.
10696 2011-06-13  Jan Hubicka  <jh@suse.cz>
10698         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10700 2011-06-14  Richard Henderson  <rth@redhat.com>
10702         PR debug/48459
10703         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10704         (based_loc_descr): Assert it's true.
10705         (compute_frame_pointer_to_fb_displacement): Set it, rather than
10706         aborting immediately.
10708 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
10709             Mingfeng Wu  <mingfeng@faraday-tech.com>
10711         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10713 2011-06-13  Jan Hubicka  <jh@suse.cz>
10715         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10717 2011-06-13  Jan Hubicka  <jh@suse.cz>
10719         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10720         similarly to DECL_COMDAT.
10721         * cgraphunit.c (cgraph_analyze_function): Likewise.
10722         * ipa.c (function_and_variable_visibility): Likewise.
10724 2011-06-13  Jan Hubicka  <jh@suse.cz>
10726         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10727         BINFO_VIRTUALS when streaming for ltrans unit.
10729 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
10731         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10732         (movdi_internal64): Same.
10734 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
10736         PR target/44618
10737         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10738         a set of similar patterns, where the MATCH_OPERAND for the function
10739         argument is replaced with individual references to hardware registers.
10740         (save_fpregs_<mode>): Ditto
10741         (restore_gpregs_<mode>): Ditto
10742         (return_and_restore_gpregs_<mode>): Ditto
10743         (return_and_restore_fpregs_<mode>): Ditto
10744         (return_and_restore_fpregs_aix_<mode>): Ditto
10746 2011-06-13  Jan Hubicka  <jh@suse.cz>
10748         * ipa-utils.c (postorder_stack): New structure.
10749         (ipa_reverse_postorder): Handle aliases.
10751 2011-06-13  Jan Hubicka  <jh@suse.cz>
10753         * ipa-inline.c (reset_edge_caches): Walk aliases.
10754         (update_caller_keys): Do not test inlinability of aliases.
10755         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10756         (do_estimate_growth): Fix typo.
10758 2011-06-13  Jan Hubicka  <jh@suse.cz>
10760         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10761         (can_remove_node_now_p): ... here; handle same comdat groups.
10762         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10763         (inline_call): Update use of can_remove_node_now_p.
10765 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10767         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10768         condition to disallow non-identical memory locations.
10769         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10770         preference to bit manipulation instructions.
10772 2011-06-13  Jan Hubicka  <jh@suse.cz>
10774         * cgraph.c (cgraph_for_node_thunks_and_aliases,
10775         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10776         (nonremovable_p): New function.
10777         (cgraph_can_remove_if_no_direct_calls_p): New function.
10778         (used_from_object_file_p): New functoin.
10779         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10780         references from aliases.
10781         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10782         * ipa-inline.c (check_caller_edge): New function.
10783         (want_inline_function_called_once_p): Use it; accept aliases called
10784         once, too.
10785         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10787 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10789         PR target/48454
10790         * config/arm/neon.md (vec_pack_trunc): Set the lengths
10791         correctly for the case with Quad vectors.
10793 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
10794            Ira Rosen  <ira.rosen@linaro.org>
10796         PR tree-optimization/49352
10797         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10798         all, make sure loop_use_stmt after the loop is a def stmt of a used
10799         SSA_NAME that is the only one defined inside of the loop.  Don't
10800         check for COND_EXPR and GIMPLE_BINARY_RHS.
10801         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10802         check_reduction is true.
10804 2011-06-11  Jan Hubicka  <jh@suse.cz>
10806         PR middle-end/49373
10807         * ipa.c (cgraph_externally_visible_p): Check resolution info.
10809 2011-06-11  Jan Hubicka  <jh@suse.cz>
10811         PR middle-end/48836
10812         * ipa-inline-transform.c: Include tree-pass.h
10813         (inline_transform): Set TODO_update_ssa_only_virtuals.
10814         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10816 2011-06-11  Jan Hubicka  <jh@suse.cz>
10818         PR middle-end/49378
10819         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10820         aliases and thunks.
10822 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
10824         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10825         Take number of iterations to peel into account for equally frequent
10826         misalignment values.
10828 2011-06-11  Jan Hubicka  <jh@suse.cz>
10830         * lto-streamer-out.c (produce_symtab): Stream out the newly
10831         represented aliases.
10833 2011-06-11  Jan Hubicka  <jh@suse.cz>
10835         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10836         varying args.
10837         (ipa_update_after_lto_read): Likewise.
10838         (ipa_write_node_info): Do not sream call_with_var_arguments.
10839         (ipa_read_node_info): Likewise.
10841 2011-06-11  Jan Hubicka  <jh@suse.cz>
10843         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10845 2011-06-11  Jan Hubicka  <jh@suse.cz>
10847         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10848         (lto_symtab_resolve_can_prevail_p): Likewise.
10849         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10850         * cgraph.c (same_body_aliases_done): New global var.
10851         (cgraph_same_body_alias_1): Rename to ...
10852         (cgraph_create_function_alias): ... this one; reorg to new
10853         representation.
10854         (cgraph_same_body_alias): Use cgraph_create_function_alias;
10855         record references when asked to.
10856         (cgraph_add_thunk): Fix formating.
10857         (cgraph_get_node): Kill same body alias code.
10858         (cgraph_node_for_asm): Likewise.
10859         (cgraph_remove_same_body_alias): Remove.
10860         (cgraph_remove_node): Kill same body alias code.
10861         (cgraph_mark_address_taken_node): Mark also the aliased function
10862         as having address taken.
10863         (dump_cgraph_node): Dump same body aliases.
10864         (cgraph_for_node_thunks_and_aliases): Update for new alias
10865         representation.
10866         (cgraph_for_node_and_aliases): Likewise.
10867         * cgraph.h (same_body): Kll pointer.
10868         (same_body_alias): Update comment.
10869         (same_body_aliases_done): Declare.
10870         (cgraph_remove_same_body_alias): Remove declaration.
10871         (cgraph_create_function_alias): Declare.
10872         (cgraph_process_same_body_aliases): Declare.
10873         (cgraph_function_with_gimple_body_p): Check for alias.
10874         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
10875         (cgraph_alias_aliased_node): New function.
10876         (cgraph_function_node): Update for new aliases.
10877         (cgraph_function_or_thunk_node): Likewise.
10878         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
10879         (inline_call): Remove dead aliases.
10880         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
10881         name hack for same body aliases.
10882         (clone_of_p): Look through aliases.
10883         (verify_cgraph_node): Verify aliases.
10884         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
10885         (cgraph_process_same_body_aliases): New function.
10886         (process_function_and_variable_attributes): Disable weakref warning on
10887         alias.
10888         (cgraph_analyze_functions): Handle aliases.
10889         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
10890         (assemble_thunks): Rename to ...
10891         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
10892         (cgraph_expand_function): Remove alias output code.
10893         (cgraph_output_in_order): Skip aliases.
10894         (cgraph_preserve_function_body_p): Aliases don't need preserving.
10895         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
10896         (ipa_record_reference): Do not assert on alias references.
10897         (ipa_ref_has_aliases_p): New function.
10898         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
10899         (ipa_ref_has_aliases_p): Declare.
10900         * lto-cgraph.c (lto_output_node): Handle aliases.
10901         (input_node): Likewise.
10902         * lto-streamer-out.c (lto_output): Skip aliases.
10903         (produce_symtab): Kill same_body_alias code.
10904         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
10905         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
10906         * ipa-inline.c (update_caller_keys): Walk aliases.
10907         (inline_small_functions): Fix thinko in previous patch.
10908         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
10909         (function_and_variable_visibility): Do not walk same body aliases.
10910         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
10911         (ipa_pta_execute): Use it.
10913 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10915         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
10916         (*vec_dupv2df): Rename from vec_dupv2df.
10917         (vec_dupv2df): New expander.
10919 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10921         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
10923 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10925         * config/i386/i386.md: Use default value in "isa" attribute.
10926         * config/i386/sse.md: Ditto.
10927         * config/i386/mmx.md: Ditto.
10929 2011-06-10  Wei Guozhi  <carrot@google.com>
10931         PR target/45335
10932         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10933         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10934         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10935         related peephole2.
10936         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10937         related peephole2.
10938         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10939         (arm_legitimate_ldrd_p): New prototype.
10940         (arm_output_ldrd): New prototype.
10941         * config/arm/arm.c (arm_check_ldrd_operands): New function.
10942         (arm_legitimate_ldrd_p): New function.
10943         (arm_output_ldrd): New function.
10945 2011-06-10  David Li  <davidxl@google.com>
10947         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10948         * passes.c (passr_eq): New function.
10949         (create_pass_tab): New function.
10950         (pass_traverse): New function.
10951         (dump_one_pass): New function.
10952         (dump_pass_list): New function.
10953         (dump_passes): New function.
10955 2011-06-10  Jan Hubicka  <jh@suse.cz>
10957         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
10958         setting the nothrow flag.
10959         * ipa-reference.c (propagate): Skip aliases.
10960         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
10961         (propagate_nothrow): Skip aliases; do not update cgraph.
10962         (local_pure_const): Do not update cgraph.
10963         * tree-profile.c (tree_profiling): Do fixup_cfg.
10965 2011-06-10  Jan Hubicka  <jh@suse.cz>
10967         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
10968         (cgraph_local_node_p): ... here; handle aliases.
10969         (has_addr_references_p): Break out from ...;
10970         (cgraph_remove_unreachable_nodes) ... here.
10972 2011-06-10  Jan Hubicka  <jh@suse.cz>
10974         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
10975         * common.opt (flag_inline_functions_called_once): Do not
10976         initialize to 1.
10978 2011-06-10  Jan Hubicka  <jh@suse.cz>
10980         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
10981         (ipcp_initialize_node_lattices): Do not deal with aliases;
10982         Do not try to propagate through thunks.
10983         (ipcp_change_tops_to_bottom): Do not deal with aliases.
10985 2011-06-10  Jan Hubicka  <jh@suse.cz>
10987         * ipa-prop.c (ipa_write_node_info): Stream jump functions
10988         for indirect calls.
10989         (ipa_read_node_info): Likewise.
10991 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10993         PR lto/49302
10994         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
10995         (build_and_insert_call): Likewise.
10996         (build_and_insert_ref): New.
10997         (gimple_expand_builtin_pow): Minor cleanup.
10998         (gimple_expand_builtin_cabs): New.
10999         (execute_cse_sincos): Add case for BUILT_IN_CABS.
11001 2011-06-10  Jan Hubicka  <jh@suse.cz>
11003         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
11004         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
11005         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
11006         (ipcp_propagate_stage): Skip aliases when propagating.
11007         (ipcp_need_redirect_p): Skip aliases.
11008         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
11009         collect_callers_of_node.
11010         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
11011         for aliases.
11012         (ipa_compute_jump_functions): Look through aliases.
11014 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11016         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
11018 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11020         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
11021         Adjust comments.
11022         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
11024 2011-06-10  Jan Hubicka  <jh@suse.cz>
11026         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
11027         Update call of gimple_get_virt_method_for_binfo.
11028         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
11029         refuse_thunks parameter.
11030         (gimple_fold_call): Update.
11031         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
11033 2011-06-10  Jan Hubicka  <jh@suse.cz>
11035         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
11036         (not_all_callers_have_enough_arguments_p): ... this one; turn into
11037         worker for cgraph_for_node_and_aliases.
11038         (convert_callers_for_node): Break out from ...
11039         (convert_callers): ... here.
11040         (modify_function): Use collect_callers_of_node.
11041         (ipa_early_sra): Use cgraph_for_node_and_aliases.
11043 2011-06-10  Richard Guenther  <rguenther@suse.de>
11045         PR tree-optimization/49361
11046         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
11047         when not already in gimple form.
11049 2011-06-10  Richard Guenther  <rguenther@suse.de>
11051         PR bootstrap/49344
11052         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
11053         FOR_EACH_PHI_OR_STMT_USE.
11055 2011-06-10  Jan Hubicka  <jh@suse.cz>
11057         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
11058         (clone_inlined_nodes): ... here.
11059         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
11060         to real destination prior inlining.
11061         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
11062         can_early_inline_edge_p, want_early_inline_function_p,
11063         want_early_inline_function_p, want_inline_small_function_p,
11064         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
11065         edge_badness, update_all_callee_keys, lookup_recursive_calls,
11066         add_new_edges_to_heap, inline_small_functions, flatten_function,
11067         inline_always_inline_functions, early_inline_small_functions): Use
11068         cgraph_function_or_thunk_node.
11069         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
11070         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
11071         (do_estimate_edge_growth_1): Break out from ...
11072         (do_estimate_growth) ... here; walk aliases.
11073         (inline_generate_summary): Skip aliases.
11075 2011-06-10  Richard Guenther  <rguenther@suse.de>
11077         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
11078         forward when combining, visit inserted stmts when a stmt was changed.
11080 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
11082         * tree.h (error_operand_p): Add.
11083         * dbxout.c (dbxout_type_fields): Use the latter.
11084         * c-decl.c (add_stmt): Likewise.
11085         * gimplify.c (omp_add_variable, omp_notice_variable,
11086         gimplify_scan_omp_clauses): Likewise.
11088 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
11090         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
11091         when a value is actually passed in regs.
11093 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
11094             Laurent Rougé  <laurent.rouge@menta.fr>
11096         * doc/invoke.texi (SPARC options): Add -mflat.
11097         * config/sparc/sparc.opt: Likewise.
11098         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11099         (sparc_flat_expand_prologue): Declare.
11100         (sparc_flat_expand_epilogue): Likewise.
11101         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11102         (CPP_ENDIAN_SPEC): Replace with...
11103         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
11104         (CPP_SPEC): Adjust to above change.
11105         (EXTRA_SPECS): Likewise.
11106         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11107         (INCOMING_REGNO): Likewise.
11108         (OUTGOING_REGNO): Likewise.
11109         (LOCAL_REGNO): Likewise.
11110         (SETUP_FRAME_ADDRESSES): Likewise.
11111         (FIXED_REGISTERS): Set 0 for %fp.
11112         (CALL_USED_REGISTERS): Likewise.
11113         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11114         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11115         (RETURN_ADDR_REGNUM): Define.
11116         (RETURN_ADDR_RTX): Use it.
11117         (INCOMING_RETURN_ADDR_REGNUM): Define.
11118         (INCOMING_RETURN_ADDR_RTX): Use it.
11119         (DWARF_FRAME_RETURN_COLUMN): Likewise.
11120         (EH_RETURN_REGNUM): Define.
11121         (EH_RETURN_STACKADJ_RTX): Use it.
11122         (EH_RETURN_HANDLER_RTX): Delete.
11123         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11124         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11125         Delete.
11126         (struct machine_function): Add frame_size, apparent_frame_size,
11127         frame_base_reg, frame_base_offset, n_global_fp_regs and
11128         save_local_in_regs_p fields.
11129         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11130         sparc_frame_base_offset, sparc_n_global_fp_regs,
11131         sparc_save_local_in_regs_p): New macros.
11132         (sparc_option_override): Error out if -fcall-saved-REG is specified
11133         for Out registers.
11134         (eligible_for_restore_insn): Fix formatting.
11135         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
11136         (eligible_for_sibcall_delay): Likewise.
11137         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11138         (sparc_legitimate_address_p): Adjust to above change.
11139         (save_global_or_fp_reg_p): New predicate.
11140         (return_addr_reg_needed_p): Likewise.
11141         (save_local_or_in_reg_p): Likewise.
11142         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
11143         (SORR_SAVE, SORR_RESTORE): Delete.
11144         (sorr_pred_t): New typedef.
11145         (sorr_act_t): New enum.
11146         (save_or_restore_regs): Rename to...
11147         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
11148         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11149         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
11150         mechanism.  Add CFI information for double-word saves in 32-bit mode.
11151         (emit_adjust_base_to_offset): New function extracted from...
11152         (emit_save_or_restore_regs): ...this.  Rename the rest to...
11153         (emit_save_or_restore_regs_global_fp_regs): ...this.
11154         (emit_save_or_restore_regs_local_in_regs): New function.
11155         (gen_create_flat_frame_[123]): New functions.
11156         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
11157         (sparc_flat_expand_prologue): New function.
11158         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11159         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
11160         (sparc_flat_expand_epilogue): New function.
11161         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11162         (output_return): Likewise.
11163         (output_sibcall): Likewise.
11164         (sparc_output_mi_thunk): Likewise.
11165         (sparc_frame_pointer_required): Likewise.
11166         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11167         function optimization.
11168         * config/sparc/sparc.md (flat): New attribute.
11169         (prologue): Add TARGET_FLAT handling.
11170         (save_register_window): Disable if TARGET_FLAT.
11171         (create_flat_frame_[123]): New patterns.
11172         (epilogue): Add TARGET_FLAT handling.
11173         (sibcall_epilogue): Likewise.
11174         (eh_return): New expander.
11175         (eh_return_internal): New insn and splitter.
11176         (return_internal): Add TARGET_FLAT handling.
11177         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
11178         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
11179         (nonlocal_goto): Add TARGET_FLAT handling.
11180         * config/sparc/t-elf: Add -mflat multilib.
11181         * config/sparc/t-leon: Likewise.
11183 2011-06-10  Jan Hubicka  <jh@suse.cz>
11185         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
11186         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
11187         (self_recursive_p): Use cgraph_function_node.
11188         (propagate_pure_const): Likewise.
11189         (propagate_nothrow): Likewise.
11190         * ipa-reference.c (ipa_reference_get_not_read_global): Use
11191         cgraph_function_node.
11192         (propagate_bits): Likewise.
11193         (propagate): Likewise.
11195 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11196             Richard Earnshaw  <rearnsha@arm.com>
11198         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
11199         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
11200         (*thumb2_movdi_vfp): Delete.
11201         (*arm_movdi_vfp_cortexa8): Delete.
11202         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
11203         (*movdi_vfp_cortexa8): Likewise.
11205 2011-06-10  Richard Guenther  <rguenther@suse.de>
11207         * stor-layout.c (initialize_sizetypes): Give names to all
11208         sizetype kinds.
11210 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
11212         PR tree-optimization/49318
11213         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
11214         irrelevant pattern statements.
11216 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11218         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
11220         PR bootstrap/49354
11221         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
11222         to last assignment.
11224 2011-06-09  Jan Hubicka  <jh@suse.cz>
11226         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
11227         do not recompute reachable flag.
11228         (cgraph_finalize_function, cgraph_analyze_functions): Set
11229         redefined_extern_inline here.
11231 2011-06-09  Jan Hubicka  <jh@suse.cz>
11233         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
11234         (cgraph_only_called_directly_p): ... this one; bring offline.
11235         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11236         varpool_used_from_object_file_p): Drop names from the declaratoin.
11237         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
11238         collect_callers_of_node): New.
11239         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
11240         (cgraph_edge_recursive_p): Use cgraph_function_node.
11241         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
11242         (cgraph_node_cannot_be_local_p_1): Break out from ...
11243         (cgraph_node_can_be_local_p): ... here; walk aliases.
11244         (cgraph_for_node_thunks_and_aliases): New function.
11245         (cgraph_for_node_and_aliases): New function.
11246         (cgraph_make_node_local_1): Break out from ...
11247         (cgraph_make_node_local) ... here; use
11248         cgraph_for_node_thunks_and_aliases.
11249         (cgraph_set_nothrow_flag_1): Break out from ...
11250         (cgraph_set_nothrow_flag) ... here;
11251         use cgraph_for_node_thunks_and_aliases.
11252         (cgraph_set_const_flag_1): Break out from ...
11253         (cgraph_set_const_flag) ... here;
11254         use cgraph_for_node_thunks_and_aliases.
11255         (cgraph_set_pure_flag_1): Break out from ...
11256         (cgraph_set_pure_flag) ... here;
11257         use cgraph_for_node_thunks_and_aliases.
11258         (cgraph_propagate_frequency_1): Break out from ...
11259         (cgraph_propagate_frequency) ... here; use
11260         cgraph_for_node_thunks_and_aliases.
11261         (cgraph_used_from_object_file_p): Do not care about aliases.
11262         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
11263         New functions.
11264         (collect_callers_of_node_1, collect_callers_of_node): New functions.
11266 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11268         PR rtl-optimization/49154
11269         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
11270         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
11271         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11272         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
11273         * config/cris/cris.h (cris_register_move_cost): Remove
11274         !TARGET_V32 code.  Tweak comments.
11276 2011-06-09  Jan Hubicka  <jh@suse.cz>
11278         * cgraphbuild.c (record_eh_tables): Mark personality function as having
11279         address taken.
11281 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11283         PR rtl-optimization/49154
11284         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
11285         is a matching slot in the hashtable, assign it to classes_ptr.
11287         PR rtl-optimization/49154
11288         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
11289         register classes.
11290         * doc/tm.texi: Regenerate.
11292 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
11294         PR target/49307
11295         * config/sh/sh.md (UNSPEC_CHKADD): New.
11296         (chk_guard_add): New define_insn_and_split.
11297         (symGOT_load): Use chk_guard_add instead of blockage.
11299 2011-06-09  Kai Tietz  <ktietz@redhat.com>
11301         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
11303 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
11305         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
11307 2011-06-09  Wei Guozhi  <carrot@google.com>
11309         PR target/46975
11310         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
11311         (peephole2 for conditional move): Generate 16 bit instructions.
11313 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
11315         * config/i386/i386.md (*movdi_internal_rex64): Merge
11316         alternatives 6 and 8.
11318 2011-06-09  David Li  <davidxl@google.com>
11320         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11321         * passes.c (passr_eq): New function.
11322         (create_pass_tab): New function.
11323         (pass_traverse): New function.
11324         (dump_one_pass): New function.
11325         (dump_pass_list): New function.
11326         (dump_passes): New function.
11328 2011-06-09  David Li  <davidxl@google.com>
11330         * tree-complex.c (tree_lower_complex): Gate cleanup.
11331         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
11332         (execute_optimize_stdarg): Ditto.
11333         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
11334         (execute_cleanup_eh_1): Ditto.
11335         (execute_cleanup_eh): Ditto.
11336         * gcse.c (gate_rtl_pre): Ditto.
11337         (execute_rtl_pre): Ditto.
11338         * except.c (finish_eh_generation): Ditto.
11339         (convert_to_eh_region_ranges): Ditto.
11340         * cprop.c (one_cprop_pass): Ditto.
11342 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
11344         PR target/48673
11345         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
11346         in all basic blocks.
11348 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11350         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
11351         (HAVE_ENABLE_EXECUTE_STACK): Define.
11352         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
11353         (HAVE_ENABLE_EXECUTE_STACK): Define.
11354         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
11355         (HAVE_ENABLE_EXECUTE_STACK): Define.
11356         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
11357         (ENABLE_EXECUTE_STACK): Remove.
11358         (HAVE_ENABLE_EXECUTE_STACK): Define.
11359         [IN_LIBGCC2]: Don't include <windows.h>.
11360         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11361         (HAVE_ENABLE_EXECUTE_STACK): Define.
11362         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
11363         (HAVE_ENABLE_EXECUTE_STACK): Define.
11364         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
11365         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
11366         (HAVE_ENABLE_EXECUTE_STACK): Define.
11367         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
11368         (HAVE_ENABLE_EXECUTE_STACK): Define.
11369         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
11370         (HAVE_ENABLE_EXECUTE_STACK): Define.
11371         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11372         (HAVE_ENABLE_EXECUTE_STACK): Define.
11373         * config/alpha/alpha.c (alpha_trampoline_init): Test
11374         HAVE_ENABLE_EXECUTE_STACK.
11375         * config/i386/i386.c (ix86_trampoline_init): Likewise.
11376         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11377         (sparc64_initialize_trampoline): Likewise.
11378         * libgcc2.c [L_enable_execute_stack]: Remove.
11379         * system.h (ENABLE_EXECUTE_STACK): Poison.
11380         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
11381         * doc/tm.texi: Regenerate.
11382         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
11384 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
11386         PR middle-end/49308
11387         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
11388         variable.  After resetting and rescanning insn continue with previous
11389         statement.
11391 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11393         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
11394         (gcc_cv_ld_hidden): Likewise.
11395         * configure: Regenerate.
11396         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
11397         (ix86_stack_protect_fail): Mark unused.
11398         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
11399         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
11400         [TARGET_MACHO]: Don't define.
11401         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
11402         (TARGET_STACK_PROTECT_FAIL): Likewise.
11403         (rs6000_stack_protect_fail): Mark unused.
11404         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11405         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
11407 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11409         * varasm.c (get_section): Print location of other conflict
11410         for section conflicts.
11412 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11414         * config/i386/driver-i386.c (host_detect_local_cpu):
11415         Add model 0x2d Intel CPU.
11417 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11419         * reginfo.c (global_regs_decl): Add.
11420         (globalize_reg): Add decl parameter. Compute location.  Pass location
11421         to warnings and add inform. Store decl in global_regs_decl.
11422         * rtl.h (globalize_reg): Update prototype.
11423         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11425 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
11427         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11429 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11431         PR target/49305
11432         * config/sh/predicates.md (general_movsrc_operand): Check
11433         mode for memory with indexed address for QI and HImode.
11434         (general_movdst_operand): Likewise.
11436 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11438         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11440 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
11442         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11443         (num_ssa_operands): Likewise.
11444         (op_iter_init_phiuse): Forward-declare.
11445         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11447 2011-06-08  Nick Clifton  <nickc@redhat.com>
11449         * doc/invoke.texi (ARM Options): Update description of
11450         -mthumb-interwork.
11452 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
11454         * config/i386/driver-i386.c (host_detect_local_cpu): Support
11455         unknown Intel family 0x6 CPUs.
11457 2011-06-08  Martin Jambor  <mjambor@suse.cz>
11459         * tree-sra.c (mark_rw_status): Removed.
11460         (analyze_access_subtree): New parameter parent instead of
11461         mark_read and mark_write, propagate from that.
11463 2011-06-08  Julian Brown  <julian@codesourcery.com>
11465         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11466         for double-precision helper functions in hard-float mode if only
11467         single-precision arithmetic is supported in hardware.
11469 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
11471         PR rtl-optimization/49303
11472         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
11473         code_motion_path_driver returned 0 or 1.
11474         (sel_region_finish): Clear h_d_i_d.
11476 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11478         * config/sh/sh.c (prepare_move_operands): Set pic register
11479         appropriately for global and local dynamic tls models even
11480         if flag_pic is unset.
11482 2011-06-07  Jason Merrill  <jason@redhat.com>
11484         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11486 2011-06-07  Xinliang David Li  <davidxl@google.com>
11487         * passes.c (enable_disable_pass): Handle assembler name.
11488         (is_pass_explicitly_enabled_or_disabled): Ditto.
11490 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11492         PR tree-optimization/48497
11493         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11495 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11497         PR tree-optimization/46728
11498         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11499         to use gimple_val_nonnegative_real_p.
11500         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11501         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11503 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
11505         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11507 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
11509         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11510         constant vectors.
11512 2011-06-07  Richard Guenther  <rguenther@suse.de>
11514         * stor-layout.c (initialize_sizetypes): Initialize all
11515         sizetypes based on target definitions.
11516         (set_sizetype): Remove.
11517         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11518         * tree.h (set_sizetype): Remove.
11520 2011-06-07  Nick Clifton  <nickc@redhat.com>
11522         * config.gcc: Unify V850 architecture options and add support for
11523         newer V850 architectures.
11524         * config/v850/t-v850e: Delete.
11526 2011-06-07  Richard Guenther  <rguenther@suse.de>
11528         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11529         Call set_sizetype from here.
11531 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
11533         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11534         (*maddhisi4tb, *maddhisi4tt): New define_insns.
11536 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
11537             Andrew Stubbs  <ams@codesourcery.com>
11539         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11540         multiplies.
11541         * doc/md.texi (Canonicalization of Instructions): Document widening
11542         multiply canonicalization.
11544 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
11546         PR gcov-profile/49299
11547         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11549 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
11551         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11552         a pointer.
11553         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11554         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11555         vect_recog_pow_pattern): Likewise.
11556         (vect_pattern_recog_1): Remove declaration.
11557         (widened_name_p): Remove declaration.  Add new argument to specify
11558         whether to check that both types are either signed or unsigned.
11559         (vect_recog_widen_mult_pattern): Update documentation.  Handle
11560         unsigned patterns and multiplication by constants.
11561         (vect_pattern_recog_1): Update vect_recog_func references.  Use
11562         statement information from the statement returned from pattern
11563         detection functions.
11564         (vect_pattern_recog): Update vect_recog_func reference.
11565         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11566         multiplication by a constant use the type of the other operand.
11568 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
11570         PR rtl-optimization/49145
11571         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11573 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
11575         PR debug/49262
11576         * dwarf2out.c (native_encode_initializer): Decrement count in each
11577         iteration.
11579         PR debug/49294
11580         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11581         non-MODE_INT modes.
11583         PR c++/49264
11584         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11585         if stmt folded into nothing.
11586         * tree-inline.c (fold_marked_statements): If a builtin at the end of
11587         a bb folded into nothing, just update cgraph edges and move to next bb.
11588         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11589         to be NULL.  Don't compute count and frequency if new_call is NULL.
11591 2011-06-04  Diego Novillo  <dnovillo@google.com>
11593         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11594         (cgraph.o): Likewise.
11595         (cgraphunit.o): Likewise.
11596         * cgraphunit.c: Include lto-streamer.h
11597         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11598         if LTO is enabled.
11599         * lto-streamer-in.c (unpack_value_fields): Call
11600         streamer_hooks.unpack_value_fields if set.
11601         (lto_materialize_tree): For unhandled nodes, first try to
11602         call lto_streamer_hooks.alloc_tree, if it exists.
11603         (lto_input_ts_decl_common_tree_pointers): Move reading of
11604         DECL_INITIAL to lto_streamer_read_tree.
11605         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11606         (lto_streamer_read_tree): New.
11607         (lto_reader_init): Rename from lto_init_reader.
11608         Move initialization code to lto/lto.c.
11609         * lto-streamer-out.c (pack_value_fields): Call
11610         streamer_hooks.pack_value_fields if set.
11611         (lto_output_tree_ref): For tree nodes that are not normally indexable,
11612         call streamer_hooks.indexable_with_decls_p before giving up.
11613         (lto_output_ts_decl_common_tree_pointers): Move handling
11614         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11615         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11616         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
11617         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11618         (lto_streamer_write_tree): New.
11619         (lto_output): Call lto_streamer_init directly.
11620         (lto_writer_init): Remove.
11621         * lto-streamer.c (streamer_hooks): New.
11622         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11623         instead of lto_preload_common_nodes.
11624         (lto_is_streamable): Move from lto-streamer.h
11625         (lto_streamer_hooks_init): New.
11626         (streamer_hooks): New.
11627         (streamer_hooks_init): New.
11628         * lto-streamer.h (struct output_block): Forward declare.
11629         (struct lto_input_block): Likewise.
11630         (struct data_in): Likewise.
11631         (struct bitpack_d): Likewise.
11632         (struct streamer_hooks): Declare.
11633         (streamer_hooks): Declare.
11634         (lto_streamer_hooks_init): Declare.
11635         (lto_streamer_write_tree): Declare.
11636         (lto_streamer_read_tree): Declare.
11637         (streamer_hooks_init): Declare.
11638         (lto_is_streamable): Move to lto-streamer.c
11640 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11642         * longlong.h (smul_ppmm): The resulting register pair contains the
11643         higher order word first.
11645 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11647         PR tree-optimization/46728
11648         * builtins.c (powi_table): Remove.
11649         (powi_lookup_cost): Remove.
11650         (powi_cost): Remove.
11651         (expand_powi_1): Remove.
11652         (expand_powi): Remove.
11653         (expand_builtin_pow_root): Remove.
11654         (expand_builtin_pow): Remove.
11655         (expand_builtin_powi): Eliminate handling of constant exponent.
11656         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
11658 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11660         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
11662 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11664         * dce.c (reset_unmarked_insns_debug_uses): New.
11665         (delete_unmarked_insns): Skip debug insns.
11666         (prescan_insns_for_dce): Likewise.
11667         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
11668         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
11669         active reg can be found.
11670         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
11671         (convert_regs_1): Use it.
11673 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11675         * tree-pretty-print.c (dump_function_header): Add flags.
11676         Don't dump decl_uid with nouid.
11677         * tree-pretty-print.h (dump_function_header): Adjust.
11678         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
11679         * passes.c (pass_init_dump_file): Pass dump_flags on.
11680         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
11682 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11684         PR bootstrap/49270
11685         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
11687 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
11689         PR tree-optimization/49243
11690         * calls.c (setjmp_call_p): Also check if fndecl has the
11691         returns_twice attribute.
11693 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11695         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11696         -ffast-math etc.
11698 2011-06-06  Richard Henderson  <rth@redhat.com>
11699             Georg-Johann Lay  <avr@gjlay.de>
11701         PR target/42210
11702         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11703         New predicates.
11704         * config/avr/avr.md ("insv"): New insn expander.
11705         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11706         "*insv.not.io", "*insv.reg"): New insns.
11708 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
11710         PR target/49285
11711         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11712         to nonimmediate_operand from memory_operand for the operand that is to
11713         be forced to memory by the expander.  Lose the constraints.
11715 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
11717         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11718         EH return when delayed branches are disabled.
11720 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
11722         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11723         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
11724         calculation.
11725         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11726         Simplify MODE_V1DF and MODE_V2SF handling.
11727         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11728         Simplify MODE_SF handling.
11730 2011-06-04  Jan Hubicka  <jh@suse.cz>
11732         PR tree-optimization/48893
11733         PR tree-optimization/49091
11734         PR tree-optimization/49179
11735         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11736         Bounds check.
11738 2011-06-04  Jan Hubicka  <jh@suse.cz>
11740         PR lto/48954
11741         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11742         bitmaps.
11744 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
11746         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11748 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11750         PR target/49281
11751         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11752         to be strictly smaller than 1 << shiftcount.
11754 2011-06-04  Jan Hubicka  <jh@suse.cz>
11756         PR tree-optimize/48929
11757         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11758         of empty predicate.
11760 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
11762         PR debug/48333
11763         * calls.c (emit_call_1): Prefer the __builtin declaration of
11764         builtin functions.
11766 2011-06-03   Diego Novillo  <dnovillo@google.com>
11768         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11769         (lto_input_tree_pointers): Likewise.
11770         * lto-streamer-out.c (pack_value_fields): Likewise.
11771         (lto_output_tree_pointers): Likewise.
11772         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11773         and OPTIMIZATION_NODE.
11775 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11777         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11778         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11779         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11780         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11781         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11782         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11783         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11784         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11785         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11786         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11787         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11788         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11789         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11790         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11791         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11792         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11793         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11794         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11795         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11796         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11797         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11798         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11799         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11800         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11801         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11802         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11803         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11804         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11805         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11806         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11807         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11808         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11809         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11810         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11811         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11812         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11813         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11814         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11815         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11816         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11817         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11818         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11819         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11820         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11821         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11822         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11823         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11824         * system.h (MD_UNWIND_SUPPORT): Poison.
11825         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11826         * doc/tm.texi: Regenerate.
11827         * unwind-dw2.c: Include md-unwind-support.h instead of
11828         MD_UNWIND_SUPPORT.
11829         * config/ia64/unwind-ia64.c: Likewise.
11830         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11832 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
11834         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11836 2011-06-03  Richard Henderson  <rth@redhat.com>
11837             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11839         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11840         (sigill_hdlr): Correct insn, insn size.
11841         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11843 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11845         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11846         t-slibgcc-dummy.
11847         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11848         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11849         * config/mips/t-iris: Remove.
11850         * config/mips/t-irix6: New file.
11851         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11853 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11855         * Makefile.in (LIB2ADDEHDEP): Remove.
11856         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11857         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11858         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11859         * config/t-darwin (LIB2ADDEHDEP): Remove.
11860         * config/t-freebsd (LIB2ADDEHDEP): Remove.
11861         * config/t-linux (LIB2ADDEHDEP): Remove.
11863 2011-06-03  Diego Novillo  <dnovillo@google.com>
11865         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11866         (lto_register_var_decl_in_symtab): Likewise.
11867         (lto_register_function_decl_in_symtab): Likewise.
11868         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11869         logic to uniquify_nodes.
11871 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11873         * config/alpha/t-osf5: Remove.
11874         * config/alpha/t-osf-pthread: Remove.
11875         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
11876         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
11878 2011-06-03  Julian Brown  <julian@codesourcery.com>
11880         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
11881         (strongarm1110): Use strongarm tuning.
11882         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
11883         * config/arm/arm.c (arm_strongarm_tune): New.
11884         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11885         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
11886         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11887         setting, using previous defaults or 1 for Cortex-A5.
11888         (arm_option_override): Set max_insns_skipped from current tuning.
11890 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
11892         * doc/install.texi (Options specification): Document --with-specs.
11894 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11896         * config/arm/neon.md (orndi3_neon): Actually split it.
11898 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11900         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
11901         * var-tracking.c (reverse_op): Limite recurse depth to 5.
11903 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11905         PR debug/47590
11906         * target.def (delay_sched2, delay_vartrack): New.
11907         * doc/tm.texi.in: Update.
11908         * doc/tm.texi: Rebuild.
11909         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
11910         * var-tracking.c (gate_handle_var_tracking): Likewise.
11911         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
11912         (bfin_flag_var_tracking): Drop.
11913         (output_file_start): Don't save and override flag_var_tracking.
11914         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
11915         (bfin_reorg): Test original variables.
11916         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11917         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
11918         (ia64_flag_var_tracking): Drop.
11919         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11920         (ia64_file_start): Don't save and override flag_var_tracking.
11921         (ia64_override_options_after_change): Ditto
11922         flag_schedule_insns_after_reload.
11923         (ia64_reorg): Test original variables.
11924         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
11925         (picochip_flag_var_tracking): Drop.
11926         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11927         (picochip_option_override): Don't save and override
11928         flag_schedule_insns_after_reload.
11929         (picochip_asm_file_start): Ditto flag_var_tracking.
11930         (picochip_reorg): Test original variables.
11931         * config/spu/spu.c (spu_flag_var_tracking): Drop.
11932         (TARGET_DELAY_VARTRACK): Define.
11933         (spu_var_tracking): New.
11934         (spu_machine_dependent_reorg): Call it.
11935         (asm_file_start): Don't save and override flag_var_tracking.
11937 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
11939         PR target/49163
11940         * config/sh/predicates.md (general_movsrc_operand): Return 0
11941         for memory and memory subreg of which address is an invalid
11942         indexed address for QI and HImode.
11943         (general_movdst_operand): Likewise.
11945 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11947         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
11948         edges only, when there is a non-local label in the function.
11949         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
11951 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11953         * config/i386/constraints.md (Y3): New register constraint.
11954         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
11955         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
11956         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
11957         *sse2_interleave_lowv2df.
11959 2011-06-02  Julian Brown  <julian@codesourcery.com>
11961         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
11962         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
11963         (arm_cortex_a5_tune): New.
11965 2011-06-02  Julian Brown  <julian@codesourcery.com>
11967         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
11968         * config/arm/arm.c (arm_default_branch_cost): New.
11969         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11970         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
11971         (arm_fa726_tune): Set branch_cost field using
11972         arm_default_branch_cost.
11973         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
11974         current_tune structure.
11975         * dojump.c (tm_p.h): Include file.
11977 2011-06-02  Julian Brown  <julian@codesourcery.com>
11979         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
11980         tuning.
11981         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
11982         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
11983         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
11984         field.
11985         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
11986         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
11987         (arm_fa726te_tune): Add prefer_constant_pool setting.
11988         (arm_v6t2_tune, arm_cortex_tune): New.
11989         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
11990         prefer_constant_pool setting.
11992 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11994         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
11995         switch statement.
11996         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
11997         (*movdf_internal) <case 6,7,8>: Ditto.
11999         * config/i386/constraints.md (Y4): New register constraint.
12000         * config/i386/sse.md (vec_set<mode>_0): Merge with
12001         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
12002         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
12003         *vec_extractv2di_1_sse.
12004         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
12005         and *vec_concatv2di_rex64_sse.
12007 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
12009         PR target/48807
12010         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
12011         of cgraph_local_info for null before attempting to use it.
12013 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
12015         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
12016         (current_function_dynamic_alloc_count): Delete.
12017         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
12018         (expand_builtin_nonlocal_goto): Remove obsolete comment.
12019         (expand_builtin_update_setjmp_buf): Remove dead code.
12020         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
12021         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
12022         support.
12023         * function.c (instantiate_virtual_regs): Likewise.
12024         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
12025         for a block with a single abnormal incoming edge.
12026         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
12027         (SETJMP_VIA_SAVE_AREA): Delete.
12028         * config/sparc/sparc-protos.h (load_got_register): Declare.
12029         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
12030         (load_got_register): Make global.
12031         (sparc_frame_pointer_required): Add 'static'.
12032         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
12033         (sparc_builtin_setjmp_frame_value): New function.
12034         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
12035         (save_stack_nonlocal): New expander.
12036         (restore_stack_nonlocal): Likewise.
12037         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
12038         (nonlocal_goto_internal): New insn.
12039         (goto_handler_and_restore): Delete.
12040         (builtin_setjmp_setup): Likewise.
12041         (do_builtin_setjmp_setup): Likewise.
12042         (setjmp): Likewise.
12043         (builtin_setjmp_receiver): New expander.
12045 2011-06-01  David Li  <davidxl@google.com>
12047         PR middle-end/49261
12048         * tree-pretty-print.c (dump_function_header): Format cleanup.
12050 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
12052         PR target/49238
12053         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
12054         needed when original operands are used for msw_skip comparison.
12056 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12058         PR debug/49250
12059         * var-tracking.c (add_uses, add_stores): Don't call
12060         cselib_subst_to_values on ENTRY_VALUE.
12062 2011-06-01  Diego Novillo  <dnovillo@google.com>
12064         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
12065         output_record_start with LTO_null instead of output_zero.
12066         (lto_output_ts_binfo_tree_pointers): Likewise.
12067         (lto_output_tree): Likewise.
12068         (output_eh_try_list): Likewise.
12069         (output_eh_region): Likewise.
12070         (output_eh_lp): Likewise.
12071         (output_eh_regions): Likewise.
12072         (output_bb): Likewise.
12073         (output_function): Likewise.
12074         (output_unreferenced_globals): Likewise.
12075         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
12076         instead of NUM_TREE_CODES.
12077         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
12078         (lto_output_int_in_range): Change << to >> when shifting VAL.
12080 2011-06-01  Diego Novillo  <dnovillo@google.com>
12082         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
12083         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
12085 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12087         PR target/45074
12088         * optabs.h (valid_multiword_target_p): Declare.
12089         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
12090         doing multi-word operations.
12091         * optabs.c (expand_binop): Likewise.
12092         (expand_doubleword_bswap): Likewise.
12093         (expand_absneg_bit): Likewise.
12094         (expand_unop): Likewise.
12095         (expand_copysign_bit): Likewise.
12096         (multiword_target_p): New function.
12098 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12100         PR rtl-optimization/48830
12101         PR rtl-optimization/48808
12102         PR rtl-optimization/48792
12103         * reload.c (push_reload): Check contains_reg_of_mode.
12104         * reload1.c (strip_paradoxical_subreg): New function.
12105         (gen_reload_chain_without_interm_reg_p): Use it to handle
12106         paradoxical subregs.
12107         (emit_output_reload_insns, gen_reload): Likewise.
12109 2011-06-01  David Li  <davidxl@google.com>
12111         * predict.c : Change pass name
12112         * ipa.c: Ditto.
12113         * dce.c: Ditto.
12114         * tree-profile.c: Ditto.
12115         * except.c: Ditto.
12117 2011-06-01  David Li  <davidxl@google.com>
12119         * tree-pretty-print.c (dump_function_header): New function.
12120         * final.c (rest_of_clean_state): Use header dumper.
12121         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12122         * passes.c (pass_init_dump_file): Use header dumper.
12124 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12126         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12127         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12128         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12129         New functions.
12130         (mem_loc_descriptor): Use them.
12132         * var-tracking.c (create_entry_value): New function.
12133         (vt_add_function_parameter): Use it.
12135 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12137         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12138         Include <signal.h>, <ucontext.h>.
12139         (sigill_caught): Define.
12140         (sigill_hdlr): New function.
12141         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12142         insns can be executed.
12143         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12144         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12146 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12148         * config/t-slibgcc-darwin: Move to ...
12149         * config/t-slibgcc-dummy: ... this.  Clarify comments.
12150         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12151         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12152         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12153         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
12154         Remove i386/t-crtstuff from tmake_file.
12155         (i[34567]86-*-solaris2*): Remove t-svr4,
12156         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12157         t-slibgcc-dummy.
12158         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12159         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12160         sparc/t-crtfm from tmake_file.
12161         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12162         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12163         Remove extra_parts.
12164         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12165         * config/i386/t-nwld (SHLIB_LINK): Remove.
12166         * config/i386/t-rtems-i386: Rename to ...
12167         * config/i386/t-rtems: ... this.
12168         ($(T)crti.o, $(T)crtn.o): Remove.
12169         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12170         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12171         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12172         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12173         EXTRA_MULTILIB_PARTS): Remove.
12174         * config/sparc/t-sol2-64: Likewise.
12175         * config/sparc/t-sol2: Remove.
12176         * config/sparc/t-crtin: Remove.
12177         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
12178         * config/i386/gmon-sol2.c: Remove.
12179         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
12180         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
12181         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
12182         * config/i386/sol2-gc1.asm: Remove.
12183         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
12184         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
12185         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
12186         * config/t-slibgcc-sld: Remove.
12188 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12190         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
12191         base_type_for_mode with op_mode instead of mode.
12193 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
12195         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
12196         Cortex-A15.
12197         * config/arm/arm-tune.md: Regenerate.
12198         * config/arm/arm-tables.opt: Regenerate.
12199         * config/arm/arm.c (FL_DIV): Rename...
12200         (FL_THUMB_DIV): ... to this.
12201         (FL_ARM_DIV): Define.
12202         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
12203         (arm_arch_hwdiv): Remove.
12204         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
12205         (arm_issue_rate): Add cortexr5.
12206         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
12207         __ARM_ARCH_EXT_IDIV__.
12208         (TARGET_IDIV): Define.
12209         (arm_arch_hwdiv): Remove.
12210         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
12211         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
12212         (divsi3, udivsi3): New patterns.
12213         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
12214         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
12216 2011-06-01  Martin Jambor  <mjambor@suse.cz>
12218         * ipa-utils.c (ipa_dfs_info): New field scc_no.
12219         * ipa-utils.c (searchc): Set scc_no.
12221 2011-06-01  Martin Jambor  <mjambor@suse.cz>
12223         * ipa-utils.c (searchc_env): New field allow_overwritable.
12224         (searchc): do not ignore edges to overwritable nodes if indicated
12225         by env->allow_overwritable.
12226         (ipa_reduced_postorder): Set env.allow_overwritable.
12228 2011-06-01  Richard Guenther  <rguenther@suse.de>
12230         * tree.c (free_lang_data): Do not reset boolean_type_node nor
12231         char_type_node.
12232         * lto-streamer.c (lto_record_common_node): Take node pointer,
12233         do not register types.
12234         (lto_preload_common_nodes): Explicitly skip preloading nodes
12235         that differ between frontends.
12237 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
12239         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
12240         NON_FLOAT_REGS.
12242 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
12244         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
12245         parameter value for dump. Dump cost on outermost call only.
12246         (rs6000_memory_move_cost): Dump cost on outermost call only.
12248 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
12250         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
12251         DW_OP_GNU_convert ops.
12253         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
12254         cselib_preserve_constants.
12255         (cselib_lookup_1): If cselib_preserve_constants,
12256         a new VALUE is being created for REG and there is a VALUE for the
12257         same register in wider mode, add another loc with lowpart SUBREG of
12258         the wider VALUE.
12259         (cselib_subst_to_values): Handle ENTRY_VALUE.
12260         * var-tracking.c  (replace_expr_with_values): Return NULL for
12261         ENTRY_VALUE too.
12262         * dwarf2out.c (convert_descriptor_to_signed): New function.
12263         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
12264         instead of two shifts.
12265         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
12266         the right mode if needed.
12267         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
12268         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
12269         convert_descriptor_to_signed.
12270         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
12271         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
12273         PR target/48688
12274         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
12276 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12278         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
12279         of X87MODEI12 and SWI48x instead of SSEMODEI24.
12280         (SWI248x): New mode iterator, rename from X87MODEI.
12281         (X87MODEI): Remove mode iterator.
12282         (X87MODEI12): Ditto.
12283         (SSEMODEI24): Ditto.
12285 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12287         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
12288         * doc/invoke.texi: Document max-vartrack-expr-depth.
12289         * var-tracking.c (EXPR_DEPTH): New.
12290         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
12292 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12294         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
12295         * config/i386/sse.md: Add n to negated FMA pattern names.
12297 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12299         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
12301 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12303         * gengtype-state.c (read_state_params_structs): Initialize previous.
12305 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12307         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
12308         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
12310 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12312         * config/i386/i386.md (*movtf_internal): Avoid allocating general
12313         registers.  Penalize F*r->o alternative to prevent partial memory
12314         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
12315         CONST_DOUBLE immediates when optimizing function for size.  Do not move
12316         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12317         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
12318         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
12319         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
12320         alternatives.
12321         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
12323         (fp_register_operand splitters): Use fp_register_operand
12324         constraint.  Do not use FP_REG_P in insn condition.
12325         (any_fp_register_operand splitters): Use any_fp_register_operand
12326         constraint.  Do not use ANY_FP_REG_P in insn condition.
12328 2011-05-31  Jan Hubicka  <jh@suse.cz>
12330         * cgraph.h (cgraph_inline_failed_t): Give enum a name
12331         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
12332         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
12333         (lto_output_edge): Use output_enum and var_len_unsigned.
12334         (lto_output_varpool_node): Likewise.
12335         (input_overwrite_node): Do not take resolution parameter;
12336         extract it from a bitpack.
12337         (input_node): Do not read resolution; use input_enum and
12338         var_len_unsigned.
12339         (input_varpool_node): Likewise.
12340         (input_edge): Likewise.
12341         (input_cgraph_1): Likewise.
12343 2011-05-31  Richard Guenther  <rguenther@suse.de>
12345         * gimple.c (gimple_register_canonical_type): Do not register
12346         any types via gimple_register_type.
12348 2011-05-31  Jan Hubicka  <jh@suse.cz>
12350         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
12351         of thunks.
12353 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
12355         PR rtl-optimization/49235
12356         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
12357         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
12359 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
12361         PR tree-optimization/49093
12362         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
12363         data references.
12365 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
12367         PR debug/49047
12368         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
12369         for concrete functions containing the code of cloned functions.
12371 2011-05-31  Richard Guenther  <rguenther@suse.de>
12373         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
12374         to ...
12375         (forward_propagate_into_comparison_1): ... this.
12376         (forward_propagate_comparison): Rename to ...
12377         (forward_propagate_into_comparison): ... this.  Split out
12378         real forward propagation code to ...
12379         (forward_propagate_comparison): ... this.
12380         (forward_propagate_into_gimple_cond): Remove looping.
12381         (forward_propagate_into_cond): Likewise.
12382         (simplify_not_neg_expr): Return whether we have done something.
12383         (simplify_gimple_switch): Likewise.
12384         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
12385         (ssa_forward_propagate_and_combine): ... this.  Re-structure
12386         to do a forward forward-propagation walk on BBs and a backward
12387         stmt combining walk on BBs.  Consistently re-scan changed statements.
12388         (pass_forwprop): Adjust.
12390 2011-05-30  Ian Lance Taylor  <iant@google.com>
12392         * godump.c (go_format_type): Correct length of name added to
12393         obstack for anonymous field.
12395 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
12397         PR target/49186
12398         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
12399         part of the second operand is 0.
12401 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
12403         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12404         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
12405         to memory for !TARGET_MEMORY_MISMATCH_STALL.
12406         (*movdf_internal_rex64): Do not penalize F->r alternative.
12407         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12408         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
12409         when optimizing function for size.  Do not move CONST_DOUBLEs
12410         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12411         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
12412         SUBREGs.  Do not check for MEM_P operands in the insn condition,
12413         check for ANY_FP_REGNO_P instead.
12414         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12415         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12416         function for speed.
12417         * config/i386/i386.c (ix86_option_override_internal): Do not
12418         set TARGET_INTEGER_DFMODE_MOVES here.
12420 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12422         PR target/49168
12423         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12425 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12427         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12428         DW_TAG_rvalue_reference_type even for
12429         -gdwarf-4 -fno-debug-types-section.
12431 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12433         PR tree-optimization/46728
12434         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12435         (build_and_insert_binop): New.
12436         (gimple_expand_builtin_pow): Reorder args for
12437         build_and_insert_call; use build_and_insert_binop; add more
12438         optimizations for fractional exponents.
12440 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
12442         PR bootstrap/49190
12444         Revert:
12445         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12447         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12448         tree_common.
12449         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12450         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12451         TS_BASE instead of TS_COMMON.
12452         * varasm.c (assemble_name): Remove assert.
12454 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
12456         * config.gcc: Keep obselete list sorted.
12458 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12459             Eric Botcazou  <ebotcazou@adacore.com>
12461         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12462         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12463         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12464         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12465         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12467 2011-05-30  Richard Guenther  <rguenther@suse.de>
12469         * gimple.c (gimple_types_compatible_p_1): Compare record
12470         and union type members properly.
12472 2011-05-30  Richard Guenther  <rguenther@suse.de>
12474         PR tree-optimization/49210
12475         * ipa-split.c (split_function): Care for the case where the call
12476         result is not trivially convertible to the result holding variable.
12478 2011-05-30  Richard Guenther  <rguenther@suse.de>
12480         PR tree-optimization/49218
12481         * tree-vrp.c (adjust_range_with_scev): Properly check whether
12482         overflow occured.
12484 2011-05-30  Richard Guenther  <rguenther@suse.de>
12486         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12487         New function split out from ...
12488         (forward_propagate_into_gimple_cond): ... here.  Adjust.
12489         (forward_propagate_into_cond): Likewise.
12490         (forward_propagate_comparison): Also propagate into
12491         comparisons on assignment RHS.  Change return value to
12492         behave similar to forward_propagate_into_cond.
12493         (tree_ssa_forward_propagate_single_use_vars): Handle
12494         strict-overflow warnings properly for forward_propagate_comparison.
12496 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12498         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12499         from plugin linker.
12500         * configure: Regenerate.
12502 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
12504         PR tree-optimization/49199
12505         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12506         non-reduction operands are either defined in the loop or by induction.
12508 2011-05-29  Xinliang David Li  <davidxl@google.com>
12510         * opts-global.c (handle_common_deferred_options): Handle new options.
12511         * passes.c (register_one_dump_file): Call register_pass_name.
12512         (execute_one_pass): Check explicit enable/disable flag.
12513         (passr_hash): New function.
12514         (passr_eq): Ditto.
12515         (register_pass_name): Ditto.
12516         (get_pass_by_name): Ditto.
12517         (pass_hash): Ditto.
12518         (pass_eq): Ditto.
12519         (enable_pass): Ditto.
12520         (disable_pass): Ditto.
12521         (is_pass_explicitly_enabled_or_disabled): Ditto.
12523 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
12525         * config/i386/i386.md (*movoi_internal_avx): Use
12526         standard_sse_constant_opcode for alternative 0.
12527         (*movti_internal_sse): Ditto.
12528         (*movti_internal_rex64): Use standard_sse_constant_opcode for
12529         alternative 2.
12530         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12531         sselog1 type moves.
12532         (*movsi_internal): Ditto.
12533         (*movdi_internal): Ditto.  Add ssecvt type moves.
12535 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
12537         PR target/48830
12538         * rtlanal.c (simplify_subreg_regno): Adjust comment.
12540 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
12542         PR rtl-optimization/49095
12543         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12544         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12546 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12548         PR target/43995
12549         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12550         recurse_p argument.  Only follow register copies if it is set,
12551         and prevent mips_find_pic_call_symbol from recursing.
12552         (mips_find_pic_call_symbol): Add a recurse_p argument.
12553         Pass it to mips_pic_call_symbol_from_set.
12554         (mips_annotate_pic_calls): Update accordingly.
12556 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12558         * emit-rtl.c (try_split): Use a loop to search for
12559         NOTE_INSN_CALL_ARG_LOCATIONs.
12561 2011-05-29  Richard Guenther  <rguenther@suse.de>
12563         PR tree-optimization/49217
12564         * ipa-pure-const.c (propagate_pure_const): Fix typos.
12566 2011-05-28  Jan Hubicka  <jh@suse.cz>
12568         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12569         length.
12570         (string_slot_free): Remove
12571         (create_output_block): Initialize obstack.
12572         (destroy_output_block): Free obstack.
12573         (lto_string_index): Add PERSISTENT parameter; do not duplicate
12574         the string unless it needs to be added into the hash.
12575         (lto_output_string_with_length): Add persistent attribute;
12576         handle NULL strings.
12577         (lto_output_string): Add PERSISTENT parameter.
12578         (output_string_cst, output_identifier): Simplify.
12579         (lto_output_location_bitpack): Update.
12580         (lto_output_builtin_tree): Update.
12581         * lto-streamer.h (struct output_block): Add obstack.
12582         (lto_output_string, lto_output_string_with_length): Remove
12583         declarations; functions are static now.
12585 2011-05-28  Jan Hubicka  <jh@suse.cz>
12587         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12588         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12589         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12590         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12591         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12592         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12593         unpack_ts_decl_with_vis_value_fields,
12594         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12595         lto_get_builtin_tree): Use enum and variable length i/o.
12596         * basic-block.h (profile_status_d): Add PROFILE_LAST.
12597         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12598         New functions.
12599         (bp_pack_enum, bp_unpack_enum): New macros.
12601 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12603         * genrecog.c: Remove redundant forward declarations.
12605 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12607         * config.gcc: Deprecate mips*-*-openbsd*.
12609 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12611         PR bootstrap/49195
12612         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12613         for match_op_dup.
12615 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
12617         PR middle-end/48981
12618         * gengtype.c (vec_prefix_type): New function.
12619         (note_def_vec): Use vec_prefix_type and change the length
12620         attribute to be based on the prefix.
12621         * vec.c: Include coretypes.h before vec.h.
12622         (struct vec_prefix): Remove.
12623         (vec_gc_p_reserve): Change the offsetof to sizeof.
12624         (vec_gc_p_reserve_exact): Likewise.
12625         (vec_heap_p_reserve): Likewise.
12626         (vec_heap_p_reserve_exact): Likewise.
12627         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
12628         (vec_stack_p_reserve): Change the offsetof to sizeof.
12629         (vec_stack_p_reserve_exact): Likewise.
12630         * vec.h (struct vec_prefix): New struct definition.
12631         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
12632         (VEC_T_GTY(T,B)): Likewise.
12633         (DEF_VEC_FUNC_P(T)): Use prefix field.
12634         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
12635         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
12637 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12639         PR tree-optimization/46728
12640         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
12641         (powi_as_mults): Add gimple_set_location.
12642         (build_and_insert_call): New.
12643         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
12644         0.5, 0.25, 0.75, 1./3., or 1./6.
12646 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
12648         * doc/contrib.texi: Update copyright years.
12649         (Contributors): Add Zdenek Sojka.
12651 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
12653         * c-decl.c (c_push_function_context): Copy the current statement
12654         list stack.
12655         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
12656         (finish_struct): Call building_stmt_list_p instead of checking
12657         cur_stmt_list.
12658         * c-parser.c (c_parser_postfix_expression): Likewise.
12659         * c-typeck.c (c_end_compound_stmt): Likewise.
12660         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
12661         * tree-iterator.c (stmt_list_cache): Change to a VEC.
12662         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
12663         (free_stmt_list): Likewise.
12664         * tree.h (struct tree_statement_list): Include typed_tree instead
12665         of tree_common.
12666         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
12667         as TS_TYPED instead of TS_COMMON.
12669 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12670             Uros Bizjak  <ubizjak@gmail.com>
12672         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
12673         (HAVE_AS_IX86_TLSGDPTL): Define.
12674         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
12675         (HAVE_AS_IX86_TLSLDMPLT): Define.
12676         * configure: Regenerate.
12677         * config.in: Regenerate.
12678         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
12679         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12680         TARGET_SUN_TLS, use @tlsgdplt or @plt.
12681         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
12682         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
12683         @tlsldmplt or @plt.
12684         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
12686 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12688         * sched-int.h (struct _haifa_deps_insn_data): New members cond
12689         and reverse_cond.
12690         (INSN_COND, INSN_REVERSE_COND): New macros.
12691         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12692         once.
12693         (sched_get_condition_with_rev): Cache the results, and look them up
12694         if possible.
12695         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12696         are clobbered by the current insn.
12697         * target.def (exposed_pipline): New sched data hook.
12698         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12699         * doc/tm.texi: Regenerate.
12701 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12703         PR tree-optimization/49170
12704         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
12705         sincos or cexp.
12707 2011-05-27  Richard Guenther  <rguenther@suse.de>
12709         PR middle-end/49189
12710         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12711         of comparisons.
12713 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12715         * haifa-sched.c (sched_scan_info): Remove.
12716         (schedule_block): Call sched_extend_luids rather than sched_init_luids
12717         with NULL args.
12718         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12719         Remove functions.
12720         (sched_scan): Remove.
12721         (sched_extend_luids): Renamed from luids_extend_insn and no longer
12722         static.  All callers changed.
12723         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12724         static.  All callers changed.
12725         (sched_init_luids): Remove all arguments except the first.  All
12726         callers changed.  Don't use sched_scan.
12727         (haifa_init_h_i_d): Likewise.
12728         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12729         manually rather than using sched_init_luids.  Likewise with
12730         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12731         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12732         rather than sched_init_luids with NULL args.
12733         * sel-sched-ir.c (new_insns): Remove variable.
12734         (sched_scan): New static function, previously in haifa-sched.c.  Remove
12735         all arguments but the first two; all callers changed.
12736         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12737         rather than sched_init_luids.
12738         (sel_init_bbs): Remove second argument.  All callers changed.
12739         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12740         with NULL arguments.
12741         (create_insn_rtx_from_pattern): Likewise.
12742         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12743         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12744         (sched_init_insn_luid, sched_extend_luids): Declare.
12745         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12746         declarations.
12748 2011-05-27  Richard Guenther  <rguenther@suse.de>
12750         PR middle-end/49177
12751         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12752         A CMP B ? (T) true : (T) false for non-integral types T again.
12754 2011-05-27  Jan Hubicka  <jh@suse.cz>
12756         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12757         so 0 means NULL string.
12758         (lto_output_string_with_length): ... here.
12759         (lto_output_string, output_string_cst, output_identifier): Update
12760         handling of NULL strings.
12761         (lto_output_location_bitpack): New function.
12762         (lto_output_location): Use it.
12763         (lto_output_tree_ref): Use output_record_start.
12764         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12765         len values.
12766         * lto-streamer-in.c (string_for_index): Break out from ...; offset
12767         values by 1.
12768         (input_string_internal): ... here;
12769         (input_string_cst, input_identifier, lto_input_string): Update handling
12770         of NULL strings.
12771         (lto_input_location_bitpack): New function
12772         (lto_input_location): Use it.
12773         (unpack_ts_type_common_value_fields): Pack align & alias in var len
12774         values.
12775         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12776         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12777         (bp_pack_value): Sanity check the value range.
12778         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12779         New functions.
12780         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12781         New functions.
12783 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
12785         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12786         call_arg_location instructions down the floor.
12788 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
12790         PR rtl-optimization/49154
12791         * ira.c (setup_pressure_classes): Process class without sublcasses
12792         as a candidate for pressure classes.
12794 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
12796         PR rtl-optimization/48575
12797         * genrecog.c (position_type): New enum.
12798         (position): New structure.
12799         (decision): Use position structure instead of a string.
12800         (root_pos, peep2_insn_pos_list): New variables.
12801         (next_position, compare_positions): New functions.
12802         (new_decision): Use position structures instead of strings.
12803         (maybe_both_true): Likewise.
12804         (change_state): Likewise.
12805         (write_tree): Likewise.
12806         (make_insn_sequence): Likewise.
12808 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12810         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12811         TS_BASE instead of TS_COMMON.
12812         (find_decls_types_r): Check for TS_TYPED structure before looking at
12813         TREE_TYPE.
12814         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12815         Add chain field.
12816         (BLOCK_CHAIN): Use new chain field.
12818 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
12820         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12821         moves expensive on Power7 also.
12823 2011-05-26  Richard Guenther  <rguenther@suse.de>
12825         * fold-const.c (fold_unary_loc): Remove bogus code.
12827 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12829         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12830         tree_common.
12831         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12832         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12833         TS_BASE instead of TS_COMMON.
12834         * varasm.c (assemble_name): Remove assert.
12836 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12838         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12839         substituted first.
12840         * libgcc-std.ver: Delete file.
12842 2011-05-26  Richard Guenther  <rguenther@suse.de>
12844         PR tree-optimization/48702
12845         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12846         only when we know the base address is within bounds.
12847         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12848         assume the base address of TARGET_MEM_REFs is in bounds.
12850 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12852         PR target/49099
12853         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12854         declaration in TARGET_SOLARIS.
12856 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
12858         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12859         The instruction is then expanded explicitly.
12860         (supported_compare): Callable instruction.
12861         (compare): Likewise.
12863 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12865         PR c++/49165
12866         * gimplify.c (shortcut_cond_r): Don't special case
12867         COND_EXPRs if they have void type on one of their arms.
12869 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12871         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12872         to reduce duplication, and to achieve a slightly more logical order
12873         of operations.
12875 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12877         PR tree-optimization/49161
12878         * tree-vrp.c (struct case_info): New type.
12879         (compare_case_labels): Sort case_info structs instead of
12880         trees, and not primarily by CASE_LABEL uids but by
12881         label_for_block indexes.
12882         (find_switch_asserts): Put case labels into struct case_info
12883         array instead of TREE_VEC, adjust sorting, compare label_for_block
12884         values instead of CASE_LABELs.
12886 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12888         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
12889         ("orndi3_neon"): Likewise.
12890         ("bic<mode>3_neon"): Likewise.
12892 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
12894         PR tree-optimization/49038
12895         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
12896         Ensure at least one epilogue iteration if required by data
12897         accesses with gaps.
12898         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12899         to mark loops that require peeling for gaps.
12900         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
12901         (vect_get_known_peeling_cost): Take peeling for gaps into
12902         account.
12903         (vect_transform_loop): Generate epilogue if required by data
12904         access with gaps.
12905         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
12906         loop as requiring an epilogue if there are gaps in the end of
12907         the strided group.
12909 2011-05-25  Ian Lance Taylor  <iant@google.com>
12911         * godump.c (go_format_type): Output the first field with a usable
12912         Go type, if any.
12914 2011-05-25  Ian Lance Taylor  <iant@google.com>
12916         * godump.c (go_format_type): Check for invalid type names, pointer
12917         target types, and struct field types.
12919 2011-05-25  Jason Merrill  <jason@redhat.com>
12921         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
12923 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
12925         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
12927 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12929         * config/i386/i386.md (*movqi_extv_1)): Put back
12930         "register_operand" check in "type" calculation.
12931         (*movqi_extzv_2): Likewise.
12933 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12935         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
12937 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12939         PR bootstrap/49160
12940         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
12941         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
12942         __divxc3, __divtc3): Wrap definitions in #ifndef.
12944 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12946         PR target/49142
12947         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
12948         "register_operand" check and replace q_regs_operand with
12949         QIreg_operand in "type" calculation.
12950         (*movqi_extv_1): Likewise.
12951         (*movqi_extzv_2_rex64): Likewise.
12952         (*movqi_extzv_2): Likewise.
12954         * config/i386/predicates.md (QIreg_operand): New.
12956 2011-05-25  Richard Guenther  <rguenther@suse.de>
12958         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12959         type-based offset disambiguation, streamline MEM_REF and
12960         TARGET_MEM_REF handling.
12962 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12964         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
12965         (bdesc_special_args): Add pause intrinsic.
12967         * config/i386/i386.md (UNSPEC_PAUSE): New.
12968         (pause): Likewise.
12969         (*pause): Likewise.
12970         * config/i386/ia32intrin.h (__pause): Likewise.
12972         * doc/extend.texi (X86 Built-in Functions): Add documentation for
12973         pause intrinsic.
12975 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12977         PR tree-optimization/46728
12978         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
12979         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
12981 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
12983         * tree.h (struct tree_exp): Inherit from struct tree_typed.
12984         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
12985         instead of TS_COMMON.
12987 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12989         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
12990         LIBGCC2_GNU_PREFIX is defined.
12991         (__N): New macro.
12992         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
12993         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
12994         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
12995         __clz_tab): Define using __N.
12996         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
12997         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
12998         * target.def (libfunc_gnu_prefix): New hook.
12999         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
13000         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
13001         * doc/tm.texi: Regenerate.
13002         * system.h (LIBGCC2_GNU_PREFIX): Poison.
13003         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
13004         account.
13005         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
13006         (init_optabs): Likewise for the bswap libfuncs.
13007         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
13008         and divide.
13009         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
13010         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
13011         * libgcc-std.ver: Remove.
13012         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
13013         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
13014         libgcc-std.ver.
13015         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13016         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
13017         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
13018         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
13019         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
13020         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13021         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13022         * config/fixed-bit.h (FIXED_OP): Define differently depending on
13023         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
13024         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
13026 2011-05-25  Jan Hubicka  <jh@suse.cz>
13028         * lto-streamer-out.c (output_record_start): Use lto_output_enum
13029         (lto_output_tree): Use output_record_start.
13030         * lto-streamer-in.c (input_record_start): Use lto_input_enum
13031         (lto_get_pickled_tree): Use input_record_start.
13032         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
13033         (lto_value_range_error): New function.
13034         * lto-streamer.h (lto_value_range_error): Declare.
13035         (lto_output_int_in_range, lto_input_int_in_range): New functions.
13036         (lto_output_enum, lto_input_enum): New macros.
13038 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13040         * common.opt (flag_stack_usage_info): New variable.
13041         (-Wstack-usage): New option.
13042         * doc/invoke.texi (Warning options): Document -Wstack-usage.
13043         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
13044         <OPT_fstack_usage>: Likewise.
13045         * toplev.c (output_stack_usage): Handle -Wstack-usage.
13046         * calls.c (expand_call): Test flag_stack_usage_info variable instead
13047         of flag_stack_usage.
13048         (emit_library_call_value_1): Likewise.
13049         * explow.c (allocate_dynamic_stack_space): Likewise.
13050         * function.c (instantiate_virtual_regs ): Likewise.
13051         (prepare_function_start): Likewise.
13052         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
13053         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
13054         * config/arm/arm.c (arm_expand_prologue): Likewise.
13055         (thumb1_expand_prologue): Likewise.
13056         * config/avr/avr.c (expand_prologue): Likewise.
13057         * config/i386/i386.c (ix86_expand_prologue): Likewise.
13058         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13059         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
13060         * config/mips/mips.c (mips_expand_prologue): Likewise.
13061         * config/pa/pa.c (hppa_expand_prologue): Likewise.
13062         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13063         * config/s390/s390.c (s390_emit_prologue): Likewise.
13064         * config/sh/sh.c (sh_expand_prologue): Likewise.
13065         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13066         * config/spu/spu.c (spu_expand_prologue): Likewise.
13068 2011-05-25  Richard Guenther  <rguenther@suse.de>
13070         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
13071         (gimple_canonical_types_compatible_p): Likewise.
13073 2011-05-25  Jan Hubicka  <jh@suse.cz>
13075         PR middle-end/49062
13076         * ipa.c (function_and_variable_visibility): Only add to same
13077         comdat group list if DECL_ONE_ONLY.
13079 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
13081         PR rtl-optimization/49014
13082         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
13084 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13086         PR target/49128
13087         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13089 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13091         PR rtl-optimization/48757
13092         * ira-build.c (loop_with_eh_edge_p): Rename to
13093         loop_with_complex_edge_p, check edges on complexity, make function
13094         conditional.
13095         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13096         conditional.
13098 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13100         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13101         force flag_ira_share_save_slots to 0.
13103 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13105         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13106         (vt_initialize): Set PROLOGUE_BB unconditionally.
13107         Add block comment about CFA_BASE_RTX machinery.
13108         Reset FP_CFA_OFFSET to -1 on all invalid paths.
13109         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13111 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
13113         PR objc/48187
13114         * c-parser.c (c_parser_objc_class_instance_variables): More robust
13115         parsing of syntax error in ObjC instance variable lists.  In
13116         particular, avoid an infinite loop if there is a stray ']'.
13117         Updated error message.
13119 2011-05-24  Ian Lance Taylor  <iant@google.com>
13121         * godump.c (go_define): Don't accept a string immediately after
13122         another operand.
13124 2011-05-24  Ian Lance Taylor  <iant@google.com>
13126         * godump.c (struct godump_container): Add invalid_hash field.
13127         (go_format_type): Return false if type is found in invalid_hash.
13128         (go_output_typedef): Add invalid type to invalid_hash.
13129         (go_finish): Create and delete invalid_hash.
13131 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13133         PR tree-optimization/46728
13134         * tree-ssa-math-opts.c (powi_table): New.
13135         (powi_lookup_cost): New.
13136         (powi_cost): New.
13137         (powi_as_mults_1): New.
13138         (powi_as_mults): New.
13139         (gimple_expand_builtin_powi): New.
13140         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13141         (gate_cse_sincos): Remove sincos/cexp restriction.
13143 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13145         PR target/3746
13146         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13147         mips-tdump native.
13148         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13149         * mips-tdump.c: Likewise.
13151 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13153         PR target/49128
13154         * config/i386/driver-i386.c (host_detect_local_cpu): Always
13155         add -mno-XXX.  Handle FMA.
13157 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13159         PR rtl-optimization/48633
13160         * ira-build.c (loop_with_eh_edge_p): New function.
13161         (mark_loops_for_removal): Use it.
13163 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13165         PR rtl-optimization/48971
13166         * ira.c (setup_pressure_classes): Don't check register move cost
13167         for classes with one registers.  Don't add pressure class if there
13168         is a pressure class with the same available hard registers.
13169         Check contains_reg_of_mode.  Fix a typo in collecting
13170         temp_hard_regset.  Ignore hard registers not belonging to a class.
13172 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
13174         PR target/49133
13175         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
13177 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13178             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13180         PR gcov-profile/48845
13181         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
13183 2011-05-24  Richard Guenther  <rguenther@suse.de>
13185         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
13186         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
13187         (gimple_types_compatible_p_1): Adjust.
13188         (iterative_hash_canonical_type): Do not bother about complete vs.
13189         incomplete types.
13190         (gimple_canonical_types_compatible_p): Likewise.
13192 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13194         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
13196 2011-05-24  Richard Guenther  <rguenther@suse.de>
13198         PR bootstrap/49078
13199         * gimple.c (gimple_register_canonical_type): Revert
13200         previous change.
13201         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
13202         does not for a tree for the case where it matters.  Cache
13203         pointer-type alias-sets.
13205 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
13207         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
13208         (OBJS): Remove options.o, opts-common.o and prefix.o.
13209         (OBJS-libcommon-target): New.
13210         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
13211         (BACKEND): Include libcommon-target.a.
13212         (MOSTLYCLEANFILES): Include libcommon-target.a.
13213         (libcommon-target.a): New.
13214         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
13215         prefix.o.
13217 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
13219         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
13220         parts of output shared with the driver.
13221         * optc-gen.awk: Don't generate parts of output not shared with the
13222         driver.
13223         * opth-gen.awk: Remove GCC_DRIVER conditionals.
13224         * doc/options.texi (SourcerInclude): Mention options-save.c.
13225         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
13226         (OBJS): Add options-save.o.
13227         (options-save.c, options-save.o): New.
13228         (options.o): Update dependencies.
13229         (gcc-options.o): Remove.
13230         (mostlyclean): Remove options-save.c.
13232 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13234         PR debug/49032
13235         * dbxout.c: Include cgraph.h.
13236         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
13237         and without value expr, return NULL if no varpool node exists for
13238         it or if it is not needed.
13239         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
13241         PR c/49120
13242         * c-decl.c (start_decl): Convert expr to void_type_node.
13244 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
13246         PR rtl-optimization/48826
13247         * emit-rtl.c (try_split): When splitting a call that is followed
13248         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
13250 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13252         * cfgexpand.c (expand_debug_expr): For unused non-addressable
13253         parameters passed in memory prefer using DECL_INCOMING_RTL over
13254         the pseudos it will be copied into.
13256 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13258         PR target/47315
13259         * config/i386/i386.c (ix86_option_override_internal): Save the
13260         initial options after checking vzeroupper.
13262 2011-05-23  David Li  <davidxl@google.com>
13264         PR tree-optimization/48988
13265         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
13266         Initialize has_valid_pred for each pred chain.
13268 2011-05-23  Richard Guenther  <rguenther@suse.de>
13270         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
13271         (iterative_hash_gimple_type): Always hash type names.
13273 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
13275         * c-typeck.c (build_function_call_vec): Tweak call to
13276         check_function_arguments.
13278 2011-05-23  Richard Guenther  <rguenther@suse.de>
13280         PR tree-optimization/49115
13281         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
13282         is not necessarily carried out, do not claim it kills the ref.
13283         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
13285 2011-05-23  Richard Guenther  <rguenther@suse.de>
13287         PR middle-end/15419
13288         * builtins.c (fold_builtin_memory_op): Be less restrictive about
13289         what pointer types we accept for folding.
13291 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13293         * gthr-gnat.c: Remove.
13294         * gthr-gnat.h: Remove.
13295         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
13296         * config/t-freebsd (LIB2ADDEH): Likewise.
13297         * config/t-linux (LIB2ADDEH): Likewise.
13298         * config/t-sol2 (LIB2ADDEH): Likewise.
13299         * config/ia64/t-vms (LIB2ADDEH): Likewise.
13300         * configure.ac (target_thread_file): Remove gnat handling.
13301         * configure: Regenerate.
13302         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
13304 2011-05-23  Tristan Gingold  <gingold@adacore.com>
13305             Eric Botcazou  <ebotcazou@adacore.com>
13307         * gcov.c (create_file_names): If no object directory is specified,
13308         keep the directory of the file.
13310 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13312         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
13313         * configure: Regenerate.
13315 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13317         PR middle-end/48973
13318         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
13319         failed and the comparison has a single bit signed type, use
13320         constm1_rtx instead of const1_rtx for true value.
13321         (do_store_flag): If ops->type is single bit signed type, disable
13322         signel bit test optimization and pass -1 instead of 1 as last
13323         parameter to emit_store_flag_force.
13325 2011-05-23  Tom de Vries  <tom@codesourcery.com>
13327         PR target/45098
13328         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
13329         function.
13330         (infer_loop_bounds_from_undefined): Use new function.
13332 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
13334         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
13335         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
13336         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
13337         and -O0 otherwise.
13338         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
13340 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13342         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
13343         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13344         returns true.
13346 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
13348         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
13350 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13352         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
13353         UNSPEC_MOVE_PIC pattern.
13355 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13357         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
13358         (sparc-*-rtems*): Likewise.
13359         (sparc64-*-elf*): Likewise.
13360         (sparc64-*-rtems*): Likewise.
13361         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
13362         * config/sparc/t-crtin: New file.
13363         * config/sparc/t-sol2 (crti.o): Delete rule.
13364         (crtn.o): Likewise.
13365         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
13366         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13367         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
13368         (ENDFILE_SPEC): Add crtn.o.
13370 2011-05-22  Tom de Vries  <tom@codesourcery.com>
13372         PR middle-end/48689
13373         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
13374         CODE_CONTAINS_STRUCT (TS_COMMON).
13376 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
13378         PR middle-end/49029
13379         * expmed.c (extract_fixed_bit_field): Test whether target can be used
13380         only after deciding which mode to use.
13382 2011-05-22  Tom de Vries  <tom@codesourcery.com>
13384         PR target/45098
13385         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
13386         for call to get_shiftadd_cost.
13388 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
13390         PR target/49104
13391         * config/i386/cpuid.h (bit_MMXEXT): New define.
13393 2011-05-22  Nick Clifton  <nickc@redhat.com>
13395         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
13396         initialisation of non-existant args[2] element.  Use args[] array
13397         not arg[] array to pass arguments to build_function_type_list.
13399 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
13401         PR tree-optimization/49087
13402         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
13404 2011-05-21  Jason Merrill  <jason@redhat.com>
13406         PR c++/49092
13407         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13408         static storage duration.
13410 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13412         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13413         frame pointer.
13415 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13417         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13418         false if there are call-saved registers here...
13419         (sparc_can_use_return_insn_p): ...but here instead.
13420         (save_or_restore_regs): Fix thinko.
13421         (sparc_expand_prologue): Use current_function_is_leaf.
13422         (sparc_frame_pointer_required): Likewise.
13424 2011-05-21  Nick Clifton  <nickc@redhat.com>
13426         PR target/49098
13427         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13429 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13431         * gengtype.c (walk_type): Implemented "atomic" GTY option.
13432         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13434 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
13436         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
13437         * optc-gen.awk: Move common code to opt-read.awk.
13438         * opth-gen.awk: Likewise.
13439         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13441 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
13443         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13445 2011-05-20  Tom de Vries  <tom@codesourcery.com>
13447         PR target/45098
13448         * tree-ssa-loop-ivopts.c: Include expmed.h.
13449         (get_shiftadd_cost): New function.
13450         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
13452 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13454         PR bootstrap/49086
13455         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13456         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13458 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13460         * Makefile.in: Update comment referring to $(OBJS-common).
13462 2011-05-20  Ian Lance Taylor  <iant@google.com>
13464         * godump.c (go_output_typedef): Put enum constants in the macro
13465         hash table to avoid duplicate Go const definitions.
13467 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13469         * Makefile.in (LIBDEPS): Add libcommon.a.
13470         (LIBS): Likewise.
13471         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13472         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13473         pretty-print.o and version.o.
13474         (OBJS-libcommon): New.
13475         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13476         (BACKEND): Add libcommon.a.
13477         (MOSTLYCLEANFILES): Likewise.
13478         (libcommon.a): New.
13479         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13480         (cpp$(exeext)): Likewise.
13481         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13482         pretty-print.o and input.o.
13483         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13484         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13485         (errors.o): Remove.
13486         (mips-tfile): Don't explicitly use version.o.
13487         (mips-tdump): Likewise.
13488         (gcov.o): Depend on $(DIAGNOSTIC_H).
13489         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13490         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13491         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13492         * gcov-dump.c: Include intl.h and diagnostic.h.
13493         (main): Initialize diagnostics.
13494         * gcov.c: Include diagnostic.h.
13495         (fnotice): Remove.
13496         (main): Initialize diagnostics.
13497         * lto-wrapper.c: Include diagnostic.h.
13498         (main): Initialize diagnostics.
13500 2011-05-20  Michael Matz  <matz@suse.de>
13502         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13504 2011-05-20  Michael Matz  <matz@suse.de>
13505             Richard Guenther  <rguenther@suse.de>
13507         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13508         use lto_streamer_cache_append directly instead of returning a VEC.
13509         (preload_common_node): Remove.
13510         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13511         track seen nodes.
13512         (lto_streamer_cache_create): Call lto_preload_common_nodes.
13514 2011-05-20  Richard Guenther  <rguenther@suse.de>
13516         PR tree-optimization/49079
13517         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13518         MEM_REFs correctly for the trailing array access detection.
13519         Special case constants the same way as decls for overall size
13520         constraining.
13522 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
13524         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13525         argument expansion.
13527 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13529         PR tree-optimization/49073
13530         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13531         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13532         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13534 2011-05-20  Richard Guenther  <rguenther@suse.de>
13536         PR middle-end/48849
13537         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13538         of pointer types the same way the middle-end does.
13540 2011-05-20  Richard Guenther  <rguenther@suse.de>
13542         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13543         or pointer-to chains.  Delay all fixup to uniquify_nodes.
13545 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
13547         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13548         (fma4_fmaddsub): Likewise
13550 2011-05-19  Jan Hubicka  <jh@suse.cz>
13552         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13553         (GIMPLE_TYPE_PAIR_SIZE): New macro.
13554         (type_pair_cache): New static var.
13555         (lookup_type_pair): Use fixed sized custom hash; make inline.
13556         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13557         calls of lookup_type_pair.
13558         (print_gimple_types_stats): Remove cache stats.
13559         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13560         and gtc_ob.
13562 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
13564         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13565         when TARGET_RDRND is active.
13566         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13567         Generate dummy SImode target register when target is NULL.
13569 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13571         * config/arm/arm-fpus.def: New.
13572         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13573         arm-fpus.def.
13574         * config/arm/arm-tables.opt: Regenerate.
13575         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13576         (arm_option_override): Don't decode FPU name to string here.
13577         * config/arm/arm.opt (mfpu=): Use Enum.
13578         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13579         Update dependencies.
13581 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13583         * collect2.c: Include diagnostic.h.
13584         (fatal_perror, fatal, error, fancy_abort): Remove.
13585         (main): Set progname.  Call xmalloc_set_program_name and
13586         diagnostic_initialize.
13587         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13588         scan_libraries, resolve_lib_name): Call fatal_error instead of
13589         fatal and fatal_perror.
13590         * collect2.h (error, fatal, fatal_perror): Don't declare.
13591         * tlink.c: Include diagnostic-core.h.
13592         (recompile_files): Call fatal_error instead of fatal_perror.
13593         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13594         pretty-print.o and input.o.
13595         (collect2.o, tlink.o): Update dependencies.
13597 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13599         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13601 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13603         PR target/40483
13604         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13605         COMDAT group syntax, both SPARC and x86 variants.
13606         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13607         * configure: Regenerate.
13608         * config/sol2.h (TARGET_SOLARIS): Define.
13609         (PUSHSECTION_FORMAT): Remove.
13610         (SECTION_NAME_FORMAT): Define.
13611         * config/sol2.c: Include hashtab.h.
13612         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13613         expansion, using SECTION_NAME_FORMAT.
13614         (solaris_comdat_htab): New variable.
13615         (struct comdat_entry): Define.
13616         (comdat_hash): New function.
13617         (comdat_eq): New function.
13618         (solaris_elf_asm_comdat_section): New function.
13619         (solaris_define_comdat_signature): New function.
13620         (solaris_code_end): New function.
13621         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13622         (solaris_code_end): Declare.
13623         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13624         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
13625         solaris_code_end.
13626         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
13627         Remove ATTRIBUTE_UNUSED.
13628         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
13629         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
13630         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
13631         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
13632         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
13633         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
13634         (PUSHSECTION_FORMAT): Remove.
13635         (SECTION_NAME_FORMAT): Redefine.
13637 2011-05-19  Kai Tietz  <ktietz@redhat.com>
13639         * tree-cfg.c (verify_gimple_assign_binary): Barf on
13640         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
13641         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
13643 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
13644             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13646         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
13648 2011-05-19  Richard Guenther  <rguenther@suse.de>
13650         PR middle-end/48985
13651         * tree-object-size.c (addr_object_size): If the pointed-to
13652         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
13654 2011-05-19  Richard Guenther  <rguenther@suse.de>
13656         * gimple.c (gimple_types_compatible_p_1): Compare names of
13657         the types themselves.
13658         (iterative_hash_gimple_type): And hash them that way.
13659         (gimple_register_type_1): If we register a main variant properly
13660         initialize the leader to ourselves.
13662 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13664         PR target/45098
13665         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
13666         get_loop_invariant_expr_id.
13667         (get_loop_invariant_expr_id): Use get_expr_id.
13668         (parm_decl_cost): New function.
13669         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
13670         Improve bound cost estimation.  Use different inv_expr_id for elim and
13671         express cases.
13673 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13675         PR target/45098
13676         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
13677         cost_base.cost == 0.
13679 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13681         PR target/49002
13682         * config/i386/sse.md
13683         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
13684         load cast.
13686 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13688         PR tree-optimization/49039
13689         * tree-vrp.c (extract_range_from_binary_expr): For
13690         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13691         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13693 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13695         PR target/45098
13696         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13698 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
13700         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13701         (*tls_global_dynamic_64): Ditto.
13702         (*tls_local_dynamic_base_32_gnu): Ditto.
13703         (*tls_local_dynamic_base_64): Ditto.
13704         (tls_initial_exec_64_sun): Ditto.
13706 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
13708         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13709         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13710         bf592-none.
13711         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13712         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13713         * config/bfin/bfin.c (bfin_cpus): Add bf592.
13714         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13715         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13716         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13717         * config/bfin/elf.h (LIB_SPEC): Add bf592.
13719 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
13721         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13722         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13723         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13724         target_thread_pointer, arm_structure_size_boundary, struct
13725         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13726         struct abi_name, arm_all_abis): Remove.
13727         (arm_option_override) Don't process most enumerated option values here.
13728         Don't process target_fpe_name here.  Work with integer not string for
13729         structure size boundary; use separate diagnostics for each case.
13730         * config/arm/arm.h (enum float_abi_type, enum
13731         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13732         to arm-opts.h.
13733         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13734         arm_structure_size_boundary): Remove.
13735         * config/arm/arm.opt (mabi=): Use Enum and Init.
13736         (arm_abi_type): New Enum and EnumValue entries.
13737         (mfloat-abi=): Use Enum and Init.
13738         (float_abi_type): New Enum and EnumValue entries.
13739         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13740         (mfp16-format=): Use Enum and Init.
13741         (arm_fp16_format_type): New Enum and EnumValue entries.
13742         (mstructure-size-boundary=): Use UInteger and Init.
13743         (mtp=): Use Enum and Init.
13744         (arm_tp_type): New Enum and EnumValue entries.
13746 2011-05-18  Richard Guenther  <rguenther@suse.de>
13748         PR tree-optimization/49018
13749         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13750         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13751         gimple_has_side_effects.
13753 2011-05-18  Richard Guenther  <rguenther@suse.de>
13755         * gimple.c (gimple_register_type_1): New function, split out from ...
13756         (gimple_register_type): ... here.  Avoid infinite recursion.
13758 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13760         PR tree-optimization/41881
13761         * tree-vectorizer.h (struct _loop_vec_info): Add new field
13762         reduction_chains along with a macro for its access.
13763         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13764         (destroy_loop_vec_info): Free reduction chains.
13765         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13766         (vect_is_slp_reduction): New function.
13767         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13768         (vect_create_epilog_for_reduction): Support SLP reduction chains.
13769         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13770         definition types for reduction chains.
13771         (vect_supported_load_permutation_p): Don't allow permutations for
13772         reduction chains.
13773         (vect_analyze_slp_instance): Support reduction chains.
13774         (vect_analyze_slp): Try to build SLP instance from reduction chains.
13775         (vect_get_constant_vectors):  Handle reduction chains.
13776         (vect_schedule_slp_instance): Mark the first statement of the
13777         reduction chain as reduction.
13779 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13781         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13782         names for group elements access.
13783         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13784         reduction chains as well.  Remove data reference and interleaving
13785         related words from the fields names.
13786         * tree-vect-loop.c (vect_transform_loop): Use new names for group
13787         elements access.
13788         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13789         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13790         vect_update_interleaving_chain, vect_same_range_drs,
13791         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13792         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13793         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13794         vect_analyze_group_access, vect_analyze_data_ref_access,
13795         vect_create_data_ref_ptr, vect_transform_strided_load,
13796         vect_record_strided_load_vectors): Likewise.
13797         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13798         vect_model_load_cost, vectorizable_store, vectorizable_load,
13799         vect_remove_stores, new_stmt_vec_info): Likewise.
13800         * tree-vect-slp.c (vect_build_slp_tree,
13801         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13803 2011-05-18  Richard Guenther  <rguenther@suse.de>
13805         PR middle-end/48989
13806         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13807         operand verification.
13808         (verify_gimple_assign_binary): Likewise.
13809         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13810         to non-1-precision BOOLEAN_TYPEs.
13812 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13814         PR target/45098
13815         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13817 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13819         PR tree-optimization/49000
13820         * tree-ssa.c (execute_update_addresses_taken): Call
13821         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
13822         be rewritten and decl has been marked for renaming, reset
13823         the debug stmt.
13825 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
13827         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13828         enum_opts_set when testing if attributes have set -mfpmath=.
13830 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
13832         * config/mips/mips.c (mips_handle_option): Remove unused variable.
13834 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13836         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13837         info->entry with 0
13838         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
13839         id.transform_lang_insert_block with NULL.
13841 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13843         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13844         (output_fp_compare): Change args 3 and 4 to bool.
13845         (ix86_expand_call): Change arg 6 to bool.
13846         (ix86_attr_length_immediate_default): Change arg 2 to bool.
13847         (ix86_attr_length_vex_default): Change arg 3 to bool.
13848         * config/i386/i386.md: Update all uses.
13849         * config/i386/i386.c: Ditto.
13850         (ix86_flags_dependent): Change return type to bool.
13852 2011-05-17  Richard Guenther  <rguenther@suse.de>
13854         * gimple.c (type_hash_pair_compare): Fix comparison.
13856 2011-05-17  Richard Guenther  <rguenther@suse.de>
13858         * gimple.c (iterative_hash_gimple_type): Simplify singleton
13859         case some more, fix final hash value of the non-singleton case.
13861 2011-05-17  Richard Guenther  <rguenther@suse.de>
13863         PR bootstrap/49013
13864         Revert
13865         2011-05-16  Richard Guenther  <rguenther@suse.de>
13867         * gimple.c (gimple_types_compatible_p_1): Use names of the
13868         type itself, not its main variant.
13869         (iterative_hash_gimple_type): Likewise.
13871 2011-05-17  Richard Guenther  <rguenther@suse.de>
13873         * gimple.c (gimple_register_canonical_type): Use the main-variant
13874         leader for computing the canonical type.
13876 2011-05-17  Nick Clifton  <nickc@redhat.com>
13878         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
13879         moves.
13881         * config/rx/rx.md: Add peephole to remove redundant extensions
13882         after loads.
13883         (bitset_in_memory): Use rx_restricted_mem_operand.
13884         (bitinvert_in_memory): Likewise.
13885         (bitclr_in_memory): Likewise.
13887 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
13888             Nick Clifton  <nickc@redhat.com>
13890         * config/rx/rx.md: Add peepholes to match a register move followed
13891         by a comparison of the moved register.  Replace these with an
13892         addition of zero that does both actions in one instruction.
13894 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
13896         PR target/48986
13897         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
13898         predicate to allow CONST_INT.
13899         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
13901 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13903         * opts-common.c (opt_enum_arg_to_value): New.
13904         * opts.h (opt_enum_arg_to_value): Declare.
13905         * config/i386/i386.opt (fpmath): Remove.
13906         (mfpmath=): Use Enum, Init and Save.
13907         (fpmath_unit): New Enum and EnumValue entries.
13908         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
13909         name for function fpmath state.
13910         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
13911         * config/i386/i386.c: Include diagnostic.h.
13912         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13913         (ix86_target_string): Take enum fpmath_unit value instead of string.
13914         (ix86_debug_options): Update call to ix86_target_string.
13915         (ix86_option_override_internal): Don't process fpmath strings here.
13916         (x86_function_specific_save, ix86_function_specific_restore):
13917         Don't handle fpmath state specially.
13918         (ix86_function_specific_print): Pass fpmath state to
13919         ix86_target_string instead of printing in this function.
13920         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
13921         Handle enum attributes.
13922         (IX86_ATTR_ENUM, ix86_opt_enum): New.
13923         (ix86_valid_target_attribute_tree): Update option_strings
13924         handling.  Handle fpmath as enum option.
13925         (ix86_can_inline_p): Update field names for function fpmath state.
13926         (ix86_expand_builtin): Update call to ix86_target_string.
13927         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
13928         (ix86_fpmath): Remove.
13929         * config/i386/t-i386 (i386.o): Update dependencies.
13931 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13933         PR preprocessor/48677
13934         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
13935         from decoded_options[0], not from itself.
13937 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
13939         * config/i386/constraints.md (z): New constraint.
13940         * config/i386/i386.c (c): New mode attribute.
13941         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
13942         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
13943         constraint for operand 0.
13944         (*call_vzeroupper): Ditto.
13945         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
13946         (*call_rex64_ms_sysv_vzeroupper): Ditto.
13947         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
13948         Use "lzm" constraint for operand 0.
13949         (*call_pop_vzeroupper): Ditto.
13950         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
13951         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
13952         constraint for operand 0.
13953         (*sibcall_vzeroupper): Ditto.
13954         (*sibcall_rex64_ms_sysv): Ditto.
13955         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
13956         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
13957         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
13958         (*sibcall_pop_vzeroupper): Ditto.
13959         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
13960         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
13961         mode iterator.  Use "<c>zm" constraint for operand 1.
13962         (*call_value_vzeroupper): Ditto.
13963         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
13964         for operand 1.
13965         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
13966         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
13967         *call_value_pop_1.  Use "lzm" constraint for operand 1.
13968         (*call_value_pop_vzeroupper): Ditto.
13969         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
13970         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
13971         mode iterator.  Use "Uz" constraint for operand 1.
13972         (*sibcall_value_vzeroupper): Ditto.
13973         (*sibcall_value_rex64_ms_sysv): Ditto.
13974         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
13975         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
13976         constraint for operand 1.
13977         (*sibcall_value_pop_vzeroupper): Ditto.
13978         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
13979         and "z" constraint for operand 2.
13980         (*tls_global_dynamic_32_gnu): Ditto.
13981         (*tls_local_dynamic_base_32_gnu): Ditto.
13982         (*tls_local_dynamic_base_64): Ditto.
13983         (*tls_local_dynamic_32_once): Ditto.
13984         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
13985         Update all callers.
13986         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
13988 2011-05-16  Richard Guenther  <rguenther@suse.de>
13990         * gimple.c (gimple_types_compatible_p_1): Use names of the
13991         type itself, not its main variant.
13992         (iterative_hash_gimple_type): Likewise.
13994 2011-05-16  Richard Guenther  <rguenther@suse.de>
13996         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
13997         always visit pointer target and function result and argument types.
13999 2011-05-16  Jason Merrill  <jason@redhat.com>
14001         PR c++/48999
14002         * tree-inline.c (copy_statement_list): Put back recursion.
14004 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
14006         PR target/27663
14007         PR target/41076
14008         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
14009         * config/avr/avr.md ("*ior<mode>qi.byte0",
14010         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
14012 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
14014         PR target/45099
14015         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
14016         register is needed for a function argument.
14018 2011-05-16  Richard Guenther  <rguenther@suse.de>
14020         * gimple.c (struct type_hash_pair): New type.
14021         (type_hash_pair_compare): New function.
14022         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
14024 2011-05-16  Revital Eres  <revital.eres@linaro.org>
14026         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
14028 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
14030         * config/i386/i386.md (floating point move splitters): Fix
14031         usage of standard_80387_constant_p.
14032         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
14034 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
14036         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
14038 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14040         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
14041         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
14042         (tree_ssa_lim_finalize): Likewise.
14044 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
14046         * config/i386/constraint.md (Yd, Yx): New register constraints.
14047         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
14048         Yd conditional register constraint.
14049         (*movtf_internal): Use standard_sse_constant_opcode.
14050         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
14051         Yx conditional register constraint.
14052         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
14053         Yd conditional register constraint.  Use standard_sse_constant_p to
14054         check for valid SSE constants and call standard_sse_constant_opcode to
14055         output SSE insn.
14056         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
14057         constants and call standard_sse_constant_opcode to output SSE insn.
14058         * config/i386/i386.c (ix86_option_ovverride_internal): Set
14059         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
14060         optimize_size is set.
14061         (standard_sse_constant_opcode): Output conditional AVX insn templates.
14063 2011-05-14  Tobias Burnus  <burnus@net-b.de>
14065         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
14067 2011-05-13  Martin Jambor  <mjambor@suse.cz>
14069         * ipa-prop.c (ipa_cst_from_jfunc): New function.
14070         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
14071         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
14072         (evaluate_conditions_for_ipcp_clone): Removed.
14073         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
14074         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
14075         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14077 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
14079         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
14080         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
14081         lieu of MAY_HAVE_DEBUG_STMTS.
14082         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
14083         debug statements if !MAY_HAVE_DEBUG_STMTS.
14085 2011-05-13  Martin Thuresson  <martint@google.com>
14087         PR gcov-profile/47793
14088         * libgcov.c (gcov_exit): Support relative profile paths.
14089         * doc/invoke.texi (-fprofile-dir): Update for above change.
14091 2011-05-13  Richard Guenther  <rguenther@suse.de>
14093         * gimple.c (gimple_canonical_types_compatible_p): Do not use
14094         type-pair caching, do not compare hashes.
14096 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
14098         PR middle-end/48965
14099         * tree-cfg.c (edge_to_cases_cleanup): Return true.
14100         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14102 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14104         * gimplify.c (gimplify_expr): Make sure operand is boolified.
14105         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14106         compatible type for TRUTH_NOT_EXPR.
14108 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14110         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14111         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
14112         can_create_pseudo_p ().
14114 2011-05-13  Richard Guenther  <rguenther@suse.de>
14116         PR lto/48978
14117         * gimple.c (iterative_hash_gimple_type): Revert change in
14118         pointer target and function result and argument hashing.
14120 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
14122         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14123         (*movxf_internal_nointeger): Ditto.
14124         (*movdf_internal_rex64): Ditto.
14125         (*movdf_internal): Ditto.
14126         (*movdf_internal_nointeger): Ditto.
14127         (*movsf_internal): Ditto.
14128         (sincos splitters): Use can_create_pseudo ().
14130 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
14132         * config/i386/i386-opts.h: New.
14133         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14134         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14135         ix86_section_threshold): Remove.
14136         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
14137         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14138         OPT_mbranch_cost_.
14139         (ix86_option_override_internal): Don't decode strings for options
14140         other than -march=, -mtune= and -mfpmath=.  Don't allow for
14141         __attribute__ uses in remaining diagnostics for options with
14142         string arguments.  Don't check for integer arguments being negative.
14143         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14144         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14145         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14146         ix86_branch_cost, ix86_section_threshold): Remove.
14147         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14148         HeaderInclude.
14149         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14150         but not Var.
14151         (masm=): Use Enum and Init.
14152         (asm_dialect): New Enum and EnumValue entries.
14153         (mbranch-cost=): Use UInteger.
14154         (mlarge-data-threshold=): Use UInteger and Init.
14155         (mcmodel=): Use Enum and Init.
14156         (cmodel): New Enum and EnumValue entries.
14157         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14158         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14159         mregparm=): Use UInteger.
14160         (mstringop-strategy=): Use Enum and Init.
14161         (stringop_alg): New Enum and EnumValue entries.
14162         (mtls-dialect=): Use Enum and Init.
14163         (tls_dialect): New Enum and EnumValue entries.
14164         (mabi=): Use Enum and Init.
14165         (calling_abi): New Enum and EnumValue entries.
14166         (mveclibabi=): Use Enum and Init.
14167         (ix86_veclibabi): New Enum and EnumValue entries.
14169 2011-05-13  Nick Clifton  <nickc@redhat.com>
14171         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14172         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14174 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14176         PR middle-end/48984
14177         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
14178         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
14179         (gimple_boolify): Check for cast for boolean_type_node instead for
14180         BOOLEAN_TYPE.
14182 2011-05-13  Richard Guenther  <rguenther@suse.de>
14184         PR tree-optimization/48172
14185         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
14186         multiplying by number of iterations for equal step.
14187         (vect_create_cond_for_alias_checks): Likewise.
14189 2011-05-13  Andreas Schwab  <schwab@redhat.com>
14191         * configure.ac: Use AS_HELP_STRING throughout.
14192         * configure: Regenerate.
14194 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14196         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
14197         (ix86_emit_restore_regs_using_mov): Likewise.
14198         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14200 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
14202         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
14203         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
14204         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
14205         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14206         RTX_OK_FOR_OLO10_P): ...here.
14207         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
14208         SYMBOLIC_CONST.
14210 2011-05-12  Kai Tietz  <ktietz@redhat.com>
14212         * gimplify.c (gimple_boolify): Re-boolify expression
14213         arguments even if expression type is of kind BOOLEAN_TYPE.
14214         (gimplify_boolean_expr): Removed.
14215         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
14216         and XOR. Additional take care that we keep expression's type.
14217         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
14218         of TRUTH_AND|OR|XOR_EXPR.
14220 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
14222         PR tree-optimization/48975
14223         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
14224         on all bbs here and free and clear ifc_bbs at the end.
14226 2011-05-12  Richard Guenther  <rguenther@suse.de>
14228         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
14229         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
14230         until after simple checks.
14231         (gimple_types_compatible_p): Likewise.
14232         (iterative_hash_gimple_type): Always hash pointer targets
14233         and function return and argument types.
14234         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
14235         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
14236         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
14237         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
14238         completely in the simple compare section.
14239         (gimple_register_canonical_type): Query the cache again after
14240         registering.
14242 2011-05-12  Richard Guenther  <rguenther@suse.de>
14244         PR tree-optimization/48172
14245         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
14246         the number of iterations from the segment size calculation.
14247         (vect_create_cond_for_alias_checks): Adjust.
14249 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
14251         PR debug/48967
14252         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
14253         if validate_subreg fails.
14255 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
14257         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
14258         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
14259         early.
14261 2011-05-12  DJ Delorie  <dj@redhat.com>
14263         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
14264         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
14265         created builtin into rx_builtins array.
14266         (rx_builtin_decl): New function.
14267         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
14269 2011-05-12  DJ Delorie  <dj@redhat.com>
14270             Nick Clifton  <nickc@redhat.com>
14272         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
14273         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
14274         (rx_is_legitimate_address): Add pre-decrement and post-increment
14275         addressing in HImode and QImode.  Fix test for out of range
14276         REG+INT addressing.
14277         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
14278         (rx_align_for_label): Test label before extracting its usage count.
14279         (rx_adjust_insn_lengths): Fix selection of insn codes.
14280         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
14282 2011-05-11  Jason Merrill  <jason@redhat.com>
14284         * tree.c (type_hash_canon): Use struct tree_type_non_common.
14286 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
14288         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
14289         reindent the subsequent block.
14291 2011-05-11  Satoru Takabayashi  <satorux@google.com>
14292             Paul Pluzhnikov  <ppluzhnikov@google.com>
14294         * doc/install.texi (Configuration): Document --with-linker-hash-style.
14295         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
14296         * config.in: Add LINKER_HASH_STYLE.
14297         * configure.ac: Add --with-linker-hash-style.
14298         * configure: Regenerate.
14300 2011-05-11  Richard Guenther  <rguenther@suse.de>
14302         PR middle-end/48964
14303         * gimple.c (iterative_hash_canonical_type): Fix typo.
14305 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
14307         * config/i386/i386.c (legitimize_tls_address)
14308         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14309         expanders directly for TARGET_GNU2_TLS.  Determine pic and
14310         __tls_get_addr symbol reference here.  Update call to
14311         gen_tls_global_dynamic_{32,64} for added arguments.
14312         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14313         expanders directly for TARGET_GNU2_TLS.  Determine
14314         __tls_get_addr symbol reference here.  Update call to
14315         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
14316         unique UNSPEC REG_EQUIV to libcall block.
14317         (ix86_tls_get_addr): Declare static.
14318         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
14319         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
14320         Do not determine pic and __tls_get_addr symbol reference here. Do not
14321         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
14322         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
14323         (tls_global_dynamic_64): Add operand 2.  Do not determine
14324         __tls_get_addr symbol reference here.  Do not call
14325         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
14326         (tls_local_dynamic_base64): Ditto for operand 1.
14328 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
14330         * function.c (expand_function_start): Initialize stack_check_probe_note
14331         only if the generic stack checking mechanism is used.
14333 2011-05-11  Richard Guenther  <rguenther@suse.de>
14335         PR tree-optimization/15256
14336         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
14337         (A & B) | C, combine (A op CST1) op CST2.
14338         (tree_ssa_forward_propagate_single_use_vars): Only bother to
14339         visit assigns that have uses.
14341 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
14343         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
14344         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
14345         (unpack_ts_type_common_value_fields): ...this.  Update comment.
14346         (unpack_value_fields): Adjust for renaming.
14347         (lto_input_ts_type_tree_pointers): Split into...
14348         (lto_input_ts_type_common_tree_pointer): ...this and...
14349         (lto_input_ts_type_non_common_tree_pointers): ...this.
14350         (lto_input_tree_pointers): Adjust for above split.
14351         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
14352         (pack_ts_type_common_value_fields): ...this.  Update comment.
14353         (lto_output_ts_type_tree_pointers): Split into...
14354         (lto_output_ts_type_common_tree_pointers): ...this and...
14355         (lto_output_ts_type_non_common_tree_pointers): ...this.
14356         (lto_output_tree_pointers): Adjust for above split.
14357         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
14358         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
14359         * stor-layout.c (vector_type_mode): Adjust location of mode field.
14360         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
14361         Define.
14362         (struct tree_type): Split into...
14363         (struct tree_type_common: ...this and...
14364         (struct tree_type_with_lang_specific): ...this and...
14365         (struct tree_type_non_common): ...this.  Adjust accessor macros
14366         accordingly.
14367         (TYPE_VALUES_RAW): Define.
14368         (union tree_node): Update for above changes.
14369         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
14370         TS_TYPE_NON_COMMON.
14371         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
14372         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
14373         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
14374         * treestructu.def (TS_TYPE): Remove.
14375         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
14376         Define.
14378 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
14380         PR debug/48159
14381         * tree-ssa.c (reset_debug_uses): New function.
14382         * tree-flow.h (reset_debug_uses): New prototype.
14383         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
14384         * tree-loop-distribution.c (generate_loops_for_partition): Call
14385         reset_debug_uses on the stmts that will be removed.  Keep around
14386         all debug stmts, don't count them as bits in partition bitmap.
14387         (generate_builtin): Don't count debug stmts or labels as bits in
14388         partition bitmap.
14390 2011-05-11  Richard Guenther  <rguenther@suse.de>
14392         * gimple.c (gimple_type_hash_1): Merge with ...
14393         (gimple_type_hash): ... this.
14394         (gtc_visit): Remove mode parameter and simplify accordingly.
14395         (gimple_types_compatible_p_1): Likewise.
14396         (gimple_types_compatible_p): Likewise.
14397         (iterative_hash_gimple_type): Likewise.
14398         (visit): Likewise.
14399         (gimple_type_eq): Adjust.
14401 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14403         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14404         enters the branch create an anti edge in the opposite direction
14405         to prevent the creation of reg-moves.
14406         * modulo-sched.c: Adjust comment to reflect the fact we are
14407         scheduling closing branch.
14408         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14409         (stage_count): New field in struct partial_schedule.
14410         (calculate_stage_count): New function.
14411         (normalize_sched_times): Rename to reset_sched_times and handle
14412         incrementing the sched time of the nodes by a constant value
14413         passed as parameter.
14414         (duplicate_insns_of_cycles): Skip closing branch.
14415         (sms_schedule_by_order): Schedule closing branch.
14416         (ps_insn_find_column): Handle closing branch.
14417         (sms_schedule): Call reset_sched_times and adjust the code to
14418         support scheduling of the closing branch.
14419         (ps_insert_empty_row): Update calls to normalize_sched_times
14420         and rotate_partial_schedule functions.
14422 2011-05-11  Richard Guenther  <rguenther@suse.de>
14424         PR middle-end/48953
14425         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14427 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
14429         * opts.c (finish_options): Move warning settings from process_options.
14430         * toplev.c (process_options): Move warning settings to finish_options.
14432 2011-05-11  Richard Guenther  <rguenther@suse.de>
14434         PR tree-optimization/18041
14435         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14436         (simplify_bitwise_binary): ... this.  Handle operand conversions
14437         by applying them to the result instead.
14438         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
14440 2011-05-11  Richard Guenther  <rguenther@suse.de>
14442         * gimple.c (gimple_canonical_types_compatible_p): Split out
14443         from gimple_types_compatible_p and friends.  Do not recurse
14444         to pointed-to types.
14445         (gimple_canonical_type_eq): Use it.
14446         (iterative_hash_canonical_type): Split out from
14447         iterative_hash_gimple_type and friends.  Do not recurse
14448         to pointed-to types.
14449         (gimple_canonical_type_hash): Use it, allocate the hash here.
14451 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14453         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14454         recognizing doloop.
14456 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14458         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14459         instead of PREV_INSN.
14461 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14463         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14464         * loop-doloop.c (doloop_condition_get): Likewise.
14465         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14466         (doloop_end): New.
14467         * config/arm/arm.md (*addsi3_compare0): Remove "*".
14469 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
14471         * tree.def (CASE_LABEL_EXPR): Add an operand.
14472         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14474 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14476         * c-decl.c (c_override_global_bindings_to_false): Remove.
14477         (global_bindings_p): Don't check
14478         c_override_global_bindings_to_false.
14479         * c-tree.h (c_override_global_bindings_to_false): Remove.
14480         * c-typeck.c (composite_type): Don't set
14481         c_override_global_bindings_to_false.
14483 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
14485         PR target/48857, 48495
14486         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14487         (VSX_MODE): Ditto.
14488         (VSX_MOVE_MODE): Ditto.
14489         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14490         VSX vector types.  Add V2DImode.
14491         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14492         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14493         (MODES_TIEABLE_P): Ditto.
14495         * config/rs6000/rs6000.c (rs6000_emit_move): Use
14496         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14497         VSX_VECTOR_MODE.
14498         (init_cumulative_args): Ditto.
14499         (rs6000_function_arg_boundary): Ditto.
14500         (rs6000_function_arg_advance_1): Ditto.
14501         (rs6000_function_arg): Ditto.
14502         (rs6000_function_ok_for_sibcall): Ditto.
14503         (emit_frame_save): Ditto.
14504         (rs6000_function_value): Ditto.
14505         (rs6000_libcall_value): Ditto.
14507 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14509         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14510         i386/darwin-lib.h to $libgcc_tm_file.
14511         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14513 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14515         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14517 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14519         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14520         * config/rs6000/rs6000-tables.opt: New file (generated).
14521         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14522         rs6000/rs6000-tables.opt to extra_options.
14523         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14524         * config/rs6000/rs6000.c (rs6000_select): Remove.
14525         (processor_target_table): Move contents to rs6000-cpus.def.
14526         (darwin_rs6000_override_options): Check
14527         global_options_set.x_rs6000_cpu_index instead of
14528         rs6000_select[1].string.
14529         (rs6000_option_override_internal): Likewise.
14530         (rs6000_handle_option): Don't assert that global structures are in
14531         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
14532         (rs6000_default_cpu): New variable.
14533         (rs6000_file_start): Set it instead of local default_cpu.  Check
14534         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14535         global_options_set.x_rs6000_tune_index instead of rs6000_select.
14536         (rs6000_darwin_file_start): Check rs6000_default_cpu and
14537         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14538         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14539         rs6000_select): Remove.
14540         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14541         Remove.
14542         (mcpu=, mtune=): Use Var, Init, Enum and Save.
14543         * config/rs6000/t-rs6000
14544         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14545         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14546         global_options_set.x_rs6000_cpu_index instead of
14547         rs6000_select[1].string.
14548         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14549         global_options_set.x_rs6000_cpu_index instead of
14550         rs6000_select[1].string.
14552 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14554         * config.gcc (libgcc_tm_file): Define instead of including files
14555         from ../../libgcc/config/ in tm_file.
14556         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14557         * configure: Regenerate.
14558         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14559         libgcc_tm.h, cs-libgcc_tm.h): New.
14560         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14561         (clean): Remove libgcc_tm.h.
14562         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14563         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14564         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14566 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
14568         PR target/48896
14569         * config/avr/avr.c (avr_ret_register): Return unsigned int
14570         instead of int.
14571         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14572         it to avr_libcall_value.
14573         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14574         expand_expr.
14575         (avr_expand_binop_builtin): Ditto.
14576         (avr_expand_unop_builtin): Ditto.
14578 2011-05-10  DJ Delorie  <dj@redhat.com>
14580         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14581         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14582         * config/rx/rx.c (rx_align_for_label): Add label and
14583         uses_threshold parameters.  Do not align when the label is not
14584         used enough.
14585         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14587 2011-05-10  Richard Guenther  <rguenther@suse.de>
14589         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14590         a series of conversions and apply foldings similar to what
14591         fold-const does.
14592         (tree_ssa_forward_propagate_single_use_vars): Call it.
14594 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
14596         PR tree-optimization/48611
14597         PR tree-optimization/48794
14598         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14599         referenced from RESX or EH_DISPATCH arguments.
14601         PR debug/48928
14602         * dfp.c (decimal_to_decnumber): Handle conversion from
14603         dconst{1,2,m1,half}.
14605 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14607         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14608         for !flag_prefer_avx128.
14609         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14611 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14613         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14614         (fold_ternary_loc): Use expr_location_or.
14616 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14618         PR debug/48853
14619         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14620         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14621         Pmode and mem_mode is not VOIDmode.
14623 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
14625         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
14626         TYPE_QUAL_RESTRICT): Convert to enum.
14628 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14630         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
14631         (const_pow2_1_to_8_operand): Ditto.
14632         (const_pow2_1_to_128_operand): Ditto.
14633         (const_pow2_1_to_32768_operand): Ditto.
14634         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
14635         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
14636         in insn constraint to check integer value of operand 3.
14637         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
14639         (PINSR_MODE): New mode iterator.
14640         (sse2p4_1): New mode attribute.
14641         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
14642         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
14643         iterator.  Use const_int_operand instead of
14644         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
14645         exact_log2 in insn constraint to check integer value of operand 3.
14647 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14649         * config/i386/sse.md (blendbits): Remove mode attribute.
14650         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14651         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14652         Check integer value of operand 3 in insn constraint.
14654 2011-05-09  Richard Guenther  <rguenther@suse.de>
14656         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
14657         for diagnostics.
14658         (lto_symtab_merge): Likewise.  Do not register types here.
14659         (lto_symtab_merge_decls_2): Likewise.
14660         (lto_symtab_merge_decls_1): Likewise.
14661         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
14662         * gimple.c (enum gtc_mode): Declare.
14663         (gimple_types_compatible_p): Make static.
14665 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14667         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
14668         temporary register to match Pmode.
14670 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14672         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
14673         and *vec_concatv4si_1_avx.
14675 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14677         PR rtl-optimization/48927
14678         * ira-conflicts.c (commutative_constraint_p): Use
14679         recog_data.alternative_enabled_p to disable alternatives where
14680         "enabled" attribute is false.
14681         (get_dup_num): Ditto.
14682         * ira-lives.c (single_reg_class): Ditto.
14683         (ira_implicitly_set_insn_hard_regs): Ditto.
14685 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14687         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14688         (dataflow_set_preserve_mem_locs): Likewise.
14690 2011-05-09  Philipp Thomas  <pth@suse.de>
14692         * config/mep/mep.c (mep_validate_vliw): Syntax description
14693         should not be translated.
14695 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
14697         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14698         * config/mips/mips-tables.opt: New file (generated).
14699         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14700         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14701         MIPS_ARCH_OPTION_NATIVE): Define.
14702         * config/mips/mips.c (mips_cpu_info_table): Move contents to
14703         mips-cpus.def.
14704         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14705         mips_parse_cpu): Remove.
14706         (mips_cpu_info_from_opt, mips_default_arch): New.
14707         (mips_handle_option): Don't assert that global structures are in
14708         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14709         (mips_option_override): Use new variables and functions to set
14710         state of these options.  Use strcmp to check for individual CPU names.
14711         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14712         definition.
14713         * config/mips/mips.opt (march=): Use ToLower and Enum.
14714         (mips): Use ToLower, Enum and Var.
14715         (mtune=): Use ToLower and Enum.
14716         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14718 2011-05-08  Jan Hubicka  <jh@suse.cz>
14720         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14721         Arrange type pairs to be UID ordered.
14722         (gimple_lookup_type_leader): Make inline.
14724 2011-05-09  Nick Clifton  <nickc@redhat.com>
14726         PR target/48899
14727         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14728         PROCESSOR_DEFAULT.
14730         PR target/48897
14731         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14732         variable 's'.
14734 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
14736         * combine.c (simplify_comparison): Abstract out parts into...
14737         (simplify_compare_const): ... new function.
14738         (try_combine): Generalize parallel arithmetic/compare combining
14739         to call simplify_compare_const() and CANONICALIZE_COMPARE().
14741 2011-05-08  Jan Hubicka  <jh@suse.cz>
14743         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14744         (cgraph_create_virtual_clone): Call hooks once virtual clone
14745         is finished.
14746         * cgraph.h (cgraph_clone_node): Update prototype.
14747         * ipa-cp.c (ipcp_estimate_growth): Use
14748         estimate_ipcp_clone_size_and_time.
14749         * ipa-inline-transform.c (clone_inlined_nodes): Update.
14750         * lto-cgraph.c (input_node): Update.
14751         * ipa-inline.c (recursive_inlining): Update.
14752         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14753         (evaluate_conditions_for_known_args): Break out from ...
14754         (evaluate_conditions_for_edge): ... here.
14755         (evaluate_conditions_for_ipcp_clone): New function.
14756         (inline_node_duplication_hook): Update clone summary based
14757         on parameter map.
14758         (estimate_callee_size_and_time): Rename to ...
14759         (estimate_node_size_and_time): take NODE instead of EDGE;
14760         take POSSIBLE_TRUTHS as argument.
14761         (estimate_callee_size_and_time): Update.
14762         (estimate_ipcp_clone_size_and_time): New function.
14763         (do_estimate_edge_time): Update.
14765 2011-05-08  Richard Guenther  <rguenther@suse.de>
14767         PR middle-end/48908
14768         PR middle-end/48905
14769         * expmed.c (expand_shift_1): Compute adjusted constant shift
14770         amount manually.
14772 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14774         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14776 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14778         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14780 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
14782         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14784 2011-05-07  Jan Hubicka  <jh@suse.cz>
14786         * ipa-inline-transform.c (inline_call): Account when program size
14787         decreases.
14788         * ipa-inline.c (relative_time_benefit): New function.
14789         (edge_badness): Reorganize to be power 2 based; fix thinko when
14790         computing badness for negative growth; update comments to match
14791         reality; better dumps.
14793 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14795         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14796         type to bool and adjust comment.
14797         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14798         (fold_mathfn_compare): Remove calls to global_bindings_p.
14799         (fold_inf_compare): Likewise.
14800         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14801         * c-tree.h (global_bindings_p): Adjust prototype.
14802         * c-decl.c (global_bindings_p): Return bool and simplify.
14804 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
14806         PR tree-optimization/48837
14807         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14808         when accumulator transformation is performed.
14810 2011-05-06  Jan Hubicka  <jh@suse.cz>
14812         * i386.h (ix86_tune_indices): Add
14813         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14814         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14815         * i386.c (initial_ix86_tune_features): Add
14816         X86_SOFTARE_PREFETCHING_BENEFICIAL.
14817         (software_prefetching_beneficial_p): Remove predicate.
14818         (ix86_option_override_internal): Use new macro.
14820 2011-05-06  Jan Hubicka  <jh@suse.cz>
14822         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14824 2011-05-06  Jan Hubicka  <jh@suse.cz>
14826         * cgraph.c (cgraph_add_thunk): Create real function node instead
14827         of alias node; finalize it and mark needed/reachale; arrange visibility
14828         to be right and add it into the corresponding same comdat group list.
14829         (dump_cgraph_node): Dump thunks.
14830         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14831         cgraph_function_with_gimple_body_p,
14832         cgraph_first_function_with_gimple_body,
14833         cgraph_next_function_with_gimple_body): New functions.
14834         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14835         New macros.
14836         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14837         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14838         * cgraphunit.c (cgraph_finalize_function): Only look into possible
14839         devirtualization when optimizing.
14840         (verify_cgraph_node): Verify thunks.
14841         (cgraph_analyze_function): Analyze thunks.
14842         (cgraph_mark_functions_to_output): Output thunks only in combination
14843         with function they are assigned to.
14844         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14845         alias into normal node.
14846         (assemble_thunks): New functoin.
14847         (cgraph_expand_function): Use it.
14848         * lto-cgraph.c (lto_output_node): Stream thunks.
14849         (input_overwrite_node): Stream in thunks.
14850         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14851         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14852         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14853         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14854         (inline_analyze_function): Do not care about thunk jump functions.
14855         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14856         * ipa-prop.c (ipa_prop_write_jump_functions): Use
14857         cgraph_function_with_gimple_body_p.
14858         * passes.c (do_per_function_toporder): Use
14859         cgraph_function_with_gimple_body_p.
14860         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14861         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14862         (function_called_by_processed_nodes_p): Likewise.
14864 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14866         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14867         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14868         entries.
14869         (mabi=): Replace with separate entries for mabi=altivec,
14870         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14871         mabi=ieeelongdouble and mabi=ibmlongdouble.
14872         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14873         check for -mabi=spe without SPE ABI support here.
14874         (rs6000_handle_option): Replace OPT_mabi_ handling with
14875         OPT_mabi_altivec and OPT_mabi_spe handling.
14877 2011-05-06  Cary Coutant  <ccoutant@google.com>
14879         * dwarf2out.c (contains_subprogram_definition): New function.
14880         (should_move_die_to_comdat): Call it.
14882 2011-05-06  Jeff Law  <law@redhat.com>
14884         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
14885         remove_ctrl_stmt_and_useless_edges.
14886         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
14887         (fixup_template_block, thread_single_edge): Likewise.
14888         (mark_threaded_blocks): Use THREAD_TARGET.
14890 2011-05-06  Alan Modra  <amodra@gmail.com>
14892         PR target/48900
14893         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14894         const0_rtx as the arg to the dummy __tls_get_addr libcall.
14896 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14898         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
14899         constraint modifier to "r".
14901 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14903         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
14904         fall through for OPT_mcmodel_.
14906 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14908         * config/s390/s390.c (s390_asm_trampoline_template): Comment
14909         instruction sizes.
14910         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
14912 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14914         PR target/47930
14915         * config/arm/arm.opt (marm): Document it.
14916         (mthumb): Reject negative variant.
14918 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14920         PR target/48898
14921         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14922         Fix typo in "ccvt" variable name.
14924 2011-05-06  Tristan Gingold  <gingold@adacore.com>
14926         PR target/48895
14927         * config/vms/vms-ar.c (main): Remove cwd variable.
14929 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
14931         PR debug/48902
14932         * var-tracking.c (prepare_call_arguments): Move else before #endif.
14934 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
14936         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14937         * gimplify.c (gimplify_switch_expr): Likewise.
14938         * omp-low.c (expand_omp_sections): Likewise.
14939         * tree-eh.c (lower_try_finally_switch): Likewise.
14940         (lower_eh_dispatch): Likewise.
14941         * tree.h (build_case_label): Declare.
14942         * tree.c (build_case_label): Define.
14944 2011-05-05  Jason Merrill  <jason@redhat.com>
14946         PR c++/40975
14947         * tree-inline.c (copy_tree_r): Use copy_statement_list.
14948         (copy_statement_list): Don't recurse.
14949         * stor-layout.c (copy_self_referential_tree_r): Don't allow
14950         STATEMENT_LIST.
14952 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14954         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
14955         through from -mfpu= handling.
14956         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
14958 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
14960         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
14961         POST_MODIFY.
14963 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
14965         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
14966         for 11.31.
14967         (hppa[12]*-*-hpux11*): Ditto.
14968         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
14969         * config/ia64/hpux-unix2003.h: New.
14970         * config/pa/pa-hpux1131.opt: New.
14971         * config/pa/pa-hpux1131.h: New.
14972         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
14973         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
14974         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14976 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14978         PR debug/48853
14979         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
14980         instead of mode as 3rd argument to recursive call.
14981         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
14982         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
14983         VOIDmode.
14984         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
14985         don't give up if mode is Pmode and mem_mode is not VOIDmode.
14986         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
14987         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
14989 2011-05-05  Julian Brown  <julian@codesourcery.com>
14991         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
14992         parenthesis in D-register case.
14994 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14996         * opt-functions.awk (var_type_struct): Handle Enum options.
14997         * optc-gen.awk: Don't check range of variables of character type.
14998         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
14999         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
15000         rs6000_sdata_name, rs6000_explicit_options): Remove.
15001         (rs6000_option_override_internal): Check for -malign-power here.
15002         Use global_options_set instead of rs6000_explicit_options.
15003         (rs6000_parse_fpu_option): Remove.
15004         (rs6000_handle_option): Access variables via opts and opts_set
15005         pointers.  Use error_at and warning_at.  Add fall-through
15006         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
15007         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
15008         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
15009         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
15010         here.  Don't use rs6000_parse_fpu_option.
15011         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
15012         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
15013         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
15014         (mrecip=): Use Var.
15015         (mspe): Use Var and Save.
15016         (mtraceback=): Use Enum and Var.
15017         (rs6000_traceback_type): New Enum and EnumValue entries.
15018         (mfloat-gprs=): Use Enum, Var and Save.
15019         (rs6000_float_gprs): New Enum and EnumValue entries.
15020         (mlong-double-): use Var and Save.
15021         (msched-costly-dep=, minsert-sched-nops=): Use Var.
15022         (malign-): Use Enum and Var.
15023         (rs6000_alignment_flags): New Enum and EnumValue entries.
15024         (mfpu=): Use Enum.
15025         (fpu_type_t): New Enum and EnumValue entries.
15026         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15027         global_options_set instead of rs6000_explicit_options.
15028         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15029         global_options_set instead of rs6000_explicit_options.
15030         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15031         global_options_set instead of rs6000_explicit_options.
15032         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15033         global_options_set instead of rs6000_explicit_options.
15034         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
15035         global_options_set instead of rs6000_explicit_options.
15036         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15037         global_options_set instead of rs6000_explicit_options.
15038         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
15039         definition.
15040         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15041         global_options_set instead of rs6000_explicit_options.
15042         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
15043         (rs6000_cmodel): New Enum and EnumValue entries.
15044         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15045         global_options_set instead of rs6000_explicit_options.
15046         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
15047         (mtls-size=): Use Enum and Var.
15048         (rs6000_tls_size): New Enum and EnumValue entries.
15050 2011-05-05  Michael Matz  <matz@suse.de>
15052         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
15053         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
15054         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
15055         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
15056         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
15057         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
15058         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
15059         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
15060         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
15061         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
15062         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
15063         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
15064         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
15065         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
15066         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
15067         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
15069 2011-05-05  Richard Guenther  <rguenther@suse.de>
15071         * expmed.c (expand_variable_shift): Rename to ...
15072         (expand_shift_1): ... this.  Take an expanded shift amount.
15073         For rotates recurse directly not building trees for the shift amount.
15074         (expand_variable_shift): Wrap around expand_shift_1.
15075         (expand_shift): Adjust.
15077 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
15079         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
15081 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15083         * tree.h (get_pending_sizes): Remove prototype.
15084         (put_pending_size): Likewise.
15085         (put_pending_sizes): Likewise.
15086         * stor-layout.c (pending_sizes): Delete.
15087         (get_pending_sizes): Likewise.
15088         (put_pending_size): Likewise.
15089         (put_pending_sizes): Likewise.
15090         (variable_size): Do not call put_pending_size and tidy up.
15091         * function.h (struct function): Remove dont_save_pending_sizes_p.
15092         * lto-streamer-in.c (input_function): Do not stream it.
15093         * lto-streamer-out.c (output_function): Likewise.
15094         * tree-inline.c (initialize_cfun): Do not copy it.
15095         * c-decl.c (store_parm_decls): Do not set it.
15096         * omp-low.c (create_task_copyfn): Likewise.
15097         * tree-optimize.c (tree_rest_of_compilation): Likewise.
15099 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
15101         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15102         conditions.
15103         (*movdf_internal): Ditto.
15104         (*movdf_internal_nointeger): Ditto.
15105         (*movsf_internal): Ditto.
15107 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
15109         * c-decl.c (finish_decl): Don't call get_pending_sizes.
15110         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
15111         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
15112         (c_variable_size): Remove.
15113         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
15114         call put_pending_sizes.
15115         (get_parm_info): Add parameter expr.  Use it to set
15116         arg_info->pending_sizes.
15117         (store_parm_decls): Use arg_info->pending_sizes instead or calling
15118         get_pending_sizes.
15119         * c-parser.c (c_parser_parms_declarator): Update call to
15120         c_parser_parms_list_declarator.
15121         (c_parser_parms_list_declarator): Take parameter expr.  Update
15122         call to push_parm_decl.  Update recursive call.  Don't call
15123         get_pending_sizes.  Update calls to get_parm_info.
15124         (c_parser_objc_method_definition): Update calls to
15125         c_parser_objc_method_decl and objc_start_method_definition.
15126         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15127         (c_parser_objc_method_decl): Add parameter expr.  Update call to
15128         grokparm.
15129         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15130         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15131         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15133 2011-05-05  Michael Hope  <michael.hope@linaro.org>
15135         PR pch/45979
15136         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15137         __ARM_EABI__ hosts.
15139 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15141         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15142         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15143         (spu_output_mi_thunk): New function.
15145 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15147         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15148         targetm.asm_out.print_operand.
15149         * config/sol2.c: Include target.h.
15151 2011-05-04  Jan Hubicka  <jh@suse.cz>
15153         * ipa-inline.c (reset_edge_caches): New function.
15154         (update_caller_keys): Add check_inlinablity_for; do not
15155         reset edge caches; remove now unnecesary loop.
15156         (update_callee_keys): Add comments; reset node_growth_cache of callee.
15157         (update_all_callee_keys): Likewise.
15158         (inline_small_functions): Sanity check cache; update code
15159         recomputing it.
15161 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
15163         PR rtl-optimization/47612
15164         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15165         as the last insn of the sequence to be moved.
15167 2011-05-04  Tobias Burnus  <burnus@net-b.de>
15169         PR fortran/48864
15170         * doc/invoke.texi (Ofast): Document that it
15171         enables Fortran's -fno-protect-parens.
15173 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
15175         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
15177 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15179         * stor-layout.c (variable_size): Do not issue errors.
15181 2011-05-04  Richard Guenther  <rguenther@suse.de>
15183         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
15184         for array-ref indices.
15185         (tree_coverage_counter_addr): Likewise.
15186         (build_fn_info_type): Use size_int for index types.
15187         (build_gcov_info): Likewise.
15189 2011-05-04  Richard Guenther  <rguenther@suse.de>
15191         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
15192         to build_int_cst.
15193         * c-typeck.c (really_start_incremental_init): Use bitsize_int
15194         for constructor indices.
15195         (push_init_level): Likewise.
15197 2011-05-04  Richard Guenther  <rguenther@suse.de>
15199         * explow.c (promote_mode): Move variable declarations before code.
15201 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
15203         * tree.h (build_function_type_array): Declare.
15204         (build_varargs_function_type_array): Declare.
15205         (build_function_type_vec, build_varargs_function_type_vec): Define.
15206         * tree.c (build_function_type_array_1): New function.
15207         (build_function_type_array): New function.
15208         (build_varargs_function_type_array): New function.
15210 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
15212         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
15213         before setting STMT_VINFO_TYPE.
15215 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15217         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
15218         instead of spu_pass_by_reference.
15220 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15222         * calls.c (emit_library_call_value_1): Invoke
15223         promote_function_mode hook on libcall arguments.
15224         * explow.c (promote_function_mode, promote_mode): Handle TYPE
15225         argument being NULL.
15226         * targhooks.c (default_promote_function_mode): Lisewise.
15227         * config/s390/s390.c (s390_promote_function_mode): Likewise.
15228         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
15230         * doc/tm.texi: Document that TYPE argument might be NULL.
15232 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15234         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
15236 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15238         From Bernd Schmidt
15239         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
15241 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15243         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
15244         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
15245         Move ...
15246         * mips-tfile.c: ... here.
15247         Don't include coretypes.h, tm.h, filenames.h.
15248         (saber_stop): Remove definition and all calls.
15249         [__SABER__]: Remove.
15250         (__LINE__): Remove default.
15251         (Size_t, Ptrdiff_t): Remove definitions.
15252         Replace by size_t, ptrdiff_t.
15253         [!MIPS_DEBUGGING_INFO]: Remove.
15254         (SHASH_SIZE, THASH_SIZE): Remove defaults.
15255         (progname): Add const.
15256         (STATIC): Remove.
15257         Replace all uses by static.
15258         (ALIGN_SYMTABLE_OFFSET): Remove default.
15259         * mips-tdump.c: Don't include coretypes.h, tm.h.
15260         Remove !MIPS_IS_STAB guard.
15261         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
15262         $(TM_H), filenames.h dependencies.
15263         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
15265 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15267         From Jie Zhang
15268         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
15269         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
15271 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15273         From Bernd Schmidt
15274         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
15275         account and save/restore RETS.
15276         (PROFILE_BEFORE_PROLOGUE): Define.
15277         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
15278         the push insn to use predecrement.
15280 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15282         From Jie Zhang
15283         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
15285 2011-05-04  Nick Clifton  <nickc@redhat.com>
15287         * config/mn10300/mn10300.c: Include cfgloop.h.
15288         (DUMP): New macro.
15289         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
15290         Lcc or a FLcc insn into the instruction stream.
15291         (mn10300_block_contains_call): New function.  Returns true if the
15292         given basic block contains a CALL insn.
15293         (mn10300_loop_contains_call_insn): New function.  Returns true if
15294         the given loop contains a CALL insn.
15295         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
15296         to use the SETLB and Lcc or FLcc insns.
15297         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
15298         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
15299         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
15300         disable the SETLB optimization.
15301         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
15302         __SETLB__ or __NO_SETLB__.
15303         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
15304         (movsf_internal): Handle MDR register.
15305         (cmpsi): Make visible.
15306         (setlb): New pattern.
15307         (Lcc): New pattern.
15308         (FLcc): New pattern.
15310 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
15312         PR target/48860
15313         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
15314         for reg<->xmm moves.
15315         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
15316         (vec_concatv2di_rex64_sse): Ditto.
15317         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
15318         (*vec_extractv2di_1_rex64): Ditto.
15320         Revert:
15321         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15323         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15324         reg<->xmm moves.
15325         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
15327 2011-05-04  Richard Guenther  <rguenther@suse.de>
15329         * tree.h (int_const_binop): Remove notrunc argument.
15330         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
15331         create integer constants that are properly truncated.
15332         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
15333         (const_binop): Remove zero notrunc argument to int_const_binop.
15334         (size_binop_loc): Likewise.
15335         (fold_div_compare): Likewise.
15336         (maybe_canonicalize_comparison_1): Likewise.
15337         (fold_comparison): Likewise.
15338         (fold_binary_loc): Likewise.
15339         (multiple_of_p): Likewise.
15340         * expr.c (store_constructor): Likewise.
15341         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15342         (maybe_fold_stmt_addition): Likewise.
15343         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
15344         * stor-layout.c (layout_type): Likewise.
15345         * tree-data-ref.c (tree_fold_divides_p): Likewise.
15346         * tree-sra.c (build_ref_for_offset): Likewise.
15347         (build_user_friendly_ref_for_offset): Likewise.
15348         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
15349         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
15350         * tree-ssa-loop-niter.c (inverse): Likewise.
15351         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15352         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
15353         * tree-switch-conversion.c (check_range): Likewise.
15354         (build_constructors): Likewise.
15355         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
15356         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
15357         (extract_range_from_assert): Likewise.
15358         (vrp_int_const_binop): Likewise.
15359         (extract_range_from_binary_expr): Likewise.
15360         (extract_range_from_unary_expr): Likewise.
15361         (check_array_ref): Likewise.
15362         (find_case_label_range): Likewise.
15363         (simplify_div_or_mod_using_ranges): Likewise.
15364         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
15365         comparing case labels for merging.
15367 2011-05-03  Mark Wielaard  <mjw@redhat.com>
15369         * dwarf2out.c (debug_str_hash_forced): Removed.
15370         (gen_label_for_indirect_string): Removed.
15371         (get_debug_string_label): Removed.
15372         (AT_string_form): Generate label directly.
15373         (output_indirect_string): Test indirect_string_node for
15374         DW_FORM_strp instead of checking label and refcount.
15375         (prune_indirect_string): Removed.
15376         (prune_unused_types): Don't check debug_str_hash_forced or
15377         call prune_indirect_string.
15379 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
15381         PR other/48093
15382         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
15384 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
15386         PR debug/47994
15387         PR debug/47919
15388         * combine.c (try_combine): Skip debug insns at m_split tests.
15390 2011-04-26  Mark Wielaard  <mjw@redhat.com>
15392         PR42288
15393         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
15394         when info_section_emitted.
15396 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
15398         * config/mips/mips-opts.h: New.
15399         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
15400         to mips-opts.h.
15401         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
15402         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
15403         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
15404         via opts pointer.
15405         * config/mips/mips.h (enum mips_code_readable_setting): Move to
15406         mips-opts.h.
15407         (mips_abi, mips_code_readable): Don't declare.
15408         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15409         (mabi=): Use Enum and Var.
15410         (mips_abi): New Enum and EnumValue entries.
15411         (mcode-readable=): Use Enum and Var.
15412         (mips_code_readable_setting): New Enum and EnumValue entries.
15413         (mr10k-cache-barrier=): Use Enum and Var.
15414         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15416 2011-05-03  Jan Hubicka  <jh@suse.cz>
15418         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15419         replace hash by pointer map.
15420         (cgraph_node_set_element_def, cgraph_node_set_element,
15421         const_cgraph_node_set_element, varpool_node_set_element_def,
15422         varpool_node_set_element, const_varpool_node_set_element): Remove.
15423         (free_cgraph_node_set, free_varpool_node_set): New function.
15424         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15425         * tree-emutls.c: Free varpool node set.
15426         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15427         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15428         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15429         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15430         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15431         Move here from ipa.c; implement using pointer_map
15432         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15433         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15434         debug_cgraph_node_set, varpool_node_set_new,
15435         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15436         dump_varpool_node_set, debug_varpool_node_set):
15437         Move to ipa-uitls.c.
15438         * passes.c (ipa_write_summaries): Update.
15440 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15442         From Mike Frysinger:
15443         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15444         bf542/bf544/bf547/bf548/bf549.
15446 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15448         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15450 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15452         From Bernd Schmidt:
15453         * config/bfin/bfin.md (MOVCC): New mode_macro.
15454         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15455         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
15456         comments from generated assembly.
15458 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15460         From Bernd Schmidt
15461         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15462         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15463         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15464         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15465         * config/bfin/lib1funcs.asm (___muldi3): New function.
15467 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15469         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15470         build_function_type_list instead of build_function_type.
15471         Rearrange initialization of `args' to do so.
15473 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15475         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15476         instead of build_function_type.
15478 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15480         * config/rs6000/rs6000.c (spe_init_builtins): Call
15481         build_function_type_list instead of build_function_type.
15482         (paired_init_builtins, altivec_init_builtins): Likewise.
15483         (builtin_function_type): Likewise.
15485 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15487         * config/sh/sh.c (sh_media_init_builtins): Call
15488         build_function_type_list instead of build_function_type.
15490 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15492         * config/sparc/sparc.c (sparc_file_end): Call
15493         build_function_type_list instead of build_function_type.
15495 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15497         * config/alpha/alpha.c (alpha_init_builtins): Call
15498         build_function_type_list instead of build_function_type.
15500 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15502         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
15503         build_function_type_list instead of build_function_type.
15505 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15507         * config/iq2000/i2000.c (iq2000_init_builtins): Call
15508         build_function_type_list instead of build_function_type.
15509         Delete `endlink' variable.
15511 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15513         * config/avr/avr.c (avr_init_builtins): Call
15514         build_function_type_list instead of build_function_type.
15516 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15518         * config/picochip/picochip.c (picochip_init_builtins): Call
15519         build_function_type_list instead of build_function_type.
15520         Delete `endlink' variable.
15522 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15524         * config/bfin/bfin.c (bfin_init_builtins): Call
15525         build_function_type_list instead of build_function_type.
15527 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15529         From Bernd Schmidt
15530         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15531         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
15533 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15535         From Jie Zhang:
15536         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15537         libbffastfp overrides libgcc when -mfast-fp.
15539 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15541         Originally from Bernd Schmidt
15542         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15543         * config/bfin/bfin.c (override_options): Test it and error if
15544         TARGET_FDPIC.
15546 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15548         Originally From Bernd Schmidt
15549         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15550         FD-PIC.
15552 2011-05-03  Jeff Law  <law@redhat.com>
15554         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15555         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15556         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15557         than accessing AUX field directly.  Free the AUX field before
15558         clearing it.
15559         (thread_block, thread_through_loop_header): Likewise.
15560         (thread_single_edge, mark_threaded_blocks): Likewise.
15561         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
15562         (register_jump_thread): Do not attempt to thread to a NULL edge.
15564 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15566         * function.c (init_function_start): Call decide_function_section.
15567         * varasm.c (decide_function_section): New function.
15568         (assemble_start_function): When not using
15569         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15570         or first_function_block_is_cold.
15571         * rtl.h (decide_function_section): Declare.
15573 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15574             Jakub Jelinek  <jakub@redhat.com>
15576         PR target/48774
15577         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15578         only succeed if req_mode is the same as set_mode.
15580 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15582         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15583         * genemit.c (gen_exp): Handle RETURN.
15584         * emit-rtl.c (verify_rtx_sharing): Likewise.
15585         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15586         * rtl.c (copy_rtx): RETURN is shared.
15587         * rtl.h (enum global_rtl_index): Add GR_RETURN.
15588         (ret_rtx): New.
15589         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15590         * config/s390/s390.c (s390_emit_epilogue): Likewise.
15591         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15592         * config/cris/cris.c (cris_expand_return): Likewise.
15593         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15594         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15595         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15596         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15597         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15598         Likewise.
15599         * config/v850/v850.c (expand_epilogue): Likewise.
15600         * config/bfin/bfin.c (bfin_expand_call): Likewise.
15601         * config/arm/arm.md (epilogue): Likewise.
15602         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15603         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15604         variable to ret_reg.
15606 2011-05-03  Richard Guenther  <rguenther@suse.de>
15608         PR lto/48846
15609         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15610         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15611         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15613 2011-05-03  Richard Guenther  <rguenther@suse.de>
15615         * c-decl.c (grokdeclarator): Instead of looking at
15616         TREE_OVERFLOW check if the constant fits in the index type.
15618 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15620         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15621         (vec_store_lanes<mode><mode>): Likewise.
15623 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15625         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
15626         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
15627         convert_optab_index values.
15628         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
15629         * genopinit.c (optabs): Initialize the new optabs.
15630         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
15631         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
15632         (expand_STORE_LANES): New functions.
15633         * tree.h (build_array_type_nelts): Declare.
15634         * tree.c (build_array_type_nelts): New function.
15635         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
15636         (vect_model_load_cost): Likewise.
15637         (vect_store_lanes_supported, vect_load_lanes_supported)
15638         (vect_record_strided_load_vectors): Declare.
15639         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
15640         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
15641         (vect_transform_strided_load): Split out statement recording into...
15642         (vect_record_strided_load_vectors): ...this new function.
15643         * tree-vect-stmts.c (create_vector_array, read_vector_array)
15644         (write_vector_array, create_array_ref): New functions.
15645         (vect_model_store_cost): Add store_lanes_p argument.
15646         (vect_model_load_cost): Add load_lanes_p argument.
15647         (vectorizable_store): Try to use store-lanes functions for
15648         interleaved stores.
15649         (vectorizable_load): Likewise load-lanes and loads.
15650         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
15651         to vect_model_store_cost.
15652         (vect_build_slp_tree): Likewise vect_model_load_cost.
15654 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15656         * hooks.h (hook_bool_mode_uhwi_false): Declare.
15657         * hooks.c (hook_bool_mode_uhwi_false): New function.
15658         * target.def (array_mode_supported_p): New hook.
15659         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
15660         * doc/tm.texi: Regenerate.
15661         * stor-layout.c (mode_for_array): New function.
15662         (layout_type): Use it.
15663         * config/arm/arm.c (arm_array_mode_supported_p): New function.
15664         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
15666 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
15668         PR target/48723
15669         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
15670         for -fstack-check if the size to allocate is negative.
15672 2011-05-02  Lawrence Crowl  <crowl@google.com>
15674         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
15675         (timevar_cond_start): New for starting a timer only when it is not
15676         already running.
15677         (timevar_cond_stop): New for stopping a timer when it was not already
15678         running.
15680         * timevar.c (timevar_stop): Enable start/stop timers to start again.
15681         (timevar_cond_start): New as above.
15682         (timevar_cond_stop): New as above.
15684         * timevar.def: Add start/stop timers for compiler phases,
15685         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
15686         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
15687         and TV_PHASE_FINALIZE.
15688         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
15689         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
15690         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15691         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15692         Make unused TV_OVERLOAD into a start/stop timer.
15694         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15695         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15696         to indicate that they are start/stop timers.
15698         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15699         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15700         Move initialization to do_compile.
15701         (do_compile): Add initialization from above.
15702         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15704         * c-decl.c (c_write_global_declarations): Add start/stop of
15705         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15707         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15708         or TV_PARSE_INLINE, as appropriate.
15709         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15710         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15712 2011-05-02  Jason Merrill  <jason@redhat.com>
15714         PR c++/40975
15715         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15717 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
15719         PR c/35445
15720         * c-decl.c (finish_decl): Only create a composite if the types are
15721         compatible.
15723 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15725         * config/fr30/fr30-protos.h (Mmode): Don't define.
15726         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
15727         definition where used.
15728         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15729         define.  Expand definitions where used.
15730         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15731         Expand definitions where used.
15732         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15733         rx_function_arg, rx_function_arg_advance,
15734         rx_function_arg_boundary): Expand definitions of those macros.
15735         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
15736         definition where used.
15738 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15740         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15741         reg<->xmm moves.
15742         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15743         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
15744         with *movv2sf_internal_rex64_avx.
15745         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15746         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15747         Use %v prefix in insn mnemonic to handle TARGET_AVX.
15748         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
15749         "vex" in "prefix" attribute calculation.
15750         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
15752 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
15754         PR target/47951
15755         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15756         inputs match the output.
15758 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
15760         PR target/47955
15761         * config/m68k/m68k.c (m68k_expand_prologue): Set
15762         current_function_static_stack_size.
15764 2011-05-02   Jan Hubicka  <jh@suse.cz>
15766         * lto-streamer.c (lto_streamer_cache_insert_1,
15767         lto_streamer_cache_lookup, lto_streamer_cache_create,
15768         lto_streamer_cache_delete): Use pointer map instead of hashtable.
15769         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15771 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15773         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15774         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15775         config/m68k/t-opts: New files.
15776         * config/m68k/m68k-tables.opt: New file (generated).
15777         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15778         extra_options and m68k/t-opts to tmake_file.
15779         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15780         (all_isas): Initialize using m68k-isas.def.
15781         (all_microarchs): Initialize using m68k-microarchs.def.
15782         (m68k_find_selection): Remove.
15783         (m68k_handle_option): Don't assert that global structures are in
15784         use.  Use error_at.  Access variables via opts pointer.  Don't
15785         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
15786         directly for -m68020-40 and -m68020-60.
15787         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15788         m68k_tune_entry here.
15789         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15790         to m68k-opts.h.
15791         (m68k_library_id_string): Remove declaration.
15792         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15793         (m68k_library_id_string): New Variable.
15794         (march=, mcpu=, mtune=): Use Enum and Var.
15796 2011-05-02  Richard Guenther  <rguenther@suse.de>
15798         * varasm.c (output_constructor_regular_field): Compute zero-based
15799         index with double-ints.  Make sure to ICE instead of producing
15800         wrong code.
15801         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15802         in asserts.  Properly use a signed type.
15804 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15806         * config/i386/sse.md (V): New mode iterator.
15807         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
15808         TARGET_SSE2.
15809         (V_256): Rename from AVX256MODE.
15810         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
15811         condition to all users.
15812         (VF1): Ditto.
15813         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
15814         condition to all users.
15815         (VF_128): Make V4SF mode unconditional.
15816         (VF_256): Rename from AVX256MODEF2P.
15817         (VI4F_128): Rename from SSEMODE4S.
15818         (VI8F_128): Rename from SSEMODE2D.
15819         (VI4F_256): Rename from AVX256MODE8P.
15820         (VI8F_256): Rename from AVX256MODE4P.
15821         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15822         (ssescalarmodesuffix): Remove SF and DF modes.
15823         (SSEMODE124): Remove.
15824         (SSEMODE1248): Ditto.
15825         (SSEMODEF2P): Ditto.
15826         (AVXMODEF2P): Ditto.
15827         (AVXMODEFDP): Ditto.
15828         (AVXMODEFSP): Ditto.
15829         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15830         unconditional.
15831         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
15832         unconditional.
15833         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15834         xop_pcmov_<mode>256.  Use V mode iterator.
15836         Adjust RTX patterns globally for renamed mode attributes.
15838 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15840         * haifa-sched.c (sched_emit_insn): Emit insn before first
15841         non-scheduled insn.  Inform back-end about new insn.  Add
15842         new insn to scheduled_insns list.
15844 2011-05-02  Richard Guenther  <rguenther@suse.de>
15846         PR tree-optimization/48822
15847         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15848         (process_scc): Indicate which iteration we start.
15850 2011-05-02  Jan Hubicka  <jh@suse.cz>
15852         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15853         (lto_section_overrun): New.
15854         * lto-section-out.c (append_block): Rename to ...
15855         (lto_append_block): ... this one; export.
15856         (lto_output_1_stream): Move lto lto-streamer.h
15857         (lto_output_data_stream): Update.
15858         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15859         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15860         functions.
15862 2011-05-02  Richard Guenther  <rguenther@suse.de>
15864         * tree.c (tree_code_counts): New global array.
15865         (record_node_allocation_statistics): Count individual tree codes.
15866         (dump_tree_statistics): Dump individual code stats.
15868 2011-05-01  Jan Hubicka  <jh@suse.cz>
15870         * ipa-inline.c (caller_growth_limits): Fix thinko when
15871         looking for largest stack frame.
15872         * ipa-inline.h (dump_inline_summary): Declare.
15873         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
15874         on stack usage.
15875         (dump_inline_summary): Export.
15876         (debug_inline_summary): Declare as DEBUG_FUNCTION.
15878 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
15880         * reginfo.c (memory_move_cost): Change rclass argument type form
15881         'enum reg_class' to reg_class_t.
15882         * reload.h (memory_move_cost): Update prototype.
15883         * postreload.c reload_cse_simplify_set): Change type dclass var to
15884         reg_class_t.
15885         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
15886         Update prototype.
15887         (ira_allocate_and_set_costs): Change aclass argument type form
15888         'enum reg_class' to reg_class_t.
15889         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
15890         Change aclass argument type to reg_class_t.
15891         (update_conflict_hard_reg_costs): Change type aclass and pref vars
15892         to reg_class_t.
15893         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
15894         memory_move_cost call.
15896         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
15897         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
15898         Change type tmp var to reg_class_t.
15900 2011-04-30  Jan Hubicka  <jh@suse.cz>
15902         * ipa-inline.c (can_inline_edge_p): Disregard limits when
15903         inlining into function with flatten attribute.
15904         (want_inline_small_function_p): Be more realistic about inlining
15905         cold calls where callee size grows.
15907 2011-04-30  Jan Hubicka  <jh@suse.cz>
15909         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
15910         flags.
15912 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
15914         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
15915         PRINT_OPERAND_PUNCT_VALID_P): Remove.
15916         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
15917         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
15918         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15919         (print_operand): Rename to...
15920         (sparc_print_operand): ...this. Make static. Adjust
15921         sparc_print_operand function call.
15922         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
15923         functions.
15925 2011-04-30  Jan Hubicka  <jh@suse.cz>
15927         PR middle-end/48752
15928         * ipa-inline.c (early_inliner): Disable when doing late
15929         addition of function.
15931 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
15933         * dwarf2out.c (get_address_mode): New inline.
15934         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
15935         if not dwarf_strict emit
15936         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
15937         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
15938         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
15939         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
15940         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
15941         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
15942         mem_loc_descriptor callers.
15943         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15944         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
15945         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
15946         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
15947         (base_types): New variable.
15948         (get_base_type_offset, calc_base_type_die_sizes,
15949         base_type_for_mode, mark_base_types, base_type_cmp,
15950         move_marked_base_types): New functions.
15951         (calc_die_sizes): Assert that die_offset is 0 or equal to
15952         next_die_offset.
15953         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
15954         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
15955         callers.  If not dwarf_strict, call mem_loc_descriptor even for
15956         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
15957         (gen_subprogram_die): Don't give up on call site parameters
15958         with non-integral or large integral modes.  Adjust
15959         mem_loc_descriptor callers.
15960         (prune_unused_types): Call prune_unused_types_mark on base_types
15961         vector entries.
15962         (resolve_addr): Call mark_base_types.
15963         (dwarf2out_finish): Call move_marked_base_types.
15965         PR tree-optimization/48809
15966         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
15967         type.
15968         (gen_inbound_check): Don't compute index_expr - range_min in utype
15969         again, instead reuse SSA_NAME initialized in build_arrays.
15970         Remove two useless gsi_for_stmt calls.
15972 2011-04-29  Jeff Law  <law@redhat.com>
15974         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
15976 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15978         * cgraph.h (cgraph_postorder): Remove declaration.
15979         * ipa-utils.h (ipa_free_postorder_info): Declare.
15980         (ipa_reverse_postorder): Likewise.
15981         * cgraphunit.c: Include ipa-utils.h.
15982         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
15983         * ipa-inline.c: Include ipa-utils.h.
15984         (ipa_inline): Update call to ipa_reverse_postorder.
15985         * ipa-pure-const.c (propagate_pure_const): Update call to
15986         ipa_reduced_postorder and ipa_print_order.  Call
15987         ipa_free_postorder_info to clean up.
15988         (propagate_nothrow): Likewise.
15989         * ipa-reference.c (propagate): Removed a useless call to
15990         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
15991         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
15992         * ipa.c: Include ipa-utils.h.
15993         (ipa_profile): Update call to ipa_reverse_postorder.
15994         (cgraph_postorder): Moved to...
15995         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
15996         (ipa_utils_print_order): Renamed to ipa_print_order.
15997         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
15998         comments.
15999         (ipa_free_postorder_info): New function.
16000         * passes.c: Include ipa-utils.h.
16001         (do_per_function_toporder): Update call to ipa_reverse_postorder.
16002         (ipa_write_summaries): Likewise.
16003         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
16004         (cgraphunit.o): Likewise.
16005         (ipa.o): Likewise.
16006         (ipa-inline.o): Likewise.
16008 2011-04-29  Jan Hubicka  <jh@suse.cz>
16010         * gcc.dg/tree-ssa/inline-10.c: New testcase.
16011         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
16012         * ipa-inline.h (clause_t): Turn into unsigned int.
16013         * ipa-inline-analysis.c (add_clause): Do more simplification.
16014         (and_predicates): Shortcut more cases.
16015         (predicates_equal_p): Move forward; check that clauses are properly
16016         ordered.
16017         (or_predicates): Shortcut more cases.
16018         (edge_execution_predicate): Rewrite as...
16019         (set_cond_stmt_execution_predicate): ... this function; handle
16020         __builtin_constant_p.
16021         (set_switch_stmt_execution_predicate): New .
16022         (compute_bb_predicates): New.
16023         (will_be_nonconstant_predicate): Update TODO.
16024         (estimate_function_body_sizes): Use compute_bb_predicates
16025         and free them later, always try to estimate if stmt is constant.
16026         (estimate_time_after_inlining, estimate_size_after_inlining):
16027         Gracefully handle optimized out edges.
16028         (read_predicate): Fix off by one error.
16030 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
16032         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
16034 2011-04-27  Xinliang David Li  <davidxl@google.com>
16036         * tree-profile.c (init_ic_make_global_vars): Set
16037         tls attribute on ic vars.
16038         * coverage.c (coverage_end_function): Initialize
16039         function_list with zero.
16041 2011-04-29  Richard Guenther  <rguenther@suse.de>
16043         * builtins.c (fold_builtin_classify_type): Use integer_type_node
16044         for the type of the result.
16045         (fold_builtin_isascii): Likewise.
16046         (fold_builtin_toascii): Use integer_type_node where appropriate.
16047         (fold_builtin_logb): Likewise.
16048         (fold_builtin_frexp): Likewise.
16049         (fold_builtin_strstr): Likewise.
16050         (fold_builtin_strpbrk): Likewise.
16051         (fold_builtin_fputs): Likewise.
16052         (fold_builtin_sprintf): Likewise.
16053         (fold_builtin_snprintf): Likewise.
16054         (fold_builtin_printf): Likewise.
16055         (do_mpfr_remquo): Use a proper type for the assigned constant.
16056         (do_mpfr_lgamma_r): Likewise.
16057         * dwarf2out.c (resolve_one_addr): Use size_int.
16058         * except.c (init_eh): Likewise.
16059         (assign_filter_values): Use integer_type_node for filter values.
16060         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
16061         indices.
16062         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
16063         for EH region numbers.
16064         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
16065         for the shift amount.
16067 2011-04-29  Richard Guenther  <rguenther@suse.de>
16069         * expr.h (expand_shift): Rename to ...
16070         (expand_variable_shift): ... this.
16071         (expand_shift): Take a constant shift amount.
16072         * expmed.c (expand_shift): Rename to ...
16073         (expand_variable_shift): ... this.
16074         (expand_shift): New wrapper around expand_variable_shift.
16075         * expr.c (convert_move, emit_group_load_1, emit_group_store,
16076         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
16077         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
16078         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
16079         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
16080         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
16081         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
16082         emit_store_flag_1, emit_store_flag): Likewise.
16083         * builtins.c (expand_builtin_signbit): Likewise.
16084         * calls.c (load_register_parameters): Likewise.
16085         * function.c (assign_parm_setup_block): Likewise.
16086         * lower-subreg.c (resolve_shift_zext): Likewise.
16087         * optabs.c (widen_bswap, expand_abs_nojump,
16088         expand_one_cmpl_abs_nojump, expand_float): Likewise.
16089         * spu/spu.c (spu_expand_extv): Likewise.
16090         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16092 2011-04-29  Richard Guenther  <rguenther@suse.de>
16094         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16095         for the remapped region number.
16096         * predict.c (build_predict_expr): Use integer_type_node for the
16097         predict kind.
16098         * fold-const.c (fold_binary_loc): Use integer_type_node for
16099         the shift amount.  Use a proper type for the PLUS_EXPR operand.
16101 2011-04-29  Michael Matz  <matz@suse.de>
16103         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16104         other trees that just builtins.
16105         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16107 2011-04-29  Richard Guenther  <rguenther@suse.de>
16109         * tree-nested.c (get_trampoline_type): Use size_int.
16110         (get_nl_goto_field): Likewise.
16111         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16112         for all indexes.
16113         (lower_eh_constructs_2): Likewise.
16114         (lower_resx): Likewise.
16115         (lower_eh_dispatch): Likewise.
16116         * tree-mudflap.c (mf_build_string): Use size_int.
16117         (mudflap_register_call): Use integer_type_node for the flag.
16118         (mudflap_enqueue_constant): Use size_int.
16119         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16120         instead of rebuilding it.
16122 2011-04-29  Richard Guenther  <rguenther@suse.de>
16124         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16125         Handle OBJ_TYPE_REF.
16126         (find_func_aliases_for_call): Use it more consistently.
16128 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
16130         * haifa-sched.c (last_nondebug_scheduled_insn): New.
16131         (rank_for_schedule): Use it.
16132         (schedule_block): Set it.
16134 2011-04-28  David Li  <davidxl@google.com>
16136         * tree.c (crc32_string): Use crc32_byte.
16137         (crc32_byte): New function.
16138         * tree.h (crc32_byte): New function.
16139         * gcov.c (read_graph_file): Handle new cfg_cksum.
16140         (read_count_file): Ditto.
16141         * profile.c (instrument_values): Ditto.
16142         (get_exec_counts): Ditto.
16143         (read_profile_edge_counts): Ditto.
16144         (compute_branch_probabilities): Ditto.
16145         (compute_value_histograms): Ditto.
16146         (branch_prob): Ditto.
16147         (end_branch_prob): Ditto.
16148         * coverage.c (read_counts_file): Ditto.
16149         (get_coverage_counts): Ditto.
16150         (tree_coverage_counter_addr): Ditto.
16151         (coverage_checksum_string): Ditto.
16152         (coverage_begin_output): Ditto.
16153         (coverage_end_function): Ditto.
16154         (build_fn_info_type): Ditto.
16155         (build_fn_info_value): Ditto.
16156         * libgcov.c (gcov_exit): Ditto.
16157         * gcov-dump.c (tag_function): Ditto.
16158         (compute_checksum): Remove.
16160 2011-04-29  Alan Modra  <amodra@gmail.com>
16162         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16163         unspec plus offset.  Tidy macho code.
16165 2011-04-29  Martin Jambor  <mjambor@suse.cz>
16167         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16168         node instead of a decl.  Update all callers.
16169         * cgraph.h: Update declaration.
16171 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
16173         PR tree-optimization/48765
16174         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16175         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
16176         to indicate if loop aware SLP is being used.  Scan the statements
16177         and update the vectorization factor according to the type of
16178         vectorization before statement analysis.
16179         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16180         pass it to vect_analyze_loop_operations.
16181         (vectorizable_reduction): Set number of copies to 1 in case of pure
16182         SLP statement.
16183         * tree-vect-stmts.c (vectorizable_conversion,
16184         vectorizable_assignment, vectorizable_shift,
16185         vectorizable_operation, vectorizable_type_demotion,
16186         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
16187         Likewise.
16188         (vectorizable_condition): Move the check that it is not SLP
16189         vectorization before the number of copies check.
16190         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
16191         to vectorize the loop using SLP.
16193 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
16195         PR middle-end/48597
16196         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
16197         inline asm.
16199 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
16201         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
16202         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
16203         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16204         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16205         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
16206         linux*.h headers.
16207         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
16208         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16209         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16210         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16211         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16212         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
16213         REG_NAME.
16214         * config/i386/linux.h (REG_NAME): Don't define.
16215         * config/i386/linux64.h (REG_NAME): Don't define.
16216         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
16217         Undefine before defining.
16219 2011-04-28  Jan Hubicka  <jh@suse.cz>
16221         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
16222         nonconstant_names array.
16223         (estimate_function_body_sizes): Build nonconstant_names array; handle
16224         BUILT_IN_CONSTANT_P.
16226 2011-04-28  Richard Guenther  <rguenther@suse.de>
16228         PR bootstrap/48804
16229         Revert
16230         2011-04-28  Richard Guenther  <rguenther@suse.de>
16232         * tree-ssa-structalias.c (solve_constraints): Build succ graph
16233         as late as possible.
16235 2011-04-28  Richard Guenther  <rguenther@suse.de>
16237         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
16238         (debug_constraint): Do it here.
16239         (dump_constraints): And here.
16240         (rewrite_constraints): And here.
16241         (dump_constraint_edge): Remove.
16242         (dump_constraint_graph): Rewrite to produce DOT output.
16243         (solve_constraints): Build succ graph as late as possible.
16244         Dump constraint graphs before and after solving.
16246 2011-04-28  Richard Guenther  <rguenther@suse.de>
16248         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16249         New function split out from ...
16250         (find_func_aliases): ... here.  Call it.
16251         (find_func_aliases_for_call): Likewise.
16253 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16255         * internal-fn.h (internal_fn_name_array): Declare.
16256         (internal_fn_flags_array): Likewise.
16258 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
16260         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
16261         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
16262         Move from sse.md.
16263         (ssemodefsuffix): Remove.
16264         (ssevecmodesuffix): New mode attribute.
16265         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
16266         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16267         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16268         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16269         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
16270         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
16271         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
16272         ssemodesuffix mode attribute.
16273         (float splitters): Use ssevecmodesuffix mode attribute.
16274         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
16275         (sseinsmode): Rename from avxvecmode.
16276         (avxsizesuffix): Rename from avxmodesuffix.
16277         (sseintvecmode): Rename from avxpermvecmode.
16278         (ssedoublevecmode): Rename from ssedoublesizemode.
16279         (ssehalfvecmode): Rename from avxhalfvecmode.
16280         (ssescalarmode): Rename from avxscalarmode.
16281         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
16282         templates for ssemodesuffix mode attribute.
16283         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
16284         mode attribute.
16286         Adjust RTX patterns globally for renamed mode attributes.
16288 2011-04-27  Jan Hubcika  <jh@suse.cz>
16290         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
16291         * ipa-inline-analysis.c: Include alloc-pool.h.
16292         (edge_predicate_pool): New.
16293         (trye_predicate_p): New function
16294         (false_predicate_p): New function.
16295         (add_clause): Sanity check that false clauses are "optimized";
16296         never add clauses to predicate that is already known to be false.
16297         (and_predicate): Use flase_predicate_p.
16298         (evaulate_predicate): Rename to ...
16299         (evaluate_predicate): ... this one; update all callers; assert
16300         that false is not listed among possible truths.
16301         (dump_predicate): Use true_predicate_p.
16302         (account_size_time): Use false_predicate_p.
16303         (evaulate_conditions_for_edge): Rename to ...
16304         (evaluate_conditions_for_edge) ... this one.
16305         (edge_set_predicate): New function.
16306         (inline_edge_duplication_hook): Duplicate edge predicates.
16307         (inline_edge_removal_hook): Free edge predicates.
16308         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
16309         (dump_inline_summary): Update.
16310         (estimate_function_body_sizes): Set edge predicates.
16311         (estimate_calls_size_and_time): Handle predicates.
16312         (estimate_callee_size_and_time): Update.
16313         (remap_predicate): Add toplev_predicate; update comment.
16314         (remap_edge_predicates): New function.
16315         (inline_merge_summary): Compute toplev predicate; update.
16316         (read_predicate): New function.
16317         (read_inline_edge_summary): Use it.
16318         (inline_read_section): Likewise.
16319         (write_predicate): New function.
16320         (write_inline_edge_summary): Use it.
16321         (inline_write_summary): Likewise.
16322         (inline_free_summary): Free alloc pool and edge summary vec.
16324 2011-04-27  Richard Guenther  <rguenther@suse.de>
16326         * tree-ssa-structalias.c (changed_count): Remove.
16327         (changed): Use a bitmap.
16328         (unify_nodes): Adjust.
16329         (do_sd_constraint): Likewise.
16330         (do_ds_constraint): Likewise.
16331         (do_complex_constraint): Likewise.
16332         (solve_graph): Likewise.
16334 2011-04-27  Jan Hubicka  <jh@suse.cz>
16336         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
16338 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
16340         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
16341         (avx_vperm2f128_*_operand): Ditto.
16342         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
16343         Use avx_vpermilp_parallel in insn condition.
16344         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
16345         Use avx_vperm2f128_parallel in insn condition.
16347 2011-04-27  Richard Guenther  <rguenther@suse.de>
16349         * Makefile.in (tree-ssa-structalias.o): Remove
16350         gt-tree-ssa-structalias.h dependency.
16351         (GTFILES): Remove tree-ssa-structalias.c.
16352         * tree.c (allocate_decl_uid): New function.
16353         (make_node_stat): Use it.
16354         (copy_node_stat): Likewise.
16355         * tree.h (allocate_decl_uid): Declare.
16356         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
16357         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
16358         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
16359         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
16360         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
16361         (struct heapvar_map): Likewise.
16362         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
16363         heapvar_insert): Likewise.
16364         (make_heapvar_for): Rename to ...
16365         (make_heapvar): ... this.  Simplify.
16366         (fake_var_decl_obstack): New global var.
16367         (build_fake_var_decl): New function.
16368         (make_constraint_from_heapvar): Adjust.
16369         (handle_lhs_call): Likewise.
16370         (create_function_info_for): Likewise.
16371         (intra_create_variable_infos): Likewise.
16372         (init_alias_vars): Allocate fake_var_decl_obstack.
16373         (init_alias_heapvars, delete_alias_heapvars): Remove.
16374         (compute_points_to_sets): Do not call init_alias_heapvars.
16375         (ipa_pta_execute): Likewise.
16376         (delete_points_to_sets): Free fake_var_decl_obstack.
16378 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16380         * config/spu/divmovti4.c (union qword_UTItype): New data type.
16381         (si_from_UTItype, si_to_UTItype): New functions.
16382         (__udivmodti4): Use them to implement type-punning.
16383         * config/spu/multi3.c (union qword_TItype): New data type.
16384         (si_from_TItype, si_to_TItype): New functions.
16385         (__multi3): Use them to implement type-punning.
16387 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16389         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
16391 2011-04-27  Jan Hubicka  <jh@suse.cz>
16393         * ipa-prop.c (function_insertion_hook_holder): New holder.
16394         (ipa_add_new_function): New function.
16395         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
16396         Register/deregister holder.
16398 2011-04-27  Richard Guenther  <rguenther@suse.de>
16400         PR tree-optimization/48772
16401         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
16403 2011-04-27  Richard Guenther  <rguenther@suse.de>
16405         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16406         TARGET_MEM_REF handling.
16408 2011-04-27  Nick Clifton  <nickc@redhat.com>
16410         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16411         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16412         (REG_CLASS_NAMES): Likewise.
16413         (REG_CLASS_CONTENTS): Likewise.
16414         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16415         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16416         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
16417         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
16418         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
16419         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16420         duplicate register classes.
16421         (frv_class_likely_spilled_p): Likewise.
16422         (frv_register_move_cost): Likewise.
16424         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16425         end of the regno_reg_class array.
16427 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
16429         PR c/48742
16430         * c-typeck.c (build_binary_op): Don't wrap arguments if
16431         int_operands is true.
16433 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
16435         PR target/48767
16436         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16437         targetm.calls.must_pass_in_stack for void type.
16439 2011-04-26  Jan Hubicka  <jh@suse.cz>
16441         * cgraphbuild.c (build_cgraph_edges): Update call
16442         of cgraph_create_edge and cgraph_create_indirect_edge.
16443         * cgraph.c (cgraph_create_edge_including_clones,
16444         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16445         cgraph_update_edges_for_call_stmt_node): Do not take nest
16446         argument; do not initialize call_stmt_size/time.
16447         (dump_cgraph_node): Do not dump nest.
16448         (cgraph_clone_edge): Do not take loop_nest argument;
16449         do not propagate it; do not clone call_stmt_size/time.
16450         (cgraph_clone_node): Likewise.
16451         (cgraph_create_virtual_clone): Update.
16452         * cgraph.h (struct cgraph_edge): Remove
16453         call_stmt_size/call_stmt_time/loop_nest.
16454         (cgraph_create_edge, cgraph_create_indirect_edge,
16455         cgraph_create_edge_including_clones, cgraph_clone_node): Update
16456         prototype.
16457         * tree-emutls.c (gen_emutls_addr): Update.
16458         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16459         loop_nest; handle indirect calls, too.
16460         (clone_inlined_nodes): Do not care about updating inline summaries.
16461         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16462         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16463         stream call_stmt_size/call_stmt_time/loop_nest.
16464         * ipa-inline.c (edge_badness): Update.
16465         (ipa_inline): dump summaries after inlining.
16466         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16467         New.
16468         (inline_edge_summary): New function.
16469         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16470         (inline_edge_removal_hook): Handle edge summaries.
16471         (inline_edge_duplication_hook): New hook.
16472         (inline_summary_alloc): Alloc hooks.
16473         (initialize_growth_caches): Do not register removal hooks.
16474         (free_growth_caches); Do not free removal hook.
16475         (dump_inline_edge_summary): New function.
16476         (dump_inline_summary): Use it.
16477         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16478         (inline_update_callee_summaries): New function.
16479         (inline_merge_summary): Use it.
16480         (do_estimate_edge_time, do_estimate_edge_growth): Update.
16481         (read_inline_edge_summary): New function.
16482         (inline_read_section): Use it.
16483         (write_inline_edge_summary): New function.
16484         (inline_write_summary): Use it.
16485         (inline_free_summary): Free edge new holders.
16486         * tree-inline.c (copy_bb): Update.
16488 2011-04-26  Jason Merrill  <jason@redhat.com>
16490         * tree-eh.c (lower_try_finally_switch): Create the label along with
16491         the CASE_LABEL_EXPR.
16493 2011-04-26  David S. Miller  <davem@davemloft.net>
16494             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16496         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16497         * configure: Regenerate.
16499 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16501         PR target/48258
16502         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16503         reduction.
16504         (VEC_reduc): New code iterator and splitters for vector reduction.
16505         (VEC_reduc_name): Ditto.
16506         (VEC_reduc_rtx): Ditto.
16507         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16508         (reduc_<VEC_reduc_name>_v4sf): Ditto.
16510         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16511         support for extracting SF on VSX.
16513         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16514         generating xscvspdp.
16515         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16516         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16517         double add, minimum, maximum vector reduction.
16518         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16519         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16520         optimize double vector reduction.
16521         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16523 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
16525         * config/fr30/fr30.h (inhibit_libc): Don't define.
16526         * config/m32r/m32r-protos.h: Correct comment.
16527         * config/v850/v850.h (GHS_default_section_names,
16528         GHS_current_section_names): Use tree, not union tree_node *.
16530 2011-04-26  Xinliang David Li  <davidxl@google.com>
16532         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16533         * c-family/c-opts.c (c_common_handle_option): Set
16534         warn_maybe_uninitialized.
16535         * opts.c (common_handle_option): Ditto.
16536         * common.opt:  New option.
16537         * tree-ssa.c (warn_uninit): Add one more parameter.
16538         (warn_uninitialized_var): Pass warning code.
16539         * tree-flow.h: Interface change.
16541 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16543         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16544         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16545         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16547 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16549         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16550         * config/mips/mips.opt (mmips-tfile): Remove.
16552         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16553         mips-tdump reference to ...
16554         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
16555         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16556         reference by Tru64 UNIX.
16558 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
16560         PR debug/48768
16561         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16562         is error_mark_node, set value to NULL.
16564         PR tree-optimization/48734
16565         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16566         if return value from maybe_fold_*_comparsions isn't something
16567         the code is prepared to handle.
16569 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
16571         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16572         mode check.
16573         (ext_QIreg_nomode_operands): Remove.
16574         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16575         (*andsi_1): Ditto.
16576         (*andhi_1): Ditto.
16578 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
16580         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16582 2011-04-26  Richard Guenther  <rguenther@suse.de>
16584         * c-typeck.c (build_unary_op): Do not expand array-refs via
16585         pointer arithmetic.  Only adjust qualifiers for function types.
16587 2011-04-26  Richard Guenther  <rguenther@suse.de>
16589         PR middle-end/48694
16590         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16591         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16592         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
16593         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16595 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
16597         * doc/extend.texi: Document __underlying_type.
16599 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
16601         * config/rs6000/titan.md (automata_option "progress"): Remove.
16603 2011-04-25  Jeff Law  <law@redhat.com>
16605         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16607 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
16609         * system.h (ENUM_BITFIELD): Remove.
16611 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
16612             Eric Botcazou  <ebotcazou@adacore.com>
16614         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16615         for STORE_FLAG_VALUE==-1 case.
16617 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
16619         PR target/43804
16620         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16621         LEGITIMATE_PIC_OPERAND_P.
16623 2011-04-24  Jan Hubicka  <jh@suse.cz>
16625         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16626         WPA hack.
16627         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
16628         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
16629         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
16630         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
16631         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
16632         Sanity check predicate length.
16633         (remap_predicate): Likewise; sanity check jump functions.
16634         (inline_read_section, inline_write_summary): Sanity check
16635         predicate length.
16637 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
16639         PR other/48748
16640         * doc/extend.texi (Type Traits): Document __is_standard_layout,
16641         __is_literal_type, and __is_trivial; update throughout about
16642         possibly cv-qualified void types.
16644 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16646         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
16647         testsuite and make it version agnostic.
16649 2011-04-22  Jan Hubicka  <jh@suse.cz>
16651         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16653 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
16655         PR c/48685
16656         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
16657         to VOID_TYPE even around MODIFY_EXPR.
16659 2011-04-22  Mike Stump  <mikestump@comcast.net>
16661         * gensupport.c (read_md_rtx): Fix typo in comment.
16662         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
16663         comment.
16665 2011-04-22  Jan Hubicka  <jh@suse.cz>
16667         * gengtype.c (open_base_files): Add ipa-inline.h include.
16668         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
16669         ipa-prop.c; update all uses.
16670         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
16671         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
16672         merge summary of inlined function into former caller.
16673         * ipa-inline.c (max_benefit): Remove.
16674         (edge_badness): Compensate for removal of benefits.
16675         (update_caller_keys): Use
16676         reset_node_growth_cache/reset_edge_growth_cache.
16677         (update_callee_keys): Likewise.
16678         (update_all_callee_keys): Likewise.
16679         (inline_small_functions): Do not collect max_benefit; do not reset
16680         estimated_growth; call free_growth_caches and initialize_growth_caches.
16681         * ipa-inline.h (struct condition, type clause_t, struct predicate,
16682         struct size_time_entry): New structures.
16683         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
16684         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
16685         and estimated_growth.
16686         (edge_growth_cache_entry): New structure.
16687         (node_growth_cache, edge_growth_cache): New global vars.
16688         (estimate_growth): Turn into inline.
16689         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
16690         initialize_growth_caches, free_growth_caches): Declare.
16691         (estimate_edge_growth): Rewrite.
16692         (estimate_edge_time): Implement as inline cache lookup.
16693         (reset_node_growth_cache, reset_edge_growth_cache): New inline
16694         functions.
16695         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16696         (NUM_CONDITIONS): New constant.
16697         (predicate_conditions): New enum.
16698         (IS_NOT_CONSTANT): New constant.
16699         (edge_removal_hook_holder): New var.
16700         (node_growth_cache, edge_growth_cache): New global vars.
16701         (true_predicate, single_cond_predicate, false_predicate,
16702         not_inlined_predicate, add_condition, add_clause, and_predicates,
16703         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16704         dump_clause, dump_predicate, account_size_time,
16705         evaulate_conditions_for_edge): New functions.
16706         (inline_summary_alloc): Move to heap.
16707         (inline_node_removal_hook): Clear condition and entry vectors.
16708         (inline_edge_removal_hook): New function.
16709         (initialize_growth_caches, free_growth_caches): New function.
16710         (dump_inline_summary): Update.
16711         (edge_execution_predicate): New function.
16712         (will_be_nonconstant_predicate): New function.
16713         (estimate_function_body_sizes): Compute BB and constantness predicates.
16714         (compute_inline_parameters): Do not clear estimated_growth.
16715         (estimate_edge_size_and_time): New function.
16716         (estimate_calls_size_and_time): New function.
16717         (estimate_callee_size_and_time): New function.
16718         (remap_predicate): New function.
16719         (inline_merge_summary): New function.
16720         (do_estimate_edge_time): New function based on...
16721         (estimate_edge_time): ... this one.
16722         (do_estimate_edge_growth): New function.
16723         (do_estimate_growth): New function based on....
16724         (estimate_growth): ... this one.
16725         (inline_analyze_function): Analyze after deciding on jump functions.
16726         (inline_read_section): New function.
16727         (inline_read_summary): Use it.
16728         (inline_write_summary): Write all the new data.
16729         * ipa-prop.c (ipa_get_param_decl_index): Export.
16730         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16731         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16732         Declare.
16733         (ipa_get_lattice): Move here from ipa-cp.c
16734         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16735         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16736         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16737         cgraph_edge_inlinable_p): Remove.
16738         * cgraphunit.c: Include ipainline.h
16739         (cgraph_process_new_functions): Update call of
16740         compute_inline_parameters.
16742 2011-04-22  Richard Guenther  <rguenther@suse.de>
16744         * tree.c (build_int_cst): Properly create canonicalized integer
16745         constants.
16746         (build_int_cst_type): Remove scary comments.
16748 2011-04-22  Xinliang David Li  <davidxl@google.com>
16750         * toplev.c (process_options): Enable -Werror=coverage-mismatch
16751         by default when -Wno-error is not specified.
16752         * opts-global.c (decode_options): Remove call to
16753         control_warning_options.
16755 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16757         PR tree-optimization/48717
16758         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16759         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16761 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
16763         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
16764         definition where used.
16766 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16768         PR c/48716
16769         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16770         TREE_STATIC variables declared inside of some OpenMP construct.
16772 2011-04-22  Martin Jambor  <mjambor@suse.cz>
16774         PR middle-end/48585
16775         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16777 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
16779         PR c/36750
16780         * c-typeck.c (pop_init_level): Do not warn about initializing
16781         with ` = {0}'.
16783 2011-04-22  Alan Modra  <amodra@gmail.com>
16785         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16786         when returning call_cookie.
16787         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16788         pointers, to functions with no more vector args than the current
16789         function, and some non-local calls for ABI_V4.
16790         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16791         sibcall_nonlocal_aix64): Combine to ..
16792         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
16793         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16794         (sibcall_value_nonlocal_aix<mode>): ..likewise.
16795         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16796         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
16797         operand.
16798         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16799         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16800         sibcall_value_symbolic_64): Delete.
16802 2011-04-21  Xinliang David Li  <davidxl@google.com>
16804         * cgraph.h: Remove pid.
16805         * cgraph.c: Remove pid.
16806         * value-prof.c (init_node_map): New function.
16807         (del_node_map): New function.
16808         (find_func_by_funcdef_no): New function.
16809         (gimple_ic_transform): Call new function.
16810         * cgraphunit.c (cgraph_finalize_function): Remove pid.
16811         * function.c (get_last_funcdef_no): New function.
16812         * function.h (get_last_funcdef_no): New function.
16813         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16814         to libgcov function.
16815         (tree-profiling): Call node map init and delete function.
16817 2011-04-21  Ian Lance Taylor  <iant@google.com>
16819         * godump.c (go_format_type): Use exported Go name for anonymous
16820         field name.
16822 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16824         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16825         Call builtin_function_type_list instead of builtin_function_type.
16826         (UNARY, BINARY, TRINARY, QUAD): Likewise.
16828 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16830         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16831         build_function_type_list instead of build_function_type.
16832         Delete variable `endlink'.
16834 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16836         * config/s390/s390.c (s390_init_builtins): Call
16837         build_function_type_list instead of build_function_type.
16839 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16841         * config/ia64/ia64.c (ia64_init_builtins): Call
16842         build_function_type_list instead of builtin_function_type.
16844 2011-04-21  Easwaran Raman  <eraman@google.com>
16846         * cfgexpand.c (stack_var): Remove OFFSET...
16847         (add_stack_var): ...and its reference here...
16848         (expand_stack_vars): ...and here.
16849         (stack_var_cmp): Sort by descending order of size.
16850         (partition_stack_vars): Change heuristic.
16851         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16852         (dump_stack_var_partition): Add newline after each partition.
16854 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
16855             Jeff Law  <law@redhat.com>
16857         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16858         * gengtype.c (matching_file_name_substitute): Likewise.
16860 2011-04-21  Richard Guenther  <rguenther@suse.de>
16862         PR lto/48703
16863         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16865 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
16867         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16869 2011-04-21  Richard Guenther  <rguenther@suse.de>
16871         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16872         file name.
16874 2011-04-21  Richard Guenther  <rguenther@suse.de>
16876         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16877         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
16878         Use DECL_P, not SSA_VAR_P.
16879         (ptr_derefs_may_alias_p): Likewise.
16880         (ptr_deref_may_alias_ref_p_1): Likewise.
16881         (decl_refs_may_alias_p): Likewise.
16882         (refs_may_alias_p_1): Likewise.
16883         (ref_maybe_used_by_call_p_1): Likewise.
16884         (call_may_clobber_ref_p_1): Likewise.
16885         (indirect_ref_may_alias_decl_p): Assume indirect refrences
16886         are either MEM_REF or TARGET_MEM_REF.
16887         (indirect_refs_may_alias_p): Likewise.
16888         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
16889         for MEM_EXPR of indirect calls.
16891 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16893         * vmsdbgout.c (write_srccorr): Compute file length from the string.
16894         (dst_file_info_struct): Remove flen field.
16895         (lookup_filename): Remove code that set flen field.
16897 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16899         * config/ia64/ia64.c (ia64_start_function): Add a guard.
16901 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
16903         PR target/48708
16904         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
16905         vec_extract and vec_concat for non-SSE4_1 targets.
16907 2011-04-21  Richard Guenther  <rguenther@suse.de>
16909         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
16910         return statements.
16912 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16914         * config/i386/cygming.h (union tree_node, TREE): Don't define or
16915         undefine.
16916         (FILE): Don't undefine.
16918 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16920         * config/alpha/alpha.c (struct machine_function): Use rtx, not
16921         struct rtx_def *.
16922         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
16923         struct rtx_def *.
16924         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
16925         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
16926         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
16927         rtx_def *.
16928         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
16929         definitions where used.
16930         * config/microblaze/microblaze.h (struct microblaze_args): Use
16931         rtx, not struct rtx_def *.
16932         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
16933         rtx_def *.
16934         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
16935         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
16936         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
16937         not struct rtx_def *.
16938         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
16939         struct rtx_def *.
16940         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
16941         rtx_def *.
16942         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
16944 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16946         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
16947         operand_equal_p to compare DR_BASE_ADDRESSes.
16948         (vect_check_interleaving): Likewise.
16950 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16952         PR target/46329
16953         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
16954         for all Neon struct constants.
16956 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16958         * target.def (legitimate_constant_p): New hook.
16959         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
16960         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
16961         * doc/tm.texi: Regenerate.
16962         * hooks.h (hook_bool_mode_rtx_true): Declare.
16963         * hooks.c (hook_bool_mode_rtx_true): Define.
16964         * system.h (LEGITIMATE_CONSTANT_P): Poison.
16965         * calls.c (precompute_register_parameters): Replace uses of
16966         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
16967         (emit_library_call_value_1): Likewise.
16968         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
16969         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
16970         * ira-costs.c (scan_one_insn): Likewise.
16971         * recog.c (general_operand, immediate_operand): Likewise.
16972         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
16973         * reload1.c (init_eliminable_invariants): Likewise.
16975         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
16976         mode argument.
16977         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
16978         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
16979         argument.
16980         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16981         * config/alpha/predicates.md (input_operand): Update call to
16982         alpha_legitimate_constant_p.
16984         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
16985         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
16986         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
16987         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16988         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
16989         (arm_legitimate_constant_p): New functions.
16990         (arm_cannot_force_const_mem): Make static.
16992         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
16994         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
16995         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
16996         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
16997         instead of bfin_legitimate_constant_p.
16998         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
16999         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17001         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
17003         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
17005         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
17006         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
17007         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17008         (frv_legitimate_constant_p): Make static.  Add a mode argument.
17010         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
17011         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
17012         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
17014         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
17015         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
17016         * config/i386/i386.c (legitimate_constant_p): Rename to...
17017         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
17018         argument.
17019         (ix86_cannot_force_const_mem): Update accordingly.
17020         (ix86_legitimate_address_p): Likewise.
17021         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17022         * config/i386/i386.md: Update commentary.
17024         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
17025         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
17026         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17027         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
17029         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
17031         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
17032         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
17033         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17034         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
17036         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
17037         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
17038         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
17040         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
17041         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17042         (m32r_legitimate_constant_p): New function.
17044         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
17045         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
17046         LEGITIMATE_CONSTANT_P.
17047         (LEGITIMATE_CONSTANT_P): Delete.
17048         * config/m68k/m68k.c (m68k_expand_prologue): Call
17049         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
17050         (m68k_legitimate_constant_p): New function.
17051         * config/m68k/m68k.md: Update comments.
17053         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
17054         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17055         (mcore_legitimate_constant_p): New function.
17057         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
17058         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
17059         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
17060         Add a mode argument.
17061         (mep_legitimate_address): Update accordingly.
17062         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17064         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
17065         Delete.
17066         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
17067         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
17068         static.  Check OP's mode for VOIDmode.
17069         (microblaze_legitimate_constant_p): New function.
17070         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17072         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
17073         * config/mips/mips.c (mips_legitimate_constant_p): New function.
17074         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
17075         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17076         * config/mips/predicates.md: Update comments.
17078         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
17079         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
17080         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17081         (mmix_legitimate_constant_p): Make static, return a bool, and take
17082         a mode argument.
17083         (mmix_print_operand_address): Update accordingly.
17085         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
17086         Delete.
17087         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
17088         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
17089         static.  Add a mode argument.
17090         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17092         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17094         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17095         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17096         (pa_legitimate_constant_p): New function.
17098         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17100         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17101         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17102         (pdp11_legitimate_constant_p): New function.
17104         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17105         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17106         (rs6000_legitimate_constant_p): New function.
17108         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17109         (rx_legitimate_constant_p): ...this.
17110         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17111         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17112         (rx_legitimate_constant_p): ...this.
17113         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17114         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17116         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17117         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17118         * config/s390/s390.c (legitimate_constant_p): Rename to...
17119         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
17120         and add a mode argument.
17121         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17123         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17125         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17126         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17127         (sh_legitimate_constant_p): New function.
17129         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17130         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17131         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17132         (legitimate_constant_p): Rename to...
17133         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
17134         argument.
17135         (constant_address_p): Update accordingly.
17137         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17138         argument and return a bool.
17139         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17140         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17141         (spu_legitimate_constant_p): Add a mode argument and return a bool.
17142         (spu_rtx_costs): Update accordingly.
17143         * config/spu/predicates.md (vec_imm_operand): Likewise.
17145         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17147         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17148         * config/v850/v850.c (v850_legitimate_constant_p): New function.
17149         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17151         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17152         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17153         * config/vax/vax.c (legitimate_constant_p): Likewise.
17155         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17156         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17157         (xtensa_legitimate_constant_p): New function.
17159 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
17161         * target.def (cannot_force_const_mem): Add a mode argument.
17162         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17163         * doc/tm.texi: Regenerate.
17164         * hooks.h (hook_bool_mode_rtx_false): Declare.
17165         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17166         (hook_bool_mode_const_rtx_true): Likewise.
17167         (hook_bool_mode_rtx_false): New function.
17168         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17169         to be non-VOID.  Update call to cannot_force_const_mem.
17170         (find_reloads): Update accordingly.
17171         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17172         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17173         argument.
17174         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17175         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
17176         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
17177         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
17178         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
17179         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
17180         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
17181         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17182         (m68k_cannot_force_const_mem): ...this new function.
17183         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
17184         argument.
17185         (mips_const_insns, mips_legitimize_const_move): Update calls.
17186         (mips_secondary_reload_class): Likewise.
17187         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17188         (pa_cannot_force_const_mem): ...this new function.
17189         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
17190         (rs6000_cannot_force_const_mem): ...this new function.
17191         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
17192         argument.
17193         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
17194         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
17195         to...
17196         (xtensa_cannot_force_const_mem): ...this new function.
17198 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17200         * config/mips/mips.c (mips16_build_function_stub): Call
17201         build_function_type_list instead of build_function_type.
17202         (mips16_build_call_stub): Likewise.
17204 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17206         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
17207         instead of build_function_type.
17209 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17211         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
17212         instead of build_function_type.
17214 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
17216         PR target/48678
17217         * config/i386/i386.md (insv): Change operand 0 constraint to
17218         "register_operand".  Change operand 1 and 2 constraint to
17219         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
17220         * config/i386/sse.md (sse4_1_pinsrb): Export.
17221         (sse2_pinsrw): Ditto.
17222         (sse4_1_pinsrd): Ditto.
17223         (sse4_1_pinsrq): Ditto.
17224         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
17225         * config/i386/i386.c (ix86_expand_pinsr): New.
17227 2011-04-20  Easwaran Raman  <eraman@google.com>
17229         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
17230         containing union type only with -fstrict-aliasing.
17232 2011-04-20  Jim Meyering  <meyering@redhat.com>
17234         Remove useless if-before-free tests.
17235         * calls.c (expand_call, save_area): Likewise.
17236         * cfgcleanup.c (try_forward_edges): Likewise.
17237         * collect2.c (collect_execute): Likewise.
17238         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
17239         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
17240         * coverage.c (coverage_checksum_string): Likewise.
17241         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
17242         * cselib.c (cselib_init): Likewise.
17243         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
17244         (df_set_clean_cfg): Likewise.
17245         * function.c (free_after_compilation): Likewise.
17246         * gcc.c (do_spec_1, main): Likewise.
17247         * gcov.c (create_file_names): Likewise.
17248         * gensupport.c (identify_predicable_attribute): Likewise.
17249         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
17250         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
17251         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
17252         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
17253         * ipa-pure-const.c (local_pure_const): Likewise.
17254         * ipa-reference.c (propagate): Likewise.
17255         * ira-costs.c (free_ira_costs): Likewise.
17256         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
17257         * matrix-reorg.c (mat_free): Likewise.
17258         * prefix.c (get_key_value): Likewise.
17259         * profile.c (compute_value_histograms): Likewise.
17260         * reload1.c (free_reg_equiv): Likewise.
17261         * sched-deps.c (free_deps): Likewise.
17262         * sel-sched-ir.c (fence_clear): Likewise.
17263         * sese.c (set_rename, if_region_set_false_region): Likewise.
17264         * tree-data-ref.c (free_rdg): Likewise.
17265         * tree-eh.c (lower_try_finally): Likewise.
17266         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
17267         * tree-ssa-live.c (delete_var_map): Likewise.
17268         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
17269         * tree-ssa-pre.c (phi_trans_add): Likewise.
17271 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
17273         PR tree-optimization/48611
17274         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
17275         beyond ERT_MUST_NOT_THROW region.
17277 2011-04-20  Catherine Moore  <clm@codesourcery.com>
17279         * config/mips/mips.opt (mfix-24k): New.
17280         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
17281         * config/mips/mips.md (length): Increase by 4 for stores if
17282         fixing 24K errata.
17283         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
17284         all noreorder if fixing 24K errata.
17285         * doc/invoke.texi: Document mfix-24k.
17287 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
17289         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
17290         quad-word modes, reduce to 9-bit index range when above 1016 limit.
17292 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
17294         * config/arm/arm.c (arm_gen_constant): Move movw support ....
17295         (const_ok_for_op): ... to here.
17297 2011-04-20  Kai Tietz  <ktietz@redhat.com>
17299         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
17300         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
17302 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
17304         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
17306 2011-04-20  Richard Guenther  <rguenther@suse.de>
17308         PR tree-optimization/47892
17309         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
17310         are if-convertible.
17312 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
17314         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
17316 2011-04-20  Tristan Gingold  <gingold@adacore.com>
17318         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
17320 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
17322         PR target/18145
17324         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
17325         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
17326         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17327         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17328         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
17330         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
17331         New prototype.
17333         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
17334         (avr_asm_named_section, avr_asm_output_aligned_common,
17335         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
17336         New functions to update...
17337         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
17338         (avr_asm_init_sections): Overwrite section callbacks for
17339         data_section, bss_section.
17340         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
17341         from here to...
17342         (avr_file_end): ...here.
17344 2011-04-20  Richard Guenther  <rguenther@suse.de>
17346         PR middle-end/48695
17347         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
17348         objects and types here.  Adjust for their offset before comparing.
17350 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
17352         * tree-vect-stmts.c (vectorizable_store): Only chain one related
17353         statement per copy.
17355 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
17357         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
17358         (GIMPLE_H): Include $(INTERNAL_FN_H).
17359         (OBJS-common): Add internal-fn.o.
17360         (internal-fn.o): New rule.
17361         * internal-fn.def: New file.
17362         * internal-fn.h: Likewise.
17363         * internal-fn.c: Likewise.
17364         * gimple.h: Include internal-fn.h.
17365         (GF_CALL_INTERNAL): New gf_mask.
17366         (gimple_statement_call): Put fntype into a union with a new
17367         internal_fn field.
17368         (gimple_build_call_internal): Declare.
17369         (gimple_build_call_internal_vec): Likewise.
17370         (gimple_call_same_target_p): Likewise.
17371         (gimple_call_internal_p): New function.
17372         (gimple_call_internal_fn): Likewise.
17373         (gimple_call_fntype): Return null for internal calls.
17374         (gimple_call_set_fntype): Assert that the function is not internal.
17375         (gimple_call_set_fn): Likewise.
17376         (gimple_call_set_fndecl): Likewise.
17377         (gimple_call_set_internal_fn): New function.
17378         (gimple_call_addr_fndecl): Handle null functions.
17379         (gimple_call_return_type): Likewise null types.
17380         * gimple.c (gimple_build_call_internal_1): New function.
17381         (gimple_build_call_internal): Likewise.
17382         (gimple_build_call_internal_vec): Likewise.
17383         (gimple_call_same_target_p): Likewise.
17384         (gimple_call_flags): Handle calls to internal functions.
17385         (gimple_call_fnspec): New function.
17386         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
17387         (gimple_has_side_effects): Handle null functions.
17388         (gimple_rhs_has_side_effects): Likewise.
17389         (gimple_call_copy_skip_args): Handle calls to internal functions.
17390         * cfgexpand.c (expand_call_stmt): Likewise.
17391         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
17392         * gimple-fold.c (gimple_fold_call): Handle null functions.
17393         (gimple_fold_stmt_to_constant_1): Don't fold
17394         calls to internal functions.
17395         * gimple-low.c (gimple_check_call_args): Handle calls to internal
17396         functions.
17397         * gimple-pretty-print.c (dump_gimple_call): Likewise.
17398         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
17399         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
17400         (do_warn_unused_result): Likewise.
17401         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
17402         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
17403         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17404         the target of a call.
17405         (initialize_hash_element): Update accordingly.
17406         (hashable_expr_equal_p): Use gimple_call_same_target_p.
17407         (iterative_hash_hashable_expr): Handle calls to internal functions.
17408         (print_expr_hash_elt): Likewise.
17409         * tree-ssa-pre.c (can_value_number_call): Likewise.
17410         (eliminate): Handle null functions.
17411         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17412         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17413         (find_func_aliases): Likewise.
17414         * value-prof.c (gimple_ic_transform): Likewise.
17415         (gimple_indirect_call_to_profile): Likewise.
17416         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17417         * lto-streamer-out.c (output_gimple_stmt): Likewise.
17419 2011-04-19  Jan Hubicka  <jh@suse.cz>
17421         * ipa-inline-transform.c (save_inline_function_body): Add comments.
17422         * ipa-inline.c (inline_small_functions): Compute summaries first,
17423         populate heap later.
17425 2011-04-19  Jan Hubicka  <jh@suse.cz>
17427         * cgraph.h (save_inline_function_body): Remove.
17428         * ipa-inline-transform.c: New file, broke out of...
17429         * ipa-inline.c: ... this one; Update toplevel comment.
17430         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17431         make global.
17432         (update_noncloned_frequencies): Move to ipa-inline-transform.c
17433         (cgraph_mark_inline_edge): Rename to inline_call; move to
17434         ipa-inline-transform.c.
17435         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17436         move to ipa-inline-transform.c
17437         (recursive_inlining, inline_small_functions, flatten_function,
17438         ipa_inline, inline_always_inline_functions,
17439         early_inline_small_functions): Update.
17440         (inline_transform): Move to ipa-inline-transform.c.
17441         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17442         Declare.
17443         * Makefile.in (ipa-inline-transform.o): New file.
17444         * cgraphunit.c (save_inline_function_body): Move to
17445         ipa-inline-transform.c
17447 2011-04-19  DJ Delorie  <dj@redhat.com>
17449         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17450         registers if we already know there aren't any.
17451         (m32c_emit_epilogue): Don't emit a barrier here.
17452         (m32c_emit_eh_epilogue): Likewise.
17453         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17454         operands at expand time.
17455         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17456         int" wchar type.
17457         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17458         duplicates.  Provide aliases instead.
17459         * config/m32c/prologue.md (eh_return): Emit a barrier here.
17460         (eh_epilogue): Add a "(return)" here as a hint to other parts of
17461         the compiler.
17463 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
17465         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17466         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17467         (general_or_i64_p, sparc_register_move_cost): New function.
17469 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17471         * doc/install.texi (Configuration, --enable-threads): Remove mach.
17472         Add lynx, mipssde.  Sort table.
17474 2011-04-19  Xinliang David Li  <davidxl@google.com>
17476         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17477         not negative.
17479 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
17481         PR target/48678
17482         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17483         is a SUBREG with non-MODE_INT mode inside of it.
17485 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17487         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17488         also according to actual contants.
17489         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17490         (gimple_fold_call): Use it.
17491         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17493 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17495         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17496         non-pointer assignments.
17498 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17500         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17501         account anc_offset and otr_type from the indirect edge info.
17502         * ipa-prop.c (get_ancestor_addr_info): New function.
17503         (compute_complex_ancestor_jump_func): Assignment analysis moved to
17504         get_ancestor_addr_info, call it.
17505         (ipa_note_param_call): Do not initialize information about polymorphic
17506         calls, return the indirect call graph edge.  Remove the last
17507         parameter, adjust all callers.
17508         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17509         parameters.  Initialize polymorphic information in the indirect edge.
17511 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17513         PR lto/48148
17514         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17515         the types if they have different enumeration identifiers.
17517 2011-04-19  Jan Hubicka  <jh@suse.cz>
17519         * cgraph.h (cgraph_optimize_for_size_p): Declare.
17520         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17521         * predict.c (cgraph_optimize_for_size_p): Break out from ...
17522         (optimize_function_for_size_p) ... here.
17524 2011-04-19  Richard Guenther  <rguenther@suse.de>
17526         PR lto/48207
17527         * tree.c (free_lang_data): Do not reset the decl-assembler-name
17528         langhook.
17530 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17532         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17533         if DECL_NO_INLINE_WARNING_P is set on the function.
17535 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
17537         PR fortran/47976
17538         * reload1.c (inc_for_reload): Return void. All callers changed.
17539         (emit_input_reload_insns): Don't try to delete previous output
17540         reloads to a register, or record spill_reg_store for autoincs.
17542 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
17544         * gengtype.h: Updated copyright year.
17545         (struct input_file_st): Add inpisplugin field.
17546         (type_fileloc): New function.
17547         * gengtype.c
17548         (write_typed_struct_alloc_def): Add gcc_assert.
17549         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17550         (write_typed_alloc_defns): Don't output for plugin files.
17551         (input_file_by_name): Clear inpisplugin field.
17552         (main): Set inpisplugin field for plugin files.
17554 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
17556         * gengtype-state.c (string_eq): New.
17557         (read_state): Use string_eq instead of strcmp when creating the
17558         state_ident_tab.
17560 2011-04-19  Wei Guozhi  <carrot@google.com>
17562         PR target/47855
17563         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17564         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17565         linkage.
17566         * config/arm/constraints.md (Uu): New constraint.
17567         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17569 2011-04-19  Tristan Gingold  <gingold@adacore.com>
17571         * config.gcc (-*-*-*vms): Added.
17572         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17573         definitions moved.
17574         * config/vms/vms-ld.c: New file.
17575         * config/vms/vms-ar.c: New file.
17576         * config/vms/t-vmsnative: New file.
17578 2011-04-18  Xinliang David Li  <davidxl@google.com>
17580         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17582 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17584         PR middle-end/48661
17585         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17586         if TREE_TYPE (v) is non-NULL.
17588         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17589         gimple_get_virt_mehtod_for_binfo.
17590         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17591         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17592         callers.
17593         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17595 2011-04-18  Michael Matz  <matz@suse.de>
17596             Steve Ellcey  <sje@cup.hp.com>
17598         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17599         use its mode as source mode if it isn't VOIDmode.
17601 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
17603         * doc/passes.texi: Fill crossref nodes.
17605 2011-04-18  Jim Meyering  <meyering@redhat.com>
17607         Fix doubled-word typos in comments and strings
17608         * config/alpha/vms-unwind.h: s/for for/for/
17609         * config/arm/unwind-arm.h: Likewise.
17610         * config/microblaze/microblaze.c: Likewise.
17611         * config/sh/constraints.md: s/in in/in/
17612         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17614 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
17616         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17617         (AVX_FLOAT_MODE_P): Ditto.
17618         (AVX128_VEC_FLOAT_MODE_P): Ditto.
17619         (AVX256_VEC_FLOAT_MODE_P): Ditto.
17620         (AVX_VEC_FLOAT_MODE_P): Ditto.
17621         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17622         (UNSPEC_MASKSTORE): Ditto.
17623         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17624         Merge from <sse>_movmsk<ssemodesuffix> and
17625         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
17626         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
17627         iterator.
17628         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
17629         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17630         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
17632 2011-04-18  Jan Hubicka  <jh@suse.cz>
17634         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
17636         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
17637         (want_inline_function_called_once_p): Break out the logic from
17638         ipa_inline.
17639         (edge_badness): Ensure that profile is not misupdated.
17640         (lookup_recursive_calls): Prioritize by call frequencies.
17641         (inline_small_functions): Move program size estimates here;
17642         actually process whole queue even when unit growth has been
17643         met. (to properly compute inline_failed reasons and for the
17644         case unit size decrease.) Revisit comments on recursive inlining.
17645         (ipa_inline): Remove unit summary code; first inline hot calls
17646         of functions called once, cold calls next.
17647         (order, nnodes): Remove unused variables.
17648         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
17649         (GTFILES): Remove ipa-inline.c
17650         * sel-sched.c (fill_insns): Silence uninitialized var warning.
17652 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17654         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
17656 2011-04-18  Jie Zhang  <jie@codesourcery.com>
17657             Richard Earnshaw  <rearnsha@arm.com>
17659         * arm.c (neon_builtin_type_bits): Remove.
17660         (typedef enum neon_builtin_mode): New.
17661         (T_MAX): Don't define.
17662         (typedef enum neon_builtin_datum): Remove bits, codes[],
17663         num_vars and base_fcode.  Add mode, code and fcode.
17664         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
17665         VAR10): Change accordingly.
17666         (neon_builtin_data[]): Change accordingly
17667         (arm_init_neon_builtins): Change accordingly.
17668         (neon_builtin_compare): Remove.
17669         (locate_neon_builtin_icode): Remove.
17670         (arm_expand_neon_builtin): Change accordingly.
17672         * arm.h (enum arm_builtins): Move to ...
17673         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
17675         * arm.c (arm_builtin_decl): Declare.
17676         (TARGET_BUILTIN_DECL): Define.
17677         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
17678         (arm_builtin_decls[]): New.
17679         (arm_init_neon_builtins): Store builtin declarations in
17680         arm_builtin_decls[].
17681         (arm_init_tls_builtins): Likewise.
17682         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
17683         (arm_builtin_decl): New.
17685 2011-04-18  Richard Guenther  <rguenther@suse.de>
17687         * tree.c (upper_bound_in_type): Build properly canonicalized
17688         INTEGER_CSTs.
17689         (lower_bound_in_type): Likewise.
17691 2011-04-18  Richard Guenther  <rguenther@suse.de>
17693         * gimple.h (gimple_call_addr_fndecl): New function.
17694         (gimple_call_fndecl): Use it.
17695         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17696         for direct calls.
17697         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17698         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17700 2011-04-18  Richard Guenther  <rguenther@suse.de>
17702         PR middle-end/48650
17703         * tree.c (build_string): STRING_CST is now derived from tree_typed.
17705 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17707         PR lto/48492
17708         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17709         DECL_IN_CONSTANT_POOL without RTL.
17711 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
17712             Ira Rosen  <ira.rosen@linaro.org>
17714         PR target/48252
17715         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17716         to match neon_vzip/vuzp/vtrn_internal.
17717         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17718         outputs explicitly dependent on both inputs.
17719         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17721 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17723         PR tree-optimization/48616
17724         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17725         whether the shift is by scalar or vector based on whether all SLP
17726         scalar stmts have the same rhs.
17728 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
17730         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17731         memory operands.
17733 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
17735         PR target/43700
17736         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17737         registers.
17739 2011-04-17  Jan Hubicka  <jh@suse.cz>
17741         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17742         * cgrpahunit.c (cgraph_finalize_function): Do not set
17743         finalized_by_frontend.
17744         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17745         finalized_by_frontend.
17747 2011-04-17  Jan Hubicka  <jh@suse.cz>
17749         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17750         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17751         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17752         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17753         method.
17754         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17755         gimple-fold.c
17756         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17758 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
17760         PR lto/48538
17761         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17762         is non-null before accessing it.
17763         (input_cgraph): Remove trailing spaces.
17765 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17767         * params.def (sms-min-sc): New param flag.
17768         * modulo-sched.c (sms_schedule): Use it.
17769         * doc/invoke.texi (sms-min-sc): Document it.
17771 2011-04-17  Jan Hubicka  <jh@suse.cz>
17773         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17774         present, also set gimple_call_set_cannot_inline.
17775         * ipa-inline.c: Update toplevel comment.
17776         (MAX_TIME): Remove.
17777         (cgraph_clone_inlined_nodes): Fix linebreaks.
17778         (cgraph_check_inline_limits): Restructure to ...
17779         (caller_growth_limits): ... this one; be more tolerant
17780         on growth in nested inline chains; add explanatory comment;
17781         fix stack accounting thinko introduced by previous patch.
17782         (cgraph_default_inline_p): Remove.
17783         (report_inline_failed_reason): New function.
17784         (can_inline_edge_p): New function.
17785         (can_early_inline_edge_p): New function.
17786         (leaf_node_p): Move upwards in file.
17787         (want_early_inline_function_p): New function.
17788         (want_inline_small_function_p): New function.
17789         (want_inline_self_recursive_call_p): New function.
17790         (cgraph_edge_badness): Rename to ...
17791         (edge_badness) ... this one; fix linebreaks.
17792         (update_edge_key): Update call of edge_baddness; add
17793         detailed dump about queue updates.
17794         (update_caller_keys): Use can_inline_edge_p and
17795         want_inline_small_function_p.
17796         (cgraph_decide_recursive_inlining): Rename to...
17797         (recursive_inlining): Use can_inline_edge_p and
17798         want_inline_self_recursive_call_p; simplify and remove no longer
17799         valid FIXME.
17800         (cgraph_set_inline_failed): Remove.
17801         (add_new_edges_to_heap): Use can_inline_edge_p and
17802         want_inline_small_function_p.
17803         (cgraph_decide_inlining_of_small_functions): Rename to ...
17804         (inline_small_functions): ... this one; cleanup; use
17805         can/want predicates; cleanup debug ouput; work edges till fibheap
17806         is exhausted and do not stop once unit growth is reached; remove
17807         later loop processing remaining edges.
17808         (cgraph_flatten): Rename to ...
17809         (flatten_function): ... this one; use can_inline_edge_p
17810         and can_early_inline_edge_p predicates.
17811         (cgraph_decide_inlining): Rename to ...
17812         (ipa_inline): ... this one; remove unreachable nodes before
17813         inlining functions called once; simplify the pass.
17814         (cgraph_perform_always_inlining): Rename to ...
17815         (inline_always_inline_functions): ... this one; use
17816         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17817         (cgraph_decide_inlining_incrementally): Rename to ...
17818         (early_inline_small_functions): ... this one; simplify
17819         using new predicates; cleanup; make dumps prettier.
17820         (cgraph_early_inlining): Rename to ...
17821         (early_inliner): newer inline regular functions into always-inlines;
17822         fix updating of call stmt summaries.
17823         (pass_early_inline): Update for new names.
17824         (inline_transform): Fix formating.
17825         (gate_cgraph_decide_inlining): Rename to ...
17826         (pass_ipa_inline): ... this one.
17827         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17828         * ipa-inline-analysis.c (dump_inline_summary): Update.
17829         (compute_inline_parameters): Do not compute disregard_inline_limits;
17830         look for mismatching arguments.
17831         (estimate_growth): Fix handlig of non-trivial self recursion.
17832         (inline_read_summary): Do not read info->disregard_inline_limits.
17833         (inline_write_summary): Do not write info->disregard_inline_limits.
17834         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17835         and move all checks into can_inline_edge_p predicate; re-enable code
17836         comparing optimization levels.
17837         (expand_call_inline): Do not test inline_forbidden_into_p.
17838         * Makefile.in (ipa-inline.o): Update arguments.
17840 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17842         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17844 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17846         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17848 2011-04-17  Michael Matz  <matz@suse.de>
17850         PR tree-optimization/48622
17851         PR lto/48645
17852         * ipa-inline-analysis.c (inline_read_summary): Read size/time
17853         in same order as they're written.
17855 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17857         * config/pa/predicates.md: Reorganize and simplify predicates.
17858         Eliminate duplicate code checks.
17859         (arith_operand): Rename to arith14_operand
17860         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17861         * config/pa/pa.md: Use renamed operands.
17862         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17863         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17864         arith11_operand, adddi3_operand, indexed_memory_operand,
17865         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17866         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17867         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17868         move_dest_operand, move_src_operand, prefetch_cc_operand,
17869         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17870         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17871         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17872         div_operand, int5_operand, movb_comparison_operator,
17873         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
17874         arith_double_operand, ireg_operand, lhs_lshift_operand,
17875         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
17876         integer_store_memory_operand): Likewise.
17877         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
17878         (integer_store_memory_operand, read_only_operand,
17879         function_label_operand, borx_reg_operand,
17880         non_hard_reg_operand): Likewise.
17881         (eq_neq_comparison_operator): Delete unused operator.
17882         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
17883         function_label_operand.
17884         (emit_move_sequence): Likewise.
17886 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17888         * config/i386/sse.md (sseunpackmode): New mode attribute.
17889         (ssepackmode): Ditto.
17890         (vec_pack_trunc_<mode>): Macroize expander from
17891         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
17892         (vec_unpacks_lo_<mode>): Macroize expander from
17893         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17894         (vec_unpacks_hi_<mode>): Macroize expander from
17895         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17896         (vec_unpacku_lo_<mode>): Macroize expander from
17897         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17898         (vec_unpacku_hi_<mode>): Macroize expander from
17899         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17900         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
17901         ix86_expand_sse4_unpack.
17902         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
17904 2011-04-16  Jan Hubicka  <jh@suse.cz>
17906         * cgraphbuild.c: Include ipa-inline.h.
17907         (reset_inline_failed): Use initialize_inline_failed.
17908         * cgraph.c: Include ipa-inline.h.
17909         (cgraph_create_node_1): Do not initialize estimated_growth.
17910         (initialize_inline_failed): More to ipa-inline-analysis.c
17911         (dump_cgraph_node): Do not dump inline flags.
17912         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
17913         and disregard_inline_limits flags.
17914         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
17915         time, size, estimated_growth.
17916         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
17917         Update.
17918         * cgraphunit.c (cgraph_decide_is_function_needed): Use
17919         DECL_DISREGARD_INLINE_LIMITS.
17920         (cgraph_analyze_function): Do not initialize
17921         node->local.disregard_inline_limits.
17922         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17923         inlinable, versionable and disregard_inline_limits.
17924         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
17925         cgraph_check_inline_limits, cgraph_default_inline_p,
17926         cgraph_edge_badness, update_caller_keys, update_callee_keys,
17927         add_new_edges_to_heap): Update.
17928         (cgraph_decide_inlining_of_small_function): Update; set
17929         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
17930         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
17931         cgraph_decide_inlining_incrementally): Update.
17932         * ipa-inline.h (inline_summary): Add inlinable, versionable,
17933         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
17934         time, size and estimated_growth parameters.
17935         (estimate_edge_growth): Update.
17936         (initialize_inline_failed): Declare.
17937         * ipa-split.c: Include ipa-inline.h
17938         (execute_split_functions): Update.
17939         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
17940         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
17941         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
17942         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
17943         estimated_growth to INT_MIN.
17944         (inline_node_duplication_hook): Likewise.
17945         (dump_inline_summary): Dump new fields.
17946         (compute_inline_parameters): Update.
17947         (estimate_edge_time, estimate_time_after_inlining,
17948         estimate_size_after_inlining, estimate_growth, inline_read_summary,
17949         inline_write_summary):
17950         (initialize_inline_failed): Move here from cgraph.c.
17951         * tree-sra.c: Include ipa-inline.h.
17952         (ipa_sra_preliminary_function_checks): Update.
17953         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
17954         ipa-inline.h.
17956 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17958         * config/i386/sse.md (V16): New mode iterator.
17959         (VI1, VI8): Ditto.
17960         (AVXMODEQI, AVXMODEDI): Remove.
17961         (sse2, sse3): New mode attribute.
17962         (mov<mode>): Use V16 mode iterator.
17963         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
17964         (push<mode>1): Use V16 mode iterator.
17965         (movmisalign<mode>): Ditto.
17966         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17967         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
17968         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17969         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
17970         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
17971         avx_movdqu<avxmodesuffix>.
17972         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
17973         *avx_movdqu<avxmodesuffix>.
17974         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
17975         avx_lddqu<avxmodesuffix>.
17976         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
17977         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
17978         avx_movnt<AVXMODEDI:mode>.
17979         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
17980         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
17982 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17984         PR target/48629
17985         * haifa-sched.c (prune_ready_list, schedule_block): Use
17986         sched_pressure_p rather than flag_sched_pressure.
17988 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
17990         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17991         cgraph_get_node instead of cgraph_get_create_node.
17993 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
17995         * cfgexpand.c (expand_debug_expr): Use
17996         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
17998 2011-04-15  Michael Matz  <matz@suse.de>
18000         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
18001         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
18002         * function.c (gimplify_parameters): Ditto.
18003         * gimplify.c (gimplify_vla_decl): Ditto.
18005         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
18006         (gimple_call_set_alloca_for_var): New inline function.
18007         (gimple_call_alloca_for_var_p): Ditto.
18008         * gimple.c (gimple_build_call_from_tree): Remember
18009         CALL_ALLOCA_FOR_VAR_P state.
18010         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
18012         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
18013         calls if they were for VLA objects.
18015 2011-04-15  Martin Jambor  <mjambor@suse.cz>
18017         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
18018         of ADR_EXPRs.
18020 2011-04-15  Martin Jambor  <mjambor@suse.cz>
18022         PR middle-end/48601
18023         * tree-emutls.c (lower_emutls_function_body): Call
18024         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
18025         result is non-NULL.
18027 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
18029         * c-decl.c (detect_field_duplicates): Call
18030         objc_detect_field_duplicates instead of objc_get_interface_ivars.
18032 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
18034         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
18035         * gimple.c (gimple_asm_clobbers_memory_p): Define.
18036         * ipa-pure-const.c (check_stmt): Call it.
18037         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
18039 2011-04-15  Richard Guenther  <rguenther@suse.de>
18041         PR tree-optimization/48290
18042         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
18043         Properly decide inhibiting propagation based on the valueized
18044         operand.  Do loop-closed SSA form preserving here ...
18045         (init_copy_prop): ... not here.
18047 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
18049         PR target/48612
18050         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
18051         (*ieee_smax<mode>3): Likewise.
18053 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18055         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
18056         Replace match_operand with match_dup for the third operand in
18057         these expanders.
18059 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
18061         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
18062         to track processing of conditionals.  Update all callers.
18063         (try_combine, simplify_if_then_else): Update.
18065 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
18067         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
18068         -fsched-pressure.
18070 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
18072         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
18073         instead of match_operand for operand 3.
18075 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
18077         * recog.h (insn_operand_data): Add an "allows_mem" field.
18078         * genoutput.c (output_operand_data): Initialize it.
18079         * optabs.c (maybe_legitimize_operand_same_code): New function.
18080         (maybe_legitimize_operand): Use it when matching the original
18081         op->value.
18083 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18085         * gimplify.c: Fix issues in comments throughout.
18086         (voidify_wrapper_expr): Fix long line.
18087         (build_stack_save_restore): Likewise.
18088         (gimplify_loop_expr): Likewise.
18089         (gimplify_compound_lval): Likewise.
18090         (gimplify_init_ctor_eval): Likewise.
18091         (gimplify_modify_expr_rhs): Likewise.
18092         (omp_notice_threadprivate_variable): Likewise.
18094 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18096         * cfgexpand.c (expand_call_stmt): Convert the function type to the
18097         original one if this is not a builtin function.
18099 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
18101         PR target/48605
18102         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18103         offset it as needed based on top 2 bits in operands[3], change
18104         MEM mode to SFmode and mask those 2 bits away from operands[3].
18106 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
18108         * c-parser.c (c_parser_objc_protocol_definition): Updated for
18109         change from objc_declare_protocols() to objc_declare_protocol().
18111 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
18113         * config/i386/sse.md (sse4_1): New mode attribute.
18114         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18115         avx_blend<ssemodesuffix><avxmodesuffix> and
18116         sse4_1_blend<ssemodesuffix> using VF mode iterator.
18117         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18118         avx_blendv<ssemodesuffix><avxmodesuffix> and
18119         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18120         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18121         avx_dp<ssemodesuffix><avxmodesuffix> and
18122         sse4_1_dp<ssemodesuffix> using VF mode iterator.
18123         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18124         (sse4_1_packusdw): Merge with *avx_packusdw.
18125         (sse4_1_pblendvb): Merge with *avx_pblendvb.
18126         (sse4_1_pblendw): Merge with *avx_pblendw.
18127         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18128         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18129         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18130         VF mode iterator.
18131         (sse4_1_round<ssescalarmodesuffix>): Merge with
18132         *avx_round<ssescalarmodesuffix>.
18133         (aesenc): Merge with *avx_aesenc.
18134         (aesenclast): Merge with *avx_aesenclast.
18135         (aesdec): Merge with *avx_aesdec.
18136         (aesdeclast): Merge with *avx_aesdeclast.
18137         (pclmulqdq): Merge with *pclmulqdq.
18138         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18139         New predicate.
18140         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18142 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
18144         PR middle-end/48608
18145         * cfgexpand.c (get_decl_align_unit): Renamed to ...
18146         (align_local_variable): This.  Update DECL_ALIGN.
18147         (add_stack_var): Updated.
18148         (expand_one_stack_var): Likewise.
18150 2011-04-14  Richard Guenther  <rguenther@suse.de>
18152         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18153         Remove.
18154         (dse_initialize_block_local_data, dse_leave_block,
18155         record_voperand_set, get_stmt_uid): Likewise.
18156         (dse_possible_dead_store_p): Allow any kind of killing stmt.
18157         (dse_optimize_stmt): Remove voperand set handling code.
18158         Simplify and improve to handle any kind of killing stmt.
18159         (dse_record_phi): Remove.
18160         (dse_enter_block): Simplify.
18161         (tree_ssa_dse): Likewise.
18162         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18164 2011-04-14  Jan Hubicka  <jh@suse.cz>
18166         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18167         * cgraph.h (struct inline_summary): Move to ipa-inline.h
18168         (cgraph_local_info): Remove inline_summary.
18169         * ipa-cp.c: Include ipa-inline.h.
18170         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18171         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18172         accesor.
18173         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18174         (input_overwrite_node): Do not set inline summary.
18175         (input_node): Do not stream inline summary.
18176         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
18177         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
18178         growth; we do not have inline parameters computed for that anyway.
18179         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
18180         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
18181         (inline_summary_t): New type and VECtor.
18182         (debug_inline_summary, dump_inline_summaries): Declare.
18183         (inline_summary): Use VOCtor.
18184         (estimate_edge_growth): Kill hack computing call stmt size directly.
18185         * lto-section-in.c (lto_section_name): Add inline section.
18186         * ipa-inline-analysis.c: Include lto-streamer.h
18187         (node_removal_hook_holder, node_duplication_hook_holder): New holders
18188         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
18189         (inline_summary_vec): Define.
18190         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
18191         dump_inline_summaries): New functions.
18192         (estimate_function_body_sizes): Properly compute size/time of outgoing
18193         calls.
18194         (compute_inline_parameters): Alloc inline_summary; do not compute
18195         size/time of incomming calls.
18196         (estimate_edge_time): Avoid missing time summary hack.
18197         (inline_read_summary): Read inline summary info.
18198         (inline_write_summary): Write inline summary info.
18199         (inline_free_summary): Free all hooks and inline summary vector.
18200         * lto-streamer.h: Add LTO_section_inline_summary section.
18201         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
18202         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
18204 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18206         * tree-vectorizer.h (vect_strided_store_supported): Add a
18207         HOST_WIDE_INT argument.
18208         (vect_strided_load_supported): Likewise.
18209         (vect_permute_store_chain): Return void.
18210         (vect_transform_strided_load): Likewise.
18211         (vect_permute_load_chain): Delete.
18212         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
18213         count argument.  Check that the count is a power of two.
18214         (vect_strided_load_supported): Likewise.
18215         (vect_permute_store_chain): Return void.  Update after above changes.
18216         Assert that the access is supported.
18217         (vect_permute_load_chain): Likewise.
18218         (vect_transform_strided_load): Return void.
18219         * tree-vect-stmts.c (vectorizable_store): Update calls after
18220         above interface changes.
18221         (vectorizable_load): Likewise.
18222         (vect_analyze_stmt): Don't check for strided powers of two here.
18224 2011-04-14  Richard Guenther  <rguenther@suse.de>
18226         PR tree-optimization/48590
18227         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18228         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18229         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
18230         BUILT_IN_STACK_SAVE.
18231         * tree-ssa-dce.c (propagate_necessity): Handle
18232         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18234 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
18236         * c-parser.c (c_parser_objc_class_declaration): Updated call to
18237         objc_declare_class.
18239 2011-04-14  Richard Guenther  <rguenther@suse.de>
18241         * tree.h (get_object_alignment_1): Declare.
18242         * builtins.c (get_object_alignment_1): Split out worker from ...
18243         (get_object_alignment): ... here.
18244         * fold-const.c (get_pointer_modulus_and_residue): Use
18245         get_object_alignment_1.
18247 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18249         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
18250         type parameter.
18251         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
18252         parameter.  Generalise code to handle arrays as well as vectors.
18253         (vect_setup_realignment): Update accordingly.
18254         * tree-vect-stmts.c (vectorizable_store): Likewise.
18255         (vectorizable_load): Likewise.
18257 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18259         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
18260         within the per-copy loop.
18262 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18264         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
18265         in the dump file.
18267 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18269         * doc/options.texi (Negative): Explicitly mention that the
18270         Negative chain must be circular.
18272 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
18274         * function.h (block_chainon): Declare.
18275         * function.c (block_chainon): Define.
18277 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
18278             Eric Weddington  <eric.weddington@atmel.com>
18279             Georg-Johann Lay  <avr@gjlay.de>
18281         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
18282         New Includes
18283         (avr_init_builtins, avr_expand_builtin,
18284         avr_expand_delay_cycles, avr_expand_unop_builtin,
18285         avr_expand_binop_builtin ): New functions.
18286         (avr_builtin_id): New enum
18287         (struct avr_builtin_description): New struct
18288         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
18289         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18291         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
18292         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
18293         UNSPECV_DELAY_CYCLES): new enumeration values
18294         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
18295         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
18296         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
18297         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
18298         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
18299         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
18300         "fmulsu"): New insns
18302         * config/avr/avr-c.c: fix line endings
18303         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
18304         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
18305         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
18306         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
18307         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
18309         * doc/extend.texi (AVR Built-in Functions): New node
18310         (Target Builtins): Add documentation of AVR
18311         built-in functions.
18313 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
18315         PR target/44643
18316         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
18317         alone. Error if non-const data has attribute progmem.
18319 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18321         * tree.h (struct tree_constructor): Include tree_typed instead of
18322         tree_common.
18323         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
18324         TS_TYPED instead of TS_COMMON.
18326 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
18328         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
18329         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
18330         (sse2_psadbw): Merge with *avx_psadbw.
18331         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
18332         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
18333         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
18334         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
18335         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
18336         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
18337         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
18338         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
18339         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
18340         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
18341         (ssse3_palignrti): Merge with *avx_palignrti.
18343 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18345         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
18346         * tree-ssanames.c (fini_ssanames): VEC_free it.
18347         (make_ssa_name_fn): Update for VECness of free_ssanames.
18348         (release_ssa_name, release_dead_ssa_names): Likewise.
18349         * tree.h (struct tree_ssa_name): Include tree_typed instead of
18350         tree_common.
18351         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
18352         TS_TYPED instead of TS_COMMON.
18354 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18356         * postreload-gcse.c (gcse_after_reload_main): Add calls to
18357         statistics_counter_event.
18358         * tree-ssa-copyrename.c (stats): Define.
18359         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
18360         statistics_counter_event.
18361         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
18362         (bswap_stats, widen_mul_stats): Define.
18363         (insert_reciprocals): Increment rdivs_inserted.
18364         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
18365         rfuncs_inserted.  Add calls to statistics_counter_event.
18366         (execute_cse_sincos_1): Increment inserted.
18367         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
18368         statistics_counter_event.
18369         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
18370         of bswap_stats.  Add calls to statistics_counter_event.
18371         (convert_mult_to_widen): Increment widen_mults_inserted.
18372         (convert_plusminus_to_widen): Increment maccs_inserted.
18373         (convert_mult_to_fma): Increment fmas_inserted.
18374         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
18375         calls to statistics_counter_event.
18377 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
18379         PR rtl-optimization/48455
18380         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
18381         `temp_costs->mem_cost'.
18383 2011-04-13  Jan Hubicka  <jh@suse.cz>
18385         * ipa-inline.h: New file.
18386         * ipa-inline-analysis.c: New file. Broken out of ...
18387         * ipa-inline.c: ... this file; update toplevel comment;
18388         include ipa-inline.h
18389         (inline_summary): Move to ipa-inline.h
18390         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
18391         ipa-inline-analysis.c.
18392         (cgraph_estimate_time_after_inlining): Rename to
18393         estiamte_time_after_inlining; move to ipa-inline-analysis.c
18394         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
18395         to estimate_edge_growth.
18396         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
18397         rename to estimate_size_after_inlining.
18398         (cgraph_mark_inline_edge): Update for new naming convention.
18399         (cgraph_check_inline_limits): Likewise.
18400         (cgraph_edge_badness): Likewise.
18401         (cgraph_decide_recursive_inlining): Likewise.
18402         (cgraph_decide_inlining_of_small_functions): Likewise.
18403         (cgraph_decide_inlining_incrementally): Likewise.
18404         (cgraph_estimate_growth): Rename to estimate_growth; move to
18405         ipa-inline-analysis.c.
18406         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18407         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18408         (compute_inline_parameters): Likewise.
18409         (compute_inline_parameters_for_current): Likewise.
18410         (pass_inline_parameters): Likewise.
18411         (inline_indirect_intraprocedural_analysis): Likewise.
18412         (analyze_function): Rename to inline_analyze_function; likewise.
18413         (add_new_function): Move to ipa-inline-analysis.c.
18414         (inline_generate_summary): Likewise.
18415         (inline_read_summary): Likewise.
18416         (inline_write_summary): Likewise.
18417         * Makefile.in (ipa-inline-analysis.c): New file.
18419 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18421         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18422         * configure: Regenerate.
18424 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18426         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18427         instead of tree_common.
18428         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18429         Likewise.
18430         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18431         TS_TYPED rather than TS_COMMON.
18432         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18434 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
18436         PR target/45263
18437         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18438         r20 around calls of __tablejump_elpm__
18440 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18442         PR middle-end/48591
18443         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18444         NULL.
18445         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18447 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
18449         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18450         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18451         (cfi_vec): New typedef.
18452         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18453         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18454         (cie_cfi_vec): New static variable.
18455         (cie_cfi_head): Delete.
18456         (add_cfi): Accept a cfi_vec * as first argument. All callers and
18457         declaration changed. Use vector rather than list operations.
18458         (new_cfi): Don't initialize the dw_cfi_next field.
18459         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18460         rather than list operations.
18461         (lookup_cfa): Use vector rather than list operations.
18462         (output_cfis): New argument upto. Accept a cfi_vec rather than
18463         a dw_cfi_ref list head as argument. All callers changed.
18464         Iterate over the vector using upto as a maximum index.
18465         (output_all_cfis): New static function.
18466         (output_fde): Use vector rather than list operations. Use the
18467         new upto argument for output_cfis rather than manipulating a
18468         list.
18469         (dwarf2out_begin_prologue): Change initializations to match
18470         new struct members.
18471         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18472         from the vector length rather than searching for the end of a list.
18473         Use output_all_cfis.
18474         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18476 2011-04-13  Nick Clifton  <nickc@redhat.com>
18478         * config/rx/rx.md (movmemsi): Do not use this pattern when
18479         volatile pointers are involved.
18481 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
18483         * config/i386/sse.md (pinsrbits): Remove.
18484         (sse2_packsswb): Merge with *avx_packsswb.
18485         (sse2_packssdw): Merge with *avx_packssdw.
18486         (sse2_packuswb): Merge with *avx_packuswb.
18487         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18488         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18489         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18490         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18491         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18492         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18493         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18494         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18495         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18496         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18497         (sse2_loadld): Merge with *avx_loadld.
18498         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18499         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18500         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18501         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18502         (vec_concatv2di): Merge with *vec_concatv2di_avx.
18504 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
18506         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18507         calling TREE_CHAIN.
18508         * print-tree.c (print_node): Likewise.
18509         * tree-inline.c (copy_tree_r): Likewise.
18510         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18511         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18512         instead of TS_COMMON.
18513         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18514         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18515         (copy_node_stat): Zero TREE_CHAIN only if necessary.
18516         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18517         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18518         ...and these...
18519         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18520         * tree.h: ...here.
18521         (TREE_CHAIN): Check for a TS_COMMON structure.
18522         (TREE_TYPE): Check for a TS_TYPED structure.
18524 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
18526         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18527         cgraph_get_create_node instead of cgraph_node.
18529 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18531         * c-parser.c (c_parser_initelt): Updated call to
18532         objc_build_message_expr.
18533         (c_parser_postfix_expression): Likewise.
18535 2011-04-12  Kai Tietz  <ktietz@redhat.com>
18537         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18538         MASK_MS_BITFIELD_LAYOUT bit.
18540 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18542         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18543         assert it is always true.
18544         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18545         moves.
18547 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18549         * c-parser.c (c_lex_one_token): Rewritten conditional used when
18550         compiling Objective-C to be more efficient.
18552 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
18554         * opts-common.c (decode_cmdline_options_to_array): Remove variable
18555         argv_copied.
18557 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18559         * recog.h, genoutput.c, optabs.c: Revert last patch.
18561 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18563         PR target/48090
18564         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18566 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18568         * recog.h (insn_operand_data): Add an "allows_mem" field.
18569         * genoutput.c (output_operand_data): Initialize it.
18570         * optabs.c (maybe_legitimize_operand_same_code): New function.
18571         (maybe_legitimize_operand): Use it when matching the original
18572         op->value.
18574 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18576         * genpreds.c (process_define_predicate): Move most processing
18577         to gensupport.c.  Continue to validate the expression.
18578         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18579         (process_define_predicate): Move processing to gensupport.c.
18580         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18581         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18582         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
18583         argument.
18584         (valid_predicate_name_p): New function, split out from old
18585         genpreds.c:process_define_predicate.
18586         (process_define_predicate): New function, combining code from
18587         old genpreds.c and genrecog.c functions.
18588         (process_rtx): Call it for DEFINE_PREDICATE and
18589         DEFINE_SPECIAL_PREDICATE.
18591 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18593         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18594         size of a '%A' memory reference.
18595         (T_DREG, T_QREG): New neon_builtin_type_bits.
18596         (arm_init_neon_builtins): Assert that the load and store operands
18597         are neon_struct_operands.
18598         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18599         (NEON_ARG_MEMORY): New builtin_arg.
18600         (neon_dereference_pointer): New function.
18601         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18602         Handle NEON_ARG_MEMORY.
18603         (arm_expand_neon_builtin): Update after above interface changes.
18604         Use NEON_ARG_MEMORY for loads and stores.
18605         * config/arm/predicates.md (neon_struct_operand): New predicate.
18606         * config/arm/iterators.md (V_two_elem): Tweak formatting.
18607         (V_three_elem): Use BLKmode for accesses that have no associated mode.
18608         (V_four_elem): Tweak formatting.
18609         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18610         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18611         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18612         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18613         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18614         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18615         (neon_vst4<mode>): Replace pointer operand with a memory operand.
18616         Use %A in the output template.
18617         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18618         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18619         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18620         the width of the memory access.  Remove post-increment.
18621         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18623 2011-04-12  Nick Clifton  <nickc@redhat.com>
18625         * config/v850/v850.c (expand_prologue): Do not use the CALLT
18626         instruction for interrupt handlers if the target is the basic V850
18627         architecture.
18628         (expand_epilogue): Likewise.
18630 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18632         PR rtl-optimization/48549
18633         * combine.c (propagate_for_debug): Also stop after BB_END of
18634         this_basic_block.  Process LAST and just stop processing after it.
18635         (combine_instructions): If last_combined_insn has been deleted,
18636         set last_combined_insn to its PREV_INSN.
18638 2011-04-12  Richard Guenther  <rguenther@suse.de>
18640         PR tree-optimization/46076
18641         * gimple.h (struct gimple_statement_call): Add fntype field.
18642         (gimple_call_fntype): Adjust.
18643         (gimple_call_set_fntype): New function.
18644         * gimple.c (gimple_build_call_1): Set the call function type.
18645         * gimplify.c (gimplify_call_expr): Preserve the function
18646         type the frontend used for the call.
18647         (gimplify_modify_expr): Likewise.
18648         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
18649         function type.
18650         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
18651         function type.
18652         * tree-ssa.c (useless_type_conversion_p): Function pointer
18653         conversions are useless.
18655 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18657         * cgraph.h (cgraph_node): Remove function declaration.
18658         (cgraph_create_node): Declare.
18659         (cgraph_get_create_node): Likewise.
18660         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
18661         Updated all callers.
18662         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
18663         the decl does not already exist.  Call cgraph_get_create_node instead
18664         of cgraph_node.
18665         (cgraph_get_create_node): New function.
18666         (cgraph_same_body_alias): Update comment.
18667         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
18668         assert it does not return NULL.
18669         (cgraph_update_edges_for_call_stmt): Likewise.
18670         (cgraph_clone_edge): Likewise.
18671         (cgraph_create_virtual_clone): Likewise.
18672         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
18673         instead of cgraph_node.
18674         (cgraph_add_new_function): Call cgraph_create_node or
18675         cgraph_get_create_node instead of cgraph_node.
18676         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
18677         instead of cgraph_node.
18678         (record_eh_tables): Likewise.
18679         (mark_address): Likewise.
18680         (mark_load): Likewise.
18681         (build_cgraph_edges): Call cgraph_get_create_node instead
18682         of cgraph_node.
18683         (rebuild_cgraph_edges): Likewise.
18684         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
18685         instead of cgraph_node.
18686         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
18687         cgraph_node.
18688         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
18689         cgraph_create_node instead of cgraph_node.
18690         * c-decl.c (finish_function): Call cgraph_get_create_node instead
18691         of cgraph_node.
18692         * lto-cgraph.c (input_node): Likewise.
18693         * lto-streamer-in.c (input_function): Likewise.
18694         * varasm.c (mark_decl_referenced): Likewise.
18695         (assemble_alias): Likewise.
18697 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18699         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18700         instead of cgraph_node and assert it does not return NULL.
18701         * lto-streamer-in.c (lto_read_body): Likewise.
18702         * omp-low.c (new_omp_context): Likewise.
18703         (create_task_copyfn): Likewise.
18704         * tree-emutls.c (lower_emutls_function_body): Likewise.
18705         * matrix-reorg.c (transform_allocation_sites): Likewise.
18707 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18709         PR c/48552
18710         * c-typeck.c (build_asm_expr): Error out on attempts to use
18711         void type outputs or inputs for constraints that allow reg or
18712         don't allow memory.
18714 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
18715             Richard Earnshaw  <rearnsha@arm.com>
18717         PR target/48250
18718         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18719         to use sign-magnitude offsets. Reject unsupported unaligned
18720         cases. Add detailed description in comments.
18721         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18722         condition from TARGET_32BIT to TARGET_ARM.
18724 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
18726         * tree.h (struct typed_tree): New.
18727         (struct tree_common): Include it instead of tree_base.
18728         (TREE_TYPE): Update for new location of type field.
18729         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18730         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18731         (union tree_node): Add typed field.
18732         * treestruct.def (TS_TYPED): New.
18733         * lto-streamer.c (check_handled_ts_structures): Handle it.
18734         * tree.c (MARK_TS_TYPED): New macro.
18735         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18737 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
18739         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18740         (force_nonfallthru): Do not alter the loop nest if no basic block
18741         was created.
18743 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18745         * config/i386/sse.md (VI): New mode iterator.
18746         (SSEMODEI): Remove.
18747         (AVX256MODEI): Ditto.
18748         (AVXMODEF4P): Ditto.
18749         (avxvecpsmode): Ditto.
18750         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
18751         (sse2_andnot<mode>3): New expander.
18752         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18753         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
18754         (<any_logic:code><mode>3): Use VI mode iterator.
18755         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18756         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
18757         (*andnottf3): Handle AVX three-operand constraints.
18758         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18760 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18761             Robert Millan  <rmh@gnu.org>
18763         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18764         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18765         GNU_USER_DYNAMIC_LINKER64): Define.
18766         (REG_NAME): Don't undefine.
18767         (MD_UNWIND_SUPPORT): Undefine.
18768         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18769         (REG_NAME): Don't undefine.
18770         (MD_UNWIND_SUPPORT): Undefine.
18771         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18773 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18775         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18776         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18778 2011-04-11  Xinliang David Li  <davidxl@google.com>
18780         * value-profile.c (check_ic_target): New function.
18781         (gimple_ic_transform): Sanity check indirect call target.
18782         * gimple-low.c (gimple_check_call_args): Interface change.
18783         (gimple_check_call_matching_types): New function.
18784         * tree-inline.c (tree_can_inline_p): Call new function.
18786 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
18788         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18789         tree-pretty-print.h & realmpfr.h.
18791 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
18793         PR middle-end/48464
18794         * ira.c (setup_pressure_classes): Fix typo in loop condition.
18795         (setup_allocno_and_important_classes): Ditto.
18797 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18799         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18800         GNU_USER_DYNAMIC_LINKER.
18801         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18802         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18803         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18804         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18805         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18806         GNU_USER_TARGET_OS_CPP_BUILTINS.
18807         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18808         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18809         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18810         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18811         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18812         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18813         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18814         GNU_USER_TARGET_OS_CPP_BUILTINS.
18815         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18816         GNU_USER_DYNAMIC_LINKER.
18817         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18818         GNU_USER_TARGET_OS_CPP_BUILTINS.
18819         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18820         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18821         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18822         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18823         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18824         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18825         GNU_USER_DYNAMIC_LINKER64): Remove.
18826         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18827         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18828         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18829         GNU_USER_DYNAMIC_LINKER.
18830         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18831         GNU_USER_TARGET_OS_CPP_BUILTINS.
18832         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18833         GNU_USER_TARGET_OS_CPP_BUILTINS.
18834         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18835         to GNU_USER_TARGET_OS_CPP_BUILTINS.
18836         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18837         GNU_USER_TARGET_OS_CPP_BUILTINS.
18838         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18839         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18840         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18841         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18842         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18843         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18844         GNU_USER_DYNAMIC_LINKER.
18845         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18846         GNU_USER_TARGET_OS_CPP_BUILTINS.
18847         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18848         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18849         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18850         GNU_USER_DYNAMIC_LINKER.
18851         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18852         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18853         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
18854         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18855         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18856         GNU_USER_DYNAMIC_LINKER.
18857         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18858         GNU_USER_DYNAMIC_LINKERN32.
18859         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18860         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
18861         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
18862         GNU_USER_DYNAMIC_LINKER32.
18863         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18864         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18865         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18866         GNU_USER_DYNAMIC_LINKER.
18867         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18868         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18869         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18870         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18871         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18872         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
18873         GNU_USER_DYNAMIC_LINKER32.
18874         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18875         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
18876         GNU_USER_DYNAMIC_LINKER.
18877         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
18878         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18879         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18880         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
18881         GNU_USER_DYNAMIC_LINKER64.
18882         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
18883         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18884         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18885         GNU_USER_DYNAMIC_LINKER.
18886         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
18887         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18888         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18889         GNU_USER_DYNAMIC_LINKER.
18890         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
18891         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18892         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18893         GNU_USER_DYNAMIC_LINKER32.
18894         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18895         GNU_USER_DYNAMIC_LINKER64.
18896         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18897         GNU_USER_DYNAMIC_LINKER64.
18898         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
18899         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18900         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
18901         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18902         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18904 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18906         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
18907         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
18908         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
18909         GNU_USER_DYNAMIC_LINKER.
18910         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18911         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
18912         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
18913         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
18914         GNU_USER_DYNAMIC_LINKER64.
18915         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18916         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
18917         GNU_USER_LINK_EMULATION.
18918         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18919         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
18920         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
18921         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
18922         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
18923         CPP_SPEC, CC1_SPEC): Remove.
18924         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
18925         (GNU_USER_DYNAMIC_LINKER): Define.
18926         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
18927         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
18928         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
18929         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
18930         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
18931         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
18932         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18933         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
18934         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
18935         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
18936         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
18937         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
18938         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
18939         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
18940         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
18941         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18942         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18943         GNU_USER_DYNAMIC_LINKER.
18944         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18945         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18946         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18947         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18948         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18949         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18950         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
18951         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
18952         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
18953         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
18955 2011-04-11  Kai Tietz  <ktietz@redhat.com>
18957         PR target/9601
18958         PR target/11772
18959         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
18960         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
18961         comment.
18962         (ix86_is_msabi_thiscall): Removed.
18963         (ix86_is_type_thiscall): Likewise.
18964         (ix86_get_callcvt): New function.
18965         (ix86_comp_type_attributes): Simplify check.
18966         (ix86_function_regparm): Use ix86_get_callcvt for calling
18967         convention attribute checks.
18968         (ix86_return_pops_args): Likewise.
18969         (ix86_static_chain): Likewise.
18970         (x86_this_parameter): Likewise.
18971         (x86_output_mi_thunk): Likewise.
18972         (ix86_function_type_abi): Optimize check for types without attributes.
18973         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
18974         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
18975         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
18976         by flag-values.
18977         (IX86_BASE_CALLCVT): Helper macro.
18978         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18979         Use ix86_get_callcvt for calling convention attribute checks and avoid
18980         symbol-decoration for stdcall in TARGET_RTD case.
18981         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18982         Likewise.
18983         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
18984         for declaration.
18986 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18988         * config/i386/sse.md (VI_128): New mode iterator.
18989         (VI12_128): Rename from SSEMODE12.
18990         (VI14_128): Rename from SSEMODE14.
18991         (VI124_128): New mode iterator.
18992         (VI24_128): Rename from SSEMODE248.
18993         (VI248_128): Rename from SSEMODE248.
18994         (SSEMODE124C8): Remove.
18995         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18996         (*sse2_<plusminus_insn><mode>3): Merge with
18997         *avx_<plusminus_insn><mode>3.
18998         (*mulv8hi3): Merge with *avx_mulv8hi3.
18999         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
19000         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
19001         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
19002         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
19003         (ashr<mode>3): Merge with *avx_ashr<mode>3.
19004         (lshr<mode>3): Merge with *avx_lshr<mode>3.
19005         (ashl<mode>3): Merge with *avx_ashl<mode>3.
19006         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
19007         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
19008         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19009         (*<smaxmin:code>v8hi3): Ditto.
19010         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
19011         (*<smaxmin:code>v16qi3): Ditto.
19012         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
19013         (*sse2_eq<mode>3): Ditto.
19014         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
19015         (*sse2_gt<mode>3): Ditto.
19016         (vcondv2di): Split out of vcond<mode>.
19017         (vconduv2di): Split out of vcondu<mode>.
19019 2011-04-11  Richard Guenther  <rguenther@suse.de>
19021         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
19022         before calling tree_low_cst.
19024 2011-04-11  Richard Guenther  <rguenther@suse.de>
19026         * stor-layout.c (layout_type): Compute all array index size operations
19027         in the original type.
19028         (initialize_sizetypes): Add comment.
19029         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
19031 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19033         * common.opt (Tbss=, Tdata=, Ttext=): New options.
19035 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19037         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
19038         of cgraph_node, handle NULL return value.
19039         (cgraph_global_info): Likewise.
19040         (cgraph_rtl_info): Likewise.
19041         * tree-inline.c (estimate_num_insns): Likewise.
19042         * gimplify.c (unshare_body): Likewise.
19043         (unvisit_body): Likewise.
19044         (gimplify_body): Likewise.
19045         * predict.c (optimize_function_for_size_p): Likewise.
19046         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19047         (call_may_clobber_ref_p_1): Likewise.
19048         * varasm.c (function_section_1): Likewise.
19049         (assemble_start_function): Likewise.
19051 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19053         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
19054         of cgraph_node.
19055         * final.c (rest_of_clean_state): Likewise.
19056         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
19057         * passes.c (pass_init_dump_file): Likewise.
19058         (execute_all_ipa_transforms): Likewise.
19059         (function_called_by_processed_nodes_p): Likewise.
19060         * predict.c (maybe_hot_frequency_p): Likewise.
19061         (probably_never_executed_bb_p): Likewise.
19062         (compute_function_frequency): Likewise.
19063         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
19064         (unnest_nesting_tree_1): Likewise.
19065         (lower_nested_functions): Likewise.
19066         * tree-optimize.c (execute_fixup_cfg): Likewise.
19067         (tree_rest_of_compilation): Likewise.
19068         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
19069         * tree-sra.c (ipa_early_sra): Likewise.
19070         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19071         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
19072         * ipa.c (record_cdtor_fn): Likewise.
19073         * ipa-inline.c (cgraph_early_inlining): Likewise.
19074         (compute_inline_parameters_for_current): Likewise.
19075         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19076         * ipa-pure-const.c (local_pure_const): Likewise.
19077         * ipa-split.c (split_function): Likewise.
19078         (execute_split_functions): Likewise.
19079         * cgraphbuild.c (build_cgraph_edges): Likewise.
19080         (rebuild_cgraph_edges): Likewise.
19081         (cgraph_rebuild_references): Likewise.
19082         (remove_cgraph_callee_edges): Likewise.
19083         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
19084         (verify_cgraph_node): Likewise.
19085         (cgraph_analyze_functions): Likewise.
19086         (cgraph_preserve_function_body_p): Likewise.
19087         (save_inline_function_body): Likewise.
19088         (save_inline_function_body): Likewise.
19089         * tree-inline.c (copy_bb): Likewise.
19090         (optimize_inline_calls): Likewise.
19092 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19094         PR tree-optimization/48195
19095         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19096         ipa_check_create_edge_args.
19097         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19098         ipa_check_create_edge_args.
19099         * ipa-inline.c (inline_generate_summary): Do not call
19100         ipa_check_create_node_params and ipa_check_create_edge_args.
19101         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19102         ipa_check_create_edge_args.
19104 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
19106         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19107         instead of loop.
19108         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19109         * function.c (record_hard_reg_sets): Likewise.
19110         * ira.c (compute_regs_asm_clobbered): Likewise.
19111         * sched-deps.c (sched_analyze_1): Likewise.
19112         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19114 2011-04-09  Xinliang David Li  <davidxl@google.com>
19116         PR tree-optimization/PR48484
19117         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19118         has_valid_pred lazily
19120 2011-04-09  Duncan Sands  <baldrick@free.fr>
19122         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19124 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
19126         * combine.c (combine_validate_cost): Adjust comments.  Set registered
19127         cost of I0 to zero at the end, if any.
19129 2011-04-08  Xinliang David Li  <davidxl@google.com>
19131         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19132         to insane profile data.
19134 2011-04-08  Xinliang David Li  <davidxl@google.com>
19136         * ipa-cp.c (ipcp_update_profiling): Correct
19137          negative scale factor due to insane profile data.
19139 2011-04-08  Xinliang David Li  <davidxl@google.com>
19141         * final.c (dump_basic_block_info): New function.
19142         (final): Dump basic block.
19143         (final_scan_insn): Remove old dump.
19145 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19147         PR target/47829
19148         * config.gcc (i386-*-freebsd): Disable unwind table generation for
19149         crtbegin/crtend.
19151 2011-04-08  Michael Matz  <matz@suse.de>
19153         PR middle-end/48389
19154         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19155         functions.
19156         (rebuild_jump_labels): Call rebuild_jump_labels_1.
19157         * rtl.h (rebuild_jump_labels_chain): Declare.
19158         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19159         insns inserted on edges.
19161 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
19163         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19164         * config/arm/arm-arches.def: New.
19165         * config/arm/arm-opts.h: New.
19166         * config/arm/genopt.sh: New.
19167         * config/arm/arm-tables.opt: New (generated).
19168         * config/arm/arm.c (arm_handle_option, arm_target_help,
19169         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19170         (all_architectures): Get most table contents from arm-arches.def.
19171         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19172         arm_selected_tune here.
19173         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19174         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19175         (march=, mcpu=, mtune=): Use Enum and Var.
19176         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
19177         (arm.o): Update dependencies.
19179 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
19181         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
19182         of header_file.
19183         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
19184         (write_typed_alloc_defns): Likewise.
19185         (main): Calls write_typed_alloc_defns with output_header.
19187 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
19189         PR inline-asm/48435
19190         * ira-color.c (setup_profitable_hard_regs): Add comments.
19191         Don't take prohibited hard regs into account.
19192         (setup_conflict_profitable_regs): Rename to
19193         get_conflict_profitable_regs.
19194         (check_hard_reg_p): Check prohibited hard regs.
19196 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
19198         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
19199         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
19200         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
19202 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19204         PR target/48366
19205         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
19206         move from floating point to shift amount register.
19207         (emit_move_sequence): Remove secondary reload support for floating
19208         point to shift amount amount register copies.
19209         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
19210         amount register copies.
19211         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
19212         register, return false if mode isn't a scalar integer mode.
19213         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
19215 2011-04-08  Richard Guenther  <rguenther@suse.de>
19217         * gimple.c (gimple_call_flags): Remove kludge.
19219 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19221         * sel-sched.c (sel_region_init): Move call to
19222         sel_setup_region_sched_flags after setup_current_loop_nest.
19224 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
19226         PR rtl-optimization/48272
19227         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
19228         init_insn_reg_pressure_info.  Adjust a caller.
19229         * sched-int.h (init_insn_reg_pressure_info): Declare.
19230         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
19231         when sched-pressure is enabled.
19233 2011-04-08  Richard Guenther  <rguenther@suse.de>
19235         * gimple.c (gimple_set_modified): Do not queue calls to
19236         MODIFIED_NORETURN_CALLS here ...
19237         * tree-ssa-operands.c (update_stmt_operands): ... but here.
19239 2011-04-08  Richard Guenther  <rguenther@suse.de>
19241         PR lto/48467
19242         * toplev.c (lang_dependent_init): Do not open asm_out_file
19243         in WPA mode, nor perform debug machinery initialization.
19244         (finalize): Do not unlink asm_out_file in WPA mode.
19246 2011-04-08  Richard Guenther  <rguenther@suse.de>
19248         * gimple.h (gimple_call_fntype): New function.
19249         (gimple_call_return_type): Use it.
19250         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
19251         * gimple-low.c (gimple_check_call_args): Likewise.
19252         * gimple.c (gimple_call_flags): Likewise.
19253         (gimple_call_arg_flags): Likewise.
19254         (gimple_call_return_flags): Likewise.
19255         * tree-cfg.c (verify_gimple_call): Likewise.
19256         (do_warn_unused_result): Likewise.
19257         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
19258         * value-prof.c (gimple_ic_transform): Fix fndecl check.
19260 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
19262         PR rtl-optimization/48235
19263         * sel-sched.c (code_motion_process_successors): Recompute the last
19264         insn in basic block if control flow changed.
19265         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
19266         Update condition for ilist_remove.
19268 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19270         PR rtl-optimization/48302
19271         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
19272         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
19273         it to record added preheader blocks.
19274         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
19275         on to sel_add_loop_preheaders.
19276         (sel_region_init): Move call to setup_current_loop_nest after
19277         sel_init_bbs.
19279 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19281         PR target/48273
19282         * cfgloop.h (loop_has_exit_edges): New helper.
19283         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
19284         non-clonable.
19285         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19286         that have no exit edges.
19288 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19290         PR rtl-optimization/48442
19291         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
19292         all callers.  Adjust assert.
19294 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
19296         PR tree-optimization/48377
19297         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
19298         is_packed to true even for types with smaller TYPE_ALIGN than
19299         TYPE_SIZE.
19301 2011-04-08  Richard Guenther  <rguenther@suse.de>
19303         PR bootstrap/48513
19304         * doc/tm.texi: Re-generate.
19306 2011-04-08  Wei Guozhi  <carrot@google.com>
19308         PR target/47855
19309         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
19310         * config/arm/arm.c (arm_attr_length_push_multi): New function.
19311         * config/arm/arm.md (*push_multi): Change the length computation to
19312         call a C function.
19314 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
19316         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
19317         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
19318         * doc/tm.texi: Regenerate.
19319         * system.h (ASM_OUTPUT_BSS): Poison.
19320         * varasm.c (asm_output_bss): Remove function.
19321         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
19323         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
19324         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
19325         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
19326         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19327         Likewise.
19328         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19329         Likewise.
19330         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19331         Likewise.
19332         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
19334 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
19336         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
19337         EnumValue lines.
19339 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
19341         * config/m68k/m68k.c (m68k_handle_option): Don't handle
19342         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
19343         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
19344         OPT_mcpu32.
19345         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19346         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
19347         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
19348         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
19349         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
19350         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
19351         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19352         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
19353         options.  Don't map other m68k options manually.  Don't handle
19354         old-style options as canonical.
19355         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19356         * doc/install.texi (m68k-*-*): Document binutils version requirement.
19358 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
19360         * basic-block.h (force_nonfallthru): Move to...
19361         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
19362         (force_nonfallthru): ...here.
19363         * cfghooks.c (force_nonfallthru): New function.
19364         * cfgrtl.c (force_nonfallthru): Rename into...
19365         (rtl_force_nonfallthru): ...this.
19366         (commit_one_edge_insertion): Do not set AUX field.
19367         (commit_edge_insertions): Do not discover new basic blocks.
19368         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
19369         (cfg_layout_rtl_cfg_hooks): Likewise.
19370         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
19371         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
19372         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
19374 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
19376         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19377         Remove macros.
19379 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
19381         * config/i386/sse.md: Update copyright year.
19382         (avxcvtvecmode): Remove.
19383         (sse_movhlps): Merge with *avx_movhlps.
19384         (sse_movlhps): Merge with *avx_movlhps.
19385         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
19386         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
19387         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
19388         (sse_loadhps): Merge with *avx_loadhps.
19389         (sse_storelps): Merge with *avx_storelps.
19390         (sse_loadlps): Merge with *avx_loadlps.
19391         (sse_movss): Merge with *avx_movss.
19392         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
19393         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
19394         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
19395         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
19396         (vec_set<mode>_0): Ditto.
19397         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
19398         (sse4_1_insertps): Merge with *avx_insertps.
19399         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
19400         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
19401         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
19402         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
19403         (sse2_storehpd): Merge with *avx_storehpd.
19404         (sse2_loadhpd): Merge with *avx_loadhpd.
19405         (sse2_loadlpd): Merge with *avx_loadlpd.
19406         (sse2_movsd): Merge with *avx_movsd.
19407         (*vec_concatv2df): Merge with *vec_concatv2df.
19409 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
19411         PR debug/48343
19412         * combine.c (combine_instructions): Add last_combined_insn,
19413         update it if insn is after it, pass it to all try_combine calls.
19414         (try_combine): Add last_combined_insn parameter, pass it instead of
19415         i3 to propagate_for_debug.
19417 2011-04-07  Nick Clifton  <nickc@redhat.com>
19419         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19420         to handle MDR <-> data register transfers.
19421         (movhi_internal): Likewise.
19423 2011-04-07  Alan Modra  <amodra@gmail.com>
19425         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19426         previous stack info.
19428 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19430         PR target/43920
19431         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
19432         flow_find_cross_jump.  Swap variables to implement backward replacement.
19433         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19435 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19437         PR target/43920
19438         * cfgcleanup.c (walk_to_nondebug_insn): New function.
19439         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
19440         and bb2.
19441         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19442         src1 or src2.  Redirect edges to the last basic block.  Update
19443         frequency and count on multiple basic blocks in case of fallthru.
19445 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19447         PR target/43920
19448         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19449         function.
19450         (old_insns_match_p): Change return type.  Replace return false/true
19451         with return dir_none/dir_both.  Use can_replace_by.
19452         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
19453         direction from dir_p.  Register replacement direction in dir, last_dir
19454         and afterlast_dir.  Handle new return type of old_insns_match_p using
19455         merge_dir.  Return replacement direction in dir_p.
19456         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19457         return type of old_insns_match_p.
19458         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19459         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19460         flow_find_cross_jump.
19461         * basic-block.h (enum replace_direction): New type.
19462         (flow_find_cross_jump): Add parameter to declaration.
19464 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19466         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19467         (AVXMODEDCVTPS2DQ): Ditto.
19468         (VEC_FLOAT_MODE): Ditto.
19469         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
19470         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19471         (<any_logic:code><mode>3): Use VF mode iterator.
19472         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19473         Use VF mode iterator.
19474         (copysign<mode>3): Use VF mode iterator.
19475         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
19476         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19477         (*<any_logic:code><MODEF:mode>3): Merge with
19478         *avx_<any_logic:code><MODEF:mode>3.
19479         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19480         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19481         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19482         (avx_cvtdq2ps<avxmodesuffix>): Remove.
19483         (sse2_cvtdq2ps): Use %v modifier.
19484         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19485         (avx_cvtps2dq<avxmodesuffix>): Remove.
19486         (sse2_cvtps2dq): Use %v modifier.
19487         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19488         (avx_cvttps2dq<avxmodesuffix>): Remove.
19489         (sse2_cvttps2dq): Use %v modifier.
19490         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19491         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19492         (sse2_cvtsd2siq): Fix insn template.
19493         (sse2_cvtsd2siq_2): Ditto.
19494         (sse2_cvttsd2siq): Ditto.
19495         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19496         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19498 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19500         * gcov-io.c: Use GCC Runtime Library Exception.
19502 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
19504         PR debug/48466
19505         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19506         as base_reg whatever register reg has been eliminated to, instead
19507         of hardcoding STACK_POINTER_REGNUM.
19509 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19511         * doc/tm.texi.in: Document C target hooks as separate from general
19512         target hooks.
19513         * doc/tm.texi: Regenerate.
19514         * genhooks.c (struct hook_desc): Add docname field.
19515         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
19516         docname field.
19517         (hook_array): Include c-target.def.
19518         (emit_documentation): Use docname field in output.
19519         (emit_init_macros): Take docname argument.  Only emit definitions
19520         for hooks matching docname.
19521         (main): Expect additional arguments in all cases.  Pass argument
19522         to emit_init_macros.
19523         * target.def: Move initial macro definitions and comments to
19524         target-hooks-macros.h.
19525         (gcc_targetcm): Move to c-family/c-target.def.
19526         * target.h (targetcm): Move declaration to c-family/c-target.h.
19527         * targhooks.c (default_handle_c_option): Move to
19528         c-family/c-opts.c.
19529         * targhooks.h (default_handle_c_option): Move declaration to
19530         c-family/c-common.h.
19531         * target-hooks-macros.h: New file.
19532         * config.gcc (target_has_targetcm): Define and use to add to
19533         c_target_objs and cxx_target_objs.
19534         * config/default-c.c: New file.
19535         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19536         of target.h and target-def.h.
19537         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19538         (darwin_objc_construct_string, darwin_cfstring_ref_p,
19539         darwin_check_cfstring_format_arg): Make static.
19540         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19541         TARGET_STRING_OBJECT_REF_TYPE_P,
19542         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19543         * config/darwin-protos.h (darwin_objc_construct_string,
19544         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19545         declare.
19546         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19547         TARGET_STRING_OBJECT_REF_TYPE_P,
19548         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19549         * config/t-darwin (darwin-c.o): Update dependencies.
19550         * system.h (TARGET_HAS_TARGETCM): Poison.
19551         * Makefile.in (TARGET_H): Update.
19552         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19553         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19554         (default-c.o): New target.
19555         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19556         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19557         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
19558         c-target.def.
19559         (build/genhooks.o): Update dependencies.
19561 2011-04-06  Richard Guenther  <rguenther@suse.de>
19563         * ipa-inline.c (enum inlining_mode): Remove.
19564         (cgraph_flatten): Use some other token.
19565         (cgraph_edge_early_inlinable_p): New function, split out from ...
19566         (cgraph_perform_always_inlining): New function, split out from ...
19567         (cgraph_decide_inlining_incrementally): ... here.
19568         (cgraph_mark_inline_edge): Adjust.
19569         (cgraph_early_inlining): Re-structure.
19570         (pass_early_inline): Require SSA form.
19572 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
19573             Julian Brown  <julian@codesourcery.com>
19574             Mark Shinwell  <shinwell@codesourcery.com>
19576         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19577         LO_REGS only for Thumb-1.
19578         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19579         be used in short instructions when optimising for size on Thumb-2.
19581 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19583         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19584         associated with user returns to be preserved.
19586 2011-04-06  Tristan Gingold  <gingold@adacore.com>
19588         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19589         symbol_queue_size, DBXOUT_DECR_NESTING,
19590         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19591         if XCOFF_DEBUGGING_INFO.
19593 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19595         * config/i386/i386.md (attribute isa): New.
19596         (attribute enabled): New.
19597         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19598         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19599         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19600         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19601         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19602         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19603         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19604         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19606         * config/i386/sse.md (VF): New mode iterator.
19607         (VF1): Ditto.
19608         (VF2): Ditto.
19609         (VF_128): Ditto.
19610         (SSEMODEF4): Remove.
19611         (attribute sse): Handle V8SF and V4DF modes.
19612         (<absneg:code><mode>2): Use VF mode iterator.
19613         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
19614         mode iterator.
19615         (<plusminus_insn><mode>3): Use VF mode iterator.
19616         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19617         Use VF mode iterator.
19618         (<sse>_vm<plusminus_insn><mode>3): Merge with
19619         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
19620         (mul<mode>3): Use VF mode iterator.
19621         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
19622         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
19623         mode iterator.
19624         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19625         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
19626         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
19627         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
19628         mode iterator.
19629         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
19630         Use VF1 mode iterator.
19631         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
19632         (sqrt<VF2:mode>2): New expander.
19633         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
19634         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
19635         and sqrtv2df2.  Use VF mode iterator.
19636         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
19637         mode iterator.
19638         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
19639         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
19640         Use VF1 mode iterator.
19641         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
19642         (<smaxmin:code><mode>3): Use VF mode iterator.
19643         (*<smaxmin:code><mode>3_finite): Merge with
19644         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
19645         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19646         (<sse>_vm<smaxmin:code><mode>2): Merge with
19647         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
19648         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
19649         mode iterator.
19650         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
19651         mode iterator.
19652         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
19653         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
19654         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
19655         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
19656         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
19657         VF mode iterator.
19658         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
19659         Use VF_128 mode iterator.
19660         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
19661         mode iterator.
19662         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
19663         VF_128 mode iterator.
19664         (vcond<mode>): Use VF mode iterator.
19665         * config/i386/predicates.md (sse_comparison_operator): Merge with
19666         avx_comparison_float_operator.  Do not declare as special_predicate.
19667         * config/i386/i386.c (struct builtin_description): Update for renamed
19668         compare patterns.
19669         (ix86_expand_args_builtin): Ditto.
19670         (ix86_expand_sse_compare_mask): Ditto.
19672 2011-04-06  Richard Guenther  <rguenther@suse.de>
19674         * tree-inline.c (estimate_num_insns): For calls simply account
19675         for all passed arguments and a used return value.
19677 2011-04-06  Richard Guenther  <rguenther@suse.de>
19679         PR tree-optimization/47663
19680         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
19681         call_stmt_time fields.
19682         (cgraph_edge_inlinable_p): Declare.
19683         (cgraph_edge_recursive_p): New inline function.
19684         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
19685         (cgraph_clone_edge): Copy it.
19686         * ipa-inline.c (cgraph_estimate_edge_time): New function.
19687         Account for call stmt time.
19688         (cgraph_estimate_time_after_inlining): Take edge argument.
19689         (cgraph_estimate_edge_growth): Account call stmt size.
19690         (cgraph_estimate_size_after_inlining): Take edge argument.
19691         (cgraph_mark_inline_edge): Adjust.
19692         (cgraph_check_inline_limits): Likewise.
19693         (cgraph_recursive_inlining_p): Remove.
19694         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19695         (cgraph_decide_recursive_inlining): Take edge argument and
19696         adjust.
19697         (cgraph_decide_inlining_of_small_functions): Do not avoid
19698         diags for recursive inlining here.
19699         (cgraph_flatten): Adjust.
19700         (cgraph_decide_inlining_incrementally): Likewise.
19701         (estimate_function_body_sizes): Remove call cost handling.
19702         (compute_inline_parameters): Initialize caller edge call costs.
19703         (cgraph_estimate_edge_growth): New function.
19704         (cgraph_estimate_growth): Use it.
19705         (cgraph_edge_badness): Likewise.
19706         (cgraph_check_inline_limits): Take an edge argument.
19707         (cgraph_decide_inlining_of_small_functions): Adjust.
19708         (cgraph_decide_inlining): Likewise.
19709         * tree-inline.c (estimate_num_insns): Only account for call
19710         return value if it is used.
19711         (expand_call_inline): Avoid diagnostics on recursive inline
19712         functions here.
19713         * lto-cgraph.c (lto_output_edge): Output edge call costs.
19714         (input_edge): Input edge call costs.
19716 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19718         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19720 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
19722         * doc/invoke.texi (Spec Files): Fix typo.
19724 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19726         * profile.c (branch_prob): Move declaration of local variable.  Remove
19727         obsolete ??? comment.  Expand the location explicitly instead of using
19728         the LOCATION_FILE and LOCATION_LINE macros.
19730 2011-04-06  Wei Guozhi  <carrot@google.com>
19732         PR target/47855
19733         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19734         (arm_cond_branch): Likewise.
19735         (arm_cond_branch_reversed): Likewise.
19736         (arm_jump): Likewise.
19737         (push_multi): Likewise.
19738         * config/arm/constraints.md (Py): New constraint.
19740 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19742         PR bootstrap/48471
19743         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19744         Move these...
19745         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19746         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19747         #ifdef DBX_DEBUGGING_INFO.
19749 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
19751         PR bootstrap/48403
19752         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19753         if old and new states differ.
19755 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19757         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19758         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19759         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19760         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19761         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19762         mcfv4e): Use Alias.
19763         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19764         ColdFire options to -mcpu= options.
19766 2011-04-05  Jeff Law  <law@redhat.com>
19768         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19769         check if BB is a successor of LOOP->header and return
19770         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19772 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19774         * cprop.c (struct reg_use): Remove.
19775         (reg_use_table): Make an array of RTX.
19776         (find_used_regs, constprop_register, local_cprop_pass,
19777         bypass_block): Simplify users of reg_use_table.
19778         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
19779         on one of the uses found by find_used_regs.
19781 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19783         PR bootstrap/48469
19784         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19785         declaration.
19787 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19789         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19790         as an rtx.
19791         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19793 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19795         PR middle-end/48441
19796         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19798 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19800         * combine.c: Include obstack.h.
19801         (struct insn_link): Define.
19802         (uid_log_links): Adjust type.
19803         (FOR_EACH_LOG_LINK): New macro.
19804         (insn_link_obstack): Declare.
19805         (alloc_insn_link): Define.
19806         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
19807         type of link variables.
19808         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19809         (try_combine, record_promoted_values, distribute_notes): Likewise.
19810         (distribute_links): Likewise.  Tweak prototype.
19811         (clear_log_links): Delete.
19812         (adjust_for_new_dest): Call alloc_insn_link.
19813         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19815 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19817         * gcse.c (modify_mem_list): Convert to an array of VECs.
19818         (canon_modify_mem_list, compute_transp): Tweak formatting.
19819         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
19820         (load_killed_in_block_p): Likewise.
19821         (record_last_mem_set_info): Likewise.
19822         (clear_modify_mem_tables): Likewise.
19824 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19826         PR middle-end/48461
19827         * function.c (emit_use_return_register_into_block): Only define if
19828         HAVE_return.
19830 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
19832         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19834 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19836         * config/rx/rx-opts.h: New.
19837         * config/rx/rx.c (rx_cpu_type): Remove.
19838         (rx_handle_option): Don't assert that global structures are in
19839         use.  Access variables via opts pointer.  Defer most handling of
19840         OPT_mint_register_.  Use error_at.
19841         (rx_option_override): Handle deferred OPT_mint_register_ here.
19842         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19843         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19844         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19845         (rx_cpu_types): New Enum and EnumValue entries.
19846         (mint-register=): Use Defer and use Var accordingly.
19848 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19850         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19851         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19852         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19853         Move these...
19854         (debug_free_queue, debug_nesting, symbol_queue_index):
19855         ...and these...
19856         * dbxout.c: ...to here.  Make static.
19858 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19860         * gcse.c (modify_pair): Define.  Define a VEC of it.
19861         (canon_modify_mem_list): Convert to an array of VECs.
19862         (free_insn_expr_list_list): Delete.
19863         (clear_modify_mem_tables): Call VEC_free instead.
19864         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19865         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19866         (canon_list_insert, compute_transp): Likewise.
19868 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19870         PR target/43920
19871         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19872         for size.
19874 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19876         PR target/43920
19877         * function.c (emit_use_return_register_into_block): New function.
19878         (thread_prologue_and_epilogue_insns): Use
19879         emit_use_return_register_into_block.
19881 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19883         PR target/43920
19884         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
19885         insn.
19887 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19889         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
19891 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
19893         * config/arm/arm.md (define_constants for unspec): Replace with
19894         define_c_enum.
19895         (define_constants for unspecv): Replace with define_c_enum.
19896         * config/arm/neon.md (define_constants for unspec): Replace with
19897         define_c_enum.
19899 2011-04-04  Richard Henderson  <rth@redhat.com>
19901         PR bootstrap/48400
19902         * dwarf2out.c (output_line_info): Always emit line info from
19903         at least one section.
19904         (dwarf2out_init): Create text_section_line_info here ...
19905         (set_cur_line_info_table): ... not here.
19907 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19909         PR target/48380
19910         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
19911         not called.
19913         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
19915 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
19917         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
19918         (expr_equiv_p): Remove.
19919         (insert_set_in_table): Look at <dest, src> pair instead of expr.
19920         (hash_scan_set): Update call to insert_set_in_table.
19921         (dump_hash_table): Dump <dest, src> pair.
19922         (lookup_set): Simplify.  Lookup <dest, src> pair.
19923         (compute_transp): Remove, fold heavily simplified code into...
19924         (compute_local_properties): ...here.  Expect COMP and TRANSP
19925         unconditionally.
19926         (find_avail_set): Take set directly from struct expr.
19927         (find_bypass-set): Likewise.
19928         (bypass_block): Likewise.
19929         (cprop_insn): Likewise.  Remove redundant INSN_P test.
19931         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
19932         checks on form of COND from find_implicit_sets to here.
19933         (find_implicit_sets): Cleanup control flow. Split critical edges
19934         if it exposes implicit sets.  Allocate/resize implicit_sets as
19935         necessary.
19936         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
19937         changed something.  Run df_analyze after find_implicit_sets if any
19938         edges were split.  Do not allocate implicit_sets here.
19940         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
19941         (gcse_obstack): Renamed to cprop_obstack.
19942         (GNEW, GNEWVEC, GNEWVAR): Remove.
19943         (gmalloc): Remove.
19944         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
19945         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
19946         (gcse_alloc): Likewise, and rename to cprop_alloc.
19947         (alloc_gcse_men, free_gcse_mem): Remove.
19948         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
19949         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
19950         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
19952         * cprop.c (oprs_not_set_p): Remove.
19953         (mark_set, mark_clobber): Remove.
19954         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
19955         (reg_not_set_p): New function.
19956         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
19957         (cprop_insn): Likewise.
19958         (cprop_jump): Use FOR_EACH_EDGE.
19960 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
19962         PR bootstrap/48403
19963         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
19964         (rank_for_schedule): Use scheduled_insns vector instead of
19965         last_scheduled_insn.
19966         (ok_for_early_queue_removal): Likewise.
19967         (queue_to_ready): Search forward in nonscheduled_insns_begin if
19968         we have a dbg_cnt.
19969         (choose_ready): Likewise.
19970         (commit_schedule): Use VEC_iterate.
19971         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
19972         a dbg_cnt, use it and ensure the first insn is in the ready list.
19973         (haifa_sched_init): Allocate scheduled_insns.
19974         (sched_extend_ready_list): Don't allocate it; reserve space.
19975         (haifa_sched_finish): Free it.
19977 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19979         * optc-gen.awk: Always remove type from Variable entry before
19980         recording in var_seen.
19982 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
19984         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
19985         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
19986         call to tidy_fallthru_edges.
19988 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19990         * doc/options.texi (ToLower): Document.
19991         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
19992         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
19993         * opts.h (cl_option): Add cl_tolower field.
19994         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
19995         arguments with lowercase strings.
19996         * config/rx/rx.opt (mcpu=): Add ToLower.
19997         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
19998         argument.
20000 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
20002         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
20004 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
20006         * config/vax/vax.c: Include reload.h.
20008 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
20010         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
20011         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20012         (sparc_preferred_reload_class): New function.
20014 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
20016         PR debug/48401
20017         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20018         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
20020 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
20022         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
20023         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
20025 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
20027         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
20028         (ASM_OUTPUT_ALIGNED_BSS): Define.
20030 2011-04-03  Michael Matz  <matz@suse.de>
20032         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
20033         and next_slot members.
20034         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
20035         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
20036         (lto_streamer_cache_append): Declare.
20037         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
20038         unsigned index, remove offset parameter, ensure that we append
20039         or update existing entries.
20040         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
20041         parameter, update next_slot for append.
20042         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
20043         parameter.
20044         (lto_streamer_cache_insert_at): Likewise.
20045         (lto_streamer_cache_append): New function.
20046         (lto_streamer_cache_lookup): Use unsigned index.
20047         (lto_streamer_cache_get): Likewise.
20048         (lto_record_common_node): Don't test tree_node_can_be_shared.
20049         (preload_common_node): Adjust call to lto_streamer_cache_insert.
20050         (lto_streamer_cache_delete): Don't free offsets member.
20051         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
20052         (lto_output_string_with_length): Use lto_output_data_stream.
20053         (lto_output_tree_header): Remove ix parameter, don't write it.
20054         (lto_output_builtin_tree): Likewise.
20055         (lto_write_tree): Adjust callers to above, don't track and write
20056         offset, write unsigned index.
20057         (output_unreferenced_globals): Don't emit all global vars.
20058         (write_global_references): Use unsigned indices.
20059         (lto_output_decl_state_refs): Likewise.
20060         (write_symbol): Likewise.
20061         * lto-streamer-in.c (lto_input_chain): Move earlier.
20062         (input_function): Use unsigned index.
20063         (input_alias_pairs): Don't read and then ignore all global vars.
20064         (lto_materialize_tree): Remove ix_p parameter, don't read index,
20065         don't pass it back, use lto_streamer_cache_append.
20066         (lto_register_var_decl_in_symtab): Use unsigned index.
20067         (lto_register_function_decl_in_symtab): Likewise.
20068         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
20069         index.
20070         (lto_get_builtin_tree): Don't read index, use
20071         lto_streamer_cache_append.
20072         (lto_read_tree): Adjust call to lto_materialize_tree.
20074         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
20075         don't use function calls in arguments to MIN.
20077         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
20078         twice.
20080         * gimple.c (gimple_type_leader_entry): Mark deletable.
20082 2011-04-03  Alan Modra  <amodra@gmail.com>
20084         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
20086 2011-04-03  Michael Matz  <matz@suse.de>
20088         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
20089         an integer.
20090         * tree.h (tree_decl_non_common.vindex): Adjust comment.
20092 2011-04-03  Michael Matz  <matz@suse.de>
20094         * cgraphbuild.c (record_reference): Canonicalize constructor values.
20095         * gimple-fold.c (canonicalize_constructor_val): Accept being called
20096         without function context.
20097         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20098         current_function_decl and cfun.
20100 2011-04-03  Michael Matz  <matz@suse.de>
20102         * tree.c (decl_init_priority_insert): Don't create entry for
20103         default priority.
20104         (decl_fini_priority_insert): Ditto.
20105         (fields_compatible_p, find_compatible_field): Remove.
20106         * tree.h (fields_compatible_p, find_compatible_field): Remove.
20107         * gimple.c (gimple_compare_field_offset): Adjust block comment.
20109 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
20111         * combine.c (try_combine): Remove useless local variable.
20113 2011-04-03  Richard Guenther  <rguenther@suse.de>
20114             Ira Rosen  <ira.rosen@linaro.org>
20116         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20117         non-variable offsets and compare the remaining bases of the two
20118         accesses instead of looking for exact same data-ref.
20120 2011-04-02  Kai Tietz  <ktietz@redhat.com>
20122         PR target/48416
20123         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20125         * i386.c (ix86_is_msabi_thiscall): New helper function.
20126         (ix86_is_type_thiscall): New helper function.
20127         (ix86_comp_type_attributes): Handle thiscall for method-functions
20128         special.
20129         (init_cumulative_args): Likewise.
20130         (find_drap_reg): Likewise.
20131         (ix86_static_chain): Likewise.
20132         (x86_this_parameter): Likewise.
20133         (x86_output_mi_thunk): Likewise.
20135 2011-04-01  Olivier Hainque  <hainque@adacore.com>
20136             Nicolas Setton  <setton@adacore.com>
20137             Eric Botcazou  <ebotcazou@adacore.com>
20139         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20140         (add_gnat_descriptive_type_attribute): New function.
20141         (gen_array_type_die): Call it.
20142         (gen_enumeration_type_die): Likewise.
20143         (gen_struct_or_union_type_die): Likewise.
20144         (modified_type_die): Likewise.
20145         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20146         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20147         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20149 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20151         PR bootstrap/48148
20152         * dwarf2out.c (resolve_addr): Don't call force_decl_die
20153         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20155         Revert:
20156         2011-03-17  Richard Guenther  <rguenther@suse.de>
20158         PR bootstrap/48148
20159         * lto-cgraph.c (input_overwrite_node): Clear the abstract
20160         origin for decls in other ltrans units.
20161         (input_varpool_node): Likewise.
20163 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20165         PR middle-end/48335
20166         * expr.c (expand_assignment): Handle all possibilities
20167         if TO_RTX is CONCAT.
20168         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20169         (store_split_bit_field): If SUBREG_REG (op0) or
20170         op0 itself has smaller mode than word, return it
20171         for offset 0 and const0_rtx for out-of-bounds stores.
20172         If word is const0_rtx, skip it.
20174 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
20176         * config/h8300/h8300.c (print_operand_address): Rename to...
20177         (h8300_print_operand_address): ...this. Make static. Adjust comments.
20178         Call h8300_print_operand and h8300_print_operand_address instead of
20179         print_operand and print_operand_address. Declare.
20180         (print_operand): Renake to...
20181         (h8300_print_operand): ...this. Make static. Adjust comments.
20182         Call h8300_print_operand instead of print_operand. Declare.
20183         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
20184         (h8300_register_move_cost): Likewise.
20185         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
20186         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
20187         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
20188         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
20189         * config/h8300/h8300-protos.h (print_operand): Delete.
20190         (print_operand_address): Delete.
20192 2011-04-01  Richard Henderson  <rth@redhat.com>
20194         PR 48400
20195         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
20196         in strict mode before dwarf4.  Re-order tests to early out
20197         before switching sections.
20199 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
20201         * config/h8300/constraints.md: New file.
20202         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
20203         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
20204         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
20205         * config/h8300/predicates.md (bit_operand): Likewise.
20206         (incdec_operand): Use satisfies_constraint_M and
20207         satisfies_constraint_O.  Don't use C code block.
20208         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
20209         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
20210         (compute_mov_length): Use satisfies_constraint_G.
20211         (fix_bit_operand): Use satisfies_constraint_U.
20212         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
20213         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
20214         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
20215         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
20216         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
20217         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
20218         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20219         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
20220         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
20221         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
20222         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
20223         (EXTRA_MEMORY_CONSTRAINT): Delete.
20225 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
20226             Michael Meissner  <meissner@linux.vnet.ibm.com>
20228         PR target/48262
20229         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
20230         operands, as per the specifications.
20232         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
20233         (vec_extract_evenv4sf): Ditto.
20234         (vec_extract_evenv8hi): Ditto.
20235         (vec_extract_evenv16qi): Ditto.
20236         (vec_extract_oddv4si): Ditto.
20238 2011-03-31  Mark Wielaard  <mjw@redhat.com>
20240         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
20241         high_pc attribute if the CU has no associated code. Only output
20242         DW_AT_entry_pc for CU if not generating strict dwarf and
20243         dwarf_version < 4.
20245 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
20247         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
20248         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
20249         out of ...
20250         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
20251         * final.c (final_start_function): Call the new function rather
20252         than using a NULL argument for dwarf2out_frame_debug.
20254         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
20255         that contains the prologue.
20257         * haifa-sched.c (queue_insn): New arg REASON.  All callers
20258         changed.  Print it in debugging output.
20260         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
20262         * sched-ebb.c (begin_schedule_ready): Remove second argument.
20263         Split most of the code into...
20264         (begin_move_insn): ... here.  New function.
20265         (ebb_sched_info): Add a pointer to it.
20266         * haifa-sched.c (scheduled_insns): New static variable.
20267         (sched_extend_ready_list): Allocate it.
20268         (schedule_block): Use it to record the order of scheduled insns.
20269         Perform RTL changes to move insns only after all scheduling
20270         decisions have been made.
20271         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
20272         begin_move_insn field.
20273         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
20274         * sched-int.h (struct haifa_sched_info): Remove second argument
20275         from begin_schedule_ready hook.  Add new member begin_move_insn.
20276         * sched-rgn.c (begin_schedule_ready): Remove second argument.
20277         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
20279         * haifa-sched.c (prune_ready_list): New function, broken out of
20280         schedule_block.
20281         (schedule_block): Use it.
20283 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20285         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
20287 2011-04-01  Kai Tietz  <ktietz@redhat.com>
20289         * config.gcc (*-*-mingw*): Allow as option the
20290         posix threading model.
20291         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
20292         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20293         definition.
20294         (CPP_SPEC): Add pthread/no-pthread handling.
20295         (LIB_SPEC): Likewise.
20296         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
20297         (LIB_SPEC): Likewise.
20298         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
20299         flag to pass -pthread option for shared libgcc build.
20300         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
20301         for shared libgcc build.
20302         * config/i386/t-mingw-pthread: New file.
20303         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
20304         New define to enable use of library pthread by default.
20305         * config/i386/mingw.opt (pthread): New driver option.
20306         (no-pthread): New driver option.
20307         * config/i386/cygming.opt: Make sure trailing empty line is retained.
20308         * config/i386/mingw-w64.opt: Likewise.
20310 2011-04-01  Gary Funck  <gary@intrepid.com>
20312         * c-decl.c (grokdeclarator): Fix formatting.
20314 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20316         * expr.c (emit_block_move_via_movmem): Use n_generator_args
20317         instead of n_operands.
20318         (set_storage_via_setmem): Likewise.
20319         * optabs.c (maybe_gen_insn): Likewise.
20320         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
20321         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
20322         (mips_expand_builtin_direct): Likewise.
20323         * config/spu/spu.c (expand_builtin_args): Likewise.
20325 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20327         * recog.h (insn_data_d): Add n_generator_args.
20328         * genoutput.c (data): Likewise.
20329         (output_insn_data): Print it.
20330         (max_opno, num_dups): Delete.
20331         (scan_operands): Just fill in "d->operand[...]".
20332         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
20334 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20336         * gensupport.h (pattern_stats): New structure.
20337         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
20338         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
20339         (max_operand_1, max_operand_vec): Delete.
20340         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
20342 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
20344         * emit-rtl.c (emit_pattern_after_setloc): New function.
20345         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
20346         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
20347         (emit_pattern_after): New function.
20348         (emit_insn_after, emit_jump_insn_after): Call it.
20349         (emit_call_insn_after, emit_debug_insn_after): Likewise.
20350         (emit_pattern_before_setloc): New function.
20351         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
20352         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
20353         Likewise.
20354         (emit_pattern_before): New function.
20355         (emit_insn_before, emit_jump_insn_before): Call it.
20356         (emit_call_insn_before, emit_debug_insn_before): Likewise.
20358 2011-03-31  Richard Henderson  <rth@redhat.com>
20360         * dwarf2out.c (dw_separate_line_info_ref): Remove.
20361         (dw_separate_line_info_entry): Remove.
20362         (enum dw_line_info_opcode): New.
20363         (dw_line_info_entry): Use it.
20364         (dw_line_info_table, dw_line_info_table_p): New.
20365         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
20366         (line_info_table, line_info_label_num): Remove.
20367         (line_info_table_in_use): Remove.
20368         (separate_line_info_table): Remove.
20369         (separate_line_info_table_allocated): Remove.
20370         (separate_line_info_table_in_use): Remove.
20371         (LINE_INFO_TABLE_INCREMENT): Remove.
20372         (line_info_label_num): New.
20373         (cur_line_info_table): New.
20374         (text_section_line_info, cold_text_section_line_info): New.
20375         (separate_line_info): New.
20376         (SEPARATE_LINE_CODE_LABEL): Remove.
20377         (print_dwarf_line_table): Remove.
20378         (debug_dwarf): Don't dump it.
20379         (output_one_line_info_table): New.
20380         (output_line_info): Use it.
20381         (new_line_info_table): New.
20382         (set_cur_line_info_table): New.
20383         (dwarf2out_switch_text_section): Use it.
20384         (dwarf2out_begin_function): Likewise.
20385         (push_dw_line_info_entry): New.
20386         (dwarf2out_source_line): Rewrite for new line info tables.
20387         (dwarf2out_init): Remove dead initailizations.
20389 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
20391         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
20392         various flags.
20393         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
20394         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
20395         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
20396         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
20397         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
20398         * opt-functions.awk (flag_init, switch_bit_fields): New.
20399         (switch_flags): Don't handle flags moved to bit-fields.  Don't
20400         generate CL_MISSING_OK or CL_SAVE.
20401         * optc-gen.awk: Update to generate bit-field output as well as
20402         flags field.
20403         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20404         bit-field instead of CL_REJECT_DRIVER flag.
20405         * opts-common.c (generate_canonical_option,
20406         decode_cmdline_option): Use bit-fields instead of CL_* flags.
20407         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20408         instead of CL_REJECT_NEGATIVE flag.
20409         * toplev.c (print_switch_values): Use cl_report bit-field instead
20410         of CL_REPORT flag.
20412 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20414         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20415         a zero minimum index only if it is redundant.
20417 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
20419         PR rtl-optimization/48381
20420         * ira-color.c (assign_hard_reg): Use hard reg set intersection
20421         instead of ira_class_hard_reg_index for calculating conflicting
20422         hard registers.
20424 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
20426         * cprop.c: Clean up hash table building.
20427         (reg_avail_info): Remove.
20428         (oprs_available_p): Remove.
20429         (record_last_reg_set_info): Remove.
20430         (record_last_set_info): Remove.
20431         (reg_available_p): New function.
20432         (gcse_constant_p): Do not treat unfolded conditions as constants.
20433         (make_set_regs_unavailable): New function.
20434         (hash_scan_set): Simplify with new reg_available_p.
20435         (compute_hash_table_work): Traverse insns stream only once.
20436         Do not compute reg_avail_info. Traverse insns in reverse order.
20437         Record implicit sets after recording explicit sets from the block.
20439 2011-03-31  Michael Matz  <matz@suse.de>
20441         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20443 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
20445         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20446         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20447         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20448         (h8300_mode_dependent_address_p): New function.
20449         (h8300_get_index): Make static.
20451 2011-03-31  Jeff Law  <law@redhat.com>
20453         * reload1.c (elimination_effects): Fix typo in recent change.
20455         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20456         typo potentially leading to null pointer dereference.
20458         * caller-save.c (new_saved_hard_reg): Eliminate return value.
20459         (setup_save_areas): Corresponding changes to avoid useless
20460         assignments.
20462         * jump.c (reversed_comparison_code_parts): Avoid successive return
20463         statements when REVERSE_CONDITION is defined.
20465         * expr.c (expand_assignment): Avoid useless assignments.
20466         (expand_expr_real_1): Likewise.
20467         (expand_expr_real_2): Avoid useless statements.
20469         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20471         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20473         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20474         statements.
20476         * stmt.c (expand_expr_stmt): Avoid useless assignment.
20478 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
20480         PR target/47109
20481         * doc/tm.texi.in (TARGET_VERSION): Remove.
20482         * doc/tm.texi: Regenerate.
20483         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20484         * collect2.c (main): Don't use TARGET_VERSION.
20485         * mips-tdump.c (main): Don't use TARGET_VERSION.
20486         * mips-tfile.c (main): Don't use TARGET_VERSION.
20487         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20488         * config/rs6000/vxworksae.h: Remove.
20489         * config/alpha/alpha.h (TARGET_VERSION): Remove.
20490         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20491         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20492         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20493         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20494         * config/arm/arm.h (TARGET_VERSION): Remove.
20495         * config/arm/coff.h (TARGET_VERSION): Remove.
20496         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20497         * config/arm/elf.h (TARGET_VERSION): Remove.
20498         * config/arm/freebsd.h (TARGET_VERSION): Remove.
20499         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20500         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20501         * config/arm/pe.h (TARGET_VERSION): Remove.
20502         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20503         * config/arm/semi.h (TARGET_VERSION): Remove.
20504         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20505         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20506         * config/arm/vxworks.h (TARGET_VERSION): Remove.
20507         * config/avr/avr.h (TARGET_VERSION): Remove.
20508         * config/bfin/bfin.h (TARGET_VERSION): Remove.
20509         * config/fr30/fr30.h (TARGET_VERSION): Remove.
20510         * config/frv/frv.h (TARGET_VERSION): Remove.
20511         * config/h8300/h8300.h (TARGET_VERSION): Remove.
20512         * config/i386/cygwin.h (TARGET_VERSION): Remove.
20513         * config/i386/darwin.h (TARGET_VERSION): Remove.
20514         * config/i386/darwin64.h (TARGET_VERSION): Remove.
20515         * config/i386/djgpp.h (TARGET_VERSION): Remove.
20516         * config/i386/freebsd.h (TARGET_VERSION): Remove.
20517         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20518         * config/i386/gnu.h (TARGET_VERSION): Remove.
20519         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20520         * config/i386/i386elf.h (TARGET_VERSION): Remove.
20521         * config/i386/linux.h (TARGET_VERSION): Remove.
20522         * config/i386/linux64.h (TARGET_VERSION): Remove.
20523         * config/i386/lynx.h (TARGET_VERSION): Remove.
20524         * config/i386/mingw32.h (TARGET_VERSION): Remove.
20525         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20526         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20527         * config/i386/netware.h (TARGET_VERSION): Remove.
20528         * config/i386/nto.h (TARGET_VERSION): Remove.
20529         * config/i386/openbsd.h (TARGET_VERSION): Remove.
20530         * config/i386/vxworks.h (TARGET_VERSION): Remove.
20531         * config/ia64/elf.h (TARGET_VERSION): Remove.
20532         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20533         * config/ia64/hpux.h (TARGET_VERSION): Remove.
20534         * config/ia64/linux.h (TARGET_VERSION): Remove.
20535         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20536         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20537         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20538         * config/lm32/lm32.h (TARGET_VERSION): Remove.
20539         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20540         * config/m32c/m32c.h (TARGET_VERSION): Remove.
20541         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20542         * config/m32r/m32r.h (TARGET_VERSION): Remove.
20543         * config/m68k/linux.h (TARGET_VERSION): Remove.
20544         * config/m68k/m68k.h (TARGET_VERSION): Remove.
20545         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20546         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20547         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20548         * config/mep/mep.h (TARGET_VERSION): Remove.
20549         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20550         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20551         * config/mips/iris6.h (MACHINE_TYPE): Remove.
20552         * config/mips/linux.h (TARGET_VERSION): Remove.
20553         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20554         * config/mips/vxworks.h (TARGET_VERSION): Remove.
20555         * config/mmix/mmix.h (TARGET_VERSION): Remove.
20556         * config/mn10300/linux.h (TARGET_VERSION): Remove.
20557         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20558         * config/pa/pa.h (TARGET_VERSION): Remove.
20559         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20560         * config/picochip/picochip.h (TARGET_VERSION): Remove.
20561         * config/rs6000/aix.h (TARGET_VERSION): Remove.
20562         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20563         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20564         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20565         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20566         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20567         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20568         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20569         * config/rs6000/linux.h (TARGET_VERSION): Remove.
20570         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20571         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20572         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20573         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20574         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20575         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20576         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20577         * config/s390/linux.h (TARGET_VERSION): Remove.
20578         * config/s390/s390.h (TARGET_VERSION): Remove.
20579         * config/s390/tpf.h (TARGET_VERSION): Remove.
20580         * config/score/score.h (TARGET_VERSION): Remove.
20581         * config/sh/linux.h (TARGET_VERSION): Remove.
20582         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20583         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20584         * config/sh/sh.h (TARGET_VERSION): Remove.
20585         * config/sh/sh64.h (TARGET_VERSION): Remove.
20586         * config/sh/superh.h (TARGET_VERSION): Remove.
20587         * config/sh/vxworks.h (TARGET_VERSION): Remove.
20588         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20589         * config/sparc/linux.h (TARGET_VERSION): Remove.
20590         * config/sparc/linux64.h (TARGET_VERSION): Remove.
20591         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20592         TARGET_NAME32, TARGET_NAME): Remove.
20593         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20594         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20595         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20596         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20597         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20598         * config/spu/spu.h (TARGET_VERSION): Remove.
20599         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20600         * config/v850/v850.h (TARGET_VERSION): Remove.
20601         * config/vax/linux.h (TARGET_VERSION): Remove.
20602         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20603         * config/xtensa/elf.h (TARGET_VERSION): Remove.
20604         * config/xtensa/linux.h (TARGET_VERSION): Remove.
20606 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20608         PR target/48142
20609         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20610         frame-related from frame-unrelated adjustments to the stack pointer.
20612 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
20614         * common.opt (fdebug-types-section): Move earlier.
20615         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20617 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
20619         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20620         var.
20622 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
20624         * tree.h (CASE_CHAIN): Define.
20625         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
20626         (gimple_redirect_edge_and_branch): Likewise.
20628 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20630         PR middle-end/48367
20631         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
20632         calculation.
20634 2011-03-30  Jeff Law  <law@redhat.com>
20636         * PR bootstrap/48371
20637         * reload1.c (reload): Fix botch in last change.
20639         * reload.h (struct reload): Fix typo introduced in last change.
20641 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20643         * config/arm/arm.opt (mhard-float, msoft-float): Mark
20644         Undocumented.  Remove help text.
20645         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
20646         -mhard-float.
20648 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20650         * doc/options.texi (NegativeAlias): Document.
20651         (Alias): Mention NegativeAlias.
20652         * opt-functions.awk: Handle NegativeAlias.
20653         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
20654         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
20655         * opts.h (CL_NEGATIVE_ALIAS): Define.
20656         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
20657         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
20658         OPT_mspe_.
20659         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
20660         Alias entries.
20661         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20662         mno-spe and mno-isel instead of mspe=no and -misel=no.
20664 2011-03-29  Mark Wielaard  <mjw@redhat.com>
20666         * common.opt (fdebug-types-section): New flag.
20667         * doc/invoke.texi: Document new -fno-debug-types-section flag.
20668         * dwarf2out.c (use_debug_types): New define.
20669         (struct die_struct): Mark die_id with GTY desc use_debug_types.
20670         (print_die): Guard output of type unit signatures using
20671         use_debug_types.
20672         (build_abbrev_table): Replace assert of dwarf_version >= 4
20673         with assert on use_debug_types.
20674         (size_of_die): Likewise.
20675         (unmark_dies): Likewise.
20676         (value_format): Decide AT_ref_external form on use_debug_types.
20677         (output_die): Replace dwarf_version version check guard with
20678         use_debug_types where appropriate.
20679         (modified_type_die): Likewise.
20680         (gen_reference_type_die): Likewise.
20681         (dwarf2out_start_source_file): Likewise.
20682         (dwarf2out_end_source_file): Likewise.
20683         (prune_unused_types_walk_attribs): Likewise.
20684         (dwarf2out_finish): Likewise.
20686 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20688         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
20690 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20692         PR rtl-optimization/48332
20693         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20694         mode of input operand N and modeN to its actual mode.
20696 2011-03-30  Jeff Law  <law@redhat.com>
20698         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20699         define accessor macro.
20700         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20701         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20702         (reg_equiv_init): Likewise.
20703         (reg_equivs_size): New variable.
20704         (reg_equiv_init_size): Remove.
20705         (allocate_initial_values): Move prototype to here from....
20706         * integrate.h (allocate_initial_values): Remove prototype.
20707         * integrate.c: Include reload.h.
20708         (allocate_initial_values): Corresponding changes.
20709         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20710         (fix_reg_equiv_init, no_equiv): Corresponding changes.
20711         (update_equiv_regs): Corresponding changes.
20712         (ira): Corresponding changes.
20713         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20714         (push_secondary_reload): Corresponding changes.
20715         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20716         (make_memloc, find_reloads_address): Corresponding changes.
20717         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20718         (find_reloads_address_1): Corresponding changes.
20719         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20720         (refers_to_regno_for_reload_p): Corresponding changes.
20721         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20722         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20723         * reload1.c: Include ggc.h.
20724         (grow_reg_equivs): New function.
20725         (replace_pseudos_in, reload): Corresponding changes.
20726         (calculate_needs_all_insns, alter_regs): Corresponding changes.
20727         (eliminate_regs_1, elimination_effects): Corresponding changes.
20728         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20729         (delete_output_reload): Likewise.
20730         * caller-save.c (mark_referenced_regs): Corresponding changes.
20731         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20732         * frv/predicates.md (frv_load_operand): Corresponding changes.
20733         * microblaze/microblaze.c (double_memory_operand): Corresponding
20734         changes.
20735         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20736         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20737         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20738         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20739         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20740         changes.
20741         * pa/pa.c (emit_move_sequence): Corresponding changes.
20742         * vax/vax.c (nonindexed_address_p): Corresponding changes.
20744 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20746         PR target/47551
20747         * config/arm/arm.c (coproc_secondary_reload_class): Handle
20748         structure modes.  Don't check neon_vector_mem_operand for
20749         vector or structure modes.
20751 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20752             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20754         PR target/43590
20755         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20756         operand 1 and reshuffle the operands to match.
20757         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20759 2011-03-30  Christian Schüler  <cschueler@gmx.de>
20761         PR driver/48208
20762         * config/c.opt (F): Added 'Driver' to -F option.
20764         PR driver/48260
20765         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20766           handler function.
20767         * config/darwin.opt: Added '-arch' option.
20769 2011-03-30  Nick Clifton  <nickc@redhat.com>
20771         * config/rx/rx.md: Add peepholes and patterns to combine
20772         extending loads and simple arithmetic instructions.
20773         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20774         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20775         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20776         modes to use pre-decrement and post-increment addressing.
20777         (rx_is_restricted_memory_address): Add range checking of REG+INT
20778         addresses.
20779         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
20780         (rx_memory_move_cost): Adjust cost of stores.
20781         (rx_adjust_insn_length): New function.
20783 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
20785         PR c/48305
20786         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20787         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20788         matching arg00/arg01 types.
20790 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
20792         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20793         last_location to UNKNOWN_LOCATION.
20795 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
20797         PR target/48349
20798         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20799         FLOAT_SSE_REGS.
20801 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20802             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20804         PR bootstrap/48337
20805         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20806         Init(PROCESSOR_V7).
20807         (sparc_cpu): Likewise.
20808         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20809         PROCESSOR_V7.
20811 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20813         PR target/48336
20814         PR middle-end/48342
20815         PR rtl-optimization/48345
20816         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20817         hard regs for given mode from profitable regs when doing secondary
20818         allocation.
20820 2011-03-29  Jeff Law  <law@redhat.com>
20822         PR bootstrap/48327
20823         * tree-ssa-threadupdate.c (struct redirection_data): Remove
20824         do_not_duplicate field.
20825         (lookup_redirection_data): Corresponding changes.
20826         (create_duplicates): Always create a template block.
20827         (redirect_edges): Remove code which reused the original block
20828         when it was going to become unreachable code.
20829         (thread_block): Don't set do_not_duplicate field.
20831 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
20833         * lto-opts.c (register_user_option_p, lto_register_user_option):
20834         Make type argument unsigned.
20835         * lto-streamer.h (lto_register_user_option): Make type argument
20836         unsigned.
20837         * opth-gen.awk: Make CL_* macros unsigned.
20838         * opts-common.c (find_opt): Make lang_mask argument unsigned.
20839         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20840         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20841         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20842         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20843         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20844         (find_opt): Make lang_mask argument unsigned.
20846 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20848         PR rtl-optimization/48331
20849         PR rtl-optimization/48334
20850         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20851         for any used algorithm.
20853 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20855         * ira-conflicts.c (build_object_conflicts): Add unused attribute
20856         to parent_max.
20858 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
20860         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20861         (alpha_option_override): Don't set alpha_sr_alias_set.
20862         (emit_frame_store_1): Use gen_frame_mem rather than calling
20863         set_mem_alias_set.
20864         (alpha_expand_epilogue): Ditto.
20866 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
20868         PR tree-optimization/48290
20869         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20870         vectorization, check that relevant phis in the basic block after
20871         the inner loop are really inner loop's exit phis.
20873 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
20875         PR debug/48190
20876         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
20877         (cached_dw_loc_list_def): New structure.
20878         (cached_dw_loc_list): New typedef.
20879         (cached_dw_loc_list_table): New variable.
20880         (cached_dw_loc_list_table_hash): New function.
20881         (cached_dw_loc_list_table_eq): Likewise.
20882         (add_location_or_const_value_attribute): Take a bool cache_p.
20883         Cache the list when the parameter is true.
20884         (gen_formal_parameter_die): Update caller.
20885         (gen_variable_die): Likewise.
20886         (dwarf2out_finish): Likewise.
20887         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
20888         while generating debug info for the decl.
20889         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
20890         (dwarf2out_init): Initialize cached_dw_loc_list_table.
20891         (resolve_addr): Cache the result of resolving a chain of
20892         location lists.
20894 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
20896         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
20897         conflict object hard regset nodes have intersecting hard reg sets.
20899         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
20900         after regstat_init_n_sets_and_refs.
20902         * ira.c: Add more comments at the top.
20903         (setup_stack_reg_pressure_class, setup_pressure_classes):
20904         Add comments how we compute the register pressure classes.
20905         (setup_allocno_and_important_classes): Add more comments.
20906         (setup_class_translate_array, reorder_important_classes)
20907         (setup_reg_class_relations): Add comments.
20909         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
20910         start of the file.
20912         * ira-color.c: Add 2011 to the Copyright line.
20913         (assign_hard_reg):  Add more comments.
20914         (improve_allocation): Ditto.
20916         * ira-costs.c: Add 2011 to the Copyright line.
20917         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
20918         comments.
20919         (setup_regno_cost_classes_by_mode): Ditto.
20921         Initial patches from ira-improv branch:
20923         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20925         * ira-build.c (ira_create_object): Remove initialization of
20926         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
20927         (ira_create_allocno): Remove initialization of
20928         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
20929         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
20930         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20931         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
20932         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
20933         Initialize ALLOCNO_ADD_DATA.
20934         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
20935         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
20936         ALLOCNO_REG.
20937         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
20938         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
20940         * ira.c (ira_reallocate): Remove.
20941         (setup_pressure_classes): Call
20942         ira_init_register_move_cost_if_necessary.  Use
20943         ira_register_move_cost instead of ira_get_register_move_cost.
20944         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
20945         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
20947         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
20948         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20949         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
20950         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
20951         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
20952         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
20953         Fix formatting.
20954         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
20955         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20956         (struct allocno_color_data): New.
20957         (allocno_color_data_t): New typedef.
20958         (allocno_color_data): New definition.
20959         (ALLOCNO_COLOR_DATA): New macro.
20960         (struct object_color_data): New.
20961         (object_color_data_t): New typedef.
20962         (object_color_data): New definition.
20963         (OBJECT_COLOR_DATA): New macro.
20964         (update_copy_costs, calculate_allocno_spill_cost): Call
20965         ira_init_register_move_cost_if_necessary.  Use
20966         ira_register_move_cost instead of ira_get_register_move_cost.
20967         (move_spill_restore, update_curr_costs): Ditto.
20968         (allocno_spill_priority): Make it inline.
20969         (color_pass): Allocate and free allocno_color_dat and object_color_data.
20970         (struct coalesce_data, coalesce_data_t): New.
20971         (allocno_coalesce_data): New definition.
20972         (ALLOCNO_COALESCE_DATA): New macro.
20973         (merge_allocnos, coalesced_allocno_conflict_p): Use
20974         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
20975         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
20976         (coalesce_allocnos): Ditto.
20977         (setup_coalesced_allocno_costs_and_nums): Ditto.
20978         (collect_spilled_coalesced_allocnos): Ditto.
20979         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
20980         (setup_slot_coalesced_allocno_live_ranges): Ditto.
20981         (coalesce_spill_slots): Ditto.
20982         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
20983         free allocno_coalesce_data.
20985         * ira-conflicts.c: Fix formatting.
20986         (process_regs_for_copy): Call
20987         ira_init_register_move_cost_if_necessary.  Use
20988         ira_register_move_cost instead of ira_get_register_move_cost.
20989         (build_object_conflicts): Optimize.
20991         * ira-costs.c (record_reg_classes): Optimize.  Call
20992         ira_init_register_move_cost_if_necessary.  Use
20993         ira_register_move_cost, ira_may_move_in_cost, and
20994         ira_may_move_out_cost instead of ira_get_register_move_cost and
20995         ira_get_may_move_cost.
20996         (record_address_regs): Ditto.
20997         (scan_one_insn): Optimize.
20998         (find_costs_and_classes): Optimize.
20999         (process_bb_node_for_hard_reg_moves): Call
21000         ira_init_register_move_cost_if_necessary.  Use
21001         ira_register_move_cost instead of ira_get_register_move_cost.
21003         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
21004         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
21005         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
21006         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
21007         definitions.
21008         (ira_initiate_emit_data, ira_finish_emit_data)
21009         (create_new_allocno): New functions.
21010         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
21011         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
21012         Use ira_register_move_cost instead of ira_get_register_move_cost.
21014         * ira-int.h: Fix some comments.
21015         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
21016         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21017         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
21018         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
21019         add_data.
21020         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
21021         bitfield after mode.  Make hard_regno a short int.  Make
21022         hard_regno short.  Remove first_coalesced_allocno and
21023         next_coalesced_allocno.  Move mem_optimized_dest_p,
21024         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
21025         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
21026         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
21027         temp, colorable_p.  Add new member add_data.
21028         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
21029         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
21030         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
21031         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
21032         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
21033         (ALLOCNO_ADD_DATA): New macro.
21034         (ira_emit_data_t): New typedef.
21035         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
21036         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
21037         from struct ira_allocno.
21038         (ALLOCNO_EMIT_DATA): New macro.
21039         (ira_allocno_emit_data, allocno_emit_reg): New.
21040         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
21041         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
21042         (OBJECT_ADD_DATA): New macro.
21043         (ira_reallocate): Remove.
21044         (ira_initiate_emit_data, ira_finish_emit_data): New.
21045         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
21046         (ira_init_register_move_cost_if_necessary): New.
21047         (ira_object_conflict_iter_next): Merge into
21048         ira_object_conflict_iter_cond.
21049         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
21051         * ira-live.c (process_single_reg_class_operands): Call
21052         ira_init_register_move_cost_if_necessary.  Use
21053         ira_register_move_cost instead of ira_get_register_move_cost.
21055         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
21057         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
21059         * ira-costs.c: Fix formatting.
21060         (cost_classes, cost_classes_num): Remove.
21061         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
21062         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
21063         (cost_classes_del, cost_classes_htab): New.
21064         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
21065         (initiate_regno_cost_classes, setup_cost_classes): New.
21066         (setup_regno_cost_classes_by_aclass): New.
21067         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
21068         (record_reg_classes): Use regno_cost_classes instead of
21069         cost_classes.  Move checking opposite operand up.
21070         (record_address_regs): Use regno_cost_classes
21071         instead of cost_classes.
21072         (scan_one_insn): Ditto.  Use always general register.
21073         (print_allocno_costs): Use regno_cost_classes instead of
21074         cost_classes.
21075         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
21076         (find_costs_and_classes): Set up cost classes for each registers.
21077         Use also their mode for this.  Use regno_cost_classes instead of
21078         cost_classes.
21079         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
21080         cost_classes.
21081         (free_ira_costs, ira_init_costs): Don't use cost_classes.
21082         (ira_costs, ira_set_pseudo_classes): Call
21083         initiate_regno_cost_classes and finish_regno_cost_classes.
21085         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
21087         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
21089         * target.def (ira_cover_classes): Remove.
21091         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
21093         * doc/tm.texi.in: Ditto.
21095         * ira-conflicts.c: Remove mentioning cover classes from the file.
21096         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
21097         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
21099         * targhooks.c (default_ira_cover_classes): Remove.
21101         * targhooks.h (default_ira_cover_classes): Ditto.
21103         * haifa-sched.c: Remove mentioning cover classes from the file.
21104         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
21105         ira_pressure_classes and ira_pressure_classes_num instead of
21106         ira_reg_class_cover_size and ira_reg_class_cover.  Use
21107         sched_regno_pressure_class instead of sched_regno_cover_class.
21108         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21109         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21111         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
21112         classes from the file.
21113         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21114         (struct object_hard_regs, struct object_hard_regs_node): New.
21115         (struct ira_object): New members profitable_hard_regs,
21116         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21117         (struct ira_allocno): Rename cover_class to aclass.  Rename
21118         cover_class_cost and updated_cover_class_cost to class_cost and
21119         updated_class_cost.  Remove splay_removed_p and
21120         left_conflict_size.  Add new members colorable_p.
21121         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21122         (ALLOCNO_COLORABLE_P): New macro.
21123         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21124         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21125         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21126         (OBJECT_...): Rename parameter C to O.
21127         (OBJECT_PROFITABLE_HARD_REGS): New macro.
21128         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21129         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21130         (struct target_ira_int): New members x_ira_max_memory_move_cost,
21131         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21132         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21133         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21134         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
21135         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
21136         x_ira_reg_class_subunion.
21137         (ira_max_memory_move_cost, ira_max_register_move_cost)
21138         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21139         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21140         (ira_important_class_nums, ira_reg_class_superunion): New macros.
21141         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21142         (ira_reg_class_union): Rename to ira_reg_class_subunion.
21143         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21144         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21145         (ira_tune_allocno_costs_and_cover_classes): Rename to
21146         ira_tune_allocno_costs.
21147         (ira_debug_hard_regs_forest): New.
21148         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21149         (ira_object_conflict_iter_next): Fix comments.
21150         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21151         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21152         cover_class to aclass.
21153         (ira_allocate_and_accumulate_costs): Ditto.
21154         (ira_allocate_and_set_or_copy_costs): Ditto.
21156         * opts.c (decode_options): Remove ira_cover_class check.
21158         * ira-color.c: Remove mentioning cover classes from the file.  Use
21159         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21160         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21161         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
21162         (splay-tree.h): Remove include.
21163         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21164         before copy_freq_compare_func.
21165         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21166         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21167         New definitions.
21168         (hard_regs_roots, hard_regs_node_vec): Ditto.
21169         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21170         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21171         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21172         (create_new_object_hard_regs_node): Ditto.
21173         (add_new_object_hard_regs_node_to_forest): Ditto.
21174         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21175         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
21176         Ditto.
21177         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
21178         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
21179         (remove_unused_object_hard_regs_nodes): Ditto.
21180         (enumerate_object_hard_regs_nodes): Ditto.
21181         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
21182         (object_hard_regs_subnode_t): Ditto.
21183         (struct object_hard_regs_subnode): Ditto.
21184         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
21185         (setup_object_hard_regs_subnode_index): Ditto.
21186         (get_object_hard_regs_subnodes_num): Ditto.
21187         (form_object_hard_regs_nodes_forest): Ditto.
21188         (finish_object_hard_regs_nodes_tree): Ditto.
21189         (finish_object_hard_regs_nodes_forest): Ditto.
21190         (allocnos_have_intersected_live_ranges_p): Rename to
21191         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
21192         (pseudos_have_intersected_live_ranges_p): Rename to
21193         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
21194         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
21195         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
21196         (update_copy_costs): Remove assert.  Skip cost update if the hard
21197         reg does not belong the class.
21198         (assign_hard_reg): Process only profitable hard regs.
21199         (uncolorable_allocnos_num): Make it scalar.
21200         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
21201         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
21202         and ira_reg_class_max_nregs.
21203         (bucket_allocno_compare_func): Check frequency first.
21204         (sort_bucket): Add compare function as a parameter.
21205         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
21206         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
21207         (push_allocno_to_stack): Rewrite for checking new allocno
21208         colorability.
21209         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
21210         (push_only_colorable): Pass new parameter to sort_bucket.
21211         (push_allocno_to_spill): Remove.
21212         (allocno_spill_priority_compare): Make it inline and rewrite.
21213         (splay_tree_allocate, splay_tree_free): Remove.
21214         (allocno_spill_sort_compare): New function.
21215         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
21216         build and use splay tree.  Choose first allocno in uncolorable
21217         allocno bucket to spill.  Remove setting spill cost.
21218         (all_conflicting_hard_regs): Remove.
21219         (setup_allocno_available_regs_num): Check only profitable hard
21220         regs.  Print info about hard regs nodes.
21221         (setup_allocno_left_conflicts_size): Remove.
21222         (put_allocno_into_bucket): Don't call
21223         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
21224         (improve_allocation): New.
21225         (color_allocnos): Call setup_profitable_hard_regs,
21226         form_object_hard_regs_nodes_forest, improve_allocation,
21227         finish_object_hard_regs_nodes_forest.  Setup spill cost.
21228         (print_loop_title): Use pressure classes.
21229         (color_allocnso): Ditto.
21230         (do_coloring): Remove allocation and freeing splay_tree_node_pool
21231         and allocnos_for_spilling.
21232         (ira_sort_regnos_for_alter_reg): Don't setup members
21233         {first,next}_coalesced_allocno.
21234         (color): Remove allocating and freeing removed_splay_allocno_vec.
21235         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
21236         prohibited_class_mode_regs.
21238         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
21239         formatting.
21240         (update_allocno_pressure_excess_length): Use pressure classes.
21241         (inc_register_pressure, dec_register_pressure): Check for pressure
21242         class.
21243         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
21244         pressure class.  Use ira_reg_class_nregs instead of
21245         ira_reg_class_max_nregs.
21246         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
21247         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
21248         (single_reg_class): Use ira_reg_class_nregs instead of
21249         ira_reg_class_max_nregs.
21250         (process_bb_node_lives): Use pressure classes.
21252         * ira-emit.c: Remove mentioning cover classes from the file.  Use
21253         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
21254         (change_loop): Use pressure classes.
21255         (modify_move_list): Call ira_set_allocno_class instead of
21256         ira_set_allocno_cover_class.
21258         * ira-build.c: Remove mentioning cover classes from the file.  Use
21259         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
21260         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
21261         ALLOCNO_UPDATED_CLASS_COST instead of
21262         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
21263         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
21264         (ira_create_allocno): Remove initialization of
21265         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
21266         ALLOCNO_COLORABLE_P.
21267         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21268         Update conflict regs for the objects.
21269         (create_cap_allocno): Remove assert.  Don't propagate
21270         ALLOCNO_AVAILABLE_REGS_NUM.
21271         (ira_free_allocno_costs): New function.
21272         (finish_allocno): Change a part of code into call of
21273         ira_free_allocno_costs.
21274         (low_pressure_loop_node_p): Use pressure classes.
21275         (object_range_compare_func): Don't compare classes.
21276         (setup_min_max_conflict_allocno_ids): Ditto.
21278         * loop-invariant.c: Remove mentioning cover classes from the file.
21279         Use ira_pressure_classes and ira_pressure_classes_num instead of
21280         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
21281         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
21282         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21283         Use reg_allocno_class instead of reg_cover_class.
21284         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
21285         STACK_REG_COVER_CLASS.
21286         (get_regno_cover_class): Rename to get_regno_pressure_class.
21287         (move_loop_invariants): Initialize and finalize regstat.
21289         * ira.c: Remove mentioning cover classes from the file.  Add
21290         comments about coloring without cover classes.  Use ALLOCNO_CLASS
21291         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
21292         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
21293         setup_class_subset_and_memory_move_costs.
21294         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
21295         (setup_cover_and_important_classes): Rename to
21296         setup_allocno_and_important_classes.
21297         (setup_class_translate_array): New.
21298         (setup_class_translate): Call it for allocno and pressure classes.
21299         (cover_class_order): Rename to allocno_class_order.
21300         (comp_reg_classes_func): Use ira_allocno_class_translate instead
21301         of ira_class_translate.
21302         (reorder_important_classes): Set up ira_important_class_nums.
21303         (setup_reg_class_relations): Set up ira_reg_class_superunion.
21304         (print_class_cover): Rename to print_classes.  Add parameter.
21305         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21306         Print pressure classes too.
21307         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
21308         setup_reg_subclasses.
21309         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21310         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21311         (setup_prohibited_class_mode_regs): Use
21312         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
21313         (clarify_prohibited_class_mode_regs): New function.
21314         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
21315         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
21316         (ira_init_once): Initialize them.
21317         (free_register_move_costs): Process them.
21318         (ira_init): Move calls of find_reg_classes and
21319         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
21320         Call clarify_prohibited_class_mode_regs.
21321         (ira_no_alloc_reg): Remove.
21322         (too_high_register_pressure_p): Use pressure classes.
21324         * sched-deps.c: Remove mentioning cover classes from the file.
21325         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
21326         ira_pressure_classes and ira_pressure_classes_num instead of
21327         ira_reg_class_cover_size and ira_reg_class_cover.
21328         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
21329         sched_regno_pressure_class instead of sched_regno_cover_class.
21330         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
21331         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21333         * ira.h: Add 2010 to Copyright.
21334         (ira_no_alloc_reg): Remove external.
21335         (struct target_ira): Rename x_ira_hard_regno_cover_class,
21336         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
21337         x_ira_class_translate to x_ira_hard_regno_allocno_class,
21338         x_ira_allocno_classes_num, x_ira_allocno_classes, and
21339         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
21340         x_ira_pressure_classes, x_ira_pressure_class_translate, and
21341         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
21342         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
21343         x_ira_no_alloc_regs.
21344         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21345         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
21346         ira_allocno_classes_num and ira_allocno_classes.
21347         (ira_class_translate): Rename to ira_allocno_class_translate.
21348         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
21349         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
21350         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21351         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
21352         (ira_no_alloc_regs): New.
21354         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
21355         classes from the file.  Use ALLOCNO_CLASS instead of
21356         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
21357         ALLOCNO_COVER_CLASS_COST.
21358         (regno_cover_class): Rename to regno_aclass.
21359         (record_reg_classes): Use ira_reg_class_subunion instead of
21360         ira_reg_class_union.
21361         (record_address_regs): Check overflow.
21362         (scan_one_insn): Ditto.
21363         (print_allocno_costs): Print total mem cost fore regional allocation.
21364         (print_pseudo_costs): Use REG_N_REFS.
21365         (find_costs_and_classes): Use classes intersected with them on the
21366         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
21367         ira_reg_class_union.  Use ira_allocno_class_translate and
21368         regno_aclass instead of ira_class_translate and regno_cover_class.
21369         Modify code for finding regno_aclass.  Setup preferred classes for
21370         the next pass.
21371         (setup_allocno_cover_class_and_costs): Rename to
21372         setup_allocno_class_and_costs.  Use regno_aclass instead of
21373         regno_cover_class.  Use ira_set_allocno_class instead of
21374         ira_set_allocno_cover_class.
21375         (init_costs, finish_costs): Use regno_aclass instead of
21376         regno_cover_class.
21377         (ira_costs): Use setup_allocno_class_and_costs instead of
21378         setup_allocno_cover_class_and_costs.
21379         (ira_tune_allocno_costs_and_cover_classes): Rename to
21380         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
21381         by processing objects.  Use ira_reg_class_max_nregs instead of
21382         ira_reg_class_nregs.
21384         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
21386         * sched-int.h: Remove mentioning cover classes from the file.
21387         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
21389         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
21390         classes from the file.
21391         (struct reg_pref): Rename coverclass into allocnoclass.
21392         (reg_cover_class): Rename to reg_allocno_class.
21394         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
21396         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
21398         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
21400         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
21402         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
21404         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21406         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21408         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21410         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21412         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21414         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21415         (i386_ira_cover_classes): Ditto.
21417         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21419         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21421         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21423         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21425         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21427         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21429         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21430         (mips_ira_cover_classes): Ditto.
21432         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21434         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21436         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21438         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21440         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21442         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21443         (IRA_COVER_CLASSES_VSX): Ditto.
21445         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21446         (rs6000_ira_cover_classes): Ditto.
21448         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21450         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21452         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21454         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21456         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21458         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21460         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21462         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21464         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21466         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21468 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
21470         PR debug/48253
21471         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21472         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21473         dw_fde_unlikely_section_end_label, cold_in_std_section,
21474         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21475         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21476         fields.
21477         (output_fde): Use dw_fde_second_{begin,end} if second is
21478         true, otherwise dw_fde_{begin,end}.
21479         (output_call_frame_info): Test dw_fde_second_begin != NULL
21480         instead of dw_fde_switched_sections.
21481         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21482         fields, initialize new fields.  Initialize in_std_section
21483         unconditionally from the first partition.
21484         (dwarf2out_end_epilogue): Don't override dw_fde_end when
21485         dw_fde_second_begin is non-NULL.
21486         (dwarf2out_switch_text_section): Stop initializing removed
21487         dw_fde_struct fields, initialize new fields, initialize
21488         also dw_fde_end here.  Set dw_fde_switch_cfi even when
21489         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
21490         (struct var_loc_list_def): Add last_before_switch field.
21491         (arange_table, arange_table_allocated, arange_table_in_use,
21492         ARANGE_TABLE_INCREMENT, add_arange): Removed.
21493         (size_of_aranges): Count !in_std_section and !second_in_std_section
21494         hunks in fdes, instead of looking at arange_table_in_use.
21495         (output_aranges): Add aranges_length argument, don't call
21496         size_of_aranges here.  Instead of using aranges_table*
21497         emit ranges for fdes when !in_std_section resp.
21498         !second_in_std_section.
21499         (dw_loc_list): Break ranges crossing section switch.
21500         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
21501         use dw_fde_second_end instead of dw_fde_end as end of last range.
21502         (gen_subprogram_die): Don't call add_arange.  Use
21503         dw_fde_{begin,end} for first partition and if switched
21504         section dw_fde_second_{begin,end} for the second.
21505         (var_location_switch_text_section_1,
21506         var_location_switch_text_section): New functions.
21507         (dwarf2out_begin_function): Initialize cold_text_section even
21508         when function_section () isn't text_section.
21509         (prune_unused_types): Don't walk arange_table.
21510         (dwarf2out_finish): Don't needlessly test
21511         flag_reorder_blocks_and_partition when testing cold_text_section_used.
21512         If info_section_emitted, call size_of_aranges and if it indicates
21513         non-empty .debug_aranges, call output_aranges with the computed
21514         size.  Stop using removed dw_fde_struct fields, use
21515         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21516         for second.
21518         PR debug/48203
21519         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21520         create ENTRY_VALUE if incoming or address of incoming's MEM
21521         is a hard REG.
21522         * dwarf2out.c (mem_loc_descriptor): Don't emit
21523         DW_OP_GNU_entry_value of DW_OP_fbreg.
21524         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21525         on ENTRY_VALUE is able to find the canonical parameter VALUE.
21526         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21527         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21528         ENTRY_VALUE_EXPs.
21529         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21530         is a REG_P or MEM_P with REG_P address, compute hash directly
21531         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21532         (preserve_only_constants): Don't clear VALUES forwaring
21533         ENTRY_VALUE to some other VALUE.
21535 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
21537         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21538         instead of GEN_INT.
21540 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21542         * cfgexpand.c (expand_gimple_cond): Always set the source location and
21543         block before expanding the statement.
21544         (expand_gimple_stmt_1): Likewise.  Set them here...
21545         (expand_gimple_stmt): ...and not here.  Tidy.
21546         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21547         unknown.
21549 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21551         * Makefile.in: New rule for cprop.o.
21552         * gcse.c: Move constant/copy propagation to cprop.c.
21553         (compute_local_properties): Only handle expression tables.
21554         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21555         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21556         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21557         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21558         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21559         compute_cprop_data, find_used_regs, try_replace_reg,
21560         find_avail_set, cprop_jump, constprop_register, cprop_insn,
21561         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21562         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21563         find_bypass_set, reg_killed_on_edge, bypass_block,
21564         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21565         execute_rtl_cprop, pass_rtl_cprop): Move to...
21566         * cprop.c: ...here.  New file, constant/copy propagation for RTL
21567         moved from gcse.c to here with minor cleanups in duplicated code.
21569 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
21571         * config/i386/i386.c (flag_opts): Fix a typo in
21572         -mavx256-split-unaligned-store.
21574 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21576         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21577         LIBCALL_VALUE): Remove macros.
21578         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21579         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21580         (h8300_function_value, h8300_libcall_value,
21581         h8300_function_value_regno_p): New functions.
21583 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21585         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21587 2011-03-28  Jeff Law  <law@redhat.com>
21589         * tree-ssa-threadupdate.c (redirect_edges): Call
21590         create_edge_and_update_destination_phis as needed.
21591         (create_edge_and_update_destination_phis): Accept new BB argument.
21592         All callers updated.
21593         (thread_block): Do not update the profile when threading around
21594         intermediate blocks.
21595         (thread_single_edge): Likewise.
21596         (determine_bb_domination_status): If BB is not a successor of the
21597         loop header, return NONDOMINATING.
21598         (register_jump_thread): Note when we register a jump thread around
21599         an intermediate block.
21600         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21601         (thread_across_edge): Use it.
21603 2011-03-28  Tristan Gingold  <gingold@adacore.com>
21605         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21606         when for_return is 2.
21608 2011-03-28  Jeff Law  <law@redhat.com>
21610         * var-tracking.c (canonicalize_values_mark): Delete unused
21611         lhs assignment.
21612         (canonicalize_values_star, set_variable_part): Likewise.
21613         (clobber_variable_part, delete_variable_part): Likewise.
21615 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21617         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21619 2011-03-28  Martin Jambor  <mjambor@suse.cz>
21621         * tree-inline.c (expand_call_inline): Do not check that destination
21622         node is analyzed.
21623         (optimize_inline_calls): Assert that destination node is analyzed.
21624         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21625         not call tree_lowering_passes.
21626         * cgraph.h (cgraph_analyze_function): Declare.
21627         * cgraphunit.c (cgraph_analyze_function): Make public.
21629 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
21631         * config/sparc/sparc-opts.h: New.
21632         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
21633         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
21634         (sparc_option_override): Store processor_type enumeration rather
21635         than string in cpu_default.  Remove name and enumeration from
21636         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
21637         without using sparc_select.  Use target_flags_explicit instead of
21638         fpu_option_set.
21639         * config/sparc/sparc.h (enum processor_type): Move to
21640         sparc-opts.h.
21641         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
21642         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
21643         HeaderInclude entry.
21644         (mcpu=, mtune=): Use Var and Enum.
21645         (sparc_processor_type): New Enum and EnumValue entries.
21647 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21648             Iain Sandoe  <iains@gcc.gnu.org>
21650         PR target/48245
21651         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
21653 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21655         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
21656         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
21657         Insert new statements at it in lieu of STMT.
21658         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
21659         * tree-vect-stmts.c (vectorizable_store): Likewise.
21660         (vectorizable_load): Likewise.
21662 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
21664         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
21665         (divtf3): Ditto.
21666         (multf3): Ditto.
21667         (subtf3): Ditto.
21669 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21671         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
21672         unaligned 256bit load/store.
21673         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
21674         (*avx_movdqu<avxmodesuffix>): Likewise.
21676 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21678         PR target/48288
21679         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
21680         * config/pa/pa.md (iordi3): Use new predicate in expander.
21681         (iorsi3): Likewise.
21683 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
21685         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
21686         FUNCTION_VALUE_REGNO_P): Remove macros.
21687         * config/mips/mips-protos.h (mips_function_value): Remove.
21688         * config/mips/mips.c (mips_function_value): Rename to...
21689         (mips_function_value_1): ... this. Make static.  Handle receiving
21690         the function type in 'fn_decl_or_type' argument.
21691         (mips_function_value, mips_libcall_value,
21692         mips_function_value_regno_p): New function.
21693         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21694         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21696 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21698         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21699         and -mavx256-split-unaligned-store.
21700         (ix86_option_override_internal): Split 32-byte AVX unaligned
21701         load/store by default.
21702         (ix86_avx256_split_vector_move_misalign): New.
21703         (ix86_expand_vector_move_misalign): Use it.
21705         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21706         -mavx256-split-unaligned-store.
21708         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21709         256bit load/store.  Generate unaligned store on misaligned memory
21710         operand.
21711         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21712         256bit load/store.
21713         (*avx_movdqu<avxmodesuffix>): Likewise.
21715         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21716         -mavx256-split-unaligned-store.
21718 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21720         PR target/38598
21721         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21722         Update commentary.
21724 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21726         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21727         opno arguments with an expand_operand.  Use create_input_operand.
21728         (mips_prepare_builtin_target): Delete.
21729         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21730         functions.
21731         (mips_expand_builtin_direct): Use create_output_operand and
21732         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
21733         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
21734         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21736 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
21738         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21739         function.
21740         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21742 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21744         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21745         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
21746         basic blocks and call commit_edge_insertions directly.
21747         (fixup_abnormal_edges): Move from here to...
21748         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
21749         on the edges and return whether some have actually been inserted.
21750         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21751         compensation code.
21753 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
21755         PR rtl-optimization/48144
21756         * sel-sched-ir.c (merge_history_vect): Factor out from ...
21757         (merge_expr_data): ... here.
21758         (av_set_intersect): Rename to av_set_code_motion_filter.
21759         Update all callers.  Call merge_history_vect when an expression
21760         is found in both sets.
21761         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21763 2011-03-26  Alan Modra  <amodra@gmail.com>
21765         * config/rs6000/predicates.md (word_offset_memref_op): Handle
21766         cmodel medium addresses.
21767         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21768         64-bit gpr loads and stores.
21769         (rs6000_secondary_reload_ppc64): New function.
21770         * config/rs6000/rs6000-protos.h: Declare it.
21771         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21773 2011-03-26  Alan Modra  <amodra@gmail.com>
21775         PR target/47487
21776         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21777         GNU Go in traceback table.
21779 2011-03-25  Richard Henderson  <rth@redhat.com>
21781         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21782         if there are exactly 6 operands.
21783         (set_storage_via_setmem): Similarly.
21785 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21787         * collect2.c (write_c_file_stat): Handle backslash
21788         as right-hand directory separator.
21789         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21790         checking just for slash.
21791         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21792         instead of checking for trailing slash.
21793         * gcc.c (record_temp_file): Use filename_cmp instead
21794         of strcmp.
21795         (do_spec_1): Likewise.
21796         (replace_outfile_spec_function): Likewise.
21797         (is_directory): Use filename_ncmp instead of strncmp.
21798         (print_multilib_info): Likewise.
21799         * gcov.c (find_source): Use filename_cmp instead
21800         instead of strcmp.
21801         (make_gcov_file_name): Fix order of slash/backslash
21802         checks.
21803         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21804         (add_standard_paths): Likewise.
21805         * mips-tfile.c (saber_stop): Handle backslash.
21806         * prefix.c (update_path): Use filename_ncmp instead of
21807         strncmp.
21808         * profile.c (output_location): Use filename_cmp instead
21809         of strcmp.
21810         * read-md.c (handle_toplevel_file): Handle backslash.
21811         * tlink.c (frob_extension):  Likewise.
21812         * tree-cfg.c (same_line_p): Use filename_cmp instead of
21813         strcmp.
21814         * tree-dump.c (dequeue_and_dump): Handle backslash.
21815         * tree.c (get_file_function_name): Likewise.
21816         * gengtype.c (read_input_list): Likewise.
21817         (get_file_realbasename): Likewise.
21818         (get_output_file_with_visibility): Use filename_cmp
21819         instead of strcmp.
21821 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
21823         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21824         case to VFPv1.
21826 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21828         * fold-const.c (expr_location_or): New function.
21829         (fold_truth_not_expr): Call it.
21831 2011-03-25  Jeff Law  <law@redhat.com>
21833         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21834         va_end.
21835         * c-family/c-common.c (def_fn_type): Likewise.
21836         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21837         * emit-rtl.c (gen_rtvec): Likewise.
21838         * lto/lto-lang.c (def_fn_type): Likewise.
21840 2011-03-25  Richard Guenther  <rguenther@suse.de>
21842         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21843         also generate copies.
21844         (fini_copy_prop): Handle constant values properly.
21846 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
21848         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21849         mode size instead of bitsize with DWARF2_ADDR_SIZE.
21850         (hash_loc_operands, compare_loc_operands): Handle
21851         DW_OP_GNU_entry_value.
21853 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21855         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21856         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21857         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21858         comment and use macro TARGET_64BIT_MS_ABI instead.
21859         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21860         and change default behavior for 32-bit MS_ABI.
21861         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21862         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21863         32-bit, too.
21864         (ix86_cfun_abi): Likewise.
21865         (ix86_maybe_switch_abi): Adjust comment.
21866         (init_cumulative_args): Check for bit-ness in MS_ABI case.
21867         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21868         instead of checking for SYSV_ABI.
21869         (ix86_nsaved_sseregs): Likewise.
21870         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21871         to 16 bytes.
21872         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
21873         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
21874         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
21875         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
21876         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
21878 2011-03-25  Richard Guenther  <rguenther@suse.de>
21880         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
21881         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21882         (verify_gimple): Remove.
21883         * tree-cfg.c (verify_gimple_call): Merge verification
21884         from verify_stmts.
21885         (verify_gimple_phi): Merge verification from verify_stmts.
21886         (verify_gimple_label): New function.
21887         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
21888         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21889         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
21890         (verify_stmts): Rename to verify_gimple_in_cfg.
21891         (verify_gimple_in_cfg): New function.
21892         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
21893         * tree-ssa.c (verify_ssa): Likewise.
21894         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
21896 2011-03-25  Richard Guenther  <rguenther@suse.de>
21898         * passes.c (init_optimization_passes): Add FRE pass after
21899         early SRA.
21901 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
21902             Andrew Stubbs  <ams@codesourcery.com>
21904         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
21905         for Cortex-A8.
21906         (arm_movdi_vfp_cortexa8): New pattern.
21907         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
21908         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
21909         instructions when tuning for Cortex-A8.  Set attribute "arch".
21910         * config/arm/arm.md: Move include arm-tune.md up a bit.
21911         (define_attr "arch"): Add "onlya8" and "nota8" values.
21912         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
21914 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21916         PR bootstrap/48282
21917         Revert:
21918         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21920         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21921         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21922         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21923         * passes.c (init_optimization_passes): Move
21924         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21926 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21928         * c-typeck.c (comptypes_internal): Replace target
21929         hook call of comp_type_attributes by version in tree.c file.
21930         * gimple.c (gimple_types_compatible_p_1): Likewise.
21931         * tree-ssa.c (useless_type_conversion_p): Likewise.
21932         * tree.c (build_type_attribute_qual_variant): Likewise.
21933         (attribute_value_equal): New static helper function.
21934         (comp_type_attributes): New function.
21935         (merge_attributes): Use attribute_value_equal for comparison.
21936         (attribute_list_contained): Likewise.
21937         * tree.h (comp_type_attributes): New prototype.
21939 2011-03-25  Richard Guenther  <rguenther@suse.de>
21941         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
21942         of complex types at -O0.
21943         (verify_gimple_assign_binary): Likewise.
21944         (verify_gimple_assign_ternary): Likewise.
21946 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21948         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
21949         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
21951 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21953         PR debug/48041
21954         * dwarf2out.c (output_abbrev_section): Only write table when
21955         abbrev_die_table_in_use > 1.
21957 2011-02-24  Richard Henderson  <rth@redhat.com>
21959         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
21960         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
21961         (alpha_expand_unaligned_load_words): Use extql.
21962         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
21963         (emit_insxl): Handle all modes for consistency.
21965 2011-02-24  Richard Henderson  <rth@redhat.com>
21967         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
21968         (alpha_expand_unaligned_load): Likewise.
21969         (alpha_expand_unaligned_store): Likewise.
21970         (alpha_expand_unaligned_load_words): Likewise.
21971         (alpha_expand_unaligned_store_words): Likewise.
21972         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
21973         (alpha_split_lock_test_and_set_12): Likewise.
21974         (print_operand, alpha_fold_builtin_extxx): Likewise.
21975         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
21976         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
21977         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
21978         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
21979         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
21980         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
21981         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
21982         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
21983         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
21984         (extwl, extll, extql): Similarly.
21985         (inswh, inslh, insqh): Similarly.
21986         (mskbl, mskwl, mskll, mskql): Similarly.
21987         (mskwh, msklh, mskqh): Similarly.
21989 2011-02-24  Richard Henderson  <rth@redhat.com>
21991         * config/alpha/alpha.md (attribute isa): Add er, ner.
21992         (attribute enabled): Handle them.
21993         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
21995 2011-02-24  Richard Henderson  <rth@redhat.com>
21997         * config/alpha/alpha.md (attribute isa): Add vms.
21998         (attribute enabled): Handle it.
21999         (*movsf): Merge *movsf_{nofix,fix,nofp}.
22000         (*movdf): Merge *movdf_{nofix,fix,nofp}.
22001         (*movtf): Rename from *movtf_internal for consistency.
22002         (*movsi): Merge with *movsi_nt_vms.
22003         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
22004         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
22005         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
22006         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
22008 2011-02-24  Richard Henderson  <rth@redhat.com>
22010         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
22011         (extendqisi2, extendhisi2): Likewise.
22012         (extendqidi2): Simplify BWX/non-BWX expansions.
22013         (extendhidi2): Similarly.
22015 2011-02-24  Richard Henderson  <rth@redhat.com>
22017         * config/alpha/alpha.md (attribute isa): New.
22018         (attribute enabled): New.
22019         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
22020         (zero_extendqisi2, zero_extendqidi2): Similarly.
22021         (zero_extendhisi2, zero_extendhidi2): Similarly.
22022         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
22024 2011-02-24  Richard Henderson  <rth@redhat.com>
22026         * config/alpha/predicates.md (input_operand): Revert last change;
22027         update comment to mention 32-bit VMS rather than Windows.
22029 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22031         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22032         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
22033         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22034         * passes.c (init_optimization_passes): Move
22035         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22037 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22039         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
22041 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
22043         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
22044         correctly.
22046 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
22048         PR debug/48204
22049         * simplify-rtx.c (simplify_const_unary_operation): Call
22050         real_convert when changing mode class with FLOAT_EXTEND.
22052 2011-03-24  Nick Clifton  <nickc@redhat.com>
22054         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
22055         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22056         * config/rx/rx.c (rx_option_override): Set align_jumps,
22057         align_loops and align_labels if not set by the user.
22058         (rx_align_for_label): New function.
22059         (rx_max_skip_for_label): New function.
22060         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
22061         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
22062         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
22063         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
22064         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
22066 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22068         PR rtl-optimization/48263
22069         * optabs.c (expand_binop_directly): Reinstate convert_modes code
22070         and original commutative_p handling.  Use maybe_gen_insn.
22072 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22074         * reload.c (find_reloads_subreg_address): Add address_reloaded
22075         parameter and return true there if the full address has been
22076         reloaded.
22077         (find_reloads_toplev): Pass address_reloaded flag.
22078         (find_reloads_address_1): Don't use address_reloaded parameter.
22080 2011-03-24  Jeff Law  <law@redhat.com>
22082         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
22083         unused variable "ann".
22084         (remove_unused_locals): Likewise.
22086         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
22087         statement.
22089         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
22090         after it is freed.
22092 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22094         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22095         for invalid symbolic addresses.
22096         (s390_secondary_reload): Don't use s390_check_symref_alignment for
22097         larl operands.
22099 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22101         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22102         the argument in calls to fold_truth_not_expr.
22104 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22106         * tree.c (record_node_allocation_statistics): New function.
22107         (make_node_stat, copy_node_stat, build_string): Call it.
22108         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22109         (build1_stat, build_omp_clause): Likewise.
22111 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22113         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22114         last commit.
22116 2011-03-24  Richard Guenther  <rguenther@suse.de>
22118         PR tree-optimization/48271
22119         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22120         blocks that still exist.
22122 2011-03-24  Richard Guenther  <rguenther@suse.de>
22124         PR tree-optimization/48270
22125         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22126         not free datarefs before ddrs.
22128 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22130         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22131         from the address built for a reference with variable offset.
22133 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
22135         PR target/48237
22136         * config/i386/i386.md (*movdf_internal_rex64): Do not split
22137         alternatives that can be handled with movq or movabsq insn.
22138         (*movdf_internal): Disable for !TARGET_64BIT.
22139         (*movdf_internal_nointeger): Ditto.
22140         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22142 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22144         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22145         (FUNCTION_ARG_ADVANCE): Likewise.
22146         * tm.texi.in: Change references to them to hook references.
22147         * tm.texi: Regenerate.
22148         * targhooks.c (default_function_arg): Eliminate check for target macro.
22149         (default_function_incoming_arg): Likewise.
22150         (default_function_arg_advance): Likewise.
22151         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22152         (function_arg_advance): Likewise.
22153         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22155 2011-03-24  Richard Guenther  <rguenther@suse.de>
22157         PR middle-end/48269
22158         * tree-object-size.c (addr_object_size): Do not double-account
22159         for MEM_REF offsets.
22161 2011-03-24  Diego Novillo  <dnovillo@google.com>
22163         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22164         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22165         (lto_input_data_block): Move from lto-opts.c.  Make extern.
22166         Update all users.
22167         (lto_input_string): Rename from input_string.  Make extern.
22168         Update all users.
22169         * lto-streamer-out.c (lto_output_string_with_length): Rename from
22170         output_string_with_length.
22171         Output 0 to indicate a non-NULL string.  Update all callers to
22172         not emit 0.
22173         (lto_output_string): Rename from output_string.  Make extern.
22174         Update all users.
22175         (lto_output_decl_state_streams): Make extern.
22176         (lto_output_decl_state_refs): Make extern.
22177         * lto-streamer.h (lto_input_string): Declare.
22178         (lto_input_data_block): Declare.
22179         (lto_output_string): Declare.
22180         (lto_output_string_with_length): Declare.
22181         (lto_output_decl_state_streams): Declare.
22182         (lto_output_decl_state_refs): Declare.
22184 2011-03-24  Richard Guenther  <rguenther@suse.de>
22186         PR tree-optimization/46562
22187         * tree.c (build_invariant_address): New function.
22188         * tree.h (build_invariant_address): Declare.
22189         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
22190         a renamed function moved ...
22191         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
22192         Take valueization callback parameter.
22193         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
22194         * gimple-fold.h: New file.
22195         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
22196         (ccp_fold, fold_const_aggregate_ref,
22197         fold_ctor_reference, fold_nonarray_ctor_reference,
22198         fold_array_ctor_reference, fold_string_cst_ctor_reference,
22199         get_base_constructor): Move ...
22200         * gimple-fold.c: ... here.
22201         (gimple_fold_stmt_to_constant_1): New function
22202         split out from ccp_fold.  Take a valueization callback parameter.
22203         Valueize all operands.
22204         (gimple_fold_stmt_to_constant): New wrapper function.
22205         (fold_const_aggregate_ref_1): New function split out from
22206         fold_const_aggregate_ref.  Take a valueization callback parameter.
22207         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
22208         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
22209         invariant POINTER_PLUS_EXPRs to invariant form.
22210         (vn_valueize): New function.
22211         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
22212         * tree-vrp.c (vrp_valueize): New function.
22213         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
22214         to fold statements to constants.
22215         * tree-ssa-pre.c (eliminate): Properly guard propagation of
22216         function declarations.
22217         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
22218         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
22220 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22222         * config/h8300/predicates.md (jump_address_operand): Fix register
22223         mode check.
22225 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
22227         * doc/invoke.texi (max-stores-to-sink): Document.
22228         * params.h (MAX_STORES_TO_SINK): Define.
22229         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
22230         if either vectorization or if-conversion is disabled.
22231         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
22232         tree-vect-data-refs.c vect_equal_offsets.
22233         (dr_equal_offsets_p): New function.
22234         (find_data_references_in_bb): Remove static.
22235         * tree-data-ref.h (find_data_references_in_bb): Declare.
22236         (dr_equal_offsets_p): Likewise.
22237         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
22238         (vect_drs_dependent_in_basic_block): Update calls to
22239         vect_equal_offsets.
22240         (vect_check_interleaving): Likewise.
22241         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
22242         (cond_if_else_store_replacement): Rename to...
22243         (cond_if_else_store_replacement_1): ... this.  Change arguments and
22244         documentation.
22245         (cond_if_else_store_replacement): New function.
22246         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
22247         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
22249 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
22251         PR target/46934
22252         * config/arm/arm.md (casesi): Use the gen_int_mode() function
22253         to subtract lower bound instead of GEN_INT().
22255 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
22257         PR other/48179
22258         PR other/48221
22259         PR other/48234
22260         * doc/extend.texi (Alignment): Move section to match order in TOC.
22261         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
22262         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
22264 2011-03-23  Jeff Law  <law@redhat.com>
22266         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
22267         before removing the edge.
22269         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
22270         it may have been freed by redirect_branch_edge or
22271         redirect_edge_succ_nodup.
22273 2011-03-23  Richard Guenther  <rguenther@suse.de>
22275         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
22276         (check_va_list_escapes): Likewise.
22277         (check_all_va_list_escapes): Likewise.
22279 2011-03-23  Richard Guenther  <rguenther@suse.de>
22281         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
22282         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
22283         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
22284         (alias.o): Likewise.
22285         (ipa-type-escape.o): Remove.
22286         (ipa-struct-reorg.o): Likewise.
22287         (GTFILES): Remove ipa-struct-reorg.c.
22288         * alias.c: Do not include ipa-type-escape.h.
22289         * tree-ssa-alias.c: Likewise.
22290         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
22291         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
22292         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
22293         and ipa-type-escape passes.
22294         * tree-pass.h (pass_ipa_type_escape): Remove.
22295         (pass_ipa_struct_reorg): Likewise.
22296         * ipa-struct-reorg.h: Remove.
22297         * ipa-struct-reorg.c: Likewise.
22298         * ipa-type-escape.h: Likewise.
22299         * ipa-type-escape.c: Likewise.
22300         * doc/invoke.texi (-fipa-struct-reorg): Remove.
22301         (--param struct-reorg-cold-struct-ratio): Likewise.
22302         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22303         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22304         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
22306 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22308         * config/s390/2084.md: Enable all insn reservations also for z9_ec
22309         cpu attribute value.
22310         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
22311         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
22312         * config/s390/s390.c (processor_flags_table): New constant array.
22313         (s390_handle_arch_option): Remove.
22314         (s390_handle_option): Remove s390_handle_arch_option invocations
22315         and OPT_mwarn_framesize_ handling.
22316         (s390_option_override): Remove s390_handle_arch_option invocation.
22317         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
22318         warnings.
22319         * config/s390/s390.md (cpu attribute): Add z9_ec value.
22320         * config/s390/s390.opt (s390_tune, s390_arch)
22321         (march=): Replace s390_arch_option enum and values with
22322         processor_type.  Set variable name to s390_arch.  Set
22323         initialization value.
22324         (mtune=): Replace s390_arch_option with processor_type.  Set
22325         variable name to s390_tune.  Set initialization value.
22327 2011-03-23  Julian Brown  <julian@codesourcery.com>
22329         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
22330         accesses which are not naturally aligned.
22332 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
22334         PR target/47553
22335         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
22337 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
22339         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
22340         parameter from "int" to "enum insn_code".
22341         (expand_operand_type): New enum.
22342         (expand_operand): New structure.
22343         (create_expand_operand): New function.
22344         (create_fixed_operand, create_output_operand): Likewise
22345         (create_input_operand, create_convert_operand_to): Likewise.
22346         (create_convert_operand_from, create_address_operand): Likewise.
22347         (create_integer_operand): Likewise.
22348         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
22349         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22350         (expand_insn, expand_jump_insn): Likewise.
22351         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
22352         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
22353         (expand_movstr, expand_builtin___clear_cache): Likewise.
22354         (expand_builtin_lock_release): Likewise.
22355         * explow.c (allocate_dynamic_stack_space): Likewise.
22356         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
22357         and use the default handling in that case.
22358         * expmed.c (check_predicate_volatile_ok): Delete.
22359         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
22360         (emit_cstore): Likewise.
22361         * expr.c (emit_block_move_via_movmem): Likewise.
22362         (set_storage_via_setmem, expand_assignment): Likewise.
22363         (emit_storent_insn, try_casesi): Likewise.
22364         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
22365         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
22366         (expand_vec_shift_expr, expand_binop_directly): Likewise.
22367         (expand_twoval_unop, expand_twoval_binop): Likewise.
22368         (expand_unop_direct, emit_indirect_jump): Likewise.
22369         (emit_conditional_move, vector_compare_rtx): Likewise.
22370         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
22371         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
22372         (expand_sync_lock_test_and_set): Likewise.
22373         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
22374         (emit_unop_insn): Likewise.
22375         (expand_copysign_absneg): Change icode to an insn_code.
22376         (create_convert_operand_from_type): New function.
22377         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
22378         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22379         (expand_insn, expand_jump_insn): Likewise.
22380         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
22381         than const_int_operand for operand 2.
22383 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22385         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
22386         if possible.
22388 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22390         * emit-rtl.c (emit_pattern_before_noloc): New function.
22391         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
22392         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
22393         (emit_pattern_after_noloc): New function.
22394         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
22395         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
22397 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22399         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
22400         (__ffsDI2): Likewise.
22402 2011-03-22  Richard Henderson  <rth@redhat.com>
22404         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22405         of !TARGET_ABI_OPEN_VMS.
22406         (alpha_trampoline_init, alpha_start_function): Likewise.
22407         (alpha_expand_epilogue, alpha_file_start): Likewise.
22408         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22409         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22410         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22411         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22412         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22414 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22416         * config/s390/s390-opts.h: New.
22417         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22418         s390_arch_flags, s390_warn_framesize, s390_stack_size,
22419         s390_stack_guard): Remove.
22420         (s390_handle_arch_option): Return void.  Take enum
22421         s390_arch_option value instead of string and searching array.
22422         (s390_handle_option): Don't assert that global structures are in
22423         use.  Access variables via opts pointer.  Use error_at.  Don't use
22424         sscanf for -mstack-guard= or -mstack-size=.  Update call to
22425         s390_handle_arch_option.
22426         (s390_option_override): Update call to s390_handle_arch_option.
22427         (s390_emit_prologue): Use %d format for s390_stack_size in
22428         diagnostic.  Use %wd for HOST_WIDE_INT.
22429         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22430         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22431         * config/s390/s390.opt (config/s390/s390-opts.h): New
22432         HeaderInclude entry.
22433         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22434         s390_arch_flags, s390_warn_framesize): New Variable entries.
22435         (s390_arch_option): New Enum and EnumValue entries.
22436         (march=): Use Enum instead of Var.
22437         (mstack-guard=, mstack-size=): Use UInteger and Var.
22438         (mtune=): Use Enum.
22440 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22442         * config/score/score.c (score_handle_option): Don't assert that
22443         global structures are in use.  Access target_flags via opts
22444         pointer.  Use value of -march= option to determine target_flags
22445         settings.
22446         * config/score/score.opt (march=): Use Enum.
22447         (score_arch): New Enum and EnumValue entries.
22449 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22451         * config/mep/mep.c (option_mtiny_specified): Remove.
22452         (mep_option_override): Move register handling for -mivc2 from
22453         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
22454         instead of option_mtiny_specified.
22455         (mep_handle_option): Access target_flags via opts pointer.  Don't
22456         assert that global structures are in use.  Defer part of -mivc2
22457         handling and move it to mep_option_override.
22458         * config/mep/mep.opt (IVC2): New Mask entry.
22459         (mivc2): Use Var and Defer instead of Mask.
22461 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22463         * config/v850/v850-opts.h: New.
22464         * config/v850/v850.c (small_memory): Replace with
22465         small_memory_physical_max array.  Make that array static const.
22466         (v850_handle_memory_option): Take integer value of argument.  Take
22467         gcc_options pointer, option text and location.  Return void.
22468         Update for changes to small memory structures.
22469         (v850_handle_option): Access target_flags via opts pointer.  Don't
22470         assert that global structures are in use.  Update calls to
22471         v850_handle_memory_option.
22472         (v850_encode_data_area): Update references to small memory settings.
22473         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22474         (enum small_memory_type): Move to v850-opts.h.
22475         * config/v850/v850.opt (config/v850/v850-opts.h): New
22476         HeaderInclude entry.
22477         (small_memory_max): New Variable entry.
22478         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
22479         (mtda, mzda): Likewise.
22481 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22483         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22484         pointer.  Don't assert that global structures are in use.
22486 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22488         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22489         via opts pointer.  Don't assert that global structures are in use.
22491 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22493         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22494         (munix=93): Use Var.
22495         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22496         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22497         * config/pa/pa-opts.h: New.
22498         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22499         (pa_handle_option): Don't assert that global structures are in
22500         use.  Access target_flags via opts pointer.  Don't handle
22501         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22502         OPT_munix_98 here.
22503         (pa_option_override): Handle deferred OPT_mfixed_range_.
22505 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22507         * config/mn10300/mn10300-opts.h: New.
22508         * config/mn10300/mn10300.c (mn10300_processor,
22509         mn10300_tune_string): Remove.
22510         (mn10300_handle_option): Don't assert that global structures are
22511         in use.  Access mn10300_processor via opts pointer.  Don't handle
22512         OPT_mtune_ here.
22513         * config/mn10300/mn10300.h (enum processor_type): Move to
22514         mn10300-opts.h.
22515         (mn10300_processor): Remove.
22516         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22517         HeaderInclude entry.
22518         (mn10300_processor): New Variable entry.
22519         (mtune=): Use Var.
22521 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22523         * config/microblaze/microblaze.c: Don't include opts.h.
22524         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22525         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22526         (mno-clearbss): Use Var and Warn.
22528 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22530         * config/m32r/m32r-opts.h: New.
22531         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22532         (m32r_handle_option): Don't assert that global structures are in
22533         use.  Access target_flags and m32r_cache_flush_func via opts
22534         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
22535         OPT_mno_flush_trap here.
22536         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22537         include of m32r-opts.h.
22538         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22539         HeaderInclude entry.
22540         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22541         (mmodel=): Use Enum and Var.
22542         (m32r_model): New Enum and EnumValue entries.
22543         (mno-flush-trap): Use Var.
22544         (msdata=): Use Enum and Var.
22545         (m32r_sdata): New Enum and EnumValue entries.
22547 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22549         * config/m32c/m32c.c: Don't include opts.h.
22550         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22551         m32c_handle_option): Remove.
22552         (m32c_option_override): Check global_options_set.x_target_memregs
22553         instead of target_memregs_set.
22554         * config/m32c/m32c.h (target_memregs): Remove.
22555         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22556         variable.
22558 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22560         * config/iq2000/iq2000-opts.h: New.
22561         * config/iq2000/iq2000.c: Don't include opts.h.
22562         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22563         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22564         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22565         HeaderInclude entry.
22566         (iq2000_tune): New Variable entry.
22567         (march=): Add comment.  Use Enum.
22568         (iq2000_arch): New Enum and EnumValue entries.
22569         (mcpu=): Use Enum and Var.
22570         (iq2000_tune): New Enum and EnumValue entries.
22572 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22574         * config/ia64/ia64-opts.h: New.
22575         * config/ia64/ia64.c (ia64_tune): Remove.
22576         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22577         here.  Use error_at.
22578         (ia64_option_override): Handle deferred OPT_mfixed_range_.
22579         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22580         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22581         HeaderInclude entry.
22582         (ia64_tune): New Variable entry.
22583         (mfixed-range=): Use Defer and Var.
22584         (mtune=): Use Enum and Var.
22585         (ia64_tune): New Enum and EnumValue entries.
22587 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22589         * config/frv/frv-opts.h: New.
22590         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22591         frv-opts.h.
22592         (frv_cpu_type): Remove.
22593         * config/frv/frv.c: Don't include opts.h.
22594         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22595         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22596         (frv_cpu_type): New Variable entry.
22597         (frv_cpu): New Enum and EnumValue entries.
22599 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22601         * config/cris/cris.c (cris_handle_option): Access target_flags via
22602         opts pointer.  Don't assert that global structures are in use.
22603         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22604         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22606 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22608         * config/bfin/bfin-opts.h: New.
22609         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22610         bfin_si_revision, bfin_workarounds): Remove.
22611         (bfin_cpus): Make static const.
22612         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22613         not bfin_lib_id_given.
22614         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
22615         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22616         pointer. Use error_at.  Don't assert that global structures are in use.
22617         * config/bfin/bfin.h: Include bfin-opts.h.
22618         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22619         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22620         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22621         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22622         entries.
22624 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22626         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
22627         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
22628         or -msoft-float here.
22629         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
22630         -msoft-float and -mhard-float.
22631         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
22632         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22633         msoft-float.
22634         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
22635         -msoft-float.
22636         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
22637         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
22638         not mhard-float.
22639         (LIBGCC_SPEC): Don't handle -msoft-float.
22640         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
22641         -mhard-float.
22642         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22643         msoft-float.
22644         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
22645         -mfloat-abi=*, not -msoft-float and -mhard-float.
22646         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
22647         -msoft-float.
22648         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
22649         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
22650         mhard-float and msoft-float.
22651         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
22652         mfloat-abi=soft in comments, not mhard-float and msoft-float.
22653         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22654         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
22655         mhard-float.
22656         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
22657         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
22658         msoft-float.
22659         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
22660         not mhard-float.
22661         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
22662         not msoft-float.
22664 2011-03-22  Richard Henderson  <rth@redhat.com>
22666         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
22667         TARGET_ABI_WINDOWS_NT.
22668         (alpha_output_function_end_prologue): Likewise.
22669         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
22670         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22671         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
22672         (trap, *movsi_nt_vms): Likewise.
22673         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
22674         (*tablejump_osf_nt_internal): Remove.
22675         * config/alpha/predicates.md (input_operand): Only test Pmode.
22677 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22679         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
22680         via opts pointer.  Use error_at.  Don't assert that global
22681         structures are in use.
22683 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22685         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
22686         (ix86_handle_option): Access ix86_isa_flags and
22687         ix86_isa_flags_explicit via opts pointer.  Don't assert that
22688         global structures are in use.
22689         (ix86_function_specific_save, ix86_function_specific_restore):
22690         Update ix86_isa_flags_explicit field name.
22691         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22692         (ix86_isa_flags_explicit): Rename TargetSave entry to
22693         x_ix86_isa_flags_explicit.
22695 2011-03-22  Richard Henderson  <rth@redhat.com>
22697         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22698         (alpha_option_override, direct_return): Likewise.
22699         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22700         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22701         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22702         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22703         (alpha_expand_epilogue, alpha_end_function): Likewise.
22704         (alpha_init_libfuncs): Likewise.
22705         (struct machine_function): Remove unicosmk members.
22706         (print_operand) ['t']: Remove.
22707         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22708         unicosmk_output_module_name, unicosmk_output_common,
22709         current_section_align, unicosmk_output_text_section_asm_op,
22710         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22711         unicosmk_section_type_flags, unicosmk_unique_section,
22712         unicosmk_asm_named_section, unicosmk_insert_attributes,
22713         unicosmk_output_align, unicosmk_defer_case_vector,
22714         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22715         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22716         unicosmk_output_ssib, unicosmk_add_call_info_word,
22717         unicosmk_extern_head, unicosmk_output_default_externs,
22718         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22719         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22720         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22721         * config/alpha/alpha-protos.h: Update.
22722         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22723         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22724         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22725         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22726         (*mulsi_se, mulvsi3): Likewise.
22727         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22728         (*divmodsi_internal, call, call_value, realign): Likewise.
22729         (moddi3, umoddi3): Likewise; remove duplicate expander.
22730         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22731         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22732         (*movdi_nofix): Remove r/U alternative.
22733         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22734         * config/alpha/constraints.md ("U"): Remove.
22735         * config/alpha/predicates.md (call_operand"): Don't test
22736         TARGET_ABI_UNICOSMK.
22738 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22740         * target.def (handle_option): Take gcc_options and
22741         cl_decoded_option pointers and location_t.
22742         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22743         * doc/tm.texi: Regenerate.
22744         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22745         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22746         * lto-opts.c (lto_reissue_options): Generate option structure for
22747         targetm.handle_option call.
22748         * opts.c (target_handle_option): Update call to
22749         targetm.handle_option.  Remove assertions about values now passed
22750         down to hook.
22751         * targhooks.c (default_target_handle_option): New.
22752         * targhooks.h (default_target_handle_option): Declare.
22753         * config/alpha/alpha.c: Include opts.h.
22754         (alpha_handle_option): Update to new hook interface.
22755         * config/arm/arm.c: Include opts.h.
22756         (arm_handle_option): Update to new hook interface.
22757         * config/arm/t-arm (arm.o): Update dependencies.
22758         * config/bfin/bfin.c: Include opts.h.
22759         (bfin_handle_option): Update to new hook interface.
22760         * config/cris/cris.c: Include opts.h.
22761         (cris_handle_option): Update to new hook interface.
22762         * config/frv/frv.c: Include opts.h.
22763         (frv_handle_option): Update to new hook interface.
22764         * config/i386/i386.c: Include opts.h.
22765         (ix86_handle_option): Update to new hook interface.
22766         (ix86_valid_target_attribute_inner_p): Generate option structure
22767         for call to ix86_handle_option.
22768         * config/i386/t-i386 (i386.o): Update dependencies.
22769         * config/ia64/ia64.c: Include opts.h.
22770         (ia64_handle_option): Update to new hook interface.
22771         * config/ia64/t-ia64 (ia64.o): Update dependencies.
22772         * config/iq2000/iq2000.c: Include opts.h.
22773         (iq2000_handle_option): Update to new hook interface.
22774         * config/m32c/m32c.c: Include opts.h.
22775         (m32c_handle_option): Update to new hook interface.
22776         * config/m32r/m32r.c: Include opts.h.
22777         (m32r_handle_option): Update to new hook interface.
22778         * config/m68k/m68k.c: Include opts.h.
22779         (m68k_handle_option): Update to new hook interface.
22780         * config/mep/mep.c: Include opts.h.
22781         (mep_handle_option): Update to new hook interface.
22782         * config/microblaze/microblaze.c: Include opts.h.
22783         (microblaze_handle_option): Update to new hook interface.
22784         * config/mips/mips.c: Include opts.h.
22785         (mips_handle_option): Update to new hook interface.
22786         * config/mn10300/mn10300.c: Include opts.h.
22787         (mn10300_handle_option): Update to new hook interface.
22788         * config/pa/pa.c: Include opts.h.
22789         (pa_handle_option): Update to new hook interface.
22790         * config/pdp11/pdp11.c: Include opts.h.
22791         (pdp11_handle_option): Update to new hook interface.
22792         * config/rs6000/rs6000.c: Include opts.h.
22793         (rs6000_handle_option): Update to new hook interface.
22794         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22795         * config/rx/rx.c: Include opts.h.
22796         (rx_handle_option): Update to new hook interface.
22797         * config/s390/s390.c: Include opts.h.
22798         (s390_handle_option): Update to new hook interface.
22799         * config/score/score.c: Include opts.h.
22800         (score_handle_option): Update to new hook interface.
22801         * config/sh/sh.c: Include opts.h.
22802         (sh_handle_option): Update to new hook interface.
22803         * config/sparc/sparc.c: Include opts.h.
22804         (sparc_handle_option): Update to new hook interface.
22805         * config/v850/v850.c: Include opts.h.
22806         (v850_handle_option): Update to new hook interface.
22808 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22810         * gcc.c (driver_unknown_option_callback): Only permit and save
22811         unknown -Wno- options.
22812         (driver_wrong_lang_callback): Save options directly instead of via
22813         driver_unknown_option_callback.
22815 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22817         * combine.c (simplify_set): Try harder to find the best CC mode when
22818         simplifying a nested COMPARE on the RHS.
22820 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22822         * config/alpha/gnu.h: Remove.
22823         * config/arc: Remove directory.
22824         * config/arm/netbsd.h: Remove.
22825         * config/arm/t-pe: Remove.
22826         * config/crx: Remove directory.
22827         * config/i386/netbsd.h: Remove.
22828         * config/m68hc11: Remove directory.
22829         * config/m68k/uclinux-oldabi.h: Remove.
22830         * config/mcore/mcore-pe.h: Remove.
22831         * config/mcore/t-mcore-pe: Remove.
22832         * config/netbsd-aout.h: Remove.
22833         * config/rs6000/gnu.h: Remove.
22834         * config/sh/sh-symbian.h: Remove.
22835         * config/sh/symbian-base.c: Remove.
22836         * config/sh/symbian-c.c: Remove.
22837         * config/sh/symbian-cxx.c: Remove.
22838         * config/sh/symbian-post.h: Remove.
22839         * config/sh/symbian-pre.h: Remove.
22840         * config/sh/t-symbian: Remove.
22841         * config/svr3.h: Remove.
22842         * config/vax/netbsd.h: Remove.
22843         * config.build: Don't handle i[34567]86-*-pe.
22844         * config.gcc: Remove handling of deprecations for most deprecated
22845         targets.
22846         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22847         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22848         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22849         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22850         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22851         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22852         Remove cases.
22853         * config.host: Don't handle i[34567]86-*-pe.
22854         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22855         (ASM_SPEC32): Don't handle -mcall-gnu.
22856         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22857         -mcall-gnu.
22858         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22859         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22860         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22861         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22862         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22863         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22864         conditional on SYMBIAN.
22865         * configure.ac: Don't handle powerpc*-*-gnu*.
22866         * configure: Regenerate.
22867         * doc/extend.texi (interrupt attribute): Don't mention CRX.
22868         * doc/install-old.texi (m6811, m6812): Don't mention.
22869         * doc/install.texi (arc-*-elf*): Don't document multilib option.
22870         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22871         (m68k-uclinuxoldabi): Don't mention.
22872         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
22873         Remove.
22874         (-mcall-gnu): Remove.
22875         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
22876         families): Remove constraint documentation.
22878 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
22880         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
22881         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
22882         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
22884 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22886         PR target/48226
22887         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
22888         vector when peeking at the next token for vector, don't expand the
22889         keywords.
22891 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
22893         * config/avr/avr-protos.h (expand_epilogue): Change prototype
22894         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
22895         * config/avr/avr.c (init_cumulative_args)
22896         (avr_function_arg_advance): Use it.
22897         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
22898         sibcall epilogues.
22899         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
22900         (avr_function_ok_for_sibcall): ...this new function.
22901         (avr_lookup_function_attribute1): New static Function.
22902         (avr_naked_function_p, interrupt_function_p)
22903         (signal_function_p, avr_OS_task_function_p)
22904         (avr_OS_main_function_p): Use it.
22905         * config/avr/avr.md ("sibcall", "sibcall_value")
22906         ("sibcall_epilogue"): New expander.
22907         ("*call_insn", "*call_value_insn"): New insn.
22908         ("call_insn", "call_value_insn"): Remove
22909         ("call", "call_value", "epilogue"): Change expander to handle
22910         sibling calls.
22912 2011-03-21  Nick Clifton  <nickc@redhat.com>
22914         * doc/invoke.texi (Overall Options): Move closing brace to end of
22915         options list.
22916         (Optimization Options): Add missing @gol.
22917         (Directory Options): Likewise.
22918         (i386 and x86-64 Options): Likewise.
22919         (RS6000 and PowerPC Options): Likewise.
22920         (i386 and x86-64 Windows Options): Likewise.
22921         (V850 Options): Add text missing from descriptions.
22923 2011-03-22  Richard Henderson  <rth@redhat.com>
22925         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
22926         (avr_incoming_return_addr_rtx): New.
22927         (emit_push_byte): New.
22928         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
22929         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
22930         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
22931         (emit_pop_byte): New.
22932         (expand_epilogue): Use it.  Pop frame pointer by bytes.
22933         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
22934         (INCOMING_RETURN_ADDR_RTX): New.
22935         (INCOMING_FRAME_SP_OFFSET): New.
22936         (ARG_POINTER_CFA_OFFSET): New.
22937         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
22938         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
22939         (pophi): Remove.
22941         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
22943 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22945         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22946         (FUNCTION_ARG_ADVANCE): Likewise.
22947         * tm.texi.in: Change references to them to hook references.
22948         * tm.texi: Regenerate.
22949         * targhooks.c (default_function_arg): Eliminate check for target
22950         macro.
22951         (default_function_incoming_arg): Likewise.
22952         (default_function_arg_advance): Likewise.
22953         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22954         (function_arg_advance): Likewise.
22955         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22957 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22959         * tree.c (build_call_1): New function.
22960         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
22962 2011-03-22  Richard Guenther  <rguenther@suse.de>
22964         PR tree-optimization/48228
22965         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
22966         for single-arg PHIs.
22968 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
22970         PR rtl-optimization/48143
22971         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
22972         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
22973         sse2_cvtps2pd): Likewise.
22975 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22977         * recog.c (canonicalize_change_group): Use validate_unshare_change.
22979 2011-03-22  Richard Guenther  <rguenther@suse.de>
22981         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
22982         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
22983         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
22984         and REALIGN_LOAD_EXPR.
22985         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
22986         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
22987         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
22988         DOT_PROD_EXPR case ...
22989         (expand_expr_real_2): ... here.
22990         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
22991         and REALIGN_LOAD_EXPR.
22992         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
22993         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
22994         (vect_create_epilog_for_reduction): Likewise.
22995         (vectorizable_reduction): Likewise.
22996         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
22997         * tree-vect-stmts.c (vectorizable_load): Likewise.
22999 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
23001         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
23003 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23005         * config/s390/s390.c (s390_delegitimize_address): Fix offset
23006         handling for PLTOFF/GOTOFF.
23008 2011-03-22  Nick Clifton  <nickc@redhat.com>
23010         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
23011         trailing backslash from the end of the macro definition.
23013 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23015         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
23016         and PLT unspecs.
23018 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
23020         * expr.h (prepare_operand): Move to...
23021         * optabs.h (prepare_operand): ...here and change the insn code
23022         parameter from "int" to "enum insn_code".
23023         (insn_operand_matches): Declare.
23024         * expr.c (init_expr_target): Use insn_operand_matches.
23025         (compress_float_constant): Likewise.
23026         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
23027         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
23028         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
23029         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
23030         Likewise.
23031         (gen_cond_trap): Likewise.
23032         (prepare_operand): Likewise.  Change icode to an insn_code.
23033         (insn_operand_matches): New function.
23034         * reload.c (find_reloads_address_1): Use insn_operand_matches.
23035         * reload1.c (gen_reload): Likewise.
23036         * targhooks.c (default_secondary_reload): Likewise.
23038 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
23040         * config/alpha/alpha.md (unspec): New define_c_enum.
23041         (unspecv): Ditto.
23043 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
23045         PR debug/48214
23046         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
23047         between a call and its CALL_ARG_LOCATION note.
23049 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
23051         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
23053 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
23055         PR c/42544
23056         PR c/48197
23057         * c-common.c (shorten_compare): If primopN is first sign-extended
23058         to opN and then zero-extended to result type, set primopN to opN.
23060 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
23062         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
23063         for barrier handlers.
23065 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
23067         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
23068         UNSPEC constants to be in the unspec enumeration, and redefine
23069         all UNSPECV constants to be in the unspecv enumeration, so that
23070         dumps print which unspec/unspec_volatile this is.
23071         * config/rs6000/vector.md (UNSPEC_*): Ditto.
23072         * config/rs6000/paired.md (UNSPEC_*): Ditto.
23073         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
23074         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
23075         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
23077         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
23078         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
23079         UNSPECV_LWSYNC, since these are used as unspec_volatile.
23080         * config/rs6000/sync.md (isync, lwsync): Ditto.
23082 2011-03-21  Richard Guenther  <rguenther@suse.de>
23084         * params.def (lto-min-partition): Fix typo.
23086 2011-03-21  Richard Guenther  <rguenther@suse.de>
23088         PR c/47939
23089         * c-decl.c (grokdeclarator): Drop to the main variant only
23090         for array types.  Drop flag_gen_aux_info check.
23092 2011-03-21  Richard Guenther  <rguenther@suse.de>
23094         PR translation/47911
23095         * params.def (lto-partitions): Fix typo.
23096         (lto-min-partition): Fix wording.
23098 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
23100         * config/rs6000/t-freebsd: Remove duplication from file.
23102 2011-03-21  Richard Guenther  <rguenther@suse.de>
23104         PR middle-end/47661
23105         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23107 2011-03-21  Richard Guenther  <rguenther@suse.de>
23109         PR lto/48210
23110         * params.def (lto-partitions): Require at least 1 partition.
23112 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23114         * gthr-solaris.h: Remove.
23115         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23116         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23117         (LIB_SPEC): Likewise.
23118         * config/sol2.opt (threads): Remove.
23119         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23120         (sparc*-*-solaris2*): Likewise.
23121         * configure.ac (enable_threads): Enable solaris support.
23122         * configure: Regenerate.
23123         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23124         * doc/install.texi (Configuration, --enable-threads=lib): Remove
23125         solaris.
23127 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23129         * config.gcc: Obsolete *-*-solaris2.8*.
23130         * doc/install.texi (Specific, *-*-solaris2*): Document it.
23132 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23134         PR bootstrap/48135
23135         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23136         reference.  Solaris 8 perl works.
23138 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23140         PR bootstrap/48135
23141         * doc/install.texi (Prerequisites): Move jar etc. up.
23142         Explain support library version requirements.
23144 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23146         PR bootstrap/48135
23147         * doc/install.texi (Prerequisites): Move Perl to build
23148         requirements.  Always necessary on Solaris 2 with Sun ld.
23150 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23152         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23153         binutils 2.21.
23154         (Specific, i?86-*-solaris2.[89]): Likewise.
23155         (Specific, i?86-*-solaris2.10): Likewise.
23156         (Specific, mips-sgi-irix6): Likewise.
23157         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23158         Update for binutils 2.21.
23160 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23162         * configure.ac (gcc_cv_lto_plugin): Fix typo.
23163         Allow -fuse-linker-plugin for non-default plugin linker.
23164         * configure: Regenerate.
23166 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
23168         PR bootstrap/48167
23169         * gengtype.c (files_rules): Added rule for cp/parser.h.
23171 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
23173         PR target/48213
23174         * config/s390/s390.c (s390_delegitimize_address): Don't call
23175         lowpart_subreg if orig_x has BLKmode.
23177 2011-03-21  Kai Tietz  <ktietz@redhat.com>
23179         PR target/12171
23180         * doc/plugins.texi: Adjust documentation for plugin register_callback.
23181         * tree.h (attribute_spec): Add new member affects_type_identity.
23182         * attribs.c (empty_attribute_table): Adjust attribute_spec
23183         initializers.
23184         * config/alpha/alpha.c: Likewise.
23185         * config/arc/arc.c: Likewise.
23186         * config/arm/arm.c: Likewise.
23187         * config/avr/avr.c: Likewise.
23188         * config/bfin/bfin.c: Likewise.
23189         * config/crx/crx.c: Likewise.
23190         * config/darwin.h: Likewise.
23191         * config/h8300/h8300.c: Likewise.
23192         * config/i386/cygming.h: Likewise.
23193         * config/i386/i386.c: Likewise.
23194         * config/ia64/ia64.c: Likewise.
23195         * config/m32c/m32c.c: Likewise.
23196         * config/m32r/m32r.c: Likewise.
23197         * config/m68hc11/m68hc11.c: Likewise.
23198         * config/m68k/m68k.c: Likewise.
23199         * config/mcore/mcore.c: Likewise.
23200         * config/mep/mep.c: Likewise.
23201         * config/microblaze/microblaze.c: Likewise.
23202         * config/mips/mips.c: Likewise.
23203         * config/rs6000/rs6000.c: Likewise.
23204         * config/rx/rx.c: Likewise.
23205         * config/sh/sh.c: Likewise.
23206         * config/sol2.h: Likewise.
23207         * config/sparc/sparc.c: Likewise.
23208         * config/spu/spu.c: Likewise.
23209         * config/stormy16/stormy16.c: Likewise.
23210         * config/v850/v850.c: Likewise.
23212 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
23214         * simplify-rtx.c (simplify_binary_operation_1): Handle
23215         (xor (and A B) C) case when B and C are both constants.
23217 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
23219         * tree-dfa.c (add_referenced_var): Fix typo in comment.
23221 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23223         PR bootstrap/48168
23224         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
23226 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
23228         PR rtl-optimization/48156
23229         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
23230         assume df and df_lr are not NULL.
23232 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23234         PR debug/48023
23235         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
23236         between a call and its CALL_ARG_LOCATION note.
23238 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23240         PR debug/48178
23241         * config/sh/sh.c (find_barrier): Don't emit a constant pool
23242         between a call and its corresponding CALL_ARG_LOCATION note.
23244 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
23246         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
23247         instead of loop. Use HARD_REGISTER_NUM_P predicate.
23248         * haifa-sched.c (setup_ref_regs): Ditto.
23249         * caller-save.c (add_used_regs_1): Ditto.
23250         * dse.c (look_for_hardregs): Ditto.
23251         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
23252         * sched-rgn.c (check_live_1): Ditto.
23254 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
23256         * c-decl.c (diagnose_mismatched_decls): Give an error for
23257         redefining a typedef with variably modified type.
23259 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
23261         * c-decl.c (grokfield): Don't allow typedefs for structures or
23262         unions with no tag by default.
23263         * doc/extend.texi (Unnamed Fields): Update.
23265 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
23267         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23268         Rewrite using indirect functions.
23269         (lwp_slwpcb): Ditto.
23270         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
23271         (avx_vinsertf128<mode>): Ditto.
23273 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23275         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
23276         unspecs.
23278 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23280         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
23281         splitting between a call and its corresponding CALL_ARG_LOCATION note.
23283 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
23285         PR rtl-optimization/48170
23286         * gcse.c (hoist_code): Remove bogus asserts.
23288 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
23290         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
23291         computation for prologue/epilogue.
23293 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23295         * Makefile.in (check-consistency): Remove.
23297 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
23299         PR debug/48176
23300         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
23301         arange_table_in_use is 0, but either text_section_used or
23302         cold_text_section_used is true.  Don't call it if
23303         !info_section_emitted.
23305 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
23307         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
23308         FUNCTION_VALUE_REGNO_P): Remove.
23309         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
23310         Remove.
23311         * config/avr/avr.c (avr_ret_register): Make static inline.
23312         (avr_function_value_regno_p): New function.
23313         (avr_libcall_value): Make static. Add 'func' argument.
23314         (avr_function_value): Make static. Rename 'func' argument to
23315         'fn_decl_or_type', forward it to avr_libcall_value. Call
23316         avr_ret_register function instead of RET_REGISTER macro.
23317         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23319 2011-03-18  Jason Merrill  <jason@redhat.com>
23321         PR c++/23372
23322         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
23324 2011-03-18  Richard Guenther  <rguenther@suse.de>
23326         * doc/install.texi (--enable-gold): Remove.
23327         (--with-plugin-ld): Document.
23328         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
23330 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
23332         PR middle-end/47790
23333         * expr.c (optimize_bitfield_assignment_op): Revamp to work
23334         again after expansion changes.
23336 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
23338         * combine.c (try_combine): Do simplification only call of
23339         subst() on i2 even when i1 is present. Update comments.
23341 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
23343         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
23344         and UNSPEC_PCREL_SYMOFF.
23346 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23348         * config/s390/s390.md: Use define_c_enum for the unspec constant
23349         definitions.
23351 2011-03-18  Richard Henderson  <rth@redhat.com>
23352             Jakub Jelinek  <jakub@redhat.com>
23354         PR bootstrap/48161
23355         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
23356         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
23358 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
23360         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23361         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
23362         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
23363         Change return type to bool.
23364         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23366 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23368         PR debug/48163
23369         * var-tracking.c (prepare_call_arguments): If CALL target
23370         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
23371         pc instead of looking it up using cselib_lookup and use
23372         Pmode for it if x has VOIDmode.
23373         * dwarf2out.c (gen_subprogram_die): If also both first and
23374         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
23376         PR debug/48163
23377         * function.c (assign_parms): For data.passed_pointer parms
23378         use MEM of data.entry_parm instead of data.entry_parm itself
23379         as DECL_INCOMING_RTL.
23380         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
23381         also when passed and declared mode is the same, DECL_RTL
23382         is a MEM with pseudo as address and DECL_INCOMING_RTL is
23383         a MEM too.
23385 2011-03-16  Jeff Law  <law@redhat.com>
23387         PR rtl-optimization/37273
23388         * ira-costs.c (scan_one_insn): Detect constants living in memory and
23389         handle them like argument loads from stack slots.  Do not double
23390         count memory for memory constants and argument loads from stack slots.
23392 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
23394         PR debug/48160
23395         * var-tracking.c (prepare_call_arguments): Check SUBREG.
23397 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
23399         PR target/48171
23400         * config/i386/i386.opt: Add Save to -mavx and -mfma.
23402 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23404         PR bootstrap/48153
23405         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23406         if dwarf_strict.
23407         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23408         Clear call_arg_locations and call_arg_loc_last always.
23410         PR middle-end/48152
23411         * var-tracking.c (prepare_call_arguments): If argument needs to be
23412         passed by reference, adjust argtype and mode.
23414 2011-03-17  Richard Guenther  <rguenther@suse.de>
23416         PR middle-end/48134
23417         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23418         a value make sure to fold the statement.
23420 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
23422         PR target/43872
23423         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23424         return condition with !cfun->calls_alloca.
23426 2011-03-17  Richard Guenther  <rguenther@suse.de>
23428         PR bootstrap/48148
23429         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23430         origin for decls in other ltrans units.
23431         (input_varpool_node): Likewise.
23433 2011-03-17  Richard Guenther  <rguenther@suse.de>
23435         PR middle-end/48165
23436         * tree-object-size.c (compute_object_offset): Properly return
23437         the offset operand of MEM_REFs as sizetype.
23439 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23441         PR rtl-optimization/48141
23442         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23443         * dse.c: Include params.h.
23444         (active_local_stores_len): New variable.
23445         (add_wild_read, dse_step1): Clear it when setting active_local_stores
23446         to NULL.
23447         (record_store, check_mem_read_rtx): Decrease it when removing
23448         from the chain.
23449         (scan_insn): Likewise.  Increase it when adding to chain, if it
23450         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23451         set active_local_stores to NULL before the addition.
23452         * Makefile.in (dse.o): Depend on $(PARAMS_H).
23454         PR rtl-optimization/48141
23455         * dse.c (record_store): If no positions are needed in an insn
23456         that cannot be deleted, at least unchain it from active_local_stores.
23458 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
23460         PR debug/47510
23461         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23462         (lookup_type_die_strip_naming_typedef): ... here.
23463         (get_context_die): Use it.
23464         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23465         the anonymous struct named by the naming typedef.
23467 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23469         PR target/48154
23470         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23471         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23473 2011-03-16  Jeff Law  <law@redhat.com>
23475         * tree-vrp.c (identify_jump_threads): Slightly simplify type
23476         check for operands of conditional.  Allow type to be a pointer.
23478 2011-03-16  Richard Guenther  <rguenther@suse.de>
23480         PR tree-optimization/48149
23481         * fold-const.c (fold_binary_loc): Fold
23482         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23484 2011-03-16  Richard Guenther  <rguenther@suse.de>
23486         PR tree-optimization/26134
23487         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23488         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23489         (non_rewritable_mem_ref_base): Handle complex type component
23490         accesses, constrain offsets for vector and complex extracts
23491         more properly.
23493 2011-03-16  Richard Guenther  <rguenther@suse.de>
23495         PR tree-optimization/48146
23496         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23497         operands avoiding the need for renaming.
23499 2011-03-16  Richard Guenther  <rguenther@suse.de>
23501         * gimple-fold.c (maybe_fold_reference): Open-code relevant
23502         constant folding.  Move MEM_REF canonicalization first.
23503         Rely on fold_const_aggregate_ref for initializer folding.
23504         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23506 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23508         PR middle-end/48136
23509         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23510         arg0/arg1 or their arguments are always fold converted to matching
23511         types.
23513         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23514         to nargs.
23516 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23518         PR lto/46944
23519         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23520         Handle in-tree gold.
23521         (ld_vers): Extract binutils version for gold.
23522         (gcc_cv_ld_hidden): Handle gold here.
23523         (gcc_cv_lto_plugin): Determine level of linker plugin support.
23524         * configure: Regenerate.
23525         * config.in: Regenerate.
23526         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23527         -fuse-linker-plugin otherwise.
23528         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
23529         (LINK_COMMAND_SPEC): Use it.
23530         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23532 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23534         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23535         * calls.c: Remove debug.h include.
23536         (emit_call_1): Don't call virtual_call_token debug hook.
23537         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23538         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23539         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23540         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23541         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23542         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23543         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23544         dwarf2out_virtual_call): Remove.
23545         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23546         copy_call_info and virtual_call hooks.
23547         (dwarf2out_init): Don't initialize vcall_insn_table,
23548         debug_dcall_section and debug_vcall_section.
23549         (prune_unused_types): Don't mark nodes from dcall_table.
23550         (dwarf2out_finish): Don't output dcall or vcall tables.
23551         * final.c (final_scan_insn): Don't call direct_call or
23552         virtual_call debug hooks.
23553         * debug.h (struct gcc_debug_hooks): Remove direct_call,
23554         virtual_call_token, copy_call_info and virtual_call hooks.
23555         (debug_nothing_uid): Remove prototype.
23556         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23557         copy_call_info and virtual_call hooks.
23558         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23559         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23560         * debug.c (do_nothing_debug_hooks): Likewise.
23561         (debug_nothing_uid): Remove.
23562         * doc/invoke.texi (-fenable-icf-debug): Remove.
23563         * common.opt (-fenable-icf-debug): Likewise.
23565         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23566         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23567         call's MEM.  Handle functions returning aggregate through a hidden
23568         first pointer.  For virtual calls add clobbered pc to call arguments
23569         chain.
23570         * dwarf2out.c (gen_subprogram_die): Emit
23571         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23572         can't be emitted.
23574         PR debug/45882
23575         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23576         * rtl.h (ENTRY_VALUE_EXP): Define.
23577         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23578         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23579         * print-rtl.c (print_rtx): Likewise.
23580         * gengtype.c (adjust_field_rtx_def): Likewise.
23581         * var-tracking.c (vt_add_function_parameter): Adjust
23582         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23583         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23584         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23585         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23586         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23588         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23589         Call var_location debug hook even on CALL_INSNs.
23590         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23591         * rtl.def (ENTRY_VALUE): New.
23592         * dwarf2out.c: Include cfglayout.h.
23593         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23594         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23595         (struct call_arg_loc_node): New type.
23596         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23597         tail_call_site_count): New variables.
23598         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23599         DW_TAG_GNU_call_site_parameter.
23600         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23601         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23602         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23603         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23604         and DW_AT_GNU_all_source_call_sites.
23605         (mem_loc_descriptor): Handle ENTRY_VALUE.
23606         (add_src_coords_attributes): Don't add enything if
23607         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23608         (dwarf2out_abstract_function): Save and clear call_arg_location,
23609         call_site_count and tail_call_site_count around dwarf2out_decl call.
23610         (gen_call_site_die): New function.
23611         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23612         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23613         (dwarf2out_function_decl): Clear call_arg_locations,
23614         call_arg_loc_last, set call_site_count and tail_call_site_count
23615         to -1 and free block_map.
23616         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23617         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
23618         followed by any real instructions.
23619         (dwarf2out_begin_function): Set call_site_count and
23620         tail_call_site_count to 0.
23621         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23622         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23623         attempt to force a DIE for it and worst case remove the attribute.
23624         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23625         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
23626         the decl itself.
23627         * var-tracking.c: Include tm_p.h.
23628         (vt_stack_adjustments): For calls call note_register_arguments.
23629         (argument_reg_set): New variable.
23630         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
23631         ensure the VALUE is resolved.
23632         (call_arguments): New variable.
23633         (prepare_call_arguments): New function.
23634         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
23635         (struct expand_loc_callback_data): Add ignore_cur_loc field.
23636         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
23637         always use the best expression.
23638         (vt_expand_loc): Add ignore_cur_loc argument.
23639         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
23640         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
23641         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
23642         note for all calls.
23643         (vt_add_function_parameter): Use cselib_lookup_from_insn.
23644         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
23645         argument.  Don't call cselib_preserve_only_values and
23646         cselib_reset_table.
23647         (note_register_arguments): New function.
23648         (vt_initialize): Compute argument_reg_set.  Call
23649         vt_add_function_parameters before processing basic blocks instead of
23650         afterwards.  For calls call prepare_call_arguments before calling
23651         cselib_process_insn.
23652         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
23653         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
23654         (var-tracking.o): Depend on $(TM_P_H).
23655         * cfglayout.h (insn_scope): New prototype.
23656         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
23657         * cfglayout.c (insn_scope): No longer static.
23658         * insn-notes.def (CALL_ARG_LOCATION): New.
23659         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
23660         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
23661         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
23662         nothing for DECL_EXTERNAL BLOCK_VARS.
23664 2011-03-16  Alan Modra  <amodra@gmail.com>
23666         PR target/45844
23667         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
23668         create invalid offset address for vsx splat insn.
23669         * config/rs6000/predicates.md (splat_input_operand): New.
23670         * config/rs6000/vsx.md (vsx_splat_*): Use it.
23672 2011-03-15  Xinliang David Li  <davidxl@google.com>
23674         PR c/47837
23675         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
23676         (normalize_preds): New function.
23677         (is_use_properly_guarded): Normalize def predicates.
23679 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23681         PR target/46788
23682         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
23683         in the output template.
23685 2011-03-15  Richard Guenther  <rguenther@suse.de>
23687         PR middle-end/47650
23688         * tree-pretty-print.c (dump_function_declaration): Properly
23689         dump unprototyped and varargs function types.
23691 2011-03-15  Richard Guenther  <rguenther@suse.de>
23693         PR tree-optimization/13954
23694         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23695         and friends.
23697 2011-03-15  Richard Guenther  <rguenther@suse.de>
23699         PR tree-optimization/48037
23700         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23701         selects into BIT_FIELD_REFs.
23702         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23703         vector select.
23705 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
23707         PR tree-optimization/48129
23708         * builtins.c (fold_builtin_snprintf): Convert to type of
23709         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23710         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23712 2011-03-15  Richard Guenther  <rguenther@suse.de>
23714         PR tree-optimization/41490
23715         * tree-ssa-dce.c (propagate_necessity): Handle returns without
23716         value but with VUSE.
23717         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23718         return statements.
23719         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23720         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23721         * tree-tailcall.c (find_tail_calls): Ignore returns.
23723 2011-03-15  Richard Guenther  <rguenther@suse.de>
23725         PR middle-end/48031
23726         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23727         or variable-indexed array accesses when in gimple form.
23729 2011-03-15  Richard Guenther  <rguenther@suse.de>
23731         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23733 2011-03-15  Alan Modra  <amodra@gmail.com>
23735         PR target/48032
23736         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23737         presume symbol_refs without a symbol_ref_decl are suitably
23738         aligned, nor other trees we may see here.  Handle anchor symbols.
23739         (legitimate_constant_pool_address_p): Comment.  Add mode param.
23740         Check cmodel=medium addresses.  Adjust all calls.
23741         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23742         creating cmodel=medium optimized access to locals.
23743         * config/rs6000/constraints.md (R): Pass QImode to
23744         legitimate_constant_pool_address_p.
23745         * config/rs6000/predicates.md (input_operand): Pass mode to
23746         legitimate_constant_pool_address_p.
23747         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23748         Update prototype.
23750 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23752         PR target/48053
23753         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23754         64-bit constants being loaded into registers other than GPRs such
23755         as loading 0 into a VSX register.
23757 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23759         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23761 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23763         PR middle-end/47917
23764         * builtins.c (fold_builtin_snprintf): New function.
23765         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23766         (fold_builtin_4): Likewise.
23768         PR middle-end/38878
23769         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23770         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
23771         and C - X == X also strip nops from +/-/p+ operand.
23772         When optimizing -X == C, fold C to arg0's type.
23774         PR debug/47946
23775         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23776         emit it as add_AT_int instead of add_AT_unsigned.
23778 2011-03-14  Tom Tromey  <tromey@redhat.com>
23780         * unwind-dw2.c: Include sys/sdt.h if it exists.
23781         (_Unwind_DebugHook): Use STAP_PROBE2.
23782         * config.in, configure: Rebuild.
23783         * configure.ac: Check for sys/sdt.h.
23785 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
23787         * config/i386/i386.md (ROUND_FLOOR): New constant.
23788         (ROUND_CEIL): Ditto.
23789         (ROUND_TRUNC): Ditto.
23790         (ROUND_MXCSR): Ditto.
23791         (ROUND_NO_EXC): Ditto.
23792         (rint<mode>2): Use new defines instead of numerical constants.
23793         (floor<mode>2): Ditto.
23794         (ceil<mode>2): Ditto.
23795         (btrunc<mode>2): Ditto.
23796         * config/i386/i386-builtin-types.def: Define ROUND function type
23797         aliases.
23798         * config/i386/i386.c (enum ix86_builtins): Add
23799         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23800         (struct builtin_description): Add
23801         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23802         (ix86_expand_sse_round): New static function.
23803         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23804         function types.
23805         (ix86_builtin_vectorized_function): Handle
23806         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23808 2011-03-14  Tom Tromey  <tromey@redhat.com>
23810         * c-parser.c (c_parser_asm_string_literal): Clear
23811         warn_overlength_strings.
23813 2011-03-14  Tom Tromey  <tromey@redhat.com>
23815         * c-parser.c (disable_extension_diagnostics): Save
23816         warn_overlength_strings.
23817         (restore_extension_diagnostics): Restore warn_overlength_strings.
23819 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23821         * BASE-VER: Change to 4.7.0.
23823 2011-03-14  Richard Guenther  <rguenther@suse.de>
23825         PR middle-end/48098
23826         * tree.c (build_vector_from_val): Adjust assert to requirements
23827         and reality.
23829 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23831         PR bootstrap/48102
23832         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23834 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
23836         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23837         terms of target_flags_explicit. Adjust copyright year.
23839         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23840         * config/rs6000/t-freebsd: New file. Add override for
23841         LIB2FUNCS_EXTRA.
23843 2011-03-13  Chris Demetriou  <cgd@google.com>
23845         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23846         (-fno-diagnostics-show-option): this, to reflect current default.
23847         (-Werror=): Update text about -fno-diagnostics-show-option.
23849 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
23851         PR target/48053
23852         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23853         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23854         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23855         mode is not V2DImode or V2DFmode.
23856         (vspltis_constant): Do not handle V2DImode and V2DFmode.
23857         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23858         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23859         registers to 0.
23860         (movdi_internal64): Likewise.
23862 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
23864         PR tree-optimization/47127
23865         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23866         parameter.
23867         (set_cloog_options): Same.
23868         (scop_to_clast): Same.
23869         (print_clast_stmt): Do not call cloog_state_malloc and
23870         cloog_state_free.
23871         (print_generated_program): Same.
23872         (gloog): Same.
23873         * graphite-clast-to-gimple.h (cloog_state): Declared.
23874         (scop_to_clast): Adjust declaration.
23875         * graphite.c (cloog_state): Defined here.
23876         (graphite_initialize): Call cloog_state_malloc.
23877         (graphite_finalize): Call cloog_state_free.
23879 2011-03-11  Jason Merrill  <jason@redhat.com>
23881         * attribs.c (lookup_attribute_spec): Take const_tree.
23882         * tree.h: Adjust.
23884 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
23886         * config/sparc/sparc.c (sparc_option_override): Use
23887         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
23889 2011-03-11  Richard Guenther  <rguenther@suse.de>
23891         PR tree-optimization/48067
23892         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
23893         multiplication result will be only used once on the target
23894         stmt.
23896 2011-03-11  Richard Guenther  <rguenther@suse.de>
23898         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
23900 2011-03-11  Richard Guenther  <rguenther@suse.de>
23902         PR lto/48073
23903         * tree.c (find_decls_types_r): Do not walk types only reachable
23904         from IDENTIFIER_NODEs.
23906 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23908         PR middle-end/48044
23909         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
23910         all vnode->force_output nodes as needed.
23912 2011-03-11  Jason Merrill  <jason@redhat.com>
23914         PR c++/48069
23915         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
23916         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
23918 2011-03-11  Martin Jambor  <mjambor@suse.cz>
23920         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
23921         cgraph_node.
23923 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23925         PR tree-optimization/48063
23926         * ipa-inline.c (cgraph_decide_inlining): Don't try to
23927         inline functions called once if !tree_can_inline_p (node->callers).
23929 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
23931         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
23932         extra_objs.
23933         * config/score/score3.c: Delete.
23934         * config/score/score3.h: Delete.
23935         * config/score/mul-div.S: Delete.
23936         * config/score/sfp-machine.h: Add new file.
23937         * config/score/constraints.md: Add new file.
23938         * config/score/t-score-softfp: Add new file.
23939         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
23940         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
23941         (score7_extra_constraint): Delete.
23942         (score7_option_override): Remove unused code.
23943         * config/score/score.c: Remove score3 and score5 define and code.
23944         * config/score/score.h: Remove score3 and score5 define and code.
23945         * config/score/score.md: Remove score3 template and unusual insn.
23946         * config/score/score.opt: Remove score3 and score5 options.
23948 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23950         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
23951         when _HPUX_SOURCE is defined.
23952         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
23954 2011-03-10  Jason Merrill  <jason@redhat.com>
23956         PR c++/48029
23957         * stor-layout.c (layout_type): Don't set structural equality
23958         on arrays of incomplete type.
23959         * tree.c (type_hash_eq): Handle comparing them properly.
23961 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
23963         PR debug/48043
23964         * config/s390/s390.c (s390_delegitimize_address): Make sure the
23965         result mode matches original rtl mode.
23967 2011-03-10  Nick Clifton  <nickc@redhat.com>
23969         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
23970         (andsi3, andsi3_flags): Fix timings for three operand alternative.
23972 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
23974         PR rtl-optimization/47866
23975         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
23976         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
23977         if target wasn't scalar.
23978         * function.c (assign_stack_temp_for_type): Assert that neither
23979         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
23980         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
23981         macro.
23982         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
23984 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23986         * config/s390/s390-protos.h (s390_label_align): New prototype.
23987         * config/s390/s390.c (s390_label_align): New function.
23988         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
23990 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
23992         PR target/47755
23993         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
23994         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
23995         (output_vec_const_move): Ditto.
23997 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
23999         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
24000         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
24001         * config/mips/mips.c (mips_preferred_reload_class): Make static.
24002         Change 'rclass' argument and result type to reg_class_t.
24003         (TARGET_PREFERRED_RELOAD_CLASS): Define.
24005 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
24007         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24008         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
24009         (TARGET_MEMORY_MOVE_COST): Define.
24010         (avr_register_move_cost, avr_memory_move_cost): New Functions.
24012 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
24014         PR debug/47881
24015         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
24016         removed anything.
24018         PR tree-optimization/48022
24019         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
24020         for EQ/NE_EXPR.
24022 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
24024         PR debug/47991
24025         * var-tracking.c (find_use_val): Return NULL for
24026         cui->sets && cui->store_p BLKmode MEMs.
24028 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
24030         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
24031         Remove.
24032         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
24033         xstormy16_print_operand_address): Remove.
24034         * config/stormy16/stormy16.c (xstormy16_print_operand,
24035         xstormy16_print_operand_address): Make static.
24036         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24038 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
24040         PR target/47862
24041         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24042         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
24043         before definition.
24045 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
24047         PR bootstrap/48000
24048         * cfgloopmanip.c (fix_bb_placements): Return immediately
24049         if FROM is BASE_LOOP's header.
24051 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
24053         * gimplify.c (gimplify_function_tree): Fix building calls
24054         to __builtin_return_address.
24056 2011-03-07  Alan Modra  <amodra@gmail.com>
24058         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
24059         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
24060         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
24061         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
24062         return_mode args.
24063         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
24064         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
24065         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
24066         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
24067         * config/rs6000/rs6000.c
24068         (rs6000_elf_end_indicate_exec_stack): Rename to..
24069         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
24070         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
24071         (rs6000_file_start): ..here.
24072         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
24073         file scope variables.
24074         (call_ABI_of_interest): New function.
24075         (init_cumulative_args): Set above vars when function return value
24076         is a float, vector, or small struct.
24077         (rs6000_function_arg_advance_1): Likewise for function args.
24078         (rs6000_va_start): Set rs6000_passes_float if variable arg function
24079         references float args.
24081 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
24083         * doc/cfg.texi: Remove "See" before @ref.
24084         * doc/invoke.texi: Likewise.
24086 2011-03-05  Jason Merrill  <jason@redhat.com>
24088         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
24090 2011-03-05  Anthony Green  <green@moxielogic.com>
24092         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24094 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
24096         PR rtl-optimization/47899
24097         * cfgloopmanip.c (fix_bb_placements): Fix first argument
24098         to flow_loop_nested_p when moving the loop upward.
24100 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
24102         PR target/47719
24103         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
24105 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
24107         PR tree-optimization/47967
24108         * ipa-cp.c (build_const_val): Return NULL instead of creating
24109         VIEW_CONVERT_EXPR for mismatching sizes.
24110         (ipcp_create_replace_map): Return NULL if build_const_val failed.
24111         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24112         give up on versioning.
24114 2011-03-05  Alan Modra  <amodra@gmail.com>
24116         PR target/47986
24117         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24118         full cmodel medium/large lo_sum + high addresses.
24120 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24122         * config/s390/s390.c (s390_decompose_address): Reject non-literal
24123         pool references in UNSPEC_LTREL_OFFSET.
24125 2011-03-04  Jan Hubicka  <jh@suse.cz>
24127         PR lto/47497
24128         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24129         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24130         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24131         Add node pointers.
24132         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24133         cgraph_add_thunk): Add node pointers.
24134         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24135         associated to right node.
24136         (input_node): Update use of cgraph_same_body_alias
24137         and cgraph_add_thunk.
24139 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
24141         * config/i386/i386.opt (mprefer-avx128): New flag.
24142         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24143         modes when the flag -mprefer-avx128 is on.
24145 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
24147         * dwarf2out.c (compare_loc_operands): Fix address handling.
24149 2011-03-04  Alan Modra  <amodra@gmail.com>
24151         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24153 2011-03-04  Richard Guenther  <rguenther@suse.de>
24155         PR middle-end/47968
24156         * expmed.c (extract_bit_field_1): Prefer vector modes that
24157         vec_extract patterns can handle.
24159 2011-03-04  Richard Guenther  <rguenther@suse.de>
24161         PR middle-end/47975
24162         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24164 2011-03-04  Richard Henderson  <rth@redhat.com>
24166         * explow.c (emit_stack_save): Remove 'after' parameter.
24167         (emit_stack_restore): Likewise.
24168         * expr.h: Update to match.
24169         * builtins.c, calls.c, stmt.c: Likewise.
24170         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24171         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24172         * function.c (expand_function_end): Insert the emit_stack_save
24173         sequence before parm_birth_insn instead of after.
24175 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
24177         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
24178         (ssse3_pmaddubsw128): Ditto.
24179         (ssse3_pmaddubsw): Ditto.
24181 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
24183         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
24185 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
24187         PR c/47963
24188         * gimplify.c (omp_add_variable): Only call omp_notice_variable
24189         on TYPE_SIZE_UNIT if it is a DECL.
24191         PR debug/47283
24192         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
24193         first operand is not is_gimple_mem_ref_addr, try to fold it.
24194         If the operand still isn't is_gimple_mem_ref_addr, clear
24195         MEM_EXPR on op0.
24197 2011-03-03  Richard Guenther  <rguenther@suse.de>
24199         PR middle-end/47283
24200         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
24201         match comment.
24202         (refs_may_alias_p_1): For release branches return true if
24203         we are confused by our input.
24205 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24207         * config/s390/s390.c (s390_function_value): Rename to ...
24208         (s390_function_and_libcall_value): ... this.
24209         (s390_function_value): New function.
24210         (s390_libcall_value): New function.
24211         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
24212         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
24213         target macro definitions.
24214         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
24216 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
24218         * config/i386/freebsd64.h (CC1_SPEC): Define.
24219         * config/i386/linux64.h (CC1_SPEC): Define.
24220         * config/i386/x86-64.h (CC1_SPEC): Don't define.
24222 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
24224         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24225         Remove.
24226         * config/stormy16/stormy16.c: Include reload.h.
24227         (xstormy16_memory_move_cost): New function.
24228         (TARGET_MEMORY_MOVE_COST): Define.
24230 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
24232         PR rtl-optimization/47925
24233         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
24234         with side effects.  Remove the more-specific check for volatile asms.
24236 2011-03-02  Alan Modra  <amodra@gmail.com>
24238         PR target/47935
24239         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
24240         toc relative addresses for valid offsets.
24242 2011-03-01  Richard Guenther  <rguenther@suse.de>
24244         PR tree-optimization/47890
24245         * tree-vect-loop.c (get_initial_def_for_induction): Set
24246         related stmt properly.
24248 2011-03-01  Richard Guenther  <rguenther@suse.de>
24250         PR lto/47924
24251         * lto-streamer.c (lto_record_common_node): Also register
24252         the canonical type.
24254 2011-03-01  Richard Guenther  <rguenther@suse.de>
24256         PR lto/46911
24257         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24258         Do not stream DECL_ABSTRACT_ORIGIN.
24259         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24260         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24261         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24262         Do not stream DECL_ABSTRACT_ORIGIN.
24263         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24264         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24266 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
24268         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
24269         FUNCTION_VALUE_REGNO_P): Remove.
24270         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
24271         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
24272         Add 'outgoing' argument.
24273         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
24274         function.
24275         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24276         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24278 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
24280         PR debug/28047
24281         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
24282         (lookup_filename): Likewise.
24283         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
24285 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
24286             Jakub Jelinek  <jakub@redhat.com>
24288         PR middle-end/47893
24289         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
24290         (assign_stack_local_1): Change last argument type to int.
24291         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
24292         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
24293         don't record padding space into frame_space_list nor use those areas.
24294         (assign_stack_local): Adjust caller.
24295         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
24296         of assign_stack_local, pass 0 as last argument.
24297         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
24298         callers.
24300 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
24302         PR debug/47283
24303         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
24304         Use target address_mode and pointer_mode hooks instead of hardcoded
24305         Pmode and ptr_mode.  Handle some simple cases of extending if
24306         POINTERS_EXTEND_UNSIGNED < 0.
24307         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
24308         Call convert_debug_memory_address.
24309         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
24310         convert_debug_memory_address.
24312         PR middle-end/46790
24313         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
24314         * configure: Regenerated.
24315         * config.in: Regenerated.
24316         * varasm.c (default_function_section): Return NULL
24317         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
24319 2011-02-28  Martin Jambor  <mjambor@suse.cz>
24321         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
24322         the description to match the printed values.
24324 2011-02-28  Richard Guenther  <rguenther@suse.de>
24326         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
24327         of the copied scope tree.
24329 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24331         * doc/extend.texi (Function Attributes): Avoid deeply (and
24332         wrongly) nested tables.
24334 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
24336         PR middle-end/47903
24337         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
24338         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
24339         r isn't op0 nor op1.
24341 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
24343         * config/avr/avr.md: Remove magic comment for emacs.
24345 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
24347         PR target/45261
24348         * config/avr/avr.c (avr_option_override): Use error on bad options.
24349         (avr_help): New function.
24350         (TARGET_HELP): Define.
24352 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
24354         PR target/42240
24355         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
24356         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
24358 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
24360         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
24361         (ARM Options): Ditto.
24362         (i386 and x86-64 Options): Ditto.
24363         (RX Options): Ditto.
24364         (SPARC Options): Ditto.
24366 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
24368         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
24369         FreeBSD 6 and later.  Generally use cpu generic.
24371 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
24373         * doc/cpp.texi: Update copyright years.
24375 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
24377         PR target/46898
24378         * config/lm32/lm32.md (ashrsi3): Added needed variable.
24380 2011-02-25  Jon Beniston  <jon@beniston.com>
24382         PR target/46898
24383         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
24384         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
24385         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
24386         (lm32_block_move_inline): Add type cast to remove warning.
24387         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
24388         (gen_int_relational): Move declarations to start of function.
24390 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
24392         PR tree-optimization/45470
24393         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
24394         can throw internally only.
24395         * tree-vect-stmts.c (vectorizable_call): Likewise.
24397 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
24399         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
24400         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24401         * config/stormy16/stormy16-protos.h
24402         (xstormy16_preferred_reload_class): Remove.
24403         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24404         static. Change 'rclass' argument and return type to reg_class_t.
24405         (TARGET_PREFERRED_RELOAD_CLASS,
24406         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24408 2011-02-24  Richard Guenther  <rguenther@suse.de>
24410         * lto-streamer-in.c (input_bb): Do not find referenced vars
24411         in debug statements.
24413 2011-02-23  Jason Merrill  <jason@redhat.com>
24415         * common.opt (fabi-version): Document v5 and v6.
24417 2011-02-23  Richard Guenther  <rguenther@suse.de>
24419         PR tree-optimization/47849
24420         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24422 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24424         * opts-common.c (decode_cmdline_option): Print empty string
24425         argument as "" in decoded->orig_option_with_args_text.
24426         * gcc.c (execute): Print empty string argument as ""
24427         in the verbose output.
24428         (do_spec_1): Keep empty string argument.
24430 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
24432         * config.gcc: Declare score-* and crx-* obsolete.
24434 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24436         PR rtl-optimization/47763
24437         * web.c (web_main): Ignore naked clobber when replacing register.
24439 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
24441         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24442         Remove.
24444 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24446         PR doc/47848
24447         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24449 2011-02-22  Mike Stump  <mikestump@comcast.net>
24451         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24452         assembler.
24453         * configure: Regenerate.
24455 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
24457         PR rtl-optimization/46002
24458         * ira-color.c (update_copy_costs): Change class intersection
24459         test to reg_class_contents[] test of 'hard_regno'.
24461 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
24463         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24464         than Driver option.
24465         * config/hpux11.opt (mt): Likewise.
24466         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24467         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24468         * config/vax/elf.opt (mno-asm-pic): Likewise.
24469         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24471 2011-02-21  Mike Stump  <mikestump@comcast.net>
24473         PR target/47822
24474         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24475         tree so we can get save the type.
24476         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24477         for CFString instead of trying to use past the end of the builtins.
24478         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24479         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24480         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24481         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24482         Rename to darwin_builtin_cfstring.
24483         (darwin_init_cfstring_builtins): Return the built type.
24485 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
24487         PR target/47840
24488         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24489         (_mm256_insert_epi64): Use _mm_insert_epi64.
24491 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
24493         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24494         * config/stormy16/stormy16-protos.h
24495         (xstormy16_mode_dependent_address_p): Remove.
24496         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24497         Make static. Change return type to bool. Change argument type to
24498         const_rtx. Remove dead code.
24499         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24501 2011-02-21  Richard Guenther  <rguenther@suse.de>
24503         PR lto/47820
24504         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24505         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24506         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24507         TUs context.
24508         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24509         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24511 2011-02-20  Richard Guenther  <rguenther@suse.de>
24513         PR lto/47822
24514         * tree.c (free_lang_data_in_decl): Clean builtins from
24515         the TU decl BLOCK_VARS.
24517 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
24519         PR debug/47620
24520         PR debug/47630
24521         * haifa-sched.c (fix_tick_ready): Skip tick computation
24522         for debug insns.
24524 2011-02-19  Richard Guenther  <rguenther@suse.de>
24526         PR lto/47647
24527         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24528         Remove lazy BLOCK_VARS streaming.
24529         (lto_input_ts_block_tree_pointers): Likewise.
24530         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24532 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24534         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24536 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24538         * config/i386/biarch32.h, config/i386/mach.h,
24539         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24541 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
24543         PR target/47800
24544         * config/i386/i386.md (peephole2 for shift and plus): Use
24545         operands[1] original mode in the first insn.
24547 2011-02-18  Mike Stump  <mikestump@comcast.net>
24549         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24551 2011-02-18  Jan Hubicka  <jh@suse.cz>
24553         PR middle-end/47788
24554         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24555         to zero when the function is not inlinable at all.
24557 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24559         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24560         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24561         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24562         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24563         * config/pa/t-pa64: Likewise.
24564         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24566 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24568         PR driver/47787
24569         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24571 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24573         PR target/47792
24574         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24576 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
24578         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24579         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24580         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24581         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24582         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24583         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24584         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24585         m32r_load_postinc_p, m32r_store_preinc_predec_p,
24586         m32r_legitimate_address_p): New functions.
24587         * config/m32r/constraints.md (constraint "S"): Don't use
24588         STORE_PREINC_PREDEC_P.
24589         (constraint "U"): Don't use LOAD_POSTINC_P.
24591 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
24593         PR rtl-optimization/46178
24594         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24595         compute ira_hard_regno_cover_class[].
24597 2011-02-18  Richard Guenther  <rguenther@suse.de>
24599         PR lto/47798
24600         * lto-streamer.h (lto_global_var_decls): Declare.
24601         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24602         statics for global var processing.
24604 2011-02-18  Richard Guenther  <rguenther@suse.de>
24606         PR tree-optimization/47737
24607         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24608         edge dominance check.
24610 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24612         PR debug/47780
24613         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24614         avoid invalid rtx sharing.
24616 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
24618         * doc/cpp.texi (Obsolete Features): Add background on the
24619         origin of assertions.
24621 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
24623         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24624         objc_abi == 2.
24625         * config/darwin.c (output_objc_section_asm_op): Added support for
24626         ABI v1 and v2.
24627         (is_objc_metadata): New.
24628         (darwin_objc2_section): New.
24629         (darwin_objc1_section): New.
24630         (machopic_select_section): Added support for ABI v1 and v2.
24631         (darwin_emit_objc_zeroed): New.
24632         (darwin_output_aligned_bss): Detect objc metadata and treat it
24633         appropriately.
24634         (darwin_asm_output_aligned_decl_common): Same.
24635         (darwin_asm_output_aligned_decl_local): Same.
24636         * config/darwin-sections.def: Updated for ABI v1 and v2.
24637         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
24638         compiling Objective-C code for the NeXT runtime, default to using
24639         ABI version 0 for 32-bit, and version 2 for 64-bit.
24641 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24643         * common.opt (optimize_fast): New Variable.
24644         * opts.c (default_options_optimization): Use opts->x_optimize_fast
24645         instead of local variable ofast.
24647 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
24649         * doc/invoke.texi (fobjc-abi-version): Documented.
24650         (fobjc-nilcheck): Documented.
24651         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
24652         version.
24654 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24656         PR driver/47390
24657         * common.opt (export-dynamic): New Driver option.
24658         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
24660 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24662         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
24664 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
24665             Jan Hubicka  <jh@suse.cz>
24667         PR debug/47106
24668         PR debug/47402
24669         * cfgexpand.c (account_used_vars_for_block): Remove.
24670         (estimated_stack_frame_size): Use referenced vars.
24671         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
24672         that were referenced in the original function.  Test src_fn
24673         rather than cfun.  Drop redundant get_var_ann.
24674         (setup_one_parameter): Drop redundant get_var_ann.
24675         (declare_return_variable): Likewise.
24676         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
24677         (copy_arguments_for_versioning): Drop redundant get_var_ann.
24678         * ipa-inline.c (compute_inline_parameters): Do not compute
24679         disregard_inline_limits here.
24680         (compute_inlinable_for_current, pass_inlinable): New.
24681         (pass_inline_parameters): Require PROP_referenced_vars.
24682         * cgraphunit.c (cgraph_process_new_functions): Don't run
24683         compute_inline_parameters explicitly unless function is in SSA form.
24684         (cgraph_analyze_function): Set .disregard_inline_limits.
24685         * tree-sra.c (convert_callers): Compute inliner parameters
24686         only for functions already in SSA form.
24688 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24690         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24691         -mlittle-endian-data.
24693 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24695         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24696         -mno-fpu, not -fpu and -no-fpu.
24697         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24698         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24700 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
24702         PR target/43653
24703         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24704         input reload with PLUS RTX.
24706 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24708         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24709         of InverseVar(MDMX).
24711 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24713         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24714         --m4-340.
24716 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24718         * config/mn10300/mn10300.opt (mno-crt0): New.
24720 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24722         * config/m68k/uclinux.opt (static-libc): New Driver option.
24724 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24726         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24728 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24730         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24731         %{muser-extend-enabled}.
24733 2011-02-16  Richard Guenther  <rguenther@suse.de>
24735         PR tree-optimization/47738
24736         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24737         the TODO from tree_predictive_commoning.
24739 2011-02-15  Jeff Law  <law@redhat.com>
24741         Revert
24742         2011-01-25  Jeff Law  <law@redhat.com>
24744         PR rtl-optimization/37273
24745         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24746         handle them like argument loads from stack slots.  Do not double
24747         count memory for memory constants and argument loads from stack slots.
24749 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
24751         PR target/47755
24752         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24753         mode for vector constants.  Remove code that checks for TImode.
24755 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24757         PR debug/47106
24758         PR debug/47402
24759         * cgraph.h (compute_inline_parameters): Return void.
24760         * ipa-inline.c (compute_inline_parameters): Adjust.
24762 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24764         PR debug/47106
24765         PR debug/47402
24766         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24767         rather than decl.
24768         * cfgexpand.c (estimated_stack_frame_size): Likewise.
24769         * ipa-inline.c (compute_inline_parameters): Adjust.
24771 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24773         PR debug/47106
24774         PR debug/47402
24775         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24776         Adjust all users.  Pass FN to...
24777         * tree-flow-inline.h (first_referenced_var): ... this.  Add
24778         fn argument.
24779         * ipa-struct-reorg.c: Adjust.
24780         * tree-dfa.c: Adjust.
24781         * tree-into-ssa.c: Adjust.
24782         * tree-sra.c: Adjust.
24783         * tree-ssa-alias.c: Adjust.
24784         * tree-ssa-live.c: Adjust.
24785         * tree-ssa.c: Adjust.
24786         * tree-ssanames.c: Adjust.
24787         * tree-tailcall.c: Adjust.
24789 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24791         PR debug/47106
24792         PR debug/47402
24793         * tree-flow.h (referenced_var_lookup): Add fn parameter.
24794         Adjust all callers.
24795         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24796         * tree-flow-inline.h: Adjust.
24797         * gimple-pretty-print.c: Adjust.
24798         * tree-into-ssa.c: Adjust.
24799         * tree-ssa.c: Adjust.
24800         * cfgexpand.c: Adjust.
24802 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24804         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24805         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24806         (EXTRA_CONSTRAINT): Delete.
24807         * config/iq2000/constraints.md: New file.
24808         * config/iq2000/iq2000.md: Include it.
24809         (define_insn ""): Delete.
24810         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24811         unsupported constraint letters from patterns.
24812         (call_value, call_value_internal1): Likewise.
24813         (call_value_multiple_internal1): Likewise.
24815 2011-02-15  Nick Clifton  <nickc@redhat.com>
24817         * config/mn10300/mn10300.c: Include tm-constrs.h.
24818         (struct liw_data): New data structure describing an LIW candidate
24819         instruction.
24820         (extract_bundle): Use struct liw_data.  Allow small integer
24821         operands for some instructions.
24822         (check_liw_constraints): Use struct liw_data.  Remove swapped
24823         parameter.  Add comments describing the checks.  Fix bug when
24824         assigning the source of liw1 to the source of liw2.
24825         (liw_candidate): Delete.  Code moved into extract_bundle.
24826         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
24827         before swapping.
24828         * config/mn10300/predicates.md (liw_operand): New predicate.
24829         Allows registers and small integer constants.
24830         * config/mn10300/constraints.md (O): New constraint.  Accetps
24831         integers in the range -8 to +7 inclusive.
24832         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24833         for moving a small integer into a register.  Give this alternative
24834         LIW attributes.
24835         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24836         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24837         using the J,K,L and M constraints,
24838         (liw): Remove SI mode on second operands to allow for HI and QI
24839         mode values.
24840         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
24841         instruction.
24843 2011-02-15  Richard Guenther  <rguenther@suse.de>
24845         PR tree-optimization/47743
24846         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24847         for a non-type-compatible VN lookup bail out.
24849 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24851         * config/fr30/constraints.md: New file.
24852         * config/fr30/fr30.md: Include it.
24853         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24854         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24855         (EXTRA_CONSTRAINT): Delete.
24857 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24859         * config/frv/constraints.md: New file.
24860         * config/frv/predicates.md: Include it.
24861         * config/frv/frv.c (reg_class_from_letter): Delete.
24862         (frv_option_override): Don't initialize it.
24863         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24864         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24865         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24866         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24867         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24868         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24869         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24870         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24871         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24872         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
24873         (REG_CLASS_FROM_CONSTRAINT): Delete.
24875 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
24877         PR middle-end/47581
24878         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
24879         if frame size is 0 in a leaf function.
24881 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24883         PR pch/14940
24884         * config/alpha/host-osf.c: New file.
24885         * config/alpha/x-osf: New file.
24886         * config.host (alpha*-dec-osf*): Use it.
24888 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24890         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24891         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
24892         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
24893         (rx_mode_dependent_address_p): ...this. Make static. Change argument
24894         type to const_rtx.
24895         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24897 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24899         * config/stormy16/constraints.md: New file.
24900         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
24901         Use satisfies_constraint_Q and satisfies_constraint_R.
24902         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
24903         Delete.
24904         (xstormy16_legitiamte_address_p): Declare.
24905         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
24906         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24907         (EXTRA_CONSTRAINT): Delete.
24908         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
24909         Un-staticize.
24910         (xstormy16_extra_constraint_p): Delete.
24912 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
24914         PR tree-optimization/46494
24915         * loop-unroll.c (split_edge_and_insert): Adjust comment.
24916         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
24917         (pass_rtl_loop_done): Add TODO_verify_flow.
24918         * fwprop.c (pass_rtl_fwprop): Likewise.
24919         * modulo-sched.c (pass_sms): Likewise.
24920         * tree-ssa-dom.c (pass_dominator): Likewise.
24921         * tree-ssa-loop-ch.c (pass_ch): Likewise.
24922         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
24923         (pass_tree_loop_done): Likewise.
24924         * tree-ssa-pre.c (execute_pre): Likewise.
24925         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
24926         * tree-ssa-sink.c (pass_sink_code): Likewise.
24927         * tree-vrp.c (pass_vrp): Likewise.
24929 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24931         * config/v850/constraints.md: New file.
24932         * config/v850/v850.md: Include it.
24933         * config/v850/predicates.md (reg_or_0_operand): Use
24934         satisfies_constraint_G.
24935         (special_symbolref_operand): Use satisfies_constraint_K.
24936         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
24937         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
24938         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
24939         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24940         (EXTRA_CONSTRAINT): Delete.
24941         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
24942         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
24943         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
24945 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24947         PR target/47696
24948         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
24949         description.
24951 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24953         * config/mcore/constraints.md: New file.
24954         * config/mcore/mcore.md: Include it.
24955         * config/mcore/mcore.c (reg_class_from_letter): Delete.
24956         * config/mcore/mcore.h (reg_class_from_letter): Delete.
24957         (REG_CLASS_FROM_LETTER): Delete.
24958         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
24959         insn_const_int_ok_for_constraint.
24960         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
24961         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
24962         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24963         (EXTRA_CONSTRAINT): Delete.
24965 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24967         PR ada/41929
24968         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
24969         (IS_SIGHANDLER): Define.
24970         (sparc64_is_sighandler): New function, split off from
24971         sparc64_fallback_frame_state.
24972         (sparc_is_sighandler): New function, split off from
24973         sparc_fallback_frame_state.
24974         (sparc64_fallback_frame_state): Merge with ...
24975         (sparc_fallback_frame_state): ... this into ...
24976         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
24977         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
24978         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
24979         stack instead of hardcoded offsets.
24981 2011-02-14  Andriy Gapon  <avg@freebsd.org>
24983         PR target/45808
24984         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
24986 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24988         * configure: Regenerate.
24990 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
24992         PR driver/45731
24993         * gcc.c (asm_options): Correct spec matching --target-help.
24995 2011-02-12  Martin Jambor  <mjambor@suse.cz>
24997         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
24998         to gimple call error.
25000 2011-02-12  Mike Stump  <mikestump@comcast.net>
25002         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
25003         comments in backslash regions.
25005 2011-02-12  Mike Stump  <mikestump@comcast.net>
25006             Jakub Jelinek  <jakub@redhat.com>
25007             Iain Sandoe  <iains@gcc.gnu.org>
25009         PR target/47324
25010         * dwarf2out.c (output_cfa_loc): When required, apply the
25011         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
25012         (output_loc_sequence): Likewise.
25013         (output_loc_operands_raw): Likewise.
25014         (output_loc_sequence_raw): Likewise.
25015         (output_cfa_loc): Likewise.
25016         (output_loc_list): Suppress register number adjustment when
25017         calling output_loc_sequence()
25018         (output_die): Likewise.
25020 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
25022         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25023         Remove macros.
25024         * config/xtensa/xtensa.c (xtensa_register_move_cost,
25025         xtensa_memory_move_cost): New functions.
25026         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
25028 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
25030         PR lto/47225
25031         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
25032         in the current directory.
25033         * configure: Rebuilt.
25035 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
25037         * config/darwin.c (darwin_override_options): Add a hunk missed
25038         from the commit of r168571.  Trim comment line lengths and
25039         correct indents of the preceding block.
25041 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
25043         * gcc.c (driver_handle_option): Concatenate the argument to -F with
25044         the switch.
25046 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
25048         * common.opt (nostartfiles): New Driver option.
25050 2011-02-11  Xinliang David Li  <davidxl@google.com>
25052         PR tree-optimization/47707
25053         * tree-chrec.c (convert_affine_scev): Keep type precision.
25055 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
25057         PR tree-optimization/47420
25058         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
25060 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
25062         PR rtl-optimization/47614
25063         * rtl.h (check_for_inc_dec): Declare.
25064         * dse.c (check_for_inc_dec): Externalize...
25065         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
25066         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
25068 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
25070         PR driver/47678
25071         * gcc.c (main): Do not compile inputs if there were errors in
25072         option handling.
25073         * opts-common.c (read_cmdline_option): Check for wrong language
25074         after other error checks.
25076 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
25078         * cgraph.c: Fix comment typos.
25079         * cgraph.h: Likewise.
25080         * cgraphunit.c: Likewise.
25081         * ipa-cp.c: Likewise.
25082         * ipa-inline.c: Likewise.
25083         * ipa-prop.c: Likewise.
25084         * ipa-pure-const.c: Likewise.
25085         * ipa-ref.c: Likewise.
25086         * ipa-reference.c: Likewise.
25088 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
25090         PR debug/47684
25091         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
25093 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25095         PR testsuite/47400
25096         * doc/sourcebuild.texi (Require Support): Document
25097         dg-require-ascii-locale.
25099 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
25101         * doc/lto.texi (Write summary): Fix missing parentheses.
25103 2011-02-10  DJ Delorie  <dj@redhat.com>
25105         * config/m32c/m32c.c (m32c_option_override): Disable
25106         -fcombine-stack-adjustments until flag value tracking and compare
25107         optimization can be rewritten.
25109 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
25111         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25112         PROCESSOR_POWER7.
25113         (PROCESSOR_DEFAULT64): Likewise.
25115 2011-02-10  Richard Henderson  <rth@redhat.com>
25117         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25118         change from 2011-02-03.
25119         * config/rx/rx.c (flags_from_code): Likewise.
25120         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25121         is valid, n/pz otherwise.
25122         (rx_select_cc_mode): Return CCmode if Y is not zero.
25124 2011-02-10  Richard Guenther  <rguenther@suse.de>
25126         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25128 2011-02-10  Richard Guenther  <rguenther@suse.de>
25130         PR tree-optimization/47677
25131         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25133 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
25135         PR target/47665
25136         * combine.c (make_compound_operation): Only change shifts into
25137         multiplication for SCALAR_INT_MODE_P.
25139 2011-02-10  Jie Zhang  <jie@codesourcery.com>
25141         PR testsuite/47622
25142         Revert
25143         2011-02-05  Jie Zhang  <jie@codesourcery.com>
25144         PR debug/42631
25145         * web.c (entry_register): Don't clobber the number of the
25146         first uninitialized reference in used[].
25148 2011-02-09  Richard Guenther  <rguenther@suse.de>
25150         PR tree-optimization/47664
25151         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25152         all edges again.
25154 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
25156         PR target/46481
25157         PR target/47032
25158         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25159         PROCESSOR_POWER7.
25160         (PROCESSOR_DEFAULT64): Same.
25161         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25163 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25165         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25167 2011-02-09  Martin Jambor  <mjambor@suse.cz>
25169         PR middle-end/45505
25170         * tree-sra.c (struct access): New flags grp_scalar_read and
25171         grp_scalar_write.  Changed description of assignment read and write
25172         flags.
25173         (dump_access): Dump new flags, reorder all of them.
25174         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25175         to detect multiple scalar reads.
25176         (analyze_access_subtree): Use the new scalar read write flags instead
25177         of the old flags.  Adjusted comments.
25179 2011-02-08  DJ Delorie  <dj@redhat.com>
25181         PR target/47548
25182         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
25183         patterns.
25185 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25187         * config/m68k/uclinux.opt: New.
25188         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
25190 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25192         * config/cris/elf.opt (sim): New Driver option.
25194 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25196         * config/xtensa/elf.opt: New.
25197         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
25199 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25201         * config/vax/elf.opt: New.
25202         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
25204 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25206         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
25208 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25210         * config/gnu-user.opt: New.
25211         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
25212         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
25213         *-*-uclinux*): Use gnu-user.opt.
25215 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
25217         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
25218         * config/i386/gnu.h (CPP_SPEC): Likewise.
25220 2011-02-08  Ian Lance Taylor  <iant@google.com>
25222         * common.opt (fcx-limited-range): Add SetByCombined flag.
25223         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
25224         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
25225         (fassociative-math, freciprocal-math): Likewise.
25226         (funsafe-math-optimizations): Likewise.
25227         * opth-gen.awk: Handle SetByCombined.
25228         * optc-gen.awk: Likewise.
25229         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
25230         (set_unsafe_math_optimizations_flags): Likewise.
25231         * doc/options.texi (Option properties): Document SetByCombined.
25233 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25235         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
25236         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
25237         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
25238         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
25239         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
25241 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
25243         PR tree-optimization/46834
25244         PR tree-optimization/46994
25245         PR tree-optimization/46995
25246         * graphite-sese-to-poly.c (used_outside_reduction): New.
25247         (detect_commutative_reduction): Call used_outside_reduction.
25248         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
25249         translate_scalar_reduction_to_array only when at least one
25250         loop-phi/close-phi tuple has been detected.
25252 2011-02-08  Richard Guenther  <rguenther@suse.de>
25254         PR middle-end/47639
25255         * tree-vect-generic.c (expand_vector_operations_1): Update
25256         stmts here ...
25257         (expand_vector_operations): ... not here.  Cleanup EH info
25258         and the CFG if required.
25260 2011-02-08  Richard Guenther  <rguenther@suse.de>
25262         PR tree-optimization/47641
25263         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
25264         require type compatibility.
25266 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25268         * gimple-low.c (lower_function_body): Don't remove the location of
25269         the return statement here.
25270         (lower_gimple_return): Do it here instead but only if the return
25271         statement is actually used twice.
25273 2011-02-08  Richard Guenther  <rguenther@suse.de>
25275         PR tree-optimization/47632
25276         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
25277         unused up_to_stmt parameter, return whether cfg-cleanup is
25278         necessary, remove EH info properly.
25279         (forward_propagate_into_gimple_cond): Adjust caller.
25280         (forward_propagate_into_cond): Likewise.
25281         (forward_propagate_comparison): Likewise.
25282         (tree_ssa_forward_propagate_single_use_vars): Make
25283         forward_propagate_comparison case similar to the two others.
25285 2011-02-08  Nick Clifton  <nickc@redhat.com>
25287         * config/mn10300/mn10300.opt (mliw): New command line option.
25288         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
25289         (liw_bundling): New automaton.
25290         (liw): New attribute.
25291         (liw_op): New attribute.
25292         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
25293         (movsi_internal): Add LIW attributes.
25294         (andsi3): Likewise.
25295         (iorsi3): Likewise.
25296         (xorsi3): Likewise.
25297         (addsi3): Separate register and immediate alternatives.
25298         Add LIW attributes.
25299         (subsi3): Likewise.
25300         (cmpsi): Likewise.
25301         (aslsi3): Likewise.
25302         (lshrsi3): Likewise.
25303         (ashrsi3): Likewise.
25304         (liw): New pattern.
25305         * config/mn10300/mn10300.c (liw_op_names): New
25306         (mn10300_print_operand): Handle 'W' operand descriptor.
25307         (extract_bundle): New function.
25308         (check_liw_constraints): New function.
25309         (liw_candidate): New function.
25310         (mn10300_bundle_liw): New function.
25311         (mn10300_reorg): New function.
25312         (TARGET_MACHINE_DEPENDENT_REORG): Define.
25313         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
25314         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
25315         __LIW__ or __NO_LIW__.
25316         * doc/invoke.texi: Describe the -mliw command line option.
25318 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25320         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
25321         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25322         pthread_mutex_unlock): Remove.
25323         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
25324         * config/pa/t-pa64: Likewise.
25325         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
25326         shared libc if not linking against libpthread.
25327         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25329 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
25331         PR target/47558
25332         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
25333         on 10.6 and later to ensure that we always use the unwinder from
25334         the system.  Only add -no_compact_unwind when tarteting darwin
25335         10.6 or later.
25337 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
25339         PR target/46997
25340         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
25341         (vec_interleave_lowv2sf): Ditto.
25342         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
25343         (vec_extract_oddv2sf): Ditto.
25345 2011-02-07  Mike Stump  <mikestump@comcast.net>
25347         PR target/42333
25348         Add __ieee_divdc3 entry point.
25349         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
25350         entry point.
25351         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
25352         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
25353         * config/darwin.c (darwin_rename_builtins): Add.
25354         * config/darwin-protos.h (darwin_rename_builtins): Add.
25356 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
25358         PR target/47636
25359         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
25360         for the condition.
25362 2011-02-07  Mike Stump  <mikestump@comcast.net>
25364         * config/darwin.opt (mmacosx-version-min): Update default OS version.
25366 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
25368         PR target/47534
25369         * config/avr/libgcc.S (exit): Move .endfunc
25371 2011-02-07  Richard Guenther  <rguenther@suse.de>
25373         PR tree-optimization/47615
25374         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
25375         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
25376         (run_scc_vn): Initialize it.
25377         (visit_reference_op_load): Use it.
25378         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
25380 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25382         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
25383         DImode trapping arithmetic libfuncs.
25385 2011-02-07  Richard Guenther  <rguenther@suse.de>
25387         PR tree-optimization/47621
25388         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
25389         two duplicates ...
25390         (execute_update_addresses_taken): ... here.  Make it more
25391         conservative in what we accept.
25393 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
25395         * config/sparc/freebsd.h (ASM_SPEC): Define.
25396         * config/sparc/vxworks.h (ASM_SPEC): Define.
25398 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
25400         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25402 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
25404         * doc/invoke.texi: Remove reference to compiler internals from
25405         user documentation.
25407         * reg-notes.def: Remove REG_VALUE_PROFILE.
25408         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25410 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
25412         PR middle-end/47610
25413         * varasm.c (default_section_type_flags): If decl is NULL,
25414         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25416 2011-02-05  Jie Zhang  <jie@codesourcery.com>
25418         PR debug/42631
25419         * web.c (entry_register): Don't clobber the number of the
25420         first uninitialized reference in used[].
25422 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
25424         PR tree-optimization/46194
25425         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25426         (build_classic_dist_vector_1): Do not represent classic distance
25427         vectors when the access functions are variating in different loops.
25429 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25431         * config/mips/iris6.opt: New.
25432         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25434 2011-02-04  Richard Henderson  <rth@redhat.com>
25435             Steve Ellcey  <sje@cup.hp.com>
25437         PR target/46997
25438         * config/ia64/predicates.md (mux1_brcst_element): New.
25439         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25440         * config/ia64/ia64.c (ia64_unpack_assemble): New.
25441         (ia64_unpack_sign): New.
25442         (ia64_expand_unpack): Rewrite using new routines.
25443         (ia64_expand_widen_sum): Ditto.
25444         (ia64_expand_dot_prod_v8qi): Ditto.
25445         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25446         routines, add endian check.
25447         (pmpy2_even): Rename from pmpy2_r, add endian check.
25448         (pmpy2_odd): Rename from pmpy2_l, add endian check.
25449         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25450         (vec_widen_smult_hi_v4hi): Ditto.
25451         (vec_widen_umult_lo_v4hi): Ditto.
25452         (vec_widen_umult_hi_v4hi): Ditto.
25453         (mulv2si3): Change endian checks.
25454         (sdot_prodv4hi): Rewrite with new calls.
25455         (udot_prodv4hi): New.
25456         (vec_pack_ssat_v4hi): Add endian check.
25457         (vec_pack_usat_v4hi): Ditto.
25458         (vec_pack_ssat_v2si): Ditto.
25459         (max1_even): Rename from max1_r, add endian check.
25460         (max1_odd): Rename from max1_l, add endian check.
25461         (*mux1_rev): Format change.
25462         (*mux1_mix): Ditto.
25463         (*mux1_shuf): Ditto.
25464         (*mux1_alt): Ditto.
25465         (*mux1_brcst_v8qi): Use new predicate.
25466         (vec_extract_evenv8qi): Remove endian check.
25467         (vec_extract_oddv8qi): Ditto.
25468         (vec_interleave_lowv4hi): Format change.
25469         (vec_interleave_highv4hi): Ditto.
25470         (mix2_even): Rename from mix2_r, add endian check.
25471         (mix2_odd): Rename from mux2_l, add endian check.
25472         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25473         (vec_extract_evenodd_helper): Format change.
25474         (vec_extract_evenv4hi): Remove endian check.
25475         (vec_extract_oddv4hi): Remove endian check.
25476         (vec_interleave_lowv2si): Format change.
25477         (vec_interleave_highv2si): Format change.
25478         (vec_initv2si): Remove endian check.
25479         (vecinit_v2si): Add endian check.
25480         (reduc_splus_v2sf): Add endian check.
25481         (reduc_smax_v2sf): Ditto.
25482         (reduc_smin_v2sf): Ditto.
25483         (vec_initv2sf): Remove endian check.
25484         (fpack): Add endian check.
25485         (fswap): Add endian check.
25486         (vec_interleave_highv2sf): Add endian check.
25487         (vec_interleave_lowv2sf): Add endian check.
25488         (fmix_lr): Add endian check.
25489         (vec_setv2sf): Format change.
25490         (*vec_extractv2sf_0_be): Use shift to extract operand.
25491         (*vec_extractv2sf_1_be): New.
25492         (vec_pack_trunc_v4hi): Add endian check.
25493         (vec_pack_trunc_v2si): Format change.
25495 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
25497         PR inline-asm/23200
25498         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
25499         do bb, locus and block comparison and disallow loads if it is not set.
25500         (stmt_is_replaceable_p): New function.
25501         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25502         callers.
25503         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25504         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25505         SSA_NAME_DEF_STMT.
25506         * tree-flow.h (stmt_is_replaceable_p): New prototype.
25508 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25510         * config/rs6000/xilinx.opt: New.
25511         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25513 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25515         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25517 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
25519         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25520         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25521         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25522         secondary_reload_info, xtensa_secondary_reload): Remove.
25523         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25524         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25525         (xtensa_preferred_reload_class): Make static. Change return and
25526         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25527         Use CONST_DOUBLE_P predicate.
25528         (xtensa_preferred_output_reload_class): New function.
25529         (xtensa_secondary_reload): Make static.
25531 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
25533         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25534         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25535         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25537 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25539         PR middle-end/31490
25540         * output.h (SECTION_RELRO): Define.
25541         (SECTION_MACH_DEP): Adjust.
25542         (get_variable_section): New prototype.
25543         * varpool.c (varpool_finalize_named_section_flags): New function.
25544         (varpool_assemble_pending_decls): Call it.
25545         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25546         * cgraphunit.c (cgraph_output_in_order): Call
25547         varpool_finalize_named_section_flags.
25548         * varasm.c (get_section): Allow section flags conflicts between
25549         relro and read-only sections if the section hasn't been declared yet.
25550         Set SECTION_OVERRIDE after diagnosing section type conflict.
25551         (get_variable_section): No longer static.
25552         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25553         readonly sections that need relocations.
25554         (decl_readonly_section_1): New function.
25555         (decl_readonly_section): Use it.
25557         Revert:
25558         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
25559                     Steve Ellcey  <sje@cup.hp.com>
25561         PR middle-end/31490
25562         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25563         if section attribute used.
25565 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25567         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25568         * config/darwin.c (SECTION_NO_ANCHOR): Define.
25569         (darwin_init_sections): Remove assertion.
25571 2011-02-03  Nick Clifton  <nickc@redhat.com>
25573         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25574         lt and ge.
25575         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25576         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25577         instead of "n" and "pz".
25578         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25579         CC_FLAG_S.
25581 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25583         PR target/47312
25584         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25585         fma, expand FMA_EXPR as fma{,f,l} call.
25587         PR lto/47274
25588         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25589         copy them into a unsigned char variable and pass address of it to
25590         lto_output_data_stream.
25592         PR target/47564
25593         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25594         around backend_init_target and lang_dependent_init_target calls.
25595         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25596         (verify_cgraph_node): Don't call set_cfun here.  Use
25597         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25598         Set error_found for incorrectly represented calls to thunks.
25600 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25602         PR debug/43092
25603         PR rtl-optimization/43494
25604         * rtl.h (for_each_inc_dec_fn): New type.
25605         (for_each_inc_dec): Declare.
25606         * rtlanal.c (struct for_each_inc_dec_ops): New type.
25607         (for_each_inc_dec_find_inc_dec): New fn.
25608         (for_each_inc_dec_find_mem): New fn.
25609         (for_each_inc_dec): New fn.
25610         * dse.c (struct insn_size): Remove.
25611         (replace_inc_dec, replace_inc_dec_mem): Remove.
25612         (emit_inc_dec_insn_before): New fn.
25613         (check_for_inc_dec): Use it, along with for_each_inc_dec.
25614         (canon_address): Pass mem modes to cselib_lookup.
25615         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
25616         (cselib_lookup_from_insn): Likewise.
25617         (cselib_subst_to_values): Likewise.
25618         * cselib.c (find_slot_memmode): New var.
25619         (cselib_find_slot): New fn.  Use it instead of
25620         htab_find_slot_with_hash everywhere.
25621         (entry_and_rtx_equal_p): Use find_slot_memmode.
25622         (autoinc_split): New fn.
25623         (rtx_equal_for_cselib_p): Rename and implement in terms of...
25624         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
25625         Deal with autoinc.  Special-case recursion into MEMs.
25626         (cselib_hash_rtx): Likewise.
25627         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
25628         address and MEM modes.
25629         (cselib_subst_to_values): Add memmode, pass it on.
25630         Deal with autoinc.
25631         (cselib_lookup): Add memmode argument, pass it on.
25632         (cselib_lookup_from_insn): Add memmode.
25633         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
25634         (struct cselib_record_autoinc_data): New.
25635         (cselib_record_autoinc_cb): New fn.
25636         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
25637         mode to cselib_lookup.  Reset autoinced REGs here instead of...
25638         (cselib_process_insn): ... here.
25639         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
25640         to cselib_lookup.
25641         (add_uses): Likewise, also to cselib_subst_to_values.
25642         (add_stores): Likewise.
25643         * sched-deps.c (add_insn_mem_dependence): Pass mode to
25644         cselib_subst_to_values.
25645         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
25646         * gcse.c (do_local_cprop): Adjusted.
25647         * postreload.c (reload_cse_simplify_set): Adjusted.
25648         (reload_cse_simplify_operands): Adjusted.
25649         * sel-sched-dump (debug_mem_addr_value): Pass mode.
25651 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25653         PR tree-optimization/45122
25654         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
25655         unsafe assumptions when there's more than one loop exit.
25657 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25659         PR target/47272
25660         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25661         Document using vector double with the load/store builtins, and
25662         that the load/store builtins always use Altivec instructions.
25664         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
25665         to use altivec memory instructions, even on VSX.
25666         (vector_altivec_store_<mode>): Ditto.
25668         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
25669         function.
25671         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25672         V2DF, V2DI support to load/store overloaded builtins.
25674         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
25675         altivec load/store builtins for V2DF/V2DI types.
25677         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25678         set avoid indexed addresses on power6 if -maltivec.
25679         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
25680         vector_altivec_load/vector_altivec_store builtins.
25681         (altivec_expand_st_builtin): Ditto.
25682         (altivec_expand_builtin): Add VSX memory builtins.
25683         (rs6000_init_builtins): Add V2DI types to internal types.
25684         (altivec_init_builtins): Add support for V2DF/V2DI altivec
25685         load/store builtins.
25686         (rs6000_address_for_altivec): Insure memory address is appropriate
25687         for Altivec.
25689         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
25690         vec_vsx_ld and vec_vsx_st.
25691         (vsx_store_<mode>): Ditto.
25693         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25694         variables to hold long long types for VSX vector memory builtins.
25695         (RS6000_BTI_unsigned_long_long): Ditto.
25696         (long_long_integer_type_internal_node): Ditti.
25697         (long_long_unsigned_type_internal_node): Ditti.
25699         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25700         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25701         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25703         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25704         short cuts.
25705         (vec_vsx_st): Ditto.
25707 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25709         * config/pa/pa-hpux10.opt: New.
25710         * config/hpux11.opt (pthread): New Driver option.
25711         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25712         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25714 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25716         * config/ia64/vms.opt: New.
25717         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25719 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25721         PR target/47580
25722         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25723         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25724         generator functions.
25725         (vsx_floatuns<VSi><mode>2): Ditto.
25726         (vsx_fix_trunc<mode><VSi>2): Ditto.
25727         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25729 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25731         * config/i386/djgpp.opt (posix): New Driver option.
25733 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
25735         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25736         Move to the unsupported targets list.
25738 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
25740         PR rtl-optimization/47525
25741         * df-scan.c: Update copyright years.
25742         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25743         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25745 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25747         * config/i386/sysv4.h (TARGET_VERSION): Remove.
25748         (SUBTARGET_RETURN_IN_MEMORY): Remove.
25749         (ASM_OUTPUT_ASCII): Remove.
25750         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25752 2011-02-02  Jeff Law  <law@redhat.com>
25754         PR middle-end/47543
25755         * reload.c (find_reloads_address): Handle reg+d address where both
25756         components are invalid by reloading the entire address.
25758 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25759             Richard Guenther  <rguenther@suse.de>
25761         PR tree-optimization/40979
25762         PR bootstrap/47044
25763         * passes.c (init_optimization_passes): After LIM call copy_prop
25764         and DCE to clean up.
25765         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25767 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25769         PR tree-optimization/47576
25770         PR tree-optimization/47555
25771         * doc/invoke.texi (scev-max-expr-complexity): Documented.
25772         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25773         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25774         * tree-scalar-evolution.c (follow_ssa_edge): Use
25775         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25777 2011-02-02  Richard Guenther  <rguenther@suse.de>
25779         PR tree-optimization/47566
25780         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25782 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25784         PR debug/47106
25785         PR debug/47402
25786         * tree-inline.c (declare_return_variable): Remove unused caller
25787         variable.
25789         PR debug/47106
25790         PR debug/47402
25791         * tree-flow-inline.h (clear_is_used, is_used_p): New.
25792         * cfgexpand.c (account_used_vars_for_block): Use them.
25793         * tree-nrv.c (tree_nrv): Likewise.
25794         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25795         (dump_scope_block): Likewise.
25796         (remove_unused_locals): Likewise.
25798         PR debug/47106
25799         PR debug/47402
25800         * tree-inline.c (declare_return_variable): Add result decl to
25801         local decls only once.
25802         * gimple-low.c (record_vars_into): Mark newly-created variables
25803         as referenced.
25805 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25807         PR debug/47498
25808         PR debug/47501
25809         PR debug/45136
25810         PR debug/45130
25811         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25812         debug insns.
25813         (no_real_insns_p, schedule_block, set_priorities): Drop special
25814         treatment of boundary debug insns.
25815         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25816         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25817         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25818         (BOUNDARY_DEBUG_INSN_P): Likewise.
25819         (SCHEDULE_DEBUG_INSN_P): Likewise.
25820         * sched-rgn.c (init_ready_list): Drop special treatment of
25821         boundary debug insns.
25822         * final.c (rest_of_clean_state): Clear notes' BB.
25824 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25826         * config/openbsd.opt (assert=): New Driver option.
25828 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25830         * config/i386/nto.opt: New.
25831         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25833 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25835         * config/i386/netware.opt: New.
25836         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25838 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25840         * config/interix.opt (posix): New Driver option.
25842 2011-02-01  DJ Delorie  <dj@redhat.com>
25844         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25846         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25847         class for A0/A1.
25849 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
25851         PR tree-optimization/47561
25852         * toplev.c (process_options): Print the Graphite flags.  Add
25853         flag_loop_flatten to the list of options requiring Graphite.
25855 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25857         * config/i386/cygming.opt (posix): New Driver option.
25859 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25861         * config/arm/vxworks.opt: New.
25862         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25864 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25866         * config/alpha/elf.opt: New.
25867         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25868         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25870 2011-02-01  Richard Guenther  <rguenther@suse.de>
25872         PR tree-optimization/47559
25873         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
25874         store-motion on references that can throw.
25876 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
25878         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
25879         * tree-pass.h (TDF_CSELIB): New macro.
25880         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
25881         cselib_lookup): Check for it rather than for TDF_DETAILS.
25883 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
25885         PR driver/47547
25886         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
25887         is HOST_BIT_BUCKET.
25889         * opts.c (finish_options): Don't add x_aux_base_name if it is
25890         HOST_BIT_BUCKET.
25892 2011-02-01  Richard Guenther  <rguenther@suse.de>
25894         PR tree-optimization/47555
25895         Revert
25896         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
25898         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25900 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25902         PR gcc/46692
25903         * config/lm32/t-lm32: Add multilib for all CPU options.
25905 2011-02-01  Richard Guenther  <rguenther@suse.de>
25907         PR tree-optimization/47541
25908         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
25909         sure to have a field at offset zero.
25911 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25913         * config/arc/arc.opt (EB, EL): New Driver options.
25915 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25917         * config/alpha/osf5.opt: New.
25918         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
25920 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25922         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
25924 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
25926         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
25927         -floop-interchange.
25928         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
25929         is an alias of -floop-interchange and that it requires the
25930         Graphite infrastructure.
25931         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
25932         flag_loop_interchange based on the value of flag_tree_loop_linear.
25934 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
25935             Richard Guenther  <rguenther@suse.de>
25937         PR tree-optimization/47538
25938         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
25939         type instead of r1type, except for comparisons.  For right
25940         shifts and comparisons punt if there are mismatches in
25941         sizetype vs. non-sizetype types.
25943 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25945         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25946         avx_runtime.
25948 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25950         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
25951         version number.
25952         * configure: Regenerate.
25954 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25956         * configure.ac (gcc_cv_ld_static_option): Define.
25957         (gcc_cv_ld_dynamic_option): Define.
25958         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
25959         instead.
25960         (HAVE_LD_STATIC_DYNAMIC): Update message.
25961         (LD_STATIC_OPTION): Define.
25962         (LD_DYNAMIC_OPTION): Define.
25963         * configure: Regenerate.
25964         * config.in: Regenerate.
25965         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
25966         HAVE_LD_STATIC_DYNAMIC]: Use them.
25968 2011-01-31  Nick Clifton  <nickc@redhat.com>
25970         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
25971         registers inside interrupt handlers if the handler is not a leaf
25972         function.
25974 2011-01-31  Nick Clifton  <nickc@redhat.com>
25976         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
25977         reg_renumber returning an INVALID_REGNUM.
25979 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25981         PR libgcj/44341
25982         * doc/install.texi: Document host options discarded when cross
25983         configuring target libraries.
25985 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25987         Reverted:
25988         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25989         PR debug/45136
25990         PR debug/45130
25991         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25992         debug insns.
25993         (no_real_insns_p, schedule_block, set_priorities): Drop special
25994         treatment of boundary debug insns.
25995         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25996         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25997         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25998         (BOUNDARY_DEBUG_INSN_P): Likewise.
25999         (SCHEDULE_DEBUG_INSN_P): Likewise.
26000         * sched-rgn.c (init_ready_list): Drop special treatment of
26001         boundary debug insns.
26002         * final.c (rest_of_clean-state): Clear notes' BB.
26004 2011-01-31  Alan Modra  <amodra@gmail.com>
26006         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
26007         toc relative expressions as we do in print_operand_address.
26009 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
26011         * doc/extend.texi: Follow spelling conventions.
26012         * doc/invoke.texi: Fix a typo.
26014 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
26016         * config/hpux11.opt: New.
26017         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
26018         ia64*-*-hpux*): Use hpux11.opt.
26020 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
26022         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
26023         to tmake_file.
26025 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
26027         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
26028         support sites.
26030 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
26032         * doc/install.texi (Binaries): Remove outdated reference for
26033         Motorola 68HC11/68HC12 downloads.
26035 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
26037         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
26038         Drepper's paper.
26040 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
26042         PR bootstrap/47147
26043         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
26044         used by NetBSD.
26046 2011-01-28  Ahmad Sharif  <asharif@google.com>
26048         * value-prof.c (check_counter): Corrected error message.
26050 2011-01-29  Jie Zhang  <jie@codesourcery.com>
26052         * config/arm/arm.c (arm_legitimize_reload_address): New.
26053         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26054         arm_legitimize_reload_address.
26055         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
26057 2011-01-28  Ian Lance Taylor  <iant@google.com>
26059         * godump.c (go_define): Ignore macros whose definitions include
26060         two adjacent operands.
26062 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
26064         PR target/42894
26065         * varasm.c (force_const_mem): Store copy of x in desc->constant
26066         instead of x itself.
26067         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
26068         itself into REG_EQUAL note.
26070 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
26072         * config/freebsd.opt (posix, rdynamic): New Driver options.
26074 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26076         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
26077         -Bstatic/-Bdynamic.
26078         * configure: Regenerate.
26080 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
26082         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
26083         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
26085 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
26087         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
26088         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
26089         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26090         (s390_preferred_reload_class): Make static. Change return and
26091         'rclass' argument type to reg_class_t.
26093 2011-01-27  Jan Hubicka  <jh@suse.cz>
26095         PR middle-end/46949
26096         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26097         (process_function_and_variable_attributes): Check defined weakrefs.
26099 2011-01-27  Martin Jambor  <mjambor@suse.cz>
26101         PR tree-optimization/47228
26102         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26103         build_ref_for_offset.
26105 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26107         * config/spu/spu-elf.h (ASM_SPEC): Remove.
26109 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
26111         PR rtl-optimization/46856
26112         * postreload.c (reload_combine_recognize_const_pattern): Do not
26113         separate cc0 setter and user on cc0 targets.
26115 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
26117         PR c/43082
26118         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26119         passed a VOID_TYPE expression, immediately emit an error and
26120         return error_mark_node.
26122 2011-01-26  Jeff Law  <law@redhat.com>
26124         PR rtl-optimization/47464
26125         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26126         rather than may_trap_p as needed.
26128 2011-01-26  DJ Delorie  <dj@redhat.com>
26130         PR rtl-optimization/46878
26131         * combine.c (insn_a_feeds_b): Check for the implicit cc0
26132         setter/user dependency as well.
26134 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
26136         PR rtl-optimization/44469
26137         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26138         after removing trivially dead basic blocks.
26140 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26142         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26143         * config/frv/frv.h (LINK_SPEC): Likewise.
26144         * config/i386/netware.h (LINK_SPEC): Likewise.
26145         * config/m68k/linux.h (ASM_SPEC): Likewise.
26146         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26147         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26148         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26149         * config/sparc/linux.h (ASM_SPEC): Likewise.
26150         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26151         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26153 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26155         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26156         * config/frv/frv.h (ASM_SPEC): Likewise.
26157         * config/m68k/linux.h (ASM_SPEC): Likewise.
26158         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26159         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26160         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26161         * config/sparc/linux.h (ASM_SPEC): Likewise.
26162         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26163         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26165 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26167         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26168         * config/frv/frv.h (LINK_SPEC): Likewise.
26169         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26171 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26173         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26174         * config/frv/frv.h (ASM_SPEC): Likewise.
26175         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
26176         * config/m68k/linux.h (ASM_SPEC): Likewise.
26177         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26178         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26179         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26180         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
26181         * config/sparc/linux.h (ASM_SPEC): Likewise.
26182         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26183         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26184         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
26186 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
26188         PR target/46997
26189         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
26190         (*mux2): Ditto.
26191         (vec_extract_evenodd_help): Ditto.
26192         (vec_extract_evenv4hi): Ditto.
26193         (vec_extract_oddv4hi): Ditto.
26194         (vec_interleave_lowv2si): Ditto.
26195         (vec_interleave_highv2si): Ditto.
26196         (vec_extract_evenv2si): Ditto.
26197         (vec_extract_oddv2si: Ditto.
26198         (vec_pack_trunc_v2si): Ditto.
26200 2011-01-22  Jan Hubicka  <jh@suse.cz>
26202         PR target/47237
26203         * cgraph.h (cgraph_local_info): New field can_change_signature.
26204         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
26205         signature can change.
26206         (ipcp_estimate_growth): Call sequence simplify only if calle signature
26207         can change.
26208         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
26209         (cgraph_function_versioning): We can not change signature of functions
26210         that don't allow that.
26211         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
26212         (lto_input_node): Likewise.
26213         * ipa-inline.c (compute_inline_parameters): Compute
26214         local.can_change_signature.
26215         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
26216         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
26217         functions that can not change signature.
26218         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
26219         init_cumulative_args): Do not use local calling conventions
26220         for functions that can not change signature.
26222 2011-01-22  Jan Hubicka  <jh@suse.cz>
26224         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
26226 2011-01-26  Richard Guenther  <rguenther@suse.de>
26228         PR tree-optimization/47190
26229         * cgraphunit.c (process_common_attributes): New function.
26230         (process_function_and_variable_attributes): Use it.
26232 2011-01-26  Richard Guenther  <rguenther@suse.de>
26234         PR lto/47423
26235         * cgraphbuild.c (record_eh_tables): Record reference to personality
26236         function.
26238 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
26240         PR debug/45454
26241         * sel-sched.c (moveup_expr): Don't let debug insns prevent
26242         non-debug insns from moving up.
26244 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
26246         PR target/40125
26247         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
26248         t-dlldir{,-x} fragment for build and add it to tmake_file.
26249         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
26250         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
26251         * config/i386/t-dlldir: New file.
26252         (SHLIB_DLLDIR): Define.
26253         * config/i386/t-dlldir-x: New file.
26254         (SHLIB_DLLDIR): Define.
26255         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
26256         (SHLIB_INSTALL): Use it.
26258 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
26260         PR target/47246
26261         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
26262         lower bound of the allowed Thumb-2 coprocessor load/store
26263         index range to -256. Add explaining comment.
26265 2011-01-25  Ian Lance Taylor  <iant@google.com>
26267         * godump.c (go_define): Improve lexing of macro expansion to only
26268         accept expressions which match Go spec.
26270 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
26272         PR c++/43601
26273         * tree.c (handle_dll_attribute): Handle it.
26274         * doc/extend.texi (@item dllexport): Mention it.
26275         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
26277 2011-01-25  Ian Lance Taylor  <iant@google.com>
26279         PR tree-optimization/26854
26280         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
26281         (decl_jump_unsafe): Move higher in file, with no other change.
26282         (bind): Set has_jump_unsafe_decl if appropriate.
26283         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
26284         (check_earlier_gotos): Likewise.
26285         (c_check_switch_jump_warnings): Likewise.
26287 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
26289         * doc/invoke.texi (Warning Options): Add missing hyphen.
26290         (-fprofile-dir): Minor grammatical fixes.
26291         (-fbranch-probabilities): Likewise.
26293 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
26295         PR debug/45136
26296         PR debug/45130
26297         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26298         debug insns.
26299         (no_real_insns_p, schedule_block, set_priorities): Drop special
26300         treatment of boundary debug insns.
26301         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26302         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26303         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26304         (BOUNDARY_DEBUG_INSN_P): Likewise.
26305         (SCHEDULE_DEBUG_INSN_P): Likewise.
26306         * sched-rgn.c (init_ready_list): Drop special treatment of
26307         boundary debug insns.
26308         * final.c (rest_of_clean-state): Clear notes' BB.
26310 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26312         * Makefile.in (LAMBDA_H): Removed.
26313         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
26314         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
26315         lambda-trans.o, and tree-loop-linear.o.
26316         (lto-symtab.o): Remove dependence on LAMBDA_H.
26317         (tree-loop-linear.o): Remove rule.
26318         (lambda-mat.o): Same.
26319         (lambda-trans.o): Same.
26320         (lambda-code.o): Same.
26321         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
26322         (tree-vect-slp.o): Same.
26323         * hwint.h (gcd): Moved here.
26324         (least_common_multiple): Same.
26325         * lambda-code.c: Removed.
26326         * lambda-mat.c: Removed.
26327         * lambda-trans.c: Removed.
26328         * lambda.h: Removed.
26329         * tree-loop-linear.c: Removed.
26330         * lto-symtab.c: Do not include lambda.h.
26331         * omega.c (gcd): Removed.
26332         * passes.c (init_optimization_passes): Remove pass_linear_transform.
26333         * tree-data-ref.c (print_lambda_vector): Moved here.
26334         (lambda_vector_copy): Same.
26335         (lambda_matrix_copy): Same.
26336         (lambda_matrix_id): Same.
26337         (lambda_vector_first_nz): Same.
26338         (lambda_matrix_row_add): Same.
26339         (lambda_matrix_row_exchange): Same.
26340         (lambda_vector_mult_const): Same.
26341         (lambda_vector_negate): Same.
26342         (lambda_matrix_row_negate): Same.
26343         (lambda_vector_equal): Same.
26344         (lambda_matrix_right_hermite): Same.
26345         * tree-data-ref.h: Do not include lambda.h.
26346         (lambda_vector): Moved here.
26347         (lambda_matrix): Same.
26348         (dependence_level): Same.
26349         (lambda_transform_legal_p): Removed declaration.
26350         (lambda_collect_parameters): Same.
26351         (lambda_compute_access_matrices): Same.
26352         (lambda_vector_gcd): Same.
26353         (lambda_vector_new): Same.
26354         (lambda_vector_clear): Same.
26355         (lambda_vector_lexico_pos): Same.
26356         (lambda_vector_zerop): Same.
26357         (lambda_matrix_new): Same.
26358         * tree-flow.h (least_common_multiple): Removed declaration.
26359         * tree-parloops.c (lambda_trans_matrix): Moved here.
26360         (LTM_MATRIX): Same.
26361         (LTM_ROWSIZE): Same.
26362         (LTM_COLSIZE): Same.
26363         (LTM_DENOMINATOR): Same.
26364         (lambda_trans_matrix_new): Same.
26365         (lambda_matrix_vector_mult): Same.
26366         (lambda_transform_legal_p): Same.
26367         * tree-pass.h (pass_linear_transform): Removed declaration.
26368         * tree-ssa-loop.c (tree_linear_transform): Removed.
26369         (gate_tree_linear_transform): Removed.
26370         (pass_linear_transform): Removed.
26371         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
26372         flag_loop_interchange.
26374 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26376         PR tree-optimization/47265
26377         PR tree-optimization/47443
26378         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
26379         if name still has some uses.
26381 2011-01-25  Martin Jambor  <mjambor@suse.cz>
26383         PR tree-optimization/47382
26384         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
26385         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
26387 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
26389         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
26390         sjlj_except_unwind_info.
26392 2011-01-25  Richard Guenther  <rguenther@suse.de>
26394         PR tree-optimization/47426
26395         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
26396         visible functions results escape.
26398 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26400         PR target/45701
26401         * config/arm/arm.c (any_sibcall_uses_r3): New function.
26402         (arm_get_frame_offsets): Use it.
26404 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26405             Jakub Jelinek  <jakub@redhat.com>
26407         PR tree-optimization/47271
26408         * tree-if-conv.c (bb_postdominates_preds): New.
26409         (if_convertible_bb_p): Call bb_postdominates_preds.
26410         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26411         (predicate_scalar_phi): Call bb_postdominates_preds.
26413 2011-01-25  Nick Clifton  <nickc@redhat.com>
26415         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26416         * config/rx/rx.c (rx_function_value): Likewise.
26417         (rx_promote_function_mode): Likewise.
26418         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26419         in order to make it legitimate.
26420         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26421         make sure that the first operand is the same as the result register.
26422         (addsi3_unspec): Delete.
26423         (subdi3): Do not accept immediate operands.
26424         (subdi3_internal): Likewise.
26426 2011-01-25  Jeff Law  <law@redhat.com>
26428         PR rtl-optimization/37273
26429         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26430         handle them like argument loads from stack slots.  Do not double
26431         count memory for memory constants and argument loads from stack slots.
26433 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26435         PR tree-optimization/47427
26436         PR tree-optimization/47428
26437         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26438         coalesce if the new root var would be TREE_READONLY.
26440 2011-01-25  Richard Guenther  <rguenther@suse.de>
26442         PR middle-end/47414
26443         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26444         correct type for TBAA.
26446 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26448         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26449         (close_phi_written_to_memory): Call for_each_index with
26450         dr_indices_valid_in_loop.
26452 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26454         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26455         when it is initialized.
26457 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26459         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26460         call to graphite_find_data_references_in_stmt.
26461         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26462         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
26463         call to graphite_find_data_references_in_stmt.
26464         (analyze_drs_in_stmts): Same.
26465         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26466         in which the scalar analysis of indices is performed.
26467         (create_data_ref): Same.  Update call to dr_analyze_indices.
26468         (find_data_references_in_stmt): Update call to create_data_ref.
26469         (graphite_find_data_references_in_stmt): Same.
26470         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26471         declaration.
26472         (create_data_ref): Same.
26473         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26474         call to create_data_ref.
26476 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26478         * graphite-sese-to-poly.c (build_poly_scop): Move
26479         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26481 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26483         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26484         VAR_DECL, PARM_DECL, and RESULT_DECL.
26486 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26488         * graphite-dependences.c (reduction_dr_1): Allow several reductions
26489         in a reduction PBB.
26490         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26491         that have already been marked as PBB_IS_REDUCTION.
26493 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26495         * graphite-scop-detection.c (same_close_phi_node): New.
26496         (remove_duplicate_close_phi): New.
26497         (make_close_phi_nodes_unique): New.
26498         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26500 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26502         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26503         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26504         of both data references to be the same.
26506 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26508         * graphite-dependences.c (build_lexicographical_constraint): Remove
26509         the gdim parameter.
26510         (build_lexicographical_constraint): Adjust call to
26511         ppl_powerset_is_empty.
26512         (dependence_polyhedron): Same.
26513         (graphite_legal_transform_dr): Same.
26514         (graphite_carried_dependence_level_k): Same.
26515         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26516         parameter.
26517         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26519 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26521         * graphite-sese-to-poly.c
26522         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26523         (close_phi_written_to_memory): New.
26524         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26525         and unshare_expr.
26527 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26529         * doc/install.texi: Update the expected version number of PPL to 0.11.
26530         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26531         #if PPL_VERSION_MINOR < 11.
26533 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26535         * graphite-dependences.c: Include graphite-cloog-util.h.
26536         (new_poly_ddr): Inlined into dependence_polyhedron.
26537         (free_poly_ddr): Moved close by new_poly_ddr.
26538         (dependence_polyhedron_1): Renamed dependence_polyhedron.
26539         Early return NULL when ppl_powerset_is_empty returns true.
26540         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
26541         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
26542         (graphite_legal_transform_dr): Call new_poly_ddr.
26543         (graphite_carried_dependence_level_k): Same.
26544         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
26545         (dot_transformed_deps_stmt_1): Removed.
26546         (dot_deps_stmt_1): Call dot_deps_stmt_2.
26547         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
26548         (dot_deps_1): Call dot_deps_2.
26549         * Makefile.in (graphite-dependences.o): Add missing dependence on
26550         graphite-cloog-util.h.
26552 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26554         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26555         (build_lexicographical_constraint): Same.
26556         (dependence_polyhedron_1): Same.
26557         (graphite_legal_transform_dr): Same.
26558         (graphite_carried_dependence_level_k): Same.
26559         * graphite-ppl.c (ppl_powerset_is_empty): New.
26560         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26561         * tree-data-ref.c (dump_data_reference): Print the basic block index.
26563 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26565         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26566         the "a followed by b" relation and document it.
26568 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26570         * graphite-dependences.c (build_lexicographical_constraint): Stop the
26571         iteration when the bag of constraints is empty.
26573 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26575         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26577 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26579         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26580         nest and two loop depths as parameters.
26581         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26582         lst_perfect_nestify.
26584 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26586         * graphite-dependences.c (print_pddr): Call
26587         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26589 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26591         * graphite-ppl.c (debug_gmp_value): New.
26592         * graphite-ppl.h (debug_gmp_value): Declared.
26594 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
26596         * doc/install.texi: Document availability of cloog-0.16.
26598 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
26600         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26601         invalid postdominance info.
26603 2011-01-24  Jan Hubicka  <jh@suse.cz>
26605         PR c/21659
26606         * doc/extend.texi (weak pragma): Drop claim that it must
26607         appear before definition.
26608         * varasm.c (merge_weak, declare_weak): Only sanity check
26609         that DECL is not output at a time it is declared weak.
26611 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
26613         * machmode.def: Fixed comments.
26615 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
26617         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26619 2011-01-24  Paul Koning  <ni1d@arrl.net>
26621         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26622         WORDS_BIG_ENDIAN.
26624 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
26626         PR target/46519
26627         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
26628         (block_info): Add scanned and prev.
26629         (move_or_delete_vzeroupper_2): Return if the basic block
26630         has been scanned and the upper 128bit state is unchanged
26631         from the last scan.
26632         (move_or_delete_vzeroupper_1): Return true if the exit
26633         state is changed.
26634         (move_or_delete_vzeroupper): Visit basic blocks using the
26635         work-list based algorithm based on vt_find_locations in
26636         var-tracking.c.
26638         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
26640 2011-01-24  Nick Clifton  <nickc@redhat.com>
26642         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
26643         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
26644         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
26645         then define __v850e1__.
26646         * doc/invoke.texi: Document -mv850es.
26648 2011-01-24  Richard Henderson  <rth@redhat.com>
26650         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
26651         compound unordered comparisons.
26652         * config/rx/rx.c (rx_split_fp_compare): Remove.
26653         * config/rx/rx-protos.h: Update.
26654         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
26655         (cbranchsf4): Don't call rx_split_fp_compare.
26656         (*cbranchsf4): Use rx_split_cbranch.
26657         (*cmpsf): Don't accept "i" constraint.
26658         (*conditional_branch): Only valid after reload.
26659         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
26661 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26663         PR target/47385
26664         * config/rs6000/altivec.md (vector constant splitters): Add
26665         support for creating vector single precision constants if -mvsx is
26666         used and we would create the constant using Altivec primitives.
26668 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
26669             Richard Sandiford  <rdsandiford@googlemail.com>
26671         PR rtl-optimization/47166
26672         * reload1.c (emit_reload_insns): Disable the spill_reg_store
26673         mechanism for PRE_MODIFY and POST_MODIFY.
26674         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
26675         reloadreg.
26677 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
26679         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
26681 2011-01-22  Jan Hubicka  <jh@suse.cz>
26683         PR lto/47333
26684         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
26686 2011-01-22  Jan Hubicka  <jh@suse.cz>
26688         PR tree-optimization/43884
26689         PR lto/44334
26690         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26691         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26693 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
26695         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26696         * config/s390/s390.c (s390_register_move_cost,
26697         s390_memory_move_cost): New.
26698         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26700 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26702         PR middle-end/47401
26703         * except.c (sjlj_assign_call_site_values): Move setting the
26704         crtl->uses_eh_lsda flag to ...
26705         (sjlj_mark_call_sites): ... here.
26706         (sjlj_emit_function_enter): Support NULL dispatch label.
26707         (sjlj_build_landing_pads): In a function with no landing pads
26708         that still has must-not-throw regions, generate code to register
26709         a personality function with empty LSDA.
26711 2011-01-21  Richard Henderson  <rth@redhat.com>
26713         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26715         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26717         * compare-elim.c: New file.
26718         * Makefile.in (OBJS-common): Add it.
26719         (compare-elim.o): New.
26720         * common.opt (fcompare-elim): New.
26721         * opts.c (default_options_table): Add OPT_fcompare_elim.
26722         * tree-pass.h (pass_compare_elim_after_reload): New.
26723         * passes.c (init_optimization_passes): Add it.
26724         * recog.h: Protect against re-inclusion.
26725         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26726         * doc/invoke.texi (-fcompare-elim): Document it.
26727         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26728         * doc/tm.texi: Rebuild.
26730 2011-01-22  Nick Clifton  <nickc@redhat.com>
26732         * config/rx/rx.md (cstoresf4): Pass comparison operator to
26733         rx_split_fp_compare.
26735 2011-01-22  Nick Clifton  <nickc@redhat.com>
26737         * config/rx/rx.md (UNSPEC_CONST): New.
26738         (deallocate_and_return): Wrap the amount popped off the stack in
26739         an UNSPEC_CONST in order to stop it being rejected by
26740         -mmax-constant-size.
26741         (pop_and_return): Add a "(return)" rtx.
26742         (call): Drop the immediate operand.
26743         (call_internal): Likewise.
26744         (call_value): Likewise.
26745         (call_value_internal): Likewise.
26746         (sibcall_internal): Likewise.
26747         (sibcall_value_internal): Likewise.
26748         (sibcall): Likewise.  Generate an explicit call using
26749         sibcall_internal.
26750         (sibcall_value): Likewise.
26751         (mov<>): FAIL if a constant operand is not legitimate.
26752         (addsi3_unpsec): New pattern.
26754         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26755         (ok_for_max_constant): New function.
26756         (gen_safe_add): New function.
26757         (rx_expand_prologue): Use gen_safe_add.
26758         (rx_expand_epilogue): Likewise.
26759         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
26760         UNSPEC CONSTs.
26762 2011-01-21  Jeff Law  <law@redhat.com>
26764         PR tree-optimization/47053
26765         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26766         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26767         statements are deleted.
26768         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
26769         is nonempty, then purge dead edges and cleanup the CFG.
26771 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26773         PR debug/47402
26774         Temporarily revert:
26775         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26776         PR debug/47106
26777         * tree-dfa.c (create_var_ann): Mark variable as used.
26779 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26781         PR middle-end/45566
26782         * except.c (convert_to_eh_region_ranges): Emit queued no-region
26783         notes from other section in hot/cold partitioning even if
26784         last_action is -3.  Increment call_site_base.
26786         PR rtl-optimization/47366
26787         * fwprop.c (forward_propagate_into): Return bool.  If
26788         any changes are made, -fnon-call-exceptions is used and
26789         REG_EH_REGION note is present, call purge_dead_edges
26790         and return true if it purged anything.
26791         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26792         any EH edges were purged.
26794 2011-01-21  Jeff Law  <law@redhat.com>
26796         PR rtl-optimization/41619
26797         * caller-save.c (setup_save_areas): Break out code to determine
26798         which hard regs are live across calls by examining the reload chains
26799         so that it is always used.
26800         Eliminate code which checked REG_N_CALLS_CROSSED.
26802 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26804         PR tree-optimization/47355
26805         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26806         NOP has non-debug uses beyond PHIs in new_bb.
26808 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26810         PR debug/47106
26811         * cfgexpand.c (account_used_vars_for_block): Only account vars
26812         that are annotated as used.
26813         (estimated_stack_frame_size): Don't set TREE_USED.
26814         * tree-dfa.c (create_var_ann): Mark variable as used.
26816 2011-01-21  Richard Guenther  <rguenther@suse.de>
26818         PR middle-end/47395
26819         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26821 2011-01-21  Richard Guenther  <rguenther@suse.de>
26823         PR tree-optimization/47365
26824         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26825         (vn_reference_lookup_pieces): Adjust.
26826         (vn_reference_lookup): Likewise.
26827         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26828         (vn_reference_lookup_3): Only look through kills if in
26829         VN_WALKREWRITE mode.
26830         (vn_reference_lookup_pieces): Adjust.
26831         (vn_reference_lookup): Likewise.
26832         (visit_reference_op_load): Likewise.
26833         (visit_reference_op_store): Likewise.
26834         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26835         (compute_avail): Likewise.
26836         (eliminate): Likewise.
26838 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26840         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26841         DECL_IGNORED_P non-reg vars if they are used.
26843         PR tree-optimization/47391
26844         * varpool.c (const_value_known_p): Return false if
26845         decl is volatile.
26847 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
26849         PR bootstrap/47215
26850         * config/i386/i386.c (ix86_local_alignment): Handle
26851         case for va_list_type_node is nil.
26852         (ix86_canonical_va_list_type): Likewise.
26854 2011-01-21  Alan Modra  <amodra@gmail.com>
26856         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26857         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26859 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26861         * config/arm/arm.md (define_attr type): Rename f_load
26862         and f_store to f_fpa_load and f_fpa_store. Update.
26863         (write_conflict): Deal with rename fallout.
26864         (*push_fp_multi): Likewise.
26865         * config/arm/fpa.md (f_load): Use f_fpa_load.
26866         (f_store): Use f_fpa_store.
26867         (*movsf_fpa): Likewise.
26868         (*movdf_fpa): Likewise.
26869         (*movxf_fpa): Likewise.
26870         (*thumb2_movsf_fpa): Likewise.
26871         (*thumb2_movdf_fpa): Likewise.
26872         (*thumb2_movxf_fpa): Likewise.
26873         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
26874         f_loadd and f_stored.
26875         (*thumb2_movdi_vfp): Likewise.
26876         (*thumb2_movsf_vfp): Fix attribute to f_loads.
26877         (*thumb2_movsi_vfp): Likewise.
26878         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
26879         Use f_loads instead of f_load.
26880         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
26882 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
26884         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26885         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
26886         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26887         (xtensa_mode_dependent_address_p): New function.
26888         (constantpool_address_p): Make static. Change return type to bool.
26889         Change argument type to const_rtx. Use CONST_INT_P predicate.
26891 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
26893         PR debug/46583
26894         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
26896 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26898         PR debug/47283
26899         * cfgexpand.c (expand_debug_expr): Instead of generating
26900         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
26901         etc. handling.
26903 2011-01-20  Richard Guenther  <rguenther@suse.de>
26905         PR middle-end/47370
26906         * tree-inline.c (remap_gimple_op_r): Recurse manually for
26907         the pointer operand of MEM_REFs.
26909 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26911         PR tree-optimization/46130
26912         * ipa-split.c (consider_split): If return_bb contains non-virtual
26913         PHIs other than for retval or if split_function would not adjust it,
26914         refuse to split.
26916 2011-01-20  Richard Guenther  <rguenther@suse.de>
26918         PR tree-optimization/47167
26919         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
26920         Revert previous change, only avoid enumeral type changes.
26922 2011-01-19  Mike Stump  <mikestump@comcast.net>
26924         * doc/tm.texi.in (BRANCH_COST): Englishify.
26925         * doc/tm.texi (BRANCH_COST): Likewise.
26927 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
26929         PR c++/47291
26930         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
26931         (gen_scheduled_generic_parms_dies): New functions.
26932         (gen_struct_or_union_type_die): Schedule template parameters DIEs
26933         generation for the end of CU compilation.
26934         (dwarf2out_finish): Generate template parameters DIEs here.
26936 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26938         PR debug/46240
26939         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
26940         debug bind stmt on merge edges.
26942 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26944         PR debug/47079
26945         PR debug/46724
26946         * function.c (instantiate_expr): Instantiate incoming rtl of
26947         implicit arguments, and recurse on VALUE_EXPRs.
26948         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
26949         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
26951 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26953         * c-parser.c (c_parser_for_statement): Initialize
26954         collection_expression.
26956 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26958         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
26960 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26962         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
26963         (LINK_SHLIB_SPEC): Don't use %(link_path).
26964         (SUBTARGET_EXTRA_SPECS): Remove link_path.
26966 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26968         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
26969         (NO_SHARED_LIB_SUPPORT): Remove.
26970         (LINK_SHLIB_SPEC): Remove one conditional definition.
26972 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26974         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
26975         %{call_shared}.
26976         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
26977         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
26978         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
26979         %{call_shared} and conditionals on these options not being passed.
26980         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
26981         %{call_shared}.
26983 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26985         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
26986         simplify.
26988         * ipa-split.c: Spelling fixes.
26990 2011-01-19  Richard Henderson  <rth@redhat.com>
26992         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
26993         (*mulsi3): Likewise.
26995         * longlong.h [__mn10300__] (count_leading_zeros): New.
26996         [__mn10300__] (umul_ppmm, smul_ppmm): New.
26997         [__mn10300__] (add_ssaaaa, subddmmss): New.
26998         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
26999         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
27001 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27003         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
27005 2011-01-19  Richard Henderson  <rth@redhat.com>
27007         * config/mn10300/mn10300.md (addsi3_flags): New.
27008         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
27009         (subsi3_flags, subc_internal, subdi3): New.
27010         (subdi3_internal, *subdi3_degenerate): New.
27011         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
27013         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
27014         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
27015         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
27016         * config/mn10300/mn10300-protos.h: Update.
27017         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
27018         (return_ret): Likewise.  Rename from return_internal_regs.
27019         (return_internal): Remove.
27021         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
27022         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
27023         (mn10300_legitimate_constant_p): Likewise.
27024         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
27025         (mn10300_frame_size): New.
27026         (mn10300_expand_prologue): Use it.
27027         (mn10300_expand_epilogue): Likewise.
27028         (mn10300_initial_offset): Likewise.
27029         * config/mn10300/mn10300-protos.h: Update.
27030         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
27031         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
27032         (prologue, epilogue, return_internal): Tidy output code.
27033         (mn10300_store_multiple_operation, return): Likewise.
27034         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
27035         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
27036         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
27037         (load_pic, am33_load_pic): New.
27038         (mn10300_load_pic0, mn10300_load_pic1): New.
27040         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
27041         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
27042         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
27043         (cc_flags_for_mode, cc_flags_for_code): New.
27044         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
27045         overflow flag is not valid.  Validate that the flags we need
27046         for the comparison are valid.
27047         (mn10300_output_cmp): Remove.
27048         (mn10300_output_add): New.
27049         (mn10300_select_cc_mode): Use cc_flags_for_code.
27050         (mn10300_split_cbranch): New.
27051         (mn10300_match_ccmode): New.
27052         (mn10300_split_and_operand_count): New.
27053         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
27054         to the function.
27055         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
27056         (addsi3): ... here.  Use mn10300_output_add.
27057         (*addsi3_flags): New.
27058         (*am33_subsi3, *mn10300_subsi3): Merge...
27059         (subsi3): ... here.  Use attribute isa.
27060         (*subsi3_flags): New.
27061         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
27062         when possible.
27063         (*am33_andsi3, *mn10300_andsi3): Merge...
27064         (andsi3): ... here.
27065         (*andsi3_flags): New.
27066         (andsi3 splitters): New.
27067         (*am33_iorsi3, *mn10300_iorsi3): Merge...
27068         (iorsi3): ... here.
27069         (*iorsi3_flags): New.
27070         (*am33_xorsi3, *mn10300_xorsi3): Merge...
27071         (xorsi3): ... here.
27072         (*xorsi3_flags): New.
27073         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
27074         (one_cmplsi2): ... here.
27075         (*one_cmplsi2_flags): New.
27076         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
27077         instead of "dax" in constraints.  Use mn10300_split_cbranch.
27078         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
27079         use matching constraints to eliminate a self-comparison.
27080         (*integer_conditional_branch): Rename from integer_conditional_branch.
27081         Use int_mode_flags to match CC_REG.
27082         (*cbranchsi4_btst, *btstsi): New.
27083         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
27084         mn10300_split_cbranch.
27085         (*am33_cmpsf): Rename from am33_cmpsf.
27086         (*float_conditional_branch): Rename from float_conditional_branch.
27087         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
27088         (zero_extendqisi2): ... here.
27089         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
27090         (zero_extendhisi2): ... here.
27091         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
27092         (extendqisi2): ... here.
27093         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27094         (extendhisi2): ... here.
27095         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27096         (ashlsi3): ... here.
27097         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27098         (lshrsi3): ... here.
27099         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27100         (ashrsi3): ... here.
27101         (consecutive add peephole): Remove.
27102         * config/mn10300/predicates.md (label_ref_operand): New.
27103         (int_mode_flags): New.
27104         (CCZN_comparison_operator): New.
27106         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27107         (throughput_42_latency_43): New reservation.
27108         (mulsidi3, umulsidi3): New expanders.
27109         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
27110         the MDR register to allocation; separately allocate the low and
27111         high parts of the DImode result.
27112         (umulsidi3_internal): Similarly.
27113         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27114         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
27115         (udivsi3, umodsi3): Remove.
27116         (udivmodsi4, divmodsi4): New expanders.
27117         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
27118         (*divmodsi4): Simiarly.
27119         (ext_internal): New.
27121         * config/mn10300/constraints.md ("z"): New constraint.
27122         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27123         (FIXED_REGISTERS): Don't fix MDR.
27124         (CALL_USED_REGSITERS): Reformat nicely.
27125         (REG_ALLOC_ORDER): Add MDR.
27126         (enum regclass): Add MDR_REGS.
27127         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27128         (IRA_COVER_CLASSES): Add MDR_REGS.
27129         (REGNO_REG_CLASS): Handle MDR_REG.
27130         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27131         (mn10300_register_move_cost): Likewise.
27132         * config/mn10300/mn10300.md (MDR_REG): New.
27133         (*movsi_internal): Handle moves to/from MDR_REGS.
27135         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27136         POST_MODIFY.
27137         (mn10300_secondary_reload): Tidy combination reload classes.
27138         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27139         addresses for AM33.  Allow symbolic offsets for reg+imm.
27140         (mn10300_regno_in_class_p): New.
27141         (mn10300_legitimize_reload_address): New.
27142         * config/mn10300/mn10300.h (enum reg_class): Remove
27143         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27144         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
27145         SP_OR_GENERAL_REGS.
27146         (REG_CLASS_NAMES): Update to match.
27147         (REG_CLASS_CONTENTS): Likewise.
27148         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27149         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27150         (REGNO_IN_RANGE_P): Remove.
27151         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27152         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27153         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27154         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27155         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27156         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27157         (REGNO_GENERAL_P): New.
27158         (HAVE_POST_MODIFY_DISP): New.
27159         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27160         (LEGITIMIZE_RELOAD_ADDRESS): New.
27161         * config/mn10300/mn10300-protos.h: Update.
27163         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27164         DATA_REGS for AM33 stack-pointer destination.
27165         (mn10300_preferred_output_reload_class): Likewise.
27166         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27167         into a form appropriate for ...
27168         (TARGET_SECONDARY_RELOAD): New.
27169         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27170         * config/mn10300/mn10300-protos.h: Update.
27171         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27172         reload_insi; use the "A" constraint for the scratch; handle AM33
27173         moves of sp to non-address registers.
27175         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
27176         (*movqi_internal): ... here.
27177         (*am33_movhi, *mn10300_movhi): Merge into...
27178         (*movhi_internal): ... here.
27179         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
27180         as the source/destination of moves from/to SP.
27181         (movsf): Only allow for AM33-2.
27182         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
27183         any integer constant constraint.  Only allow for AM33-2.  Tidy
27184         all of the alternative outputs.
27185         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
27186         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
27187         for MN103.
27188         (udivsi3, umodsi3): New patterns for MN103 only.
27190 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
27192         * doc/tm.texi.in: Spell out that a lack of register class unions
27193         can lead to ICEs.
27194         * doc/tm.texi: Regenerate.
27196 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
27198         PR rtl-optimization/47337
27199         * dce.c (check_argument_store): New function.
27200         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
27202         PR tree-optimization/47290
27203         * tree-eh.c (infinite_empty_loop_p): New function.
27204         (cleanup_empty_eh): Use it.
27206 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
27208         PR target/46997
27209         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
27210         (a64_expand_widen_sum): Ditto.
27211         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
27212         (vec_extract_evenodd_help): Ditto.
27213         (vec_extract_evenv4hi): Ditto.
27214         (vec_extract_oddv4hi): Ditto.
27215         (vec_extract_evenv2si): Ditto.
27216         (vec_extract_oddv2si): Ditto.
27217         (vec_extract_evenv2sf): Ditto.
27218         (vec_extract_oddv2sf): Ditto.
27219         (vec_pack_trunc_v4hi: Ditto.
27220         (vec_pack_trunc_v2si): Ditto.
27221         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
27222         (vec_interleave_highv8qi): Ditto.
27223         (mix1_r): Ditto.
27224         (vec_extract_oddv8qi): Ditto.
27225         (vec_interleave_lowv4hi): Ditto.
27226         (vec_interleave_highv4hi): Ditto.
27227         (vec_interleave_lowv2si): Ditto.
27228         (vec_interleave_highv2si): Ditto.
27230 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27232         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
27233         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
27234         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
27235         (pa_c_mode_for_suffix): New.
27236         (TARGET_EXPAND_BUILTIN): Define.
27237         (TARGET_C_MODE_FOR_SUFFIX): Define.
27238         (pa_builtins): Define.
27239         (pa_init_builtins): Register __float128 type and init new support
27240         builtins.
27241         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
27242         * config/pa/quadlib.c (_U_Qfcopysign): New.
27244 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
27246         PR middle-end/46894
27247         * explow.c (allocate_dynamic_stack_space): Do not assume more than
27248         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
27249         are defined.
27251 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27253         PR tree-optimization/47179
27254         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
27255         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
27257 2011-01-18  Richard Guenther  <rguenther@suse.de>
27259         PR rtl-optimization/47216
27260         * emit-rtl.c: Include tree-flow.h.
27261         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
27262         of replicating it with different semantics.
27263         * Makefile.in (emit-rtl.o): Adjust.
27265 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27267         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
27268         (cortex_a9_dp): Handle neon types correctly.
27270 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
27272         PR rtl-optimization/47299
27273         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
27274         subtarget.  Use normal multiplication if both operands are constants.
27275         * expmed.c (expand_widening_mult): Don't try to optimize constant
27276         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
27277         before using it.
27279 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27281         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
27282         spacing after 'e.g.', typos, comma, hyphenation.
27284 2011-01-17  Richard Henderson  <rth@redhat.com>
27286         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
27287         (rx_restricted_mem_operand): New.
27288         (rx_shift_operand): Use register_operand.
27289         (rx_source_operand, rx_compare_operand): Likewise.
27290         * config/rx/rx.md (addsi3_flags): New expander.
27291         (adddi3): Rewrite as expander.
27292         (adc_internal, *adc_flags, adddi3_internal): New patterns.
27293         (subsi3_flags): New expander.
27294         (subdi3): Rewrite as expander.
27295         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
27297         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
27298         (rx_init_builtins): Remove sat builtin.
27299         (rx_expand_builtin): Likewise.
27300         * config/rx/rx.md (ssaddsi3): New.
27301         (*sat): Rename from sat.  Represent the CC_REG input.
27303         * config/rx/predicates.md (rshift_operator): New.
27304         * config/rx/rx.c (rx_expand_insv): Remove.
27305         * config/rx/rx-protos.h: Update.
27306         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
27307         operand to the canonical position.
27308         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
27309         (*bitclr, *bitclr_in_memory): Similarly.
27310         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
27311         (insv): Retain the zero_extract in the expansion.
27313         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
27314         (bswaphi2, bitinvert, revw): Likewise.
27316         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
27317         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
27318         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
27319         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
27320         (bitset, bitset_in_memory): Likewise.
27321         (bitinvert, bitinvert_in_memory): Likewise.
27322         (bitclr, bitclr_in_memory): Likewise.
27323         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
27324         (rx_strend, rx_cmpstrn): Likewise.
27325         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
27326         (bitop peep2 patterns): Remove.
27328         * config/rx/rx.c (rx_match_ccmode): New.
27329         * config/rx/rx-protos.h: Update.
27330         * config/rx/rx.md (abssi2): Clobber, don't set flags.
27331         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
27332         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
27333         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
27334         (fix_truncsfsi2, floatsisf2): Likewise.
27335         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
27336         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
27337         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
27338         (*subsi3_flags, *xorsi3_flags): New.
27340         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
27342         * config/rx/rx.c (rx_print_operand): Remove workaround for
27343         unsplit comparison operations.
27345         * config/rx/rx.md (movsicc): Split after reload.
27346         (*movsicc): Merge *movsieq and *movsine via match_operator.
27347         (*stcc): New pattern.
27349         * config/rx/rx.c (rx_float_compare_mode): Remove.
27350         * config/rx/rx.h (rx_float_compare_mode): Remove.
27351         * config/rx/rx.md (cstoresi4): Split after reload.
27352         (*sccc): New pattern.
27354         * config/rx/predicates.md (label_ref_operand): New.
27355         (rx_z_comparison_operator): New.
27356         (rx_zs_comparison_operator): New.
27357         (rx_fp_comparison_operator): New.
27358         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
27359         Validate that the flags are set properly for the comparison.
27360         (rx_gen_cond_branch_template): Remove.
27361         (rx_cc_modes_compatible): Remove.
27362         (mode_from_flags): New.
27363         (flags_from_code): Rename from flags_needed_for_conditional.
27364         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
27365         (rx_select_cc_mode): Likewise.
27366         (rx_split_fp_compare): New.
27367         (rx_split_cbranch): New.
27368         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
27369         (*cbranchsi4): Use match_operator and rx_split_cbranch.
27370         (*cbranchsf4): Similarly.
27371         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
27372         match_operator and rx_split_cbranch.
27373         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
27374         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
27375         (*cmpsi): Rename from cmpsi.
27376         (*tstsi): Rename from tstsi.
27377         (*cmpsf): Rename from cmpsf; use CC_Fmode.
27378         (*conditional_branch): Rename from conditional_branch.
27379         (*reveresed_conditional_branch): Remove.
27380         (b<code>): Remove expander.
27381         * config/rx/rx-protos.h: Update.
27383         * config/rx/rx.c (rx_compare_redundant): Remove.
27384         * config/rx/rx.md (cmpsi): Don't use it.
27385         * config/rx/rx-protos.h: Update.
27387         * config/rx/rx-modes.def (CC_F): New mode.
27388         * config/rx/rx.c (rx_select_cc_mode): New.
27389         * config/rx/rx.h (SELECT_CC_MODE): Use it.
27390         * config/rx/rx-protos.h: Update.
27392 2011-01-17  Richard Henderson  <rth@redhat.com>
27394         * except.c (dump_eh_tree): Fix stray ; after for statement.
27396 2011-01-17  Richard Guenther  <rguenther@suse.de>
27398         PR tree-optimization/47313
27399         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
27400         handling before copying the body.  Properly deal with
27401         by-reference result in SSA form.
27403 2011-01-17  Ian Lance Taylor  <iant@google.com>
27405         PR target/47219
27406         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27407         (struct_value_alias_set): Don't define.
27408         (sparc_option_override): Don't set sparc_sr_alias_set and
27409         struct_value_alias_set.
27410         (save_or_restore_regs): Use gen_frame_mem rather than calling
27411         set_mem_alias_set.
27412         (sparc_struct_value_rtx): Likewise.
27414 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27416         PR target/47318
27417         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27418         (_mm_maskstore_pd): Likewise.
27419         (_mm_maskload_ps): Likewise.
27420         (_mm_maskstore_ps): Likewise.
27421         (_mm256_maskload_pd): Change mask to __m256i.
27422         (_mm256_maskstore_pd): Likewise.
27423         (_mm256_maskload_ps): Likewise.
27424         (_mm256_maskstore_ps): Likewise.
27426         * config/i386/i386-builtin-types.def: Updated.
27427         (ix86_expand_special_args_builtin): Likewise.
27429         * config/i386/i386.c (bdesc_special_args): Update
27430         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27431         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27432         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27433         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27435         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27436         Use <avxpermvecmode> on mask register.
27437         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27439 2011-01-17  Olivier Hainque  <hainque@adacore.com>
27440             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27441             Eric Botcazou  <ebotcazou@adacore.com>
27443         PR target/46655
27444         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27445         if <= USHRT_MAX in 32-bit mode.
27447 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27449         * doc/install.texi (Configuration, Specific): Wrap long
27450         lines in examples.  Allow line wrapping in long options
27451         and URLs where beneficial for PDF output.
27453 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
27455         * config/mips/mips.c (mips_classify_symbol): Don't return
27456         SYMBOL_PC_RELATIVE for nonlocal labels.
27458 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
27460         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27462 2011-01-15  Jan Hubicka  <jh@suse.cz>
27464         PR tree-optimization/47276
27465         * ipa.c (function_and_variable_visibility): Do not try to mark alias
27466         declarations as needed.
27468 2011-01-15  Martin Jambor  <mjambor@suse.cz>
27470         * common.opt (fdevirtualize): New flag.
27471         * doc/invoke.texi (Option Summary): Document it.
27472         * opts.c (default_options_table): Add devirtualize flag.
27473         * ipa-prop.c (detect_type_change): Return immediately if
27474         devirtualize flag is not set.
27475         (detect_type_change_ssa): Likewise.
27476         (compute_known_type_jump_func): Likewise.
27477         (ipa_analyze_virtual_call_uses): Likewise.
27479 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27481         PR tree-optimization/45934
27482         PR tree-optimization/46302
27483         * ipa-prop.c (type_change_info): New type.
27484         (stmt_may_be_vtbl_ptr_store): New function.
27485         (check_stmt_for_type_change): Likewise.
27486         (detect_type_change): Likewise.
27487         (detect_type_change_ssa): Likewise.
27488         (compute_complex_assign_jump_func): Check for dynamic type change.
27489         (compute_complex_ancestor_jump_func): Likewise.
27490         (compute_known_type_jump_func): Likewise.
27491         (compute_scalar_jump_functions): Likewise.
27492         (ipa_analyze_virtual_call_uses): Likewise.
27493         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27495 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27497         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27498         * config/i386/i386.opt (msse5): New Alias.
27500 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27502         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27503         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27504         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27505         * config/sparc/sparc.h (CC1_SPEC): Likewise.
27507 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27509         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27510         -mcpu options.
27511         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27512         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27513         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27514         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27515         Likewise.
27516         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27518 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27520         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27522 2011-01-14  Mike Stump  <mikestump@comcast.net>
27524         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27525         * config/fr30/fr30.md: Likweise
27526         (movsi_push): Likewise.
27527         (movsi_pop): Likewise.
27528         (enter_func): Likewise.
27529         * config/moxie/moxie.md (movsi_push): Likewise.
27530         (movsi_pop): Likewise.
27532 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27534         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27535         %{no_archive} %{exact_version}.
27536         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27537         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27538         %{no_archive} %{exact_version}.
27539         * config/mips/openbsd.h (LINK_SPEC): Likewise.
27540         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27541         * config/mips/vxworks.h: Likewise.
27543 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27545         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27547 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27549         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27550         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27552 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27554         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27555         -nodefaultlib.
27557 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27559         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27560         for mcpu not cpu.
27561         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27562         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27563         not cpu.
27564         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27565         Don't handle -shlib.
27567 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27569         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27570         (CC1_SPEC): Don't handle -profile.
27572 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27574         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27575         * config/mips/mips.h (CC1_SPEC): Likewise.
27577 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27579         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27580         * config/mips/mips.h (CC1_SPEC): Likewise.
27582 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27584         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27585         * config/m32r/linux.h (LINK_SPEC): Likewise.
27586         * config/mips/linux.h (LINK_SPEC): Likewise.
27587         * config/mips/linux64.h (LINK_SPEC): Likewise.
27588         * config/sparc/linux.h (LINK_SPEC): Likewise.
27589         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27590         LINK_SPEC): Likewise.
27591         * config/xtensa/linux.h (LINK_SPEC): Likewise.
27593 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27595         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27596         %{version:-v}.
27597         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27599 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27601         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27602         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27604 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27606         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27608 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27610         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27611         supports -Bstatic/-Bdynamic.
27612         * configure: Regenerate.
27614 2011-01-14  Jan Hubicka  <jh@suse.cz>
27615             Jack Howarth  <howarth@bromo.med.uc.edu>
27617         PR target/46037
27618         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27619         when checking debug_info_level. Test write_symbols instead of
27620         debug_hooks->var_location when setting flag_var_tracking_uninit.
27622 2011-01-14  Richard Guenther  <rguenther@suse.de>
27624         PR tree-optimization/47179
27625         * target.def (ref_may_alias_errno): New target hook.
27626         * targhooks.h (default_ref_may_alias_errno): Declare.
27627         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
27628         (default_ref_may_alias_errno): New function.
27629         * target.h (struct ao_ref_s): Declare.
27630         * tree-ssa-alias.c: Include target.h.
27631         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
27632         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
27633         (targhooks.o): Likewise.
27634         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
27635         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
27637 2011-01-14  Richard Guenther  <rguenther@suse.de>
27639         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
27641 2011-01-14  Richard Guenther  <rguenther@suse.de>
27643         PR tree-optimization/47280
27644         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
27645         return CFG changes.
27646         (tree_ssa_forward_propagate_single_use_vars): Deal with
27647         CFG changes from associate_plusminus.
27649 2011-01-14  Richard Guenther  <rguenther@suse.de>
27651         PR middle-end/47281
27652         Revert
27653         2011-01-11  Richard Guenther  <rguenther@suse.de>
27655         PR tree-optimization/46076
27656         * tree-ssa.c (useless_type_conversion_p): Conversions from
27657         unprototyped to empty argument list function types are useless.
27659 2011-01-14  Richard Guenther  <rguenther@suse.de>
27661         PR tree-optimization/47286
27662         * tree-ssa-structalias.c (new_var_info): Register variables are global.
27664 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27666         PR middle-end/46823
27667         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
27669 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
27671         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
27672         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27673         * config/xtensa/xtensa.c (xtensa_libcall_value,
27674         xtensa_function_value_regno_p): New functions.
27675         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27677 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
27679         PR c++/47213
27680         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
27681         PE specific hook.
27682         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
27683         New function prototype.
27684         * config/i386/winnt.c (i386_pe_assemble_visibility):
27685         Warn only if attribute was specified by user.
27687 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
27689         PR target/47251
27690         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27691         floating point.
27692         (floatunsdidf2_fcfidu): Ditto.
27694 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27696         * config/s390/s390.c (print_operand_address): Replace 'error' with
27697         'output_operand_lossage'.
27698         (print_operand): Likewise.
27700 2011-01-13  Jeff Law  <law@redhat.com>
27702         PR rtl-optimization/39077
27703         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27704         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27705         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27706         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27707         * gcse.c (prune_insertions_deletions): New function.
27708         (compute_pre_data): Use it.
27710 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
27712         PR debug/PR46973
27713         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27714         static function.
27715         (prune_unused_types_mark): Use it.
27717 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
27719         PR rtl-optimization/45352
27720         * sel-sched.c: Update copyright years.
27721         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27722         in the advancing loop when we have issued issue_rate insns.
27724 2011-01-12  Richard Henderson  <rth@redhat.com>
27726         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27727         (TARGET_MD_ASM_CLOBBERS): New.
27729         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27730         (TARGET_DELEGITIMIZE_ADDRESS): New.
27732         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27733         (clzsi2, *bsch): New patterns.
27735         * config/mn10300/mn10300.md (INT): New mode iterator.
27736         (*mov<INT>_clr): New pattern, and peep2 to generate it.
27738         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27739         flag_split_wide_types.
27741         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27742         (mn10300_trampoline_init): Rewrite without a template, an immediate
27743         load and a direct branch.
27744         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27746 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
27748         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27749         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27750         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27751         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27753 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
27755         PR debug/47209
27756         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27757         of type.
27759 2011-01-12  Jan Hubicka  <jh@suse.cz>
27761         PR driver/47244
27762         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27763         (PLUGIN_COND_CLOSE): New macro.
27764         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27766 2011-01-12  Richard Guenther  <rguenther@suse.de>
27768         PR lto/47259
27769         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27770         register variables in a MEM_REF.
27772 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
27774         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27775         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27776         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27777         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27778         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27779         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27780         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27781         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27782         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27783         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27784         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27785         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27786         * config/gnu-user.h: New.  Copied from linux.h.
27787         (LINUX_TARGET_STARTFILE_SPEC): Rename to
27788         GNU_USER_TARGET_STARTFILE_SPEC.
27789         (LINUX_TARGET_ENDFILE_SPEC): Rename to
27790         GNU_USER_TARGET_ENDFILE_SPEC.
27791         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27792         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27793         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27794         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27795         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27796         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27797         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27798         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27799         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27800         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27801         * config/arm/linux-eabi.h (CC1_SPEC): Use
27802         GNU_USER_TARGET_CC1_SPEC.
27803         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27804         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27805         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27806         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27807         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27808         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27809         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27810         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27812 2011-01-12  Richard Guenther  <rguenther@suse.de>
27814         PR other/46946
27815         * doc/invoke.texi (ffast-math): Document it is turned on
27816         with -Ofast.
27818 2011-01-12  Jan Hubicka  <jh@suse.cz>
27820         PR tree-optimization/47233
27821         * opts.c (common_handle_option): Disable ipa-reference with profile
27822         feedback.
27824 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27826         * c-parser.c (c_parser_objc_at_property_declaration): Improved
27827         error message.
27829 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27831         * c-parser.c (c_lex_one_token): Updated and reindented some
27832         comments.  No changes in code.
27834 2011-01-11  Ian Lance Taylor  <iant@google.com>
27836         * godump.c (go_output_var): Don't output the variable if there is
27837         already a type with the same name.
27839 2011-01-11  Ian Lance Taylor  <iant@google.com>
27841         * godump.c (go_format_type): Don't generate float80.
27843 2011-01-11  Richard Henderson  <rth@redhat.com>
27845         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27846         declaration.  Rewrite for both speed and size.
27847         (mn10300_address_cost_1): Remove.
27848         (mn10300_register_move_cost): New.
27849         (mn10300_memory_move_cost): New.
27850         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
27851         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
27852         extensions, shifts, BSWAP, CLZ.
27853         (mn10300_wide_const_load_uses_clr): Remove.
27854         (TARGET_REGISTER_MOVE_COST): New.
27855         (TARGET_MEMORY_MOVE_COST): New.
27856         * config/mn10300/mn10300-protos.h: Update.
27857         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27859         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27860         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27861         * config/mn10300/mn10300-protos.h: Update.
27862         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27863         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27864         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27865         (*test_int_bitfield, *test_byte_bitfield): Remove.
27866         (*bit_test, *subreg_bit_test): Remove.
27867         * config/mn10300/predicates.md (const_8bit_operand): Remove.
27869         * config/mn10300/constraints.md ("c"): Rename from "A".
27870         ("A", "D"): New constraint letters.
27871         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27872         (fmssf4, fnmasf4, fnmssf4): Likewise.
27874         * config/mn10300/mn10300.md (isa): New attribute.
27875         (enabled): New attribute.
27877         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
27878         (abssf2, negsf2): Define only for hardware fp.
27879         (sqrtsf2): Reformat.
27880         (addsf3, subsf3, mulsf3): Merge expander and insn.
27882         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
27883         (DEBUGGER_AUTO_OFFSET): Remove.
27884         (DEBUGGER_ARG_OFFSET): Remove.
27886         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
27887         Emit register stores with the same offsets as the hardware.
27888         (mn10300_store_multiple_operation): Don't check that the register
27889         save offsets are monotonic.
27890         * config/mn10300/mn10300-protos.h: Update.
27892         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
27894         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
27895         in terms of the value on the stack, not the MDR register.
27897 2011-01-11  Jan Hubicka  <jh@suse.cz>
27899         PR lto/45721
27900         PR lto/45375
27901         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
27902         (symbol_alias_set_destroy, symbol_alias_set_contains,
27903         propagate_aliases_backward): Declare.
27904         * lto-streamer-out.c (struct sets): New sturcture.
27905         (trivally_defined_alias): New function.
27906         (output_alias_pair_p): Rewrite.
27907         (output_unreferenced_globals): Fix output of alias pairs.
27908         (produce_symtab): Likewise.
27909         * ipa.c (function_and_variable_visibility): Set weak alias destination
27910         as needed in lto.
27911         * varasm.c (symbol_alias_set_t): Remove.
27912         (symbol_alias_set_destroy): Export.
27913         (propagate_aliases_forward, propagate_aliases_backward): New functions
27914         based on ...
27915         (compute_visible_aliases): ... this one; remove.
27916         (trivially_visible_alias): New
27917         (trivially_defined_alias): New.
27918         (remove_unreachable_alias_pairs): Rewrite.
27919         (finish_aliases_1): Reorganize code checking if alias is defined.
27920         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
27921         in LTO mode.
27923 2011-01-11  Richard Guenther  <rguenther@suse.de>
27925         PR tree-optimization/46076
27926         * tree-ssa.c (useless_type_conversion_p): Conversions from
27927         unprototyped to empty argument list function types are useless.
27929 2011-01-11  Richard Guenther  <rguenther@suse.de>
27931         PR middle-end/45235
27932         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
27933         volatile MEMs as MEM_READONLY_P.
27935 2011-01-11  Richard Guenther  <rguenther@suse.de>
27937         PR tree-optimization/47239
27938         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
27940 2011-01-11  Jeff Law  <law@redhat.com>
27942         PR tree-optimization/47086
27943         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
27944         IVs from statements that might throw.
27946 2011-01-10  Jan Hubicka  <jh@suse.cz>
27948         PR lto/45375
27949         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
27951 2011-01-10  Jan Hubicka  <jh@suse.cz>
27953         PR lto/45375
27954         * profile.c (read_profile_edge_counts): Ignore profile inconistency
27955         when correcting profile.
27957 2011-01-10  Jan Hubicka  <jh@suse.cz>
27959         PR lto/46083
27960         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
27961         DECL_FINI_PRIORITY.
27962         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
27963         Restore DECL_FINI_PRIORITY.
27965 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27967         * doc/gimple.texi: Fix quoting of multi-word return values in
27968         @deftypefn statements.  Ensure presence of return value.  Wrap
27969         overlong @deftypefn lines.
27970         (is_gimple_operand, is_gimple_min_invariant_address): Remove
27971         descriptions of removed functions.
27972         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
27973         of multi-word return value in @deftypefn statement.
27975 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27977         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
27978         (Conditional Expressions, Logical Operators)
27979         (Statement and operand traversals): Do not indent smallexample
27980         code.  Fix duplicate function argument in example.
27982 2011-01-10  Jeff Law  <law@redhat.com>
27984         PR tree-optimization/47141
27985         * ipa-split.c (split_function): Handle case where we are
27986         returning a value and the return block has a virtual operand phi.
27988 2011-01-10  Jan Hubicka  <jh@suse.cz>
27990         PR tree-optimization/47234
27991         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
27992         (pass_feedback_split_functions): Declare.
27993         * passes.c (init_optimization_passes): Add ipa-split as subpass of
27994         tree-profile.
27995         * ipa-split.c (gate_split_functions): Update comments; disable
27996         split-functions for profile_arc_flag and branch_probabilities.
27997         (gate_feedback_split_functions): New function.
27998         (execute_feedback_split_functions): New function.
27999         (pass_feedback_split_functions): New global var.
28001 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
28003         PR lto/46760
28004         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
28005         calling gimple_call_set_cannot_inline.
28007 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
28009         * config/darwin-sections.def: Remove unused section.
28011 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
28013         PR c++/47218
28014         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
28016 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
28018         PR objc/47232
28019         * c-parser.c (c_parser_declaration_or_fndef): Improved
28020         error message.
28022 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
28024         * config/i386/winnt.c (i386_pe_start_function): Make sure
28025         to switch back to function's section.
28027 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
28029         PR gcc/46902
28030         PR testsuite/46912
28031         * plugin.c: Move include of dlfcn.h from here...
28032         * system.h: ... to here.
28034 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28036         * doc/cpp.texi (C++ Named Operators): Fix markup for header
28037         file name.
28038         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
28039         two extra empty pages in PDF output.
28041 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
28043         PR objc/47078
28044         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
28045         for error recovery purposes behave as if it was not specified so
28046         that the default type is usd.
28048 2011-01-07  Jan Hubicka  <jh@suse.cz>
28050         PR tree-optmization/46469
28051         * ipa.c (function_and_variable_visibility): Clear needed flags on
28052         nodes with external decls; handle weakrefs merging correctly.
28054 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
28056         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
28057         not false.
28059 2011-01-07  Jan Hubicka  <jh@suse.cz>
28061         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
28062         and no longer claim that gold is required for linker plugin.
28063         * configure: Regenerate.
28064         * gcc.c (PLUGIN_COND): New macro.
28065         (LINK_COMMAND_SPEC): Use it.
28066         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
28067         * config.in (HAVE_LTO_PLUGIN): New.
28068         * configure.ac (--with-lto-plugin): New parameter; autodetect
28069         HAVE_LTO_PLUGIN.
28071 2011-01-07  Jan Hubicka  <jh@suse.cz>
28073         PR tree-optimization/46367
28074         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
28075         when we can update original.
28076         (cgraph_mark_inline_edge): Sanity check.
28077         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
28079 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28081         * config/spu/spu.h (ASM_COMMENT_START): Define.
28083 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
28085         PR driver/42445
28086         * gcc.c (%>S): New.
28087         (SWITCH_KEEP_FOR_GCC): Likewise.
28088         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
28089         (do_spec_1): Handle "%>".
28091         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
28093 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
28095         PR target/47201
28096         * config/i386/i386.c (ix86_delegitimize_address): If
28097         simplify_gen_subreg fails, return orig_x.
28099         PR bootstrap/47187
28100         * value-prof.c (gimple_stringop_fixed_value): Handle
28101         lhs of the call properly.
28103 2011-01-07  Jan Hubicka  <jh@suse.cz>
28105         PR lto/45375
28106         * lto-opt.c (lto_reissue_options): Set flag_shlib.
28108 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28110         * target.def (function_switched_text_sections): New hook.
28111         * doc/tm.texi: Regenerated.
28112         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28113         * final.c (default_function_switched_text_sections): New.
28114         (final_scan_insn): Call function_switched_text_sections when a
28115         mid-function section change occurs.
28116         * output.h (default_function_switched_text_sections): Declare.
28117         * config/darwin-protos.h (darwin_function_switched_text_sections):
28118         Likewise.
28119         * config/darwin.c (darwin_function_switched_text_sections): New.
28120         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28122 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28124         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
28125         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
28126         the secondary code fragment when outputting for DWARF == 2.
28128 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
28130         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28131         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28132         Remove.
28133         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28134         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28136 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28138         PR debug/46704
28139         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28140         when it is not empty.
28142 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
28144         Bobcat Enablement
28145         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28146         (case ${target}): Add btver1.
28147         * config/i386/driver-i386.c (host_detect_local_cpu): Let
28148         -march=native recognize btver1 processors.
28149         * config/i386/i386-c.c (ix86_target_macros_internal): Add
28150         btver1 def_and_undef
28151         * config/i386/i386.c (struct processor_costs btver1_cost): New
28152         btver1 cost table.
28153         (m_BTVER1): New definition.
28154         (m_AMD_MULTIPLE): Includes m_BTVER1.
28155         (initial_ix86_tune_features): Add btver1 tune.
28156         (processor_target_table): Add btver1 entry.
28157         (static const char *const cpu_names): Add btver1 entry.
28158         (software_prefetching_beneficial_p): Add btver1.
28159         (ix86_option_override_internal): Add btver1 instruction sets.
28160         (ix86_issue_rate): Add btver1.
28161         (ix86_adjust_cost): Add btver1.
28162         * config/i386/i386.h (TARGET_BTVER1): New definition.
28163         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28164         (enum processor_type): Add PROCESSOR_BTVER1.
28165         * config/i386/i386.md (define_attr "cpu"): Add btver1.
28167 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28169         PR target/43309
28170         * config/i386/i386.c (legitimize_tls_address)
28171         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28172         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28173         (tls_initial_exec_64_sun): New pattern.
28175 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
28177         * doc/invoke.texi (Overall Options): Improve wording and markup
28178         of the description of -wrapper.
28180 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
28182         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
28183         rdynamic, threads): New Driver options.
28185 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28187         PR target/38118
28188         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
28189         if coming from .tdata.
28190         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
28192 2011-01-06  Jan Hubicka  <jh@suse.cz>
28194         PR lto/47188
28195         * collect2.c (main): Do not enable LTOmode when plugin is active.
28197 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28199         PR other/45915
28200         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
28201         --version output if supported.
28202         * configure: Regenerate.
28204 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
28206         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
28207         Driver options.
28209 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
28211         PR c/47150
28212         * c-convert.c (convert): When converting a complex expression
28213         other than COMPLEX_EXPR to a different complex type, ensure
28214         c_save_expr is called instead of save_expr, unless in_late_binary_op.
28215         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
28216         when converting COMPLEX_TYPE.
28218 2011-01-06  Ira Rosen  <irar@il.ibm.com>
28220         PR tree-optimization/47139
28221         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
28222         only the last reduction value is used outside the loop.  Update
28223         documentation.
28225 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
28227         * config/rtems.opt: New.
28228         * config.gcc (*-*-rtems*): Use rtems.opt.
28230 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
28232         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
28233         processors do not support 3DNow instructions.
28235 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28237         * config/spu/spu.c (spu_option_override): Set parameter
28238         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
28240 2011-01-05  Jan Hubicka  <jh@suse.cz>
28242         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
28243         at the command line.
28245 2011-01-05  Martin Jambor  <mjambor@suse.cz>
28247         PR lto/47162
28248         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
28249         deltas on streamed outgoing edges.
28250         (output_node_opt_summary): Output info for outgoing edges only when
28251         the node is in new parameter set.
28252         (output_cgraph_opt_summary): New parameter set, passed to the two
28253         aforementioned functions.  Update its forward declaration and its
28254         callee too.
28256 2011-01-05  Tom Tromey  <tromey@redhat.com>
28258         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
28259         operator to c_finish_omp_atomic.
28260         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
28261         (build_unary_op): Update.
28262         (build_modify_expr): Update.
28263         (build_asm_expr): Update.
28265 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28267         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
28268         newly inserted insns.
28269         (pad_bb): Likewise.
28270         (spu_emit_branch_hint): Likewise.
28271         (insert_hbrp_for_ilb_runout): Likewise.
28272         (spu_machine_dependent_reorg): Call df_finish_pass after
28273         schedule_insns returns.
28275 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28277         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
28279 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
28281         PR tree-optimization/47005
28282         * tree-sra.c (struct access): Add 'non_addressable' bit.
28283         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
28284         (decide_one_param_reduction): Return 0 if the parameter is passed by
28285         reference and one of the accesses in the group is non_addressable.
28287 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28289         PR tree-optimization/47056
28290         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
28291         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
28292         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
28294 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28296         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
28297         initializer.  Skip view conversions from aggregate types.
28299 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
28301         PR bootstrap/47055
28302         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
28304 2011-01-04  Philipp Thomas  <pth@suse.de>
28306         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
28307         obvious typo.
28309 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28311         * function.c (thread_prologue_and_epilogue_insns): Do not crash
28312         on empty epilogue sequences.
28314 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
28316         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
28317         non-static): New Driver options.
28319 2011-01-04  Jie Zhang  <jie@codesourcery.com>
28321         PR driver/47137
28322         * gcc.c (default_compilers[]): Set combinable field to 0
28323         for all assembly languages.
28325 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
28327         * config/mips/loongson3a.md: New file.
28328         * config/mips/mips.md: Include loongson3a.md.
28329         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
28330         TUNE_LOONGSON_3A.
28332 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
28334         PR middle-end/47017
28335         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
28336         instead of convert_memory_address_addr_space on the base expression.
28338 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28340         * config/spu/spu.c (spu_option_override): Update error text
28341         for bad -march= / -mtune= values.
28343 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28345         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
28346         if branch-hint optimization will be performed.
28348 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
28350         PR tree-optimization/47148
28351         * ipa-split.c (split_function): Convert arguments to
28352         DECL_ARG_TYPE if possible.
28354         PR tree-optimization/47155
28355         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
28356         when computing uns.
28358         PR rtl-optimization/47157
28359         * combine.c (try_combine): If undobuf.other_insn becomes
28360         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
28361         and set *new_direct_jump_p too.
28363 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
28365         PR tree-optimization/47021
28366         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
28368 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
28370         * gcc.c (process_command): Update copyright notice dates.
28371         * gcov.c (print_version): Likewise.
28372         * gcov-dump.c (print_version): Likewise.
28373         * mips-tfile.c (main): Likewise.
28374         * mips-tdump.c (main): Likewise.
28376 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28378         PR tree-optimization/46801
28379         * tree-sra.c (type_internals_preclude_sra_p): Check whether
28380         aggregate fields start at byte boundary instead of the bit-field flag.
28382 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
28384         PR driver/47137
28385         * gcc.c (main): Revert revision 168407.
28387 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28389         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
28391 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28393         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
28394         vector optab to expand vector/scalar shift, update gimple to vector.
28396 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28398         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
28399         a thunk.
28401 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28403         PR tree-optimization/46984
28404         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28405         HOST_WIDE_INT.
28406         (cgraph_create_indirect_edge): Fixed line length.
28407         (cgraph_indirect_call_info): Declare.
28408         (cgraph_make_edge_direct) Update declaration.
28409         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28410         (cgraph_create_indirect_edge): Use it.
28411         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
28412         callees.
28413         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28414         the new thunk_delta representation.
28415         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28416         HOST_WIDE_INT.
28417         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28418         (ipa_read_indirect_edge_info): Likewise.
28419         * lto-cgraph.c (output_edge_opt_summary): New function.
28420         (output_node_opt_summary): Call it on all outgoing edges.
28421         (input_edge_opt_summary): New function.
28422         (input_node_opt_summary): Call it on all outgoing edges.
28424 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
28426         PR driver/47137
28427         * gcc.c (main): Don't check have_o when settting combine_inputs.
28429 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
28431         * regrename.c: Add general comment describing the pass.
28432         (struct du_head): Remove 'length' field.
28433         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28434         (regrename_optimize): Do not sort chains.  Rework comments, add others.
28435         Force renaming to the preferred class (if any) in the first pass and do
28436         not consider registers that belong to it in the second pass.
28437         (create_new_chain): Do not set 'length' field.
28438         (scan_rtx_reg): Likewise.
28440 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
28442         PR tree-optimization/47140
28443         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28444         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28445         to bit_value_binop.
28447         PR rtl-optimization/47028
28448         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28449         parm_birth_insn instead of at the beginning of first bb.
28451 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
28453         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28454         Remove the word "see" before "@pxref".
28455         * doc/rtl.texi: Remove the word "see" before "@pxref".
28457 2011-01-01  Jan Hubicka  <jh@suse.cz>
28459         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28460         memory.
28462 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
28464         PR target/38662
28465         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28468 Copyright (C) 2011 Free Software Foundation, Inc.
28470 Copying and distribution of this file, with or without modification,
28471 are permitted in any medium without royalty provided the copyright
28472 notice and this notice are preserved.