2012-04-27 Paolo Bonzini <bonzini@gnu.org>
[official-gcc.git] / gcc / ChangeLog
blob22411c2f0c3eeb578e8e458bd0976aa7dc9ed274
1 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
3         * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs
4         whose arguments are -1 and 0, by negating the result of the
5         conditional.
7 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
9         PR target/53138
10         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
12 2012-04-27  Richard Guenther  <rguenther@suse.de>
14         * tree-flow.h (is_hidden_global_store): Remove.
15         * tree-ssa-sink.c (is_hidden_global_store): Likewise.
16         * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
17         (stmt_may_clobber_global_p): Likewise.
18         * tree-ssa-alias.c (ref_may_alias_global_p): New function.
19         (stmt_may_clobber_global_p): Likewise.
20         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
21         stmt_may_clobber_global_p.
22         * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
24 2012-04-27  Steven Bosscher  <steven@gcc.gnu.org>
26         * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
27         place.
29         * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
30         reorganize some fields and update comments.  Rename bit_test_uniq
31         and bit_test_count to uniq resp. count.  Remove bit_test_bb.
32         (collect_switch_conv_info): New function, collects info about a
33         GIMPLE_SWITCH into a struct switch_conv_info.
34         (check_range): Simplify to use pre-recorded info.  Fix think-o in
35         range-branch ratio check.
36         (check_process_case): Remove function.
37         (check_all_empty_except_final): New function, verifies that all
38         non-final basic blocks are empty.
39         (process_switch): Simplify to use pre-recorded info.  Call
40         collect_switch_conv_info to do that.  Assert that degenerate switch
41         statements have been cleaned up.
43 2012-04-27  Marc Glisse  <marc.glisse@inria.fr>
45         PR middle-end/27139
46         * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
48 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
50         PR c/53130
51         * c-typeck.c (pop_init_level): Use %qD instead of %qT.
53 2012-04-27  Tom de Vries  <tom@codesourcery.com>
55         PR tree-optimization/51879
56         * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
57         * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
58         of ...
59         (defs_to_varying): ... here.  Don't set use_processed.
60         (visit_reference_op_call): Handle gimple_vdef.
61         Handle case that lhs is NULL_TREE.
62         (visit_use): Use mark_use_processed.  Handle calls with side-effect
63         using visit_reference_op_call.
65 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
67         * sched-deps.c (fixup_sched_groups): Rename to...
68         (chain_to_prev_insn): ...this.
69         (chain_to_prev_insn_p): New function.
70         (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
72 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
74         * sched-int.h (_haifa_insn_data): Move priority_status.
75         Add model_index.
76         (INSN_MODEL_INDEX): New macro.
77         * haifa-sched.c (insn_delay): New function.
78         (sched_regno_pressure_class): Update commentary.
79         (mark_regno_birth_or_death): Pass the liveness bitmap and
80         pressure array as arguments, instead of using curr_reg_live and
81         curr_reg_pressure.  Only update the pressure if the bit in the
82         liveness set has changed.
83         (initiate_reg_pressure_info): Always trust the live-in set for
84         SCHED_PRESSURE_MODEL.
85         (initiate_bb_reg_pressure_info): Update call to
86         mark_regno_birth_or_death.
87         (dep_list_size): Take the list as argument.
88         (calculate_reg_deaths): New function, extracted from...
89         (setup_insn_reg_pressure_info): ...here.
90         (MODEL_BAR): New macro.
91         (model_pressure_data, model_insn_info, model_pressure_limit)
92         (model_pressure_group): New structures.
93         (model_schedule, model_worklist, model_insns, model_num_insns)
94         (model_curr_point, model_before_pressure, model_next_priority):
95         New variables.
96         (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
97         (MODEL_INSN_INFO, MODEL_INSN): New macros.
98         (model_index, model_update_limit_points_in_group): New functions.
99         (model_update_limit_points, model_last_use_except): Likewise.
100         (model_start_update_pressure, model_update_pressure): Likewise.
101         (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
102         (model_excess_cost, model_dump_pressure_points): Likewise.
103         (model_set_excess_costs): Likewise.
104         (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
105         SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
106         schedule as an alternative tie-breaker.  Update the call to
107         dep_list_size.
108         (ready_sort): Call model_set_excess_costs.
109         (update_register_pressure): Update call to mark_regno_birth_or_death.
110         Rely on that function to check liveness rather than doing it here.
111         (model_classify_pressure, model_order_p, model_add_to_worklist_at)
112         (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
113         (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
114         (model_record_pressure, model_record_pressures): New functions.
115         (model_record_final_pressures, model_add_successors_to_worklist)
116         (model_promote_predecessors, model_choose_insn): Likewise.
117         (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
118         (model_start_schedule, model_finalize_pressure_group): Likewise.
119         (model_end_schedule): Likewise.
120         (schedule_insn): Say when we're scheduling the next instruction
121         in the model schedule.
122         (schedule_insn): Handle SCHED_PRESSURE_MODEL.
123         (queue_to_ready): Do not add instructions that are
124         MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
125         Always allow the next instruction in the model schedule to be added.
126         (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
127         and delay for SCHED_PRESSURE_MODEL too.
128         (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
129         SCHED_PRIORITY_MODEL, but also take the DFA into account.
130         (schedule_block): Call model_start_schedule and model_end_schedule.
131         Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
132         (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
133         to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
134         region_ref_regs.
135         (sched_finish): Update accordingly.
136         (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
137         to SCHED_PRESSURE_MODEL.
138         (add_jump_dependencies): Update call to dep_list_size.
139         (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
140         (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
141         to SCHED_PRESSURE_MODEL.
142         * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
143         allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
144         (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
145         handling to SCHED_PRESSURE_MODEL.
147 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
149         * common.opt (fsched-pressure-algorithm=): New option.
150         * flag-types.h (sched_pressure_algorithm): New enum.
151         * sched-int.h (sched_pressure_p): Replace with...
152         (sched_pressure): ...this new variable.
153         * haifa-sched.c (sched_pressure_p): Replace with...
154         (sched_pressure): ...this new variable.
155         (sched_regno_pressure_class, rank_for_schedule, ready_sort)
156         (update_reg_and_insn_max_reg_pressure, schedule_insn)
157         (debug_ready_list, prune_ready_list, schedule_block, sched_init)
158         (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
159         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
160         (sched_analyze_insn): Likewise.
161         * sched-rgn.c (schedule_region): Likewise.
162         * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
164 2012-04-26  Bernd Schmidt  <bernds@codesourcery.com>
166         * PR middle-end/52997
167         * ira.c (find_moveable_pseudos): Call resize_reg_info.
169         PR middle-end/52940
170         * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
171         * expr.c (convert_move): Honor unsignedp when extending partial int
172         modes.
173         * genmodes.c (complete_mode): Don't clear component field of partial
174         int modes.
175         (emit_mode_inner): Don't emit it however.
176         (calc_wider_mode): Partial int modes widen to their component.
178 2012-04-26  David S. Miller  <davem@davemloft.net>
180         * config/sparc/niagara4.md: New file.
181         * config/sparc/sparc.md: Include it.
182         * config/sparc/sparc.c (niagara4_costs): New processor costs.
183         (sparc_option_override): Use it.
184         (sparc_use_sched_lookahead): Return 2 for niagara4.
185         (sparc_issue_rate): Likewise.
187         * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
188         (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
189         (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
190         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to
191         fgm_mul.
192         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
193         alignaddrldi_vis): Set type to gsr.
194         (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
195         (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
196         cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
197         v<vis3_shift_patname><mode>3, fmean16_vis,
198         fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
199         fucmp<code>8<P:mode>_vis): Set type to fga.
200         * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
201         * config/sparc/niagara.md: Likewise.
202         * config/sparc/niagara2.md: Likewise.
203         * config/sparc/ultra3.md: Likewise, and fix type matching for
204         us3_ialuX reservation.
206 2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
208         * reload.c (find_reloads): Change the loop nesting when trying an
209         alternative with swapped operands.
211 2012-04-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
213         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
214         comment. Delete unused parameter first_exp_point_map.
215         (virt_loc_aware_diagnostic_finalizer): Update call.
217 2012-04-26  Michael Hope  <michael.hope@linaro.org>
218             Richard Earnshaw  <rearnsha@arm.com>
220         * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
221         (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
222         (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
223         (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
225 2012-04-25  Sriraman Tallam  <tmsriram@google.com>
227         * doc/extend.texi: Document avx2 support.
228         * config/i386/i386.c (fold_builtin_cpu): Add avx2.
230 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
232         PR target/53120
233         * config/cris/cris.md ("*andhi_lowpart_v32")
234         ("*andqi_lowpart_v32"): Change first input-only operand from
235         a (match_operand ...) to (match_dup 0).  Drop alternatives with
236         const_int-matching constraints for redundancy.
237         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
238         three-operand alternative.
240 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
242         PR target/53110
243         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
244         instead expand it as zero extension.
246 2012-04-25  H.J. Lu  <hongjiu.lu@intel.com>
248         PR debug/52857
249         * dwarf2out.c (dbx_reg_number): Assert return value !=
250         INVALID_REGNUM.
252 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
254         * common.opt (flag_debug_types_section): Default to 0.
255         (dwarf_version): Default to 4.
256         (dwarf_record_gcc_switches): Default to 1.
257         (dwarf_strict): Default to 0.
258         * toplev.c (process_options): Don't handle dwarf_strict
259         or dwarf_version here.
260         * config/vxworks.c (vxworks_override_options): Don't
261         test whether dwarf_strict or dwarf_version are negative,
262         instead test !global_options_set.x_dwarf_*.
263         * config/darwin.c (darwin_override_options): Default to
264         dwarf_version 2.
265         * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
266         and -fno-debug-types-section are now the default.
268 2012-04-25  Jan Hubicka  <jh@suse.cz>
270         * cgraphunit.c: Update toplevel comment.
271         (tree_rest_of_compilation): Merge into cgraph_expand_function.
272         (cgraph_analyze_function): Make static.
273         (cgraph_decide_is_function_needed): Make static.
274         (cgraph_add_new_function): Use expand_function instead of
275         rest_of_compilation.
276         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
277         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
278         Move to cgraph.c
279         (cgraph_inline_p): Remove.
280         (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
281         (init_cgraph): Add comment.
282         * cgraphbuild.c (record_reference, mark_address, mark_load,
283         mark_store): Do not call analyze_expr hook.
284         * cgraph.c: Update toplevel comment.
285         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
286         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
287         Move fere from cgraphunit.c
288         (cgraph_mark_force_output_node): Move to cgraph.h
289         * cgraph.h: Reorder so the comments match the function placement.
290         (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
291         (cgraph_mark_force_output_node): Move here from cgraph.c
292         * tree.c (free_lang_data): Do not clear analyze_expr hook.
293         * ipa-inline-transform.c (preserve_function_body_p): New function.
294         (inline_transform): Update.
295         * langhooks.c (lhd_callgraph_analyze_expr): Remove.
296         * langhooks.h (lang_hooks_for_callgraph): Remove.
297         (lang_hooks): Remove callgraph.
298         * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
299         * varpool.c: Remove out of date comment.
300         * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
301         (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
303 2012-04-25  Jan Hubicka  <jh@suse.cz>
305         PR middle-end/53089 
306         * cgraphunit.c (referred_to_p): Move ahead in file to avoid forward declaration.
307         (cgraph_finalize_function): Finalize them here.
308         * symtab.c (dump_symtab): Dump ctors and dtors.
310 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
312         PR middle-end/52979
313         * stor-layout.c (get_best_mode): Don't return mode with bitsize
314         larger than maxbits.  Don't compute maxbits modulo align.
315         Also check that unit bytes long store at bitpos / unit * unit
316         doesn't affect bits beyond bitregion_end.
317         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
318         would not fit into bitregion_start ... bitregion_end + 1 bit
319         region.
320         (store_split_bit_field): Decrease unit close to end of bitregion_end
321         if access is restricted in order to avoid mutual recursion.
323         PR tree-optimization/53058
324         * double-int.h (double_int_max_value, double_int_min_value): New
325         prototypes.
326         * double-int.c (double_int_max_value, double_int_min_value): New
327         functions.
328         * tree-vrp.c (register_edge_assert_for_2): Compare mask
329         for LE_EXPR or GT_EXPR with double_int_max_value
330         instead of double_int_mask.
332 2012-04-25  Richard Guenther  <rguenther@suse.de>
334         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
335         * tree-vect-loop.c (vect_transform_loop): Adjust.
336         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
337         the maximum number of iterations for the epilogue loop.
338         (vect_loop_versioning): Remove case re-using the peeled
339         epilogue loop.
341 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
343         PR c/52880
344         * c-typeck.c (set_nonincremental_init,
345         set_nonincremental_init_from_string): Pass true instead of false
346         as IMPLICIT to add_pending_init.
348 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
350         * c-typeck.c (pop_init_level): Improve diagnostics.
352 2012-04-25  Uros Bizjak  <ubizjak@gmail.com>
354         * compare-elim.c (try_eliminate_compare): Also handle operands with
355         implicit extensions.
357 2012-04-25  Alan Modra  <amodra@gmail.com>
359         * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
360         V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
361         SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
362         (no_global_regs_above): Delete.
363         (no_global_regs): New function.
364         (rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
365         value for load multiple test.
366         (savres_routine_syms): Increase size.
367         (rs6000_savres_routine_name, rs6000_savres_routine_sym,
368         ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
369         rather than a number of boolean flags.  Update all callers.
370         (rs6000_savres_routine_name): Generate vector save/restore names.
371         (rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
372         (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
373         (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
374         and using_store_multiple.  Expand uses.  Don't always use r11 as
375         frame reg when needed for out-of-line saves.  Set up initial offset
376         for out-of-line vector saves when buying stack frame.  Handle pointer
377         reg setup for out-of-line fp save.  Emit call to out-of-line vector
378         save function.  Choose r11 or r12 for vrsave reg when available for
379         better scheduling.
380         (rs6000_output_function_prologue): Don't emit .extern for ELF.
381         (rs6000_emit_epilogue): Choose a better frame reg when restoring
382         from back-chain to suit out-of-line vector restore functions.  Emit
383         call to out-of-line vector restore function.  Adjust register used
384         for cr restore.  Tweak pointer register setup for gpr restore.
385         * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
386         FIXED_R13.
387         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
388         (V_SAVE_INLINE): Define.
389         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
391 2012-04-25  Alan Modra  <amodra@gmail.com>
393         * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
394         out-of-line save/restore for large frames.  Don't disable
395         out-of-line saves on ABI_AIX when using static chain reg.
396         (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
397         clobber static chain reg, and tweak for out-of-line gpr saves
398         that use r1.
400 2012-04-25  Alan Modra  <amodra@gmail.com>
402         * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
403         (rs6000_emit_prologue): Use the above to catch register overlap.
405 2012-04-25  Alan Modra  <amodra@gmail.com>
407         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
408         decl.  Move logic selecting update reg to callers.  Update all callers.
409         (rs6000_emit_allocate_stack): Add copy_off param.
410         (emit_frame_save): Don't handle reg+reg addressing.
411         (ptr_regno_for_savres): New function, extracted from..
412         (rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
413         (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
414         Set frame_reg_rtx to r11 whenever r11 is needed, and merge
415         frame offset adjustment for out-of-line save with copy from sp.
416         Simplify condition controlling whether cr is saved early or
417         late.  Use ptr_regno_for_savres to verify correct reg is set
418         up for out-of-line saves.  Pass the actual pointer reg used to
419         rs6000_emit_savres_rtx so rtl matches insns in out-of-line
420         function.  Rearrange spe vars so code is similar to that
421         elsewhere in this function.  Don't update frame_off when spe
422         save code will restore r11.  Use emit_frame_save for spe and
423         gpr saves.  Consolidate darwin out-of-line gpr setup with that
424         for other abis.  Don't assume frame_offset is zero and frame
425         reg is sp when setting up altivec reg saves, and calculate
426         exact offset requirement.
427         (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
428         spe restore code.  Consolidate darwin out-of-line gpr setup
429         with that for other abis.
431 2012-04-25  Alan Modra  <amodra@gmail.com>
433         * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
434         REG_FRAME_RELATED_EXPR note when the instruction exactly matches
435         the replacement.
436         (emit_frame_save): Delete frame_ptr param.  Rename total_size to
437         frame_reg_to_sp.
438         (rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
439         and emit_frame_save calls.  Cope with possibly missing note.
441 2012-04-24  Sriraman Tallam  <tmsriram@google.com>
443         * config/i386/i386.c (build_processor_model_struct): New function.
444         (make_var_decl): New function.
445         (fold_builtin_cpu): New function.
446         (ix86_fold_builtin): New function.
447         (make_cpu_type_builtin): New function.
448         (ix86_init_platform_type_builtins): New function.
449         (ix86_expand_builtin): Expand new builtins by folding them.
450         (ix86_init_builtins): Make new builtins to detect CPU type.
451         (TARGET_FOLD_BUILTIN): New macro.
452         (IX86_BUILTIN_CPU_INIT): New enum value.
453         (IX86_BUILTIN_CPU_IS): New enum value.
454         (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
455         * config/i386/i386-builtin-types.def: New function type.
456         * testsuite/gcc.target/builtin_target.c: New testcase.
457         * doc/extend.texi: Document builtins.
459 2012-04-24  Olivier Hainque  <hainque@adacore.com>
461         * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
462         * toplev.c (process_options): Default to dwarf_version 2.
463         * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
464         and dwarf_version 2.
466 2012-04-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
468         * tree-pretty-print.h (default_tree_printer): Do not declare.
469         * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
470         intl.h.
471         (default_tree_diagnostic_starter): Make static.
472         (default_tree_printer): Move to here. Make static.
473         (tree_diagnostics_defaults): New.
474         * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
475         * tree.c (free_lang_data): Use tree_diagnostics_defaults.
476         * toplev.c: Do not include tree-pass.h.
477         (default_tree_printer): Move from here.
478         (general_init): Use tree_diagnostics_defaults.
480 2012-04-24  Chao-ying Fu  <fu@mips.com>
482         * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
483         (mips*-*-linux*): Append mips/linux-common.h to tm_file.
484         * config/mips/gnu-user.h
485         (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
486         (GNU_USER_TARGET_LINK_SPEC): New define.
487         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
488         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
489         (GNU_USER_TARGET_MATHFILE_SPEC): New define.
490         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
491         GNU_USER_TARGET_ENDFILE_SPEC.
492         * config/mips/gnu-user64.h (LIB_SPEC): Remove.
493         (GNU_USER_TARGET_LINK_SPEC): New define.
494         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
495         * config/mips/linux-common.h: New file.
497 2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
499         PR target/47197
500         * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
501         (altivec_build_resolved_builtin): Call fully_fold_convert.
503 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
505         PR target/53065
506         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
508 2012-04-24  Richard Guenther  <rguenther@suse.de>
510         PR tree-optimization/53085
511         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
512         stores.
514 2012-04-24  Richard Guenther  <rguenther@suse.de>
516         * tree-if-conv.c (main_tree_if_conversion): Move bb under
517         ENABLE_CHECKING.
519 2012-04-24  Jim Meyering  <meyering@redhat.com>
521         * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
522         absence of an define_enum call.
524 2012-04-24  Richard Guenther  <rguenther@suse.de>
526         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
527         the epilogue loop is not re-used as unvectorized version
528         record the its maximum number of iterations.
530 2012-04-24  Andrew Pinski  <apinski@cavium.com>
532         * tree-ssa-forwprop.c (simplify_bitwise_binary):
533         Don't directly use def1/def2.
535 2012-04-24  Richard Guenther  <rguenther@suse.de>
537         PR tree-optimization/53098
538         * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
539         comparison sign.
541 2012-04-24  Andrew Pinski  <apinski@cavium.com>
543         PR tree-opt/33512
544         * tree-ssa-forwprop.c (defcodefor_name): New function.
545         (simplify_bitwise_binary): Use defcodefor_name instead of manually
546         Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
547         Simplify "(~X | Y) & X" to "X & Y" and
548         "(~X & Y) | X" to "X | Y".
550 2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
552         * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
553         validate_change to add clobbers if IN_GROUP is nonzero.
554         (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
555         * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
556         prototype.
557         * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
558         set to false.
559         * config/s390/s390.c (insn_invalid_p): Likewise.
561 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
563         PR middle-end/53084
564         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
565         (output_addressed_constants): Likewise.
567         PR middle-end/52999
568         * varasm.c (get_section): Don't ICE for section conflicts with
569         built-in section kinds.
571 2012-04-23  DJ Delorie  <dj@redhat.com>
573         * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
574         (LIBSTDCXX): Change to CPP2.
576 2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
578         PR bootstrap/52878
579         * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
580         extra_masks.
582 2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
584         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
585         (*addsi_2_zext): Ditto.
586         (*add<mode>_3): Ditto.
587         (*addsi_3_zext): Ditto.
588         (*add<mode>_5): Ditto.
590 2012-04-23  Andrew Pinski  <apinski@cavium.com>
592         * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
593         (C & B) to (A OP0) & B.
595 2012-04-23  Martin Jambor  <mjambor@suse.cz>
597         * expr.c (expand_expr_real_1): Remove setting parent's alias set for
598         temporaries created for a bitfield (reverting revision 122014).
600 2012-04-23  Richard Guenther  <rguenther@suse.de>
602         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
603         the condition using is_gimple_condexpr and avoid the not necessary
604         boolification.
605         (set_prologue_iterations): Likewise.
606         (vect_loop_versioning): Likewise.
608 2012-04-23  Richard Guenther  <rguenther@suse.de>
610         PR tree-optimization/53070
611         * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
612         (main_tree_if_conversion): Verify we succeeded in that.
614 2012-04-23  Jan Hubicka  <jh@suse.cz>
616         * lto-symtab.c (lto_cgraph_replace_node): Do not call
617         mark_reahcable_node.
618         * cgraph.c (cgraph_remove_node): Do not clear reachable.
619         (cgraph_mark_reachable_node): Remove.
620         (cgraph_mark_force_output_node): Do not set reachable.
621         (dump_cgraph_node): Do not dump reachable.
622         (cgraph_create_virtual_clone): Do not set reachable.
623         * cgraph.h (cgraph_node): Remove reachable flag.
624         (varpool_node): Remove reachable flag.
625         (cgraph_mark_if_needed): Remove.
626         (cgraph_mark_reachable_node): Remove.
627         * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
628         * cgraphunit.c (cgraph_finalize_function): Do not mark node as
629         reachable.
630         (cgraph_add_new_function): Likewise.
631         (cgraph_mark_if_needed): Remove.
632         (cgraph_analyze_function): Do not set target as reachable.
633         (process_function_and_variable_attributes): Do not care about
634         dllexport.
635         (cgraph_analyze_functions): Do not set reachable flags.
636         (cgraph_mark_functions_to_output): Do not check reachability.
637         (cgraph_copy_node_for_versioning): Do not set reachable flag.
638         (dbxout_expand_expr): Update.
639         * c-decl.c (merge_decls): Do not track changed externs.
640         * ipa.c: Include pointer-set.h
641         (enqueue_cgraph_node): Use reachable pointer set.
642         (process_references): Likewise.
643         (cgraph_remove_unreachable_nodes): Likewise.
644         (whole_program_function_and_variable_visibility): Do not recompute
645         reachable.
646         * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
648 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
650         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
652 2012-04-23  Richard Guenther  <rguenther@suse.de>
654         PR c/53060
655         * c-typeck.c (build_binary_op): Fix typo.
657 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
659         PR tree-optimizations/52891
660         * tree-vect-patterns.c (adjust_bool_pattern): Use
661         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
662         but with non-standard precision.
664 2012-04-22  Jan Hubicka  <jh@suse.cz>
666         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
667         tree refs.
669 2012-04-22  Jan Hubicka  <jh@suse.cz>
671         * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
672         * cgraphbuild.c (record_reference, record_type_list, mark_address,
673         mark_load, mark_store): Do not mark varpool nodes as needed.
674         * cgraph.c (cgraph_new_nodes): Remove.
675         (cgraph_create_function_alias): Do not mark nodes as reachable.
676         (cgraph_add_thunk): Likewise.
677         (cgraph_mark_reachable_node): Do not manage the queue.
678         * cgraph.h (cgraph_node): Remove next_needed.
679         (varpool_nodes_queue): Remove next_needed and prev_needed.
680         (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
681         (cgraph_new_nodes): Declare.
682         (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
683         (varpool_analyze_pending_decls): Remove.
684         (varpool_analyze_node): New.
685         (varpool_mark_needed_node): Remove.
686         (varpool_first_variable, varpool_next_variable): New inlines.
687         (varpool_first_static_initializer, varpool_next_static_initializer):
688         Update.
689         (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
690         (varpool_first_defined_variable): New inline.
691         (varpool_next_defined_variable): New inline
692         (FOR_EACH_VARIABLE): Reimplement.
693         (FOR_EACH_DEFINED_VARIABLE): Reimplement.
694         * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
695         needed flag.
696         * cgraphunit.c (cgraph_new_nodes): Declare here.
697         (enqueue_node): New function.
698         (cgraph_process_new_functions): update for new
699         node set; when constructing cgraph enqueue node for processing.
700         (cgraph_add_new_function): Use new node set.
701         (process_function_and_variable_attributes): Do not set varpool needed
702         flags.
703         (referred_to_p): New function.
704         (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
705         when varpool is in construction.
706         (cgraph_analyze_functions): Rewrite.
707         (cgraph_expand_all_functions): Update.
708         (cgraph_output_in_order): Do not analyze pending decls; do not set
709         needed flags.
710         (cgraph_optimize): Do not analyze pending decls.
711         * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
712         in other partition; do not mark node as needed.
713         * dwarf2out.c (reference_to_unused): Use analyzed flag.
714         (premark_types_used_by_global_vars_helper): Likewise.
715         * ipa.c (process_references): Do not call varpool_mark_needed_node.
716         (cgraph_remove_unreachable_nodes): Do not rely on varpool and
717         cgrpah queues.
718         (function_and_variable_visibility): Do not mark node as needed.
719         (whole_program_function_and_variable_visibility): Likewise.
720         * Makefile.in (gt-varpool.h): No longer needed.
721         * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
722         (ipa_write_summaries): Do not use needed flag.
723         * varpool.c: Do not include gt-varpool.h
724         (x_varpool_nodes_queue, x_varpool_last_needed_node,
725         x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
726         x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
727         Remove.
728         (varpool_remove_node): Do not update the lists.
729         (dump_varpool_node): Do not dump needed flag.
730         (varpool_enqueue_needed_node): Remove.
731         (varpool_mark_needed_node): Remove.
732         (varpool_reset_queue): Remove.
733         (varpool_finalize_decl): Move to cgraphunit.c
734         (varpool_analyze_node): New functions based on former
735         varpool_analyze_pending_decls.
736         (varpool_analyze_pending_decls): Remove.
737         (varpool_assemble_decl): Do not update the lists.
738         (enqueue_node): New function.
739         (varpool_remove_unreferenced_decls): Rewrite.
740         (varpool_empty_needed_queue): Remove.
741         (add_new_static_var): Do not mark node as needed.
742         (varpool_create_variable_alias): Handle expansion state
743         creation.
744         * except.c (output_ttype): Do not mark node as needed.
745         * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
746         * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
747         Likewise.
748         * tree-switch-conversion.c (build_one_array): Likewise.
750 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
752         PR c/44774
753         * doc/invoke.texi (pedantic): Rename to Wpedantic.
754         * common.opt (Wpedantic): New.
755         (pedantic): Alias Wpedantic.
756         * diagnostic.c (warning_at): Likewise.
757         * c-decl.c (diagnose_mismatched_decls): Likewise.
758         (build_array_declarator): Likewise.
759         (mark_forward_parm_decls):
760         (check_bitfield_type_and_width): Likewise.
761         (grokdeclarator): Likewise.
762         (grokfield): Likewise.
763         (finish_struct): Likewise.
764         (build_enumerator): Likewise.
765         (store_parm_decls_oldstyle): Likewise.
766         (declspecs_add_qual): Likewise.
767         (declspecs_add_type): Likewise.
768         (finish_declspecs): Likewise.
769         * c-typeck.c (composite_type): Likewise.
770         (comp_target_types): Likewise.
771         (build_array_ref): Likewise.
772         (pointer_diff): Likewise.
773         (build_unary_op): Likewise.
774         (build_conditional_expr): Likewise.
775         (build_c_cast): Likewise.
776         (convert_for_assignment): Likewise.
777         (maybe_warn_string_init): Likewise.
778         (digest_init): Likewise.
779         (pop_init_level): Likewise.
780         (set_init_index): Likewise.
781         (c_finish_goto_label): Likewise.
782         (c_finish_return): Likewise.
783         (do_case): Likewise.
784         (build_binary_op): Likewise.
785         * c-parser.c (static): Likewise.
786         (c_parser_external_declaration): Likewise.
787         (c_parser_declaration_or_fndef): Likewise.
788         (c_parser_static_assert_declaration_no_se): Likewise.
789         (c_parser_enum_specifier): Likewise.
790         (c_parser_struct_or_union_specifier): Likewise.
791         (c_parser_struct_declaration): Likewise.
792         (c_parser_alignas_specifier): Likewise.
793         (c_parser_braced_init): Likewise.
794         (c_parser_initelt): Likewise.
795         (c_parser_compound_statement_nostart): Likewise.
796         (c_parser_conditional_expression): Likewise.
797         (c_parser_alignof_expression): Likewise.
798         (c_parser_postfix_expression): Likewise.
799         (c_parser_postfix_expression_after_paren_): Likewise.
800         (c_parser_objc_class_instance_variables): Likewise.
801         (c_parser_objc_method_definition): Likewise.
802         (c_parser_objc_methodprotolist): Likewise.
804 2012-04-22  Ian Lance Taylor  <iant@google.com>
806         * godump.c (go_output_typedef): Dump size of structs.
808 2012-04-22  Razya Ladelsky  <razya@il.ibm.com>
810         Correcting transform_to_exit_first_loop + fix to PR46886
811         * tree-parloops.c (transform_to_exit_first_loop): Remove
812         setting of number of iterations according to the loop pattern.
813         Duplicate from entry to exit->src instead of loop->latch.
814         (pallelize_loops): Remove the condition preventing do-while loops.
815         * tree-cfg.c (bool bb_in_region_p): New.
816         (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
817         Adjust redirection of the duplicated iteration.
819 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
821         PR bootstrap/53021
822         * rtl.def (ADDRESS): Use "i" rather than "w".
823         * rtl.h (find_base_term): Delete.
824         (may_be_sp_based_p): Declare.
825         * rtl.c (rtx_code_size): Remove ADDRESS special case.
826         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
827         (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
828         * alias.c: ...here.
829         (find_base_term): Make static.
830         (may_be_sp_based_p): New function.
831         * dse.c (record_store): Use it.
832         * store-motion.c (store_killed_in_insn): Likewise.
834 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
836         * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
838 2012-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
840         PR 35441
841         * c-typeck.c (inform_declaration): New.
842         (build_function_call_vec):  Do not pretty-print
843         expressions when caret is enabled.
844         (convert_arguments): Use inform_declaration.
846 2012-04-20  Jim Meyering  <meyering@redhat.com>
848         * genmodes.c (make_complex_modes): Don't truncate a mode name of
849         length 7 or more when prepending a "C".  Suggested by Richard Guenther.
851 2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
853         PR rtl-optimization/44214
854         * fold-const.c (exact_inverse): New function.
855         (fold_binary_loc): Fold vector and complex division by constant into
856         multiply by recripocal with flag_reciprocal_math; fold vector division
857         by constant into multiply by reciprocal with exact inverse.
859 2012-04-20  Jan Hubicka  <jh@suse.cz>
861         * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
862         force flags.
863         * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
864         (cgraph_remove_node): Update.
865         (cgraph_mark_needed_node): Remove.
866         (cgraph_mark_force_output_node): New.
867         (dump_cgraph_node): Do not dump needed flag.
868         (cgraph_node_cannot_be_local_p_1): Update.
869         (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
870         * cgraph.h (symtab_node_base): Add force_output flag.
871         (cgraph_node): Remove needed flag.
872         (varpool_node): Remove force_output flag.
873         (cgraph_mark_needed_node): Remove.
874         (cgraph_mark_force_output_node): New.
875         (cgraph_only_called_directly_or_aliased_p,
876         varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
877         * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
878         * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
879         (cgraph_add_new_function): Update.
880         (cgraph_mark_if_needed): Update.
881         (verify_cgraph_node): Update.
882         (cgraph_analyze_function): Alias target is reachable.
883         (process_function_and_variable_attributes): Update: externally_visible
884         flag makes function reachable.
885         (cgraph_analyze_functions): Update dumping.
886         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
887         input_overwrite_node, input_varpool_node): Update streaming.
888         * lto-streamer-out.c (produce_symtab): Use force_output.
889         * ipa.c (process_references): Weakrefs must be processed.
890         (cgraph_remove_unreachable_nodes): Likewise; update for new
891         force_output flag.
892         (varpool_externally_visible_p): Weakrefs are externally visible
893         even if they are not.
894         (function_and_variable_visibility): Update; when processing alias
895         pair force the targets to be output.
896         (whole_program_function_and_variable_visility): Use
897         mark_reachable_node.
898         * trans-mem.c (ipa_tm_mark_needed_node): Remove
899         (ipa_tm_mark_force_output_node): New function.
900         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
901         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
902         aliases.
903         * varasm.c (mark_decl_referenced): Update.
904         (find_decl_and_mark_needed): Remove.
905         (find_decl): New function.
906         (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
907         alias targets as needed.
908         (dump_tm_clone_pairs): Update.
909         * tree-inline.c (copy_bb): Update check.
910         * symtab.c (dump_symtab_base): Dump force_output.
911         * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
912         * passes.c (execute_todo): Fix dumping.
913         * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
914         (varpool_analyze_pending_decls): Alias target is reachable.
915         (varpool_create_variable_alias): Finalize weakrefs.
917 2012-04-20  Jakub Jelinek  <jakub@redhat.com>
919         PR bootstrap/53021
920         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
921         UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
922         * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
923         macros instead of constants.
924         * dse.c (record_store): Check for SP ADDRESS by comparing
925         XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
926         XEXP to be stack_pointer_rtx.
928 2012-04-20  Richard Guenther  <rguenther@suse.de>
930         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
931         update_call_from_tree when propagating into a call.
933 2012-04-20  Alan Modra  <amodra@gmail.com>
935         * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
936         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
937         sp_offset to frame_off.  Move world save code earlier.
939 2012-04-20  Richard Guenther  <rguenther@suse.de>
941         PR tree-optimization/53050
942         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
943         Do only one transform on COND_EXPRs at the same time.
945 2012-04-19  Jan Hubicka  <jh@suse.cz>
947         * symtab.c (dump_symtab_base): Revert accidental checkin.
949 2012-04-20  Alan Modra  <amodra@gmail.com>
951         PR target/53040
952         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
953         static chain, set REST_INLINE_FPRS too.
955 2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>
957         * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
958         nodes.
960 2012-04-20  Richard Guenther  <rguenther@suse.de>
962         * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
963         loops that can never run more often than the vectorization factor.
965 2012-04-19  Jan Hubicka  <jh@suse.cz>
967         * symtab.c (dump_symtab_base): Fix dumping of asm lists.
969 2012-04-19  David Edelsohn  <dje.gcc@gmail.com>
971         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
973 2012-04-19  Jim Meyering  <meyering@redhat.com>
975         * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
976         We verified above that the string(including trailing NUL) fits in buf,
977         so just use memcpy.
979 2012-04-19  Richard Guenther  <rguenther@suse.de>
981         * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
982         for dumping DECL_SECTION_NAME.
984 2012-04-19  Michael Matz  <matz@suse.de>
986         PR middle-end/52977
987         * tree.h (VECTOR_CST_NELTS): Use part number of types again.
988         (struct tree_vector): Adjust GTY length.
989         * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
991         * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
992         members.
993         (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
994         caller emitted the length calulation already.
995         (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
996         before handling any of the fields for structs.
998 2012-04-19  Richard Guenther  <rguenther@suse.de>
1000         PR tree-optimization/53031
1001         * tree-vrp.c (adjust_range_with_scev): Revert back to
1002         using max_loop_iterations.
1004 2012-04-19  Michael Matz  <matz@suse.de>
1006         * diagnostic.c (emit_diagnostic): Move va_end call after user
1007         of the va_list.
1008         (warning, warning_at, pedwarn, permerror): Ditto.
1010 2012-04-19  Richard Guenther  <rguenther@suse.de>
1012         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
1013         array access.
1015 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
1017         PR target/53033
1018         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
1019         the case *(X+const).
1021 2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1023         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
1025 2012-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1027         PR c/52283/37985
1028         * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
1029         * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
1031 2012-04-19  Richard Guenther  <rguenther@suse.de>
1033         PR rtl-optimization/44688
1034         * loop-iv.c (determine_max_iter): Only return max_iter.
1035         (iv_number_of_iterations): Also use the recorded loop bound
1036         on the maximum number of iterations.
1037         * loop-unroll.c (decide_unroll_runtime_iterations): Use
1038         max_iter to avoid unrolling loops that do not roll.
1039         (decide_unroll_stupid): Likewise.
1041 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1043         * targhooks.c (default_case_values_threshold): Fix code style nit.
1045         * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
1046         case range and type folding from here...
1047         * gimplify.c (gimplify_switch_expr): ... to here.  Expect NULL_TREE
1048         type, as documented in tree.def.
1050 2012-04-18  Jan Hubicka  <jh@suse.cz>
1052         * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
1053         Declare.
1054         * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
1055         cgraph hash and same comdat groups.
1056         (cgraph_optimize): Verify symbol table.
1057         * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
1058         (dissolve_same_comdat_group_list): Work on symtab nodes.
1059         (function_and_variable_visibility): Dissolve variable same comdat group
1060         lists, too.
1061         * symtab.c: Include timevar.h
1062         (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
1064 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1066         * tree-switch-conversion.c (info): Remove global pass info.
1067         (check_range, check_process_case, check_final_bb, create_temp_arrays,
1068         free_temp_arrays, gather_default_values, build_constructors,
1069         array_value_type, build_one_array, build_arrays, gen_def_assigns,
1070         fix_phi_nodes, gen_inbound_check): Pass info around from ...
1071         (process_switch): ... here.  Unify message format.  Return a const
1072         char pointer to the failure reason message.
1073         (do_switchconv): Unify message format.  Update process_switch usage.
1075         * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
1076         * tree-cfg.c (edge_to_cases): Fix documentation.
1078 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
1080         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
1082 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1084         PR tree-optimization/52976
1085         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
1086         (possibly_move_powi): New function.
1087         (rewrite_expr_tree): Call possibly_move_powi.
1088         (rewrite_expr_tree_parallel): Likewise.
1089         (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
1090         call add_to_ops_vec instead.
1092 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1094         PR tree-optimization/52976
1095         * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
1096         (decrement_power): Likewise.
1097         (propagate_op_to_single_use): Likewise.
1098         (zero_one_operation): Handle __builtin_pow* calls in linearized
1099         expression trees; factor logic into propagate_op_to_single_use.
1100         (undistribute_ops_list): Allow operands with repeat counts > 1.
1102 2012-04-18  Richard Guenther  <rguenther@suse.de>
1104         PR tree-optimization/44688
1105         * cfgloop.h (record_niter_bound): Declare.
1106         * tree-ssa-loop-niter.c (record_niter_bound): Export.
1107         Update the estimation with the upper bound here...
1108         (estimate_numbers_of_iterations_loop): ... instead of here.
1109         Do not forcefully reset a recorded upper bound.
1110         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
1111         Record the maximum number of loop iterations of the prologue loop.
1113 2012-04-18  Jan Hubicka  <jh@suse.cz>
1115         * lto-symtab.c (lto_cgraph_replace_node): Update.
1116         * cgraphbuild.c (record_reference, record_type_list,
1117         record_eh_tables, mark_address, mark_load, mark_store): Update.
1118         * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
1119         cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
1120         Update.
1121         * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
1122         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
1123         * reload.c: Fix typo in comment.
1124         * rtlanal.c: Likewise.
1125         * tree-emultls.c (gen_emutls_addr): Update.
1126         * ipa-reference.c (analyze_function): Update.
1127         * cgraphunit.c (cgraph_analyze_function,
1128         cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
1129         Update.
1130         * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
1131         (ipa_remove_reference): Likewise.
1132         (ipa_remove_all_refering): Rename to ...
1133         (ipa_remove_all_referring): ... this one; update.
1134         (ipa_dump_references): Update.
1135         (ipa_dump_referring): Update.
1136         (ipa_clone_references): Update.
1137         (ipa_clone_refering): Rename to ...
1138         (ipa_clone_referring): ... this one; update.
1139         (ipa_ref_cannot_lead_to_return): Update.
1140         (ipa_ref_has_aliases_p): Update.
1141         * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
1142         forward typedefs.
1143         (ipa_ref_type): Remove.
1144         (ipa_ref_ptr_u): Remove.
1145         (ipa_ref): Remove referencing, refered, refered_index, refering_type
1146         and refered_type; add referring, referred and referred_index.
1147         (ipa_ref_list): Rename refering to referring.
1148         (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
1149         ipa_clone_references, ipa_clone_referring): Update prototypes.
1150         * lto-cgraph.c (referenced_from_other_partition_p): Update.
1151         (lto_output_ref): Update.
1152         (add_references): Update.
1153         (input_varpool_node): Update.
1154         (input_refs): Update.
1155         * ipa-ref-inline.h (ipa_ref_node): Update.
1156         (ipa_ref_varpool_node): Update.
1157         (ipa_ref_referring_node): Update.
1158         (ipa_ref_referring_varpool_node): Update.
1159         (ipa_ref_referring_ref_list): Update.
1160         (ipa_ref_referred_ref_list): Update.
1161         (ipa_ref_list_first_referring): Update.
1162         (ipa_empty_ref_list): Update.
1163         (ipa_ref_list_refering_iterate): Rename to ...
1164         (ipa_ref_list_referring_iterate): ... this one.
1165         * cse.c: Update comment.
1166         * ipa-utils.c (ipa_reverse_postorder): Update.
1167         * tree-ssa-alias.c: Update.
1168         * ipa-inline.c (reset_edge_caches): Update.
1169         (update_caller_keys): Update.
1170         * ipa-inline.h: Update comments.
1171         * jump.c: Update comment.
1172         * alias.c: Likewise.
1173         * ipa.c (process_references): Update.
1174         (cgraph_remove_unreachable_nodes): Likewise.
1175         (ipa_discover_readonly_nonaddressable_var): Likewise.
1176         (cgraph_address_taken_from_non_vtable_p): Likewise.
1177         * trans-mem.c (ipa_tm_execute): Update.
1178         * simplify-rtx.c: Fix comment.
1179         * rtl.c: Fix comment.
1180         * symtab.c (symtab_unregister_node): Update.
1181         * varpool.c (dump_varpool_node): Update.
1182         (varpool_analyze_pending_decls): Update.
1183         (assemble_aliases): Update.
1184         (varpool_for_node_and_aliases): Update.
1186 2012-04-18  Richard Guenther  <rguenther@suse.de>
1188         * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
1189         use_undefined_p parameter.
1190         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
1191         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
1192         Likewise.
1193         (estimate_numbers_of_iterations): Likewise.
1194         (estimated_loop_iterations): Adjust.
1195         (max_loop_iterations): Likewise.
1196         (scev_probably_wraps_p): Likewise.
1197         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
1198         * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
1199         not max_loop_iterations.
1200         (execute_vrp): Remove explicit number of iterations estimation.
1202 2012-04-18  Enkovich Ilya  <ilya.enkovich@intel.com>
1204         * config/i386/linux-common.h: New.
1206         * config.gcc: Add i386/linux-common.h before
1207         all i386/linux.h and i386/linux64.h usages.
1209         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
1210         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
1211         * config/i386/gnu-user64.h: Likewise.
1213         * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
1214         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
1215         (GNU_USER_TARGET_MATHFILE_SPEC): New.
1216         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
1218 2012-04-18  Jan Hubicka  <jh@suse.cz>
1220         * cgraph.c (cgraph_node_name): Remove.
1221         (dump_cgraph_node): Use dump_symtab_base; reformat.
1222         * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
1223         debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
1224         Declare.
1225         (cgraph_node_name, varpool_node_name): Remove.
1226         (cgraph_node_asm_name, varpool_node_asm_name,
1227         cgraph_node_name, varpool_node_name): New.
1228         * tree-pass.h (TODO_dump_cgraph): Rename to ...
1229         (TODO_dump_symtab): ... this one.
1230         * ipa-cp (pass_ipa_cp): Update.
1231         * ia-reference.c (generate_summary, read_write_all_from_decl,
1232         propagate, ipa_reference_read_optimization_summary): Update.
1233         * cgraphunit.c (cgraph_analyze_functions): Update.
1234         (cgraph_optimize): Update.
1235         * ipa-ref.c (ipa_dump_references): Update.
1236         (ipa_dump_refering): Update.
1237         * ipa-inline.c (pass_ipa_inline): Update.
1238         * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
1239         * ipa.c (pass_ipa_function_visibility,
1240         pass_ipa_whole_program_visibility): Update.
1241         * tree-sra.c (pass_early_ipa_sra): Update.
1242         * symtab.c: Include langhooks.h
1243         (symtab_node_asm_name): New.
1244         (symtab_node_name): New.
1245         (symtab_type_names): New static var.
1246         (dump_symtab_base): New.
1247         (dump_symtab_node, dump_symtab): New.
1248         (debug_symtab_node,  debug_symtab): New.
1249         * tree-ssa-structalias.c: Dump symbol table.
1250         * pases.c (execute_todo): Handle TODO_dump_symtab instead
1251         of TODO_dump_cgraph.
1252         * varpoo.c (varpool_node_name): Remove.
1253         (dump_varpool_node): Use dump_symtab_base; reformat.
1255 2012-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1257         * doc/invoke.texi (Language Independent Options): @item should be
1258         before @opindex.
1260 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
1262         PR bootstrap/53021
1263         * rtl.c (rtx_code_size): Handle ADDRESS.
1265 2012-04-17  Tom de Vries  <tom@codesourcery.com>
1267         * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
1268         is not a STMT_LIST.
1270 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
1272         PR target/53020
1273         * config/i386/sync.md (atomic_<code><mode>): Rename to
1274         atomic_<logic><mode>.
1276 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
1278         * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
1279         * alias.c (reg_base_value): Expand and update comment.
1280         (arg_base_value): New variable.
1281         (unique_id): Move up file.
1282         (unique_base_value, unique_base_value_p, known_base_value_p): New.
1283         (find_base_value): Use arg_base_value and known_base_value_p.
1284         (record_set): Document REG_NOALIAS handling.  Use unique_base_value.
1285         (find_base_term): Use known_base_value_p.
1286         (base_alias_check): Use unique_base_value_p.
1287         (init_alias_target): Initialize arg_base_value.  Use unique_base_value.
1288         (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
1290 2012-04-17  Pat Haugen <pthaugen@us.ibm.com>
1292         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
1294 2012-04-17  Michael Matz  <matz@suse.de>
1296         PR tree-optimization/18437
1297         * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
1298         (STMT_VINFO_STRIDE_LOAD_P): New accessor.
1299         (vect_check_strided_load): Declare.
1300         * tree-vect-data-refs.c (vect_check_strided_load): New function.
1301         (vect_analyze_data_refs): Use it to accept strided loads.
1302         * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
1304 2012-04-17  Richard Guenther  <rguenther@suse.de>
1306         PR middle-end/53011
1307         * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
1308         loops when redirecting an entry or latch edge.
1310 2012-04-17  Bernd Schmidt  <bernds@codesourcery.com>
1312         * sel-sched.c (sel_global_init): Revert previous change.
1314 2012-04-17  Richard Guenther  <rguenther@suse.de>
1316         * tree-flow.h (array_at_struct_end_p): Move declaration ...
1317         * tree.h (array_at_struct_end_p): ... here.
1318         * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
1319         * expr.c (array_at_struct_end_p): ... here.  Rewrite.
1321 2012-04-17  Steven Bosscher  <steven@gcc.gnu.org>
1323         * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
1324         COST_TABLE): Remove.
1325         (estimate_case_costs): Remove.
1326         (expand_case): Do not call estimate_case_costs
1327         to set use_cost_table.
1328         (balance_case_nodes): Do not use use_cost_table.
1330 2012-04-16  Jan Hubicka  <jh@suse.cz>
1332         * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
1333         (hash_node, eq_node): Remove.
1334         (cgraph_create_node): Do not handle hashtable.
1335         (cgraph_get_node): Remove.
1336         (cgraph_insert_node_to_hashtable): Remove.
1337         (hash_node_by_assembler_name): Remove.
1338         (eq_assembler_name): Remove.
1339         (cgraph_node_for_asm): Rewrite.
1340         (cgraph_find_replacement_node): Break out from ...
1341         (cgraph_remove_node): ... here; do not maintain hashtables.
1342         (change_decl_assembler_name): Remove.
1343         (cgraph_clone_node): Do not maintain hashtables.
1344         * cgraph.h (const_symtab_node): New typedef.
1345         (cgraph_insert_node_to_hashtable): Remove.
1346         (symtab_get_node, symtab_node_for_asm,
1347         symtab_insert_node_to_hashtable): Declare.
1348         (cgraph_find_replacement_node): Declare.
1349         (cgraph_get_node, varpool_get_node): Turn into inlines.
1350         (cgraph, varpool): Work sanely on NULL pointers.
1351         (FOR_EACH_SYMBOL): New walker.
1352         * ipa-inline-transform.c (save_inline_function_body): Use
1353         symtab_insert_node_to_hashtable.
1354         * symtab.c: Include ggc.h and diagnostics.h
1355         (symtab_hash, assembler_name_hash): New static vars;
1356         (hash_node, eq_node, hash_node_by_assembler_name,
1357         eq_assembler_name, insert_to_assembler_name_hash,
1358         unlink_from_assembler_name_hash): New.
1359         (symtab_register_node): Update hashtables.
1360         (symtab_insert_node_to_hashtable): New.
1361         (symtab_unregister_node): Update hashtables.
1362         (symtab_get_node): New.
1363         (symtab_node_for_asm): New.
1364         (change_decl_assembler_name): New.
1365         * Makefile.in (symtab.o): Needs GTY.
1366         * varpool.c (varpool_hash): Remove.
1367         (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
1368         (varpool_node): Rewrite using varpool_get_node.
1369         (varpool_remove_node): DO not maintain hashtables.
1370         (varpool_node_for_asm): Rewrite.
1372 2012-04-16  Sandra Loosemore  <sandra@codesourcery.com>
1374         * doc/invoke.texi:  Copy-edit to put verbs in the present tense
1375         when describing the current behavior of GCC.
1377 2012-04-16  Richard Sandiford  <rdsandiford@googlemail.com>
1379         * genemit.c (gen_exp): Remove ADDRESS handling.
1380         * genoutput.c (scan_operands): Likewise.
1381         * genpeep.c (match_rtx): Likewise.
1382         * genrecog.c (add_to_sequence): Likewise.
1384 2012-04-16  David Edelsohn  <dje.gcc@gmail.com>
1386         * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
1388 2012-04-16  Martin Jambor  <mjambor@suse.cz>
1390         * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
1391         bit-fields.
1393 2012-04-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
1395         PR target/51819
1396         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
1397         hints for 'A' operand types.
1399 2012-04-16  Jan Hubicka  <jh@suse.cz>
1401         * cgraph.h (symtab_node_base): Add next and previous pointers.
1402         (cgraph_node): Remove next and preivous pointers.
1403         (varpool_node): Likewise; remove next/previous GTY marker;
1404         it is not type safe.
1405         (symtab_node_def): Update GTY marker
1406         (x_cgraph_nodes, cgraph_nodes): Remove.
1407         (symtab_nodes): New function.
1408         (cgraph_order): Rename to ...
1409         (symtab_order): ... this one.
1410         (symtab_register_node, symtab_unregister_node, symtab_remove_node):
1411         Declare.
1412         (x_varpool_nodes, varpool_nodes): Remove.
1413         (FOR_EACH_STATIC_VARIABLE): Update.
1414         (symtab_function_p, symtab_variable_p): New function.
1415         (FOR_EACH_VARIABLE): Update.
1416         (varpool_first_variable, varpool_next_variable): New functions.
1417         (FOR_EACH_VARIABLE): Update.
1418         (cgraph_first_defined_function): Update.
1419         (cgraph_next_defined_function, cgraph_next_defined_function): Update.
1420         (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
1421         (cgraph_first_function, cgraph_next_function): New.
1422         (FOR_EACH_FUNCTION): Update.
1423         (cgraph_first_function_with_gimple_body,
1424         cgraph_next_function_with_gimple_body): Update.
1425         * symtab.c: New file.
1426         * cgraph.c: Update copyright dates.
1427         (x_cgraph_nodes, cgraph_order): Remove.
1428         (NEXT_FREE_NODE): Update.
1429         (SET_NEXT_FREE_NODE): New.
1430         (cgraph_create_node_1): Remove common code.
1431         (cgraph_create_node): Remove common code; call symtab_register_node.
1432         (cgraph_remove_node): Remove common code; call symtab_unregister-node.
1433         (cgraph_add_asm_node): Update.
1434         (cgraph_clone_node): Register new node.
1435         * cgraphunit.c (process_function_and_variable_attributes): Update.
1436         (cgraph_analyze_functions): Update.
1437         (cgraph_analyze_functions): Update.
1438         (cgraph_output_in_order): Update.
1439         * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
1440         Update.
1441         * ipa-inline.c (recursive_inlining): Update.
1442         * lto-streamer-in.c (lto_input_toplevel_asms): Update.
1443         * ipa.c (cgraph_remove_unreachable_nodes): Update.
1444         * Makefile.in: Add symtab.o
1445         * varpool.c (x_varpool_nodes): Remove
1446         (varpool_node): Remove common code; call symtab_register_node.
1447         (varpool_remove_node): Remove common code; call symtab_unregister_node.
1449 2012-04-16  Richard Guenther  <rguenther@suse.de>
1451         PR middle-end/52977
1452         * tree.h (VECTOR_CST_NELTS): Adjust.
1453         (struct tree_vector): Add explicit length field.
1454         (make_vector_stat): Declare.
1455         (make_vector): Define.
1456         * tree.c (make_vector_stat): New function.
1457         (build_vector_stat): Use it.
1458         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
1460 2012-04-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1462         PR tree-optimization/52976
1463         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
1464         (undistribute_ops_list): Ops with repeat counts aren't eligible for
1465         undistribution.
1466         (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
1468 2012-04-16  Jan Hubicka  <jh@suse.cz>
1470         * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
1471         New macros.
1472         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
1473         walkers to walk cgraph and varpool.
1474         * cgraph.c (cgraph_node_for_asm): Likewise.
1475         (dump_cgraph): Likewise.
1476         * value-prof.c (init_node_map): Likewise.
1477         * tree.c (free_lang_data_in_cgraph): Likewise.
1478         * tree-emutls.c: (ipa_lower_emutls): Likewise.
1479         * ipa-reference.c (generate_summary, propagate): Likewise.
1480         * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
1481         cgraph_mark_functions_to_output, cgraph_output_in_order,
1482         output_weakrefs, cgraph_materialize_all_clones,
1483         cgraph_optimize): Likewise.
1484         * lto-cgraph.c (merge_profile_summaries): Likewise.
1485         (input_cgraph): Likewise.
1486         * ipa-pure-const.c (generate_summary): Likewise.
1487         (propagate): Likwise.
1488         * ipa-utils.c (ipa_reduced_postorder): Likewise.
1489         (ipa_free_postorder_info): Likewise.
1490         (ipa_reverse_postorder): Likewise.
1491         * ipa-inline.c (ipa_inline): Likewise.
1492         * matrix-reorg.c (find_matrices_decl): Likewise.
1493         (matrix_reorg): Likewise.
1494         * tree-vectorizer.c (increase_alignment): Likewise.
1495         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1496         (function_and_variable_visibility): Likewise.
1497         (whole_program_function_and_variable_visibility): Likewise.
1498         (ipa_cdtor_merge): Likewise.
1499         * trans-mem.c (ipa_tm_execute): Likewise.
1500         * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
1501         * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
1502         (ipa_print_all_params): Likewise.
1503         (ipa_update_after_lto_read): Likewise.
1504         * tree-profie.c (tree_profiling): Likewise.
1505         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
1506         * passes.c (dump_passes): Likewise.
1507         (do_per_function): Likewise.
1508         (ipa_write_summaries): Likewise.
1509         * varpool.c (dump_varpool): Likewise.
1510         (varpool_node_for_asm): Likewise.
1511         (varpool_assemble_pending_decls): Likewise.
1513 2012-04-16  Richard Guenther  <rguenther@suse.de>
1515         PR tree-optimization/52975
1516         * tree-if-conv.c (predicate_bbs): Do not simplify inverted
1517         condition but always mark it with TRUTH_NOT_EXPR.
1519 2012-04-16  Richard Guenther  <rguenther@suse.de>
1521         PR tree-optimization/52975
1522         * tree-ssa-forwprop.c (combine_cond_exprs): New function.
1523         (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
1524         and VEC_COND_EXPRs.  Also combine into VEC_COND_EXPRs condition.
1525         * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
1527 2012-04-14  Uros Bizjak  <ubizjak@gmail.com>
1529         * config/i386/sse.md (ssse3_plusminus): New code iterator.
1530         (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
1531         avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
1532         (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
1533         ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
1534         (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
1535         ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
1537         (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
1538         avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
1539         (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
1540         ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
1541         (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
1542         ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
1544         (xop_plus): New code iterator.
1545         (macs): New code attribute.
1546         (macds): Ditto.
1547         (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
1548         xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
1549         iterator.
1550         (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
1551         xop_plus code iterator.
1552         (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
1553         xop_plus code iterator.
1554         (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
1555         xop_plus code iterator.
1556         (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
1557         xop_plus code iterator.
1559         (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
1560         any_extend code iterator.
1561         (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
1562         any_extend code iterator.
1563         (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
1564         any_extend code iterator.
1565         (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
1566         any_extend code iterator.
1567         (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
1568         any_extend code iterator.
1569         (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
1570         any_extend code iterator.
1572 2012-04-14  Tom de Vries  <tom@codesourcery.com>
1574         * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
1575         call to delete_insn.  Remove code to reorder BASIC_BLOCK note and
1576         DELETED_LABEL note, and move it to ...
1577         * cfgrtl.c (delete_insn): ... here.  Change return type to void.
1578         (delete_insn_and_edges): Likewise.
1579         (delete_insn_chain): Handle new return type of delete_insn.  Delete
1580         chain backwards rather than forwards.
1581         * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
1582         void.
1583         * cfglayout.c (fixup_reorder_chain): Delete unused label.
1585 2012-04-14  Jan Hubicka  <jh@suse.cz>
1587         * cgraph.h: Update copyrights;
1588         (symtab_node): Turn to union typedef.
1589         (symtab_node_base): New structure.
1590         (symtab_type): Add SYMTAB_SYMBOL tag.
1591         (cgraph_node): Annotate some pinters with nested_ptr.
1592         (varpool_node): Likewise.
1593         (cgraph_local_info): Remove lto_file_data
1594         and externally_visible.
1595         (cgraph_node): Remove decl; same_comdat_group list;
1596         aux; ref_list; order; address_taken; reachable_from_other_parittion,
1597         in_other_partition; resolution.
1598         (varpool_node): Remove decl; same_comdat_group;
1599         ref_list; lto_file_data; aux; order; resolution; externally_visible;
1600         used_from_other_partition; in_other_partition.
1601         (symtab_node_def): New union.
1602         (cgraph, varpool): Update.
1603         (varpool_first_static_initializer, varpool_next_static_initializer,
1604         cgraph_only_called_directly_or_aliased_p,
1605         varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
1606         varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
1607         varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
1608         field references.
1609         * cgraph.c: Likewise.
1610         (cgraph_hash, assembler_name_hash): Turn into symtab_node.
1611         * cgraphbuild.c: Likewise.
1612         * lto-symtab.c: Likewise.
1613         * c-gimplify.c: Likewise.
1614         * value-prof.c: Likewise.
1615         * tree.c: Likewise.
1616         * ipa-cp.c: Likewise.
1617         * tree-emutls.c: Likewise.
1618         * ipa-inline-transform.c: Likwise.
1619         * ipa-reference.c: Likewise.
1620         * cgraphunit.c: Likewise.
1621         * ipa-ref.c: Likewise.
1622         * lto-cgraph.c: Likewise.
1623         * ipa-ref-inline.h: Likewise.
1624         * ipa-pure-const.c: Likewise.
1625         * lto-streamer-out.c: Likewise.
1626         * ipa-utils.c: Likewise.
1627         * ipa-inline.c: Likewise.
1628         * matrix-reorg.c: Likewise.
1629         * tree-eh.c: Likewise.
1630         * tree-vectorizer.c: Likewise.
1631         * ipa-split.c: Likewise.
1632         * ipa.c: Likewise.
1633         * trans-mem.c: Likewise.
1634         * ipa-inline-analysis.c: Likewise.
1635         * gimplify.c: Likewise.
1636         * cfgexpand.c: Likewise.
1637         * tree-sra.c: Likewise.
1638         * ipa-prop.c: Likewise.
1639         * varasm.c: Likewise.
1640         * tree-nested.c: Likewise.
1641         * tree-inline.c: Likewise.
1642         * tree-profile.c: Likewise.
1643         * tree-ssa-structalias.c: Likewise.
1644         * passes.c: Likewise.
1645         * varpool.c: Likewise.
1647 2012-04-14  Tom de Vries  <tom@codesourcery.com>
1649         * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
1650         same_succ_hash, with local_def inlined.  Use SINGLE_SSA_DEF_OPERAND.
1651         Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT.  Remove use
1652         of find_edge.
1653         (gsi_advance_fw_nondebug_nonlocal): New function.
1654         (local_def): Removed function.
1655         (same_succ_hash): Use stmt_local_def.
1656         (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
1657         (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
1659 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1661         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
1662         and __ILP32__ for x32.
1664 2012-04-13  Martin Jambor  <mjambor@suse.cz>
1666         PR middle-end/52939
1667         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
1668         fold_ctor_reference returns a zero constant.
1670 2012-04-13  Enkovich Ilya  <ilya.enkovich@intel.com>
1672         * config.gcc: Add i386/gnu-user-common.h before all
1673         i386/gnu-user.h and i386/gnu-user64.h usages.
1675         * config/i386/gnu-user-common.h: New.
1677         * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
1678         (CC1_SPEC): Likewise.
1679         (ENDFILE_SPEC): Likewise.
1680         (DEFAULT_PCC_STRUCT_RETURN): Likewise.
1681         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
1682         (TARGET_OS_CPP_BUILTINS): Likewise.
1683         (LIBGCC2_HAS_TF_MODE): Likewise.
1684         (LIBGCC2_TF_CEXT): Likewise.
1685         (TF_SIZE): Likewise.
1686         (TARGET_ASM_FILE_END): Likewise.
1687         (STACK_CHECK_MOVING_SP): Likewise.
1688         (STACK_CHECK_STATIC_BUILTIN): Likewise.
1689         * config/i386/gnu-user64.h: Likewise.
1691 2012-04-13  Martin Jambor  <mjambor@suse.cz>
1693         * expr.c (expand_expr_real_1): Pass type, not the expression, to
1694         set_mem_attributes for a memory temporary. Do not call the function
1695         for the memory temporary created for a bitfield.
1697 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
1699         PR debug/48866
1700         * df.h (enum debug_temp_where): New.
1701         (dead_debug_init, dead_debug_finish) Declare.
1702         (dead_debug_add, dead_debug_insert_temp): Declare.
1703         (struct dead_debug_use, struct dead_debug): Moved from...
1704         * df-problems.c: ... here.
1705         (df_set_unused_notes_for_mw): Bind debug uses of unused regno
1706         to a debug temp.
1707         (df_create_unused_note): Likewise.
1708         (df_set_dead_notes_for_mw): Move comment where it belongs.
1709         (dead_debug_init): Export.
1710         (dead_debug_reset_uses): New, factored out of...
1711         (dead_debug_finish): ...this.  Export.
1712         (dead_debug_reset): Remove.
1713         (dead_debug_add): Export.
1714         (dead_debug_insert_before): Rename to...
1715         (dead_debug_insert_temp): ... this.  Add where argument.  Export.
1716         Locate stored value for BEFORE_WITH_VALUE.  Avoid repeat inserts.
1717         Return insertion count.
1718         (df_note_bb_compute): Adjust.
1719         * dce.c (word_dce_process_block): Adjust dead debug uses.
1720         (dce_process_block): Likewise.
1722 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
1724         * df-problems.c (df_note_bb_compute): Do not take note of
1725         debug uses for whose REGs we won't emit DEAD or UNUSED notes.
1727 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
1729         PR debug/51570
1730         * var-tracking.c (expand_depth): New type.
1731         (onepart_aux, expand_loc_callback_data): Change depth type to it.
1732         (loc_exp_dep_alloc): Adjust initializer.
1733         (update_depth): Use new type.  Add entryvals.
1734         (vt_expand_var_loc_chain): Take note of expansions with
1735         ENTRY_VALUEs, but don't accept them right away.  Run an optional
1736         second pass accepting the minimum ENTRY_VALUE count found in the
1737         first pass.
1738         (vt_expand_loc_callback, INIT_ELCD): Adjust.
1740 2012-04-13  Tom de Vries  <tom@codesourcery.com>
1742         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
1743         parameters vuse and vuse_escaped.
1744         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
1745         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
1746         vuse1 != vuse2.
1748 2012-04-13  Richard Guenther  <rguenther@suse.de>
1750         PR tree-optimization/52969
1751         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
1752         the condition for the COND_EXPR and handle predicate negation
1753         by swapping the COND_EXPR arms.
1755 2012-04-13  Nick Clifton  <nickc@redhat.com>
1757         * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
1758         TODO_dump_func flag.
1760 2012-04-13  Andrey Belevantsev  <abel@ispras.ru>
1762         PR rtl-optimization/52203
1763         PR rtl-optimization/52715
1765         Revert the 2012-03-07 fix for PR 52203.
1766         * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
1767         the insn does not modify DFA right before issuing, adjust
1768         issue_rate accordingly.
1770 2012-04-13  Richard Guenther  <rguenther@suse.de>
1772         PR c/52549
1773         * c-typeck.c (pointer_diff): Remove bogus assert.
1775 2012-04-13  Richard Guenther  <rguenther@suse.de>
1777         PR c/52862
1778         * convert.c (convert_to_pointer): Remove special-casing of zero.
1780 2012-04-13  Joey Ye  <joey.ye@arm.com>
1782         * config/arm/constraints.md (Pe): New constraint.
1783         * config/arm/arm.md: New split for imm 256-510.
1785 2012-04-13  Terry Guo  <terry.guo@arm.com>
1787         * config/arm/arm-cores.def: Added core cortex-m0plus.
1788         * config/arm/arm-tune.md: Regenerated.
1789         * config/arm/arm-tables.opt: Regenerated.
1790         * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
1792 2012-04-13  Alan Modra  <amodra@gmail.com>
1794         PR target/52828
1795         * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
1796         tie regs on destination of sets.  Delete forward declaration.
1797         (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
1798         (rs6000_emit_prologue): Likewise.
1799         (rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
1800         and gen_stack_tie.
1801         (is_mem_ref): Use tie_operand to recognise stack ties.
1802         * config/rs6000/predicates.md (tie_operand): New.
1803         * config/rs6000/rs6000.md (restore_stack_block): Generate new
1804         stack tie rtl.
1805         (restore_stack_nonlocal): Likewise.
1806         (stack_tie): Update.
1807         (frame_tie): Delete.
1809 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1811         * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
1812         HOST_WIDE_INT_PRINT_DEC in format strings.
1814 2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
1816         PR target/52932
1817         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
1818         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
1819         * config/i386/sse.md (UNSPEC_VPERMVAR): New.
1820         (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
1821         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
1822         (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
1823         avx2_permvarv8si using VI4F_256 mode iterator.
1824         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
1825         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
1826         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
1827         gen_avx2_permvarv8sf.
1828         (expand_vec_perm_pshufb): Ditto.
1830 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1832         PR target/52775
1833         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
1834         the list of options to enable the FCFID instruction.
1835         (TARGET_EXTRA_BUILTINS): Adjust comment.
1837 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1839         PR tree-optimization/18589
1840         * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
1841         (operand_entry): Add count field.
1842         (add_repeat_to_ops_vec): New function.
1843         (completely_remove_stmt): Likewise.
1844         (remove_def_if_absorbed_call): Likewise.
1845         (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
1846         (acceptable_pow_call): New function.
1847         (linearize_expr_tree): Look for builtin pow/powi calls and add operand
1848         entries with repeat counts when found.
1849         (repeat_factor_d): New struct and associated typedefs.
1850         (repeat_factor_vec): New static vector variable.
1851         (compare_repeat_factors): New function.
1852         (get_reassoc_pow_ssa_name): Likewise.
1853         (attempt_builtin_powi): Likewise.
1854         (reassociate_bb): Call attempt_builtin_powi.
1855         (fini_reassoc): Two new calls to statistics_counter_event.
1857 2012-04-12  Richard Guenther  <rguenther@suse.de>
1859         * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
1860         * cgraph.h (tree_rest_of_compilation): Remove.
1861         * cgraph.c (cgraph_add_new_function): Move ...
1862         * cgraphunit.c (cgraph_add_new_function): ... here.
1863         (tree_rest_of_compilation): Make static.
1864         (cgraph_expand_function): Do not set cgraph_function_flags_ready.
1865         * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
1866         gate_all_early_local_passes, execute_all_early_local_passes,
1867         pass_early_local_passes, gate_all_early_optimizations,
1868         pass_all_early_optimizations): Move ...
1869         * passes.c (gate_all_optimizations, pass_all_optimizations,
1870         gate_all_early_local_passes, execute_all_early_local_passes,
1871         pass_early_local_passes, gate_all_early_optimizations,
1872         pass_all_early_optimizations): ... here.
1873         * tree-optimize.c (execute_free_datastructures): Remove.
1874         * tree-flow.h (execute_free_datastructures): Remove.
1875         * tree-optimize.c (execute_init_datastructures,
1876         pass_init_datastructures): Move ...
1877         * tree-ssa.c (execute_init_datastructures,
1878         pass_init_datastructures): ... here.
1879         * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
1880         execute_free_datastructures.
1882 2012-04-12  Bernd Schmidt  <bernds@codesourcery.com>
1884         * dbgcnt.def (ira_move): New counter.
1885         * ira-int.h (ira_create_new_reg): Declare function.
1886         (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
1887         * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
1888         no longer static.  All callers changed.
1889         * ira.c: Include "dbgcnt.h".
1890         (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
1891         move_unallocated_pseudos): New static functions.
1892         (first_moveable_pseudo, last_moveable_pseudo): New global variables.
1893         (pseudo_replaced_reg, pseudo_move_insn): New static variables.
1894         (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
1895         * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
1896         to the pseudos generated in find_moveable_pseudos.
1897         * Makefile.in (ira.o): Add $(DBGCNT_H).
1899 2012-04-12  Richard Guenther  <rguenther@suse.de>
1901         PR tree-optimization/52943
1902         * tree-chrec.h (chrec_is_positive): Remove.
1903         * tree-scalar-evolution.c (chrec_is_positive): Move ...
1904         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
1905         Return false for a constant zero instead of negative.
1906         (analyze_siv_subscript_cst_affine): Handle zero difference
1907         in the initial condition explicitely.
1909 2012-04-12  Richard Guenther  <rguenther@suse.de>
1911         * tree-parloops.c (parallelize_loops): Also consult the upper
1912         bound for the number of iterations.
1913         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
1914         (loop_prefetch_arrays): Likewise.
1916 2012-04-12  Richard Guenther  <rguenther@suse.de>
1918         * cfgloop.h (estimated_loop_iterations_int): Ditch
1919         'conservative' parameter.
1920         (max_stmt_executions_int): Likewise.
1921         (estimated_loop_iterations): Likewise.
1922         (max_stmt_executions): Likewise.
1923         (max_loop_iterations): Declare.
1924         (max_loop_iterations_int): Likewise.
1925         (estimated_stmt_executions): Likewise.
1926         (estimated_stmt_executions_int): Likewise.
1927         * tree-ssa-loop-niter.c (estimated_loop_iterations):
1928         Split parts to ...
1929         (max_loop_iterations): ... this.
1930         (estimated_loop_iterations_int): Split parts to ...
1931         (max_loop_iterations_int): ... this.
1932         (max_stmt_executions_int): Split parts to ...
1933         (estimated_stmt_executions_int): ... this.
1934         (max_stmt_executions): Split parts to ...
1935         (estimated_stmt_executions): ... this.
1936         * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
1937         * predict.c (predict_loops): Likewise.
1938         * tree-data-ref.c (max_stmt_executions_tree): Likewise.
1939         (analyze_siv_subscript_cst_affine): Likewise.
1940         (compute_overlap_steps_for_affine_1_2): Likewise.
1941         (analyze_subscript_affine_affine): Likewise.
1942         (init_omega_for_ddr_1): Likewise.
1943         * tree-parloops.c (parallelize_loops): Likewise.
1944         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1945         (may_eliminate_iv): Likewise.
1946         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
1947         (loop_prefetch_arrays): Likewise.
1948         * tree-vrp.c (adjust_range_with_scev): Likewise.
1950 2012-04-12  Oleg Endo  <olegendo@gcc.gnu.org>
1952         * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
1953         * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
1954         Fix line width.
1955         (dump_table): Use bool type for need_align and have_df variables.
1956         (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
1957         (regs_used): Remove register modifier.
1958         (barrier_align): Move variables slot, credit, jump_to_next
1959         into if block above for loop.  Use bool type for jump_to_next.
1960         (sh_function_arg): Use NULL_RTX instead of 0.
1962 2012-04-11  Andreas Schwab  <schwab@linux-m68k.org>
1964         * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
1965         (bswapsi2): New expander.
1967 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1969         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
1970         0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
1972 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1974         PR rtl-optimization/52876
1975         * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
1976         Don't call mark_reg_pointer for incompatible pointer sign extension.
1978         * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
1979         directly.
1981 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
1983         * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
1984         comparisons against TYPE_PRECISION.
1985         * tree-ssa-forwprop.c (combine_conversions): Likewise.
1987 2012-04-11  Xinliang David Li  <davidxl@google.com>
1989         * tree-passes.h: Remove TODO_dump_func.
1990         * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
1991         * trans-mem.c: Remove TODO_dump_func.
1992         * ira.c: Remove TODO_dump_func.
1994 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1996         * config/i386/i386.c (ix86_option_override_internal): Check
1997         SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
1998         after TARGET_64BIT is updated.
2000 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
2002         * config/sh/sh.h: Remove old secondary reload code.
2004 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
2006         * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
2007         (ready_reorder): ... this function.
2009 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
2011         * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
2012         sched_init calls.
2014         * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
2015         insns so that no other insn is queued for a time before them.
2017         * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
2018         unknown.
2020 2012-04-11  Richard Guenther  <rguenther@suse.de>
2022         PR middle-end/52621
2023         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
2024         consider loop nesting.
2025         (evolution_function_is_univariate_p): Properly check the remainder
2026         for chrecs.
2028 2012-04-11  Richard Guenther  <rguenther@suse.de>
2030         PR middle-end/52918
2031         * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
2033 2012-04-11  Nick Clifton  <nickc@redhat.com>
2035         * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
2036         information, if requested.
2038         * config/rx/rx.c (rx_expand_prologue): Likewise.
2040 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
2041             Michael Matz  <matz@suse.de>
2043         PR target/16458
2044         * rtlanal.c (unsigned_reg_p): New function.
2045         Update copyright notice dates.
2046         * rtl.h (unsigned_reg_p): Prototype it.
2047         Update copyright notice dates.
2048         * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
2049         Update comment.
2050         * expr.c (expand_expr_real_1): Set register attributes.
2051         * stmt.c (expand_case): Likewise.
2053 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
2055         PR target/50751
2056         * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
2057         consider_sh2a and allow_zero.
2058         * config/sh/sh.c (sh_legitimate_index_p): Likewise.
2059         (disp_addr_displacement): New function.
2060         (sh_address_cost): Use disp_addr_displacement function instead
2061         of DISP_ADDR_OFFSET.
2062         (sh_legitimate_address_p): Adapt to changed
2063         sh_legitimate_index_p declaration.
2064         (sh_find_mov_disp_adjust): Remove HImode check.
2065         (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
2066         disp_addr_displacement and max_mov_insn_displacement.
2067         (max_mov_insn_displacement): Remove HImode check.
2068         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
2069         DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
2070         * config/sh/constraints.md (K05, K13): New constraints.
2071         (K12): Correct comment.
2072         (Sdd): Do not use DISP_ADDR_P macro.
2073         (Snd, Sbw): Use satisfies_constraint_Sdd.
2074         * config/sh/sh.md (extendhisi2): Remove constraints from expander.
2075         (*extendhisi2_compact, movhi_i): Remove.
2076         (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
2077         *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
2078         *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
2079         *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
2080         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
2081         *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
2082         *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
2083         CONST_OK_FOR_Kxx.
2084         Add new peepholes for HImode displacement addressing.
2086 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
2088         * config/sh/sh.h (SIDI_OFF): Remove.
2089         * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
2090         DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
2091         or operand_subword.
2093 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2095         PR target/52624
2096         * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
2097         (PowerPC AltiVec/VSX Built-in Functions): Remove it.
2098         * doc/md.texi (Standard Names): Add bswap.
2099         * builtin-types.def (BT_UINT16): New primitive type.
2100         (BT_FN_UINT16_UINT16): New function type.
2101         * builtins.def (BUILT_IN_BSWAP16): New.
2102         * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
2103         (expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
2104         expand_builtin_bswap.
2105         (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
2106         (fold_builtin_1): Likewise.
2107         (is_inexpensive_builtin): Likewise.
2108         * optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
2109         missing bits for bswap to libcall code.
2110         * tree.c (build_common_tree_nodes): Build uint16_type_node.
2111         * tree.h (enum tree_index): Add TI_UINT16_TYPE.
2112         (uint16_type_node): New define.
2113         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
2114         * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
2115         above builtin.
2116         (rs6000_init_builtins): Likewise.
2117         * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
2119 2012-04-11  Tristan Gingold  <gingold@adacore.com>
2121         * doc/extend.texi (Type Attributes): Move paragraph.
2123 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2125         PR 24985
2126         * diagnostic.h (show_caret): Declare.
2127         (caret_max_width): Declare.
2128         (diagnostic_show_locus): Declare.
2129         * diagnostic.c (diagnostic_initialize): Initialize to false.
2130         (diagnostic_show_locus): New.
2131         (diagnostic_report_diagnostic): Call it.
2132         (getenv_columns): New.
2133         (adjust_line): New.
2134         (diagnostic_set_caret_max_width): New.
2135         * input.c (read_line): New.
2136         (location_get_source_line): New.
2137         * input.h (location_get_source_line): Declare.
2138         * toplev.c (general_init): Initialize show_caret from options.
2139         * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
2140         * opts.c (common_handle_option): Likewise.
2141         * pretty-print.h (pp_get_prefix): New.
2142         (pp_base_get_prefix): New.
2143         * common.opt (fdiagnostics-show-caret): New option.
2144         * doc/invoke.texi (fdiagnostics-show-caret): Document it.
2146 2012-04-11  Richard Guenther  <rguenther@suse.de>
2148         PR rtl-optimization/52881
2149         * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
2151 2012-04-11  Richard Guenther  <rguenther@suse.de>
2153         PR tree-optimization/52912
2154         * tree-ssa-threadupdate.c (thread_block): Tell the cfg
2155         manipulation code we are threading through a loop header
2156         to an exit destination.
2158 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2160         * tree.h (warn_if_unused_value): Move declaration from here.
2161         * stmt.c (warn_if_unused_value): Move definition from here.
2163 2010-04-10  Michael Matz  <matz@suse.de>
2165         * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
2166         grouped_stores.
2167         (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
2168         (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
2169         (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
2170         (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
2171         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
2172         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
2173         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
2174         (vect_record_strided_load_vectors): Rename to
2175         vect_record_grouped_load_vectors.
2176         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2177         Rename use of above macros.
2178         (vect_verify_datarefs_alignment): Ditto.
2179         (vector_alignment_reachable_p): Ditto.
2180         (vect_peeling_hash_get_lowest_cost): Ditto.
2181         (vect_enhance_data_refs_alignment): Ditto.
2182         (vect_analyze_group_access): Ditto and rename stride to groupsize.
2183         (vect_analyze_data_ref_access): Rename "strided" to "grouped".
2184         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
2185         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
2186         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
2187         (vect_record_strided_load_vectors): Rename to
2188         vect_record_grouped_load_vectors.
2189         * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
2190         (destroy_loop_vec_info): Ditto.
2191         (vect_transform_loop): Ditto and rename strided_store to grouped_store.
2192         * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
2193         (vect_analyze_slp): Ditto.
2194         (new_bb_vec_info): Ditto.
2195         (destroy_bb_vec_info): Ditto.
2196         (vect_schedule_slp_instance): Ditto and rename strided_store to
2197         grouped_store.
2198         * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
2199         vect_cost_group_size.
2200         (vect_model_store_cost): Rename use of above macros and call
2201         to vect_cost_strided_group_size.
2202         (vect_model_load_cost): Ditto.
2203         (vectorizable_store): Ditto, rename strided_store to grouped_store
2204         and calls to renamed tree-vectorizer.h functions.
2205         (vectorizable_load): Ditto.
2206         (vect_transform_stmt): Rename use of above macros and strided_store
2207         to grouped_store.
2209 2012-04-10  Jan Hubicka  <jh@suse.cz>
2211         * cgraph.h: Remove misledaing comment on ipa-ref.h.
2212         (symtab_type): New enum.
2213         (symtab_node): New structure.
2214         (cgraph_node, varpool_node): Add symbol base type.
2215         (cgraph, varpool): New accestor functions.
2216         * cgraph.c (cgraph_create_node_1): Set symbol type.
2217         * varpool.c (varpool_node): Set symbol type.
2219 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
2220             Richard Sandiford  <rdsandiford@googlemail.com>
2222         * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
2224 2012-04-10  Richard Guenther  <rguenther@suse.de>
2226         PR middle-end/52888
2227         * gimple-low.c (gimple_check_call_args): Properly account for
2228         compatible aggregate types.
2230 2012-04-10  Richard Guenther  <rguenther@suse.de>
2232         * toplev.h (tree_rest_of_compilation): Remove.
2233         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2234         * cgraph.h (tree_rest_of_compilation): Declare.
2235         * tree-optimize.c (tree_rest_of_compilation): Move ...
2236         * cgraphunit.c (tree_rest_of_compilation): ... here.
2237         * cgraph.c (cgraph_add_new_function): Adjust.
2238         * Makefile.in (tree-optimize.o): Adjust.
2239         (cgraphunit.o): Likewise.
2241 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
2243         PR tree-optimization/52870
2244         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
2245         presumed pattern statement is within the same loop or basic block.
2247 2012-04-10  Tristan Gingold  <gingold@adacore.com>
2249         * gengtype.c (main): Make uintptr_t a known type.
2251 2012-04-10  Richard Guenther  <rguenther@suse.de>
2253         * tree-pass.h (tree_lowering_passes): Remove.
2254         * tree-optimize.c (tree_lowering_passes): Remove.
2255         * cgraph.c (cgraph_add_new_function): Inline relevant parts
2256         of tree_lowering_passes, avoid redundant call of early local passes.
2257         * cgraphunit.c (cgraph_lower_function): Fold into ...
2258         (cgraph_analyze_function): ... its single caller.  Inline
2259         relevant parts of tree_lowering_passes.
2261 2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>
2263         PR other/52777
2264         * config/pa/pa.opt: Remove SIO and GNU_LD.
2266 2012-04-09  Jan Hubicka  <jh@suse.cz>
2268         PR lto/52722
2269         PR lto/51765
2270         PR lto/52634
2271         * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
2272         boundary, add its target too.
2273         * lto.c (add_references_to_partition): Add also aliased nodes.
2274         (add_cgraph_node_to_partition,
2275         add_varpool_node_to_partition): Work on nodes, not functions/variables;
2276         when adding alias, add also the aliased object.
2278 2012-04-09  Uros Bizjak  <ubizjak@gmail.com>
2280         PR target/52883
2281         * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
2282         VOIDmode immediate operands.
2283         * config/i386/constraints.md (Wz): New constraint.
2284         * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
2286 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
2288         PR target/52717
2289         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
2290         the DECL generated for the special GOT helper.
2292 2012-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
2294         * config/sh/constraints.md: Update list of constraints in
2295         comment block.
2296         (Sr0): Remove unused memory constraint.
2298 2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2300         * tree-pretty-print.h: Update comment.
2302 2012-04-08  Oleg Endo  <olegendo@gcc.gnu.org>
2304         * config/sh/sh.md: Use braced string notation where applicable.
2305         (*prefetch_i4, prefetch_m2a): Merge into ...
2306         (*prefetch): ... this new insn.
2308 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
2310         * config/sh/sh.h (high_life_started): Remove
2311         * config/sh/predicates.md (general_movdst_operand): Use
2312         'reload_in_progress' instead of 'high_life_started'.
2313         * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
2314         divsi_inv_fp): Likewise.
2316 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
2318         * config/sh/sh-protos.h (prepare_move_operands): Return void
2319         instead of int.
2320         * config/sh/sh.c (prepare_move_operands): Likewise.
2321         * config/sh/sh.md: Remove return value checks of prepare_move_operands.
2323 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
2325         * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
2326         general_movsrc_operand, general_movdst_operand, arith_reg_operand,
2327         fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
2328         logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
2329         commutative_float_operator, noncommutative_float_operator,
2330         sh_handle_pragma): Remove.
2332 2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>
2334         * doc/invoke.texi:  Clean up Texinfo markup throughout the file.
2335         Use @option markup on command-line options.  Use @samp markup on
2336         literal keywords to options.  Use @code markup on code fragments.
2337         Use other markup in preference to quotation marks in the text.
2338         Add markup to some passages without any.
2340 2012-04-06  Mike Stump  <mikestump@comcast.net>
2342         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
2344 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
2346         * config/sh/sh.c (hi_const): Remove.
2347         (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
2348         of hi_const.
2350 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
2352         * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
2353         to bool.
2354         * config/sh/sh.c (sh_expand_t_scc): Likewise.
2355         * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
2356         calling sh_expand_t_scc.
2358 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
2360         * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
2361         nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
2362         sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
2363         reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
2364         sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
2365         sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
2366         check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
2367         sh2a_is_function_vector_call): Use bool as return type.
2368         (sh_pass_in_reg_p): Remove.
2369         * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
2370         flow_dependent_p, sh2a_function_vector_p, expand_block_move,
2371         expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
2372         sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
2373         sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
2374         sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
2375         fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
2376         sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
2377         sh_loads_bankedreg_p): Use bool as return type.
2378         (nonpic_symbol_mentioned_p): Use bool as return type.  Remove
2379         'register' modifier.
2381 2012-04-06  Matt Turner  <mattst88@gmail.com>
2383         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
2385 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2387         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
2388         of the destination isn't also a FP_REGS register.
2390 2012-04-05  Teresa Johnson  <tejohnson@google.com>
2391             H.J. Lu  <hongjiu.lu@intel.com>
2393         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
2394         * config/i386/i386.md (move immediate to memory peephole2):
2395         Add cases for HImode move when LCP stall avoidance is needed.
2396         * config/i386/i386.c (initial_ix86_tune_features): Initialize
2397         X86_TUNE_LCP_STALL entry.
2399 2012-04-05  Uros Bizjak  <ubizjak@gmail.com>
2401         PR target/52882
2402         * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
2403         CONST_INT operands, zero-extended with AND.
2405 2012-04-05  Oleg Endo  <olegendo@gcc.gnu.org>
2407         PR target/50751
2408         * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
2409         first argument instead of mode size.  Move displacement calculations
2410         to ...
2411         (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
2412         ... these new functions.
2413         (disp_adjust): Remove max_mov_disp field.
2414         (sh_legitimate_index_p): Use max_mov_insn_displacement and
2415         mov_insn_alignment_mask.
2416         (sh_address_cost): Use max_mov_insn_displacement.
2418 2012-04-05  Andrew Stubbs  <ams@codesourcery.com>
2420         * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
2421         (arch_enabled): Handle new arch types.
2422         (one_cmpldi2): Add NEON support.
2424 2012-04-05  Richard Guenther  <rguenther@suse.de>
2426         * gimple.c (walk_gimple_op): Compute val_only for the LHS
2427         of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
2428         (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
2429         * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
2430         ... here and make static.
2431         * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
2432         Remove.
2434 2012-04-05  Richard Guenther  <rguenther@suse.de>
2436         * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
2437         basic-block before removing it.
2439 2012-04-05  Richard Guenther  <rguenther@suse.de>
2441         * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
2442         version namespace as we release the freelist.
2444 2012-04-05  Richard Guenther  <rguenther@suse.de>
2446         * tree-nrv.c (tree_nrv): Release VDEFs.
2447         * tree-sra.c (sra_modify_constructor_assign): Likewise.
2448         (sra_modify_assign): Likewise.
2449         * tree-vect-stmts.c (vect_remove_stores): Likewise.
2450         * tree-vect-loop.c (vect_transform_loop): Likewise.
2451         * tree-ssa-dom.c (optimize_stmt): Likewise.
2452         * tree-vect-slp.c (vect_schedule_slp): Likewise.
2453         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2455 2012-04-05  Richard Guenther  <rguenther@suse.de>
2457         * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
2458         cleanup.
2459         * gimple.h (gsi_remove): Adjust.
2460         * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
2461         * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
2462         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
2463         * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
2464         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
2465         * tree-ssa-pre.c (eliminate): Likewise.
2467 2012-04-04  Mike Stump  <mikestump@comcast.net>
2469         * doc/rtl.texi (const_double): Document as sign-extending.
2470         * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
2471         * emit-rtl.c (immed_double_int_const): Refine to state the
2472         value is signed.
2473         * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
2474         CONST_DOUBLE integers.
2475         (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
2476         negative values are converted.  Fix conversions bigger than
2477         HOST_BITS_PER_WIDE_INT.
2478         (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
2479         (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
2480         * explow.c (plus_constant_mode): Add.
2481         (plus_constant): Implement with plus_constant_mode.
2482         * rtl.h (plus_constant_mode): Add.
2484 2012-04-04  Richard Guenther  <rguenther@suse.de>
2486         PR tree-optimization/52808
2487         * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
2488         * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
2490 2012-04-04  Tristan Gingold  <gingold@adacore.com>
2492         * expr.c (expand_expr_real_2): Handle larger sizetype in
2493         POINTER_PLUS_EXPR.
2495 2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2497         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
2498         to m2a-single instead of m2e.
2500 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2502         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
2503         Change type of BITOFFSET to signed.  Make sure the lower bound of
2504         the computed range is non-negative by adjusting OFFSET and BITPOS.
2505         (expand_assignment): Adjust call to get_bit_range.
2507 2012-04-03  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2509         * h8300/h8300.c (h8300_current_function_monitor_function_p):
2510         New function. Added to check monitor functions.
2511         (h8300_option_override): Modified to generate error/warning
2512         messages for invalid combinations of different command line
2513         options.
2514         * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
2515         save EXR on stack for monitor function in case of H8S target
2516         when "-mno-exr" is passed.
2517         * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
2518         Add prototype.
2519         * doc/invoke.texi: Document H8S options.
2521 2012-04-03  Tristan Gingold  <gingold@adacore.com>
2523         * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
2524         of gcc_AC_FUNC_MMAP_BLACKLIST.
2525         * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
2526         * Makefile.in (aclocal_deps): Add mmap.m4.
2527         * configure: Regenerate.
2528         * aclocal.m4: Regenerate.
2530 2012-04-03  Richard Guenther  <rguenther@suse.de>
2532         PR tree-optimization/52808
2533         * tracer.c (tail_duplicate): Return whether we have duplicated
2534         any block.
2535         (tracer): If we have duplicated any block, cleanup the CFG.
2536         * cfghooks.c (duplicate_block): If we duplicated a loop
2537         header but not its loop, destroy the loop because it now has
2538         multiple entries.
2539         * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
2540         the cfg manipulation routines we are not creating a multiple
2541         entry loop.
2543 2012-04-03  Tristan Gingold  <gingold@adacore.com>
2545         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
2546         'byte' alignment.
2547         (vms_c_common_override_options): Allow parameterless variadic
2548         functions.
2550 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
2552         PR tree-optimization/52835
2553         * tree-data-ref.c (build_rdg): Return NULL if
2554         compute_data_dependences_for_loop failed.
2556 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2558         * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
2559         for REAL_CST as well.
2560         (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
2561         In the bitfield case, if the value is a REAL_CST, convert it first to
2562         an INTEGER_CST.
2564 2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>
2566         * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
2567         for --with-abi={x32|mx32} or --with-multilib-list=mx32.
2568         (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
2570         * config/i386/biarchx32.h: New.
2572 2012-04-02  Anatoly Sokolov  <aesok@post.ru>
2574         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
2575         * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2576         (arm_preferred_reload_class): New function.
2578 2012-04-02  Richard Guenther  <rguenther@suse.de>
2580         PR tree-optimization/52756
2581         * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
2582         (thread_through_loop_header): After threading through the loop latch
2583         remove the split part from the loop and clear further threading
2584         opportunities that would create a multiple entry loop.
2586 2012-04-02  Richard Guenther  <rguenther@suse.de>
2588         PR rtl-optimization/52800
2589         * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
2590         CLEANUP_CFG_CHANGED.
2592 2012-04-02  Richard Guenther  <rguenther@suse.de>
2594         PR middle-end/52803
2595         * loop-init.c (gate_handle_loop2): Destroy loops here if
2596         we don't enter RTL loop optimizers.
2598 2012-04-02  Uros Bizjak  <ubizjak@gmail.com>
2600         Partially revert:
2601         2012-03-29  Richard Guenther  <rguenther@suse.de>
2603         * rtl.h (extended_count): Remove.
2604         * combine.c (extended_count): Remove.
2606 2012-04-02  Dodji Seketeli  <dodji@redhat.com>
2608         PR c++/40942
2609         * pt.c (more_specialized_fn):  Don't apply decay conversion to
2610         types of function parameters.
2612 2012-04-02  Tristan Gingold  <gingold@adacore.com>
2614         * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
2615         (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
2616         (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
2617         (ggc_pch_this_base): Use uintptr_t instead of size_t.
2619 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
2621         PR bootstrap/52784
2622         * config/i386/i386.c (ix86_option_override_internal): Don't
2623         check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
2625 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2627         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
2628         (stmt_can_make_abnormal_goto): Use it.
2629         (is_ctrl_altering_stmt): Likewise.
2631 2012-03-30  Naveen H.S  <naveen.S@kpitcummins.com>
2632             Kaz Kojima  <kkojima@gcc.gnu.org>
2634         * config/sh/sh.c (push_regs): Skip banked registers when
2635         resbank attribute is specified.
2636         (sh_expand_epilogue): Likewise.
2638 2012-03-30  Richard Henderson  <rth@redhat.com>
2640         PR debug/52727
2641         * combine-stack-adj.c (prev_active_insn_bb): New.
2642         (next_active_insn_bb): New.
2643         (force_move_args_size_note): New.
2644         (combine_stack_adjustments_for_block): Use it.
2646 2012-03-30  Richard Henderson  <rth@redhat.com>
2648         * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
2649         (ix86_expand_vector_init_duplicate): Initialize it.
2650         (expand_vec_perm_palignr): Likewise.
2651         (ix86_expand_vec_perm_const): Likewise.
2652         (ix86_vectorize_vec_perm_const_ok): Likewise.
2653         (expand_vec_perm_blend): Use it.
2654         (expand_vec_perm_vpermil): Likewise.
2655         (expand_vec_perm_pshufb): Likewise.
2656         (expand_vec_perm_1): Likewise.
2657         (expand_vec_perm_pshuflw_pshufhw): Likewise.
2658         (expand_vec_perm_interleave2): Likewise.
2659         (expand_vec_perm_vpermq_perm_1): Likewise.
2660         (expand_vec_perm_vperm2f128): Likewise.
2661         (expand_vec_perm_interleave3): Likewise.
2662         (expand_vec_perm_vperm2f128_vblend): Likewise.
2663         (expand_vec_perm_vpshufb2_vpermq): Likewise.
2664         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
2665         (expand_vec_perm_broadcast): Likewise.
2666         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
2668 2012-03-30  Richard Henderson  <rth@redhat.com>
2670         * dwarf2out.c (gen_variable_die): Initialize off.
2672 2012-03-30  Tristan Gingold  <gingold@adacore.com>
2674         * config/vms/vms-f.c: New file.
2675         * config/vms/t-vms (vms-f.o): New rule.
2676         * config.gcc (*-*-*vms*): Define fortran_target_objs.
2678 2012-03-30  Richard Guenther  <rguenther@suse.de>
2680         PR tree-optimization/52754
2681         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2682         propagate arbitrary addresses into really plain dereferences.
2684 2012-03-30  Richard Guenther <rguenther@suse.de>
2686         PR middle-end/52772
2687         * except.c (emit_to_new_bb_before): Move loop updating ...
2688         (dw2_build_landing_pads): ... here.  Use a proper block for
2689         querying the loop father.
2691 2012-03-30  Tristan Gingold  <gingold@adacore.com>
2693         * config/ia64/ia64.c (ia64_section_type_flags): Remove
2694         common_object attribute handling.
2695         (SECTION_VMS_OVERLAY): Remove
2696         (ia64_vms_common_object_attribute): Replace abort with an assert.
2697         Do not set DECL_SECTION_NAME.
2698         (ia64_vms_output_aligned_decl_common): Handle common_object
2699         attribute.
2700         (ia64_vms_elf_asm_named_section): Remove.
2701         * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
2703 2012-03-30  Richard Guenther  <rguenther@suse.de>
2705         PR middle-end/52786
2706         * double-int.c (rshift_double): Remove not needed cast.
2708 2012-03-30  Richard Guenther  <rguenther@suse.de>
2710         * tree-affine.h (print_aff): Remove.
2711         * tree-affine.c (print_aff): Make static.
2712         * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
2713         (get_references_in_stmt): Likewise.
2714         (print_direction_vector): Likewise.
2715         (print_dir_vectors): Likewise.
2716         (print_dist_vectors): Likewise.
2717         (dump_subscript): Likewise.
2718         (dump_ddrs): Likewise.
2719         (dump_dist_dir_vectors): Likewise.
2720         (dump_data_references): Likewise.
2721         (dump_data_dependence_relation): Likewise.
2722         (dump_data_dependence_direction): Likewise.
2723         (dump_rdg_vertex): Likewise.
2724         (dump_rdg_component): Likewise.
2725         (debug_ddrs): Declare.
2726         (struct data_ref_loc_d): Move ...
2727         * tree-data-ref.c (struct data_ref_loc_d): ... here.
2728         (get_references_in_stmt): Make static.
2729         (dump_data_references): Likewise.
2730         (dump_subscript): Likewise.
2731         (print_direction_vector): Likewise.
2732         (print_dir_vectors): Likewise.
2733         (print_dist_vectors): Likewise.
2734         (dump_data_dependence_relation): Likewise.
2735         (dump_dist_dir_vectors): Likewise.
2736         (dump_ddrs): Likewise.
2737         (dump_rdg_vertex): Likewise.
2738         (dump_rdg_component): Likewise.
2739         (debug_ddrs): New function.
2740         (access_matrix_get_index_for_parameter): Remove.
2742 2012-03-30  Tristan Gingold  <gingold@adacore.com>
2744         * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
2745         (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
2746         (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
2747         (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
2748         (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
2749         (vms_patch_builtins): Handle new flags
2750         * config/vms/vms-crtlmap.map: Completed using nm on
2751         c and math system libraries.
2752         * config/vms/make-crtlmap.awk: Handle any number of flags.
2754 2012-03-30  Martin Jambor  <mjambor@suse.cz>
2756         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
2757         is a builtin_stack_save in a dominating BB.
2759 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
2761         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
2762         crossing 128bit lane boundary.
2764 2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
2766         * ira-color.c (setup_left_conflict_sizes_p): Process all
2767         conflicting objects.
2769 2012-03-29  Jakub Jelinek  <jakub@redhat.com>
2771         PR tree-optimization/52760
2772         * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
2773         shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
2775 2012-03-29  Richard Guenther  <rguenther@suse.de>
2777         * cgraph.h (cgraph_materialize_all_clones): Remove.
2778         (reset_inline_failed): Likewise.
2779         * cgraphunit.c (cgraph_materialize_all_clones): Make static.
2780         * cgraphbuild.c (reset_inline_failed): Remove.
2781         * rtl.h (cse_main): Remove.
2782         (extended_count): Likewise.
2783         * cse.c (dump_class): Mark as DEBUG_FUNCTION.
2784         (cse_main): Make static.
2785         * combine.c (extended_count): Remove.
2786         (dump_combine_stats): Mark as DEBUG_FUNCTION.
2787         * basic-block.h (reorder_basic_blocks): Remove.
2788         * bb-reorder.c (reorder_basic_blocks): Make static.
2789         * Makefile.in (dse.o): Remove dse.h dependency.
2790         * dse.h: Remove.
2791         * dse.c (gate_dse): Remove.
2792         (clear_alias_mode_eq): Likewise.
2793         (clear_alias_mode_hash): Likewise.
2794         (dse_record_singleton_alias_set): Likewise.
2795         (dse_invalidate_singleton_alias_set): Likewise.
2797 2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>
2799         * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
2800         crtbegin_so%O%s for -shared.
2801         (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
2803 2012-03-29  Richard Guenther  <rguenther@suse.de>
2805         * tree-flow.h (struct pre_expr_d): Remove forward declaration.
2806         (add_to_value): Remove.
2807         (print_value_expressions): Likewise.
2808         * tree-ssa-pre.c (add_to_value): Make static.
2809         (print_value_expressions): Likewise.
2810         * gimple.h (gimple_adjust_this_by_delta): Remove.
2811         * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
2813 2012-03-29  Richard Guenther  <rguenther@suse.de>
2815         PR middle-end/50708
2816         * double-int.h (rshift_double): Remove.
2817         * double-int.c (lshift_double): Use absu_hwi to make count positive.
2818         (rshift_double): Make static, take unsigned count argument,
2819         remove handling of negative count argument.
2820         (double_int_rshift): Dispatch to lshift_double.
2822 2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
2824         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
2825         OPTION_MASK_ABI_64.
2827         * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
2828         (SPEC_X32): Likewise.
2829         (MULTILIB_DEFAULTS): Likewise.
2831         * config/i386/i386.c (isa_opts): Remove -m64.
2832         (ix86_target_string): Properly handle -m32/-m64/-mx32.
2833         (ix86_option_override_internal): Properly
2834         set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
2835         handle -m32, -m64 and -mx32.
2837         * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
2838         with OPTION_ABI_X32.  Moved after TARGET_LP64.
2839         (TARGET_LP64): Changed to OPTION_ABI_64.
2841         * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
2842         (mx32): Replace ISA_X32 with ABI_X32.
2844 2012-03-28  Eric Botcazou  <ebotcazou@adacore.com>
2846         * tree.c (tree_size) <VECTOR_CST>: New case.
2848 2012-03-28  Uros Bizjak  <ubizjak@gmail.com>
2850         * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
2851         (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
2853 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
2855         PR middle-end/52691
2856         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
2857         __builtin_va_start to __builtin_next_arg if the latter is
2858         builtin_decl_explicit_p rather than when it is not.
2860         PR middle-end/52750
2861         * tree-vect-generic.c (vector_element): Perform multiplication
2862         for pos in bitsizetype type instead of idx type.
2864 2012-03-28  Richard Guenther  <rguenther@suse.de>
2866         * loop-init.c (loop_optimizer_init): If loops are preserved
2867         perform incremental initialization of required loop features.
2868         (loop_optimizer_finalize): If loops are to be preserved only
2869         clean up optional loop features.
2870         (rtl_loop_done): Forcefully free loops here.
2871         * cgraph.c (cgraph_release_function_body): Forcefully free loops.
2872         * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
2873         to existing loops.
2874         (construct_init_block): Likewise.
2875         (construct_exit_block): Likewise.
2876         (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
2877         the CFG after expanding.
2878         * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
2879         If we needed to calculate them, free them afterwards.
2880         * tree-pass.h (PROP_loops): New define.
2881         * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
2882         * basic-block.h (CLEANUP_CFG_CHANGED): New.
2883         * cfgcleanup.c (merge_blocks_move): Protect loop latches.
2884         (cleanup_cfg): If we did something and have loops around, fix them up.
2885         * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
2886         with CLEANUP_CFG_CHANGED.
2887         * cfghooks.c (merge_blocks): If we merge a loop header into
2888         its predecessor, update the loop structure.
2889         (duplicate_block): If we copy a loop latch, adjust loop state
2890         to note we may have multiple latches.
2891         (delete_basic_block): Mark loops for fixup if we remove a loop.
2892         * cfganal.c (forwarder_block_p): Protect loop latches, headers
2893         and preheaders.
2894         * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
2895         (cfg_layout_can_merge_blocks_p): Likewise.
2896         * cprop.c (bypass_block): If we create a loop with multiple
2897         entries, mark it for removal.
2898         * except.c (emit_to_new_bb_before): Add the new basic-block
2899         to existing loops.
2900         * tree-eh.c (lower_resx): Likewise.
2901         * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
2902         (expand_omp_taskreg): Likewise.
2903         * tree-inline.c (initialize_cfun): Likewise.
2904         * tree-mudflap.c (add_bb_to_loop): Prototype.
2905         (mf_build_check_statement_for): Properly add new basic-blocks
2906         to existing loops.
2907         * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
2908         if we remove a loop.
2909         (thread_through_loop_header): Likewise.
2910         * trans-mem.c (tm_log_emit_save_or_restores): Properly add
2911         new basic-blocks to existing loops.
2912         (expand_transaction): Likewise.
2913         * Makefile.in (except.o): Add $(CFGLOOP_H).
2914         (expr.o): Likewise.
2915         (cgraph.o): Likewise.
2916         (cprop.o): Likewise.
2917         (cfgexpand.o): Likewise.
2918         (cfganal.o): Likewise.
2919         (trans-mem.o): Likewise.
2920         (tree-eh.o): Likewise.
2922 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
2924         PR target/52692
2925         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
2926         (avr_builtin_decl): New static function.
2927         (struct avr_builtin_description, avr_bdesc): Move up.
2928         Add GTY marker. Add field fndecl. Remove redundant field id.
2929         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
2930         (avr_expand_builtin): Code cleanup because .id is removed.
2932 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
2934         PR target/52737
2935         * config.gcc (tm_file): Remove avr/multilib.h.
2937         * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
2939         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
2940         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
2941         * config/avr/t-avr: Remove generation of multilib.h.
2942         * config/avr/t-multilib: Regenerate.
2943         * config/avr/multilib.h: Remove.
2944         * config/avr/avr.opt (-msp8): New option.
2945         (avr_sp8): New variable.
2946         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
2947         * config/avr/avr.h (AVR_HAVE_SPH): New define.
2948         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
2949         (avr_device_to_sp8): New prototype.
2950         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
2951         (DRIVER_SELF_SPECS): New define.
2952         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
2953         __AVR_SP8__, __AVR_HAVE_SPH__.
2954         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
2955         AVR_HAVE_8BIT_SP to decide if SP_H is present.
2956         (avr_file_start): Ditto.
2958 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
2960         PR target/52736
2961         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
2962         instead of 8 in adjust_address.
2964 2012-03-27  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
2966         PR middle-end/51893
2967         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
2968         targets.
2970 2012-03-27  Oleg Endo  <olegendo@gcc.gnu.org>
2972         PR target/50751
2973         * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
2974         Rearrange conditional logic.  Move displacement address calculations
2975         to ...
2976         (sh_find_mov_disp_adjust): ... this new function.
2978 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2980         * config/arm/arm.opt (mapcs): Remove MaskExists.
2981         * config/cris/linux.opt (mno-gotplt): Likewise.
2982         * config/i386/i386.opt (mhard-float): Likewise.
2983         (msse4): Likewise.
2984         (mno-sse4): Likewise.
2985         * config/m68k/m68k.opt (mhard-float): Likewise.
2986         * config/mep/mep.op (mcop32): Likewise.
2987         * config/pa/pa-hpux.opt (msio): Likewise.
2988         * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
2989         * config/picochip/picochip.opt (mlittle): Likewise.
2990         * config/sh/sh.opt (mrenesas): Likewise.
2991         * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
2992         * config/sparc/sparc.opt (mhard-float): Likewise.
2993         * config/v850/v850.opt (mv850es): Likewise.
2994         * config/vax/vax.opt (mg-float): Likewise.
2996 2012-03-27  Martin Jambor  <mjambor@suse.cz>
2998         PR middle-end/52693
2999         * tree-sra.c (sra_modify_assign): Do not call
3000         load_assign_lhs_subreplacements when working with an unscalarizable
3001         region.
3003 2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
3005         PR target/52698
3006         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
3007         New prototype.
3008         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
3009         * config/i386/i386.c: Include reload.h.
3010         (ix86_legitimize_reload_address): New function.
3012 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3014         * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
3015         hasn't been allocated.  Define a target macro for Mask and
3016         InverseMask if it hasn't been defined.  Remove MaskExists handling.
3018         * doc/options.texi: Remove MaskExists.
3020 2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
3022         PR target/52667
3023         * config/sh/sh.c (find_barrier): Add equality check of last_got
3024         to avoid going above orig insn. Update comments.
3026 2012-03-27  Richard Guenther  <rguenther@suse.de>
3028         PR middle-end/52720
3029         * fold-const.c (try_move_mult_to_index): Handle &x.array more
3030         explicitely.
3032 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
3034         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
3035         of a unit before computing the offset in units.
3036         * expr.c (get_bit_range): Return the null range if the enclosing record
3037         is part of a larger bit field.
3039 2012-03-27  Tristan Gingold  <gingold@adacore.com>
3041         * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
3042         * config/ia64/ia64.md: Remove mode in template.
3043         Sign extend operand in expand_simple_binop.
3044         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
3045         CASE_VECTOR_MODE instead of TARGET_ILP32.
3046         (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
3048 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
3050         * varasm.c (assemble_external): #if 0 out the new assert from the
3051         previous commit, it breaks the Java and Go front ends.
3053 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
3055         * toplev.c (check_global_declaration_1): Do not call assemble_external.
3056         * expr.c (emit_block_move_libcall_fn): Likewise.
3057         (clear_storage_libcall_fn): Likewise.
3058         (expand_expr_addr_expr_1): Likewise.
3059         (expand_expr_real_1): Likewise.
3060         * calls.c (rtx_for_function_call): Likewise.
3062         * varasm.c (assemble_external): Assert this function is only called
3063         during or after expanding to RTL.
3065 2012-03-26  Martin Jambor  <mjambor@suse.cz>
3067         PR tree-optimization/50052
3068         * tree-sra.c (tree_non_aligned_mem_p): Removed.
3069         (tree_non_aligned_mem_for_access_p): Likewise.
3070         (build_accesses_from_assign): Removed strict alignment requirements
3071         checks.
3072         (access_precludes_ipa_sra_p): Likewise.
3074 2012-03-26  Richard Guenther  <rguenther@suse.de>
3076         PR tree-optimization/52701
3077         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
3078         compute and set the evolution part of PHI nodes.
3080 2012-03-26  Richard Guenther  <rguenther@suse.de>
3082         PR tree-optimization/52721
3083         * tree-vect-stmts.c (vect_init_vector): Handle scalars.
3085 2012-03-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
3087         PR tree-optimization/52686
3088         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
3089         WIDEN_LSHIFT_EXPR.
3091 2012-03-26  Tristan Gingold  <gingold@adacore.com>
3093         * config/alpha/vms.h (LINK_SPEC): Simplify.
3094         (STARTFILE_SPEC): Remove -mvms-return-codes handling.
3095         (NAME__MAIN, SYMBOL__MAIN): Remove.
3096         (VMS_DEBUG_MAIN_POINTER): Remove.
3097         * config/ia64/vms.h: Likewise.
3098         * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
3099         code to vms.c.  Call vms_start_function.
3100         * config/ia64/ia64.c (ia64_start_function): Likewise.
3101         * config/vms/vms-protos.h (vms_start_function): Declare.
3102         * config/vms/vms.c (vms_start_function): New function.
3103         * config/vms/vms.h (MATH_LIBRARY): Define.
3104         (VMS_DEBUG_MAIN_POINTER): Define.
3106 2012-03-26  Eric Botcazou  <ebotcazou@adacore.com>
3108         PR rtl-optimization/52629
3109         * reload1.c (count_pseudo): Short-circuit common case.
3110         (count_spilled_pseudo): Return early for pseudos without hard regs.
3111         Assert that the pseudo has got a hard reg before manipulating it.
3113 2012-03-24  Jan Hubicka  <jh@suse.cz>
3115         PR lto/51663
3116         * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
3117         (decide_is_variable_needed): Do not handle toplevel reorder here.
3118         * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
3119         * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
3120         even at -O0.
3122 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3124         * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
3125         and str_bitsize instead of more convoluted expressions.
3127 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3129         PR target/52610
3130         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
3132 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3134         PR target/52656
3135         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
3137 2012-03-23  Martin Jambor  <mjambor@suse.cz>
3139         * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
3141 2012-03-23  Richard Guenther  <rguenther@suse.de>
3143         PR tree-optimization/52678
3144         * tree-vectorizer.h (struct _stmt_vec_info): Add
3145         loop_phi_evolution_part member.
3146         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
3147         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
3148         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3149         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3150         Use the cached evolution part and the PHI nodes value from
3151         the loop preheader edge instead of re-analyzing the evolution.
3153 2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3155         * config/mips/mips-tables.opt: Update.
3156         * config/mips/mips.md (processor): Add xlp.
3157         * config/mips/mips-cpus.def: Add xlp.
3158         * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
3159         5KF for now.
3160         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
3161         * doc/invoke.texi: Mention XLP.
3163 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
3165         PR middle-end/52547
3166         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
3167         on any new_local_var_chain vars declared during recursing on
3168         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
3170 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
3172         * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
3173         (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
3174         (ASM_OUTPUT_LOCAL): Ditto.
3175         (ASM_OUTPUT_COMMON): Remove.
3176         * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
3177         * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
3179 2012-03-22  Jan Hubicka  <jh@suse.cz>
3181         PR middle-end/51737
3182         * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
3183         parameter.
3184         * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
3185         * ipa-inline-transform.c (save_inline_function_body): Remove
3186         copied clone if needed.
3187         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
3189 2012-03-22  Richard Guenther  <rguenther@suse.de>
3191         PR middle-end/52666
3192         * fold-const.c (fold_ternary_loc): Fix typo.
3194 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
3196         PR target/52496
3197         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
3198         (unspecv): Add UNSPECV_MEMORY_BARRIER.
3199         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
3200         (delay_cycles_1, delay_cycles_2): Ditto.
3201         (delay_cycles_3, delay_cycles_4): Ditto.
3202         (nopv, *nopv): Ditto.
3203         (sleep, *sleep): Ditto.
3204         (wdr, *wdr): Ditto.
3206 2012-03-22  Richard Guenther  <rguenther@suse.de>
3208         PR tree-optimization/52548
3209         * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
3210         because of clobbers.
3211         (prune_clobbered_mems): New function.
3212         (compute_antic_aux): Use it to prune ANTIC_OUT.
3213         (compute_partial_antic_aux): Use it to prune PA_IN.
3214         (compute_avail): Only insert expressions into EXP_GEN that are not
3215         invalidated when translated up to the beginning of the block.
3217 2012-03-22  Richard Guenther  <rguenther@suse.de>
3219         PR tree-optimization/52638
3220         * tree-vect-stmts.c (vect_init_vector_1): New function, split
3221         out from ...
3222         (vect_init_vector): ... here.  Handle scalar vector inits.
3223         (vect_get_vec_def_for_operand): Adjust.
3224         (vectorizable_load): Likewise.
3226 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
3228         * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
3229         (alpha*-*-freebsd*): Ditto.
3230         (alpha*-*-netbsd*): Ditto.
3231         (alpha*-*-openbsd*): Ditto.
3232         * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
3233         (DWARF2_DEBUGGING_INFO): Remove.
3234         (PREFERRED_DEBUGGING_TYPE): Remove.
3235         (ASM_FINAL_SPEC): Remove.
3236         (IDENT_ASM_OP): Remove.
3237         (ASM_OUTPUT_IDENT): Remove.
3238         (SKIP_ASM_OP): Remove.
3239         (ASM_OUTPUT_SKIP): Remove.
3240         (ALIGN_ASM_OP): Remove.
3241         (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
3242         (ASM_OUTPUT_CASE_LABEL): Remove.
3243         (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
3244         (COMMON_ASM_OP): Remove.
3245         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
3246         (ASCII_DATA_ASM_OP): Remove.
3247         (READONLY_DATA_SECTION_ASM_OP): Remove.
3248         (INIT_SECTION_ASM_OP): Remove.
3249         (FINI_SECTION_ASM_OP): Remove.
3250         (ASM_SECTION_START_OP): Remove.
3251         (ASM_OUTPUT_SECTION_START_FILE): Remove.
3252         (TARGET_ASM_NAMED_SECTION): Remove.
3253         (TARGET_ASM_SELECT_SECTION): Remove.
3254         (MAKE_DECL_ONE_ONLY): Remove.
3255         (TYPE_ASM_OP): Remove.
3256         (SIZE_ASM_OP): Remove.
3257         (ASM_WEAKEN_LABEL): Remove.
3258         (TYPE_OPERAND_FMT): Remove.
3259         (ASM_DECLARE_RESULT): Remove.
3260         (ASM_DECLARE_OBJECT_NAME): Remove.
3261         (ASM_FINISH_DECLARE_OBJECT): Remove.
3262         (ELF_ASCII_ESCAPES): Remove.
3263         (ELF_STRING_LIMIT): Remove.
3264         (STRING_ASM_OP): Remove.
3265         (ASM_OUTPUT_EXTERNAL): Remove.
3266         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
3267         * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
3268         before define.
3269         (ASM_DECLARE_FUNCTION_NAME): Ditto.
3270         (ASM_DECLARE_FUNCTION_SIZE): Ditto.
3271         (ASM_GENERATE_INTERNAL_LABEL): Ditto.
3272         (ASM_OUTPUT_SKIP): Ditto.
3273         (READONLY_DATA_SECTION_ASM_OP): Remove.
3274         (USER_LABEL_PREFIX): Remove.
3275         (ASM_OUTPUT_ASCII): Remove.
3276         (ASM_OUTPUT_CASE_LABEL): Remove.
3277         (NO_DOLLAR_IN_LABEL): Undefine.
3279 2012-03-22  Richard Guenther  <rguenther@suse.de>
3281         PR tree-optimization/52459
3282         * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
3283         PHI insertion for calls.
3285 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
3287         * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
3288         find_sets_in_insn, canonicalize_insn): Split out from ...
3289         (cse_insn): ... here.
3290         (invalidate_from_clobbers): Take an insn instead of the pattern.
3292 2012-03-21  Oleg Endo  <olegendo@gcc.gnu.org>
3294         PR target/52479
3295         * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
3296         * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
3297         * config/sh/sh.md (sindf2, cosdf2): Remove.
3299 2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
3301         PR target/52642
3302         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
3303         prologue for unwinder and profiler.
3305 2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
3307         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
3308         Introduce emul_name to select the right linker emulation for
3309         powerpc64-*-freebsd*.
3310         * configure: Regenerate.
3311         * config.gcc: Add bits to support powerpc64-*-freebsd*.
3312         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
3313         * config/rs6000/freebsd64.h: New file.
3314         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
3315         POWERPC_FREEBSD.
3316         (rs6000_savres_strategy): Likewise.
3317         (rs6000_savres_routine_name): Likewise.
3318         (rs6000_elf_file_end): Likewise.
3319         * config/rs6000/t-freebsd64: New file.
3320         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
3321         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
3323         * config/rs6000/freebsd64.h: Remove duplicated entries from last
3324         commit.
3325         * config/rs6000/t-freebsd64: Likewise.
3327 2012-03-21  Georg-Johann Lay  <avr@gjlay.de>
3329         PR rtl-optimization/52543
3330         PR target/52461
3331         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
3332         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
3333         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
3334         (avr_load_libgcc_p): Restrict to __flash loads.
3335         (avr_out_lpm): Only handle 1-byte loads from __flash.
3336         (avr_load_lpm): New function.
3337         (avr_find_unused_d_reg): Remove.
3338         (avr_out_lpm_no_lpmx): Remove.
3339         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
3340         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
3341         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
3342         (load_<mode>, load_<mode>_clobber): New insns.
3343         (mov<mode>): For multi-byte move from non-generic
3344         16-bit address spaces: Expand to load_<mode> resp.
3345         load_<mode>_clobber.
3346         (load<mode>_libgcc): Remove expander.
3347         (split-lpmx): Remove split.
3349 2012-03-21  Richard Earnshaw  <rearnsha@arm.com>
3351         * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
3352         * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
3353         All callers changed.
3354         (Fixed_core_reg): New feature.
3355         (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
3356         disassembly.
3357         * neon-testgen.ml: Handle Fixed_core_reg.
3359 2012-03-21  Andrew Stubbs  <ams@codesourcery.com>
3361         * config/arm/arm.c (thumb2_reorg): Add complete support
3362         for 16-bit instructions.
3363         * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
3365 2012-03-21  Richard Guenther  <rguenther@suse.de>
3367         PR tree-optimizer/52636
3368         * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
3369         to the appropriate type.
3371 2012-03-21  Richard Guenther  <rguenther@suse.de>
3373         * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
3374         dependencies.
3375         * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
3376         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
3377         * passes.c (init_optimization_passes): Remove pass_init_function,
3378         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
3379         * tree-pass.h (pass_init_function): Remove.
3380         (pass_jump): Remove.
3381         (pass_initial_value_sets): Remove.
3382         (pass_unshare_all_rtl): Remove.
3383         * integrate.c (pass_initial_value_sets): Remove.
3384         * emit-rtl.c (pass_unshare_all_rtl): Remove.
3385         * tree.h (init_function_for_compilation): Remove.
3386         * function.c (init_function_for_compilation): Remove.
3387         (pass_init_function): Remove.
3388         * cfgcleanup.c (rest_of_handle_jump): Remove.
3389         (pass_jump): Remove.
3391 2012-03-20  Jason Merrill  <jason@redhat.com>
3393         * tree-streamer-in.c (streamer_alloc_tree): Call
3394         ggc_alloc_zone_cleared_tree_node instead of
3395         ggc_alloc_zone_cleared_tree_node_stat.
3397 2012-03-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
3399         * doc/extend.texi (Template Instantiation): Remove anachronisms.
3401 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
3403         PR target/52607
3404         * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
3405         (ix86_expand_vec_perm_const_1): Call it.
3407         * config/i386/i386.c (vselect_insn): New variable.
3408         (init_vselect_insn): New function.
3409         (expand_vselect, expand_vselect_insn): Add testing_p argument.
3410         Call init_vselect_insn if vselect_insn is NULL.  Adjust
3411         PATTERN (vselect_insn), instead of creating a new insn each time,
3412         only emit a copy of it if not testing and recog has been successful.
3413         (expand_vec_perm_pshufb, expand_vec_perm_1,
3414         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
3415         callers.
3417         PR target/52607
3418         * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
3419         ("enabled" attribute): Handle avx2 and noavx2 isas.
3420         * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
3421         New insns.
3422         (vec_dup<mode>): Add avx2 =x,x alternative.
3423         (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
3424         (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
3425         For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
3426         * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
3427         for V8SFmode.
3428         (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
3429         if possible, handle also V8SFmode.
3431 2012-03-20  Richard Earnshaw  <rearnsha@arm.com>
3433         * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
3434         * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
3435         reg_or_zero_operand predicate.
3436         (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
3438 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
3440         * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
3441         If operand isn't UNSPEC, return 0.
3443 2012-03-20  Richard Guenther  <rguenther@suse.de>
3445         * tree-pass.h (pass_rtl_eh): Remove.
3446         * except.c (gate_handle_eh): Likewise.
3447         (rest_of_handle_eh): Likewise.
3448         (pass_rtl_eh): Likewise.
3449         (finish_eh_generation): Export.
3450         * except.h (finish_eh_generation): Declare.
3451         * passes.c (init_optimization_passes): Remove pass_rtl_eh.
3452         * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
3453         after expanding stack alignment.  Instead of compacting blocks
3454         call cleanup_cfg.
3456 2012-03-20  Richard Guenther  <rguenther@suse.de>
3458         * stor-layout.c (finish_bitfield_representative): Fallback
3459         to conservative maximum size if the padding up to the next
3460         field cannot be computed as a constant.
3461         (finish_bitfield_layout): If we cannot compute the distance
3462         between the start of the bitfield representative and the
3463         bitfield member start a new representative.
3464         * expr.c (get_bit_range): The distance between the start of
3465         the bitfield representative and the bitfield member is zero
3466         if the field offsets are not constants.
3468 2012-03-20  Tristan Gingold  <gingold@adacore.com>
3470         * tree.h (enum size_type_kind): Add stk_ prefix to constants,
3471         convert in lowercase.
3472         (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
3473         (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
3474         * stor-layout.c (sizetype_tab): Adjust.
3475         (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
3476         * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
3477         instead of type_kind_last.
3478         * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
3479         instead of size_int_kind.
3480         * doc/tm.texi.in (Type Layout): Document SIZETYPE.
3481         * doc/tm.texi: Regenerate.
3482         * defaults.h (SIZETYPE): Provide a default value.
3483         * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
3484         (SIZETYPE): Define.
3486 2012-03-20  Oleg Endo  <olegendo@gcc.gnu.org>
3488         * config/sh/sh.md: Use braced string notation where applicable.
3490 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
3492         * config/i386/i386.md (allocate_stack): Simplify.
3494 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
3496         * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
3497         copy_to_mode_reg (Pmode, ...).
3498         (expand_builtin_frame_address): Ditto.
3499         * expr.c (emit_block_move_via_libcall): Ditto.
3500         (set_storage_via_libcall): Ditto.
3502         * config/i386/i386.c (ix86_expand_movmem): Ditto.
3503         (ix86_expand_setmem): Ditto.
3504         (ix86_trampoline_init): DItto.
3505         * config/i386/i386.md (cmpstrnsi): Ditto.
3507 2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>
3509         * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
3510         * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
3511         * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
3512         (SH Options): Likewise.
3514 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
3516         * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
3517         Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
3518         (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
3519         DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
3520         (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
3522         Revert:
3523         2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
3525         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
3526         * config/i386/i386.c (ix86_decompose_address): Use
3527         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
3528         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
3529         thread pointer to a register.
3531         Revert:
3532         2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
3534         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
3535         if Pmode != word_mode.
3536         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
3537         Pmode == SImode for TARGET_X32.
3539         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
3540         (tls_initial_exec_x32): Likewise.
3542 2012-03-19  Oleg Endo  <olegendo@gcc.gnu.org>
3544         PR target/50751
3545         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
3546         DISP_ADDR_OFFSET): New macros.
3547         * config/sh/sh.c (sh_address_cost): Add SH2A special case.
3548         (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
3549         (sh_legitimize_address): Add QImode displacement handling.
3550         (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
3551         vector subregs.
3552         (sh_secondary_reload): Add QImode displacement handling.
3553         * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
3554         * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
3555         * config/sh/sh.md (extendqisi2): Remove constraints from expander.
3556         (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
3557         to register operands only.
3558         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
3559         (extendqihi2): Change insn to expander.
3560         (*extendqihi2_compact_reg): New insn.
3561         (movqi_i, movqi): Replace with ...
3562         (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
3563         *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
3564         Add new peepholes for QImode displacement addressing.
3566 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
3568         PR c++/14710
3569         * doc/invoke.texi: Document -Wuseless-cast.
3571 2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>
3573         * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
3574         * tree.h (handled_component_p): Reorder cases.
3575         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
3576         not initialize unsignedp.
3577         (loc_list_from_tree): Likewise.
3578         (fortran_common): Likewise.
3579         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3581 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
3583         * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
3584         mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
3585         (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
3586         (ix86_split_long_move): Ditto.
3587         (legitimize_tls_address): Use ix86_gen_sub3.
3588         (construct_plt_address): Assert that Pmode == DImode.
3590 2012-03-18  Uros Bizjak  <ubizjak@gmail.com>
3592         * config/i386/i386.md: Remove empty predicates and/or constraints.
3593         * config/i386/sync.md: Ditto.
3594         * config/i386/sse.md: Ditto.
3595         * config/i386/mmx.md: Ditto.
3596         * config/i386/pentium.md: Ditto.
3597         * config/i386/athlon.md: Ditto.
3599 2012-03-16  Richard Guenther  <rguenther@suse.de>
3601         PR tree-optimization/52603
3602         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
3603         comment.
3605         Revert
3606         2012-03-14  Richard Guenther  <rguenther@suse.de>
3608         PR tree-optimization/52571
3609         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3610         flag_section_anchors check ...
3611         (vect_can_force_dr_alignment_p): ... here.
3613 2012-03-16  Martin Jambor  <mjambor@suse.cz>
3615         * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
3616         memory through MEM_REFs by calling extract_bit_field.
3618 2012-03-16  Richard Guenther  <rguenther@suse.de>
3620         * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
3621         and REFERENCE_TYPE interpretations.
3622         (can_native_interpret_type_p): New function.
3623         (fold_ternary_loc): Use native encode/interpret to fold
3624         BIT_FIELD_REFs of constants.
3626 2012-03-16  Richard Guenther  <rguenther@suse.de>
3628         PR middle-end/52584
3629         * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
3630         of vector constants and constructors.
3632 2012-03-16  Richard Guenther  <rguenther@suse.de>
3634         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
3635         VIEW_CONVERT_EXPR to convert constants.
3636         (vect_is_simple_use): Treat all constants as vec_constant_def.
3638 2012-03-16  Richard Guenther  <rguenther@suse.de>
3639             Kai Tietz  <ktietz@redhat.com>
3641         PR middle-end/48814
3642         * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
3643         side-effects completely in the pre-queue and use a temporary
3644         for the result.
3646 2012-03-16  Richard Guenther  <rguenther@suse.de>
3648         * stor-layout.c (finish_bitfield_representative): Fall back
3649         to the conservative maximum size if we cannot compute the
3650         size of the tail padding.
3652 2012-03-16  Tristan Gingold  <gingold@adacore.com>
3654         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
3655         __CRTL_VER and __VMS_VER.
3656         * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
3657         and vms_c_get_vms_ver.
3658         * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
3659         functions.
3660         * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
3661         (VMS_DEFAULT_VMS_VER): Define.
3662         * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
3663         (VMS_DEFAULT_VMS_VER): Define.
3665 2012-03-16  Richard Guenther  <rguenther@suse.de>
3667         * tree-vect-loop.c (get_initial_def_for_induction): Use
3668         build_constructor directly.
3669         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
3670         build_vector_from_val.
3671         * tree.c (build_vector_from_val): Avoid creating a constructor
3672         first when we want a constant vector.
3674 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3676         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
3678 2012-03-16  Richard Guenther  <rguenther@suse.de>
3680         * tree.h (TREE_VECTOR_CST_ELTS): Remove.
3681         (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
3682         (struct tree_vector): Remove elements member, add variable size
3683         elts array member.
3684         (build_vector_stat): Declare.
3685         (build_vector): Define in terms of build_vector_stat.
3686         * tree.c (build_vector): Rename to ...
3687         (build_vector_stat): ... this.  Take array of trees as parameter.
3688         (build_vector_from_ctor): Adjust.
3689         (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
3690         initializer_zerop): Adjust.
3691         * cfgexpand.c (expand_debug_expr): Likewise.
3692         * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
3693         const_vector_from_tree): Likewise.
3694         * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
3695         native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
3696         fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
3697         * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
3698         (lto_input_ts_vector_tree_pointers): Adjust.
3699         * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
3700         (write_ts_vector_tree_pointers): Adjust.
3701         * varasm.c (const_hash_1, compare_constant, copy_constant,
3702         output_constant): Adjust.
3703         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
3704         * print-tree.c (print_node): Adjust.
3705         * tree-pretty-print.c (dump_generic_node): Adjust.
3706         * tree-vect-generic.c (uniform_vector_p, vector_element,
3707         lower_vec_perm): Adjust.
3708         * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
3709         * tree-vect-slp.c (vect_get_constant_vectors,
3710         vect_transform_slp_perm_load): Adjust.
3711         * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
3712         * expmed.c (make_tree): Adjust.
3713         * config/i386/i386.c (ix86_expand_builtin): Adjust.
3714         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
3715         and implementation.
3716         (sparc_fold_builtin): Adjust.
3718 2012-03-16  Tristan Gingold  <gingold@adacore.com>
3720         * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
3721         * config/vms/vms-stdint.h: New file.
3723 2012-03-16  Tristan Gingold  <gingold@adacore.com>
3725         * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
3726         (ia64-hp-*vms*): Replaced by ...
3727         (*-*-*vms*): ... This new entry.
3729 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
3731         PR target/52568
3732         * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
3733         (ix86_expand_vec_perm_const_1): Use it.
3735         PR target/52568
3736         * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
3737         (avx2_permv4df): Remove.
3738         (avx2_permv4di): Macroize into...
3739         (avx2_perm<mode>): ... this using VI8F_256 iterator.
3740         (avx2_permv4di_1): Macroize into...
3741         (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
3743 2012-03-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
3745         * combine.c (apply_distributive_law): Do not distribute SUBREG.
3747 2012-03-15  Ira Rosen  <irar@il.ibm.com>
3748             Ulrich Weigand  <ulrich.weigand@linaro.org>
3750         * tree-vect-patterns.c (widened_name_p): Rename to ...
3751         (type_conversion_p): ... this.  Add new argument to determine
3752         if it's a promotion or demotion operation.  Check for
3753         CONVERT_EXPR_CODE_P instead of NOP_EXPR.
3754         (vect_recog_dot_prod_pattern): Call type_conversion_p instead
3755         widened_name_p.
3756         (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
3757         vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
3758         Likewise.
3759         (vect_recog_mixed_size_cond_pattern): Likewise and allow
3760         non-constant then and else clauses.
3762 2012-03-15  Ira Rosen  <irar@il.ibm.com>
3763             Ulrich Weigand  <ulrich.weigand@linaro.org>
3765         * tree-vectorizer.h (vect_pattern_recog): Add new argument.
3766         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
3767         vect_pattern_recog.
3768         * tree-vect-patterns.c (widened_name_p): Pass basic block
3769         info to vect_is_simple_use.
3770         (vect_recog_dot_prod_pattern): Fail for basic blocks.
3771         (vect_recog_widen_sum_pattern): Likewise.
3772         (vect_handle_widen_op_by_const): Support basic blocks.
3773         (vect_operation_fits_smaller_type,
3774         vect_recog_over_widening_pattern): Likewise.
3775         (vect_recog_vector_vector_shift_pattern): Support basic blocks.
3776         Update call to vect_is_simple_use.
3777         (vect_recog_mixed_size_cond_pattern): Support basic blocks.
3778         Add printing.
3779         (check_bool_pattern): Add an argument, update call to
3780         vect_is_simple_use and the recursive calls.
3781         (vect_recog_bool_pattern): Update relevant function calls.
3782         Add printing.
3783         (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
3784         (vect_pattern_recog_1): Check for reduction only in loops.
3785         (vect_pattern_recog): Add new argument.  Support basic blocks.
3786         * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
3787         info to vect_is_simple_use_1.
3788         * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
3789         (vect_slp_analyze_bb_1): Call vect_pattern_recog.
3791 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
3792             Andrew Pinski  <apinski@cavium.com>
3794         PR middle-end/52592
3795         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
3796         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
3797         calls instead of __builtin_ir{int,ound}*.
3799 2012-03-15  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3801         * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
3802         documentation.
3804 2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3806         * config.gcc (target_type_format_char): New. Document it. Set it for
3807         arm*-*-* .
3808         * configure.ac (gnu_unique_option): Use target_type_format_char
3809         in test.  Comment rationale.
3810         * configure: Regenerate .
3812 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
3814         PR tree-optimization/52267
3815         * tree-vrp.c (masked_increment): New function.
3816         (register_edge_assert_for_2): Derive ASSERT_EXPRs
3817         from (X & CST1) cmp CST2 tests.
3819 2012-03-15  Richard Guenther  <rguenther@suse.de>
3821         PR middle-end/52580
3822         * tree-data-ref.c (subscript_dependence_tester_1): Check
3823         all dimensions for non-conflicting access functions.
3825 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3827         PR c++/44783
3828         * doc/invoke.texi [C++ Language Options]: Document
3829         -ftemplate-backtrace-limit.
3831 2012-03-15  Tristan Gingold  <gingold@adacore.com>
3833         * c-parser.c (c_parser_parameter_declaration): Handle #pragma
3834         before a parameter.
3836 2012-03-15  Tristan Gingold  <gingold@adacore.com>
3838         * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
3839         use DW_OP_call_frame_cfa.
3841 2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
3843         PR target/50797
3844         * config/i386/i386-opts.h (pmode): New.
3846         * config/i386/i386.c (ix86_option_override_internal): Properly
3847         check and set ix86_pmode.
3849         * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
3851         * config/i386/i386.opt (maddress-mode=): New.
3853         * doc/invoke.texi: Document -maddress-mode=short|long for x86.
3855 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3857         * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
3858         (dwarf2out_do_cfi_asm): Likewise.
3859         * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
3860         handling.
3861         (add_data_member_location_attribute): Likewise.
3862         (gen_array_type_die): Likewise.
3863         (gen_subprogram_die): Likewise.
3864         (gen_producer_string): Likewise.
3865         * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
3866         Remove MIPS_DEBUGGING_INFO handling.
3867         (sdb_debug_hooks): Likewise.
3868         (sdbout_begin_block): Likewise.
3869         (sdbout_end_block): Likewise.
3870         (sdbout_begin_prologue): Likewise.
3871         (sdbout_start_source_file): Likewise.
3872         (sdbout_end_source_file): Likewise.
3873         (sdbout_init): Likewise.
3874         * system.h (MIPS_DEBUGGING_INFO): Poison.
3876 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3878         * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
3879         (alpha_file_start) [MS_STAMP]: Remove.
3881         * config/alpha/elf.h (TARGET_GAS): Remove.
3882         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
3883         * config/alpha/linux.h (TARGET_DEFAULT): Remove.
3884         * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
3885         * config/alpha/vms.h (TARGET_DEFAULT): Remove.
3886         * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
3887         (alpha*-*-freebsd*): Likewise.
3888         (alpha*-*-netbsd*): Likewise.
3889         (alpha*-*-openbsd*): Likewise.
3890         (alpha*-*-*): Remove target_cpu_default2.
3891         * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
3892         handling.
3893         * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
3894         (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
3895         * config/alpha/alpha.c (print_operand): Always assume
3896         TARGET_AS_SLASH_BEFORE_SUFFIX.
3897         * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
3898         Remove TARGET_AS_CAN_SUBTRACT_LABELS.
3899         ("*builtin_setjmp_receiver_er_1"): Remove.
3900         * config/alpha/alpha.opt (malpha-as): Remove.
3901         (mgas): Ignore.
3902         * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
3903         -malpha-as, -mgas.
3904         Remove DEC Unix reference.
3906         * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
3907         (EXTENDED_COFF): Remove.
3908         * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
3909         (EXTENDED_COFF): Don't undef.
3910         * config/alpha/alpha.c (alpha_file_start): Always assume
3911         OBJECT_FORMAT_ELF.
3912         Don't set targetm.asm_file_start_file_directive.
3913         [!OBJECT_FORMAT_ELF]: Remove.
3914         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
3916         * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
3917         (DBX_DEBUGGING_INFO): Remove.
3918         (MIPS_DEBUGGING_INFO): Remove.
3919         (PREFERRED_DEBUGGING_TYPE): Remove.
3920         (DBX_OUTPUT_SOURCE_LINE): Remove.
3921         (SDB_OUTPUT_SOURCE_LINE): Remove.
3922         (DBX_CONTIN_LENGTH): Remove.
3923         (NO_DBX_FUNCTION_END): Remove.
3924         (ASM_STABS_OP): Remove.
3925         (ASM_STABN_OP): Remove.
3926         (ASM_STABD_OP): Remove.
3927         (SDB_ALLOW_FORWARD_REFERENCES): Remove.
3928         (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
3929         (PUT_SDB_DEF): Remove.
3930         (PUT_SDB_PLAIN_DEF): Remove.
3931         (PUT_SDB_TYPE): Remove.
3932         (sdb_label_count): Remove.
3933         (PUT_SDB_BLOCK_START): Remove.
3934         (PUT_SDB_BLOCK_END): Remove.
3935         (PUT_SDB_FUNCTION_START): Remove.
3936         (PUT_SDB_FUNCTION_END): Remove.
3937         (PUT_SDB_EPILOGUE_END): Remove.
3938         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
3939         (MIPS_DEBUGGING_INFO): Don't undef.
3940         (DBX_DEBUGGING_INFO): Don't undef.
3941         * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
3942         (MIPS_DEBUGGING_INFO): Don't undef.
3943         (DBX_DEBUGGING_INFO): Don't undef.
3944         * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
3945         * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
3946         handling.
3947         (alpha_start_function): Likewise.
3948         (sdb_label_count): Remove.
3949         (alpha_output_filename): Remove DBX_DEBUG handling.
3950         (alpha_file_start): Likewise.
3952 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3954         * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
3955         (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
3956         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
3957         Solaris 8 support.
3958         * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
3959         (ld_tls_support): Remove Solaris 8 references.
3960         (lwp_dir, lwp_spec): Remove support for alternate thread library.
3961         * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
3962         * configure: Regenerate.
3963         * config.in: Regenerate.
3965         * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
3966         * config/i386/sol2.h: Remove Solaris 8 references.
3968         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
3969         (i?86-*-solaris2.9): ... this.
3970         Remove Solaris 8 references.
3971         (Specific, *-*-solaris2*): Document Solaris 8 removal.
3972         Remove Solaris 8 references.
3974 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3976         * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
3977         (mips-sgi-irix6.5*): Remove.
3978         * config.host (mips-sgi-irix*): Remove.
3979         * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
3980         (set_have_as_tls): Remove *-*-irix6*.
3981         (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
3982         * configure: Regenerate.
3984         * config/mips/iris6.h: Remove.
3985         * config/mips/iris6.opt: Remove.
3986         * config/mips/t-irix6: Remove.
3988         * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
3989         (TARGET_IRIX6): Remove.
3990         (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
3991         Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
3992         * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
3993         handling.
3994         (mips_file_start): Likewise.
3995         * config/mips/mips-protos.h (irix_asm_output_align): Remove.
3997         * config/mips/driver-native.c [__sgi__]: Remove.
3998         (host_detect_local_cpu) [__sgi__]: Remove.
4000         * config/mips/gnu-user.h: Remove iris5.h reference.
4002         * config/mips/mips-modes.def: Remove IRIX 6 reference.
4003         * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
4004         * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
4005         Remove.
4007         * gcc.c (main): Move asm_debug initialization ...
4008         (asm_debug): ... here.
4010         * ginclude/stddef.h (__STDDEF_H__): Don't define.
4012         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
4013         * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
4014         * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
4015         (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
4016         [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
4017         * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
4018         Remove.
4019         * doc/tm.texi: Regenerate.
4021         * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
4022         IRIX 6 reference.
4023         (MIPS Options, -march): Remove IRIX reference.
4024         * doc/install.texi (Binaries, SGI IRIX): Remove.
4025         (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
4026         of section.
4027         * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
4029 2012-03-14  Martin Jambor  <mjambor@suse.cz>
4031         * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
4032         when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
4033         (expand_expr_real_1): Do not handle misalignment if modifier is
4034         EXPAND_WRITE.
4036 2012-03-14  Richard Guenther  <rguenther@suse.de>
4038         PR middle-end/52584
4039         * tree-vect-generic.c (type_for_widest_vector_mode): Take
4040         element type instead of mode, use build_vector_type_for_mode
4041         instead of the langhook, build a vector of proper signedness.
4042         (expand_vector_operations_1): Adjust.
4044 2012-03-14  Richard Guenther  <rguenther@suse.de>
4046         PR middle-end/52582
4047         * gimple-fold.c (canonicalize_constructor_val): Make sure we have
4048         a cgraph node for a FUNCTION_DECL that comes from a constructor.
4049         (gimple_get_virt_method_for_binfo): Likewise.
4051 2012-03-14  Richard Guenther  <rguenther@suse.de>
4053         PR tree-optimization/52571
4054         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4055         flag_section_anchors check ...
4056         (vect_can_force_dr_alignment_p): ... here.  Do not re-align
4057         DECL_COMMON variables.
4059 2012-03-14  Richard Guenther  <rguenther@suse.de>
4061         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
4062         * stor-layout.c (start_bitfield_representative): New function.
4063         (finish_bitfield_representative): Likewise.
4064         (finish_bitfield_layout): Likewise.
4065         (finish_record_layout): Call finish_bitfield_layout.
4066         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
4067         for QUAL_UNION_TYPE fields.
4068         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
4069         Stream DECL_BIT_FIELD_REPRESENTATIVE.
4070         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
4072         PR middle-end/52080
4073         PR middle-end/52097
4074         PR middle-end/48124
4075         * expr.c (get_bit_range): Unconditionally extract bitrange
4076         from DECL_BIT_FIELD_REPRESENTATIVE.
4077         (expand_assignment): Adjust call to get_bit_range.
4079 2012-03-14  Richard Guenther  <rguenther@suse.de>
4081         PR middle-end/52578
4082         * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
4083         the outermost conversion is a sign-change only.
4084         (fold_binary_loc): Disregard widening and sign-changing
4085         conversions when we determine if two variables are equal
4086         for reassociation.
4087         * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
4088         (T1)x if the outermost conversion is a sign-change only.
4090 2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
4092         Revert:
4093         2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
4095         * config/i386/predicates.md (constant_call_address_operand): Declare
4096         as special predicate.  Update all uses.
4098 2012-03-13  Jakub Jelinek  <jakub@redhat.com>
4100         PR c/52577
4101         * c-parser.c (c_parser_postfix_expression)
4102         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
4104         * config/i386/smmintrin.h: Avoid /* within a comment.
4105         * config/i386/nmmintrin.h: Likewise.
4107 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
4109         * config/i386/i386.md (xbegin): Remove constraint from expander.
4111 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
4113         * config/i386/predicates.md (constant_call_address_operand): Declare
4114         as special predicate.  Update all uses.
4115         * config/i386/i386.md: Remove mode from constant_call_address_operand
4116         predicates.
4117         * config/i386/i386.c (ix86_output_call_insn): Call
4118         constant_call_address_operand with VOIDmode.
4120 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
4122         * config/i386/i386.c (ix86_decompose_address): Handle subregs of
4123         AND zero extended address correctly.
4125 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
4127         * config/i386/predicates.md (tls_symbolic_operand): Declare as
4128         special predicate.
4129         (tls_modbase_operand): Ditto.
4130         * config/i386/i386.md: Remove mode from tls_symbolic_operand and
4131         tls_modbase_operand predicates.
4133 2012-03-13  Martin Jambor  <mjambor@suse.cz>
4135         * expr.c (expand_assignment): Handle misaligned scalar writes to
4136         memory through top-level MEM_REFs by calling store_bit_field.
4138 2012-03-13  Richard Guenther  <rguenther@suse.de>
4140         PR middle-end/52134
4141         * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
4142         if Y is a constant multiple of 1 << CST.
4144 2012-03-13  Georg-Johann Lay  <avr@gjlay.de>
4146         PR target/52488
4147         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
4148         offset (size) to a value the insns can deal with.
4149         (expand_epilogue): Ditto.
4151 2012-03-13  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4153         * config/arm/neon.ml (ops): Fixup expected instructions for
4154         unsigned vector compares.
4156 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
4158         * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
4159         addresses only when %reg is not in word mode.
4161 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4163         * config/microblaze/microblaze.md: Fix typo.
4164         * tree-if-conv.c: Likewise.
4165         * tree-vect-patterns.c: Likewise.
4167 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4169         * config.gcc (extra_passes): Remove.
4170         * configure.ac (extra_passes): Don't substitute.
4171         * configure: Regenerate.
4172         * Makefile.in (EXTRA_PASSES): Remove.
4173         (GCC_PASSES): Remove $(EXTRA_PASSES).
4174         (MOSTLYCLEANFILES): Likewise.
4175         (native): Likewise.
4176         (install-common): Likewise.
4178 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
4180         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
4181         * config/i386/i386.c (ix86_decompose_address): Use
4182         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
4183         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
4184         thread pointer to a register.
4186 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
4188         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
4189         on tls_symbolic_operand.
4190         (tls_global_dynamic_64_<mode>): Likewise.
4192 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
4194         PR other/52545
4195         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
4196         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
4198 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
4200         PR target/52499
4201         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
4202         type from reg_class_t to enum reg_class.
4203         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
4205 2012-03-12  Andrew Pinski  <apinski@cavium.com>
4207         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
4208         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
4209         (value_replacement): Likewise.
4210         (empty_block_p): Check also if the PHIs for the block are empty.
4212 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
4214         PR target/52148
4215         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
4216         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
4217         r184615 from 2012-02-28.
4219 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
4221         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
4222         (ix86_gen_tls_local_dynamic_base_64): Likewise.
4223         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
4224         and ix86_gen_tls_local_dynamic_base_64.
4225         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
4226         ix86_gen_tls_local_dynamic_base_64.
4228         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
4229         (*tls_global_dynamic_64_<mode>): This.
4230         (tls_global_dynamic_64): Renamed to ...
4231         (tls_global_dynamic_64_<mode>): This.
4232         (*tls_local_dynamic_base_64): Renamed to ...
4233         (*tls_local_dynamic_base_64_<mode>): This.
4234         (tls_local_dynamic_base_64): Renamed to ...
4235         (tls_local_dynamic_base_64_<mode>): This.
4237 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
4239         * config/i386/i386.c (ix86_option_override_internal): Properly
4240         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
4241         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
4242         ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
4243         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
4245         * config/i386/sse.md (sse3_monitor64): Renamed to ...
4246         (sse3_monitor64_<mode>): This.
4248 2012-03-12  Tristan Gingold  <gingold@adacore.com>
4250         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
4251         (ia64_function_arg_advance): Ditto.
4253 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4255         * config.gcc (mips*-*-openbsd*): Remove.
4256         * config/mips/openbsd.h: Remove.
4257         * config/mips/sdb.h: Remove.
4259         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
4260         * config/mips/mips.c (sdb_label_count): Remove.
4261         (mips_debugger_offset): Remove #if 0 code.
4262         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
4263         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
4265 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4267         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
4268         binutils reference.
4269         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
4270         Update binutils references.
4271         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
4272         Update binutils reference.
4273         Update Sun as/GNU ld caveat.
4274         Document binutils largefile requirement for LTO plugin.
4275         Remove reference to alternate libpthread.
4277 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4279         * config.gcc (alpha*-dec-osf5.1*): Remove.
4280         * config.host (alpha*-dec-osf*): Remove.
4281         * configure.ac (*-*-osf*): Remove.
4282         (alpha*-dec-osf*): Remove.
4283         * configure: Regenerate.
4285         * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
4286         config/alpha/va_list.h, config/alpha/x-osf: Remove.
4288         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
4289         * config/alpha/alpha.c (struct machine_function): Update comment.
4290         (alpha_start_function): Remove Tru64 UNIX as handling for
4291         max_frame_size.
4292         * config/alpha/alpha.md ("exception_receiver"): Remove
4293         TARGET_LD_BUGGY_LDGP.
4294         ("*exception_receiver_2"): Likewise.
4295         * except.c (finish_eh_generation): Remove Tru64 reference.
4296         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
4297         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
4298         * target.def (handle_pragma_extern_prefix): Remove.
4300         * Makefile.in (mips-tfile.o-warn): Remove.
4301         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
4302         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
4303         * mips-tdump.c, mips-tfile.c: Remove.
4305         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
4306         extern_prefix.
4307         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
4308         (Specific, alpha*-dec-osf5.1): Note removal.
4309         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
4310         Remove.
4311         * doc/tm.texi: Regenerate.
4312         * doc/trouble.texi (Cross-Compiler Problems): Remove.
4314 2012-03-12  Richard Guenther  <rguenther@suse.de>
4316         * config/arm/arm.c (neon_dereference_pointer): Do not call
4317         covert during RTL expansion.
4319 2012-03-12  Tristan Gingold  <gingold@adacore.com>
4321         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
4322         Options.  Mention -mpointer-size.
4324 2012-03-12  Richard Guenther  <rguenther@suse.de>
4326         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
4327         build_nonstandard_integer_type.
4329 2012-03-12  Richard Guenther  <rguenther@suse.de>
4331         * tree.c (signed_or_unsigned_type_for): Use
4332         build_nonstandard_integer_type.
4333         (signed_type_for): Adjust documentation.
4334         (unsigned_type_for): Likewise.
4335         * tree-pretty-print.c (dump_generic_node): Use standard names
4336         for non-standard integer types if available.
4338 2012-03-12  Tristan Gingold  <gingold@adacore.com>
4340         * config/vms/vms.opt: Add vms-opts.h header.
4341         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
4342         target mask.
4343         (-mvms-return-codes): Document.
4344         (-mpointer-size): New option.
4345         (vms_pointer_size): Add enumeration.
4346         * config/vms/vms-opts.h: New file.
4347         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
4348         __INITIAL_POINTER_SIZE.
4349         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
4350         (C_COMMON_OVERRIDE_OPTIONS): Define.
4351         (DWARF2_ADDR_SIZE): Define.
4352         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
4353         * config/vms/vms-protos.h (vms_c_common_override_options):
4354         New prototype.
4355         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
4356         if -mno-pointer-size.
4357         (vms_c_common_override_options): New function.
4358         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
4359         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
4360         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
4361         and flag_vms_pointer_size.
4362         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
4363         * config.gcc (*-*-*vms*): Define xm_file.
4364         (alpha*-dec-*vms*): Do not define xm_file.
4365         (alpha64-dec-*vms*): Remove.
4366         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
4367         and tmake_file.
4369 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
4371         PR tree-optimization/51721
4372         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
4373         if (int) unsvar cmp CST.
4375 2012-03-12  Richard Guenther  <rguenther@suse.de>
4377         * tree-sra.c (create_access_replacement): Only rename the replacement
4378         if we can rewrite it into SSA form.  Properly mark register typed
4379         replacements that we cannot rewrite with TREE_ADDRESSABLE.
4380         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
4381         for aggregate or BLKmode results.
4383 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
4385         PR tree-optimization/52533
4386         * tree-vrp.c (register_edge_assert_for_2): Use double_int
4387         type for mask, only handle shifts by non-zero in-range
4388         shift count, for LE_EXPR and GT_EXPR if new_val is
4389         maximum, don't add the assertion.
4391 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
4393         * doc/invoke.texi: Document -mrtm option.
4394         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
4395         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
4396         (ix86_handle_option): Handle OPT_mrtm.
4397         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
4398         xtestintrin.h.
4399         (x86_64-*-*): Ditto.
4400         * i386-builtin-types.def (INT_FTYPE_VOID): New.
4401         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4402         __RTM__ if needed.
4403         (ix86_target_string): Define -mrtm option.
4404         (PTA_RTM): New.
4405         (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
4406         Handle new option.
4407         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
4408         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
4409         IX86_BUILTIN_XTEST.
4410         (bdesc_special_args): Ditto.
4411         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
4412         (ix86_expand_special_args_builtin): Handle new built-in type.
4413         (ix86_expand_builtin): Handle XABORT instruction.
4414         * config/i386/i386.h (TARGET_RTM): New.
4415         * config/i386/i386.md (UNSPECV_XBEGIN): New.
4416         (UNSPECV_XEND): Ditto.
4417         (UNSPECV_XABORT): Ditto.
4418         (UNSPECV_XTEST): Ditto.
4419         (xbegin): Ditto.
4420         (xbegin_1): Ditto.
4421         (xend): Ditto.
4422         (xabort): Ditto
4423         (xtest): Ditto.
4424         (xtest_1): Ditto.
4425         * config/i386/i386.opt (mrtm): New.
4426         * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
4427         * config/i386/rtmintrin.h: New header.
4428         * config/i386/xtestintrin.h: Ditto.
4430 2012-03-12  Tristan Gingold  <gingold@adacore.com>
4432         * ginclude/stddef.h: Adjust previous patch.
4433         Use __VMS__ instead of VMS.
4435 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
4437         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
4438         Also convert sequences with CC setting arithmetic instruction.
4440 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
4442         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
4443         from C Language Options to Preprocessor Options.
4444         (C Dialect Options): Move -no-integrated-cpp documentation
4445         from here...
4446         (Preprocessor Options): ...to here.  Rewrite the description
4447         so it makes more sense, and remove discussion of merging front ends.
4449 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
4451         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
4452         needed for loop.
4453         (ix86_expand_setmem): Likewise.
4455 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
4457         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
4458         convert_to_mode.
4460 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
4462         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
4463         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
4465 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
4467         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
4469 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
4471         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
4472         TARGET_64BIT.
4474 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
4475             Uros Bizjak  <ubizjak@gmail.com>
4477         * config/i386/predicates.md (call_insn_operand): Allow
4478         constant_call_address_operand in Pmode only.
4479         (sibcall_insn_operand): Ditto.
4480         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
4481         (*call_vzeroupper): Ditto.
4482         (*sibcall): Ditto.
4483         (*sibcall_vzeroupper): Ditto.
4484         (*call_value): Ditto.
4485         (*call_value_vzeroupper): Ditto.
4486         (*sibcall_value): Ditto.
4487         (*sibcall_value_vzeroupper): Ditto.
4488         (*indirect_jump): Ditto.
4489         (*tablejump_1): Ditto.
4490         (indirect_jump): Convert memory address to word mode for TARGET_X32.
4491         (tablejump): Ditto.
4492         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
4493         to word mode.
4495 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
4497         PR target/51244
4498         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
4499         Use movrt_negc instead of negc pattern for non-SH2A.
4500         (*movnegt): Remove.
4501         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
4503 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4505         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
4506         if Pmode != word_mode.
4507         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
4508         Pmode == SImode for TARGET_X32.
4510         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
4511         (tls_initial_exec_x32): Likewise.
4513 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
4515         PR rtl-optimization/52528
4516         * combine.c (can_combine_p): Add setting of subst_low_luid
4517         before call to expand_field_assignment().
4519 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
4521         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
4522         and related program names.
4524 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
4526         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
4528 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
4530         PR target/52530
4531         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
4532         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
4533         to set code to 'q'.
4534         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
4535         (*movdi_internal_rex64): Use %E operand modifier for lea.
4536         (*movsi_internal): Ditto.
4537         (*lea_1): Ditto.
4538         (*lea<mode>_2): Ditto.
4539         (*lea_{3,4,5,6}_zext): Ditto.
4540         (*tls_global_dynamic_32_gnu): Ditto.
4541         (*tls_global_dynamic_64): Ditto.
4542         (*tls_dynamic_gnu2_lea_32): Ditto.
4543         (*tls_dynamic_gnu2_lea_64): Ditto.
4544         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
4546 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4548         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
4549         redefine to be NULL if the current bit-size is different from the
4550         configured bit-size.
4552         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
4553         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
4554         set the default tuning.  Add asserts to make sure the cpu and tune
4555         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
4556         test whether the index is set, instead of > 0.
4557         (rs6000_file_start): Do not reset the default cpu if the current
4558         bit-size is different from the configured bit-size.
4560 2012-03-09  Tristan Gingold  <gingold@adacore.com>
4562         * config/vms/vms-crtlmap.map: Add comments.
4563         Add entries needed to build Ada RTS.
4565 2012-03-09  Tristan Gingold  <gingold@adacore.com>
4567         * ginclude/stddef.h: Do not define __size_t on VMS.
4569 2012-03-09  Tristan Gingold  <gingold@adacore.com>
4571         * c-tree.h (c_default_pointer_mode): New variable.
4572         * c-decl.c (c_default_pointer_mode): New variable.
4573         (c_build_pointer_type): New function.
4574         (grokdeclarator): Call c_build_pointer_type instead
4575         of build_pointer_type.
4577         * config/vms/vms-c.c: Include c-tree.h
4578         (saved_pointer_mode): New variable.
4579         (handle_pragma_pointer_size): New function.
4580         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
4581         (vms_c_register_pragma): Register __pointer_size and
4582         __required_pointer_size pragmas.
4584 2012-03-09  Tristan Gingold  <gingold@adacore.com>
4586         * config/vms/vms-c.c (vms_construct_include_filename): New function.
4587         (vms_c_register_includes): Reference it.
4589 2012-03-09  Andrew Pinski  <apinski@cavium.com>
4591         PR middle-end/51988
4592         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
4593         print_generic_expr.
4594         (tree_ssa_phiopt_worker): Go through all the PHIs for
4595         value_replacement instead of just the singleton one.
4596         (value_replacement): Change return type to int.  Return 0 instead of
4597         false.
4598         Allow the middle basic block to contain more than just the defining
4599         statement.
4600         Handle non empty middle basic blocks.
4601         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
4603 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
4605         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
4606         array reference and component reference.
4607         (analyze_scalar_evolution_for_address_of): New.
4609 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
4611         PR target/49862
4612         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
4613         (hwloop_pattern_reg): Fix set but not used warning.
4614         (bfin_reorg_loops): Remove unused parameter.
4615         (bfin_reorg): Update use of bfin_reorg_loops.
4617 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4619         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
4620         with integer parameters in registers.
4621         (gen_push): Push register in word_mode instead of Pmode.
4622         (ix86_emit_save_regs): Likewise.
4623         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
4624         (gen_pop): Pop register in word_mode instead of Pmode.
4625         (ix86_emit_restore_regs_using_pop): Likewise.
4626         (ix86_expand_prologue): Replace Pmode with word_mode for push
4627         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
4628         restore RAX and R10 in word_mode.
4629         (ix86_emit_restore_regs_using_mov): Restore integer registers
4630         in word_mode.
4631         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
4632         word_mode.
4633         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
4634         (ix86_split_long_move): Likewise.
4636         * config/i386/i386.md (W): New.
4637         (*push<mode>2_prologue): Replace :P with :W.
4638         (*pop<mode>1): Likewise.
4639         (*pop<mode>1_epilogue): Likewise.
4640         (push/pop peephole2): Use word_mode scratch registers.
4642 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
4644         * config/i386/predicates.md (indirect_branch_operand): Simplify.
4646 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
4648         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
4649         for constants in [-63,63].
4651 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
4653         PR target/52530
4654         Revert:
4655         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4657         * config/i386/i386.c (ix86_print_operand_address): Only handle
4658         zero-extended DImode addresses.
4660 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4662         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
4663         * configure: Regenerate.
4665 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
4667         PR target/52496
4668         * config/avr/avr.c (avr_mem_clobber): New static function.
4669         (avr_expand_delay_cycles): Add memory clobber operand to
4670         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
4671         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
4672         (enable_interrupt, disable_interrupt): New expander.
4673         (nopv, sleep, wdr): New expanders.
4674         (delay_cycles_1): Add memory clobber.
4675         (delay_cycles_2): Add memory clobber.
4676         (delay_cycles_3): Add memory clobber.
4677         (delay_cycles_4): Add memory clobber.
4678         (cli_sei): New insn from former "enable_interrupt",
4679         "disable_interrupt" with memory clobber.
4680         (*wdt): New insn from former "wdt" with memory clobber.
4681         (*nopv): Similar, but for "nopv".
4682         (*sleep): Similar, but for "sleep".
4684 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
4685             Kaz Kojima  <kkojima@gcc.gnu.org>
4687         PR target/52503
4688         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
4689         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
4690         (SUBTARGET_OVERRIDE_OPTIONS): Define.
4692 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
4694         * config/i386/predicates.md (x86_64_zext_general_operand): New.
4695         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
4696         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
4698 2012-03-07  Walter Lee  <walt@tilera.com>
4700         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
4701         REG_CFA_* notes for the stack pointer.
4702         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
4703         EH_RETURN_STACKADJ_RTX.
4704         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
4705         generate REG_CFA_* notes for the stack pointer.
4706         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
4707         by EH_RETURN_STACKADJ_RTX.
4709 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
4711         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
4712         when __AVR_3_BYTE_PC__ is defined.
4714 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
4716         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
4717         (ix86_print_operand): Handle '^'.
4718         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
4719         using P mode iterator.  Add %^ to asm template to conditionally emit
4720         addr32 prefix.
4721         (*rep_movdi_rex64): Ditto.
4722         (*strsetdi_rex_1): Ditto.
4723         (*rep_stosdi_rex64): Ditto.
4724         (*strmov{si,hi,qi}_1): Add %^ to asm template to
4725         conditionally emit addr32 prefix.
4726         (*rep_mov{si,qi}): Ditto.
4727         (*strset{si,hi,qi}): Ditto.
4728         (*rep_stos{si,qi}): Ditto.
4729         (*cmpstrnqi_nz_1): Ditto.
4730         (*cmpstrnqi_1): Ditto.
4731         (*strlenqi_1): Ditto.
4733 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
4735         * config/i386/i386.c (function_value_64): Return pointers in
4736         word_mode instead of Pmode.
4737         (ix86_promote_function_mode): Likewise.
4739 2012-03-07  Richard Guenther  <rguenther@suse.de>
4741         * coverage.c (get_gcov_type): Use type_for_mode.
4742         (get_gcov_unsigned_t): Likewise.
4743         * expr.c (store_constructor): Use type_for_mode.
4744         (try_casesi): Likewise.
4745         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
4746         (add_standard_iv_candidates): Use standard type trees.
4747         * dojump.c (do_jump): Remove dead code.
4749 2012-03-07  Richard Guenther  <rguenther@suse.de>
4751         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
4753 2012-03-07  Richard Guenther  <rguenther@suse.de>
4755         * convert.c (strip_float_extensions): Move ...
4756         * tree.c (strip_float_extensions): ... here.
4758 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
4760         PR target/52484
4761         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
4763 2012-03-07  Richard Guenther  <rguenther@suse.de>
4765         * omp-low.c (extract_omp_for_data): Use signed_type_for.
4766         (expand_omp_for_generic): Likewise.
4767         (expand_omp_for_static_nochunk): Likewise.
4768         (expand_omp_for_static_chunk): Likewise.
4769         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
4770         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
4771         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4772         Use unsigned_type_for.
4773         (vect_create_cond_for_align_checks): Use signed_type_for.
4775 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
4777         PR rtl-optimization/52203
4778         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
4779         all callers to pass NULL except ...
4780         (reset_sched_cycles_in_current_ebb): ... here, save the value
4781         in new variable 'empty'.  Increase issue_rate only for
4782         non-empty insns.
4784 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
4786         PR target/51417
4787         * Makefile.in: Let install-gcc-ar depend on installdirs,
4788         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
4789         Don't double canonicalize if cross-compiling.
4791 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
4793         PR target/52506
4794         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
4795         to: RAMPZ, RAMPY, RAMPX, RAMPD.
4796         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
4798 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
4800         PR target/52505
4801         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
4802         from RAM.
4803         * config/avr/avr.md (xload_8): Adjust insn length.
4805 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
4807         PR target/52461
4808         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
4809         if RAMPZ affects reading from RAM.
4811 2012-03-07  Richard Guenther  <rguenther@suse.de>
4813         PR pch/52518
4814         PR pch/38987
4815         * doc/invoke.texi (Precompiled Headers): Remove sentence that
4816         suggests you can include PCHs from inside another header.
4818 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
4820         PR middle-end/52515
4821         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
4823 2012-03-07  Kai Tietz  <ktietz@redhat.com>
4825         * doc/invoke.texi (fwritable-relocated-rdata): Document
4826         new Cygwin/MinGW target option.
4827         * config/i386/winnt.c (i386_pe_unique_section): Ignore
4828         reloc if flag -fwritable-relocated-rdata is not set.
4829         (i386_pe_section_type_flags): Likewise.
4830         * config/i386/cygming.opt (fwritable-relocated-rdata):
4831         Add new flag variable flag_writable_rel_rdata.
4833 2012-03-07  Richard Guenther  <rguenther@suse.de>
4835         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
4836         precision against gimple constraints.
4838 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
4840         PR middle-end/52372
4841         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
4842         variables.
4843         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
4844         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
4845         variables.
4846         (init_emit_regs): Move associated initialization to...
4847         (init_emit_once): ...here.
4849 2012-03-06  Richard Henderson  <rth@redhat.com>
4851         * config/m68k/m68k.h (ISA_HAS_TAS): New.
4852         * config/m68k/sync.md (atomic_test_and_set): Use it.
4853         (atomic_test_and_set_1): Likewise.
4855 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4857         PR target/50310
4858         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
4859         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
4860         (vector_ltgt<mode>): Likewise.
4861         (vector_ordered<mode>): Likewise.
4862         (vector_unordered<mode>): Likewise.
4863         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4865 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
4867         * trans-mem.c: New typedef for tm_region_p.
4868         Define vector types for tm_region_p.
4869         (tm_region_init): Replace region_worklist to a vector called
4870         bb_regions.
4872 2012-03-06  Richard Guenther  <rguenther@suse.de>
4874         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
4875         MEM_REF with constant pointer operand.
4877 2012-03-06  Richard Guenther  <rguenther@suse.de>
4879         PR middle-end/52493
4880         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
4882 2012-03-06  Tristan Gingold  <gingold@adacore.com>
4884         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
4885         (external_model_kind): Improve documentation.
4886         (vms_pragma_extern_model): Handle relaxed_redef.
4887         (vms_c_register_pragma): Allow expansion for nomember_alignment.
4889 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
4891         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
4892         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
4893         Some more notes on EIND usage and reorder EIND subsection.
4895 2012-03-06  Tristan Gingold  <gingold@adacore.com>
4897         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
4898         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
4900 2012-03-06  Tristan Gingold  <gingold@adacore.com>
4902         * config/vms/t-vmsnative (version): Define.
4903         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
4905 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
4907         PR rtl-optimization/52250
4908         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
4909         to put note list into.  Unconditionally call move_bb_info.
4910         (move_bb_info): Do not assert the blocks being in the same region,
4911         just drop the note list if they are not.
4913 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
4915         PR target/51244
4916         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
4917         and use unified expansion logic.
4918         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
4919         closer to the existing movt insn.
4920         (negc): Rename insn to *negc.  Add new expander.
4921         (movnegt): Use xor pattern for T bit negation.  Reserve helper
4922         constant for negc pattern.
4923         (*movnegt): New insn and splitter.
4925 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
4927         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
4928         PLUS_EXPR.
4930 2012-03-05  Richard Henderson  <rth@redhat.com>
4932         * genemit.c (main): Include "target.h" in insn-emit.c.
4933         * Makefile.in (insn-emit.o): Depend on TARGET_H.
4934         * config/sh/sync.md (atomic_test_and_set): Reference
4935         targetm.atomic_test_and_set_trueval instead of
4936         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
4938 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
4940         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
4941         Make static.
4943 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
4945         * langhooks.c (add_builtin_type): New function.
4946         * langhooks.h (add_builtin_type): Export it.
4947         * config/mep/mep.c (mep_init_builtins): Use it.
4948         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
4950 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
4952         PR debug/51902
4953         * tree.h (BLOCK_SAME_RANGE): Define.
4954         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
4955         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
4956         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
4957         isn't equal to supercontext fragment's fragment chain.
4958         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
4959         fragment origin.
4960         (blocks_nreverse_all): Likewise.
4961         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
4962         BLOCK_SUPERCONTEXT to supercontext fragment instead of
4963         supercontext fragment's fragment origin.
4964         * dwarf2out.c (add_high_low_attributes): If stmt has the same
4965         range as its parent (or parents thereof etc.), use the parent's
4966         DW_AT_ranges value instead of creating a new .debug_ranges range.
4968 2012-03-05  Richard Henderson  <rth@redhat.com>
4970         PR tree-opt/52242
4971         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
4972         * omp-low.c (expand_omp_atomic): Assume anything aligned to
4973         BIGGEST_ALIGNMENT is aligned.
4975 2012-03-05  Richard Henderson  <rth@redhat.com>
4977         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
4978         * config/sh/sh.c: ... here.
4980 2012-03-05  Richard Henderson  <rth@redhat.com>
4982         PR target/52481
4983         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
4984         instead of calling negqi2 directly.
4986 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
4988         PR middle-end/52463
4989         * trans-mem.c (tm_region_init): Use last_basic_block.
4991 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
4993         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
4994         * config/sh/sync.md (atomic_test_and_set): New expander.
4995         (tasb, atomic_test_and_set_soft): New insns.
4996         * config/sh/sh.opt (menable-tas): New option.
4997         * doc/invoke.texi (SH Options): Document it.
4999 2012-03-05  Richard Guenther  <rguenther@suse.de>
5001         * cfgloop.c (verify_loop_structure): Verify dominators before
5002         using them.
5003         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
5004         dominators from here.
5005         * graphite-scop-detection.c (create_sese_edges): Likewise.
5006         * loop-doloop.c (doloop_optimize_loops): Likewise.
5007         * loop-init.c (loop_optimizer_init): Likewise.
5008         * loop-unroll.c (unroll_and_peel_loops): Likewise.
5009         * loop-unswitch.c (unswitch_loops): Likewise.
5010         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
5011         * tree-parloops.c (parallelize_loops): Likewise.  Verify
5012         only when checking is enabled.
5013         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
5015 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
5017         * genautomata.c (parse_automata_opt): New static function.
5018         (initiate_automaton_gen): Remove all option handling code.  Remove
5019         argc argument.  All callers changed.
5020         (main): Call init_rtx_reader_args_cb with the new function as argument.
5022 2012-03-05  Richard Guenther  <rguenther@suse.de>
5024         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
5025         * tree-if-conv.c (combine_blocks): Free post-dominator info
5026         after breaking it.
5027         * tree-parloops.c (create_parallel_loop): Free and re-compute
5028         dominator info after breaking it.
5030 2012-03-05  Richard Guenther  <rguenther@suse.de>
5032         PR middle-end/52353
5033         * optabs.h (trapv_unoptab_p): New function.
5034         (trapv_binoptab_p): Likewise.
5035         * optabs.c (expand_binop): Use emit_libcall_block_1 with
5036         a proper equiv_may_trap argument.
5037         (expand_unop): Likewise.
5038         (emit_libcall_block_1): Take extra argument whether the
5039         instruction may trap.  Renamed from ...
5040         (emit_libcall_block): ... this.  New wrapper.
5042 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
5044         PR tree-optimization/51721
5045         * tree-vrp.c (register_edge_assert_for_2): If comparing
5046         lhs of right shift by constant with an integer constant,
5047         add ASSERT_EXPRs for the rhs1 of the right shift.
5049         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
5051 2012-03-05  Richard Guenther  <rguenther@suse.de>
5053         * tree.c (integer_zerop): Handle VECTOR_CSTs.
5054         (integer_onep): Likewise.
5055         (integer_all_onesp): Likewise.
5057 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
5059         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
5061 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5063         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
5064         instead of TARGET_64BIT.
5066 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5068         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
5069         adjust_stack_insn.
5071 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5073         * config/i386/i386.c (ix86_print_operand_address): Only handle
5074         zero-extended DImode addresses.
5076 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
5078         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
5079         taken and cputaken as bool.
5081 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
5083         * config/i386/constraints.md (Ya): New internal constraint.
5084         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
5085         (*zero_extendsidi2_rex64): Add x,x alternative.
5086         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
5087         Remove flags reg clobber.  Adjust corresponding splits.
5088         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
5089         zero_extendqisi2 expanders using SWI12 mode iterator.
5090         (zero_extend<mode>si2_and): Macroize insn from
5091         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
5092         splitters.
5093         (*zero_extend<mode>si2):  Macroize insn from
5094         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
5095         (*zero_extend*2_movzbl_and): Remove insn patterns.
5096         (zero_extendqihi2_and): Merge corresponding splitter.
5097         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
5098         (*zero_extend*2_movzbl_and): Remove insn patterns.
5099         (*anddi_1): Split TYPE_IMOVX instructions.
5100         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
5101         (*andhi_1): Ditto.
5102         (and->zext splitter): Add splitter pattern.
5103         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
5105 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
5107         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
5108         x86-specific text.
5109         (Debugging Options): Likewise.
5110         (Optimize Options): Likewise.
5111         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
5112         with other architectures.  Use official processor names with correct
5113         spelling/capitalization.  Fix formatting and grammar issues.
5114         (i386 and x86-64 Windows Options): Similar cleanup here.
5116 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5118         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
5120 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5122         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
5123         DBX_REGISTER_NUMBER.
5125 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5127         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
5128         operand is CONST_INT.  Take COSTS_N_INSNS into account.
5129         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
5130         of shiftcosts.
5132 2012-03-02  Richard Henderson  <rth@redhat.com>
5134         * optabs.c (expand_atomic_test_and_set): Honor
5135         atomic_test_and_set_trueval even when atomic_test_and_set
5136         optab is not in use.
5138 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
5140         PR target/48596
5141         PR target/48806
5142         * config/sh/sh.c (sh_register_move_cost): Increase cost between
5143         GENERAL_REGS and FP_REGS for SImode.
5145 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
5147         PR target/49486
5148         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
5149         (absdi2): New expander.
5150         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
5152 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
5154         * config/sh/sync.md (atomic_exchange<mode>): New expander.
5155         (atomic_exchange<mode>_soft): New insn.
5157 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
5159         * config/sh/sync.md: Update copyright notice dates.
5160         (atomic_compare_and_swap<mode>): Use SImode for return value instead
5161         of QImode.
5162         (atomic_compare_and_swap<mode>_soft): Likewise.
5164 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
5166         PR target/31640
5167         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
5168         * config/sh/sh.c: Update copyright notice dates.
5169         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
5170         alignment for TARGET_HARD_SH4.
5171         (sh_option_override): Reduce default function alignment.  Set
5172         loop alignment to 4 bytes when not optimizing for size.
5174 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
5176         PR middle-end/50335
5177         * doc/invoke.texi (floop-flatten): Remove.
5178         * toplev.c (process_options): Remove references to flag_loop_flatten.
5179         * tree-ssa-loop.c (gate_graphite_transform): Same.
5180         * common.opt (floop-flatten): Obsolete.
5181         * graphite-poly.c (apply_poly_transforms): Remove reference to
5182         flag_loop_flatten.
5183         * Makefile.in (graphite-flattening.o): Remove.
5184         * graphite-flattening.c: Remove.
5186 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
5188         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
5189         having mode compatible with the mode of previous compare.  Substitute
5190         compare mode of previous compare with the mode, compatible
5191         with eliminated and previous compare.
5193 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
5195         * config/rs6000/dfp.md (floatdidd2): New define_insn.
5197 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
5199         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
5200         compatible with CCGOCmode and CCGCmode.
5202 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
5204         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
5206 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
5208         * config/arm/arm.c (arm_sat_operator_match): New function.
5209         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
5210         * config/arm/arm.md ("insn" attribute): Add "sat" value.
5211         ("SAT", "SATrev"): New code iterators.
5212         ("SATlo", "SAThi"): New code iterator attributes.
5213         ("*satsi_<SAT:code>"): New pattern.
5214         ("*satsi_<SAT:code>_shift"): Likewise.
5215         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
5216         and "shift" attributes.
5217         ("arm_usatsihi"): Add "insn" attribute.
5218         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
5219         by powers of two.  Do not allow shift by 32.
5221 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
5223         PR target/46716
5224         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
5225         to pass the argument in the register of "natural" mode.
5227 2012-03-02  Richard Guenther  <rguenther@suse.de>
5229         PR tree-optimization/52406
5230         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
5231         (struct indices): Add unconstrained_base member.
5232         (struct dr_alias): Remove unused vops member.
5233         (DR_UNCONSTRAINED_BASE): New define.
5234         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
5235         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
5236         be an artificial access that covers the whole indexed object,
5237         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
5238         plain decl base-objects to their MEM_REF variant.
5239         (dr_may_alias_p): When the base-object of either data reference
5240         has unknown size use only points-to information.
5241         (compute_affine_dependence): Make dumps easier to read and
5242         more verbose.
5243         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
5244         DR_REF when looking for packed references.
5245         (vect_supportable_dr_alignment): Likewise.
5247 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
5249         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
5250         Improve conditions for peepholes of loads followed by commutative
5251         operators.
5252         * config/arm/ldmstm.md: Regenerated.
5254 2012-03-02  Richard Guenther  <rguenther@suse.de>
5256         * BASE-VER: Set to 4.8.0.
5258 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
5260         * config.gcc (obsolete): Add all ARM targets using the FPA.
5261         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
5262         * doc/install.texi: Avoid references to obsolete ARM ports.
5264 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5266         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
5268 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
5269             Joern Rennecke  <joern.rennecke@embecosm.com>
5271         * doc/extend.texi: Expand and update information on interrupt
5272         attribute for Epiphany.
5274 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
5276         * config/sh/sh-protos.h: Update copyright notice dates.
5277         * config/sh/sh.h: Likewise.
5278         * config/sh/sh.md: Likewise.
5279         * config/sh/constraints.md: Likewise.
5280         * config/sh/predicates.md: Likewise.
5282 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
5284         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
5285         * config/sh/sh.c (tertiary_reload_operand): Likewise.
5287 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
5289         * config/sh/constraints.md: Fix comment typo.
5291 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5293         PR target/52408
5294         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
5295         unsigned HOST_WIDE_INT.
5296         (zvdep_imm64): Likewise.
5297         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
5298         (vdepi_and): Likewise.
5299         Likewise for unamed 64-bit patterns.
5300         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
5302 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
5304         PR debug/52001
5305         PR rtl-optimization/52417
5306         * cselib.c (cselib_any_perm_equivs): New variable.
5307         (cselib_reset_table): Check that it's not set when not
5308         preserving constants.
5309         (cselib_add_permanent_equiv): Set it.
5310         (cselib_have_permanent_equivalences): New.
5311         (cselib_init, cselib_finish): Reset it.
5312         * cselib.h (cselib_have_permanent_equivalences): Declare.
5313         * alias.c (get_addr): Restore earlier behavior when there
5314         aren't permanent equivalences.
5316 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
5318         * config/mn10300/mn10300-modes.def: Fix copyright notice.
5319         * config/v850/v850-modes.def: Fix copyright notice.
5321 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
5323         * doc/extend.texi (AVR Built-in Functions): Document
5324         __builtin_avr_flash_segment.
5326         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
5327         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
5328         (*split.flash_segment): New insn-and-split.
5329         * config/avr/avr.c (avr_init_builtins): Add local variables:
5330         const_memx_void_node, const_memx_ptr_type_node,
5331         char_ftype_const_memx_ptr.
5333 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
5335         PR tree-optimization/52445
5336         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
5337         add ssa_name_ver, offset and size fields and change store field
5338         to bool.
5339         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
5340         (add_or_mark_expr): Likewise.  Only consider previous stores
5341         with the same size and offset.
5342         (nt_init_block): Only look at gimple_assign_single_p stmts,
5343         doesn't look at rhs2.
5345 2012-03-01  Richard Guenther  <rguenther@suse.de>
5347         PR middle-end/52443
5348         * tree-cfg.c (verify_gimple_assign_unary): Allow any
5349         conversions from integral types to pointer types.
5351 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
5353         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
5354         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
5355         unintentionally removed in r184616.
5357 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5359         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
5360         3DNow from bdver1.
5362 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
5363             Uros Bizjak  <ubizjak@gmail.com>
5365         PR target/52437
5366         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
5367         alternatives, add "e" constraint to the new last alternative
5368         and ! to last 3 alternatives.
5370 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
5372         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
5373         DW_AT_artificial attributes at the end of the processing.
5374         (gen_array_type_die): Likewise.
5375         (gen_enumeration_type_die): Likewise.
5376         (gen_struct_or_union_type_die): Likewise.
5377         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
5378         the parent type.
5380 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
5382         PR middle-end/52419
5383         * expr.c (expand_assignment): If doing misaligned store that doesn't
5384         cover all mode bits, perform a RMW cycle.
5386         PR tree-optimization/52429
5387         * tree-parloops.c (separate_decls_in_region_debug): Return early
5388         if var is LABEL_DECL.
5390 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5392         PR tree-optimization/52424
5393         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
5394         calling dom_thread_across_edge.
5396 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
5398         * config/avr/avr.c: Move definition of TARGET macros to end of file.
5400 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
5402         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
5403         * config/avr/avr.c (avr_output_bld): Remove unused function.
5404         (avr_out_sbxx_branch): Use "%T" to print bit position.
5406 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
5408         * config/avr/avr.md: Untabify.
5410 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
5412         * config/avr/avr.md (eqne): New code iterator.
5413         (*dec-and-branchsi): Use it in text peephole's condition.
5414         (*dec-and-branchhi): Ditto.
5415         (*dec-and-branchqi): Ditto.
5417 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
5419         PR target/49939
5420         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
5421         the device does not have the skip-bug.
5423 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
5425         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
5426         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
5427         -mpretend-cmove): New.
5429 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
5431         PR bootstrap/52397
5432         * df.h (struct df_d): Adjust comment that hard_regs_live_count
5433         doesn't count DEBUG_INSN refs.
5434         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
5435         for DEBUG_INSN refs.
5437 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5439         Partially revert:
5441         2012-02-20  Richard Guenther  <rguenther@suse.de>
5442         PR tree-optimization/52298
5443         * tree-vect-stmts.c (vectorizable_load): Properly use
5444         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
5446 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
5448         PR middle-end/51752
5449         * gimple.h (gimple_in_transaction): New.
5450         (gimple_set_in_transaction): New.
5451         (struct gimple_statement_base): Add in_transaction field.
5452         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
5453         transaction loads.
5454         (tree_ssa_lim_initialize): Compute transaction bits.
5455         * tree.h (compute_transaction_bits): Protoize.
5456         * trans-mem.c (tm_region_init): Use the heap to store BB
5457         auxilliary data.
5458         (compute_transaction_bits): New.
5460 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5462         * gcc.c (display_help): Document --help=common and sort entries
5463         alphabetically.
5465 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5467         * doc/install.texi: Document check-$LANG specific shortcuts
5469 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5471         PR target/51534
5472         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
5473         and vcgtu.
5474         * config/arm/arm_neon.h: Regenerate.
5475         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
5476         (neon_vcgeu): New insn.
5477         (neon_vcgtu): Likewise.
5478         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
5479         (ops): Unsigned comparison intrinsics call a different builtin.
5481 2012-02-28  Richard Guenther  <rguenther@suse.de>
5483         PR target/52407
5484         * config/i386/i386.c (ix86_expand_vector_set): Fix element
5485         ordering for the VEC_CONCAT for two element vectors for
5486         V2SFmode, V2SImode and V2DImode.
5488 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
5490         PR target/49448
5491         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
5492         detecting big-endian triplets.
5494 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
5496         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
5497         mode if there is no type information available.
5499 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
5501         PR tree-optimization/53207
5502         * doc/invoke.texi: Document as experimental and relying on graphite.
5504 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
5506         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
5507         of initializer to changes from r184614.
5509 2012-02-28  Richard Guenther  <rguenther@suse.de>
5511         PR tree-optimization/52395
5512         * tree-sra.c (build_ref_for_offset): Also look at the base
5513         TYPE_ALIGN when figuring out the alignment of the replacement.
5515 2012-02-28  Richard Guenther  <rguenther@suse.de>
5517         PR tree-optimization/52402
5518         * ipa-prop.c (ipa_modify_call_arguments): Properly use
5519         mis-aligned types when creating the accesses at the call site.
5521 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
5523         * config/avr/builtins.def: New file.
5524         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
5525         * config/avr/avr.c (enum avr_builtin_id): Use it.
5526         (avr_init_builtins): Use it. And use avr_bdesc.
5527         (bdesc_1arg): Remove.
5528         (bdesc_2arg): Remove.
5529         (bdesc_3arg): Remove.
5530         (struct avr_builtin_description): Add field n_args.
5531         (avr_bdesc): New static variable using builtins.def.
5532         (avr_expand_builtin): Use it.
5533         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
5534         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
5535         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
5537 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
5539         PR target/52148
5540         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
5541         match only one single hard register with respective hard reg rtx.
5542         (movmemx_<mode>): Ditto.
5543         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
5544         insn anatomy of movmem[x]_<mode>.
5545         (avr_out_movmem): Same for printing assembler and operand usage.
5547 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
5549         PR target/49868
5550         PR target/52261
5551         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
5552         address spaces located outside of device flash.
5554         * config/avr/avr.h (base_arch_s): Remove field n_segments.
5555         (mcu_type_s): Add field n_flash.
5556         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
5557         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
5558         (AVR_MCU): Add N_FLASH argument.
5559         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
5560         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
5561         macro __FLASH<n> if that address space makes sense for the device.
5562         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
5563         outside of target flash.
5564         (avr_asm_named_section): Ditto.
5565         (avr_asm_select_section): Ditto.
5566         (avr_addr_space_convert): Ditto.
5567         (avr_emit_movmemhi): Ditto.
5568         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
5569         address space is outside of device flash.
5570         (avr_insert_attributes): Ditto.
5571         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
5572         avr_current_arch->n_segments.
5574 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
5576         PR target/52352
5577         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
5578         (*movabs<mode>_2): Likewise.
5580 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
5582         PR target/52375
5583         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
5584         s_register_operand in the test instead of REG_P.  Don't call
5585         gen_reg_rtx if it won't be used.
5587         PR tree-optimization/52376
5588         * ipa-split.c (split_function): Ignore CLOBBER stmts.
5590 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
5592         * ifcvt.c (noce_get_condition): Check condition variable is not
5593         small_register_classes_for_mode_p before accepting.
5595 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
5597         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
5599 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5601         Revert:
5602         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5603         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
5604         tuning parameters.
5605         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
5607 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
5609         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
5611 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
5613         * config/sh/predicates.md: Remove blank lines.
5614         * config/sh/sh.c: Fix typos in comments.
5615         * config/sh/constraints.md: Likewise.
5616         * config/sh/sh.md: Remove blank lines.
5617         Fix typos in comments.  Use ;; as comment characters.
5619 2012-02-26  Walter Lee  <walt@tilera.com>
5621         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
5622         (replace_mov_pcrel_step2): Ditto.
5624 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
5626         PR debug/52001
5627         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
5628         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
5629         and locs that reference values newer than the non-canonical value
5630         at hand.  Return the canonical value as a worst case.
5631         (memrefs_conflict_p): Walk canonical value's locs.
5633         PR debug/52001
5634         * cselib.c (preserve_only_constants): Rename to...
5635         (preserve_constants_and_equivs): ... this.  Split out...
5636         (invariant_or_equiv_p): ... this.  Preserve plus expressions
5637         of other preserved expressions too.
5638         (cselib_reset_table): Adjust.
5639         * var-tracking.c (reverse_op): Use canonical value to build
5640         reverse operation.
5642 2012-02-23  Kai Tietz  <ktietz@redhat.com>
5644         * config/i386/i386.c (ix86_delegitimize_address): Handle
5645         UNSPEC_PCREL plus displacement.
5647 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
5649         PR target/52261
5650         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
5651         to test for unusedness in st X addressing.
5653 2012-02-24  Richard Guenther  <rguenther@suse.de>
5655         PR middle-end/52361
5656         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
5657         (is_gimple_reg_type): Move inline ...
5658         * gimple.h (is_gimple_reg_type): ... here.
5660 2012-02-24  Richard Guenther  <rguenther@suse.de>
5662         PR middle-end/52361
5663         * passes.c (execute_function_todo): When verifying SSA form
5664         verify gimple form first.
5665         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
5667 2012-02-24  Richard Guenther  <rguenther@suse.de>
5669         PR middle-end/52355
5670         * fold-const.c (fold_addr_of_array_ref_difference): New function.
5671         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
5673 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5675         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
5677 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5679         * tree-phinodes.c (make_phi_node): Mark static.
5680         * tree-flow.h (make_phi_node): Remove extern decl.
5681         * doc/gimple.texi (make_phi_node): Remove documentation.
5683 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5685         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
5686         * tree-ssa-sccvn.c (print_scc): Ditto.
5688 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5690         * doc/passes.texi (Full redundancy elimination): Fix typo.
5692 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5694         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
5696 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
5698         PR bootstrap/52287
5699         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
5701 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
5703         PR c/52290
5704         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
5706 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
5708         * config/avr/avr.md (code_stdname): Add ior, xor.
5709         (xior): New code iterator.
5710         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
5711         (*<code_stdname><mode>qi.byte1-3): Ditto.
5713 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
5715         PR tree-optimization/52019
5716         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
5717         CLOBBER stmts.
5719 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5721         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
5722         HAVE_INITFINI_ARRAY to work around namespace pollution in
5723         certain versions of newlib system headers.
5724         * config.in: Regenerate.
5725         * configure: Regenerate.
5726         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
5727         instead of HAVE_INITFINI_ARRAY.
5729 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
5731         PR target/52330
5732         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
5733         is not offsettable memory reference.
5735 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
5737         PR target/18145
5738         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
5739         setting avr_need_clear_bss_p for __gnu_lto* symbols.
5741 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
5743         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
5744         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
5746 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5748         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
5749         library on Solaris 8 even without TLS support.
5750         * configure: Regenerate.
5752 2012-02-22  Richard Guenther  <rguenther@suse.de>
5754         PR middle-end/52329
5755         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
5756         for GIMPLE_DEBUG stmts.
5758 2012-02-22  Martin Jambor  <mjambor@suse.cz>
5760         PR middle-end/51782
5761         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
5762         according to the base object.
5764 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
5766         PR rtl-optimization/50063
5767         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
5768         and 2 (8-bit SP) in operand 2.
5769         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
5770         setup to use movhi_sp_r instead of vanilla move to write SP.
5771         Adjust REG_CFA notes to superseed unspec.
5772         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
5773         of vanilla move.
5774         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
5775         known to be off) only with TARGET_NO_INTERRUPTS. Never use
5776         irq_state 1 (IRQ known to be on) here.
5778 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
5780         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
5781         WORDS_BIG_ENDIAN.
5782         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
5783         assign_hard_reg): Likewise.
5785 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
5787         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
5789 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
5791         * config/avr/avr.md
5792         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
5793         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
5795 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
5797         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
5798         prototype from here to...
5799         * config/avr/avr.h: ...here.
5801 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
5803         PR target/52294
5804         * thumb2.md (thumb2_shiftsi3_short): Split register and
5805         immediate shifts.  For register shifts tie operands 0 and 1.
5806         (peephole2 for above): Check that register-controlled shifts
5807         have suitably tied operands.
5809 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
5811         PR target/52137
5812         * config/i386/bdver1.md (bdver1_call, bdver1_push,
5813         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
5814         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
5815         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
5816         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
5817         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
5818         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
5819         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
5820         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
5821         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
5822         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
5823         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
5824         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
5825         bdver1_ssevector_avx256_unaligned_load,
5826         bdver1_ssevector_sse128_unaligned_load,
5827         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
5828         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
5829         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
5830         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
5831         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
5832         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
5833         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
5834         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
5835         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
5836         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
5837         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
5838         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
5839         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
5840         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
5841         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
5842         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
5843         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
5844         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
5845         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
5846         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
5847         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
5848         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
5849         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
5850         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
5851         bdver1_ssediv_double_load, bdver1_ssediv_double,
5852         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
5853         Add "bdver2" attribute.
5855 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5857         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
5858         default if possible and not specified otherwise.
5860 2012-02-21  Richard Guenther  <rguenther@suse.de>
5862         PR middle-end/52314
5863         * gimplify.c (create_tmp_from_val): Use the main variant type
5864         for the type of the temporary we create.
5866 2012-02-21  Richard Guenther  <rguenther@suse.de>
5868         PR tree-optimization/52324
5869         * gimplify.c (gimplify_expr): When re-gimplifying expressions
5870         do not gimplify a MEM_REF address operand if it is already
5871         in suitable form.
5873 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5875         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
5876         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
5878 2012-02-21  Richard Guenther  <rguenther@suse.de>
5880         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
5881         nested_in_vect_loop.
5883 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
5885         PR tree-optimization/52318
5886         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
5887         vdef also to non-pure/const call stmts in the sequence.
5889 2012-02-21  Tristan Gingold  <gingold@adacore.com>
5891         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
5893 2012-02-20  David S. Miller  <davem@davemloft.net>
5895         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
5896         don't use the "rd %pc" instruction on v9 for PIC register loads.
5898 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
5900         PR middle-end/52141
5901         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
5902         in a transaction safe function.
5904 2012-02-20  Kai Tietz  <ktietz@redhat.com>
5906         PR target/52238
5907         * stor-layout.c (place_field): Handle desired_align for
5908         ms-bitfields, too.
5910 2012-02-20  Richard Guenther  <rguenther@suse.de>
5912         PR tree-optimization/52298
5913         * tree-vect-stmts.c (vectorizable_store): Properly use
5914         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
5915         outer loops.
5916         (vectorizable_load): Likewise.
5917         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5918         Access DR_STEP after ensuring it is not NULL.
5920 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
5922         PR tree-optimization/52286
5923         * fold-const.c (fold_binary_loc): For (X & C1) | C2
5924         optimization use double_int_to_tree instead of build_int_cst_wide,
5925         rewrite to use double_int vars.
5927 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5929         PR target/50166
5930         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
5931         Define _start.
5932         Remove -e 0 from $gcc_cv_ld invocation.
5933         Only use __GLIBC_PREREQ if defined.
5934         Enable on Solaris since Solaris 8 patch.
5935         (gcc_SUN_LD_VERSION): New macro.
5936         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
5937         gcc_SUN_LD_VERSION for version number format.
5938         * configure: Regenerate.
5939         * varasm.c (get_elf_initfini_array_priority_section): Set
5940         SECTION_NOTYPE for non-default priority.
5941         Use get_section instead of get_unnamed_section to emit
5942         .init_array/.fini_array with default priority.
5944 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
5946         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
5947         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
5948         (mips_start_unique_function, mips_output_mips16_rdhwr)
5949         (mips_code_end): New functions.
5950         (TARGET_ASM_CODE_END): Define.
5952 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
5954         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
5955         to stubs with non-sibling calls.
5957 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
5959         * doc/invoke.texi (-fira-* options): Copy-edit.
5960         (ira-* parameters): Copy-edit.
5962 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
5964         * doc/invoke.texi: Minor copy-edits to bring into conformance with
5965         GCC coding conventions.
5967 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
5969         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
5970         when used as adjectives.
5972 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
5974         * doc/invoke.texi: Clean up "that"/"which" confusion.
5976 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
5978         * system.h: Poison SMALL_REGISTER_CLASSES
5979         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
5980         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
5982 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
5984         PR tree-optimization/52285
5985         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
5986         when deciding if a call is a tail call or tail recursion.
5988 2012-02-16  Kai Tietz  <ktietz@redhat.com>
5990         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
5991         interger-constant displacement for UNSPEC_PCREL.
5993 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
5995         PR rtl-optimization/52208
5996         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
5997         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
5999         PR tree-optimization/52255
6000         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
6001         loop->header has virtual PHI, but exit_e->dest doesn't, add
6002         virtual PHI to exit_e->dest and adjust all uses after the loop.
6004         PR debug/52260
6005         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
6006         children with clone_tree_hash, not after it.
6008 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
6010         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
6011         extended identifiers.
6013 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
6015         PR middle-end/51929
6016         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
6017         a same_body_alias, also test whether e->callee isn't a former
6018         or current clone of the decl this is a same body alias of.
6020         PR translation/52264
6021         * cgraphunit.c (verify_cgraph_node): Fix a typo.
6023 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
6025         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
6027 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
6029         PR target/52199
6030         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
6031         force_reg instead of copy_to_reg for better optimization.  Force
6032         non-register or memory operands into a register.
6034 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
6036         * extend.texi: Reserve upper bits of memory model for future use.
6038 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
6039             Anatoly Sokolov <aesok@post.ru>
6040             Eric Weddington <eric.weddington@atmel.com>
6042         PR target/52261
6043         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
6044         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
6045         Rewrite initializers for .macro.
6046         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
6047         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
6048         atxmega32d4, atxmega32x1.
6049         avrxmega4: atxmega64a3, atxmega64d3.
6050         avrxmega5: atxmega64a1, atxmega64a1u.
6051         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
6052         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
6053         avrxmega7: atxmega128a1, atxmega128a1u.
6054         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
6055         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
6056         (struct base_arch_s): Rename reserved to xmega_p.
6057         Rename reserved2 to have_rampd.
6058         (AVR_XMEGA): New define.
6059         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
6060         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
6061         * config/avr/predicates.md (io_address_operand): Take into
6062         account SFR offset.
6063         (low_io_address_operand): Ditto.
6064         (high_io_address_operand): Ditto.
6065         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
6066         (enabled, movhi_sp_r): Use them.
6067         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
6068         cpp_define_formatted to built-in define __AVR_ARCH__.
6069         (__AVR_XMEGA__): New built-in define.
6070         (__AVR_HAVE_RAMPD__): New built-in define.
6071         (__AVR_HAVE_RAMPX__): New built-in define.
6072         (__AVR_HAVE_RAMPY__): New built-in define.
6073         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
6075         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
6076         (avr_option_override): Initialize them.
6077         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
6078         (avr_init_expanders): Initialize them. No more block several calls.
6079         (emit_push_sfr): New static function.
6080         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
6081         Handle AVR_XMEGA.
6082         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
6083         (avr_print_operand): Print addreeses as symbols for
6084         RAMPX, RAMPY, RAMPD, CCP.
6085         (output_movhi): Handle AVR_XMEGA when writing to SP.
6086         (avr_out_movhi_mr_r_xmega): New static function.
6087         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
6088         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
6089         __RAMPD__,  __CCP__ as needed.
6091         * config/avr/multilib.h: Regenerate.
6092         * config/avr/t-multilib: Regenerate.
6093         * config/avr/avr-tables.opt: Regenerate.
6095 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
6097         PR tree-optimization/50561
6098         * graphite-flattening.c (lst_project_loop): Do not
6099         remove old scattering dimensions after flattening.
6100         (lst_do_flatten): Likewise.
6102 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
6104         * doc/extend.texi (AVR Built-in Functions): Remove doc for
6105         __builtin_avr_map8, __builtin_avr_map16.
6106         Document __builtin_avr_insert_bits.
6108         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
6109         (insert_bits): New insn.
6110         (adjust_len.map_bits): Rename to insert_bits.
6111         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
6112         * avr-protos.h (avr_out_map_bits): Remove.
6113         (avr_out_insert_bits, avr_has_nibble_0xf): New.
6114         * config/avr/constraints.md (Cxf,C0f): New.
6115         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
6116         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
6117         New built-in define __BUILTIN_AVR_INSERT_BITS.
6118         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
6119         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
6120         (avr_move_bits): Rewrite.
6121         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
6122         functions.
6123         (avr_map_op_t): New typedef.
6124         (avr_map_op): New static variable.
6125         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
6126         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
6127         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
6128         (bdesc_3arg, avr_expand_triop_builtin): New.
6129         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
6130         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
6131         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
6132         (avr_map_equal_p, avr_map_sig_p): Remove.
6133         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
6134         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
6135         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
6136         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
6137         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
6138         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
6140 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
6142         * config/c6x/c6x.md (reserve_cycles): New attribute.
6143         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
6144         don't reserve functional units after the branch occurs.
6146 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
6148         PR middle-end/52142
6149         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
6150         functions into non-tm_pure functions.
6152 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
6154         PR lto/52178
6155         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
6156         (iterative_hash_canonical_type): Likewise.
6157         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
6158         the dead edges.
6160 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
6162         * haifa-sched.c (prune_ready_list): Ensure that if there is a
6163         sched-group insn, it either remains alone or the entire list is pruned.
6165 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
6167         * doc/install.texi (Prerequisites): Fix grammar.
6168         (Configuration): Likewise.
6170 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
6172         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
6173         MPC as part of GCC before describing configuring with --with-gmp etc.
6174         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
6175         sources are present.
6177 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
6179         PR debug/51950
6180         * dwarf2out.c (clone_tree_hash): New function.
6181         (copy_decls_walk): Use it instead of clone_tree.
6183 2012-02-14  Richard Guenther  <rguenther@suse.de>
6185         PR tree-optimization/52244
6186         PR tree-optimization/51528
6187         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
6188         replacements for integral types.
6190 2012-02-14  Walter Lee  <walt@tilera.com>
6192         * config.gcc: Handle tilegx and tilepro.
6193         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
6194         tilegx and tilepro.
6195         Add HAVE_AS_TLS check for tilegx and tilepro.
6196         * configure: Regenerate.
6197         * doc/contrib.texi: Add Mat Hostetter and self.
6198         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
6199         Document instruction intrinsics and network accessing intrinsics.
6200         (TILEPro Built-in Functions): New node.  Document instruction
6201         intrinsics and network accessing intrinsics.
6202         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
6203         (Specific, tilepro-*-linux*): Likewise.
6204         * doc/invoke.texi (TILE-Gx Options): New section.
6205         (TILEPro Options): New section.
6206         * doc/md.texi (TILE-Gx): New section.
6207         (TILEPro): New section.
6208         * common/config/tilegx/tilegx-common.c: New file.
6209         * common/config/tilepro/tilepro-common.c: New file.
6210         * config/tilegx/constraints.md: New file.
6211         * config/tilegx/linux.h: New file.
6212         * config/tilegx/mul-tables.c: New file.
6213         * config/tilegx/predicates.md: New file.
6214         * config/tilegx/sync.md: New file.
6215         * config/tilegx/t-tilegx: New file.
6216         * config/tilegx/tilegx-builtins.h: New file.
6217         * config/tilegx/tilegx-c.c: New file.
6218         * config/tilegx/tilegx-generic.md: New file.
6219         * config/tilegx/tilegx-modes.def: New file.
6220         * config/tilegx/tilegx-multiply.h: New file.
6221         * config/tilegx/tilegx-protos.h: New file.
6222         * config/tilegx/tilegx.c: New file.
6223         * config/tilegx/tilegx.h: New file.
6224         * config/tilegx/tilegx.md: New file.
6225         * config/tilegx/tilegx.opt: New file.
6226         * config/tilepro/constraints.md: New file.
6227         * config/tilepro/gen-mul-tables.cc: New file.
6228         * config/tilepro/linux.h: New file.
6229         * config/tilepro/mul-tables.c: New file.
6230         * config/tilepro/predicates.md: New file.
6231         * config/tilepro/t-tilepro: New file.
6232         * config/tilepro/tilepro-builtins.h: New file.
6233         * config/tilepro/tilepro-c.c: New file.
6234         * config/tilepro/tilepro-generic.md: New file.
6235         * config/tilepro/tilepro-modes.def: New file.
6236         * config/tilepro/tilepro-multiply.h: New file.
6237         * config/tilepro/tilepro-protos.h: New file.
6238         * config/tilepro/tilepro.c: New file.
6239         * config/tilepro/tilepro.h: New file.
6240         * config/tilepro/tilepro.md: New file.
6241         * config/tilepro/tilepro.opt: New file.
6243 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
6245         PR tree-optimization/52210
6246         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
6247         vect_model_simple_cost with two entry vect_def_type array instead
6248         of an address of dt.
6250 2012-02-14  Richard Guenther  <rguenther@suse.de>
6252         PR lto/52178
6253         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
6254         Do not stream DECL_QUALIFIER.
6255         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
6256         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
6257         (find_decls_types_r): Do not walk DECL_QUALIFIER.
6259 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
6261         PR c/52181
6262         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
6263         newdecl.
6265 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
6267         PR bootstrap/52172
6268         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
6269         * cselib.c (cselib_subst_to_values_from_insn): New function.
6270         * sched-deps.c (add_insn_mem_dependence,
6271         sched_analyze_1, sched_analyze_2): Use it.
6273 2012-02-13  Jan Hubicka  <jh@suse.cz>
6275         PR middle-end/52214
6276         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
6278 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
6280         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
6281         (GTM_SELF_SPECS): Define if not already defined.
6282         (driver_self_specs): Add GTM_SELF_SPECS.
6283         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
6284         (GTM_SELF_SPECS): Define.
6285         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
6286         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
6288 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
6290         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
6291         away if seen.
6293         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
6295         PR middle-end/52230
6296         * omp-low.c (expand_omp_for): If a static schedule without chunk size
6297         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
6299 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
6301         PR c/52190
6302         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
6304 2012-02-13  Richard Guenther  <rguenther@suse.de>
6306         PR translation/52211
6307         * passes.c (enable_disable_pass): Fix typo.
6309 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
6311         PR middle-end/52209
6312         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
6313         XOR for reduce_bit_field if type is unsigned.
6315 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
6317         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
6318         disallow changes from SFmode to mode with different size in FP regs.
6320 2012-02-12  Robert Millan  <rmh@gnu.org>
6321             Gerald Pfeifer <gerald@pfeifer.com>
6323         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
6324         Tweak comment.
6326 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
6328         PR rtl-optimization/52175
6329         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
6330         to frame-related instructions.
6332 2012-02-10  Jason Merrill  <jason@redhat.com>
6334         PR c++/51910
6335         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
6336         (demangle_new_symbols): Fill it.
6337         (scan_linker_output): Walk it.
6338         (start_tweaking): Split out from scan_linker_output.
6339         (maybe_tweak): Update sym->chosen.
6340         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
6342 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
6344         PR debug/52132
6345         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
6347 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
6349         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
6350         having the same mode as previous compare.
6352 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
6354         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
6355         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
6356         (nonlocal_goto_internal): Likewise.
6357         (nonlocal_goto): Emit a use and an indirect jump directly.
6359 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
6361         PR c/52190
6362         * doc/extend.texi : Update comments for __atomic_compare_exchange and
6363         __atomic_{is,always}_lock_free.
6365 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
6367         PR target/52146
6368         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
6369         negative constant address for TARGET_X32.
6371 2012-02-10  Richard Henderson  <rth@redhat.com>
6373         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
6374         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
6375         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
6377 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6378             Ira Rosen  <irar@il.ibm.com>
6380         PR tree-optimization/50031
6381         * targhooks.c (default_builtin_vectorization_cost): Handle
6382         vec_promote_demote.
6383         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
6384         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
6385         all types of reduction and pattern statements.
6386         (vect_estimate_min_profitable_iters): Likewise.
6387         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
6388         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
6389         for explicit realigns.
6390         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
6391         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
6392         vec_promote_demote.
6393         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6394         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
6395         vec_perm for VSX and handle vec_promote_demote.
6397 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
6399         PR middle-end/52177
6400         * builtins.c (fold_builtin_atomic_always_lock_free,
6401         expand_builtin_atomic_always_lock_free,
6402         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
6403         Return and/or test boolean_true_node/boolean_false_node instead of
6404         integer_one_node/integer_zero_node.
6406 2012-02-10  Jan Hubicka  <jh@suse.cz>
6408         PR middle-end/48600
6409         * predict.c (predict_paths_for_bb): Prevent looping.
6410         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
6412 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
6414         * config/arm/arm.c (output_move_double): In one case properly
6415         count number of instructions that will be emitted.
6417 2012-02-10  Richard Guenther  <rguenther@suse.de>
6419         PR translation/52193
6420         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
6422 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
6424         PR middle-end/52140
6425         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
6427 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
6429         PR debug/52165
6430         * var-tracking.c (emit_note_insn_var_location): If
6431         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
6432         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
6433         non-NOTE_DURING_CALL_P insn.
6435 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
6437         PR middle-end/51867
6438         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
6440 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
6442         PR driver/48524
6443         * gcc.c (switch_matches) Support switches with separated form,
6444         -D and -U.
6446 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
6448         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
6449         (SP_ADDR): Ditto.
6450         (RAMPZ_ADDR): Ditto.
6451         * config/avr/avr.c (avr_addr_t): New typedef.
6452         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
6453         (avr_init_expanders): Initialize it.
6454         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
6455         SREG_ADDR.
6456         (expand_epilogue): Ditto.
6457         (avr_print_operand): Ditto.
6458         (avr_file_start): Ditto.
6459         (avr_emit_movmemhi): Ditto.
6461 2012-02-08  Richard Guenther  <rguenther@suse.de>
6463         PR tree-optimization/46886
6464         * tree-flow.h (do_while_loop_p): Declare.
6465         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
6466         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
6468 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
6470         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
6471         always succeed for integers larger than a native word.
6473 2012-02-08  Richard Guenther  <rguenther@suse.de>
6475         PR rtl-optimization/52170
6476         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
6477         properly handle integer vector modes.
6479 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
6481         PR gcov-profile/52150
6482         * coverage.c: Include target.h.
6483         (build_var): Call targetm.strip_name_encoding on the assembler name.
6484         Change one _ into . or $ if the target allows it.
6485         * Makefile.in (coverage.o): Depend on $(TARGET_H).
6487         PR rtl-optimization/52139
6488         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
6489         is a BARRIER after emit_insn_after_noloc, move BB_END
6490         to the last non-BARRIER insn before it.
6492 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
6494         PR middle-end/24306
6495         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
6496         (mips_gimplify_va_arg_expr): Call it instead of
6497         std_gimplify_va_arg_expr.
6499 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
6501         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
6502         message for -mno-pointers-to-nested-function.
6504 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
6506         PR middle-end/51994
6507         * expr.c (get_inner_reference): If there is an offset, add a negative
6508         bit position to it (if any).
6510 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
6512         PR rtl-optimization/52060
6513         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
6514         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
6515         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
6516         and/or i0src_copy2 when needed.
6518 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
6520         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
6521         or LTOPLUGINSONAME if have_c.
6523         * config/freebsd-spec.h: Add comment about what macros can be defined
6524         in this header.
6525         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
6526         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
6527         here instead.
6529 2012-02-07  Richard Guenther  <rguenther@suse.de>
6531         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
6532         newline in -alias dumps.
6534 2012-02-07  Kai Tietz  <ktietz@redhat.com>
6535             Dave Korn  <dave.korn.cygwin@gmail.com>
6537         PR target/40068
6538         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
6539         Take care that typinfo gets dllexport-attribute.
6541 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
6543         PR middle-end/52074
6544         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
6545         if modifier < EXPAND_SUM call force_operand on the result.
6547 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6549         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
6550         adding __forwarder_dst__ prefix if a forwarder_section attribute is
6551         present.
6552         (epiphany_function_type): Replace types for specific interrupts with
6553         EPIPHANY_FUNCTION_INTERRUPT.
6554         (EPIPHANY_INTERRUPT_P): Update.
6555         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
6556         New static function.
6557         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
6558         <disinterrupt>: Affects type identity.
6559         (epiphany_handle_interrupt_attribute): Handle variable number of
6560         arguments.
6561         (epiphany_compute_function_type): Update for new
6562         epiphany_function_type definition.
6563         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
6564         handlers with a longcall forwarder.
6565         (epiphany_start_function): Handle multiple interrupt arguments and/or
6566         forwarder_section attribute.
6568         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
6569         libgloss.
6571 2012-02-07  Alan Modra  <amodra@gmail.com>
6573         PR target/52107
6574         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
6575         subregs of TFmode.
6577 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6579         PR tree-optimization/50969
6580         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
6581         use vec_perm rather than vector_stmt.
6582         (vect_model_load_cost): Likewise.
6583         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
6584         vec_perm to be the same as other vector statements.
6585         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
6586         cost of vec_perm for TARGET_VSX.
6588 2012-02-06  Richard Guenther  <rguenther@suse.de>
6590         PR tree-optimization/52115
6591         * tree-sra.c (access_has_replacements_p): New function.
6592         (sra_modify_assign): Use it to decide whether a use is uninitialized.
6594 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
6596         PR middle-end/52047
6597         * trans-mem.c (expand_call_tm): Add an assertion.
6598         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
6599         functions.
6601 2012-02-06  Richard Guenther  <rguenther@suse.de>
6603         PR tree-optimization/50955
6604         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
6605         raise cost of expressions that replace an address with an
6606         expression based on a different pointer.
6608 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
6610         PR target/52129
6611         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
6612         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
6614 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6616         PR c++/48680
6617         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
6618         -Weffc++ and specify guidelines come from second edition.
6620 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
6622         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
6623         (sibcall_value_multiple_internal, call_split, call_internal_direct)
6624         (call_direct_split, call_value_split, call_value_internal_direct)
6625         (call_value_direct_split, call_value_multiple_split): Use jal and
6626         jal_macro attributes.
6628 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
6630         * reload1.c (reload_regs_reach_end_p): Replace with...
6631         (reload_reg_rtx_reaches_end_p): ...this function.
6632         (new_spill_reg_store): Update commentary.
6633         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
6634         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
6635         before setting new_spill_reg_store.
6636         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
6637         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
6638         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
6639         for non-spill reload registers.
6641 2012-02-05  Ira Rosen  <irar@il.ibm.com>
6643         PR tree-optimization/52091
6644         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
6645         (vect_is_simple_use_1): Likewise.
6646         * tree-vect-loop.c (vectorizable_reduction): Update calls
6647         to vect_is_simple_use_1 and vect_is_simple_use.
6648         (vectorizable_live_operation): Likewise.
6649         * tree-vect-patterns.c (widened_name_p,
6650         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
6651         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
6652         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
6653         vectorizable_shift,vectorizable_operation, vectorizable_store,
6654         vectorizable_load): Likewise.
6655         (vect_is_simple_cond): Add an argument, pass it to
6656         vect_is_simple_use_1.
6657         (vectorizable_condition): Update calls to vect_is_simple_cond,
6658         vect_is_simple_use.
6659         (vect_is_simple_use): Add an argument, the statement in which
6660         OPERAND is used.  Check that if OPERAND's def stmt is a double
6661         reduction phi node, the use is a phi node too.
6662         (vect_is_simple_use_1): Add an argument, pass it to
6663         vect_is_simple_use.
6664         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
6665         to vect_is_simple_use.
6667 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
6669         PR rtl-optimization/52095
6670         * modulo-sched.c (dump_insn_locator): New function.
6671         (loop_canon_p, sms_schedule): Use it.
6673         PR rtl-optimization/52113
6674         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
6675         even for decomposable shift/zext insns.
6677 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
6678             Zdenek Dvorak  <ook@ucw.cz>
6680         PR rtl-optimization/52092
6681         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
6682         on get_iv_value result.
6684 2012-02-02  Andrew Pinski  <apinski@cavium.com>
6686         PR middle-end/47982
6687         PR middle-end/43967
6688         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
6690 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
6692         PR middle-end/48071
6693         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
6695 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
6697         PR rtl-optimization/49800
6698         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
6699         (sched_finish): Call regstat_free_n_sets_and_refs.
6701 2012-02-02  Jia Liu  <proljc@gmail.com>
6703         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
6704         than operand 2.
6706 2012-02-02  Jan Hubicka  <jh@suse.cz>
6707             Tom de Vries  <tom@codesourcery.com>
6709         PR middle-end/51998
6710         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
6711         * varpool.c (varpool_analyze_pending_decls): Likewise.
6713 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
6714             Jayant R Sonar <jayant.sonar@kpitcummins.com>
6716         * config.gcc: Add cr16-* support.
6718         * doc/extend.texi: Document cr16 extensions.
6719         * doc/install.texi: Document cr16 install.
6720         * doc/invoke.texi: Document cr16 options.
6721         * doc/md.texi: Document cr16 constraints.
6723         * common/config/cr16/cr16-common.c: New file.
6724         * config/cr16/cr16.c: New file.
6725         * config/cr16/cr16.h: New file.
6726         * config/cr16/cr16.md: New file.
6727         * config/cr16/cr16.opt: New file.
6728         * config/cr16/cr16-protos.h: New file.
6729         * config/cr16/predicates.md: New file.
6730         * config/cr16/constraints.md: New file.
6731         * config/cr16/t-cr16: New file.
6733 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
6735         PR target/52086
6736         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
6737         that operands[2] is either immediate, or q_regs_operand.
6739         PR tree-optimization/52073
6740         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
6741         a pattern stmt for pattern uses, ignore uses outside of the loop.
6743 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
6745         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
6746         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
6747         (OUT_AS1, OUT_AS2): Remove.
6749 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
6751         PR rtl-optimization/51374
6752         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
6753         to cross other volatile_refs_p insns.
6755 2012-02-01  Richard Guenther  <rguenther@suse.de>
6757         * doc/invoke.texi (fno-inline): Clarify documentation.
6758         (finline-small-functions): Likewise.
6759         (finline-functions): Likewise.
6760         * common.opt (finline): Adjust comment and documentation.
6761         (finline-small-functions): Clarify documentation.
6762         (finline-functions): Likewise.
6763         (finline-functions-called-once): Likewise.
6765 2012-02-01  Tristan Gingold  <gingold@adacore.com>
6767         * c-typeck.c (composite_type): Keep mode for pointers.
6769 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
6771         * function.h (regno_reg_rtx): Adjust comment.
6772         * reginfo.c (init_reg_modes_target): Only use the previous mode
6773         if it fits within one register.  Remove MIPS comment.
6775 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
6777         PR bootstrap/52058
6778         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
6780 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6782         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
6783         to srak instruction.
6785 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6787         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
6789 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
6791         PR bootstrap/52041
6792         PR bootstrap/52039
6793         PR target/51974
6794         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
6796 2012-01-31  Richard Guenther  <rguenther@suse.de>
6798         PR tree-optimization/51528
6799         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
6800         assigns.
6802 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
6804         PR bootstrap/52041
6805         PR bootstrap/52039
6806         PR target/51974
6807         * ree.c (add_removable_extension): Change def_map argument
6808         to unsigned *, store in def_map 1 + offset into *insn_list vector
6809         instead of pointers into the vector.
6810         (find_removable_extensions): Adjust caller.
6812 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
6814         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
6815         Transform all "* quoted-c-code" to { c-code }.
6816         Remove redundant test for "optimize" in combine patterns.
6817         Move (include "avr-dimode.md") to end of file.
6819 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
6821         PR target/51835
6822         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
6823         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
6825 2012-01-30  Richard Guenther  <rguenther@suse.de>
6827         PR tree-optimization/52028
6828         * tree-loop-distribution.c (ldist_gen): Properly update
6829         virtual SSA form.
6831 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
6833         PR debug/52027
6834         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
6835         set_cur_line_info_table if not emitting debug info.
6837         PR tree-optimization/52046
6838         * tree-vect-patterns.c (check_bool_pattern): Give up if
6839         a comparison could throw.
6841         PR debug/52048
6842         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
6844 2012-01-30  Richard Guenther  <rguenther@suse.de>
6846         PR tree-optimization/52045
6847         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
6848         SSA form if cfgcleanup did anything.
6850 2012-01-30  Richard Guenther  <rguenther@suse.de>
6852         PR tree-optimization/52045
6853         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
6854         before computing final todo.
6856 2012-01-30  Richard Guenther  <rguenther@suse.de>
6858         PR tree-optimization/51528
6859         * tree-sra.c (sra_modify_assign): Re-factor in preparation
6860         for PR51528 fix.
6862 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
6864         * df-problems.c (df_kill_notes): Check that the use refers
6865         to the note under examination.
6867 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
6869         PR target/51920
6870         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
6871         parameter and use short-lived pseudos.
6872         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
6873         (sparc_expand_vector_init): Const-ify local variables and adjust
6874         calls to above functions.
6876 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
6878         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
6880 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
6882         * doc/invoke.texi: Make usage of "compile time" and
6883         "run time"/"runtime" consistent throughout the file.
6885 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
6887         * config/alpha/alpha.c (alpha_option_override): Default to
6888         full IEEE compliance mode for Go language.
6890 2011-01-29  Tijl Coosemans  <tijl@coosemans.org>
6892         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
6893         (LINK_SSP_SPEC): Define.
6895 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6897         PR target/51871
6898         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
6899         stubs.
6901 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
6903         * doc/invoke.texi: Correct hyphenation of "floating point",
6904         "double precision", and related terminology throughout the file.
6906 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
6908         PR target/52006
6909         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
6910         arm_general_register_operand predicate for operand 2 instead of
6911         register_operand.
6913 2012-01-27  Ian Lance Taylor  <iant@google.com>
6915         PR go/47656
6916         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
6917         * builtins.c (expand_builtin_init_trampoline): Add onstack
6918         parameter.  Change caller.
6919         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
6920         * tree.c (build_common_builtin_nodes): Declare
6921         __builtin_init_heap_trampoline.
6923 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
6925         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
6926         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
6927         * config/avr/avr.c: Ditto.
6928         (avr_regnames): Remove because unused.
6929         * config/avr/avr.md (*cpse.ne): New peephole.
6930         (*cpse.eq): New peephole from former cpse peepholes.
6932 2012-01-27  Michael Eager  <eager@eagercon.com>
6934         * config/microblaze.c (microblaze_emit_compare): Correct
6935         test after pcmp instruction.
6937 2012-01-27  Richard Guenther  <rguenther@suse.de>
6939         PR tree-optimization/52020
6940         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
6942 2012-01-27  Richard Guenther  <rguenther@suse.de>
6944         * ipa-pure-const.c (check_stmt): Clobbers do not make a
6945         function non-const/pure.
6947 2012-01-27  Richard Guenther  <rguenther@suse.de>
6949         PR tree-optimization/50444
6950         * tree-sra.c (build_ref_for_offset): Properly adjust the
6951         MEM_REF type for unaligned accesses.
6953 2012-01-27  Richard Guenther  <rguenther@suse.de>
6955         PR tree-optimization/50444
6956         * expr.c (mem_ref_refers_to_non_mem_p): New function.
6957         (expand_assignment): Use it.  Properly handle misaligned
6958         bases when expanding stores to component references.
6959         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
6960         refactor that case.
6962 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
6964         PR middle-end/51389
6965         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
6966         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
6967         * tree-data-ref.c (find_data_references_in_loop): Make static.
6968         (compute_all_dependences): Change return type to bool.  Bail out
6969         for too many datarefs in a loop.  Move the hunk resetting the data
6970         dependences vector from ...
6971         (compute_data_dependences_for_loop): ... here.  Account for
6972         compute_all_dependences returning false.
6973         (compute_data_dependences_for_bb): Likewise.
6974         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
6975         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
6977 2012-01-27  Richard Guenther  <rguenther@suse.de>
6979         PR middle-end/51959
6980         * expr.c (store_field): Use the alias-set of the scratch memory
6981         for storing to it.
6983 2012-01-27  Tom de Vries  <tom@codesourcery.com>
6985         PR tree-optimization/51990
6986         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6987         WITH_SIZE_EXPR.
6988         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
6990 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
6992         PR debug/52001
6993         * var-tracking.c (reverse_op): Don't add any reverse operation
6994         if V already has any constant locations.
6996 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
6998         * doc/invoke.texi: Correct usage of "command line" (noun)
6999         vs "command-line" (adjective) throughout.
7001 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
7003         * doc/invoke.texi (Language Independent Options): Move
7004         -Wcoverage-mismatch blurb from here....
7005         (Warning Options): ...to here.
7007 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
7009         * config/rs6000/rs6000.c (rs6000_option_override_internal):
7010         Set rs6000_always_hint to false for 476.
7012 2012-01-27  Matthias Klose  <doko@ubuntu.com>
7014         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
7015           system root.
7016         * incpath.c (add_standard_paths): Likewise.
7018 2012-01-27  Richard Henderson  <rth@redhat.com>
7020         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
7021         * config/m68k/sync.md (atomic_test_and_set): Rename from
7022         sync_test_and_setqi and adjust the operands.
7023         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
7024         and unconditionally enable.
7026 2012-01-27  Richard Henderson  <rth@redhat.com>
7028         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
7029         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
7030         (ldstub): Rename from ldstubqi.
7031         (ldstub<I24MODE>): Remove.
7033 2012-01-27  Richard Henderson  <rth@redhat.com>
7035         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
7036         * c-cppbuiltin.c (cpp_atomic_builtins): Define
7037         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
7038         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
7039         * doc/tm.texi: Rebuild.
7041 2012-01-27  Richard Henderson  <rth@redhat.com>
7043         * optabs.c (gen_atomic_test_and_set): Remove default.
7044         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
7046 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
7048         PR rtl-optimization/51978
7049         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
7050         (combine_reaching_defs): Likewise.
7051         (struct re_info): Remove.
7052         (add_removable_extension): Remove x and data arguments,
7053         add insn, insn_list and def_map.  Use the arguments directly
7054         instead of using struct re_info.
7055         (find_removable_extensions): Don't call add_removable_extension
7056         through note_stores, instead just call it with single_set
7057         result if non-NULL.
7058         (find_and_remove_re): Pass curr_cand->expr instead of
7059         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
7061 2012-01-26  Michael Matz  <matz@suse.de>
7063         PR tree-optimization/46590
7064         * cfgexpand.c: Revert last change (r183305).
7065         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
7066         regs.
7067         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
7068         checking for emptiness.
7070 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
7072         PR middle-end/51895
7073         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
7074         non-addressable non-BLKmode base correctly.
7076 2012-01-26  Michael Matz  <matz@suse.de>
7078         PR tree-optimization/48794
7079         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
7080         regions referenced from RESX/EH_DISPATCH.
7082 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7084         * config/s390/s390.h: Make BRANCH_COST an option.
7085         * config/s390/s390.opt: New option -mbranch-cost.
7087 2012-01-26  Richard Henderson  <rth@redhat.com>
7089         Revert 2012-01-24 change:
7090         * trans-mem.c (requires_barrier): Do not instrument thread local
7091         variables and emit save/restore for them.
7093 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
7095         PR middle-end/51986
7096         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
7097         for pat == 0.
7099 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
7101         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
7102         ASM_OPERANDS.
7104 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
7106         PR target/49868
7107         Rename __pgm to __flash.
7108         Rename __pgm1 to __flash1.
7109         Rename __pgm2 to __flash2.
7110         Rename __pgm3 to __flash3.
7111         Rename __pgm4 to __flash4.
7112         Rename __pgm5 to __flash5.
7113         Rename __pgmx to __memx.
7114         * doc/extend.texi (AVR Named Address Spaces)
7115         Rename address space names as indicated above.
7116         * config/avr/avr.c (avr_addrspace): Ditto.
7118         * config/avr/avr-protos.h
7119         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
7120         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
7121         * config/avr/predicates.md: Ditto.
7122         * config/avr/avr.c Ditto, and
7123         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
7124         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
7126         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
7127         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
7128         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
7129         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
7130         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
7131         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
7132         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
7133         * config/avr/avr.c: Ditto.
7134         * config/avr/avr.md: Ditto.
7136 2012-01-25  Jason Merrill  <jason@redhat.com>
7138         PR c++/51992
7139         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
7141 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
7143         PR tree-optimization/51987
7144         * tree-data-ref.c (get_references_in_stmt): Handle references in
7145         non-volatile GIMPLE_ASM.
7147 2012-01-25  Richard Guenther  <rguenther@suse.de>
7149         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
7150         bases are dereferenced.
7152 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
7154         PR rtl-optimization/48374
7155         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
7157 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
7159         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
7160         compute_data_dependences_for_loop returns false.
7161         * tree-parloops.c (loop_parallel_p): Likewise.
7163 2012-01-25  Richard Guenther  <rguenther@suse.de>
7165         * tree.h (get_pointer_alignment_1): Declare.
7166         * builtins.c (get_pointer_alignment_1): New function.
7167         (get_pointer_alignment): Use it.
7169 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7171         PR rtl-optimization/48308
7172         * combine.c (enum undo_kind): Add UNDO_LINKS.
7173         (struct undo): Add member l to other_contents and where.
7174         (do_SUBST_LINK): New.
7175         (SUBST_LINK): New.
7176         (try_combine): Handle LOG_LINKS for the dummy i1 case.
7177         (undo_all): Handle UNDO_LINKS.
7179 2012-01-25  Richard Henderson  <rth@redhat.com>
7181         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
7182         mem inputs.
7184 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
7186         * optabs.c (gen_atomic_test_and_set): Use each argument.
7188 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
7190         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
7191         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
7192         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
7193         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
7194         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
7195         TARGET_PAIRED_SINGLE_FLOAT.
7197 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
7199         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
7200         (in_struct, return_val): Remove MEM documentation.
7201         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
7202         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
7203         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
7204         and MEM_SCALAR.
7205         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7206         * cfgexpand.c (add_alias_set_conflicts): Likewise.
7207         * expr.c (store_field): Likewise.
7208         * function.c (assign_stack_temp_for_type): Likewise.
7209         * ifcvt.c (noce_try_cmove_arith): Likewise.
7210         * reload1.c (reload): Likewise.
7211         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
7212         (alpha_set_memflags): Likewise.
7213         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
7215 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
7217         * rtl.h (true_dependence, canon_true_dependence): Remove varies
7218         parameter.
7219         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
7220         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
7221         (true_dependence_1, true_dependence, canon_true_dependence): Remove
7222         varies parameter.
7223         * cselib.c (cselib_rtx_varies_p): Delete.
7224         (cselib_invalidate_mem): Update call to canon_true_dependence.
7225         * dse.c (record_store, check_mem_read_rtx): Likewise.
7226         (scan_reads_nospill): Likewise.
7227         * cse.c (check_dependence): Likewise.
7228         (cse_rtx_varies_p): Delete.
7229         * expr.c (safe_from_p): Update call to true_dependence.
7230         * ira.c (validate_equiv_mem_from_store): Likewise.
7231         (memref_referenced_p): Likewise.
7232         * postreload-gcse.c (find_mem_conflicts): Likewise.
7233         * sched-deps.c (sched_analyze_2): Likewise.
7234         * store-motion.c (load_kills_store): Likewise.
7235         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
7236         * gcse.c (mems_conflict_for_gcse_p): Likewise.
7237         (compute_transp): Update call to canon_true_dependence.
7239 2012-01-25  Richard Henderson  <rth@redhat.com>
7241         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
7242         (maybe_emit_atomic_test_and_set): New.
7243         (expand_sync_lock_test_and_set): Use it.
7244         (expand_atomic_test_and_set): Likewise.
7245         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
7246         the implementation; clarify implementation defined details.
7247         * doc/md.texi (atomic_test_and_set): Document.
7249 2012-01-25  Richard Henderson  <rth@redhat.com>
7251         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
7253 2012-01-25  Richard Henderson  <rth@redhat.com>
7255         PR target/51968
7256         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
7257         to effect no-op split.
7259 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
7261         PR lto/51698
7262         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
7263         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
7264         (BT_FN_VOID_PTR_INT_SIZE): New.
7265         (BT_FN_UINT_UINT_VAR): Remove.
7266         (BT_FN_UINT32_UINT32_VAR): New.
7267         (BT_FN_DOUBLE_VPTR): Remove.
7268         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
7270         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
7271         (_ITM_changeTransactionMode): Same.
7272         (_ITM_memmoveRtWt): Change return type to void.
7273         (_ITM_memcpyRtWt): Same.
7274         (_ITM_memsetW): Same.
7275         (_ITM_RaRD): Change types to double.
7276         (_ITM_RD): Same.
7277         (_ITM_RaWD): Same.
7278         (_ITM_RfWD): Same.
7280         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
7282 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
7283             Patrick Marlier  <patrick.marlier@gmail.com>
7285         * trans-mem.c (requires_barrier): Do not instrument thread local
7286         variables and emit save/restore for them.
7288 2012-01-24  Jason Merrill  <jason@redhat.com>
7290         PR c++/51812
7291         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
7292         output static aliases.
7294 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
7296         PR driver/47249
7297         * common.opt (-pie, -shared, pie, shared): Change from Common to
7298         Driver.
7299         * gcc.c (display_help): Display help for -pie and -shared.
7301 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
7303         PR target/49868
7304         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
7305         Remove note on size/offset limitation.
7306         (AVR Variable Attributes): Add example how to read data located
7307         with progmem.  Refer to named address spaces.
7308         * doc/invoke.texi (AVR Options): Fix typo.
7310 2012-01-24  Richard Guenther  <rguenther@suse.de>
7312         Forward-port to trunk
7313         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
7315         PR middle-end/45678
7316         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
7317         op0 isn't sufficiently aligned and there is movmisalignM
7318         insn for mode, use it to load op0 into a temporary register.
7320 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
7322         PR target/51957
7323         * target.def (const_not_ok_for_debug_p): New hook.
7324         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
7325         documentation.
7326         * doc/tm.texi: Regenerated.
7327         * dwarf2out.c (const_ok_for_output_1): If
7328         targetm.const_not_ok_for_debug_p returns true, fail.
7329         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
7330         function.
7331         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
7333 2012-01-23  Kai Tietz  <ktietz@redhat.com>
7335         PR target/51900
7336         * config/i386/predicates.md (symbolic_operand): Allow
7337         UNSPEC_PCREL as PIC expression for lea.
7338         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
7339         * config/i386/i386.c (ix86_delegitimize_address): Handle
7340         UNSPEC_PCREL for none-MEM, too.
7342 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
7344         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
7345         (ipa_tm_create_version_alias): Same.
7347 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
7349         PR libitm/51830
7350         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
7351         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
7353 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
7354             Patrick Marlier  <patrick.marlier@gmail.com>
7355             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
7357         PR lto/51916
7358         * lto-wrapper.c (run_gcc): Pass the LTO section name to
7359         simple_object_start_read.
7361 2012-01-23  Richard Guenther  <rguenther@suse.de>
7364         PR tree-optimization/51895
7365         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
7366         parameter decomposition into BLKmode components.
7368 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
7370         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
7371         fake variables for restrict-qualified pointers whose pointed-to type
7372         contains a placeholder.
7374 2012-01-23  Richard Guenther  <rguenther@suse.de>
7376         PR tree-optimization/51949
7377         * ipa-split.c (execute_split_functions): Do not split malloc functions.
7379 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
7381         PR rtl-optimization/51933
7382         * ree.c (transform_ifelse): Return true right away if dstreg is
7383         already wider or equal to cand->mode.
7384         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
7385         (make_defs_and_copies_lists): Remove defs_list and copies_list
7386         arguments, add state argument, just truncate state->work_list
7387         instead of always allocating and freeing the vector.  Assert that
7388         get_defs succeeds instead of returning 2.  Changed return type to bool.
7389         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
7390         have ext_src_mode, see if it has been modified already with the
7391         right kind of extension and has been extended before from the
7392         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
7393         just return true.  Remember the original mode in state->modified array.
7394         (combine_reaching_defs): Add state argument.  Don't allocate and
7395         free here def_list, copied_list and vec vectors, instead just
7396         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
7397         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
7398         Add state variable, clear vectors in it, initialize state.modified
7399         if needed.  Free all the vectors at the end and state.modified too.
7400         Don't skip a candidate if the extension expression has been modified.
7402 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
7404         PR target/47096
7405         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
7406          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
7407         (extra_options) interix.opt -> i386/interix.opt"
7408         (extra_objs):Add winnt-stubs.o
7409         * configure.ac: Add interix to target_os .comm on PE check.
7410         * configure: Regenerate.
7411         * config/interix3.h: Delete and move bits to..
7412         * config/interix.h: Delete and move bits to..
7413         * config/i386/i386-interix3.h: Delete and move bits to..
7414         * config/i386/i386-interix.h: ..here.
7415         (TARGET_CPU_DEFAULT): Remove redefinition.
7416         (TARGET_ASM_CONSTRUCTOR): Undefine.
7417         (SUBTARGET_SWITCHES): Define for ms-bitfields.
7418         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
7419         (PTRDIFF_TYPE): Define.
7420         (LONG_DOUBLE_TYPE_SIZE): Define.
7421         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
7422         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7423         (TARGET_SECTION_TYPE_FLAGS): Define.
7424         (ASM_DECLARE_FUNCTION_NAME): Define.
7425         (ASM_OUTPUT_EXTERNAL): Define.
7426         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
7427         (ASM_OUTPUT_ALIGNED_BSS): Define.
7428         (PCC_BITFIELD_TYPE_MATTERS): Define.
7429         (USE_CONST_SECTION): Define.
7430         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
7431         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
7432         (SUPPORTS_ONE_ONLY): Remove.
7433         (I386_PE_STRIP_ENCODING): Define.
7434         * config/interix.opt: Delete and move bits to..
7435         * config/i386/interix.opt: ..here. New.
7436         (mpe-aligned-commons): Add.
7437         * config/i386/t-interix: Add copyright header.
7438         (winnt-stubs.o): Add rule.
7440 2012-01-22  Jason Merrill  <jason@redhat.com>
7442         PR c++/51832
7443         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
7444         for extra name aliases.
7446 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7448         PR rtl-optimization/51924
7449         * ree.c (combine_set_extension): Improve debugging message.
7450         (combine_reaching_defs): Likewise.
7451         (get_defs): Rename confusingly named variable.
7452         (find_and_remove_re): Skip a candidate if the extension expression has
7453         been modified.
7455 2012-01-21  Robert Millan  <rmh@gnu.org>
7456             Gerald Pfeifer  <gerald@pfeifer.com>
7458         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
7459         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
7461 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
7463         PR tree-optimization/51914
7464         * tree-vect-stmts.c (vectorizable_conversion): For
7465         cvt_type && modifier == WIDEN, put temporary with cvt_type
7466         at the beginning of vec_dsts and set vec_dest to temporary
7467         with vectype_out.
7469 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
7471         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
7473 2011-01-20  Tijl Coosemans  <tijl@coosemans.org>
7475         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
7476         * config/rs6000/rs6000.c: Likewise.
7478 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
7480         PR target/51915
7481         * config/arm/arm.c (arm_count_output_move_double_insns): Call
7482         output_move_double on a copy of operands array.
7484 2012-01-20  Cary Coutant  <ccoutant@google.com>
7485             Dodji Seketeli  <dodji@redhat.com>
7487         PR debug/45682
7488         * dwarf2out.c (copy_declaration_context): Return ref to parent
7489         of declaration DIE, if necessary.
7490         (remove_child_or_replace_with_skeleton): Add new parameter; update
7491         caller.  Place skeleton DIE under parent DIE of original declaration.
7492         Move call to copy_declaration_context to here ...
7493         (break_out_comdat_types): ... from here.
7495 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7497         PR rtl-optimization/51856
7498         * reload.c (find_reloads_subreg_address): Set the address_reloaded
7499         flag to reloaded.
7501 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7503         PR target/51819
7504         * config/arm/arm.c (arm_print_operand): Correct output of alignment
7505         hints for neon loads and stores.
7507 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
7509         PR target/49868
7510         PR target/50887
7511         * doc/extend.texi (Named Address Spaces): Split into subsections.
7512         (AVR Named Address Spaces): New subsection.
7513         (M32C Named Address Spaces): New subsection.
7514         (RL78 Named Address Spaces): New subsection.
7515         (SPU Named Address Spaces): New subsection.
7516         (Variable Attributes): New anchor "AVR Variable Attributes".
7517         (AVR Variable Attributes): Rewrite and avoid wording
7518         "address space" in this context.
7519         * doc/invoke.texi (AVR Options): Rewrite and add documentation
7520         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
7521         (AVR Built-in Macros): New subsubsection therein.
7522         * doc/md.texi (AVR constraints): Remove "C04", "R".
7524 2012-01-20  Richard Guenther  <rguenther@suse.de>
7526         PR tree-optimization/51903
7527         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
7528         when removing stmts.
7530 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7532         PR target/50313
7533         * config/arm/arm.c (arm_load_pic_register): Use
7534         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
7535         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
7536         (arm_pic_static_addr): Likewise.
7537         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
7538         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
7539         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
7540         (pic_load_addr_unified): New.
7542 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
7544         PR target/51106
7545         * function.c (instantiate_virtual_regs_in_insn): Use
7546         delete_insn_and_edges when removing a wrong asm insn.
7548 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
7550         PR rtl-optimization/40761
7551         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
7552         Add new member loop_num.
7553         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
7554         (ira_build): Remove the parameter.
7556         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
7557         (ira.c): Do not build CFG loops for one region allocation.  Remove
7558         argument from ira_build call.
7560         * ira-build.c (init_loop_tree_node): New function.
7561         (create_loop_tree_nodes): Use it.  Separate the case when CFG
7562         loops are not built.
7563         (more_one_region_p): Check current_loops.
7564         (finish_loop_tree_nodes): Separate the case when CFG loops are not
7565         built.
7566         (add_loop_to_tree): Process loop equal to NULL too.
7567         (form_loop_tree): Separate the case when CFG loops are not built.
7568         Use explicitly number for the root.
7569         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
7570         an assertion.
7571         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
7572         instead of loop->num.
7573         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
7574         (mark_all_loops_for_removal): Ditto.
7575         (remove_unnecessary_regions): Separate the case when CFG loops
7576         are not built.
7577         (ira_build): Remove the parameter.  Use explicit number of regions
7578         when CFG loops are not built.
7580         * ira-color.c (print_loop_title): Separate the case for the root node.
7581         Use loop_num instead of loop->num.
7582         (move_spill_restore): Use loop_num instead of loop->num.
7584         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
7585         (change_loop): Ditto.
7586         (change_loop): Use loop_num instead of loop->num.
7588         * ira-lives.c (process_bb_node_lives): Ditto.
7590         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
7592         * ira-conflicts.c (print_allocno_conflicts): Ditto.
7594 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
7596         PR libmudflap/40778
7597         * tree-mudflap.c (mf_artificial): New function.
7598         (execute_mudflap_function_ops, execute_mudflap_function_decls,
7599         mx_register_decls, mudflap_enqueue_decl): Use it.
7601         PR target/51876
7602         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
7603         numbers in the insn pattern.
7605 2012-01-19  Michael Matz  <matz@suse.de>
7607         PR tree-optimization/46590
7608         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
7609         use it in remembering which conflicts we already created.
7610         (add_scope_conflicts): Adjust call to above, (de)allocate helper
7611         bitmap.
7613 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
7615         PR lto/51280
7616         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
7617         (merge_and_complain): Same.
7619 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
7621         PR bootstrap/50237
7622         * config/initfini-array.h: Guard content of the header
7623         with #ifdef HAVE_INITFINI_ARRAY.
7624         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
7625         Add initfini-array.h to tm_file here.
7626         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
7627         * config.gcc: Don't add initfini-array.h to tm_file here.
7628         * configure: Regenerated.
7630 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
7632         PR rtl-optimization/51505
7633         * df-problems.c (df_kill_notes): New parameter live. Update comment.
7634         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
7635         (df_note_bb_compute): Update the call to df_kill_notes.
7637 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
7639         * trans-mem.c (requires_barrier): Remove call to is_global_var.
7641 2012-01-18  Richard Guenther  <rguenther@suse.de>
7643         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
7644         of conversions to void *.
7646 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7647             Richard Sandiford  <rdsandiford@googlemail.com>
7649         PR middle-end/50325
7650         PR middle-end/51192
7651         * optabs.h (simplify_expand_binop): Declare.
7652         * optabs.c (simplify_expand_binop): Make global.
7653         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
7654         endian targets if the source cannot be exactly covered by word
7655         mode chunks.
7657 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
7659         PR bootstrap/51872
7660         * hard-reg-set.h (struct hard_reg_set_container): New type.
7661         * target.h (struct hard_reg_set_container): Forward declare.
7662         * target.def (set_up_by_prologue): New target hook.
7663         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
7664         * doc/tm.texi: Regenerated.
7665         * function.c (thread_prologue_and_epilogue_insns): Change
7666         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
7667         Call targetm.set_up_by_prologue on it.
7668         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
7669         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
7671 2012-01-17  Nick Clifton  <nickc@redhat.com>
7673         * config/rx/rx.c (rx_can_use_simple_return): New function.
7674         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
7675         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
7677 2012-01-17  Richard Guenther  <rguenther@suse.de>
7679         PR middle-end/51782
7680         * expr.c (expand_assignment): Take address-space information
7681         from the address operand of MEM_REF and TARGET_MEM_REF.
7682         (expand_expr_real_1): Likewise.
7684 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7686         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
7687         reload dump is requested.
7689 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
7691         PR other/51165
7692         * trans-mem.c (requires_barrier): Call may_be_aliased.
7694 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
7696         PR tree-optimization/51877
7697         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
7698         call arguments and fndecls compare equal, instead return false if they
7699         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
7700         both SSA_NAMEs that are valueized the same, or they satisfy
7701         operand_equal_p.
7703 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7705         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
7706         Solaris 11+.
7707         * configure: Regenerate.
7709 2012-01-16  Jan Hubicka  <jh@suse.cz>
7711         PR c/12245
7712         PR c++/14179
7713         * convert.c (convert_to_integer): Use fold_convert for
7714         converting an INTEGER_CST to integer type.
7716 2012-01-16  Jason Merrill  <jason@redhat.com>
7718         PR c++/14179
7719         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
7721 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
7723         PR bootstrap/51860
7724         * config/s390/s390.c (s390_chunkify_start): Don't skip
7725         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
7726         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
7727         If insn is followed by NOTE_INSN_VAR_LOCATION or
7728         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
7729         Don't use location of note insns.
7731         PR tree-optimization/51865
7732         * tree-inline.c (tree_function_versioning): Call remap_decl
7733         on DECL_RESULT whenever it has VOID_TYPE_P type.
7735 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
7737         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
7738         for calls to locally-binding MIPS16 functions if only the return
7739         type uses float regs.
7741 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
7742             Richard Sandiford  <rdsandiford@googlemail.com>
7744         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
7745         (SYMBOL_32_HIGH): Likewise.
7746         (mips_output_tls_reloc_directive): Declare.
7747         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
7748         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
7749         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
7750         (mips_lo_relocs, mips_hi_relocs): Make extern.
7751         (mips16_stub_function): Move up file.
7752         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
7753         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
7754         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
7755         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
7756         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
7757         (mips_get_tp): Add MIPS16 support.
7758         (mips_legitimize_tls_address): Remove MIPS16 sorry().
7759         Generalize DTPREL and TPREL handling.
7760         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
7761         Add MIPS16 TLS support.
7762         (mips_output_tls_reloc_directive): New function.
7763         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
7764         * config/mips/predicates.md (symbolic_operand_with_high)
7765         (tls_reloc_operand): New predicates.
7766         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
7767         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
7768         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
7769         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
7770         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
7771         (*tls_get_tp_mips16_call_<mode>): Likewise.
7773 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
7775         PR rtl-optimization/51821
7776         * recog.c (peep2_find_free_register): Determine clobbered registers
7777         from insn pattern.
7779 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
7781         PR target/50925
7782         * config/avr/avr-protos.h: Revert change of 2012-01-09.
7783         * config/avr/avr.c: Likewise.
7784         * config/avr/avr.h: Likewise.
7786 2012-01-13  Ian Lance Taylor  <iant@google.com>
7788         PR c++/50012
7789         * tree.h (TYPE_QUALS): Add cast to int.
7790         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
7792 2012-01-13  Ian Lance Taylor  <iant@google.com>
7794         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
7795         comparing param_index to VEC_length result.
7797 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
7799         * c-decl.c: Do not include tree-mudflap.h
7800         * tree-optimize.c: Likewise.
7801         * Makefile.in: Update dependencies.
7803 2012-01-13  Richard Guenther  <rguenther@suse.de>
7805         PR middle-end/8081
7806         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
7807         variable-sized result always use RSO.
7809 2012-01-12  DJ Delorie  <dj@redhat.com>
7811         * cfgexpand.c (convert_debug_memory_address): Allow any valid
7812         pointer type, not just the default pointer type.
7814 2012-01-09  Richard Henderson  <rth@redhat.com>
7815             Denis Chertykov  <chertykov@gmail.com>
7817         PR target/50925
7818         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
7819         * config/avr/avr.c (avr_can_eliminate): Simplify.
7820         (avr_initial_elimination_offset): Likewise.
7821         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
7822         (expand_epilogue): Likewise.
7823         (avr_legitimize_address): Gut.
7824         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
7825         (avr_hard_regno_nregs): New.
7826         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
7827         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
7828         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
7829         add soft frame pointer.
7830         (CALL_USED_REGISTERS): Likewise.
7831         (REG_CLASS_CONTENTS): Likewise.
7832         (REGISTER_NAMES): Likewise.
7833         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
7834         (HARD_FRAME_POINTER_REGNUM): New.
7835         (FRAME_POINTER_REGNUM): Use soft frame pointer.
7836         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
7837         remove the HARD_FRAME_POINTER self-elimination.
7839 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
7841         PR target/51756
7842         * config/avr/avr.c (avr_encode_section_info): Test for absence of
7843         DECL_EXTERNAL when checking for initializers of progmem variables.
7845 2012-01-12  Ira Rosen  <irar@il.ibm.com>
7847         PR tree-optimization/51799
7848         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
7849         that the last operation is a type demotion.
7851 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
7853         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
7854         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
7856 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
7858         PR bootstrap/51796
7859         * combine.c (distribute_notes): If i3 is a noreturn call,
7860         allow old_size to be equal to args_size and make sure the
7861         noreturn call gets REG_ARGS_SIZE note.
7862         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
7863         on noreturn calls even when the delta is 0.
7865 2012-01-11  Nathan Sidwell  <nathan@acm.org>
7867         * gcov.c (STRING_SIZE): Remove.
7868         (generate_results): Erase annotations for source files with no
7869         coverage information.
7870         (read_line): New.
7871         (output_lines): Use it.
7873 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
7875         * gimple.h (gimplify_body): Remove first argument.
7876         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
7877         pointer set here, instead just pass DATA to walk_tree.
7878         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
7879         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
7880         (unvisit_body): Likewise, but with unmark_visited.
7881         (gimplify_body): Remove BODY_P argument and adjust.
7882         (gimplify_function_tree): Adjust call to gimplify_body.
7883         * omp-low.c (finalize_task_copyfn): Likewise.
7885 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
7887         * tree.h (build_function_decl_skip_args): Add boolean parameter.
7888         (build_function_type_skip_args): Delete.
7889         * tree.c (build_function_type_skip_args): Make static and add
7890         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
7891         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
7892         pass it to build_function_type_skip_args.
7893         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
7894         (tree_function_versioning): Likewise.
7895         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
7896         build_function_decl_skip_args.
7897         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
7898         and pass it to build_function_decl_skip_args/tree_function_versioning.
7899         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
7900         * ipa-inline-transform.c (save_inline_function_body): Likewise.
7901         * trans-mem.c (ipa_tm_create_version): Likewise.
7902         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
7903         * tree-inline.c (declare_return_variable): Remove always-true test.
7904         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
7905         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
7906         * ipa-split.c (split_function): Skip the return value for the split
7907         part if it doesn't return.
7909 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7911         PR tree-optimization/49642
7912         * ipa-split.c (forbidden_dominators): New variable.
7913         (check_forbidden_calls): New function.
7914         (dominated_by_forbidden): Likewise.
7915         (consider_split): Check for forbidden dominators.
7916         (execute_split_functions): Initialize and free forbidden
7917         dominators info; call check_forbidden_calls.
7919 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
7921         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
7923 2012-01-11  Nick Clifton  <nickc@redhat.com>
7925         * config/rx/rx.md (return): Define pattern.
7927 2012-01-11  Richard Guenther  <rguenther@suse.de>
7929         * doc/extend.texi (malloc attribute): Adjust according to
7930         implementation.
7932 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
7933             Patrick Marlier  <patrick.marlier@gmail.com>
7935         PR middle-end/51516
7936         * trans-mem.c (get_cg_data): Traverse aliases if requested.
7937         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
7938         (ipa_tm_note_irrevocable): Same.
7939         (ipa_tm_scan_irr_block): Same.
7940         (ipa_tm_decrement_clone_counts): Same.
7941         (ipa_tm_scan_irr_function): Same.
7942         (ipa_tm_create_version_alias): Same.
7943         (ipa_tm_create_version): Same.
7944         (ipa_tm_transform_calls_redirect): Same.
7945         (ipa_tm_transform_calls): Same.
7946         (ipa_tm_transform_transaction): Same.
7947         (ipa_tm_execute): Same.
7949 2012-01-10  Richard Guenther  <rguenther@suse.de>
7951         PR middle-end/51806
7952         * opts.c (common_handle_option): Handle -Werror.
7954 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
7956         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
7957         operand number.
7959 2012-01-10  Jason Merrill  <jason@redhat.com>
7961         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
7962         information.
7964 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7966         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
7967         supports R_386_TLS_GD_PLT reloc.
7968         (gcc_cv_as_ix86_tlsldmplt): Check if linker
7969         supports R_386_TLS_LDM_PLT reloc.
7970         * configure: Regenerate.
7971         * config.in: Regenerate.
7973 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
7975         PR target/49868
7976         Extend __pgmx semantics to linearize memory.
7977         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
7978         determine if code comes inline or from libgcc.
7979         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
7980         (movmem_qi, movmem_qi): Set constraint #2 to "n".
7981         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
7982         (movmemx_qi, movmemx_hi): New insns.
7983         (xload_<mode>_libgcc): Rewrite to new insn condition.
7984         (xload_<mode>): Remove insns.
7985         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
7986         cases that don't satisfy avr_xload_libgcc_p().
7987         (avr_addr_space_convert): Allow converting in any direction.
7988         (avr_addr_space_subset_p): Return always true.
7989         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
7990         (avr_emit_movmemhi): Ditto.
7991         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
7992         (avr_out_movmem): Ditto.
7993         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
7994         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
7995         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
7996         (avr_encode_section_info): Encode 'progmem' in symbol flags.
7997         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
7999 2012-01-10  Richard Guenther  <rguenther@suse.de>
8001         PR tree-optimization/50913
8002         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
8003         Require data-refs to be representable by Graphite with respect
8004         to any loop nest.
8006 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
8008         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
8009         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
8011 2012-01-10  Tom de Vries  <tom@codesourcery.com>
8013         PR rtl-optimization/51271
8014         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
8015         handling annulled branch.
8017 2012-01-10  Richard Henderson  <rth@redhat.com>
8019         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
8020         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
8021         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
8022         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
8023         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
8024         arm_expand_vec_perm_const): New.
8025         * config/arm/arm-protos.h: Update.
8026         * config/arm/neon.md (UNSPEC_VCONCAT): New.
8027         (*neon_vswp<VDQX>): New.
8028         (neon_vcombine<VDX>): Use neon_split_vcombine.
8029         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
8030         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
8031         (vec_perm<VE>): New.
8033 2012-01-10  Richard Henderson  <rth@redhat.com>
8035         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
8036         use it if reload_completed.
8037         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
8038         arm_output_asm_insn, arm_process_output_memory_barrier,
8039         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
8040         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
8041         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
8042         arm_process_output_sync_insn, arm_output_sync_insn,
8043         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
8044         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
8045         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
8046         (emit_unlikely_jump): New.
8047         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
8048         (arm_split_atomic_op): New.
8049         * config/arm/arm-protos.h: Update.
8050         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
8051         (struct arm_sync_generator): Remove.
8052         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
8053         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
8054         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
8055         (VUNSPEC_LL, VUNSPEC_SC): New.
8056         (sync_result, sync_memory, sync_required_value, sync_new_value,
8057         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
8058         (attr length): Don't use arm_sync_loop_insns.
8059         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
8060         (movsfcc, movdfcc): Likewise.
8061         * config/arm/constraints.md (Ua): New.
8062         * config/arm/prediates.md (mem_noofs_operand): New.
8063         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
8064         (sync_clobber, sync_t2_reqd): Remove.
8065         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
8066         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
8067         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
8068         (arm_sync_compare_and_swap<SIDI>): Remove.
8069         (arm_sync_compare_and_swap<NARROW>): Remove.
8070         (arm_sync_lock_test_and_set<SIDI>): Remove.
8071         (arm_sync_lock_test_and_set<NARROW>): Remove.
8072         (arm_sync_new_<syncop><SIDI>): Remove.
8073         (arm_sync_new_<syncop><NARROW>): Remove.
8074         (arm_sync_new_nand<SIDI>): Remove.
8075         (arm_sync_new_nand<NARROW>): Remove.
8076         (arm_sync_old_<syncop><SIDI>): Remove.
8077         (arm_sync_old_<syncop><NARROW>): Remove.
8078         (arm_sync_old_nand<SIDI>): Remove.
8079         (arm_sync_old_nand<NARROW>): Remove.
8080         (*memory_barrier): Merge arm_output_memory_barrier.
8081         (atomic_compare_and_swap<QHSD>): New.
8082         (atomic_compare_and_swap<NARROW>_1): New.
8083         (atomic_compare_and_swap<SIDI>_1): New.
8084         (atomic_exchange<QHSD>): New.
8085         (cas_cmp_operand, cas_cmp_str): New.
8086         (atomic_op_operand, atomic_op_str): New.
8087         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
8088         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
8089         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
8090         (arm_load_exclusive<NARROW>): New.
8091         (arm_load_exclusivesi, arm_load_exclusivedi): New.
8092         (arm_store_exclusive<QHSD>): New.
8094 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
8096         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
8097         reload patterns if -mvsx-scalar-memory.
8099         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
8100         generated, even -mno-vsx-scalar-double was used.
8101         (vsx_xscvdpsp_scalar): Likewise.
8102         (vsx_xscvspdp_scalar2): Likewise.
8104 2012-01-09  Tom de Vries  <tom@codesourcery.com>
8105             Andrew Pinski  <apinski@cavium.com>
8107         PR debug/51471
8108         * reorg.c (fill_slots_from_thread): Don't speculate
8109         frame-related insns.
8111 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
8113         * sched-int.h (bb_note): Move to...
8114         * basic-block.h: ...here.
8115         * haifa-sched.c (bb_note): Move to...
8116         * cfgrtl.c: ...here.
8117         * function.c (next_block_for_reg): New function.
8118         (move_insn_for_shrink_wrap): Likewise.
8119         (prepare_shrink_wrap): Rewrite to use the above.
8121 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
8123         * gimple.c (is_gimple_non_addressable): Remove.
8124         * gimple.h: Remove is_gimple_non_addressable.
8125         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
8126         is_gimple_non_addressable.
8127         * trans-mem.c (expand_assign_tm): Same.
8129 2012-01-09  Richard Guenther  <rguenther@suse.de>
8131         PR tree-optimization/51775
8132         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
8133         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
8135 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
8137         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
8138         tuning parameters.
8139         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
8141 2012-01-09  Richard Guenther  <rguenther@suse.de>
8143         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
8145 2012-01-08  Jan Hubicka  <jh@suse.cz>
8147         PR tree-optimize/51680
8148         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
8149         on when known_vals needs to be computed; cleanup.
8151 2012-01-08  Jan Hubicka  <jh@suse.cz>
8153         PR tree-optimize/51694
8154         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
8156 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
8158         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
8159         for -std=c++98 and -std=c++11 too.
8161 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
8163         * cfgloop.c (cancel_loop): Add free() of bbs array.
8165 2012-01-07  Jan Hubicka  <jh@suse.cz>
8167         PR tree-optimization/51600
8168         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
8169         that benefits small functions.
8171 2012-01-07  Jan Hubicka  <jh@suse.cz>
8173         * ipa-inline.c (want_inline_small_function_p): Fix formating.
8175 2012-01-07  Jan Hubicka  <jh@suse.cz>
8177         PR tree-optimization/51680
8178         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
8179         whose inlining reduce unit size.
8181 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
8183         PR bootstrap/51725
8184         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
8185         Add canonical node to containing_mem chain after the non-canonical
8186         one, even if there weren't any locs to propagate.
8187         (remove_useless_values): Keep only canonical values.
8188         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
8189         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
8190         canonicalize mem_chain elements that are not discarded.
8192 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
8194         PR target/47333
8195         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
8196         before emitting functions.
8198         PR gcov-profile/50127
8199         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
8200         clear_aux_for_blocks.
8202 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
8204         PR debug/51746
8205         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
8207 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
8209         * c-decl.c (ext_block): Moved up.
8210         (collect_all_refs, for_each_global_decl): Take ext_block into account.
8212 2012-01-06  Han Shen  <shenhan@google.com>
8214         Translate built-in include paths for sysroot.
8215         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
8216         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
8218         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
8219         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
8221         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
8222         control whether sysroot should be prepended to gxx include dir.
8224         * configure: Regenerate.
8226 2012-01-06  Torvald Riegel  <triegel@redhat.com>
8228         PR rtl-optimization/51771
8229         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
8230         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
8232 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
8234         PR tree-optimization/51315
8235         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
8236         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
8238 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
8240         PR target/51681
8241         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
8242         for shrp pattern.  Correctly handle and fixup shift variable.
8243         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
8245 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
8247         PR debug/51762
8248         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
8249         note when !ACCUMULATE_OUTGOING_ARGS.
8251 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
8253         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
8254         condition.
8255         (extract_range_from_unary_expr_1): Avoid useless computations.
8257 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
8259         PR rtl-optimization/51767
8260         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
8261         of jump_block and add an extra edge for degenerated asm gotos.
8263         PR middle-end/51768
8264         * stmt.c (check_unique_operand_names): Don't ICE during error
8265         reporting if i is from labels chain.
8267         PR middle-end/44777
8268         * profile.c (branch_prob): Split bbs that have exit edge
8269         and need a fake entry edge too.
8271 2012-01-05  Jan Hubicka  <jh@suse.cz>
8273         PR middle-end/49710
8274         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
8275         unlooping loops.
8277 2012-01-05  Richard Guenther  <rguenther@suse.de>
8279         PR lto/50490
8280         * tree-streamer-out.c (write_ts_optimization): New function.
8281         (streamer_write_tree_body): Call it.
8282         * tree-streamer-in.c (lto_input_ts_optimization): New function.
8283         (streamer_read_tree_body): Call it.
8284         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
8286 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
8288         PR middle-end/51761
8289         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
8290         * gimplify.c (gimplify_cleanup_point_expr): Save and set
8291         in_cleanup_point_expr before gimplify_stmt call and restore it
8292         afterwards.
8293         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
8294         in_cleanup_point_expr is false.
8296 2012-01-05  Richard Guenther  <rguenther@suse.de>
8298         PR middle-end/51764
8299         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
8300         to c.opt.
8301         * toplev.c (process_options): Reject combining mudflap and LTO.
8302         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
8304 2012-01-05  Richard Guenther  <rguenther@suse.de>
8306         PR tree-optimization/51760
8307         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
8308         not VARYING.
8309         (bit_value_unop): Handle UNDEFINED operands.
8310         (bit_value_binop): Likewise.
8312 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
8314         * config/avr/avr.c (avr_replace_prefix): Remove.
8315         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
8316         (avr_asm_function_rodata_section): Ditto.
8317         (avr_asm_select_section): Ditto.
8319 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8321         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
8322         insertion.
8324 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
8326         PR bootstrap/51648
8327         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
8328         calls that have any non-fake successor edges.
8330         PR debug/51746
8331         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
8333 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
8335         PR tree-optimization/51624
8336         * tree-sra.c (build_ref_for_model): When replicating a chain of
8337         COMPONENT_REFs, stop as soon as the offset would become negative.
8339 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
8341         PR debug/51695
8342         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
8343         in .debug_loc on the floor.
8345 2012-01-04  Andrew Pinski  <apinski@cavium.com>
8347         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
8349 2012-01-04  Andrew Pinski  <apinski@cavium.com>
8350             Adam Nemet  <anemet@caviumnetworks.com>
8352         * config/mips/mips.md (size): Add SI and DI.
8353         (SIZE): New mode attribute.
8354         (U): New code attribute.
8355         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
8356         (mips_lbux_<mode>): Delete.
8357         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
8358         (mips_lhx): Use gen_mips_lhx_extsi.
8359         (mips_lhx_<mode>): Delete.
8360         (mips_lwx): Delete.
8361         (mips_l<size>x): New expand.
8362         (mips_lwx_<mode>): Delete.
8363         (mips_l<GPR:size>x_<P:mode>): New pattern.
8364         (*mips_lw<u>x_<P:mode>_ext): Likewise.
8365         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
8366         * config/mips/mips.c (mips_lx_address_p): New function.
8367         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
8368         (dsp64): New availability predicate.
8369         (mips_builtins): Add an entry for __builtin_mips_ldx.
8370         * config/mips/mips.h (ISA_HAS_LBX): New define.
8371         (ISA_HAS_LBUX): Likewise.
8372         (ISA_HAS_LHX): Likewise.
8373         (ISA_HAS_LHUX): Likewise.
8374         (ISA_HAS_LWX): Likewise.
8375         (ISA_HAS_LWUX): Likewise.
8376         (ISA_HAS_LDX): Likewise.
8377         * doc/extend.texi (__builtin_mips_ldx): Document.
8379 2012-01-04  Tristan Gingold  <gingold@adacore.com>
8381         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
8382         when long pointers are used.
8383         * config.build (*-*-*vms*): Handle all OpenVMS targets.
8384         (alpha64-dec-*vms*, alpha*-dec-*vms*)
8385         (ia64-hp-*vms*): Remove.
8386         * config/vms/xm-vms64.h: Delete.
8388 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
8390         PR middle-end/51472
8391         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
8393 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
8395         * opts.c (finish_options): Remove duplicate sorry.
8397 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
8399         PR middle-end/51696
8400         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
8401         correctly.
8403 2012-01-04  Richard Guenther  <rguenther@suse.de>
8405         PR middle-end/51750
8406         * tree.c (size_low_cst): New function.
8407         * tree.h (size_low_cst): Declare.
8408         * fold-const.c (fold_comparison): Use it to extract the low
8409         part of the POINTER_PLUS_EXPR offset.
8411 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
8413         Fix clearing ZERO_REG
8414         * config/avr/avr.md (cc): Add alternative "ldi".
8415         (movqi_insn): Use it in cc attribute.
8416         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
8417         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
8418         (output_reload_insisf): Use ZERO_REG to pre-clear register.
8420 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8422         * configure: Regenerate.
8424 2012-01-04  Richard Guenther  <rguenther@suse.de>
8426         PR tree-optimization/49651
8427         * tree-ssa-structalias.c (type_can_have_subvars): New function.
8428         (var_can_have_subvars): Use it.
8429         (get_constraint_for_1): Only consider subfields if there can be any.
8431 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
8433         PR bootstrap/51725
8434         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
8435         to its new canonical_cselib_val and the cselib_val was in
8436         first_containing_mem chain, but the canonical_cselib_val was not,
8437         add the latter into the chain.
8438         (cselib_invalidate_mem): Compare canonical_cselib_val of
8439         addr_list chain elt with v.
8441         PR pch/51722
8442         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
8443         dwarf2out_undef): Allocate e.info using ggc_strdup instead
8444         of xstrdup.
8445         (output_macinfo_op): Don't ggc_strdup fd->filename.
8446         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
8447         then ggc_strdup it.  Don't free inc->info or cur->info.
8448         (output_macinfo): Don't free ref->info or file->info.
8450 2012-01-03  Ira Rosen  <irar@il.ibm.com>
8452         PR tree-optimization/51269
8453         * tree-vect-loop-manip.c (set_prologue_iterations): Make
8454         first_niters a pointer.
8455         (slpeel_tree_peel_loop_to_edge): Likewise.
8456         (vect_do_peeling_for_loop_bound): Update call to
8457         slpeel_tree_peel_loop_to_edge.
8458         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
8459         here.  Remove it from the parameters list.
8460         (vect_do_peeling_for_alignment): Update calls and compute
8461         wide_prolog_niters.
8463 2012-01-03  Richard Guenther  <rguenther@suse.de>
8465         PR tree-optimization/51070
8466         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
8467         Properly handle calls.
8469 2012-01-03  Richard Guenther  <rguenther@suse.de>
8471         PR tree-optimization/51692
8472         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
8473         the LHS of allocation stmts.
8475 2012-01-03  Olivier Hainque  <hainque@adacore.com>
8477         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
8479 2012-01-03  Olivier Hainque  <hainque@adacore.com>
8481         * collect2.c (main): In AIX specific computations for vector
8482         insertions, use CONST_CAST2 to cast from char ** to const char **.
8484 2012-01-03  Richard Guenther  <rguenther@suse.de>
8486         PR debug/51650
8487         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
8488         the context of a limbo DIE when it does not already exist.
8490 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
8492         PR tree-optimization/51719
8493         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
8494         but direct call is, clear direct call's lhs and don't add fallthrough
8495         edge from dcall_bb to join_bb and PHIs.
8497 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8499         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
8500         the instructions emitted by the pattern.
8501         ("*TDC_insn_<mode>"): Add comment.
8503 2012-01-03  Richard Guenther  <rguenther@suse.de>
8505         PR middle-end/51730
8506         * fold-const.c (fold_comparison): Properly canonicalize
8507         tree offset and HOST_WIDE_INT bit position.
8509 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
8511         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
8512         operands for extzv pattern.
8514 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
8516         PR bootstrap/51725
8517         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
8518         on mem_elt first.
8520 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
8522         * doc/invoke.texi (-flto and related options): Copy-edit.
8524 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
8526         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
8528 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
8530         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
8531         New patterns.
8533 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
8535         * expr.h (move_by_pieces_ninsns): Declare.
8536         * expr.c (move_by_pieces_ninsns): Make external.
8537         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
8538         (mips_store_by_pieces_p): Likewise.
8539         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
8540         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
8541         * config/mips/mips.c (mips_move_by_pieces_p): New function.
8542         (mips_store_by_pieces_p): Likewise.
8544 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
8546         * passes.c (register_one_dump_file): Free full_name.
8548         * reload1.c (reload): Don't allocate reg_max_ref_width here.
8549         (calculate_elim_costs_all_insns): Free offsets_at and
8550         offsets_known_at at the end and clear the pointers.
8552 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
8554         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
8555         this option introduced in r180739.
8557 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
8559         PR target/51345
8560         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
8561         (tmake_file target=avr): Add avr/t-multilib.
8563         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
8564         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
8565         * config/avr/genmultilib.awk: New file.
8566         * config/avr/t-multilib: New auto-generated file.
8567         * config/avr/multilib.h: New auto-generated file.
8568         * config/avr/t-avr (AVR_MCUS): New variable.
8569         (genopt.sh): Use it.
8570         (s-mlib): Depend on t-multilib.
8571         (t-multilib, multilib.h): New dependencies.
8572         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
8573         (MULTILIB_OPTIONS): Remove.
8574         (MULTILIB_MATCHES): Remove.
8575         (MULTILIB_DIRNAMES): Remove.
8576         (MULTILIB_EXCEPTIONS): Remove:
8577         * config/avr/genopt.sh: Don't use hard coded file name;
8578         pass AVR_MCUS from t-avr instead.
8580 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
8582         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
8584 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
8586         Implement light-weight DImode support.
8587         * config/avr/avr-dimode.md: New file.
8588         * config/avr/avr.md: Include it.
8589         (adjust_len): Add plus64, compare64.
8590         (HIDI): Remove code iterator.
8591         (code_stdname): New code attribute.
8592         (rotx, rotsmode): Remove DI.
8593         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
8594         as code iterator.
8595         * config/avr/avr-protos.h (avr_have_dimode): New.
8596         (avr_out_plus64, avr_out_compare64): New.
8597         * config/avr/avr.c (avr_out_compare): Handle DImode.
8598         (avr_have_dimode): New variable definition and initialization.
8599         (avr_out_compare64, avr_out_plus64): New functions.
8600         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
8601         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
8602         (avr_compare_pattern): Skip DImode comparisons.
8604 2012-01-02  Revital Eres  <revital.eres@linaro.org>
8606         * ddg.c (def_has_ccmode_p): New function.
8607         (add_cross_iteration_register_deps,
8608         create_ddg_dep_from_intra_loop_link): Call it.
8610 2012-01-02  Richard Guenther  <rguenther@suse.de>
8612         PR other/51679
8613         * invoke.texi (fassociative-math): Remove spurious paranthesis.
8615 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
8617         * gcc.c (process_command): Update copyright notice dates.
8618         * gcov.c (print_version): Likewise.
8619         * gcov-dump.c (print_version): Likewise.
8620         * mips-tfile.c (main): Likewise.
8621         * mips-tdump.c (main): Likewise.
8623 2012-01-01  Ira Rosen  <irar@il.ibm.com>
8625         PR tree-optimization/51704
8626         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
8627         a use is inside the basic block or loop before accessing its vect info.
8629 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
8631         PR rtl-optimization/51069
8632         * cfgloopmanip.c (remove_path): Removing path making irreducible
8633         region unconditional makes BB part of the region.
8635 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
8637         PR tree-optimization/51683
8638         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
8639         calls with side-effects.
8640         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8642 Copyright (C) 2012 Free Software Foundation, Inc.
8644 Copying and distribution of this file, with or without modification,
8645 are permitted in any medium without royalty provided the copyright
8646 notice and this notice are preserved.