]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2012-05-09 Richard Guenther <rguenther@suse.de>
2
3 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4 (vect_do_peeling_for_loop_bound): Likewise.
5 (vect_do_peeling_for_alignment): Likewise.
6 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
7 (vect_do_peeling_for_loop_bound): Get check_profitability and
8 threshold as parameters.
9 (vect_do_peeling_for_alignment): Likewise.
10 (vect_loop_versioning): Likewise.
11 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
12 and threshold here. Control where to put the check here.
13
14 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
15
16 PR middle-end/53249
17 * dwarf2out.h (get_address_mode): Move declaration to...
18 * rtl.h: ...here.
19 * dwarf2out.c (get_address_mode): Move definition to...
20 * rtlanal.c: ...here.
21 * var-tracking.c (get_address_mode): Delete.
22 * combine.c (find_split_point): Use get_address_mode instead of
23 targetm.addr_space.address_mode.
24 * cselib.c (cselib_record_sets): Likewise.
25 * dse.c (canon_address, record_store): Likewise.
26 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
27 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
28 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
29 (expand_expr_real_1): Likewise.
30 * ifcvt.c (noce_try_cmove_arith): Likewise.
31 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
32 * reload.c (find_reloads): Likewise.
33 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
34 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
35
36 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
37
38 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
39 information from the instruction produced.
40
41 2012-05-09 Richard Guenther <rguenther@suse.de>
42
43 * stor-layout.c (bit_from_pos): Document.
44 (byte_from_pos): Likewise. Optimize.
45 (pos_from_bit): Likewise.
46 (normalize_offset): Use pos_from_bit instead of replicating it.
47
48 2012-05-09 Alan Modra <amodra@gmail.com>
49
50 PR target/53271
51 * config/rs6000/rs6000.c (gen_frame_set): New function.
52 (gen_frame_load, gen_frame_store): New functions.
53 (rs6000_savres_rtx): Use the above.
54 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
55 Correct mode used for CR2 in save/restore_world patterns.
56 Don't emit instructions for eh_return frame unwind reg info.
57
58 2012-05-08 Jan Hubicka <jh@suse.cz>
59
60 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
61 with VALUE_EXPR.
62 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
63 are removable.
64 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
65 need to wrapup.
66 (compile_file): Do not output variables.
67 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
68 output it.
69 * langhooks.c: Include timevar.h
70 (write_global_declarations): Finalize compilation unit after wrapup;
71 set timevars correctly.
72 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
73 not to be added to varpool.
74 * varpool.c (varpool_assemble_decl): Sanity check that we are called
75 only on cases where it makes sense; skip constant pool and value expr
76 vars.
77
78 2012-05-08 David S. Miller <davem@davemloft.net>
79
80 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
81 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
82 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
83
84 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
85
86 PR rtl-optimization/53278
87 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
88 speed_p code from earlier patch.
89
90 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
91
92 PR target/51244
93 * config/sh/sh.md (*branch_true, *branch_false): New insns.
94
95 2012-05-08 Teresa Johnson <tejohnson@google.com>
96
97 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
98 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
99
100 2012-05-08 Jan Hubicka <jh@suse.cz>
101
102 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
103 (cgraph_create_node_1): Rename to ...
104 (cgraph_create_empty_node): ... this one; export.
105 (cgraph_create_node): Update.
106 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
107 (cgraph_create_edge_including_clones): Likewise.
108 (cgraph_find_replacement_node): Likewise.
109 (cgraph_clone_edge): Likewise.
110 (cgraph_clone_node): Likewise.
111 (clone_function_name): Likewise.
112 (cgraph_create_virtual_clone): Likewise.
113 (cgraph_remove_node_and_inline_clones): Likewise.
114 (cgraph_redirect_edge_call_stmt_to_callee): Move here from
115 cgraphunit.c
116 * cgraph.h: Reorder declarations so they match file of origin.
117 (cgraph_create_empty_node): Declare.
118 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
119 (cgraph_copy_node_for_versioning): Likewise.
120 (cgraph_function_versioning): Likewise.
121 (cgraph_materialize_clone): Likewise.
122 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
123 (cgraph_materialize_all_clones): Likewise.
124 * cgraphclones.c: New file.
125 * Makefile.in: Update for cgraphclones.
126
127 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
128
129 PR target/53176
130 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
131 (ix86_rtx_costs): Handle SET.
132
133 2012-05-08 Michael Matz <matz@suse.de>
134
135 * basic-block.h (struct rtl_bb_info): Remove visited member and
136 move head_ member to ...
137 (struct basic_block_def.basic_block_il_dependent): ... the new
138 member x, replacing but containing old member rtl.
139 (enum bb_flags): New BB_VISITED flag.
140 (BB_HEADER, BB_FOOTER): New macros.
141
142 * jump.c (mark_all_labels): Adjust.
143 * cfgcleanup.c (try_optimize_cfg): Adjust.
144 * cfglayout.c (record_effective_endpoints): Adjust.
145 (relink_block_chain): Ditto (and don't fiddle with visited).
146 (fixup_reorder_chain): Adjust.
147 (fixup_fallthru_exit_predecessor): Ditto.
148 (cfg_layout_duplicate_bb): Ditto.
149 * combine.c (update_cfg_for_uncondjump): Adjust.
150 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
151 (bb_visited_trace): New accessor.
152 (mark_bb_visited): Move in front.
153 (rotate_loop): Use bb_visited_trace.
154 (find_traces_1_round): Ditto.
155 (emit_barrier_after): Ditto.
156 (copy_bb): Ditto, and initialize visited on resize.
157 (reorder_basic_blocks): Initize visited member.
158 (duplicate_computed_gotos): Clear bb flags at start, use
159 BB_VISITED flags.
160
161 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
162 (rtl_verify_flow_info_1): Ditto.
163 (cfg_layout_split_block): Ditto.
164 (cfg_layout_delete_block): Ditto.
165 (cfg_layout_merge_blocks): Ditto.
166 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
167
168 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
169
170 PR target/53272
171 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
172 when a constant source operand matches an "I" constraint, the "no
173 CC0 change" applies to a register-destination only, not a
174 strict_low_part-destination.
175
176 2012-05-08 Richard Guenther <rguenther@suse.de>
177
178 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
179 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
180
181 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
182
183 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
184
185 * doc/avr-mmcu.texi: New auto-generated file.
186 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
187 to document all valid -mmcu= arguments.
188
189 * config/avr/avr.h (arch_info_s): New struct definition.
190 * config/avr/avr-devices.c (avr_texinfo): New variable.
191 * config/avr/gen-avr-mmcu-texi.c: New file.
192 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
193
194 2012-05-08 Dehao Chen <dehao@google.com>
195
196 * predict.c (find_qualified_ssa_name): New.
197 (find_ssa_name_in_expr): New.
198 (find_ssa_name_in_assign_stmt): New.
199 (is_comparison_with_loop_invariant_p): New.
200 (is_bound_expr_similar): New.
201 (predict_iv_comparison): New.
202 (predict_loops): Add heuristic for loop-nested branches that compare an
203 induction variable to a loop bound variable.
204 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
205
206 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
207
208 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
209 TARGET_BDVER2 defines where appropriate.
210
211 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
212
213 * configure.ac (PLUGIN_LD): Rename into...
214 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
215 * config.in: Regenerate.
216 * configure: Likewise.
217 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
218
219 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
220
221 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
222 computation using the precision of the index type.
223 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
224 (fold_array_ctor_reference): Do index computations in the index type.
225
226 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
227
228 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
229 down to plus_constant.
230 (expand_epilogue): Ditto.
231
232 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
233
234 * postreload.c (reload_cse_regs): Make static.
235 * reload.h (reload_cse_regs): Remove prototype.
236
237 2012-05-07 Richard Henderson <rth@redhat.com>
238
239 * config/alpha/alpha.md (clear_cache): New pattern.
240
241 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
242
243 PR middle-end/53245
244 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
245 is folded to a type boundary value, verify that the resulting case
246 label is still a care range.
247
248 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
249
250 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
251 only for TARGET_GENERIC, when not optimizing for size.
252 (*ffs<mode>_1): Ditto.
253
254 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
255
256 * tree-cfg.c (verify_gimple_switch): Tighten checks.
257
258 2012-05-07 Jakub Jelinek <jakub@redhat.com>
259
260 PR tree-optimization/53239
261 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
262 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
263
264 2012-05-07 Richard Guenther <rguenther@suse.de>
265
266 PR tree-optimization/53195
267 * tree-inline.c (setup_one_parameter): Properly add referenced
268 vars from the parameters new known value.
269
270 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
271
272 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
273 (sched_branch_type): Remove.
274 (m68k_sched_md_init_global): Don't allocate it.
275 (m68k_sched_md_finish_global): Don't free it.
276 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
277 * config/m68k/m68k.md: Set the type of insns using
278 m68k_sched_branch_type to bcc directly.
279
280 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
281
282 * config/sol2.c (solaris_override_options): New function.
283 * config/sol2-protos.h (solaris_override_options): Declare.
284 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
285
286 2012-05-07 Richard Guenther <rguenther@suse.de>
287
288 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
289 whether we failed to compute data dependences.
290 (loop_prefetch_arrays): Fail if we failed.
291
292 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
293 Paolo Bonzini <bonzini@gnu.org>
294
295 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
296 Emit bsf when optimizing for size.
297 (*ffs<mode>_1): Ditto.
298
299 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
300
301 PR target/53250
302 * config/sh/sh.c (sh_rtx_costs): Handle SET.
303
304 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
305
306 PR target/53227
307 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
308 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
309 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
310 (bswapsi2): Ditto.
311 (*bswapdi2_doubleword): New insn pattern.
312 (*bswap<mode>2): Rename from *bswap<mode>2_1.
313
314 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
315
316 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
317 (mips_set_reg_reg_cost): Likewise.
318 (mips_rtx_costs): Handle SET.
319
320 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
321
322 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
323 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
324 to compute the cost of moves. Set the mode of the target register.
325
326 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
327
328 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
329 plus_constant function.
330 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
331 that the mode is sensible.
332 (use_anchored_address, round_push, allocate_dynamic_stack_space)
333 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
334 plus_constant.
335
336 * alias.c (canon_rtx): Likewise.
337 (init_alias_analysis): Likewise.
338 * builtins.c (expand_builtin_return_addr)
339 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
340 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
341 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
342 (expand_builtin_stpcpy): Likewise.
343 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
344 (compute_argument_addresses, internal_arg_pointer_based_exp)
345 (expand_call, emit_library_call_value_1): Likewise.
346 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
347 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
348 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
349 * cse.c (insert_const_anchor, find_reg_offset_for_const)
350 (use_related_value, fold_rtx): Likewise.
351 * cselib.c (cselib_subst_to_values): Likewise.
352 * dse.c (record_store, check_mem_read_rtx): Likewise.
353 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
354 * emit-rtl.c (adjust_address_1): Likewise.
355 * except.c (sjlj_emit_function_enter)
356 (expand_builtin_extract_return_addr)
357 (expand_builtin_frob_return_addr): Likewise.
358 * expmed.c (expand_divmod): Likewise.
359 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
360 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
361 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
362 * function.c (assign_stack_local_1)
363 (instantiate_virtual_regs_in_rtx): Likewise.
364 * optabs.c (prepare_cmp_insn): Likewise.
365 * recog.c (offsettable_address_addr_space_p): Likewise.
366 * reload.c (find_reloads_address, form_sum)
367 (find_reloads_subreg_address): Likewise.
368 * reload1.c (init_reload, eliminate_regs_1)
369 (eliminate_regs_in_insn): Likewise.
370 * simplify-rtx.c (simplify_unary_operation_1)
371 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
372 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
373 (vt_add_function_parameter): Likewise.
374
375 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
376 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
377 * config/alpha/alpha.c (alpha_legitimize_address_1)
378 (get_unaligned_address, alpha_expand_unaligned_load)
379 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
380 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
381 (alpha_expand_builtin_establish_vms_condition_handler)
382 (alpha_setup_incoming_varargs, emit_frame_store_1)
383 (alpha_expand_prologue, alpha_expand_epilogue)
384 (alpha_use_linkage): Likewise.
385 * config/alpha/alpha.md: Likewise.
386
387 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
388 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
389 (thumb_legitimize_address, arm_gen_load_multiple_1)
390 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
391 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
392 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
393 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
394 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
395 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
396 (thumb_expand_movmemqi, arm_set_return_address)
397 (thumb_set_return_address): Likewise.
398 * config/arm/arm.md: Likewise.
399
400 * config/avr/avr.c (avr_incoming_return_addr_rtx)
401 (avr_prologue_setup_frame, expand_epilogue)
402 (avr_const_address_lo16): Likewise.
403
404 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
405 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
406 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
407 (bfin_output_mi_thunk): Likewise.
408
409 * config/c6x/c6x.c (c6x_initialize_trampoline)
410 (c6x_output_mi_thunk): Likewise.
411
412 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
413 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
414
415 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
416 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
417 (cris_emit_movem_store, cris_trampoline_init): Likewise.
418 * config/cris/cris.md: Likewise.
419
420 * config/darwin.c (machopic_indirect_data_reference)
421 (machopic_legitimize_pic_address): Likewise.
422
423 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
424 (epiphany_expand_prologue, epiphany_expand_epilogue)
425 (epiphany_trampoline_init): Likewise.
426 * config/epiphany/epiphany.md: Likewise.
427
428 * config/fr30/fr30.c (fr30_move_double): Likewise.
429
430 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
431 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
432 (frv_index_memory, unspec_got_name, frv_find_base_term)
433 (frv_output_dwarf_dtprel): Likewise.
434
435 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
436 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
437
438 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
439 * config/i386/i386.c (setup_incoming_varargs_64)
440 (setup_incoming_varargs_ms_64, choose_baseaddr)
441 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
442 (ix86_emit_probe_stack_range, ix86_expand_prologue)
443 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
444 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
445 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
446 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
447 (x86_output_mi_thunk): Likewise.
448 * config/i386/i386.md: Likewise.
449
450 * config/ia64/ia64.c (ia64_expand_load_address)
451 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
452 (do_spill, ia64_trampoline_init): Likewise.
453
454 * config/iq2000/iq2000.c (iq2000_va_start)
455 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
456 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
457 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
458
459 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
460
461 * config/m32c/m32c.c (m32c_return_addr_rtx)
462 (m32c_expand_insv): Likewise.
463
464 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
465 (m32r_legitimize_pic_address, m32r_print_operand)
466 (m32r_print_operand_address): Likewise.
467
468 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
469 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
470 (EH_RETURN_HANDLER_RTX): Likewise.
471 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
472 (m68k_expand_epilogue, legitimize_pic_address)
473 (m68k_output_mi_thunk): Likewise.
474 * config/m68k/m68k.md: Likewise.
475
476 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
477 (mcore_expand_epilog): Likewise.
478 * config/mcore/mcore.md: Likewise.
479
480 * config/mep/mep.c (mep_allocate_initial_value)
481 (mep_expand_prologue, mep_expand_epilogue): Likewise.
482
483 * config/microblaze/microblaze.c (double_memory_operand)
484 (microblaze_block_move_loop): Likewise.
485
486 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
487 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
488 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
489 (mips_expand_prologue, mips_epilogue_set_cfa)
490 (mips_expand_epilogue): Likewise.
491 * config/mips/mips.md: Likewise.
492
493 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
494 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
495
496 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
497 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
498
499 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
500 (EH_RETURN_HANDLER_RTX): Likewise.
501 * config/moxie/moxie.c (moxie_static_chain): Likewise.
502
503 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
504 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
505 (pa_return_addr_rtx, hppa_builtin_saveregs)
506 (pa_trampoline_init): Likewise.
507 * config/pa/pa.md: Likewise.
508
509 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
510
511 * config/picochip/picochip.c (picochip_static_chain): Likewise.
512
513 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
514 * config/rs6000/rs6000.c (rs6000_legitimize_address)
515 (setup_incoming_varargs, print_operand, rs6000_return_addr)
516 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
517 (rs6000_emit_epilogue)
518 (rs6000_machopic_legitimize_pic_address): Likewise.
519
520 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
521
522 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
523 (DYNAMIC_CHAIN_ADDRESS): Likewise.
524 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
525 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
526 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
527 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
528 (s390_emit_epilogue, s390_function_profiler): Likewise.
529 * config/s390/s390.md: Likewise.
530
531 * config/score/score.c (score_add_offset, score_prologue): Likewise.
532
533 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
534 (sh_output_mi_thunk): Likewise.
535 * config/sh/sh.md: Likewise.
536
537 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
538 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
539 * config/sparc/sparc.c (sparc_legitimize_pic_address)
540 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
541 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
542 (emit_and_preserve): Likewise.
543 * config/sparc/sparc.md: Likewise.
544
545 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
546 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
547 (spu_setup_incoming_varargs, ea_load_store_inline)
548 (spu_expand_load): Likewise.
549
550 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
551 (combine_bnp): Likewise.
552
553 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
554 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
555 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
556
557 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
558 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
559 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
560
561 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
562 * config/v850/v850.md: Likewise.
563
564 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
565 (EH_RETURN_HANDLER_RTX): Likewise.
566 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
567 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
568 (print_operand_address, vax_trampoline_init): Likewise.
569
570 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
571 (xtensa_function_value_regno_p): Likewise.
572
573 2012-05-04 Andrew Pinski <apinski@cavium.com>
574
575 * expr.c (get_def_for_expr_class): New function.
576 (convert_tree_comp_to_rtx): New function.
577 (expand_cond_expr_using_cmove): New function.
578 (expand_expr_real_2 <case COND_EXPR>): Call
579 expand_cond_expr_using_cmove first and return if it succeeds.
580 Remove the check for HAVE_conditional_move since we should have
581 already converted it to a conditional move.
582 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
583 modes of DImode for 32bits and TImode.
584
585 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
586
587 PR other/29442
588 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
589 (print_md_ptr_loc, print_c_condition): Use them.
590 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
591 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
592 attr_file, dfa_file, latency_file): New global variables.
593 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
594 write_upcase, write_indent, write_length_unit_log, write_test_expr,
595 write_attr_get, write_insn_cases, write_eligible_delay,
596 write_const_num_delay_slots): Accept FILE pointer and toss it around.
597 Update all callers.
598 (write_header, open_outfile, handle_arg): New funcions.
599 (make_automaton_attrs): Write prototypes as extern to the output
600 files.
601 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
602 names from the command line. Open the output files and write out
603 internal functions for DFA functions to dfa_file_name, insn latency
604 functions to latency_file_name, and everything else to attr_file.
605 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
606 (BACKEND): Build libbackend first.
607 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
608 (.PRECIOUS): Likewise.
609 (insn-dfatab.o): New rule.
610 (insn-latencytab.o): New rule.
611 (simple_rtl_generated_c): Do not include insn-attrtab.c.
612 (s-attrtab): New rule.
613
614 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
615
616 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
617 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
618 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
619 * reorg.c (get_jump_flags): Do not set the removed flags.
620
621 * doc/md.texi (attr_flag): Update for abovementioned changes.
622
623 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
624
625 PR target/53228
626 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
627 (TARGET_CMOV): Rename from TARGET_CMOVE.
628 (TARGET_CMOVE): New define.
629 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
630 Do not set TARGET_CMOVE here.
631
632 2012-05-04 Dodji Seketeli <dodji@redhat.com>
633
634 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
635 * opts.c (finish_options): Activate -Wunused-local-typedefs if
636 -Wunused is activated.
637 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
638
639 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
640
641 * config/s390/s390.md (*movmem_short, *clrmem_short)
642 (*cmpmem_short): Move the mode check from the insn condition to
643 the match_scratch.
644
645 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
646
647 PR tree-optimization/52633
648 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
649 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
650 (vect_recog_over_widening_pattern): Remove handling of code that was
651 already detected as over-widening pattern. Remove special handling
652 of "unsigned" cases. Instead, support general case of conversion
653 of the shift result to another type.
654
655 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
656
657 * tree-vect-patterns.c (vect_single_imm_use): New function.
658 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
659 (vect_recog_over_widening_pattern): Likewise.
660 (vect_recog_widen_shift_pattern): Likewise.
661
662 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
663
664 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
665 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
666 (vect_recog_widen_mult_pattern): Likewise.
667 (vect_operation_fits_smaller_type): Likewise.
668 (vect_recog_over_widening_pattern): Likewise.
669 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
670
671 2012-05-04 Richard Guenther <rguenther@suse.de>
672
673 PR lto/50602
674 * lto-wrapper.c (merge_and_complain): Complain about mismatches
675 of -freg-struct-return and -fpcc-struct-return.
676 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
677 from the input file options and ignore those from the link
678 command line.
679
680 2012-05-04 Richard Guenther <rguenther@suse.de>
681
682 PR tree-optimization/53168
683 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
684 memory reads when the result is a constant we can pun.
685
686 2012-05-04 Richard Guenther <rguenther@suse.de>
687
688 * common.opt (flto-report): Do not mark as Optimization.
689
690 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
691
692 PR target/48496
693 * recog.c (constrain_operands): If extra constraints are present, also
694 accept pseudo-registers with equivalent memory locations during reload.
695
696 2012-05-04 Olivier Hainque <hainque@adacore.com>
697
698 * collect2.c (may_unlink_output_file): New global.
699 (maybe_unlink): Honor it.
700 * collect2.h: Add extern for it.
701 * tlink.c (do_tlink): Set it to true if the link succeeded.
702
703 2012-05-04 Olivier Hainque <hainque@adacore.com>
704
705 * gcc.c (eval_spec_function): Finalize/restore the current string
706 obstack state as part of the context push/pop operations.
707
708 2012-05-04 Bin Cheng <bin.cheng@arm.com>
709
710 PR rtl-optimization/52804
711 * reload1.c (reload_reg_reaches_end_p): Check whether successor
712 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
713 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
714 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
715 RELOAD_FOR_OUTADDR_ADDRESS.
716
717 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
718
719 PR c++/24985
720 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
721 for macro expansion.
722
723 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
724
725 * flags.h (flag_permissive): Do not declare.
726 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
727 option specially.
728 * toplev.c (flag_permissive): Do not define.
729 * c-tree.h (system_header_p): Delete unused.
730
731 2012-05-03 David S. Miller <davem@davemloft.net>
732
733 PR target/52684
734 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
735 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
736 (sparc_emit_float_lib_cmp): Likewise.
737
738 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
739
740 PR target/53199
741 * config/rs6000/rs6000.md (bswapdi splitters): If
742 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
743 default) is used, generate an alternate sequence that does not
744 depend on using indexed addressing.
745
746 2012-05-03 Jason Merrill <jason@redhat.com>
747
748 * gengtype.c (write_types): Fix warning message.
749 (write_local): Likewise.
750
751 2012-05-02 Jason Merrill <jason@redhat.com>
752
753 * dwarf2out.c (struct external_ref, build_local_stub): New.
754 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
755 (optimize_external_refs, optimize_external_refs_1): New.
756 (change_AT_die_ref): New.
757 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
758 (build_abbrev_table): Take the external refs hashtable.
759 (output_comp_unit): Get it from optimize_external_refs and pass it in.
760
761 2012-05-03 Jan Hubicka <jh@suse.cz>
762
763 PR middle-end/53093
764 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
765
766 2012-05-03 Jan Hubicka <jh@suse.cz>
767
768 PR middle-end/53106
769 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
770
771 2012-05-03 Jason Merrill <jason@redhat.com>
772
773 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
774 use_debug_types to discriminate the die_id union.
775 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
776 (build_abbrev_table, output_die): Likewise.
777 (prune_unused_types_walk_attribs): Likewise.
778 (generate_type_signature, copy_declaration_context): Set it.
779 (remove_child_or_replace_with_skeleton): Set it.
780 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
781 check use_debug_types.
782 (dwarf2out_finish): Do break_out_includes after .debug_types.
783
784 2012-05-03 Jason Merrill <jason@redhat.com>
785
786 * dwarf2out.c (modified_type_die): Use scope_die_for.
787 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
788 (uses_local_type_r, uses_local_type): New.
789 (scope_die_for): Keep a type that uses a local type in local scope.
790 Use get_context_die for namespace and type scope.
791
792 2012-05-03 Jason Merrill <jason@redhat.com>
793
794 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
795 pc thunk.
796 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
797 (dwarf2out_finish): Likewise.
798
799 2012-05-03 Martin Jambor <mjambor@suse.cz>
800
801 * builtins.c (get_object_alignment_1): Return whether we can determine
802 the alignment or conservatively assume byte alignment. Return the
803 alignment by reference. Use get_pointer_alignment_1 for dereference
804 alignment.
805 (get_pointer_alignment_1): Return whether we can determine the
806 alignment or conservatively assume byte alignment. Return the
807 alignment by reference. Use get_ptr_info_alignment to get SSA name
808 alignment.
809 (get_object_alignment): Update call to get_object_alignment_1.
810 (get_object_or_type_alignment): Likewise, fall back to type alignment
811 only when it returned false.
812 (get_pointer_alignment): Update call to get_pointer_alignment_1.
813 * fold-const.c (get_pointer_modulus_and_residue): Update call to
814 get_object_alignment_1.
815 * ipa-prop.c (ipa_modify_call_arguments): Update call to
816 get_pointer_alignment_1.
817 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
818 of MEM_REF or TARGET_MEM_REF only when it returns false.
819 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
820 get_object_alignment_1.
821 (ccp_finalize): Use set_ptr_info_alignment.
822 * tree.h (get_object_alignment_1): Update declaration.
823 (get_pointer_alignment_1): Likewise.
824 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
825 (dump_gimple_stmt): Likewise.
826 * tree-flow.h (ptr_info_def): Updated comments of fields align and
827 misalign.
828 (get_ptr_info_alignment): Declared.
829 (mark_ptr_info_alignment_unknown): Likewise.
830 (set_ptr_info_alignment): Likewise.
831 (adjust_ptr_info_misalignment): Likewise.
832 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
833 and set alignment of SSA names.
834 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
835 mark_ptr_info_alignment_unknown.
836 * tree-ssanames.c (get_ptr_info_alignment): New function.
837 (mark_ptr_info_alignment_unknown): Likewise.
838 (set_ptr_info_alignment): Likewise.
839 (adjust_ptr_info_misalignment): Likewise.
840 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
841 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
842 Likewise.
843 (bump_vector_ptr): Likewise.
844 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
845 (vectorizable_store): Likewise.
846 (vectorizable_load): Likewise.
847
848 2012-05-03 Michael Matz <matz@suse.de>
849
850 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
851 in front of basic_block_def.
852 (struct basic_block_def): Make il.gimple the full struct, not a
853 pointer.
854 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
855
856 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
857 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
858 NULL il.gimple, which can't happen anymore.
859 * gimple.h (bb_seq): il.gimple can't be NULL.
860 (bb_seq_add): Ditto.
861 (set_bb_seq): Adjust.
862 (gsi_start_bb, gsi_last_bb): Tidy.
863 * lto-streamer-in.c (make_new_block): Don't zero members that
864 are zeroed already, don't allocate a gimple_bb_info.
865 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
866 (remove_bb): Clear all il.gimple members.
867 (gimple_verify_flow_info): Adjust for flat il.gimple.
868 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
869
870 * coretypes.h (const_gimple_seq): Remove typedef.
871 * gimple.h (gimple_seq_first): Take gimple_seq.
872 (gimple_seq_first_stmt): Ditto.
873 (gimple_seq_last): Ditto.
874 (gimple_seq_last_stmt): Ditto.
875 (gimple_seq_empty_p): Ditto.
876
877 2012-05-03 Richard Guenther <rguenther@suse.de>
878
879 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
880 operations.
881 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
882 (compute_avail): Do not add possibly trapping operations to
883 EXP_GEN if they might not be executed in the block.
884
885 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
886
887 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
888
889 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
890
891 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
892 information as early as possible. Update dominance info instead of
893 discarding it.
894
895 2012-05-03 Richard Guenther <rguenther@suse.de>
896
897 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
898 (union_contains_value): Remove.
899 (vro_valid_in_sets): Likewise.
900 (op_valid_in_sets): New function.
901 (valid_in_sets): Use op_valid_in_sets.
902 (insert_into_preds_of_block): Move dumping ...
903 (do_regular_insertion): ... here.
904 (do_partial_partial_insertion): ... and here. Dump that
905 we've found a partial partial redundancy.
906 (insert): Dump the current insert iteration.
907
908 2012-05-03 Jakub Jelinek <jakub@redhat.com>
909
910 PR plugins/53126
911 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
912 append program name to it and pass that as first argument
913 to make_relative_prefix. Always pass standard_libexec_prefix
914 as last argument to make_relative_prefix. If
915 make_relative_prefix returns NULL, fall back to
916 standard_libexec_prefix.
917
918 PR debug/53174
919 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
920 removed.
921
922 PR target/53187
923 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
924 mode, return that mode.
925
926 PR target/53194
927 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
928 define __ATOMIC_HLE_* macros here.
929 (ix86_target_macros): But here, using cpp_define_formatted.
930
931 2012-05-03 Richard Guenther <rguenther@suse.de>
932
933 PR tree-optimization/53144
934 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
935 Rename to ...
936 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
937 with SSA name values.
938 (vn_reference_lookup_3): Adjust callers.
939
940 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
941
942 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
943 has_fma4 for AMD processors with both fma3 and fma4 support.
944
945 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
946
947 PR target/53201
948 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
949 "-mno-hle".
950
951 2012-05-03 Michael Matz <matz@suse.de>
952
953 PR bootstrap/53197
954 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
955 (dse_enter_block): Properly iterate the whole sequence even
956 if the last statement was removed.
957
958 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
959
960 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
961 unset flag_jump_tables.
962 * stmt.c (expand_case): Remove special flag_pic case conditional
963 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
964
965 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
966
967 * common/config/s390/s390-common.c (s390_option_optimization_table):
968 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
969 default when optimizing.
970
971 2012-05-02 Martin Jambor <mjambor@suse.cz>
972
973 PR lto/52605
974 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
975 of a variable when the contect is a function.
976
977 2012-05-02 Michael Matz <matz@suse.de>
978
979 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
980 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
981 (const_gimple_seq_node): Remove.
982 (gimple_seq_node): Typedef as gimple.
983 (struct gimple_statement_base): Add next and prev members,
984 adjust all WORD markers in using structs.
985 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
986 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
987 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
988 gimple are the same.
989 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
990 gimple_seq, adjust.
991 (gimple_init_singleton): New function.
992 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
993 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
994 (gsi_stmt): Adjust.
995 (gsi_stmt_ptr): Remove.
996 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
997
998 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
999 again, adjust for above changes.
1000 (update_call_edge_frequencies): Adjust for above changes.
1001 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
1002 (gsi_insert_seq_nodes_after): Ditto.
1003 (gsi_split_seq_after): Ditto.
1004 (gsi_set_stmt): Ditto.
1005 (gsi_split_seq_before): Ditto.
1006 (gsi_remove): Ditto.
1007 (gsi_insert_seq_before_without_update): Don't free sequence.
1008 (gsi_insert_seq_after_without_update): Ditto.
1009 (gsi_replace): Assert some more invariants.
1010 (gsi_insert_before_without_update, gsi_insert_after_without_update):
1011 Tidy.
1012 (gsi_for_stmt): Don't search for stmt.
1013 (gsi_insert_on_edge_immediate): Tidy.
1014
1015 * gimple.c (gimple_alloc_k): Remove "sequences".
1016 (gimple_seq_cache): Remove.
1017 (gimple_alloc_stat): Make stmt a singleton sequence.
1018 (gimple_seq_alloc, gimple_seq_free): Remove.
1019 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
1020 (gimple_copy): Ditto.
1021 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
1022 create iterator from correct sequence.
1023 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
1024
1025 2012-05-02 Michael Matz <matz@suse.de>
1026
1027 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
1028 gimple_seq.
1029 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
1030 sequence, lazily allocate it.
1031 (bb_seq_addr): New function.
1032 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
1033 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
1034 (gsi_none): New function.
1035 (gsi_start_bb): Adjust.
1036 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
1037 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
1038 (gsi_last_bb): Adjust.
1039 (gsi_seq): Adjust.
1040 * tree-flow-inline.h (phi_nodes_ptr): New function.
1041
1042 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
1043 datastructure and interface change.
1044 (gsi_insert_seq_before_without_update): Ditto.
1045 (gsi_insert_seq_nodes_after): Ditto.
1046 (gsi_insert_seq_after_without_update): Ditto.
1047 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
1048 (gsi_split_seq_before): Ditto.
1049 (gsi_start_phis): Adjust.
1050 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
1051 (vect_transform_loop): Ditto.
1052 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
1053 gimple_seq_copy): Don't use gimple_seq_alloc.
1054 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
1055 (gimplify_seq_add_seq): Ditto.
1056 * lto-streamer-in.c (make_new_block): Ditto.
1057 * tree-cfg.c (create_bb): Ditto.
1058 * tree-sra.c (initialize_parameter_reductions): Ditto.
1059
1060 2012-05-02 Michael Matz <matz@suse.de>
1061
1062 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
1063 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
1064 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
1065 set_bb_seq): Move down to after gimple_statement_d definition.
1066
1067 2012-05-02 Michael Matz <matz@suse.de>
1068
1069 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
1070 gsi_replace_with_seq, instead of inserting itself.
1071 * gimple-iterator.c (gsi_replace_with_seq): New function.
1072 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
1073 iterator instead of statement, advance it.
1074 (ssa_forward_propagate_and_combine): Adjust call to above.
1075
1076 2012-05-02 Michael Matz <matz@suse.de>
1077
1078 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
1079 gimple_seq_alloc.
1080 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
1081 * tree-nested.c (walk_gimple_omp_for): Ditto.
1082 * trans-mem.c (lower_transaction): Ditto.
1083 * tree-eh.c (do_return_redirection): Ditto.
1084 (do_goto_redirection): Ditto.
1085 (lower_try_finally_switch): Ditto.
1086 * gimplify.c (gimplify_stmt): Ditto.
1087 (gimplify_scan_omp_clauses): Ditto.
1088 (gimplify_omp_for): Ditto.
1089 (gimplify_function_tree): Ditto.
1090 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
1091 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
1092 (mf_build_check_statement_for): Ditto.
1093 (mx_register_decls): Ditto.
1094 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
1095 and don't use itertors to append.
1096 (insert_stmts): Ditto.
1097 (insert_out_of_ssa_copy): Ditto.
1098 (insert_out_of_ssa_copy_on_edge): Ditto.
1099
1100 2012-05-02 Michael Matz <matz@suse.de>
1101
1102 * gimple.h (gimple_bind_body_ptr): New function.
1103 (gimple_bind_body): Use it.
1104 (gimple_catch_handler): Use gimple_catch_handler_ptr.
1105 (gimple_eh_filter_failure_ptr): New function.
1106 (gimple_eh_filter_failure): Use it.
1107 (gimple_eh_else_n_body_ptr): New function.
1108 (gimple_eh_else_n_body): Use it.
1109 (gimple_eh_else_e_body_ptr): New function.
1110 (gimple_eh_else_e_body): Use it.
1111 (gimple_try_eval_ptr): New function.
1112 (gimple_try_eval): Use it.
1113 (gimple_try_cleanup_ptr): New function.
1114 (gimple_try_cleanup): Use it.
1115 (gimple_wce_cleanup_ptr): New function.
1116 (gimple_wce_cleanup): Use it.
1117 (gimple_omp_body_ptr): New function.
1118 (gimple_omp_body): Use it.
1119 (gimple_omp_for_pre_body_ptr): New function.
1120 (gimple_omp_for_pre_body): Use it.
1121 (gimple_transaction_body_ptr): New function.
1122 (gimple_transaction_body): Use it.
1123 (gsi_split_seq_before): Adjust to return nothing and take pointer
1124 to sequence.
1125 (gsi_set_stmt): Declare.
1126 (gsi_replace_with_seq): Declare.
1127 (walk_gimple_seq_mod): Declare.
1128 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
1129
1130 * gimple-iterator.c (gsi_set_stmt): New function.
1131 (gsi_split_seq_before): Return new sequence via pointer argument.
1132 (gsi_replace): Use gsi_set_stmt.
1133
1134 * tree-ssa-loop-im.c (move_computations_stmt): First remove
1135 then insert stmt.
1136 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
1137 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
1138 return new stmt.
1139 (reserve_phi_args_for_new_edge): Change call to above,
1140 use gsi_set_stmt.
1141
1142 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
1143 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
1144 iterators. Adjust call to lower_omp.
1145 (lower_lastprivate_clauses): Adjust call to lower_omp.
1146 (lower_reduction_clauses): Ditto.
1147 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
1148 (lower_omp_sections): Don't explicitely count sequence length,
1149 nullify lowered bodies earlier, ensure stmts are part of only
1150 one sequence, adjust call to lower_omp.
1151 (lower_omp_single): Ensure stmts are part of only one sequence,
1152 adjust call to lower_omp.
1153 (lower_omp_master): Ditto.
1154 (lower_omp_ordered): Ditto.
1155 (lower_omp_critical): Ditto.
1156 (lower_omp_for): Ditto.
1157 (lower_omp_taskreg): Ditto, tidy.
1158 (lower_omp_1): Adjust calls to lower_omp.
1159 (execute_lower_omp): Ditto.
1160 (lower_omp): Adjust to take pointer to sequence.
1161 (diagnose_sb_2): Use walk_gimple_seq_mod.
1162 (diagnose_omp_structured_block_errors): Ditto and set possibly
1163 changed function body.
1164 * gimple-low.c (lower_function_body): Set function body after
1165 it stabilizes.
1166 (lower_sequence): Adjust to take pointer to sequence.
1167 (lower_omp_directive): Ensure stmt isn't put twice into the
1168 sequence, adjust call to lower_sequence.
1169 (lower_stmt): Adjust calls to lower_sequence.
1170 (lower_gimple_bind): Ditto.
1171 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
1172 * tree-nested.c (walk_body): Take pointer to sequence, use
1173 walk_gimple_seq_mod.
1174 (walk_function): Adjust call to walk_body, set possibly changed body.
1175 (walk_gimple_omp_for): Adjust calls to walk_body.
1176 (convert_nonlocal_omp_clauses): Ditto.
1177 (convert_nonlocal_reference_stmt): Ditto.
1178 (convert_local_omp_clauses): Ditto.
1179 (convert_local_reference_stmt): Ditto.
1180 (convert_tramp_reference_stmt): Ditto.
1181 (convert_gimple_call): Ditto.
1182 (convert_nl_goto_reference): Use local iterator copy.
1183 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
1184 but taking pointer to sequence, ensure gsi_start is called with
1185 callers lvalue.
1186 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
1187 asserting that the sequence head didn't change.
1188 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
1189 walk_gimple_seq_mod.
1190 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
1191 (execute_lower_tm): Ditto, and set possibly changed body.
1192 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
1193 call gsi_start with that lvalue.
1194 (replace_goto_queue_stmt_list): Ditto.
1195 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
1196 (replace_goto_queue): Ditto.
1197 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
1198 (lower_try_finally_onedest): Ditto.
1199 (lower_try_finally_copy): Ditto.
1200 (lower_try_finally_switch): Ditto.
1201 (lower_try_finally): Ditto.
1202 (lower_eh_filter): Ditto.
1203 (lower_eh_must_not_throw): Ditto.
1204 (lower_cleanup): Ditto.
1205 (lower_eh_constructs_2): Ditto.
1206 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
1207 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
1208 set possibly changed body.
1209 (optimize_double_finally): Call gsi_start with lvalue.
1210
1211 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
1212 (gimple_split_block): Ditto.
1213 (gimple_merge_blocks): Use gsi_start_phis.
1214 (move_stmt_r): Use walk_gimple_seq_mod.
1215 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
1216 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
1217 (rebuild_cgraph_edges): Ditto.
1218 (cgraph_rebuild_references): Ditto.
1219 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
1220 * tree-inline.c (copy_phis_for_bb): Ditto.
1221 * tree-ssa-dce.c: Ditto.
1222
1223 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
1224
1225 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
1226 Andi Kleen <ak@linux.intel.com>
1227
1228 * coretypes.h (MEMMODEL_MASK): New.
1229 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
1230 and return new variable.
1231 (expand_builtin_atomic_exchange): Mask memmodel values.
1232 (expand_builtin_atomic_compare_exchange): Ditto.
1233 (expand_builtin_atomic_load): Ditto.
1234 (expand_builtin_atomic_store): Ditto.
1235 (expand_builtin_atomic_clear): Ditto.
1236 * doc/extend.texi: Mention port-dependent memory model flags.
1237 * config/i386/cpuid.h (bit_HLE): New.
1238 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1239 HLE support.
1240 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
1241 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
1242 (ix86_target_string)<-mhle>: New.
1243 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
1244 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
1245 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
1246 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
1247 enabled for generic, generic64 and core-avx2.
1248 (ix86_print_operand): Generate HLE lock prefixes.
1249 (ix86_memmodel_check): New.
1250 (TARGET_MEMMODEL_CHECK): Ditto.
1251 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
1252 (IX86_HLE_ACQUIRE): Ditto.
1253 (IX86_HLE_RELEASE): Ditto.
1254 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
1255 * config/i386/i386.opt (mhle): Ditto.
1256 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
1257 success model to instruction emitter.
1258 (atomic_fetch_add<mode>): Ditto.
1259 (atomic_exchange<mode>): Ditto.
1260 (atomic_add<mode>): Ditto.
1261 (atomic_sub<mode>): Ditto.
1262 (atomic_<code><mode>): Ditto.
1263 (*atomic_compare_and_swap_doubledi_pic): Ditto.
1264 (atomic_compare_and_swap_single<mode>): Define and use argument
1265 for success model.
1266 (atomic_compare_and_swap_double<mode>): Ditto.
1267 * configure.ac: Check if assembler support HLE prefixes.
1268 * configure: Regenerate.
1269 * config.in: Ditto.
1270
1271 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
1272
1273 PR middle-end/53153
1274 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
1275 split out from ...
1276 (gimplify_switch_expr): ... here.
1277 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
1278 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
1279 to clean up case labels with values outside the index type range.
1280 (simplify_gimple_switch): Call it if something changed.
1281 Remove strange and unnecessary assert.
1282
1283 2012-05-02 Richard Guenther <rguenther@suse.de>
1284
1285 * fold-const.c (div_if_zero_remainder): sizetypes no longer
1286 sign-extend.
1287 (int_const_binop_1): New worker for int_const_binop with
1288 overflowable parameter. Pass it through to force_fit_type_double.
1289 (int_const_binop): Wrap around int_const_binop_1 with overflowable
1290 equal to one.
1291 (size_binop_loc): Call int_const_binop_1 with overflowable equal
1292 to minus one, forcing overflow detection for even unsigned types.
1293 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
1294 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
1295 * stor-layout.c (initialize_sizetypes): sizetypes no longer
1296 sign-extend.
1297 (layout_type): For zero-sized arrays ignore overflow on the
1298 size calculations.
1299 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
1300 (bit_value_binop_1): Likewise.
1301 * tree.c (double_int_to_tree): Likewise.
1302 (double_int_fits_to_tree_p): Likewise.
1303 (force_fit_type_double): Likewise.
1304 (host_integerp): Likewise.
1305 (int_fits_type_p): Likewise.
1306 * varasm.c (output_constructor_regular_field): Sign-extend the
1307 field-offset to cater for negative offsets produced by the Ada
1308 frontend.
1309 * omp-low.c (extract_omp_for_data): Convert the loop step to
1310 signed for pointer adjustments.
1311
1312 2012-05-02 Richard Guenther <rguenther@suse.de>
1313
1314 * tree.c (valid_constant_size_p): New function.
1315 * tree.h (valid_constant_size_p): Declare.
1316 * cfgexpand.c (expand_one_var): Adjust check for too large
1317 variables by using valid_constant_size_p.
1318 * varasm.c (assemble_variable): Likewise.
1319
1320 * c-decl.c (grokdeclarator): Properly check for sizes that
1321 cover more than half of the address-space.
1322
1323 2012-05-02 Jakub Jelinek <jakub@redhat.com>
1324
1325 PR tree-optimization/53163
1326 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
1327 return value from compute_all_dependences.
1328
1329 PR rtl-optimization/53160
1330 * ree.c (combine_reaching_defs): Handle the case where cand->insn
1331 has been modified by ree pass already.
1332
1333 2012-05-01 Ian Lance Taylor <iant@google.com>
1334
1335 PR c/37303
1336 * c-decl.c (build_compound_literal): Make the decl readonly if it
1337 an array of a readonly type.
1338 * gimplify.c (gimplify_compound_literal_expr): Add fallback
1339 parameter. Change all callers. If the decl is not addressable
1340 and is not an l-value, make it readonly.
1341
1342 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
1343
1344 * ira.c (allocated_reg_info_size): New static variable.
1345 (expand_reg_info): Manage it. Call
1346 setup_preferred_alternate_classes_for_new_pseudos.
1347 (ira): Don't do it here. Remove local allocated_reg_info_size,
1348 set the global before calling find_moveable_pseudos.
1349 (find_moveable_pseudos): Call expand_reg_info rather than
1350 resize_reg_info.
1351
1352 2012-05-01 Richard Henderson <rth@redhat.com>
1353
1354 * common.opt (fsync-libcalls): New.
1355 * doc/invoke.texi: Document it.
1356 * optabs.c (init_sync_libfuncs): Honor it.
1357
1358 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
1359 Richard Sandiford <r.sandiford@uk.ibm.com>
1360
1361 PR rtl-optimization/52543
1362 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
1363 lower-subreg.h.
1364 * lower-subreg.h: New file.
1365 * target-globals.h (this_target_lower_subreg): Declare.
1366 (target_globals): Add lower_subreg;
1367 (restore_target_globals): Restore this_target_lower_subreg.
1368 * target-globals.c: Include it.
1369 (default_target_globals): Add default_target_lower_subreg.
1370 (save_target_globals): Initialize target_lower_subreg.
1371 * rtl.h (init_lower_subreg): Added declaration.
1372 * toplev.c (backend_init_target): Call initializer for lower-subreg
1373 pass.
1374 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
1375 (default_target_lower_subreg): New variable.
1376 (this_target_lower_subreg): Likewise.
1377 (twice_word_mode, choices): New macros.
1378 (shift_cost, compute_splitting_shift, compute_costs)
1379 (init_lower_subreg): New functions.
1380 (resolve_simple_move): Add speed_p argument. Check choices.
1381 (find_pseudo_copy): Don't check the mode size here.
1382 (resolve_simple_move): Assert the mode size.
1383 (find_decomposable_shift_zext): Add speed_p argument and return
1384 a bool. Check choices.
1385 (resolve_shift_zext): Add comment.
1386 (dump_shift_choices, dump_choices): New functions.
1387 (decompose_multiword_subregs): Dump list of profitable
1388 transformations. Add code to skip non profitable transformations.
1389 Update calls to simple_move and find_decomposable_shift_zext.
1390
1391 2012-05-01 Ian Bolton <ian.bolton@arm.com>
1392 Sameera Deshpande <sameera.deshpande@arm.com>
1393 Greta Yorsh <greta.yorsh@arm.com>
1394
1395 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
1396 (thumb1_unexpanded_epilogue): ...this.
1397 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
1398 (thumb1_unexpanded_epilogue): ...this.
1399 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
1400 (thumb1_unexpanded_epilogue): ...this.
1401
1402 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
1403
1404 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
1405 comparing enumeration values. Update comments.
1406
1407 2012-05-01 Alan Modra <amodra@gmail.com>
1408
1409 PR target/53038
1410 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
1411 load_cr_save, add_crlr_cfa_restore): New functions.
1412 (rs6000_restore_saved_cr): Rename to..
1413 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
1414 (rs6000_emit_epilogue): Use new functions. Adjust condition
1415 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
1416 regs when using out-of-line restore only when shrink wrapping.
1417
1418 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1419
1420 PR middle-end/53136
1421 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
1422 calls to cgraph_node_name in xstrdup.
1423 (ipa_make_edge_direct_to_target): Ditto.
1424 * cgraph.c (dump_cgraph_node): Ditto.
1425 * tree-sra.c (convert_callers_for_node): Ditto.
1426 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
1427 * ipa-cp.c (perhaps_add_new_callers): Ditto.
1428 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
1429 (cgraph_materialize_all_clones): Ditto.
1430 * ipa-inline.c (report_inline_failed_reason): Ditto.
1431 (want_early_inline_function_p): Ditto.
1432 (edge_badness): Ditto.
1433 (update_edge_key): Ditto.
1434 (flatten_function): Ditto.
1435 (ipa_inline): Ditto.
1436 (inline_always_inline_functions): Ditto.
1437 (early_inline_small_functions): Ditto.
1438
1439 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1440
1441 PR target/53141
1442 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
1443 constraints 0 and 1.
1444
1445 012-04-30 Jan Hubicka <jh@suse.cz>
1446
1447 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
1448 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
1449 (cgraph_add_to_same_comdat_group): Remove.
1450 (cgraph_add_asm_node): Move to cgraphunit.c.
1451 (cgraph_make_decl_local): Move to symtab.c
1452 (cgraph_make_node_local_1): Update.
1453 (cgraph_can_remove_if_no_direct_calls_and): Update.
1454 (used_from_object_file_p): Update.
1455 (resolution_used_from_other_file_p): Move to symtab.c
1456 (cgraph_used_from_object_file_p): move to symtab.c
1457 (verify_cgraph_node): Verify same comdat groups.
1458 * cgraph.h (cgraph_asm_node): Rename to ...
1459 (asm_node): ... this one.
1460 (cgraph_asm_nodes): Rename to ...
1461 (asm_nodes): ... this one.
1462 (symtab_add_to_same_comdat_group): New function.
1463 (symtab_dissolve_same_comdat_group_list): New function.
1464 (symtab_used_from_object_file_p): Declare.
1465 (symtab_make_decl_local): Declare.
1466 (cgraph_add_to_same_comdat_group): Remove.
1467 (cgraph_add_asm_node): Remove.
1468 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
1469 Remove.
1470 (cgraph_finalize_compilation_unit): Rename to ...
1471 (finalize_compilation_unit): ... this one.
1472 (cgraph_optimize): Rename to ....
1473 (compile): ... this one.
1474 (add_asm_node): Declare.
1475 (fixup_same_cpp_alias_visibility): Declare.
1476 (cgraph_make_decl_local): Remove.
1477 (varpool_assemble_pending_decls): Rename to ...
1478 (varpool_output_variables): ... this one.
1479 (varpool_remove_unreferenced_decls): Remove.
1480 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
1481 (preserve_function_body_p): Make static.
1482 * toplev.c (compile_file): Update comments; update.
1483 * cgraphunit.c: Update comments.
1484 (cgraph_expand_all_functions): Rename to ...
1485 (expand_all_functions): ... this one; update.
1486 (cgraph_mark_functions_to_output): Rename to ...
1487 (mark_functions_to_output): ... this one; cleanup.
1488 (cgraph_output_pending_asms): Remove prototype.
1489 (asm_nodes, asm_last_node): New static vars.
1490 (cgraph_process_new_functions): Update.
1491 (cgraph_reset_node): Cleanup; add comment.
1492 (cgraph_add_new_function): Update.
1493 (cgraph_output_pending_asms): Rename to ...
1494 (output_asm_statements): ... this one.
1495 (add_asm_node): New function.
1496 (fixup_same_cpp_alias_visibility): New function based on code
1497 in cgraph_analyze_function.
1498 (cgraph_analyze_function): Use it.
1499 (cgraph_order_sort): Update.
1500 (cgraph_output_in_order): Update.
1501 (cgraph_function_versioning): Update.
1502 (cgraph_optimize): Rename to ...
1503 (compile): ... this one; initialize streamer hooks here.
1504 (cgraph_finalize_compilation_unit): Rename to ...
1505 (finalize_compilation_unit): ... this one; do not initialize streamer
1506 hook here.
1507 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
1508 * dwarf2out.c: Update ocmment.
1509 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
1510 * method.c (use_thunk): Likewise.
1511 * semantics.c (maybe_add_lambda_conv_op): Likewise.
1512 * decl2.c (maybe_emit_vtables): Likewise.
1513 (cp_write_global_declarations): Use finalize_compilation_unit.
1514 * parser.c (cp_parser_asm_definition): Use add_asm_node.
1515 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
1516 * c-decl.c (c_write_global_declarations): Use
1517 finalize_compilation_unit.
1518 * langhooks.c (write_global_declarations): Update.
1519 * ipa.c (cgraph_externally_visible_p): Update.
1520 (dissolve_same_comdat_group_list): Remove.
1521 (function_and_variable_visibility): Update.
1522 * symtab.c: Inlcude lto-streamer.h and rtl.h
1523 (ld_plugin_symbol_resolution_names): New.
1524 (symtab_add_to_same_comdat_group): New.
1525 (symtab_dissolve_same_comdat_group_list): New.
1526 (resolution_used_from_other_file_p): Move here from cgraph.c
1527 (symtab_used_from_object_file_p): New.
1528 (symtab_make_decl_local): New.
1529 * passes.c (register_pass): Update comments.
1530 * c-parser.c (c_parser_asm_definition): Update.
1531 * varpool.c (varpool_analyze_node): Use
1532 fixup_same_cpp_alias_visibility.
1533 (varpool_remove_unreferenced_decls): Make static.
1534 (varpool_assemble_pending_decls): Rename to ...
1535 (varpool_output_variables): ... this one; call
1536 varpool_remove_unreferenced_decls.
1537 (varpool_used_from_object_file_p): Remove.
1538
1539 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1540
1541 PR c++/51033
1542 * c-typeck.c (build_array_ref): Call
1543 convert_vector_to_pointer_for_subscript.
1544 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
1545
1546 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1547
1548 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
1549 to compile-time "mode == <MODE>mode" checks.
1550 (and splitter): Ditto.
1551
1552 2012-04-30 Richard Henderson <rth@redhat.com>
1553
1554 * config/arm/arm.md (UNSPEC_LL): New.
1555 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
1556 (arm_load_exclusivedi): Use %H0.
1557
1558 2012-04-30 Jason Merrill <jason@redhat.com>
1559
1560 * dwarf2out.c (comdat_symbol_id): Add const.
1561 (union die_symbol_or_type_node): Add const to die_symbol.
1562 (output_die_symbol, output_die, output_comp_unit): Adjust.
1563
1564 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
1565
1566 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
1567 * config/arm/neon.md (negdi2_neon): New insn.
1568 Also add splitters for core and NEON registers.
1569
1570 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
1571
1572 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
1573 (arm_print_operand): Add 'x' format.
1574 * config/arm/constraints.md (Dn): Allow const_int.
1575 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
1576 Use 'x' format to print constants.
1577 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
1578 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
1579 is enabled.
1580 (movdi_vfp_cortexa8): Likewise.
1581
1582 2012-04-30 Ian Bolton <ian.bolton@arm.com>
1583 Sameera Deshpande <sameera.deshpande@arm.com>
1584 Greta Yorsh <greta.yorsh@arm.com>
1585
1586 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
1587 * config/arm/arm.c (ldm_stm_operation_p): New function.
1588 * config/arm/predicates.md (load_multiple_operation): Update predicate.
1589 (store_multiple_operation): Likewise.
1590
1591 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
1592 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
1593 * config/arm/predicates.md (load_multiple_operation): Add arguments.
1594 (store_multiple_operation): Likewise.
1595
1596 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1597
1598 * config/i386/i386.md (and<mode>3): Expand masking operations with
1599 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
1600 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
1601
1602 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1603
1604 Add -Wvarargs option
1605 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
1606 argument for the various warning_at calls.
1607 * docs/invoke.texi: Update the documentation.
1608
1609 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1610
1611 Switch -ftrack-macro-expansion=2 on by default.
1612 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
1613 by default.
1614
1615 Fix va_start related location
1616 * builtins.c (fold_builtin_next_arg): Unwinds to the first
1617 location in real source code.
1618
1619 Make conversion warnings work on NULL with -ftrack-macro-expansion
1620 * input.h (expansion_point_location_if_in_system_header): Declare
1621 new function.
1622 * input.c (expansion_point_location_if_in_system_header): Define it.
1623
1624 Fix -Wuninitialized for -ftrack-macro-expansion
1625 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
1626 declaration. Use linemap_location_before_p for source locations.
1627
1628 Strip "<built-in>" loc from displayed expansion context
1629 * input.c (expand_location_1): When expanding to spelling location
1630 in a context of a macro expansion, skip reserved system header
1631 locations. Update comments. * tree-diagnostic.c
1632 (maybe_unwind_expanded_macro_loc): Likewise.
1633
1634 Make expand_location resolve to locus in main source file
1635 * input.c (expand_location_1): New. Takes a parameter to choose
1636 whether to resolve the location to spelling or expansion point.
1637 Was factorized from ...
1638 (expand_location): ... here.
1639 (expand_location_to_spelling_point): New. Implemented in terms of
1640 expand_location_1.
1641 * diagnostic.c (diagnostic_build_prefix): Use the new
1642 expand_location_to_spelling_point instead of expand_location.
1643
1644 Fix PCH crash on GTYed pointer-to-scalar field of a struct
1645 * gengtype.c (write_types_process_field): Force second argument of
1646 the call to the PCH object hierarchy walker to be 'x'.
1647
1648 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
1649
1650 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
1651 predicate to discriminate types.
1652
1653 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1654
1655 * doc/invoke.texi (Wmissing-format-attribute): Document as an
1656 alias of Wsuggest-attribute=format.
1657 * c-typeck.c (convert_for_assignment): Replace
1658 Wmissing-format-attribute with Wsuggest-attribute=format.
1659 (digest_init): Likewise.
1660
1661 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1662
1663 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
1664 * common.opt (Wmissing-noreturn): Alias of
1665 -Wsuggest-attribute=noreturn.
1666
1667 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
1668
1669 PR target/53156
1670 * config/cris/cris.md (andqu): New peephole2.
1671 (andu): Tweak head comment.
1672
1673 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
1674 Steven Bosscher <steven@gcc.gnu.org>
1675 Maxim Kuvyrkov <maxim@codesourcery.com>
1676
1677 PR tree-optimization/38785
1678 * common.opt (ftree-partial-pre): New option.
1679 * doc/invoke.texi: Document it.
1680 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
1681 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
1682 benefit speed path.
1683 (execute_pre): Use flag_tree_partial_pre.
1684
1685 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1686
1687 PR target/52999
1688 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
1689 in constant pool.
1690
1691 2012-04-27 Ollie Wild <aaw@google.com>
1692
1693 * doc/invoke.texi (Wliteral-suffix): Document new option.
1694
1695 2012-04-27 Tom Tromey <tromey@redhat.com>
1696
1697 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
1698 (dwarf_tag_name): Use get_DW_TAG_name.
1699 (dwarf_attr_name): Use get_DW_AT_name.
1700 (dwarf_form_name): Use get_DW_FORM_name.
1701 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
1702
1703 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
1704
1705 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
1706 arguments are -1 and 0, by negating the result of the conditional.
1707
1708 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
1709
1710 PR target/53138
1711 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
1712
1713 2012-04-27 Richard Guenther <rguenther@suse.de>
1714
1715 * tree-flow.h (is_hidden_global_store): Remove.
1716 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
1717 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
1718 (stmt_may_clobber_global_p): Likewise.
1719 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
1720 (stmt_may_clobber_global_p): Likewise.
1721 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
1722 stmt_may_clobber_global_p.
1723 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
1724
1725 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
1726
1727 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
1728 place.
1729
1730 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
1731 reorganize some fields and update comments. Rename bit_test_uniq
1732 and bit_test_count to uniq resp. count. Remove bit_test_bb.
1733 (collect_switch_conv_info): New function, collects info about a
1734 GIMPLE_SWITCH into a struct switch_conv_info.
1735 (check_range): Simplify to use pre-recorded info. Fix think-o in
1736 range-branch ratio check.
1737 (check_process_case): Remove function.
1738 (check_all_empty_except_final): New function, verifies that all
1739 non-final basic blocks are empty.
1740 (process_switch): Simplify to use pre-recorded info. Call
1741 collect_switch_conv_info to do that. Assert that degenerate switch
1742 statements have been cleaned up.
1743
1744 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
1745
1746 PR middle-end/27139
1747 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
1748
1749 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
1750
1751 PR c/53130
1752 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
1753
1754 2012-04-27 Tom de Vries <tom@codesourcery.com>
1755
1756 PR tree-optimization/51879
1757 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
1758 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
1759 of ...
1760 (defs_to_varying): ... here. Don't set use_processed.
1761 (visit_reference_op_call): Handle gimple_vdef.
1762 Handle case that lhs is NULL_TREE.
1763 (visit_use): Use mark_use_processed. Handle calls with side-effect
1764 using visit_reference_op_call.
1765
1766 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
1767
1768 * sched-deps.c (fixup_sched_groups): Rename to...
1769 (chain_to_prev_insn): ...this.
1770 (chain_to_prev_insn_p): New function.
1771 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
1772
1773 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
1774
1775 * sched-int.h (_haifa_insn_data): Move priority_status.
1776 Add model_index.
1777 (INSN_MODEL_INDEX): New macro.
1778 * haifa-sched.c (insn_delay): New function.
1779 (sched_regno_pressure_class): Update commentary.
1780 (mark_regno_birth_or_death): Pass the liveness bitmap and
1781 pressure array as arguments, instead of using curr_reg_live and
1782 curr_reg_pressure. Only update the pressure if the bit in the
1783 liveness set has changed.
1784 (initiate_reg_pressure_info): Always trust the live-in set for
1785 SCHED_PRESSURE_MODEL.
1786 (initiate_bb_reg_pressure_info): Update call to
1787 mark_regno_birth_or_death.
1788 (dep_list_size): Take the list as argument.
1789 (calculate_reg_deaths): New function, extracted from...
1790 (setup_insn_reg_pressure_info): ...here.
1791 (MODEL_BAR): New macro.
1792 (model_pressure_data, model_insn_info, model_pressure_limit)
1793 (model_pressure_group): New structures.
1794 (model_schedule, model_worklist, model_insns, model_num_insns)
1795 (model_curr_point, model_before_pressure, model_next_priority):
1796 New variables.
1797 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
1798 (MODEL_INSN_INFO, MODEL_INSN): New macros.
1799 (model_index, model_update_limit_points_in_group): New functions.
1800 (model_update_limit_points, model_last_use_except): Likewise.
1801 (model_start_update_pressure, model_update_pressure): Likewise.
1802 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
1803 (model_excess_cost, model_dump_pressure_points): Likewise.
1804 (model_set_excess_costs): Likewise.
1805 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
1806 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
1807 schedule as an alternative tie-breaker. Update the call to
1808 dep_list_size.
1809 (ready_sort): Call model_set_excess_costs.
1810 (update_register_pressure): Update call to mark_regno_birth_or_death.
1811 Rely on that function to check liveness rather than doing it here.
1812 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
1813 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
1814 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
1815 (model_record_pressure, model_record_pressures): New functions.
1816 (model_record_final_pressures, model_add_successors_to_worklist)
1817 (model_promote_predecessors, model_choose_insn): Likewise.
1818 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
1819 (model_start_schedule, model_finalize_pressure_group): Likewise.
1820 (model_end_schedule): Likewise.
1821 (schedule_insn): Say when we're scheduling the next instruction
1822 in the model schedule.
1823 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
1824 (queue_to_ready): Do not add instructions that are
1825 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
1826 Always allow the next instruction in the model schedule to be added.
1827 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
1828 and delay for SCHED_PRESSURE_MODEL too.
1829 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
1830 SCHED_PRIORITY_MODEL, but also take the DFA into account.
1831 (schedule_block): Call model_start_schedule and model_end_schedule.
1832 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
1833 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
1834 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
1835 region_ref_regs.
1836 (sched_finish): Update accordingly.
1837 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
1838 to SCHED_PRESSURE_MODEL.
1839 (add_jump_dependencies): Update call to dep_list_size.
1840 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
1841 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
1842 to SCHED_PRESSURE_MODEL.
1843 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
1844 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
1845 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
1846 handling to SCHED_PRESSURE_MODEL.
1847
1848 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
1849
1850 * common.opt (fsched-pressure-algorithm=): New option.
1851 * flag-types.h (sched_pressure_algorithm): New enum.
1852 * sched-int.h (sched_pressure_p): Replace with...
1853 (sched_pressure): ...this new variable.
1854 * haifa-sched.c (sched_pressure_p): Replace with...
1855 (sched_pressure): ...this new variable.
1856 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
1857 (update_reg_and_insn_max_reg_pressure, schedule_insn)
1858 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
1859 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
1860 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
1861 (sched_analyze_insn): Likewise.
1862 * sched-rgn.c (schedule_region): Likewise.
1863 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
1864
1865 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
1866
1867 * PR middle-end/52997
1868 * ira.c (find_moveable_pseudos): Call resize_reg_info.
1869
1870 PR middle-end/52940
1871 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
1872 * expr.c (convert_move): Honor unsignedp when extending partial int
1873 modes.
1874 * genmodes.c (complete_mode): Don't clear component field of partial
1875 int modes.
1876 (emit_mode_inner): Don't emit it however.
1877 (calc_wider_mode): Partial int modes widen to their component.
1878
1879 2012-04-26 David S. Miller <davem@davemloft.net>
1880
1881 * config/sparc/niagara4.md: New file.
1882 * config/sparc/sparc.md: Include it.
1883 * config/sparc/sparc.c (niagara4_costs): New processor costs.
1884 (sparc_option_override): Use it.
1885 (sparc_use_sched_lookahead): Return 2 for niagara4.
1886 (sparc_issue_rate): Likewise.
1887
1888 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
1889 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
1890 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1891 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
1892 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
1893 alignaddrldi_vis): Set type to gsr.
1894 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
1895 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
1896 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
1897 v<vis3_shift_patname><mode>3, fmean16_vis,
1898 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
1899 fucmp<code>8<P:mode>_vis): Set type to fga.
1900 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
1901 * config/sparc/niagara.md: Likewise.
1902 * config/sparc/niagara2.md: Likewise.
1903 * config/sparc/ultra3.md: Likewise, and fix type matching for
1904 us3_ialuX reservation.
1905
1906 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1907
1908 * reload.c (find_reloads): Change the loop nesting when trying an
1909 alternative with swapped operands.
1910
1911 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1912
1913 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
1914 comment. Delete unused parameter first_exp_point_map.
1915 (virt_loc_aware_diagnostic_finalizer): Update call.
1916
1917 2012-04-26 Michael Hope <michael.hope@linaro.org>
1918 Richard Earnshaw <rearnsha@arm.com>
1919
1920 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
1921 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
1922 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
1923 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
1924
1925 2012-04-25 Sriraman Tallam <tmsriram@google.com>
1926
1927 * doc/extend.texi: Document avx2 support.
1928 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
1929
1930 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
1931
1932 PR target/53120
1933 * config/cris/cris.md ("*andhi_lowpart_v32")
1934 ("*andqi_lowpart_v32"): Change first input-only operand from
1935 a (match_operand ...) to (match_dup 0). Drop alternatives with
1936 const_int-matching constraints for redundancy.
1937 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
1938 three-operand alternative.
1939
1940 2012-04-25 Jakub Jelinek <jakub@redhat.com>
1941
1942 PR target/53110
1943 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
1944 instead expand it as zero extension.
1945
1946 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
1947
1948 PR debug/52857
1949 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
1950
1951 2012-04-25 Jakub Jelinek <jakub@redhat.com>
1952
1953 * common.opt (flag_debug_types_section): Default to 0.
1954 (dwarf_version): Default to 4.
1955 (dwarf_record_gcc_switches): Default to 1.
1956 (dwarf_strict): Default to 0.
1957 * toplev.c (process_options): Don't handle dwarf_strict
1958 or dwarf_version here.
1959 * config/vxworks.c (vxworks_override_options): Don't
1960 test whether dwarf_strict or dwarf_version are negative,
1961 instead test !global_options_set.x_dwarf_*.
1962 * config/darwin.c (darwin_override_options): Default to
1963 dwarf_version 2.
1964 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
1965 and -fno-debug-types-section are now the default.
1966
1967 2012-04-25 Jan Hubicka <jh@suse.cz>
1968
1969 * cgraphunit.c: Update toplevel comment.
1970 (tree_rest_of_compilation): Merge into cgraph_expand_function.
1971 (cgraph_analyze_function): Make static.
1972 (cgraph_decide_is_function_needed): Make static.
1973 (cgraph_add_new_function): Use expand_function instead of
1974 rest_of_compilation.
1975 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
1976 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
1977 Move to cgraph.c
1978 (cgraph_inline_p): Remove.
1979 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
1980 (init_cgraph): Add comment.
1981 * cgraphbuild.c (record_reference, mark_address, mark_load,
1982 mark_store): Do not call analyze_expr hook.
1983 * cgraph.c: Update toplevel comment.
1984 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
1985 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
1986 Move fere from cgraphunit.c
1987 (cgraph_mark_force_output_node): Move to cgraph.h
1988 * cgraph.h: Reorder so the comments match the function placement.
1989 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
1990 (cgraph_mark_force_output_node): Move here from cgraph.c
1991 * tree.c (free_lang_data): Do not clear analyze_expr hook.
1992 * ipa-inline-transform.c (preserve_function_body_p): New function.
1993 (inline_transform): Update.
1994 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
1995 * langhooks.h (lang_hooks_for_callgraph): Remove.
1996 (lang_hooks): Remove callgraph.
1997 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
1998 * varpool.c: Remove out of date comment.
1999 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
2000 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
2001
2002 2012-04-25 Jan Hubicka <jh@suse.cz>
2003
2004 PR middle-end/53089
2005 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
2006 forward declaration.
2007 (cgraph_finalize_function): Finalize them here.
2008 * symtab.c (dump_symtab): Dump ctors and dtors.
2009
2010 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2011
2012 PR middle-end/52979
2013 * stor-layout.c (get_best_mode): Don't return mode with bitsize
2014 larger than maxbits. Don't compute maxbits modulo align.
2015 Also check that unit bytes long store at bitpos / unit * unit
2016 doesn't affect bits beyond bitregion_end.
2017 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
2018 would not fit into bitregion_start ... bitregion_end + 1 bit region.
2019 (store_split_bit_field): Decrease unit close to end of bitregion_end
2020 if access is restricted in order to avoid mutual recursion.
2021
2022 PR tree-optimization/53058
2023 * double-int.h (double_int_max_value, double_int_min_value): New
2024 prototypes.
2025 * double-int.c (double_int_max_value, double_int_min_value): New
2026 functions.
2027 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
2028 or GT_EXPR with double_int_max_value instead of double_int_mask.
2029
2030 2012-04-25 Richard Guenther <rguenther@suse.de>
2031
2032 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
2033 * tree-vect-loop.c (vect_transform_loop): Adjust.
2034 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
2035 the maximum number of iterations for the epilogue loop.
2036 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
2037
2038 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2039
2040 PR c/52880
2041 * c-typeck.c (set_nonincremental_init,
2042 set_nonincremental_init_from_string): Pass true instead of false
2043 as IMPLICIT to add_pending_init.
2044
2045 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2046
2047 * c-typeck.c (pop_init_level): Improve diagnostics.
2048
2049 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
2050
2051 * compare-elim.c (try_eliminate_compare): Also handle operands with
2052 implicit extensions.
2053
2054 2012-04-25 Alan Modra <amodra@gmail.com>
2055
2056 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
2057 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
2058 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
2059 (no_global_regs_above): Delete.
2060 (no_global_regs): New function.
2061 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
2062 value for load multiple test.
2063 (savres_routine_syms): Increase size.
2064 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
2065 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
2066 rather than a number of boolean flags. Update all callers.
2067 (rs6000_savres_routine_name): Generate vector save/restore names.
2068 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
2069 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
2070 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
2071 and using_store_multiple. Expand uses. Don't always use r11 as
2072 frame reg when needed for out-of-line saves. Set up initial offset
2073 for out-of-line vector saves when buying stack frame. Handle pointer
2074 reg setup for out-of-line fp save. Emit call to out-of-line vector
2075 save function. Choose r11 or r12 for vrsave reg when available for
2076 better scheduling.
2077 (rs6000_output_function_prologue): Don't emit .extern for ELF.
2078 (rs6000_emit_epilogue): Choose a better frame reg when restoring
2079 from back-chain to suit out-of-line vector restore functions. Emit
2080 call to out-of-line vector restore function. Adjust register used
2081 for cr restore. Tweak pointer register setup for gpr restore.
2082 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
2083 FIXED_R13.
2084 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
2085 (V_SAVE_INLINE): Define.
2086 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
2087
2088 2012-04-25 Alan Modra <amodra@gmail.com>
2089
2090 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
2091 out-of-line save/restore for large frames. Don't disable
2092 out-of-line saves on ABI_AIX when using static chain reg.
2093 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
2094 clobber static chain reg, and tweak for out-of-line gpr saves
2095 that use r1.
2096
2097 2012-04-25 Alan Modra <amodra@gmail.com>
2098
2099 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
2100 (rs6000_emit_prologue): Use the above to catch register overlap.
2101
2102 2012-04-25 Alan Modra <amodra@gmail.com>
2103
2104 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
2105 decl. Move logic selecting update reg to callers. Update all callers.
2106 (rs6000_emit_allocate_stack): Add copy_off param.
2107 (emit_frame_save): Don't handle reg+reg addressing.
2108 (ptr_regno_for_savres): New function, extracted from..
2109 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
2110 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
2111 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
2112 frame offset adjustment for out-of-line save with copy from sp.
2113 Simplify condition controlling whether cr is saved early or
2114 late. Use ptr_regno_for_savres to verify correct reg is set
2115 up for out-of-line saves. Pass the actual pointer reg used to
2116 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
2117 function. Rearrange spe vars so code is similar to that
2118 elsewhere in this function. Don't update frame_off when spe
2119 save code will restore r11. Use emit_frame_save for spe and
2120 gpr saves. Consolidate darwin out-of-line gpr setup with that
2121 for other abis. Don't assume frame_offset is zero and frame
2122 reg is sp when setting up altivec reg saves, and calculate
2123 exact offset requirement.
2124 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
2125 spe restore code. Consolidate darwin out-of-line gpr setup
2126 with that for other abis.
2127
2128 2012-04-25 Alan Modra <amodra@gmail.com>
2129
2130 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
2131 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
2132 the replacement.
2133 (emit_frame_save): Delete frame_ptr param. Rename total_size to
2134 frame_reg_to_sp.
2135 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
2136 and emit_frame_save calls. Cope with possibly missing note.
2137
2138 2012-04-24 Sriraman Tallam <tmsriram@google.com>
2139
2140 * config/i386/i386.c (build_processor_model_struct): New function.
2141 (make_var_decl): New function.
2142 (fold_builtin_cpu): New function.
2143 (ix86_fold_builtin): New function.
2144 (make_cpu_type_builtin): New function.
2145 (ix86_init_platform_type_builtins): New function.
2146 (ix86_expand_builtin): Expand new builtins by folding them.
2147 (ix86_init_builtins): Make new builtins to detect CPU type.
2148 (TARGET_FOLD_BUILTIN): New macro.
2149 (IX86_BUILTIN_CPU_INIT): New enum value.
2150 (IX86_BUILTIN_CPU_IS): New enum value.
2151 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
2152 * config/i386/i386-builtin-types.def: New function type.
2153 * testsuite/gcc.target/builtin_target.c: New testcase.
2154 * doc/extend.texi: Document builtins.
2155
2156 2012-04-24 Olivier Hainque <hainque@adacore.com>
2157
2158 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
2159 * toplev.c (process_options): Default to dwarf_version 2.
2160 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
2161 and dwarf_version 2.
2162
2163 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2164
2165 * tree-pretty-print.h (default_tree_printer): Do not declare.
2166 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
2167 intl.h.
2168 (default_tree_diagnostic_starter): Make static.
2169 (default_tree_printer): Move to here. Make static.
2170 (tree_diagnostics_defaults): New.
2171 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
2172 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
2173 * toplev.c: Do not include tree-pass.h.
2174 (default_tree_printer): Move from here.
2175 (general_init): Use tree_diagnostics_defaults.
2176
2177 2012-04-24 Chao-ying Fu <fu@mips.com>
2178
2179 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
2180 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
2181 * config/mips/gnu-user.h
2182 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
2183 (GNU_USER_TARGET_LINK_SPEC): New define.
2184 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
2185 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
2186 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
2187 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
2188 GNU_USER_TARGET_ENDFILE_SPEC.
2189 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
2190 (GNU_USER_TARGET_LINK_SPEC): New define.
2191 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
2192 * config/mips/linux-common.h: New file.
2193
2194 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2195
2196 PR target/47197
2197 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
2198 (altivec_build_resolved_builtin): Call fully_fold_convert.
2199
2200 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
2201
2202 PR target/53065
2203 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
2204
2205 2012-04-24 Richard Guenther <rguenther@suse.de>
2206
2207 PR tree-optimization/53085
2208 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
2209 stores.
2210
2211 2012-04-24 Richard Guenther <rguenther@suse.de>
2212
2213 * tree-if-conv.c (main_tree_if_conversion): Move bb under
2214 ENABLE_CHECKING.
2215
2216 2012-04-24 Jim Meyering <meyering@redhat.com>
2217
2218 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
2219 absence of an define_enum call.
2220
2221 2012-04-24 Richard Guenther <rguenther@suse.de>
2222
2223 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
2224 the epilogue loop is not re-used as unvectorized version
2225 record the its maximum number of iterations.
2226
2227 2012-04-24 Andrew Pinski <apinski@cavium.com>
2228
2229 * tree-ssa-forwprop.c (simplify_bitwise_binary):
2230 Don't directly use def1/def2.
2231
2232 2012-04-24 Richard Guenther <rguenther@suse.de>
2233
2234 PR tree-optimization/53098
2235 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
2236 comparison sign.
2237
2238 2012-04-24 Andrew Pinski <apinski@cavium.com>
2239
2240 PR tree-opt/33512
2241 * tree-ssa-forwprop.c (defcodefor_name): New function.
2242 (simplify_bitwise_binary): Use defcodefor_name instead of manually
2243 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
2244 Simplify "(~X | Y) & X" to "X & Y" and
2245 "(~X & Y) | X" to "X | Y".
2246
2247 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2248
2249 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
2250 validate_change to add clobbers if IN_GROUP is nonzero.
2251 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
2252 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
2253 prototype.
2254 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
2255 set to false.
2256 * config/s390/s390.c (insn_invalid_p): Likewise.
2257
2258 2012-04-24 Jakub Jelinek <jakub@redhat.com>
2259
2260 PR middle-end/53084
2261 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
2262 (output_addressed_constants): Likewise.
2263
2264 PR middle-end/52999
2265 * varasm.c (get_section): Don't ICE for section conflicts with
2266 built-in section kinds.
2267
2268 2012-04-23 DJ Delorie <dj@redhat.com>
2269
2270 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
2271 (LIBSTDCXX): Change to CPP2.
2272
2273 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
2274
2275 PR bootstrap/52878
2276 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
2277 extra_masks.
2278
2279 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
2280
2281 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
2282 (*addsi_2_zext): Ditto.
2283 (*add<mode>_3): Ditto.
2284 (*addsi_3_zext): Ditto.
2285 (*add<mode>_5): Ditto.
2286
2287 2012-04-23 Andrew Pinski <apinski@cavium.com>
2288
2289 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
2290 (C & B) to (A OP0) & B.
2291
2292 2012-04-23 Martin Jambor <mjambor@suse.cz>
2293
2294 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
2295 temporaries created for a bitfield (reverting revision 122014).
2296
2297 2012-04-23 Richard Guenther <rguenther@suse.de>
2298
2299 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
2300 the condition using is_gimple_condexpr and avoid the not necessary
2301 boolification.
2302 (set_prologue_iterations): Likewise.
2303 (vect_loop_versioning): Likewise.
2304
2305 2012-04-23 Richard Guenther <rguenther@suse.de>
2306
2307 PR tree-optimization/53070
2308 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
2309 (main_tree_if_conversion): Verify we succeeded in that.
2310
2311 2012-04-23 Jan Hubicka <jh@suse.cz>
2312
2313 * lto-symtab.c (lto_cgraph_replace_node): Do not call
2314 mark_reahcable_node.
2315 * cgraph.c (cgraph_remove_node): Do not clear reachable.
2316 (cgraph_mark_reachable_node): Remove.
2317 (cgraph_mark_force_output_node): Do not set reachable.
2318 (dump_cgraph_node): Do not dump reachable.
2319 (cgraph_create_virtual_clone): Do not set reachable.
2320 * cgraph.h (cgraph_node): Remove reachable flag.
2321 (varpool_node): Remove reachable flag.
2322 (cgraph_mark_if_needed): Remove.
2323 (cgraph_mark_reachable_node): Remove.
2324 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
2325 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
2326 reachable.
2327 (cgraph_add_new_function): Likewise.
2328 (cgraph_mark_if_needed): Remove.
2329 (cgraph_analyze_function): Do not set target as reachable.
2330 (process_function_and_variable_attributes): Do not care about
2331 dllexport.
2332 (cgraph_analyze_functions): Do not set reachable flags.
2333 (cgraph_mark_functions_to_output): Do not check reachability.
2334 (cgraph_copy_node_for_versioning): Do not set reachable flag.
2335 (dbxout_expand_expr): Update.
2336 * c-decl.c (merge_decls): Do not track changed externs.
2337 * ipa.c: Include pointer-set.h
2338 (enqueue_cgraph_node): Use reachable pointer set.
2339 (process_references): Likewise.
2340 (cgraph_remove_unreachable_nodes): Likewise.
2341 (whole_program_function_and_variable_visibility): Do not recompute
2342 reachable.
2343 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
2344
2345 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
2346
2347 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
2348
2349 2012-04-23 Richard Guenther <rguenther@suse.de>
2350
2351 PR c/53060
2352 * c-typeck.c (build_binary_op): Fix typo.
2353
2354 2012-04-23 Jakub Jelinek <jakub@redhat.com>
2355
2356 PR tree-optimizations/52891
2357 * tree-vect-patterns.c (adjust_bool_pattern): Use
2358 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
2359 but with non-standard precision.
2360
2361 2012-04-22 Jan Hubicka <jh@suse.cz>
2362
2363 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
2364 tree refs.
2365
2366 2012-04-22 Jan Hubicka <jh@suse.cz>
2367
2368 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
2369 * cgraphbuild.c (record_reference, record_type_list, mark_address,
2370 mark_load, mark_store): Do not mark varpool nodes as needed.
2371 * cgraph.c (cgraph_new_nodes): Remove.
2372 (cgraph_create_function_alias): Do not mark nodes as reachable.
2373 (cgraph_add_thunk): Likewise.
2374 (cgraph_mark_reachable_node): Do not manage the queue.
2375 * cgraph.h (cgraph_node): Remove next_needed.
2376 (varpool_nodes_queue): Remove next_needed and prev_needed.
2377 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
2378 (cgraph_new_nodes): Declare.
2379 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
2380 (varpool_analyze_pending_decls): Remove.
2381 (varpool_analyze_node): New.
2382 (varpool_mark_needed_node): Remove.
2383 (varpool_first_variable, varpool_next_variable): New inlines.
2384 (varpool_first_static_initializer, varpool_next_static_initializer):
2385 Update.
2386 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
2387 (varpool_first_defined_variable): New inline.
2388 (varpool_next_defined_variable): New inline
2389 (FOR_EACH_VARIABLE): Reimplement.
2390 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
2391 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
2392 needed flag.
2393 * cgraphunit.c (cgraph_new_nodes): Declare here.
2394 (enqueue_node): New function.
2395 (cgraph_process_new_functions): update for new
2396 node set; when constructing cgraph enqueue node for processing.
2397 (cgraph_add_new_function): Use new node set.
2398 (process_function_and_variable_attributes): Do not set varpool needed
2399 flags.
2400 (referred_to_p): New function.
2401 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
2402 when varpool is in construction.
2403 (cgraph_analyze_functions): Rewrite.
2404 (cgraph_expand_all_functions): Update.
2405 (cgraph_output_in_order): Do not analyze pending decls; do not set
2406 needed flags.
2407 (cgraph_optimize): Do not analyze pending decls.
2408 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
2409 in other partition; do not mark node as needed.
2410 * dwarf2out.c (reference_to_unused): Use analyzed flag.
2411 (premark_types_used_by_global_vars_helper): Likewise.
2412 * ipa.c (process_references): Do not call varpool_mark_needed_node.
2413 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
2414 cgrpah queues.
2415 (function_and_variable_visibility): Do not mark node as needed.
2416 (whole_program_function_and_variable_visibility): Likewise.
2417 * Makefile.in (gt-varpool.h): No longer needed.
2418 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
2419 (ipa_write_summaries): Do not use needed flag.
2420 * varpool.c: Do not include gt-varpool.h
2421 (x_varpool_nodes_queue, x_varpool_last_needed_node,
2422 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
2423 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
2424 Remove.
2425 (varpool_remove_node): Do not update the lists.
2426 (dump_varpool_node): Do not dump needed flag.
2427 (varpool_enqueue_needed_node): Remove.
2428 (varpool_mark_needed_node): Remove.
2429 (varpool_reset_queue): Remove.
2430 (varpool_finalize_decl): Move to cgraphunit.c
2431 (varpool_analyze_node): New functions based on former
2432 varpool_analyze_pending_decls.
2433 (varpool_analyze_pending_decls): Remove.
2434 (varpool_assemble_decl): Do not update the lists.
2435 (enqueue_node): New function.
2436 (varpool_remove_unreferenced_decls): Rewrite.
2437 (varpool_empty_needed_queue): Remove.
2438 (add_new_static_var): Do not mark node as needed.
2439 (varpool_create_variable_alias): Handle expansion state
2440 creation.
2441 * except.c (output_ttype): Do not mark node as needed.
2442 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
2443 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
2444 Likewise.
2445 * tree-switch-conversion.c (build_one_array): Likewise.
2446
2447 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2448
2449 PR c/44774
2450 * doc/invoke.texi (pedantic): Rename to Wpedantic.
2451 * common.opt (Wpedantic): New.
2452 (pedantic): Alias Wpedantic.
2453 * diagnostic.c (warning_at): Likewise.
2454 * c-decl.c (diagnose_mismatched_decls): Likewise.
2455 (build_array_declarator): Likewise.
2456 (mark_forward_parm_decls):
2457 (check_bitfield_type_and_width): Likewise.
2458 (grokdeclarator): Likewise.
2459 (grokfield): Likewise.
2460 (finish_struct): Likewise.
2461 (build_enumerator): Likewise.
2462 (store_parm_decls_oldstyle): Likewise.
2463 (declspecs_add_qual): Likewise.
2464 (declspecs_add_type): Likewise.
2465 (finish_declspecs): Likewise.
2466 * c-typeck.c (composite_type): Likewise.
2467 (comp_target_types): Likewise.
2468 (build_array_ref): Likewise.
2469 (pointer_diff): Likewise.
2470 (build_unary_op): Likewise.
2471 (build_conditional_expr): Likewise.
2472 (build_c_cast): Likewise.
2473 (convert_for_assignment): Likewise.
2474 (maybe_warn_string_init): Likewise.
2475 (digest_init): Likewise.
2476 (pop_init_level): Likewise.
2477 (set_init_index): Likewise.
2478 (c_finish_goto_label): Likewise.
2479 (c_finish_return): Likewise.
2480 (do_case): Likewise.
2481 (build_binary_op): Likewise.
2482 * c-parser.c (static): Likewise.
2483 (c_parser_external_declaration): Likewise.
2484 (c_parser_declaration_or_fndef): Likewise.
2485 (c_parser_static_assert_declaration_no_se): Likewise.
2486 (c_parser_enum_specifier): Likewise.
2487 (c_parser_struct_or_union_specifier): Likewise.
2488 (c_parser_struct_declaration): Likewise.
2489 (c_parser_alignas_specifier): Likewise.
2490 (c_parser_braced_init): Likewise.
2491 (c_parser_initelt): Likewise.
2492 (c_parser_compound_statement_nostart): Likewise.
2493 (c_parser_conditional_expression): Likewise.
2494 (c_parser_alignof_expression): Likewise.
2495 (c_parser_postfix_expression): Likewise.
2496 (c_parser_postfix_expression_after_paren_): Likewise.
2497 (c_parser_objc_class_instance_variables): Likewise.
2498 (c_parser_objc_method_definition): Likewise.
2499 (c_parser_objc_methodprotolist): Likewise.
2500
2501 2012-04-22 Ian Lance Taylor <iant@google.com>
2502
2503 * godump.c (go_output_typedef): Dump size of structs.
2504
2505 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
2506
2507 Correcting transform_to_exit_first_loop + fix to PR46886
2508 * tree-parloops.c (transform_to_exit_first_loop): Remove
2509 setting of number of iterations according to the loop pattern.
2510 Duplicate from entry to exit->src instead of loop->latch.
2511 (pallelize_loops): Remove the condition preventing do-while loops.
2512 * tree-cfg.c (bool bb_in_region_p): New.
2513 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
2514 Adjust redirection of the duplicated iteration.
2515
2516 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
2517
2518 PR bootstrap/53021
2519 * rtl.def (ADDRESS): Use "i" rather than "w".
2520 * rtl.h (find_base_term): Delete.
2521 (may_be_sp_based_p): Declare.
2522 * rtl.c (rtx_code_size): Remove ADDRESS special case.
2523 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
2524 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
2525 * alias.c: ...here.
2526 (find_base_term): Make static.
2527 (may_be_sp_based_p): New function.
2528 * dse.c (record_store): Use it.
2529 * store-motion.c (store_killed_in_insn): Likewise.
2530
2531 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
2532
2533 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
2534
2535 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2536
2537 PR 35441
2538 * c-typeck.c (inform_declaration): New.
2539 (build_function_call_vec): Do not pretty-print
2540 expressions when caret is enabled.
2541 (convert_arguments): Use inform_declaration.
2542
2543 2012-04-20 Jim Meyering <meyering@redhat.com>
2544
2545 * genmodes.c (make_complex_modes): Don't truncate a mode name of
2546 length 7 or more when prepending a "C". Suggested by Richard Guenther.
2547
2548 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2549
2550 PR rtl-optimization/44214
2551 * fold-const.c (exact_inverse): New function.
2552 (fold_binary_loc): Fold vector and complex division by constant into
2553 multiply by recripocal with flag_reciprocal_math; fold vector division
2554 by constant into multiply by reciprocal with exact inverse.
2555
2556 2012-04-20 Jan Hubicka <jh@suse.cz>
2557
2558 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
2559 force flags.
2560 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
2561 (cgraph_remove_node): Update.
2562 (cgraph_mark_needed_node): Remove.
2563 (cgraph_mark_force_output_node): New.
2564 (dump_cgraph_node): Do not dump needed flag.
2565 (cgraph_node_cannot_be_local_p_1): Update.
2566 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
2567 * cgraph.h (symtab_node_base): Add force_output flag.
2568 (cgraph_node): Remove needed flag.
2569 (varpool_node): Remove force_output flag.
2570 (cgraph_mark_needed_node): Remove.
2571 (cgraph_mark_force_output_node): New.
2572 (cgraph_only_called_directly_or_aliased_p,
2573 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
2574 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
2575 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
2576 (cgraph_add_new_function): Update.
2577 (cgraph_mark_if_needed): Update.
2578 (verify_cgraph_node): Update.
2579 (cgraph_analyze_function): Alias target is reachable.
2580 (process_function_and_variable_attributes): Update: externally_visible
2581 flag makes function reachable.
2582 (cgraph_analyze_functions): Update dumping.
2583 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2584 input_overwrite_node, input_varpool_node): Update streaming.
2585 * lto-streamer-out.c (produce_symtab): Use force_output.
2586 * ipa.c (process_references): Weakrefs must be processed.
2587 (cgraph_remove_unreachable_nodes): Likewise; update for new
2588 force_output flag.
2589 (varpool_externally_visible_p): Weakrefs are externally visible
2590 even if they are not.
2591 (function_and_variable_visibility): Update; when processing alias
2592 pair force the targets to be output.
2593 (whole_program_function_and_variable_visility): Use
2594 mark_reachable_node.
2595 * trans-mem.c (ipa_tm_mark_needed_node): Remove
2596 (ipa_tm_mark_force_output_node): New function.
2597 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2598 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
2599 aliases.
2600 * varasm.c (mark_decl_referenced): Update.
2601 (find_decl_and_mark_needed): Remove.
2602 (find_decl): New function.
2603 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
2604 alias targets as needed.
2605 (dump_tm_clone_pairs): Update.
2606 * tree-inline.c (copy_bb): Update check.
2607 * symtab.c (dump_symtab_base): Dump force_output.
2608 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
2609 * passes.c (execute_todo): Fix dumping.
2610 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
2611 (varpool_analyze_pending_decls): Alias target is reachable.
2612 (varpool_create_variable_alias): Finalize weakrefs.
2613
2614 2012-04-20 Jakub Jelinek <jakub@redhat.com>
2615
2616 PR bootstrap/53021
2617 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
2618 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
2619 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
2620 macros instead of constants.
2621 * dse.c (record_store): Check for SP ADDRESS by comparing
2622 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
2623 XEXP to be stack_pointer_rtx.
2624
2625 2012-04-20 Richard Guenther <rguenther@suse.de>
2626
2627 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
2628 update_call_from_tree when propagating into a call.
2629
2630 2012-04-20 Alan Modra <amodra@gmail.com>
2631
2632 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
2633 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
2634 sp_offset to frame_off. Move world save code earlier.
2635
2636 2012-04-20 Richard Guenther <rguenther@suse.de>
2637
2638 PR tree-optimization/53050
2639 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
2640 Do only one transform on COND_EXPRs at the same time.
2641
2642 2012-04-19 Jan Hubicka <jh@suse.cz>
2643
2644 * symtab.c (dump_symtab_base): Revert accidental checkin.
2645
2646 2012-04-20 Alan Modra <amodra@gmail.com>
2647
2648 PR target/53040
2649 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
2650 static chain, set REST_INLINE_FPRS too.
2651
2652 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
2653
2654 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
2655 nodes.
2656
2657 2012-04-20 Richard Guenther <rguenther@suse.de>
2658
2659 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
2660 loops that can never run more often than the vectorization factor.
2661
2662 2012-04-19 Jan Hubicka <jh@suse.cz>
2663
2664 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
2665
2666 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
2667
2668 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
2669
2670 2012-04-19 Jim Meyering <meyering@redhat.com>
2671
2672 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
2673 We verified above that the string(including trailing NUL) fits in buf,
2674 so just use memcpy.
2675
2676 2012-04-19 Richard Guenther <rguenther@suse.de>
2677
2678 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
2679 for dumping DECL_SECTION_NAME.
2680
2681 2012-04-19 Michael Matz <matz@suse.de>
2682
2683 PR middle-end/52977
2684 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
2685 (struct tree_vector): Adjust GTY length.
2686 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
2687
2688 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
2689 members.
2690 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
2691 caller emitted the length calulation already.
2692 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
2693 before handling any of the fields for structs.
2694
2695 2012-04-19 Richard Guenther <rguenther@suse.de>
2696
2697 PR tree-optimization/53031
2698 * tree-vrp.c (adjust_range_with_scev): Revert back to
2699 using max_loop_iterations.
2700
2701 2012-04-19 Michael Matz <matz@suse.de>
2702
2703 * diagnostic.c (emit_diagnostic): Move va_end call after user
2704 of the va_list.
2705 (warning, warning_at, pedwarn, permerror): Ditto.
2706
2707 2012-04-19 Richard Guenther <rguenther@suse.de>
2708
2709 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
2710 array access.
2711
2712 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
2713
2714 PR target/53033
2715 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
2716 the case *(X+const).
2717
2718 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2719
2720 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
2721
2722 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2723
2724 PR c/52283/37985
2725 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
2726 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
2727
2728 2012-04-19 Richard Guenther <rguenther@suse.de>
2729
2730 PR rtl-optimization/44688
2731 * loop-iv.c (determine_max_iter): Only return max_iter.
2732 (iv_number_of_iterations): Also use the recorded loop bound
2733 on the maximum number of iterations.
2734 * loop-unroll.c (decide_unroll_runtime_iterations): Use
2735 max_iter to avoid unrolling loops that do not roll.
2736 (decide_unroll_stupid): Likewise.
2737
2738 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
2739
2740 * targhooks.c (default_case_values_threshold): Fix code style nit.
2741
2742 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
2743 case range and type folding from here...
2744 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
2745 type, as documented in tree.def.
2746
2747 2012-04-18 Jan Hubicka <jh@suse.cz>
2748
2749 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
2750 Declare.
2751 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
2752 cgraph hash and same comdat groups.
2753 (cgraph_optimize): Verify symbol table.
2754 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
2755 (dissolve_same_comdat_group_list): Work on symtab nodes.
2756 (function_and_variable_visibility): Dissolve variable same comdat group
2757 lists, too.
2758 * symtab.c: Include timevar.h
2759 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
2760
2761 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
2762
2763 * tree-switch-conversion.c (info): Remove global pass info.
2764 (check_range, check_process_case, check_final_bb, create_temp_arrays,
2765 free_temp_arrays, gather_default_values, build_constructors,
2766 array_value_type, build_one_array, build_arrays, gen_def_assigns,
2767 fix_phi_nodes, gen_inbound_check): Pass info around from ...
2768 (process_switch): ... here. Unify message format. Return a const
2769 char pointer to the failure reason message.
2770 (do_switchconv): Unify message format. Update process_switch usage.
2771
2772 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
2773 * tree-cfg.c (edge_to_cases): Fix documentation.
2774
2775 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
2776
2777 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
2778
2779 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2780
2781 PR tree-optimization/52976
2782 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
2783 (possibly_move_powi): New function.
2784 (rewrite_expr_tree): Call possibly_move_powi.
2785 (rewrite_expr_tree_parallel): Likewise.
2786 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
2787 call add_to_ops_vec instead.
2788
2789 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2790
2791 PR tree-optimization/52976
2792 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
2793 (decrement_power): Likewise.
2794 (propagate_op_to_single_use): Likewise.
2795 (zero_one_operation): Handle __builtin_pow* calls in linearized
2796 expression trees; factor logic into propagate_op_to_single_use.
2797 (undistribute_ops_list): Allow operands with repeat counts > 1.
2798
2799 2012-04-18 Richard Guenther <rguenther@suse.de>
2800
2801 PR tree-optimization/44688
2802 * cfgloop.h (record_niter_bound): Declare.
2803 * tree-ssa-loop-niter.c (record_niter_bound): Export.
2804 Update the estimation with the upper bound here...
2805 (estimate_numbers_of_iterations_loop): ... instead of here.
2806 Do not forcefully reset a recorded upper bound.
2807 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
2808 Record the maximum number of loop iterations of the prologue loop.
2809
2810 2012-04-18 Jan Hubicka <jh@suse.cz>
2811
2812 * lto-symtab.c (lto_cgraph_replace_node): Update.
2813 * cgraphbuild.c (record_reference, record_type_list,
2814 record_eh_tables, mark_address, mark_load, mark_store): Update.
2815 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
2816 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
2817 Update.
2818 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
2819 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
2820 * reload.c: Fix typo in comment.
2821 * rtlanal.c: Likewise.
2822 * tree-emultls.c (gen_emutls_addr): Update.
2823 * ipa-reference.c (analyze_function): Update.
2824 * cgraphunit.c (cgraph_analyze_function,
2825 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
2826 Update.
2827 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
2828 (ipa_remove_reference): Likewise.
2829 (ipa_remove_all_refering): Rename to ...
2830 (ipa_remove_all_referring): ... this one; update.
2831 (ipa_dump_references): Update.
2832 (ipa_dump_referring): Update.
2833 (ipa_clone_references): Update.
2834 (ipa_clone_refering): Rename to ...
2835 (ipa_clone_referring): ... this one; update.
2836 (ipa_ref_cannot_lead_to_return): Update.
2837 (ipa_ref_has_aliases_p): Update.
2838 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
2839 forward typedefs.
2840 (ipa_ref_type): Remove.
2841 (ipa_ref_ptr_u): Remove.
2842 (ipa_ref): Remove referencing, refered, refered_index, refering_type
2843 and refered_type; add referring, referred and referred_index.
2844 (ipa_ref_list): Rename refering to referring.
2845 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
2846 ipa_clone_references, ipa_clone_referring): Update prototypes.
2847 * lto-cgraph.c (referenced_from_other_partition_p): Update.
2848 (lto_output_ref): Update.
2849 (add_references): Update.
2850 (input_varpool_node): Update.
2851 (input_refs): Update.
2852 * ipa-ref-inline.h (ipa_ref_node): Update.
2853 (ipa_ref_varpool_node): Update.
2854 (ipa_ref_referring_node): Update.
2855 (ipa_ref_referring_varpool_node): Update.
2856 (ipa_ref_referring_ref_list): Update.
2857 (ipa_ref_referred_ref_list): Update.
2858 (ipa_ref_list_first_referring): Update.
2859 (ipa_empty_ref_list): Update.
2860 (ipa_ref_list_refering_iterate): Rename to ...
2861 (ipa_ref_list_referring_iterate): ... this one.
2862 * cse.c: Update comment.
2863 * ipa-utils.c (ipa_reverse_postorder): Update.
2864 * tree-ssa-alias.c: Update.
2865 * ipa-inline.c (reset_edge_caches): Update.
2866 (update_caller_keys): Update.
2867 * ipa-inline.h: Update comments.
2868 * jump.c: Update comment.
2869 * alias.c: Likewise.
2870 * ipa.c (process_references): Update.
2871 (cgraph_remove_unreachable_nodes): Likewise.
2872 (ipa_discover_readonly_nonaddressable_var): Likewise.
2873 (cgraph_address_taken_from_non_vtable_p): Likewise.
2874 * trans-mem.c (ipa_tm_execute): Update.
2875 * simplify-rtx.c: Fix comment.
2876 * rtl.c: Fix comment.
2877 * symtab.c (symtab_unregister_node): Update.
2878 * varpool.c (dump_varpool_node): Update.
2879 (varpool_analyze_pending_decls): Update.
2880 (assemble_aliases): Update.
2881 (varpool_for_node_and_aliases): Update.
2882
2883 2012-04-18 Richard Guenther <rguenther@suse.de>
2884
2885 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
2886 use_undefined_p parameter.
2887 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
2888 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2889 Likewise.
2890 (estimate_numbers_of_iterations): Likewise.
2891 (estimated_loop_iterations): Adjust.
2892 (max_loop_iterations): Likewise.
2893 (scev_probably_wraps_p): Likewise.
2894 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
2895 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
2896 not max_loop_iterations.
2897 (execute_vrp): Remove explicit number of iterations estimation.
2898
2899 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
2900
2901 * config/i386/linux-common.h: New.
2902
2903 * config.gcc: Add i386/linux-common.h before
2904 all i386/linux.h and i386/linux64.h usages.
2905
2906 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
2907 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
2908 * config/i386/gnu-user64.h: Likewise.
2909
2910 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
2911 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
2912 (GNU_USER_TARGET_MATHFILE_SPEC): New.
2913 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
2914
2915 2012-04-18 Jan Hubicka <jh@suse.cz>
2916
2917 * cgraph.c (cgraph_node_name): Remove.
2918 (dump_cgraph_node): Use dump_symtab_base; reformat.
2919 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
2920 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
2921 Declare.
2922 (cgraph_node_name, varpool_node_name): Remove.
2923 (cgraph_node_asm_name, varpool_node_asm_name,
2924 cgraph_node_name, varpool_node_name): New.
2925 * tree-pass.h (TODO_dump_cgraph): Rename to ...
2926 (TODO_dump_symtab): ... this one.
2927 * ipa-cp (pass_ipa_cp): Update.
2928 * ia-reference.c (generate_summary, read_write_all_from_decl,
2929 propagate, ipa_reference_read_optimization_summary): Update.
2930 * cgraphunit.c (cgraph_analyze_functions): Update.
2931 (cgraph_optimize): Update.
2932 * ipa-ref.c (ipa_dump_references): Update.
2933 (ipa_dump_refering): Update.
2934 * ipa-inline.c (pass_ipa_inline): Update.
2935 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
2936 * ipa.c (pass_ipa_function_visibility,
2937 pass_ipa_whole_program_visibility): Update.
2938 * tree-sra.c (pass_early_ipa_sra): Update.
2939 * symtab.c: Include langhooks.h
2940 (symtab_node_asm_name): New.
2941 (symtab_node_name): New.
2942 (symtab_type_names): New static var.
2943 (dump_symtab_base): New.
2944 (dump_symtab_node, dump_symtab): New.
2945 (debug_symtab_node, debug_symtab): New.
2946 * tree-ssa-structalias.c: Dump symbol table.
2947 * pases.c (execute_todo): Handle TODO_dump_symtab instead
2948 of TODO_dump_cgraph.
2949 * varpoo.c (varpool_node_name): Remove.
2950 (dump_varpool_node): Use dump_symtab_base; reformat.
2951
2952 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2953
2954 * doc/invoke.texi (Language Independent Options): @item should be
2955 before @opindex.
2956
2957 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2958
2959 PR bootstrap/53021
2960 * rtl.c (rtx_code_size): Handle ADDRESS.
2961
2962 2012-04-17 Tom de Vries <tom@codesourcery.com>
2963
2964 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
2965 is not a STMT_LIST.
2966
2967 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
2968
2969 PR target/53020
2970 * config/i386/sync.md (atomic_<code><mode>): Rename to
2971 atomic_<logic><mode>.
2972
2973 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2974
2975 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
2976 * alias.c (reg_base_value): Expand and update comment.
2977 (arg_base_value): New variable.
2978 (unique_id): Move up file.
2979 (unique_base_value, unique_base_value_p, known_base_value_p): New.
2980 (find_base_value): Use arg_base_value and known_base_value_p.
2981 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
2982 (find_base_term): Use known_base_value_p.
2983 (base_alias_check): Use unique_base_value_p.
2984 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
2985 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
2986
2987 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
2988
2989 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
2990
2991 2012-04-17 Michael Matz <matz@suse.de>
2992
2993 PR tree-optimization/18437
2994 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
2995 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
2996 (vect_check_strided_load): Declare.
2997 * tree-vect-data-refs.c (vect_check_strided_load): New function.
2998 (vect_analyze_data_refs): Use it to accept strided loads.
2999 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
3000
3001 2012-04-17 Richard Guenther <rguenther@suse.de>
3002
3003 PR middle-end/53011
3004 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
3005 loops when redirecting an entry or latch edge.
3006
3007 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
3008
3009 * sel-sched.c (sel_global_init): Revert previous change.
3010
3011 2012-04-17 Richard Guenther <rguenther@suse.de>
3012
3013 * tree-flow.h (array_at_struct_end_p): Move declaration ...
3014 * tree.h (array_at_struct_end_p): ... here.
3015 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
3016 * expr.c (array_at_struct_end_p): ... here. Rewrite.
3017
3018 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
3019
3020 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
3021 COST_TABLE): Remove.
3022 (estimate_case_costs): Remove.
3023 (expand_case): Do not call estimate_case_costs
3024 to set use_cost_table.
3025 (balance_case_nodes): Do not use use_cost_table.
3026
3027 2012-04-16 Jan Hubicka <jh@suse.cz>
3028
3029 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
3030 (hash_node, eq_node): Remove.
3031 (cgraph_create_node): Do not handle hashtable.
3032 (cgraph_get_node): Remove.
3033 (cgraph_insert_node_to_hashtable): Remove.
3034 (hash_node_by_assembler_name): Remove.
3035 (eq_assembler_name): Remove.
3036 (cgraph_node_for_asm): Rewrite.
3037 (cgraph_find_replacement_node): Break out from ...
3038 (cgraph_remove_node): ... here; do not maintain hashtables.
3039 (change_decl_assembler_name): Remove.
3040 (cgraph_clone_node): Do not maintain hashtables.
3041 * cgraph.h (const_symtab_node): New typedef.
3042 (cgraph_insert_node_to_hashtable): Remove.
3043 (symtab_get_node, symtab_node_for_asm,
3044 symtab_insert_node_to_hashtable): Declare.
3045 (cgraph_find_replacement_node): Declare.
3046 (cgraph_get_node, varpool_get_node): Turn into inlines.
3047 (cgraph, varpool): Work sanely on NULL pointers.
3048 (FOR_EACH_SYMBOL): New walker.
3049 * ipa-inline-transform.c (save_inline_function_body): Use
3050 symtab_insert_node_to_hashtable.
3051 * symtab.c: Include ggc.h and diagnostics.h
3052 (symtab_hash, assembler_name_hash): New static vars;
3053 (hash_node, eq_node, hash_node_by_assembler_name,
3054 eq_assembler_name, insert_to_assembler_name_hash,
3055 unlink_from_assembler_name_hash): New.
3056 (symtab_register_node): Update hashtables.
3057 (symtab_insert_node_to_hashtable): New.
3058 (symtab_unregister_node): Update hashtables.
3059 (symtab_get_node): New.
3060 (symtab_node_for_asm): New.
3061 (change_decl_assembler_name): New.
3062 * Makefile.in (symtab.o): Needs GTY.
3063 * varpool.c (varpool_hash): Remove.
3064 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
3065 (varpool_node): Rewrite using varpool_get_node.
3066 (varpool_remove_node): DO not maintain hashtables.
3067 (varpool_node_for_asm): Rewrite.
3068
3069 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
3070
3071 * doc/invoke.texi: Copy-edit to put verbs in the present tense
3072 when describing the current behavior of GCC.
3073
3074 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
3075
3076 * genemit.c (gen_exp): Remove ADDRESS handling.
3077 * genoutput.c (scan_operands): Likewise.
3078 * genpeep.c (match_rtx): Likewise.
3079 * genrecog.c (add_to_sequence): Likewise.
3080
3081 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
3082
3083 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
3084
3085 2012-04-16 Martin Jambor <mjambor@suse.cz>
3086
3087 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
3088 bit-fields.
3089
3090 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
3091
3092 PR target/51819
3093 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
3094 hints for 'A' operand types.
3095
3096 2012-04-16 Jan Hubicka <jh@suse.cz>
3097
3098 * cgraph.h (symtab_node_base): Add next and previous pointers.
3099 (cgraph_node): Remove next and preivous pointers.
3100 (varpool_node): Likewise; remove next/previous GTY marker;
3101 it is not type safe.
3102 (symtab_node_def): Update GTY marker
3103 (x_cgraph_nodes, cgraph_nodes): Remove.
3104 (symtab_nodes): New function.
3105 (cgraph_order): Rename to ...
3106 (symtab_order): ... this one.
3107 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
3108 Declare.
3109 (x_varpool_nodes, varpool_nodes): Remove.
3110 (FOR_EACH_STATIC_VARIABLE): Update.
3111 (symtab_function_p, symtab_variable_p): New function.
3112 (FOR_EACH_VARIABLE): Update.
3113 (varpool_first_variable, varpool_next_variable): New functions.
3114 (FOR_EACH_VARIABLE): Update.
3115 (cgraph_first_defined_function): Update.
3116 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
3117 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
3118 (cgraph_first_function, cgraph_next_function): New.
3119 (FOR_EACH_FUNCTION): Update.
3120 (cgraph_first_function_with_gimple_body,
3121 cgraph_next_function_with_gimple_body): Update.
3122 * symtab.c: New file.
3123 * cgraph.c: Update copyright dates.
3124 (x_cgraph_nodes, cgraph_order): Remove.
3125 (NEXT_FREE_NODE): Update.
3126 (SET_NEXT_FREE_NODE): New.
3127 (cgraph_create_node_1): Remove common code.
3128 (cgraph_create_node): Remove common code; call symtab_register_node.
3129 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
3130 (cgraph_add_asm_node): Update.
3131 (cgraph_clone_node): Register new node.
3132 * cgraphunit.c (process_function_and_variable_attributes): Update.
3133 (cgraph_analyze_functions): Update.
3134 (cgraph_analyze_functions): Update.
3135 (cgraph_output_in_order): Update.
3136 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
3137 Update.
3138 * ipa-inline.c (recursive_inlining): Update.
3139 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
3140 * ipa.c (cgraph_remove_unreachable_nodes): Update.
3141 * Makefile.in: Add symtab.o
3142 * varpool.c (x_varpool_nodes): Remove
3143 (varpool_node): Remove common code; call symtab_register_node.
3144 (varpool_remove_node): Remove common code; call symtab_unregister_node.
3145
3146 2012-04-16 Richard Guenther <rguenther@suse.de>
3147
3148 PR middle-end/52977
3149 * tree.h (VECTOR_CST_NELTS): Adjust.
3150 (struct tree_vector): Add explicit length field.
3151 (make_vector_stat): Declare.
3152 (make_vector): Define.
3153 * tree.c (make_vector_stat): New function.
3154 (build_vector_stat): Use it.
3155 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
3156
3157 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3158
3159 PR tree-optimization/52976
3160 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
3161 (undistribute_ops_list): Ops with repeat counts aren't eligible for
3162 undistribution.
3163 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
3164
3165 2012-04-16 Jan Hubicka <jh@suse.cz>
3166
3167 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
3168 New macros.
3169 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
3170 walkers to walk cgraph and varpool.
3171 * cgraph.c (cgraph_node_for_asm): Likewise.
3172 (dump_cgraph): Likewise.
3173 * value-prof.c (init_node_map): Likewise.
3174 * tree.c (free_lang_data_in_cgraph): Likewise.
3175 * tree-emutls.c: (ipa_lower_emutls): Likewise.
3176 * ipa-reference.c (generate_summary, propagate): Likewise.
3177 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
3178 cgraph_mark_functions_to_output, cgraph_output_in_order,
3179 output_weakrefs, cgraph_materialize_all_clones,
3180 cgraph_optimize): Likewise.
3181 * lto-cgraph.c (merge_profile_summaries): Likewise.
3182 (input_cgraph): Likewise.
3183 * ipa-pure-const.c (generate_summary): Likewise.
3184 (propagate): Likwise.
3185 * ipa-utils.c (ipa_reduced_postorder): Likewise.
3186 (ipa_free_postorder_info): Likewise.
3187 (ipa_reverse_postorder): Likewise.
3188 * ipa-inline.c (ipa_inline): Likewise.
3189 * matrix-reorg.c (find_matrices_decl): Likewise.
3190 (matrix_reorg): Likewise.
3191 * tree-vectorizer.c (increase_alignment): Likewise.
3192 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
3193 (function_and_variable_visibility): Likewise.
3194 (whole_program_function_and_variable_visibility): Likewise.
3195 (ipa_cdtor_merge): Likewise.
3196 * trans-mem.c (ipa_tm_execute): Likewise.
3197 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
3198 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
3199 (ipa_print_all_params): Likewise.
3200 (ipa_update_after_lto_read): Likewise.
3201 * tree-profie.c (tree_profiling): Likewise.
3202 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3203 * passes.c (dump_passes): Likewise.
3204 (do_per_function): Likewise.
3205 (ipa_write_summaries): Likewise.
3206 * varpool.c (dump_varpool): Likewise.
3207 (varpool_node_for_asm): Likewise.
3208 (varpool_assemble_pending_decls): Likewise.
3209
3210 2012-04-16 Richard Guenther <rguenther@suse.de>
3211
3212 PR tree-optimization/52975
3213 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
3214 condition but always mark it with TRUTH_NOT_EXPR.
3215
3216 2012-04-16 Richard Guenther <rguenther@suse.de>
3217
3218 PR tree-optimization/52975
3219 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
3220 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
3221 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
3222 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
3223
3224 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
3225
3226 * config/i386/sse.md (ssse3_plusminus): New code iterator.
3227 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
3228 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
3229 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
3230 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
3231 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
3232 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
3233
3234 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
3235 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
3236 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
3237 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
3238 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
3239 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
3240
3241 (xop_plus): New code iterator.
3242 (macs): New code attribute.
3243 (macds): Ditto.
3244 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
3245 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
3246 iterator.
3247 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
3248 xop_plus code iterator.
3249 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
3250 xop_plus code iterator.
3251 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
3252 xop_plus code iterator.
3253 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
3254 xop_plus code iterator.
3255
3256 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
3257 any_extend code iterator.
3258 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
3259 any_extend code iterator.
3260 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
3261 any_extend code iterator.
3262 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
3263 any_extend code iterator.
3264 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
3265 any_extend code iterator.
3266 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
3267 any_extend code iterator.
3268
3269 2012-04-14 Tom de Vries <tom@codesourcery.com>
3270
3271 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
3272 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
3273 DELETED_LABEL note, and move it to ...
3274 * cfgrtl.c (delete_insn): ... here. Change return type to void.
3275 (delete_insn_and_edges): Likewise.
3276 (delete_insn_chain): Handle new return type of delete_insn. Delete
3277 chain backwards rather than forwards.
3278 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
3279 void.
3280 * cfglayout.c (fixup_reorder_chain): Delete unused label.
3281
3282 2012-04-14 Jan Hubicka <jh@suse.cz>
3283
3284 * cgraph.h: Update copyrights;
3285 (symtab_node): Turn to union typedef.
3286 (symtab_node_base): New structure.
3287 (symtab_type): Add SYMTAB_SYMBOL tag.
3288 (cgraph_node): Annotate some pinters with nested_ptr.
3289 (varpool_node): Likewise.
3290 (cgraph_local_info): Remove lto_file_data
3291 and externally_visible.
3292 (cgraph_node): Remove decl; same_comdat_group list;
3293 aux; ref_list; order; address_taken; reachable_from_other_parittion,
3294 in_other_partition; resolution.
3295 (varpool_node): Remove decl; same_comdat_group;
3296 ref_list; lto_file_data; aux; order; resolution; externally_visible;
3297 used_from_other_partition; in_other_partition.
3298 (symtab_node_def): New union.
3299 (cgraph, varpool): Update.
3300 (varpool_first_static_initializer, varpool_next_static_initializer,
3301 cgraph_only_called_directly_or_aliased_p,
3302 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
3303 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
3304 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
3305 field references.
3306 * cgraph.c: Likewise.
3307 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
3308 * cgraphbuild.c: Likewise.
3309 * lto-symtab.c: Likewise.
3310 * c-gimplify.c: Likewise.
3311 * value-prof.c: Likewise.
3312 * tree.c: Likewise.
3313 * ipa-cp.c: Likewise.
3314 * tree-emutls.c: Likewise.
3315 * ipa-inline-transform.c: Likwise.
3316 * ipa-reference.c: Likewise.
3317 * cgraphunit.c: Likewise.
3318 * ipa-ref.c: Likewise.
3319 * lto-cgraph.c: Likewise.
3320 * ipa-ref-inline.h: Likewise.
3321 * ipa-pure-const.c: Likewise.
3322 * lto-streamer-out.c: Likewise.
3323 * ipa-utils.c: Likewise.
3324 * ipa-inline.c: Likewise.
3325 * matrix-reorg.c: Likewise.
3326 * tree-eh.c: Likewise.
3327 * tree-vectorizer.c: Likewise.
3328 * ipa-split.c: Likewise.
3329 * ipa.c: Likewise.
3330 * trans-mem.c: Likewise.
3331 * ipa-inline-analysis.c: Likewise.
3332 * gimplify.c: Likewise.
3333 * cfgexpand.c: Likewise.
3334 * tree-sra.c: Likewise.
3335 * ipa-prop.c: Likewise.
3336 * varasm.c: Likewise.
3337 * tree-nested.c: Likewise.
3338 * tree-inline.c: Likewise.
3339 * tree-profile.c: Likewise.
3340 * tree-ssa-structalias.c: Likewise.
3341 * passes.c: Likewise.
3342 * varpool.c: Likewise.
3343
3344 2012-04-14 Tom de Vries <tom@codesourcery.com>
3345
3346 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
3347 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
3348 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
3349 of find_edge.
3350 (gsi_advance_fw_nondebug_nonlocal): New function.
3351 (local_def): Removed function.
3352 (same_succ_hash): Use stmt_local_def.
3353 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
3354 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
3355
3356 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
3357
3358 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
3359 and __ILP32__ for x32.
3360
3361 2012-04-13 Martin Jambor <mjambor@suse.cz>
3362
3363 PR middle-end/52939
3364 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
3365 fold_ctor_reference returns a zero constant.
3366
3367 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
3368
3369 * config.gcc: Add i386/gnu-user-common.h before all
3370 i386/gnu-user.h and i386/gnu-user64.h usages.
3371
3372 * config/i386/gnu-user-common.h: New.
3373
3374 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
3375 (CC1_SPEC): Likewise.
3376 (ENDFILE_SPEC): Likewise.
3377 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
3378 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
3379 (TARGET_OS_CPP_BUILTINS): Likewise.
3380 (LIBGCC2_HAS_TF_MODE): Likewise.
3381 (LIBGCC2_TF_CEXT): Likewise.
3382 (TF_SIZE): Likewise.
3383 (TARGET_ASM_FILE_END): Likewise.
3384 (STACK_CHECK_MOVING_SP): Likewise.
3385 (STACK_CHECK_STATIC_BUILTIN): Likewise.
3386 * config/i386/gnu-user64.h: Likewise.
3387
3388 2012-04-13 Martin Jambor <mjambor@suse.cz>
3389
3390 * expr.c (expand_expr_real_1): Pass type, not the expression, to
3391 set_mem_attributes for a memory temporary. Do not call the function
3392 for the memory temporary created for a bitfield.
3393
3394 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
3395
3396 PR debug/48866
3397 * df.h (enum debug_temp_where): New.
3398 (dead_debug_init, dead_debug_finish) Declare.
3399 (dead_debug_add, dead_debug_insert_temp): Declare.
3400 (struct dead_debug_use, struct dead_debug): Moved from...
3401 * df-problems.c: ... here.
3402 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
3403 to a debug temp.
3404 (df_create_unused_note): Likewise.
3405 (df_set_dead_notes_for_mw): Move comment where it belongs.
3406 (dead_debug_init): Export.
3407 (dead_debug_reset_uses): New, factored out of...
3408 (dead_debug_finish): ...this. Export.
3409 (dead_debug_reset): Remove.
3410 (dead_debug_add): Export.
3411 (dead_debug_insert_before): Rename to...
3412 (dead_debug_insert_temp): ... this. Add where argument. Export.
3413 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
3414 Return insertion count.
3415 (df_note_bb_compute): Adjust.
3416 * dce.c (word_dce_process_block): Adjust dead debug uses.
3417 (dce_process_block): Likewise.
3418
3419 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
3420
3421 * df-problems.c (df_note_bb_compute): Do not take note of
3422 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
3423
3424 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
3425
3426 PR debug/51570
3427 * var-tracking.c (expand_depth): New type.
3428 (onepart_aux, expand_loc_callback_data): Change depth type to it.
3429 (loc_exp_dep_alloc): Adjust initializer.
3430 (update_depth): Use new type. Add entryvals.
3431 (vt_expand_var_loc_chain): Take note of expansions with
3432 ENTRY_VALUEs, but don't accept them right away. Run an optional
3433 second pass accepting the minimum ENTRY_VALUE count found in the
3434 first pass.
3435 (vt_expand_loc_callback, INIT_ELCD): Adjust.
3436
3437 2012-04-13 Tom de Vries <tom@codesourcery.com>
3438
3439 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
3440 parameters vuse and vuse_escaped.
3441 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
3442 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
3443 vuse1 != vuse2.
3444
3445 2012-04-13 Richard Guenther <rguenther@suse.de>
3446
3447 PR tree-optimization/52969
3448 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
3449 the condition for the COND_EXPR and handle predicate negation
3450 by swapping the COND_EXPR arms.
3451
3452 2012-04-13 Nick Clifton <nickc@redhat.com>
3453
3454 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
3455 TODO_dump_func flag.
3456
3457 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
3458
3459 PR rtl-optimization/52203
3460 PR rtl-optimization/52715
3461
3462 Revert the 2012-03-07 fix for PR 52203.
3463 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
3464 the insn does not modify DFA right before issuing, adjust
3465 issue_rate accordingly.
3466
3467 2012-04-13 Richard Guenther <rguenther@suse.de>
3468
3469 PR c/52549
3470 * c-typeck.c (pointer_diff): Remove bogus assert.
3471
3472 2012-04-13 Richard Guenther <rguenther@suse.de>
3473
3474 PR c/52862
3475 * convert.c (convert_to_pointer): Remove special-casing of zero.
3476
3477 2012-04-13 Joey Ye <joey.ye@arm.com>
3478
3479 * config/arm/constraints.md (Pe): New constraint.
3480 * config/arm/arm.md: New split for imm 256-510.
3481
3482 2012-04-13 Terry Guo <terry.guo@arm.com>
3483
3484 * config/arm/arm-cores.def: Added core cortex-m0plus.
3485 * config/arm/arm-tune.md: Regenerated.
3486 * config/arm/arm-tables.opt: Regenerated.
3487 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
3488
3489 2012-04-13 Alan Modra <amodra@gmail.com>
3490
3491 PR target/52828
3492 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
3493 tie regs on destination of sets. Delete forward declaration.
3494 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
3495 (rs6000_emit_prologue): Likewise.
3496 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
3497 and gen_stack_tie.
3498 (is_mem_ref): Use tie_operand to recognise stack ties.
3499 * config/rs6000/predicates.md (tie_operand): New.
3500 * config/rs6000/rs6000.md (restore_stack_block): Generate new
3501 stack tie rtl.
3502 (restore_stack_nonlocal): Likewise.
3503 (stack_tie): Update.
3504 (frame_tie): Delete.
3505
3506 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3507
3508 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
3509 HOST_WIDE_INT_PRINT_DEC in format strings.
3510
3511 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
3512
3513 PR target/52932
3514 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
3515 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
3516 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
3517 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
3518 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
3519 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
3520 avx2_permvarv8si using VI4F_256 mode iterator.
3521 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
3522 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
3523 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
3524 gen_avx2_permvarv8sf.
3525 (expand_vec_perm_pshufb): Ditto.
3526
3527 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3528
3529 PR target/52775
3530 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
3531 the list of options to enable the FCFID instruction.
3532 (TARGET_EXTRA_BUILTINS): Adjust comment.
3533
3534 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3535
3536 PR tree-optimization/18589
3537 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
3538 (operand_entry): Add count field.
3539 (add_repeat_to_ops_vec): New function.
3540 (completely_remove_stmt): Likewise.
3541 (remove_def_if_absorbed_call): Likewise.
3542 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
3543 (acceptable_pow_call): New function.
3544 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
3545 entries with repeat counts when found.
3546 (repeat_factor_d): New struct and associated typedefs.
3547 (repeat_factor_vec): New static vector variable.
3548 (compare_repeat_factors): New function.
3549 (get_reassoc_pow_ssa_name): Likewise.
3550 (attempt_builtin_powi): Likewise.
3551 (reassociate_bb): Call attempt_builtin_powi.
3552 (fini_reassoc): Two new calls to statistics_counter_event.
3553
3554 2012-04-12 Richard Guenther <rguenther@suse.de>
3555
3556 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
3557 * cgraph.h (tree_rest_of_compilation): Remove.
3558 * cgraph.c (cgraph_add_new_function): Move ...
3559 * cgraphunit.c (cgraph_add_new_function): ... here.
3560 (tree_rest_of_compilation): Make static.
3561 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
3562 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
3563 gate_all_early_local_passes, execute_all_early_local_passes,
3564 pass_early_local_passes, gate_all_early_optimizations,
3565 pass_all_early_optimizations): Move ...
3566 * passes.c (gate_all_optimizations, pass_all_optimizations,
3567 gate_all_early_local_passes, execute_all_early_local_passes,
3568 pass_early_local_passes, gate_all_early_optimizations,
3569 pass_all_early_optimizations): ... here.
3570 * tree-optimize.c (execute_free_datastructures): Remove.
3571 * tree-flow.h (execute_free_datastructures): Remove.
3572 * tree-optimize.c (execute_init_datastructures,
3573 pass_init_datastructures): Move ...
3574 * tree-ssa.c (execute_init_datastructures,
3575 pass_init_datastructures): ... here.
3576 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
3577 execute_free_datastructures.
3578
3579 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
3580
3581 * dbgcnt.def (ira_move): New counter.
3582 * ira-int.h (ira_create_new_reg): Declare function.
3583 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
3584 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
3585 no longer static. All callers changed.
3586 * ira.c: Include "dbgcnt.h".
3587 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
3588 move_unallocated_pseudos): New static functions.
3589 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
3590 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
3591 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
3592 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
3593 to the pseudos generated in find_moveable_pseudos.
3594 * Makefile.in (ira.o): Add $(DBGCNT_H).
3595
3596 2012-04-12 Richard Guenther <rguenther@suse.de>
3597
3598 PR tree-optimization/52943
3599 * tree-chrec.h (chrec_is_positive): Remove.
3600 * tree-scalar-evolution.c (chrec_is_positive): Move ...
3601 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
3602 Return false for a constant zero instead of negative.
3603 (analyze_siv_subscript_cst_affine): Handle zero difference
3604 in the initial condition explicitely.
3605
3606 2012-04-12 Richard Guenther <rguenther@suse.de>
3607
3608 * tree-parloops.c (parallelize_loops): Also consult the upper
3609 bound for the number of iterations.
3610 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
3611 (loop_prefetch_arrays): Likewise.
3612
3613 2012-04-12 Richard Guenther <rguenther@suse.de>
3614
3615 * cfgloop.h (estimated_loop_iterations_int): Ditch
3616 'conservative' parameter.
3617 (max_stmt_executions_int): Likewise.
3618 (estimated_loop_iterations): Likewise.
3619 (max_stmt_executions): Likewise.
3620 (max_loop_iterations): Declare.
3621 (max_loop_iterations_int): Likewise.
3622 (estimated_stmt_executions): Likewise.
3623 (estimated_stmt_executions_int): Likewise.
3624 * tree-ssa-loop-niter.c (estimated_loop_iterations):
3625 Split parts to ...
3626 (max_loop_iterations): ... this.
3627 (estimated_loop_iterations_int): Split parts to ...
3628 (max_loop_iterations_int): ... this.
3629 (max_stmt_executions_int): Split parts to ...
3630 (estimated_stmt_executions_int): ... this.
3631 (max_stmt_executions): Split parts to ...
3632 (estimated_stmt_executions): ... this.
3633 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
3634 * predict.c (predict_loops): Likewise.
3635 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
3636 (analyze_siv_subscript_cst_affine): Likewise.
3637 (compute_overlap_steps_for_affine_1_2): Likewise.
3638 (analyze_subscript_affine_affine): Likewise.
3639 (init_omega_for_ddr_1): Likewise.
3640 * tree-parloops.c (parallelize_loops): Likewise.
3641 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3642 (may_eliminate_iv): Likewise.
3643 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
3644 (loop_prefetch_arrays): Likewise.
3645 * tree-vrp.c (adjust_range_with_scev): Likewise.
3646
3647 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
3648
3649 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
3650 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
3651 Fix line width.
3652 (dump_table): Use bool type for need_align and have_df variables.
3653 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
3654 (regs_used): Remove register modifier.
3655 (barrier_align): Move variables slot, credit, jump_to_next
3656 into if block above for loop. Use bool type for jump_to_next.
3657 (sh_function_arg): Use NULL_RTX instead of 0.
3658
3659 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
3660
3661 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
3662 (bswapsi2): New expander.
3663
3664 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
3665
3666 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
3667 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
3668
3669 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
3670
3671 PR rtl-optimization/52876
3672 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
3673 Don't call mark_reg_pointer for incompatible pointer sign extension.
3674
3675 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
3676 directly.
3677
3678 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
3679
3680 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
3681 comparisons against TYPE_PRECISION.
3682 * tree-ssa-forwprop.c (combine_conversions): Likewise.
3683
3684 2012-04-11 Xinliang David Li <davidxl@google.com>
3685
3686 * tree-passes.h: Remove TODO_dump_func.
3687 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
3688 * trans-mem.c: Remove TODO_dump_func.
3689 * ira.c: Remove TODO_dump_func.
3690
3691 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
3692
3693 * config/i386/i386.c (ix86_option_override_internal): Check
3694 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
3695 after TARGET_64BIT is updated.
3696
3697 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
3698
3699 * config/sh/sh.h: Remove old secondary reload code.
3700
3701 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
3702
3703 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
3704 (ready_reorder): ... this function.
3705
3706 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
3707
3708 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
3709 sched_init calls.
3710
3711 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
3712 insns so that no other insn is queued for a time before them.
3713
3714 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
3715 unknown.
3716
3717 2012-04-11 Richard Guenther <rguenther@suse.de>
3718
3719 PR middle-end/52621
3720 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
3721 consider loop nesting.
3722 (evolution_function_is_univariate_p): Properly check the remainder
3723 for chrecs.
3724
3725 2012-04-11 Richard Guenther <rguenther@suse.de>
3726
3727 PR middle-end/52918
3728 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
3729
3730 2012-04-11 Nick Clifton <nickc@redhat.com>
3731
3732 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
3733 information, if requested.
3734
3735 * config/rx/rx.c (rx_expand_prologue): Likewise.
3736
3737 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
3738 Michael Matz <matz@suse.de>
3739
3740 PR target/16458
3741 * rtlanal.c (unsigned_reg_p): New function.
3742 Update copyright notice dates.
3743 * rtl.h (unsigned_reg_p): Prototype it.
3744 Update copyright notice dates.
3745 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
3746 Update comment.
3747 * expr.c (expand_expr_real_1): Set register attributes.
3748 * stmt.c (expand_case): Likewise.
3749
3750 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
3751
3752 PR target/50751
3753 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
3754 consider_sh2a and allow_zero.
3755 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
3756 (disp_addr_displacement): New function.
3757 (sh_address_cost): Use disp_addr_displacement function instead
3758 of DISP_ADDR_OFFSET.
3759 (sh_legitimate_address_p): Adapt to changed
3760 sh_legitimate_index_p declaration.
3761 (sh_find_mov_disp_adjust): Remove HImode check.
3762 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
3763 disp_addr_displacement and max_mov_insn_displacement.
3764 (max_mov_insn_displacement): Remove HImode check.
3765 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
3766 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
3767 * config/sh/constraints.md (K05, K13): New constraints.
3768 (K12): Correct comment.
3769 (Sdd): Do not use DISP_ADDR_P macro.
3770 (Snd, Sbw): Use satisfies_constraint_Sdd.
3771 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
3772 (*extendhisi2_compact, movhi_i): Remove.
3773 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
3774 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
3775 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
3776 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
3777 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
3778 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
3779 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
3780 CONST_OK_FOR_Kxx.
3781 Add new peepholes for HImode displacement addressing.
3782
3783 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
3784
3785 * config/sh/sh.h (SIDI_OFF): Remove.
3786 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
3787 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
3788 or operand_subword.
3789
3790 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3791
3792 PR target/52624
3793 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
3794 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
3795 * doc/md.texi (Standard Names): Add bswap.
3796 * builtin-types.def (BT_UINT16): New primitive type.
3797 (BT_FN_UINT16_UINT16): New function type.
3798 * builtins.def (BUILT_IN_BSWAP16): New.
3799 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
3800 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
3801 expand_builtin_bswap.
3802 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
3803 (fold_builtin_1): Likewise.
3804 (is_inexpensive_builtin): Likewise.
3805 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
3806 missing bits for bswap to libcall code.
3807 * tree.c (build_common_tree_nodes): Build uint16_type_node.
3808 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
3809 (uint16_type_node): New define.
3810 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
3811 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
3812 above builtin.
3813 (rs6000_init_builtins): Likewise.
3814 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
3815
3816 2012-04-11 Tristan Gingold <gingold@adacore.com>
3817
3818 * doc/extend.texi (Type Attributes): Move paragraph.
3819
3820 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3821
3822 PR 24985
3823 * diagnostic.h (show_caret): Declare.
3824 (caret_max_width): Declare.
3825 (diagnostic_show_locus): Declare.
3826 * diagnostic.c (diagnostic_initialize): Initialize to false.
3827 (diagnostic_show_locus): New.
3828 (diagnostic_report_diagnostic): Call it.
3829 (getenv_columns): New.
3830 (adjust_line): New.
3831 (diagnostic_set_caret_max_width): New.
3832 * input.c (read_line): New.
3833 (location_get_source_line): New.
3834 * input.h (location_get_source_line): Declare.
3835 * toplev.c (general_init): Initialize show_caret from options.
3836 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
3837 * opts.c (common_handle_option): Likewise.
3838 * pretty-print.h (pp_get_prefix): New.
3839 (pp_base_get_prefix): New.
3840 * common.opt (fdiagnostics-show-caret): New option.
3841 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
3842
3843 2012-04-11 Richard Guenther <rguenther@suse.de>
3844
3845 PR rtl-optimization/52881
3846 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
3847
3848 2012-04-11 Richard Guenther <rguenther@suse.de>
3849
3850 PR tree-optimization/52912
3851 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
3852 manipulation code we are threading through a loop header
3853 to an exit destination.
3854
3855 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3856
3857 * tree.h (warn_if_unused_value): Move declaration from here.
3858 * stmt.c (warn_if_unused_value): Move definition from here.
3859
3860 2010-04-10 Michael Matz <matz@suse.de>
3861
3862 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
3863 grouped_stores.
3864 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
3865 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
3866 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
3867 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
3868 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
3869 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
3870 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
3871 (vect_record_strided_load_vectors): Rename to
3872 vect_record_grouped_load_vectors.
3873 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
3874 Rename use of above macros.
3875 (vect_verify_datarefs_alignment): Ditto.
3876 (vector_alignment_reachable_p): Ditto.
3877 (vect_peeling_hash_get_lowest_cost): Ditto.
3878 (vect_enhance_data_refs_alignment): Ditto.
3879 (vect_analyze_group_access): Ditto and rename stride to groupsize.
3880 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
3881 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
3882 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
3883 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
3884 (vect_record_strided_load_vectors): Rename to
3885 vect_record_grouped_load_vectors.
3886 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
3887 (destroy_loop_vec_info): Ditto.
3888 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
3889 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
3890 (vect_analyze_slp): Ditto.
3891 (new_bb_vec_info): Ditto.
3892 (destroy_bb_vec_info): Ditto.
3893 (vect_schedule_slp_instance): Ditto and rename strided_store to
3894 grouped_store.
3895 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
3896 vect_cost_group_size.
3897 (vect_model_store_cost): Rename use of above macros and call
3898 to vect_cost_strided_group_size.
3899 (vect_model_load_cost): Ditto.
3900 (vectorizable_store): Ditto, rename strided_store to grouped_store
3901 and calls to renamed tree-vectorizer.h functions.
3902 (vectorizable_load): Ditto.
3903 (vect_transform_stmt): Rename use of above macros and strided_store
3904 to grouped_store.
3905
3906 2012-04-10 Jan Hubicka <jh@suse.cz>
3907
3908 * cgraph.h: Remove misledaing comment on ipa-ref.h.
3909 (symtab_type): New enum.
3910 (symtab_node): New structure.
3911 (cgraph_node, varpool_node): Add symbol base type.
3912 (cgraph, varpool): New accestor functions.
3913 * cgraph.c (cgraph_create_node_1): Set symbol type.
3914 * varpool.c (varpool_node): Set symbol type.
3915
3916 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
3917 Richard Sandiford <rdsandiford@googlemail.com>
3918
3919 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
3920
3921 2012-04-10 Richard Guenther <rguenther@suse.de>
3922
3923 PR middle-end/52888
3924 * gimple-low.c (gimple_check_call_args): Properly account for
3925 compatible aggregate types.
3926
3927 2012-04-10 Richard Guenther <rguenther@suse.de>
3928
3929 * toplev.h (tree_rest_of_compilation): Remove.
3930 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3931 * cgraph.h (tree_rest_of_compilation): Declare.
3932 * tree-optimize.c (tree_rest_of_compilation): Move ...
3933 * cgraphunit.c (tree_rest_of_compilation): ... here.
3934 * cgraph.c (cgraph_add_new_function): Adjust.
3935 * Makefile.in (tree-optimize.o): Adjust.
3936 (cgraphunit.o): Likewise.
3937
3938 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
3939
3940 PR tree-optimization/52870
3941 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
3942 presumed pattern statement is within the same loop or basic block.
3943
3944 2012-04-10 Tristan Gingold <gingold@adacore.com>
3945
3946 * gengtype.c (main): Make uintptr_t a known type.
3947
3948 2012-04-10 Richard Guenther <rguenther@suse.de>
3949
3950 * tree-pass.h (tree_lowering_passes): Remove.
3951 * tree-optimize.c (tree_lowering_passes): Remove.
3952 * cgraph.c (cgraph_add_new_function): Inline relevant parts
3953 of tree_lowering_passes, avoid redundant call of early local passes.
3954 * cgraphunit.c (cgraph_lower_function): Fold into ...
3955 (cgraph_analyze_function): ... its single caller. Inline
3956 relevant parts of tree_lowering_passes.
3957
3958 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
3959
3960 PR other/52777
3961 * config/pa/pa.opt: Remove SIO and GNU_LD.
3962
3963 2012-04-09 Jan Hubicka <jh@suse.cz>
3964
3965 PR lto/52722
3966 PR lto/51765
3967 PR lto/52634
3968 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
3969 boundary, add its target too.
3970 * lto.c (add_references_to_partition): Add also aliased nodes.
3971 (add_cgraph_node_to_partition,
3972 add_varpool_node_to_partition): Work on nodes, not functions/variables;
3973 when adding alias, add also the aliased object.
3974
3975 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
3976
3977 PR target/52883
3978 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
3979 VOIDmode immediate operands.
3980 * config/i386/constraints.md (Wz): New constraint.
3981 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
3982
3983 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
3984
3985 PR target/52717
3986 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
3987 the DECL generated for the special GOT helper.
3988
3989 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
3990
3991 * config/sh/constraints.md: Update list of constraints in
3992 comment block.
3993 (Sr0): Remove unused memory constraint.
3994
3995 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3996
3997 * tree-pretty-print.h: Update comment.
3998
3999 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
4000
4001 * config/sh/sh.md: Use braced string notation where applicable.
4002 (*prefetch_i4, prefetch_m2a): Merge into ...
4003 (*prefetch): ... this new insn.
4004
4005 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
4006
4007 * config/sh/sh.h (high_life_started): Remove
4008 * config/sh/predicates.md (general_movdst_operand): Use
4009 'reload_in_progress' instead of 'high_life_started'.
4010 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
4011 divsi_inv_fp): Likewise.
4012
4013 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
4014
4015 * config/sh/sh-protos.h (prepare_move_operands): Return void
4016 instead of int.
4017 * config/sh/sh.c (prepare_move_operands): Likewise.
4018 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
4019
4020 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
4021
4022 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
4023 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
4024 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
4025 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
4026 commutative_float_operator, noncommutative_float_operator,
4027 sh_handle_pragma): Remove.
4028
4029 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
4030
4031 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
4032 Use @option markup on command-line options. Use @samp markup on
4033 literal keywords to options. Use @code markup on code fragments.
4034 Use other markup in preference to quotation marks in the text.
4035 Add markup to some passages without any.
4036
4037 2012-04-06 Mike Stump <mikestump@comcast.net>
4038
4039 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
4040
4041 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
4042
4043 * config/sh/sh.c (hi_const): Remove.
4044 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
4045 of hi_const.
4046
4047 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
4048
4049 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
4050 to bool.
4051 * config/sh/sh.c (sh_expand_t_scc): Likewise.
4052 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
4053 calling sh_expand_t_scc.
4054
4055 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
4056
4057 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
4058 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
4059 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
4060 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
4061 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
4062 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
4063 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
4064 sh2a_is_function_vector_call): Use bool as return type.
4065 (sh_pass_in_reg_p): Remove.
4066 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
4067 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
4068 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
4069 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
4070 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
4071 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
4072 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
4073 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
4074 sh_loads_bankedreg_p): Use bool as return type.
4075 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
4076 'register' modifier.
4077
4078 2012-04-06 Matt Turner <mattst88@gmail.com>
4079
4080 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
4081
4082 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
4083
4084 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
4085 of the destination isn't also a FP_REGS register.
4086
4087 2012-04-05 Teresa Johnson <tejohnson@google.com>
4088 H.J. Lu <hongjiu.lu@intel.com>
4089
4090 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
4091 * config/i386/i386.md (move immediate to memory peephole2):
4092 Add cases for HImode move when LCP stall avoidance is needed.
4093 * config/i386/i386.c (initial_ix86_tune_features): Initialize
4094 X86_TUNE_LCP_STALL entry.
4095
4096 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
4097
4098 PR target/52882
4099 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
4100 CONST_INT operands, zero-extended with AND.
4101
4102 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
4103
4104 PR target/50751
4105 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
4106 first argument instead of mode size. Move displacement calculations
4107 to ...
4108 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
4109 ... these new functions.
4110 (disp_adjust): Remove max_mov_disp field.
4111 (sh_legitimate_index_p): Use max_mov_insn_displacement and
4112 mov_insn_alignment_mask.
4113 (sh_address_cost): Use max_mov_insn_displacement.
4114
4115 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
4116
4117 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
4118 (arch_enabled): Handle new arch types.
4119 (one_cmpldi2): Add NEON support.
4120
4121 2012-04-05 Richard Guenther <rguenther@suse.de>
4122
4123 * gimple.c (walk_gimple_op): Compute val_only for the LHS
4124 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
4125 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
4126 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
4127 ... here and make static.
4128 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
4129 Remove.
4130
4131 2012-04-05 Richard Guenther <rguenther@suse.de>
4132
4133 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
4134 basic-block before removing it.
4135
4136 2012-04-05 Richard Guenther <rguenther@suse.de>
4137
4138 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
4139 version namespace as we release the freelist.
4140
4141 2012-04-05 Richard Guenther <rguenther@suse.de>
4142
4143 * tree-nrv.c (tree_nrv): Release VDEFs.
4144 * tree-sra.c (sra_modify_constructor_assign): Likewise.
4145 (sra_modify_assign): Likewise.
4146 * tree-vect-stmts.c (vect_remove_stores): Likewise.
4147 * tree-vect-loop.c (vect_transform_loop): Likewise.
4148 * tree-ssa-dom.c (optimize_stmt): Likewise.
4149 * tree-vect-slp.c (vect_schedule_slp): Likewise.
4150 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4151
4152 2012-04-05 Richard Guenther <rguenther@suse.de>
4153
4154 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
4155 cleanup.
4156 * gimple.h (gsi_remove): Adjust.
4157 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
4158 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
4159 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
4160 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
4161 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
4162 * tree-ssa-pre.c (eliminate): Likewise.
4163
4164 2012-04-04 Mike Stump <mikestump@comcast.net>
4165
4166 * doc/rtl.texi (const_double): Document as sign-extending.
4167 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
4168 * emit-rtl.c (immed_double_int_const): Refine to state the
4169 value is signed.
4170 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
4171 CONST_DOUBLE integers.
4172 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
4173 negative values are converted. Fix conversions bigger than
4174 HOST_BITS_PER_WIDE_INT.
4175 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
4176 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
4177 * explow.c (plus_constant_mode): Add.
4178 (plus_constant): Implement with plus_constant_mode.
4179 * rtl.h (plus_constant_mode): Add.
4180
4181 2012-04-04 Richard Guenther <rguenther@suse.de>
4182
4183 PR tree-optimization/52808
4184 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
4185 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
4186
4187 2012-04-04 Tristan Gingold <gingold@adacore.com>
4188
4189 * expr.c (expand_expr_real_2): Handle larger sizetype in
4190 POINTER_PLUS_EXPR.
4191
4192 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
4193
4194 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
4195 to m2a-single instead of m2e.
4196
4197 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
4198
4199 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
4200 Change type of BITOFFSET to signed. Make sure the lower bound of
4201 the computed range is non-negative by adjusting OFFSET and BITPOS.
4202 (expand_assignment): Adjust call to get_bit_range.
4203
4204 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4205
4206 * h8300/h8300.c (h8300_current_function_monitor_function_p):
4207 New function. Added to check monitor functions.
4208 (h8300_option_override): Modified to generate error/warning
4209 messages for invalid combinations of different command line
4210 options.
4211 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
4212 save EXR on stack for monitor function in case of H8S target
4213 when "-mno-exr" is passed.
4214 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
4215 Add prototype.
4216 * doc/invoke.texi: Document H8S options.
4217
4218 2012-04-03 Tristan Gingold <gingold@adacore.com>
4219
4220 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
4221 of gcc_AC_FUNC_MMAP_BLACKLIST.
4222 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
4223 * Makefile.in (aclocal_deps): Add mmap.m4.
4224 * configure: Regenerate.
4225 * aclocal.m4: Regenerate.
4226
4227 2012-04-03 Richard Guenther <rguenther@suse.de>
4228
4229 PR tree-optimization/52808
4230 * tracer.c (tail_duplicate): Return whether we have duplicated
4231 any block.
4232 (tracer): If we have duplicated any block, cleanup the CFG.
4233 * cfghooks.c (duplicate_block): If we duplicated a loop
4234 header but not its loop, destroy the loop because it now has
4235 multiple entries.
4236 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
4237 the cfg manipulation routines we are not creating a multiple
4238 entry loop.
4239
4240 2012-04-03 Tristan Gingold <gingold@adacore.com>
4241
4242 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
4243 'byte' alignment.
4244 (vms_c_common_override_options): Allow parameterless variadic
4245 functions.
4246
4247 2012-04-03 Jakub Jelinek <jakub@redhat.com>
4248
4249 PR tree-optimization/52835
4250 * tree-data-ref.c (build_rdg): Return NULL if
4251 compute_data_dependences_for_loop failed.
4252
4253 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
4254
4255 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
4256 for REAL_CST as well.
4257 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
4258 In the bitfield case, if the value is a REAL_CST, convert it first to
4259 an INTEGER_CST.
4260
4261 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
4262
4263 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
4264 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
4265 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
4266
4267 * config/i386/biarchx32.h: New.
4268
4269 2012-04-02 Anatoly Sokolov <aesok@post.ru>
4270
4271 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
4272 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4273 (arm_preferred_reload_class): New function.
4274
4275 2012-04-02 Richard Guenther <rguenther@suse.de>
4276
4277 PR tree-optimization/52756
4278 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
4279 (thread_through_loop_header): After threading through the loop latch
4280 remove the split part from the loop and clear further threading
4281 opportunities that would create a multiple entry loop.
4282
4283 2012-04-02 Richard Guenther <rguenther@suse.de>
4284
4285 PR rtl-optimization/52800
4286 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
4287 CLEANUP_CFG_CHANGED.
4288
4289 2012-04-02 Richard Guenther <rguenther@suse.de>
4290
4291 PR middle-end/52803
4292 * loop-init.c (gate_handle_loop2): Destroy loops here if
4293 we don't enter RTL loop optimizers.
4294
4295 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
4296
4297 Partially revert:
4298 2012-03-29 Richard Guenther <rguenther@suse.de>
4299
4300 * rtl.h (extended_count): Remove.
4301 * combine.c (extended_count): Remove.
4302
4303 2012-04-02 Dodji Seketeli <dodji@redhat.com>
4304
4305 PR c++/40942
4306 * pt.c (more_specialized_fn): Don't apply decay conversion to
4307 types of function parameters.
4308
4309 2012-04-02 Tristan Gingold <gingold@adacore.com>
4310
4311 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
4312 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
4313 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
4314 (ggc_pch_this_base): Use uintptr_t instead of size_t.
4315
4316 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
4317
4318 PR bootstrap/52784
4319 * config/i386/i386.c (ix86_option_override_internal): Don't
4320 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
4321
4322 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
4323
4324 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
4325 (stmt_can_make_abnormal_goto): Use it.
4326 (is_ctrl_altering_stmt): Likewise.
4327
4328 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
4329 Kaz Kojima <kkojima@gcc.gnu.org>
4330
4331 * config/sh/sh.c (push_regs): Skip banked registers when
4332 resbank attribute is specified.
4333 (sh_expand_epilogue): Likewise.
4334
4335 2012-03-30 Richard Henderson <rth@redhat.com>
4336
4337 PR debug/52727
4338 * combine-stack-adj.c (prev_active_insn_bb): New.
4339 (next_active_insn_bb): New.
4340 (force_move_args_size_note): New.
4341 (combine_stack_adjustments_for_block): Use it.
4342
4343 2012-03-30 Richard Henderson <rth@redhat.com>
4344
4345 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
4346 (ix86_expand_vector_init_duplicate): Initialize it.
4347 (expand_vec_perm_palignr): Likewise.
4348 (ix86_expand_vec_perm_const): Likewise.
4349 (ix86_vectorize_vec_perm_const_ok): Likewise.
4350 (expand_vec_perm_blend): Use it.
4351 (expand_vec_perm_vpermil): Likewise.
4352 (expand_vec_perm_pshufb): Likewise.
4353 (expand_vec_perm_1): Likewise.
4354 (expand_vec_perm_pshuflw_pshufhw): Likewise.
4355 (expand_vec_perm_interleave2): Likewise.
4356 (expand_vec_perm_vpermq_perm_1): Likewise.
4357 (expand_vec_perm_vperm2f128): Likewise.
4358 (expand_vec_perm_interleave3): Likewise.
4359 (expand_vec_perm_vperm2f128_vblend): Likewise.
4360 (expand_vec_perm_vpshufb2_vpermq): Likewise.
4361 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
4362 (expand_vec_perm_broadcast): Likewise.
4363 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
4364
4365 2012-03-30 Richard Henderson <rth@redhat.com>
4366
4367 * dwarf2out.c (gen_variable_die): Initialize off.
4368
4369 2012-03-30 Tristan Gingold <gingold@adacore.com>
4370
4371 * config/vms/vms-f.c: New file.
4372 * config/vms/t-vms (vms-f.o): New rule.
4373 * config.gcc (*-*-*vms*): Define fortran_target_objs.
4374
4375 2012-03-30 Richard Guenther <rguenther@suse.de>
4376
4377 PR tree-optimization/52754
4378 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4379 propagate arbitrary addresses into really plain dereferences.
4380
4381 2012-03-30 Richard Guenther <rguenther@suse.de>
4382
4383 PR middle-end/52772
4384 * except.c (emit_to_new_bb_before): Move loop updating ...
4385 (dw2_build_landing_pads): ... here. Use a proper block for
4386 querying the loop father.
4387
4388 2012-03-30 Tristan Gingold <gingold@adacore.com>
4389
4390 * config/ia64/ia64.c (ia64_section_type_flags): Remove
4391 common_object attribute handling.
4392 (SECTION_VMS_OVERLAY): Remove
4393 (ia64_vms_common_object_attribute): Replace abort with an assert.
4394 Do not set DECL_SECTION_NAME.
4395 (ia64_vms_output_aligned_decl_common): Handle common_object
4396 attribute.
4397 (ia64_vms_elf_asm_named_section): Remove.
4398 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
4399
4400 2012-03-30 Richard Guenther <rguenther@suse.de>
4401
4402 PR middle-end/52786
4403 * double-int.c (rshift_double): Remove not needed cast.
4404
4405 2012-03-30 Richard Guenther <rguenther@suse.de>
4406
4407 * tree-affine.h (print_aff): Remove.
4408 * tree-affine.c (print_aff): Make static.
4409 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
4410 (get_references_in_stmt): Likewise.
4411 (print_direction_vector): Likewise.
4412 (print_dir_vectors): Likewise.
4413 (print_dist_vectors): Likewise.
4414 (dump_subscript): Likewise.
4415 (dump_ddrs): Likewise.
4416 (dump_dist_dir_vectors): Likewise.
4417 (dump_data_references): Likewise.
4418 (dump_data_dependence_relation): Likewise.
4419 (dump_data_dependence_direction): Likewise.
4420 (dump_rdg_vertex): Likewise.
4421 (dump_rdg_component): Likewise.
4422 (debug_ddrs): Declare.
4423 (struct data_ref_loc_d): Move ...
4424 * tree-data-ref.c (struct data_ref_loc_d): ... here.
4425 (get_references_in_stmt): Make static.
4426 (dump_data_references): Likewise.
4427 (dump_subscript): Likewise.
4428 (print_direction_vector): Likewise.
4429 (print_dir_vectors): Likewise.
4430 (print_dist_vectors): Likewise.
4431 (dump_data_dependence_relation): Likewise.
4432 (dump_dist_dir_vectors): Likewise.
4433 (dump_ddrs): Likewise.
4434 (dump_rdg_vertex): Likewise.
4435 (dump_rdg_component): Likewise.
4436 (debug_ddrs): New function.
4437 (access_matrix_get_index_for_parameter): Remove.
4438
4439 2012-03-30 Tristan Gingold <gingold@adacore.com>
4440
4441 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
4442 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
4443 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
4444 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
4445 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
4446 (vms_patch_builtins): Handle new flags
4447 * config/vms/vms-crtlmap.map: Completed using nm on
4448 c and math system libraries.
4449 * config/vms/make-crtlmap.awk: Handle any number of flags.
4450
4451 2012-03-30 Martin Jambor <mjambor@suse.cz>
4452
4453 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
4454 is a builtin_stack_save in a dominating BB.
4455
4456 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
4457
4458 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
4459 crossing 128bit lane boundary.
4460
4461 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
4462
4463 * ira-color.c (setup_left_conflict_sizes_p): Process all
4464 conflicting objects.
4465
4466 2012-03-29 Jakub Jelinek <jakub@redhat.com>
4467
4468 PR tree-optimization/52760
4469 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
4470 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
4471
4472 2012-03-29 Richard Guenther <rguenther@suse.de>
4473
4474 * cgraph.h (cgraph_materialize_all_clones): Remove.
4475 (reset_inline_failed): Likewise.
4476 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
4477 * cgraphbuild.c (reset_inline_failed): Remove.
4478 * rtl.h (cse_main): Remove.
4479 (extended_count): Likewise.
4480 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
4481 (cse_main): Make static.
4482 * combine.c (extended_count): Remove.
4483 (dump_combine_stats): Mark as DEBUG_FUNCTION.
4484 * basic-block.h (reorder_basic_blocks): Remove.
4485 * bb-reorder.c (reorder_basic_blocks): Make static.
4486 * Makefile.in (dse.o): Remove dse.h dependency.
4487 * dse.h: Remove.
4488 * dse.c (gate_dse): Remove.
4489 (clear_alias_mode_eq): Likewise.
4490 (clear_alias_mode_hash): Likewise.
4491 (dse_record_singleton_alias_set): Likewise.
4492 (dse_invalidate_singleton_alias_set): Likewise.
4493
4494 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
4495
4496 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
4497 crtbegin_so%O%s for -shared.
4498 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
4499
4500 2012-03-29 Richard Guenther <rguenther@suse.de>
4501
4502 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
4503 (add_to_value): Remove.
4504 (print_value_expressions): Likewise.
4505 * tree-ssa-pre.c (add_to_value): Make static.
4506 (print_value_expressions): Likewise.
4507 * gimple.h (gimple_adjust_this_by_delta): Remove.
4508 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
4509
4510 2012-03-29 Richard Guenther <rguenther@suse.de>
4511
4512 PR middle-end/50708
4513 * double-int.h (rshift_double): Remove.
4514 * double-int.c (lshift_double): Use absu_hwi to make count positive.
4515 (rshift_double): Make static, take unsigned count argument,
4516 remove handling of negative count argument.
4517 (double_int_rshift): Dispatch to lshift_double.
4518
4519 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
4520
4521 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
4522 OPTION_MASK_ABI_64.
4523
4524 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
4525 (SPEC_X32): Likewise.
4526 (MULTILIB_DEFAULTS): Likewise.
4527
4528 * config/i386/i386.c (isa_opts): Remove -m64.
4529 (ix86_target_string): Properly handle -m32/-m64/-mx32.
4530 (ix86_option_override_internal): Properly
4531 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
4532 handle -m32, -m64 and -mx32.
4533
4534 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
4535 with OPTION_ABI_X32. Moved after TARGET_LP64.
4536 (TARGET_LP64): Changed to OPTION_ABI_64.
4537
4538 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
4539 (mx32): Replace ISA_X32 with ABI_X32.
4540
4541 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
4542
4543 * tree.c (tree_size) <VECTOR_CST>: New case.
4544
4545 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
4546
4547 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
4548 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
4549
4550 2012-03-28 Jakub Jelinek <jakub@redhat.com>
4551
4552 PR middle-end/52691
4553 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
4554 __builtin_va_start to __builtin_next_arg if the latter is
4555 builtin_decl_explicit_p rather than when it is not.
4556
4557 PR middle-end/52750
4558 * tree-vect-generic.c (vector_element): Perform multiplication
4559 for pos in bitsizetype type instead of idx type.
4560
4561 2012-03-28 Richard Guenther <rguenther@suse.de>
4562
4563 * loop-init.c (loop_optimizer_init): If loops are preserved
4564 perform incremental initialization of required loop features.
4565 (loop_optimizer_finalize): If loops are to be preserved only
4566 clean up optional loop features.
4567 (rtl_loop_done): Forcefully free loops here.
4568 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
4569 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
4570 to existing loops.
4571 (construct_init_block): Likewise.
4572 (construct_exit_block): Likewise.
4573 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
4574 the CFG after expanding.
4575 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
4576 If we needed to calculate them, free them afterwards.
4577 * tree-pass.h (PROP_loops): New define.
4578 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
4579 * basic-block.h (CLEANUP_CFG_CHANGED): New.
4580 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
4581 (cleanup_cfg): If we did something and have loops around, fix them up.
4582 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
4583 with CLEANUP_CFG_CHANGED.
4584 * cfghooks.c (merge_blocks): If we merge a loop header into
4585 its predecessor, update the loop structure.
4586 (duplicate_block): If we copy a loop latch, adjust loop state
4587 to note we may have multiple latches.
4588 (delete_basic_block): Mark loops for fixup if we remove a loop.
4589 * cfganal.c (forwarder_block_p): Protect loop latches, headers
4590 and preheaders.
4591 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
4592 (cfg_layout_can_merge_blocks_p): Likewise.
4593 * cprop.c (bypass_block): If we create a loop with multiple
4594 entries, mark it for removal.
4595 * except.c (emit_to_new_bb_before): Add the new basic-block
4596 to existing loops.
4597 * tree-eh.c (lower_resx): Likewise.
4598 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
4599 (expand_omp_taskreg): Likewise.
4600 * tree-inline.c (initialize_cfun): Likewise.
4601 * tree-mudflap.c (add_bb_to_loop): Prototype.
4602 (mf_build_check_statement_for): Properly add new basic-blocks
4603 to existing loops.
4604 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
4605 if we remove a loop.
4606 (thread_through_loop_header): Likewise.
4607 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
4608 new basic-blocks to existing loops.
4609 (expand_transaction): Likewise.
4610 * Makefile.in (except.o): Add $(CFGLOOP_H).
4611 (expr.o): Likewise.
4612 (cgraph.o): Likewise.
4613 (cprop.o): Likewise.
4614 (cfgexpand.o): Likewise.
4615 (cfganal.o): Likewise.
4616 (trans-mem.o): Likewise.
4617 (tree-eh.o): Likewise.
4618
4619 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
4620
4621 PR target/52692
4622 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
4623 (avr_builtin_decl): New static function.
4624 (struct avr_builtin_description, avr_bdesc): Move up.
4625 Add GTY marker. Add field fndecl. Remove redundant field id.
4626 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
4627 (avr_expand_builtin): Code cleanup because .id is removed.
4628
4629 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
4630
4631 PR target/52737
4632 * config.gcc (tm_file): Remove avr/multilib.h.
4633
4634 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
4635
4636 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
4637 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
4638 * config/avr/t-avr: Remove generation of multilib.h.
4639 * config/avr/t-multilib: Regenerate.
4640 * config/avr/multilib.h: Remove.
4641 * config/avr/avr.opt (-msp8): New option.
4642 (avr_sp8): New variable.
4643 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
4644 * config/avr/avr.h (AVR_HAVE_SPH): New define.
4645 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
4646 (avr_device_to_sp8): New prototype.
4647 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
4648 (DRIVER_SELF_SPECS): New define.
4649 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
4650 __AVR_SP8__, __AVR_HAVE_SPH__.
4651 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
4652 AVR_HAVE_8BIT_SP to decide if SP_H is present.
4653 (avr_file_start): Ditto.
4654
4655 2012-03-28 Jakub Jelinek <jakub@redhat.com>
4656
4657 PR target/52736
4658 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
4659 instead of 8 in adjust_address.
4660
4661 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
4662
4663 PR middle-end/51893
4664 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
4665 targets.
4666
4667 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
4668
4669 PR target/50751
4670 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
4671 Rearrange conditional logic. Move displacement address calculations
4672 to ...
4673 (sh_find_mov_disp_adjust): ... this new function.
4674
4675 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
4676
4677 * config/arm/arm.opt (mapcs): Remove MaskExists.
4678 * config/cris/linux.opt (mno-gotplt): Likewise.
4679 * config/i386/i386.opt (mhard-float): Likewise.
4680 (msse4): Likewise.
4681 (mno-sse4): Likewise.
4682 * config/m68k/m68k.opt (mhard-float): Likewise.
4683 * config/mep/mep.op (mcop32): Likewise.
4684 * config/pa/pa-hpux.opt (msio): Likewise.
4685 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
4686 * config/picochip/picochip.opt (mlittle): Likewise.
4687 * config/sh/sh.opt (mrenesas): Likewise.
4688 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
4689 * config/sparc/sparc.opt (mhard-float): Likewise.
4690 * config/v850/v850.opt (mv850es): Likewise.
4691 * config/vax/vax.opt (mg-float): Likewise.
4692
4693 2012-03-27 Martin Jambor <mjambor@suse.cz>
4694
4695 PR middle-end/52693
4696 * tree-sra.c (sra_modify_assign): Do not call
4697 load_assign_lhs_subreplacements when working with an unscalarizable
4698 region.
4699
4700 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
4701
4702 PR target/52698
4703 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
4704 New prototype.
4705 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
4706 * config/i386/i386.c: Include reload.h.
4707 (ix86_legitimize_reload_address): New function.
4708
4709 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
4710
4711 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
4712 hasn't been allocated. Define a target macro for Mask and
4713 InverseMask if it hasn't been defined. Remove MaskExists handling.
4714
4715 * doc/options.texi: Remove MaskExists.
4716
4717 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
4718
4719 PR target/52667
4720 * config/sh/sh.c (find_barrier): Add equality check of last_got
4721 to avoid going above orig insn. Update comments.
4722
4723 2012-03-27 Richard Guenther <rguenther@suse.de>
4724
4725 PR middle-end/52720
4726 * fold-const.c (try_move_mult_to_index): Handle &x.array more
4727 explicitely.
4728
4729 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
4730
4731 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
4732 of a unit before computing the offset in units.
4733 * expr.c (get_bit_range): Return the null range if the enclosing record
4734 is part of a larger bit field.
4735
4736 2012-03-27 Tristan Gingold <gingold@adacore.com>
4737
4738 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
4739 * config/ia64/ia64.md: Remove mode in template.
4740 Sign extend operand in expand_simple_binop.
4741 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
4742 CASE_VECTOR_MODE instead of TARGET_ILP32.
4743 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
4744
4745 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
4746
4747 * varasm.c (assemble_external): #if 0 out the new assert from the
4748 previous commit, it breaks the Java and Go front ends.
4749
4750 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
4751
4752 * toplev.c (check_global_declaration_1): Do not call assemble_external.
4753 * expr.c (emit_block_move_libcall_fn): Likewise.
4754 (clear_storage_libcall_fn): Likewise.
4755 (expand_expr_addr_expr_1): Likewise.
4756 (expand_expr_real_1): Likewise.
4757 * calls.c (rtx_for_function_call): Likewise.
4758
4759 * varasm.c (assemble_external): Assert this function is only called
4760 during or after expanding to RTL.
4761
4762 2012-03-26 Martin Jambor <mjambor@suse.cz>
4763
4764 PR tree-optimization/50052
4765 * tree-sra.c (tree_non_aligned_mem_p): Removed.
4766 (tree_non_aligned_mem_for_access_p): Likewise.
4767 (build_accesses_from_assign): Removed strict alignment requirements
4768 checks.
4769 (access_precludes_ipa_sra_p): Likewise.
4770
4771 2012-03-26 Richard Guenther <rguenther@suse.de>
4772
4773 PR tree-optimization/52701
4774 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
4775 compute and set the evolution part of PHI nodes.
4776
4777 2012-03-26 Richard Guenther <rguenther@suse.de>
4778
4779 PR tree-optimization/52721
4780 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
4781
4782 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
4783
4784 PR tree-optimization/52686
4785 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4786 WIDEN_LSHIFT_EXPR.
4787
4788 2012-03-26 Tristan Gingold <gingold@adacore.com>
4789
4790 * config/alpha/vms.h (LINK_SPEC): Simplify.
4791 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
4792 (NAME__MAIN, SYMBOL__MAIN): Remove.
4793 (VMS_DEBUG_MAIN_POINTER): Remove.
4794 * config/ia64/vms.h: Likewise.
4795 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
4796 code to vms.c. Call vms_start_function.
4797 * config/ia64/ia64.c (ia64_start_function): Likewise.
4798 * config/vms/vms-protos.h (vms_start_function): Declare.
4799 * config/vms/vms.c (vms_start_function): New function.
4800 * config/vms/vms.h (MATH_LIBRARY): Define.
4801 (VMS_DEBUG_MAIN_POINTER): Define.
4802
4803 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
4804
4805 PR rtl-optimization/52629
4806 * reload1.c (count_pseudo): Short-circuit common case.
4807 (count_spilled_pseudo): Return early for pseudos without hard regs.
4808 Assert that the pseudo has got a hard reg before manipulating it.
4809
4810 2012-03-24 Jan Hubicka <jh@suse.cz>
4811
4812 PR lto/51663
4813 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
4814 (decide_is_variable_needed): Do not handle toplevel reorder here.
4815 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
4816 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
4817 even at -O0.
4818
4819 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
4820
4821 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
4822 and str_bitsize instead of more convoluted expressions.
4823
4824 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
4825
4826 PR target/52610
4827 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
4828
4829 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
4830
4831 PR target/52656
4832 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
4833
4834 2012-03-23 Martin Jambor <mjambor@suse.cz>
4835
4836 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
4837
4838 2012-03-23 Richard Guenther <rguenther@suse.de>
4839
4840 PR tree-optimization/52678
4841 * tree-vectorizer.h (struct _stmt_vec_info): Add
4842 loop_phi_evolution_part member.
4843 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
4844 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
4845 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
4846 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4847 Use the cached evolution part and the PHI nodes value from
4848 the loop preheader edge instead of re-analyzing the evolution.
4849
4850 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
4851
4852 * config/mips/mips-tables.opt: Update.
4853 * config/mips/mips.md (processor): Add xlp.
4854 * config/mips/mips-cpus.def: Add xlp.
4855 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
4856 5KF for now.
4857 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
4858 * doc/invoke.texi: Mention XLP.
4859
4860 2012-03-22 Jakub Jelinek <jakub@redhat.com>
4861
4862 PR middle-end/52547
4863 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
4864 on any new_local_var_chain vars declared during recursing on
4865 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
4866
4867 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
4868
4869 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
4870 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
4871 (ASM_OUTPUT_LOCAL): Ditto.
4872 (ASM_OUTPUT_COMMON): Remove.
4873 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
4874 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
4875
4876 2012-03-22 Jan Hubicka <jh@suse.cz>
4877
4878 PR middle-end/51737
4879 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
4880 parameter.
4881 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
4882 * ipa-inline-transform.c (save_inline_function_body): Remove
4883 copied clone if needed.
4884 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
4885
4886 2012-03-22 Richard Guenther <rguenther@suse.de>
4887
4888 PR middle-end/52666
4889 * fold-const.c (fold_ternary_loc): Fix typo.
4890
4891 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
4892
4893 PR target/52496
4894 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
4895 (unspecv): Add UNSPECV_MEMORY_BARRIER.
4896 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
4897 (delay_cycles_1, delay_cycles_2): Ditto.
4898 (delay_cycles_3, delay_cycles_4): Ditto.
4899 (nopv, *nopv): Ditto.
4900 (sleep, *sleep): Ditto.
4901 (wdr, *wdr): Ditto.
4902
4903 2012-03-22 Richard Guenther <rguenther@suse.de>
4904
4905 PR tree-optimization/52548
4906 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
4907 because of clobbers.
4908 (prune_clobbered_mems): New function.
4909 (compute_antic_aux): Use it to prune ANTIC_OUT.
4910 (compute_partial_antic_aux): Use it to prune PA_IN.
4911 (compute_avail): Only insert expressions into EXP_GEN that are not
4912 invalidated when translated up to the beginning of the block.
4913
4914 2012-03-22 Richard Guenther <rguenther@suse.de>
4915
4916 PR tree-optimization/52638
4917 * tree-vect-stmts.c (vect_init_vector_1): New function, split
4918 out from ...
4919 (vect_init_vector): ... here. Handle scalar vector inits.
4920 (vect_get_vec_def_for_operand): Adjust.
4921 (vectorizable_load): Likewise.
4922
4923 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
4924
4925 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
4926 (alpha*-*-freebsd*): Ditto.
4927 (alpha*-*-netbsd*): Ditto.
4928 (alpha*-*-openbsd*): Ditto.
4929 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
4930 (DWARF2_DEBUGGING_INFO): Remove.
4931 (PREFERRED_DEBUGGING_TYPE): Remove.
4932 (ASM_FINAL_SPEC): Remove.
4933 (IDENT_ASM_OP): Remove.
4934 (ASM_OUTPUT_IDENT): Remove.
4935 (SKIP_ASM_OP): Remove.
4936 (ASM_OUTPUT_SKIP): Remove.
4937 (ALIGN_ASM_OP): Remove.
4938 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
4939 (ASM_OUTPUT_CASE_LABEL): Remove.
4940 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
4941 (COMMON_ASM_OP): Remove.
4942 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
4943 (ASCII_DATA_ASM_OP): Remove.
4944 (READONLY_DATA_SECTION_ASM_OP): Remove.
4945 (INIT_SECTION_ASM_OP): Remove.
4946 (FINI_SECTION_ASM_OP): Remove.
4947 (ASM_SECTION_START_OP): Remove.
4948 (ASM_OUTPUT_SECTION_START_FILE): Remove.
4949 (TARGET_ASM_NAMED_SECTION): Remove.
4950 (TARGET_ASM_SELECT_SECTION): Remove.
4951 (MAKE_DECL_ONE_ONLY): Remove.
4952 (TYPE_ASM_OP): Remove.
4953 (SIZE_ASM_OP): Remove.
4954 (ASM_WEAKEN_LABEL): Remove.
4955 (TYPE_OPERAND_FMT): Remove.
4956 (ASM_DECLARE_RESULT): Remove.
4957 (ASM_DECLARE_OBJECT_NAME): Remove.
4958 (ASM_FINISH_DECLARE_OBJECT): Remove.
4959 (ELF_ASCII_ESCAPES): Remove.
4960 (ELF_STRING_LIMIT): Remove.
4961 (STRING_ASM_OP): Remove.
4962 (ASM_OUTPUT_EXTERNAL): Remove.
4963 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
4964 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
4965 before define.
4966 (ASM_DECLARE_FUNCTION_NAME): Ditto.
4967 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
4968 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
4969 (ASM_OUTPUT_SKIP): Ditto.
4970 (READONLY_DATA_SECTION_ASM_OP): Remove.
4971 (USER_LABEL_PREFIX): Remove.
4972 (ASM_OUTPUT_ASCII): Remove.
4973 (ASM_OUTPUT_CASE_LABEL): Remove.
4974 (NO_DOLLAR_IN_LABEL): Undefine.
4975
4976 2012-03-22 Richard Guenther <rguenther@suse.de>
4977
4978 PR tree-optimization/52459
4979 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
4980 PHI insertion for calls.
4981
4982 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
4983
4984 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
4985 find_sets_in_insn, canonicalize_insn): Split out from ...
4986 (cse_insn): ... here.
4987 (invalidate_from_clobbers): Take an insn instead of the pattern.
4988
4989 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
4990
4991 PR target/52479
4992 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
4993 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
4994 * config/sh/sh.md (sindf2, cosdf2): Remove.
4995
4996 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
4997
4998 PR target/52642
4999 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
5000 prologue for unwinder and profiler.
5001
5002 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
5003
5004 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
5005 Introduce emul_name to select the right linker emulation for
5006 powerpc64-*-freebsd*.
5007 * configure: Regenerate.
5008 * config.gcc: Add bits to support powerpc64-*-freebsd*.
5009 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
5010 * config/rs6000/freebsd64.h: New file.
5011 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
5012 POWERPC_FREEBSD.
5013 (rs6000_savres_strategy): Likewise.
5014 (rs6000_savres_routine_name): Likewise.
5015 (rs6000_elf_file_end): Likewise.
5016 * config/rs6000/t-freebsd64: New file.
5017 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
5018 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
5019
5020 * config/rs6000/freebsd64.h: Remove duplicated entries from last
5021 commit.
5022 * config/rs6000/t-freebsd64: Likewise.
5023
5024 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
5025
5026 PR rtl-optimization/52543
5027 PR target/52461
5028 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
5029 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
5030 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
5031 (avr_load_libgcc_p): Restrict to __flash loads.
5032 (avr_out_lpm): Only handle 1-byte loads from __flash.
5033 (avr_load_lpm): New function.
5034 (avr_find_unused_d_reg): Remove.
5035 (avr_out_lpm_no_lpmx): Remove.
5036 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
5037 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
5038 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
5039 (load_<mode>, load_<mode>_clobber): New insns.
5040 (mov<mode>): For multi-byte move from non-generic
5041 16-bit address spaces: Expand to load_<mode> resp.
5042 load_<mode>_clobber.
5043 (load<mode>_libgcc): Remove expander.
5044 (split-lpmx): Remove split.
5045
5046 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
5047
5048 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
5049 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
5050 All callers changed.
5051 (Fixed_core_reg): New feature.
5052 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
5053 disassembly.
5054 * neon-testgen.ml: Handle Fixed_core_reg.
5055
5056 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
5057
5058 * config/arm/arm.c (thumb2_reorg): Add complete support
5059 for 16-bit instructions.
5060 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
5061
5062 2012-03-21 Richard Guenther <rguenther@suse.de>
5063
5064 PR tree-optimizer/52636
5065 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
5066 to the appropriate type.
5067
5068 2012-03-21 Richard Guenther <rguenther@suse.de>
5069
5070 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
5071 dependencies.
5072 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
5073 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
5074 * passes.c (init_optimization_passes): Remove pass_init_function,
5075 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
5076 * tree-pass.h (pass_init_function): Remove.
5077 (pass_jump): Remove.
5078 (pass_initial_value_sets): Remove.
5079 (pass_unshare_all_rtl): Remove.
5080 * integrate.c (pass_initial_value_sets): Remove.
5081 * emit-rtl.c (pass_unshare_all_rtl): Remove.
5082 * tree.h (init_function_for_compilation): Remove.
5083 * function.c (init_function_for_compilation): Remove.
5084 (pass_init_function): Remove.
5085 * cfgcleanup.c (rest_of_handle_jump): Remove.
5086 (pass_jump): Remove.
5087
5088 2012-03-20 Jason Merrill <jason@redhat.com>
5089
5090 * tree-streamer-in.c (streamer_alloc_tree): Call
5091 ggc_alloc_zone_cleared_tree_node instead of
5092 ggc_alloc_zone_cleared_tree_node_stat.
5093
5094 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
5095
5096 * doc/extend.texi (Template Instantiation): Remove anachronisms.
5097
5098 2012-03-20 Jakub Jelinek <jakub@redhat.com>
5099
5100 PR target/52607
5101 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
5102 (ix86_expand_vec_perm_const_1): Call it.
5103
5104 * config/i386/i386.c (vselect_insn): New variable.
5105 (init_vselect_insn): New function.
5106 (expand_vselect, expand_vselect_insn): Add testing_p argument.
5107 Call init_vselect_insn if vselect_insn is NULL. Adjust
5108 PATTERN (vselect_insn), instead of creating a new insn each time,
5109 only emit a copy of it if not testing and recog has been successful.
5110 (expand_vec_perm_pshufb, expand_vec_perm_1,
5111 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
5112 callers.
5113
5114 PR target/52607
5115 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
5116 ("enabled" attribute): Handle avx2 and noavx2 isas.
5117 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
5118 New insns.
5119 (vec_dup<mode>): Add avx2 =x,x alternative.
5120 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
5121 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
5122 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
5123 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
5124 for V8SFmode.
5125 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
5126 if possible, handle also V8SFmode.
5127
5128 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
5129
5130 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
5131 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
5132 reg_or_zero_operand predicate.
5133 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
5134
5135 2012-03-20 Jakub Jelinek <jakub@redhat.com>
5136
5137 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
5138 If operand isn't UNSPEC, return 0.
5139
5140 2012-03-20 Richard Guenther <rguenther@suse.de>
5141
5142 * tree-pass.h (pass_rtl_eh): Remove.
5143 * except.c (gate_handle_eh): Likewise.
5144 (rest_of_handle_eh): Likewise.
5145 (pass_rtl_eh): Likewise.
5146 (finish_eh_generation): Export.
5147 * except.h (finish_eh_generation): Declare.
5148 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
5149 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
5150 after expanding stack alignment. Instead of compacting blocks
5151 call cleanup_cfg.
5152
5153 2012-03-20 Richard Guenther <rguenther@suse.de>
5154
5155 * stor-layout.c (finish_bitfield_representative): Fallback
5156 to conservative maximum size if the padding up to the next
5157 field cannot be computed as a constant.
5158 (finish_bitfield_layout): If we cannot compute the distance
5159 between the start of the bitfield representative and the
5160 bitfield member start a new representative.
5161 * expr.c (get_bit_range): The distance between the start of
5162 the bitfield representative and the bitfield member is zero
5163 if the field offsets are not constants.
5164
5165 2012-03-20 Tristan Gingold <gingold@adacore.com>
5166
5167 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
5168 convert in lowercase.
5169 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
5170 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
5171 * stor-layout.c (sizetype_tab): Adjust.
5172 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
5173 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
5174 instead of type_kind_last.
5175 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
5176 instead of size_int_kind.
5177 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
5178 * doc/tm.texi: Regenerate.
5179 * defaults.h (SIZETYPE): Provide a default value.
5180 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
5181 (SIZETYPE): Define.
5182
5183 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
5184
5185 * config/sh/sh.md: Use braced string notation where applicable.
5186
5187 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5188
5189 * config/i386/i386.md (allocate_stack): Simplify.
5190
5191 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5192
5193 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
5194 copy_to_mode_reg (Pmode, ...).
5195 (expand_builtin_frame_address): Ditto.
5196 * expr.c (emit_block_move_via_libcall): Ditto.
5197 (set_storage_via_libcall): Ditto.
5198
5199 * config/i386/i386.c (ix86_expand_movmem): Ditto.
5200 (ix86_expand_setmem): Ditto.
5201 (ix86_trampoline_init): DItto.
5202 * config/i386/i386.md (cmpstrnsi): Ditto.
5203
5204 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
5205
5206 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
5207 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
5208 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
5209 (SH Options): Likewise.
5210
5211 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5212
5213 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
5214 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
5215 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
5216 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
5217 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
5218
5219 Revert:
5220 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5221
5222 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
5223 * config/i386/i386.c (ix86_decompose_address): Use
5224 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
5225 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
5226 thread pointer to a register.
5227
5228 Revert:
5229 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
5230
5231 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
5232 if Pmode != word_mode.
5233 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
5234 Pmode == SImode for TARGET_X32.
5235
5236 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
5237 (tls_initial_exec_x32): Likewise.
5238
5239 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
5240
5241 PR target/50751
5242 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
5243 DISP_ADDR_OFFSET): New macros.
5244 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
5245 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
5246 (sh_legitimize_address): Add QImode displacement handling.
5247 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
5248 vector subregs.
5249 (sh_secondary_reload): Add QImode displacement handling.
5250 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
5251 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
5252 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
5253 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
5254 to register operands only.
5255 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
5256 (extendqihi2): Change insn to expander.
5257 (*extendqihi2_compact_reg): New insn.
5258 (movqi_i, movqi): Replace with ...
5259 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
5260 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
5261 Add new peepholes for QImode displacement addressing.
5262
5263 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5264
5265 PR c++/14710
5266 * doc/invoke.texi: Document -Wuseless-cast.
5267
5268 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
5269
5270 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
5271 * tree.h (handled_component_p): Reorder cases.
5272 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
5273 not initialize unsignedp.
5274 (loc_list_from_tree): Likewise.
5275 (fortran_common): Likewise.
5276 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5277
5278 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5279
5280 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
5281 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
5282 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
5283 (ix86_split_long_move): Ditto.
5284 (legitimize_tls_address): Use ix86_gen_sub3.
5285 (construct_plt_address): Assert that Pmode == DImode.
5286
5287 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
5288
5289 * config/i386/i386.md: Remove empty predicates and/or constraints.
5290 * config/i386/sync.md: Ditto.
5291 * config/i386/sse.md: Ditto.
5292 * config/i386/mmx.md: Ditto.
5293 * config/i386/pentium.md: Ditto.
5294 * config/i386/athlon.md: Ditto.
5295
5296 2012-03-16 Richard Guenther <rguenther@suse.de>
5297
5298 PR tree-optimization/52603
5299 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
5300 comment.
5301
5302 Revert
5303 2012-03-14 Richard Guenther <rguenther@suse.de>
5304
5305 PR tree-optimization/52571
5306 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5307 flag_section_anchors check ...
5308 (vect_can_force_dr_alignment_p): ... here.
5309
5310 2012-03-16 Martin Jambor <mjambor@suse.cz>
5311
5312 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
5313 memory through MEM_REFs by calling extract_bit_field.
5314
5315 2012-03-16 Richard Guenther <rguenther@suse.de>
5316
5317 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
5318 and REFERENCE_TYPE interpretations.
5319 (can_native_interpret_type_p): New function.
5320 (fold_ternary_loc): Use native encode/interpret to fold
5321 BIT_FIELD_REFs of constants.
5322
5323 2012-03-16 Richard Guenther <rguenther@suse.de>
5324
5325 PR middle-end/52584
5326 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
5327 of vector constants and constructors.
5328
5329 2012-03-16 Richard Guenther <rguenther@suse.de>
5330
5331 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
5332 VIEW_CONVERT_EXPR to convert constants.
5333 (vect_is_simple_use): Treat all constants as vec_constant_def.
5334
5335 2012-03-16 Richard Guenther <rguenther@suse.de>
5336 Kai Tietz <ktietz@redhat.com>
5337
5338 PR middle-end/48814
5339 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
5340 side-effects completely in the pre-queue and use a temporary
5341 for the result.
5342
5343 2012-03-16 Richard Guenther <rguenther@suse.de>
5344
5345 * stor-layout.c (finish_bitfield_representative): Fall back
5346 to the conservative maximum size if we cannot compute the
5347 size of the tail padding.
5348
5349 2012-03-16 Tristan Gingold <gingold@adacore.com>
5350
5351 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
5352 __CRTL_VER and __VMS_VER.
5353 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
5354 and vms_c_get_vms_ver.
5355 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
5356 functions.
5357 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
5358 (VMS_DEFAULT_VMS_VER): Define.
5359 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
5360 (VMS_DEFAULT_VMS_VER): Define.
5361
5362 2012-03-16 Richard Guenther <rguenther@suse.de>
5363
5364 * tree-vect-loop.c (get_initial_def_for_induction): Use
5365 build_constructor directly.
5366 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
5367 build_vector_from_val.
5368 * tree.c (build_vector_from_val): Avoid creating a constructor
5369 first when we want a constant vector.
5370
5371 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5372
5373 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
5374
5375 2012-03-16 Richard Guenther <rguenther@suse.de>
5376
5377 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
5378 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
5379 (struct tree_vector): Remove elements member, add variable size
5380 elts array member.
5381 (build_vector_stat): Declare.
5382 (build_vector): Define in terms of build_vector_stat.
5383 * tree.c (build_vector): Rename to ...
5384 (build_vector_stat): ... this. Take array of trees as parameter.
5385 (build_vector_from_ctor): Adjust.
5386 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
5387 initializer_zerop): Adjust.
5388 * cfgexpand.c (expand_debug_expr): Likewise.
5389 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
5390 const_vector_from_tree): Likewise.
5391 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
5392 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
5393 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
5394 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
5395 (lto_input_ts_vector_tree_pointers): Adjust.
5396 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
5397 (write_ts_vector_tree_pointers): Adjust.
5398 * varasm.c (const_hash_1, compare_constant, copy_constant,
5399 output_constant): Adjust.
5400 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
5401 * print-tree.c (print_node): Adjust.
5402 * tree-pretty-print.c (dump_generic_node): Adjust.
5403 * tree-vect-generic.c (uniform_vector_p, vector_element,
5404 lower_vec_perm): Adjust.
5405 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
5406 * tree-vect-slp.c (vect_get_constant_vectors,
5407 vect_transform_slp_perm_load): Adjust.
5408 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
5409 * expmed.c (make_tree): Adjust.
5410 * config/i386/i386.c (ix86_expand_builtin): Adjust.
5411 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
5412 and implementation.
5413 (sparc_fold_builtin): Adjust.
5414
5415 2012-03-16 Tristan Gingold <gingold@adacore.com>
5416
5417 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
5418 * config/vms/vms-stdint.h: New file.
5419
5420 2012-03-16 Tristan Gingold <gingold@adacore.com>
5421
5422 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
5423 (ia64-hp-*vms*): Replaced by ...
5424 (*-*-*vms*): ... This new entry.
5425
5426 2012-03-15 Jakub Jelinek <jakub@redhat.com>
5427
5428 PR target/52568
5429 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
5430 (ix86_expand_vec_perm_const_1): Use it.
5431
5432 PR target/52568
5433 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
5434 (avx2_permv4df): Remove.
5435 (avx2_permv4di): Macroize into...
5436 (avx2_perm<mode>): ... this using VI8F_256 iterator.
5437 (avx2_permv4di_1): Macroize into...
5438 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
5439
5440 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5441
5442 * combine.c (apply_distributive_law): Do not distribute SUBREG.
5443
5444 2012-03-15 Ira Rosen <irar@il.ibm.com>
5445 Ulrich Weigand <ulrich.weigand@linaro.org>
5446
5447 * tree-vect-patterns.c (widened_name_p): Rename to ...
5448 (type_conversion_p): ... this. Add new argument to determine
5449 if it's a promotion or demotion operation. Check for
5450 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
5451 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
5452 widened_name_p.
5453 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
5454 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
5455 Likewise.
5456 (vect_recog_mixed_size_cond_pattern): Likewise and allow
5457 non-constant then and else clauses.
5458
5459 2012-03-15 Ira Rosen <irar@il.ibm.com>
5460 Ulrich Weigand <ulrich.weigand@linaro.org>
5461
5462 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
5463 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
5464 vect_pattern_recog.
5465 * tree-vect-patterns.c (widened_name_p): Pass basic block
5466 info to vect_is_simple_use.
5467 (vect_recog_dot_prod_pattern): Fail for basic blocks.
5468 (vect_recog_widen_sum_pattern): Likewise.
5469 (vect_handle_widen_op_by_const): Support basic blocks.
5470 (vect_operation_fits_smaller_type,
5471 vect_recog_over_widening_pattern): Likewise.
5472 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
5473 Update call to vect_is_simple_use.
5474 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
5475 Add printing.
5476 (check_bool_pattern): Add an argument, update call to
5477 vect_is_simple_use and the recursive calls.
5478 (vect_recog_bool_pattern): Update relevant function calls.
5479 Add printing.
5480 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
5481 (vect_pattern_recog_1): Check for reduction only in loops.
5482 (vect_pattern_recog): Add new argument. Support basic blocks.
5483 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
5484 info to vect_is_simple_use_1.
5485 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
5486 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
5487
5488 2012-03-15 Jakub Jelinek <jakub@redhat.com>
5489 Andrew Pinski <apinski@cavium.com>
5490
5491 PR middle-end/52592
5492 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
5493 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
5494 calls instead of __builtin_ir{int,ound}*.
5495
5496 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5497
5498 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
5499 documentation.
5500
5501 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5502
5503 * config.gcc (target_type_format_char): New. Document it. Set it for
5504 arm*-*-* .
5505 * configure.ac (gnu_unique_option): Use target_type_format_char
5506 in test. Comment rationale.
5507 * configure: Regenerate .
5508
5509 2012-03-15 Jakub Jelinek <jakub@redhat.com>
5510
5511 PR tree-optimization/52267
5512 * tree-vrp.c (masked_increment): New function.
5513 (register_edge_assert_for_2): Derive ASSERT_EXPRs
5514 from (X & CST1) cmp CST2 tests.
5515
5516 2012-03-15 Richard Guenther <rguenther@suse.de>
5517
5518 PR middle-end/52580
5519 * tree-data-ref.c (subscript_dependence_tester_1): Check
5520 all dimensions for non-conflicting access functions.
5521
5522 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5523
5524 PR c++/44783
5525 * doc/invoke.texi [C++ Language Options]: Document
5526 -ftemplate-backtrace-limit.
5527
5528 2012-03-15 Tristan Gingold <gingold@adacore.com>
5529
5530 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
5531 before a parameter.
5532
5533 2012-03-15 Tristan Gingold <gingold@adacore.com>
5534
5535 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
5536 use DW_OP_call_frame_cfa.
5537
5538 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
5539
5540 PR target/50797
5541 * config/i386/i386-opts.h (pmode): New.
5542
5543 * config/i386/i386.c (ix86_option_override_internal): Properly
5544 check and set ix86_pmode.
5545
5546 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
5547
5548 * config/i386/i386.opt (maddress-mode=): New.
5549
5550 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
5551
5552 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5553
5554 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
5555 (dwarf2out_do_cfi_asm): Likewise.
5556 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
5557 handling.
5558 (add_data_member_location_attribute): Likewise.
5559 (gen_array_type_die): Likewise.
5560 (gen_subprogram_die): Likewise.
5561 (gen_producer_string): Likewise.
5562 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
5563 Remove MIPS_DEBUGGING_INFO handling.
5564 (sdb_debug_hooks): Likewise.
5565 (sdbout_begin_block): Likewise.
5566 (sdbout_end_block): Likewise.
5567 (sdbout_begin_prologue): Likewise.
5568 (sdbout_start_source_file): Likewise.
5569 (sdbout_end_source_file): Likewise.
5570 (sdbout_init): Likewise.
5571 * system.h (MIPS_DEBUGGING_INFO): Poison.
5572
5573 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5574
5575 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
5576 (alpha_file_start) [MS_STAMP]: Remove.
5577
5578 * config/alpha/elf.h (TARGET_GAS): Remove.
5579 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
5580 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
5581 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
5582 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
5583 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
5584 (alpha*-*-freebsd*): Likewise.
5585 (alpha*-*-netbsd*): Likewise.
5586 (alpha*-*-openbsd*): Likewise.
5587 (alpha*-*-*): Remove target_cpu_default2.
5588 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
5589 handling.
5590 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
5591 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
5592 * config/alpha/alpha.c (print_operand): Always assume
5593 TARGET_AS_SLASH_BEFORE_SUFFIX.
5594 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
5595 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
5596 ("*builtin_setjmp_receiver_er_1"): Remove.
5597 * config/alpha/alpha.opt (malpha-as): Remove.
5598 (mgas): Ignore.
5599 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
5600 -malpha-as, -mgas.
5601 Remove DEC Unix reference.
5602
5603 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
5604 (EXTENDED_COFF): Remove.
5605 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
5606 (EXTENDED_COFF): Don't undef.
5607 * config/alpha/alpha.c (alpha_file_start): Always assume
5608 OBJECT_FORMAT_ELF.
5609 Don't set targetm.asm_file_start_file_directive.
5610 [!OBJECT_FORMAT_ELF]: Remove.
5611 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
5612
5613 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
5614 (DBX_DEBUGGING_INFO): Remove.
5615 (MIPS_DEBUGGING_INFO): Remove.
5616 (PREFERRED_DEBUGGING_TYPE): Remove.
5617 (DBX_OUTPUT_SOURCE_LINE): Remove.
5618 (SDB_OUTPUT_SOURCE_LINE): Remove.
5619 (DBX_CONTIN_LENGTH): Remove.
5620 (NO_DBX_FUNCTION_END): Remove.
5621 (ASM_STABS_OP): Remove.
5622 (ASM_STABN_OP): Remove.
5623 (ASM_STABD_OP): Remove.
5624 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
5625 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
5626 (PUT_SDB_DEF): Remove.
5627 (PUT_SDB_PLAIN_DEF): Remove.
5628 (PUT_SDB_TYPE): Remove.
5629 (sdb_label_count): Remove.
5630 (PUT_SDB_BLOCK_START): Remove.
5631 (PUT_SDB_BLOCK_END): Remove.
5632 (PUT_SDB_FUNCTION_START): Remove.
5633 (PUT_SDB_FUNCTION_END): Remove.
5634 (PUT_SDB_EPILOGUE_END): Remove.
5635 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
5636 (MIPS_DEBUGGING_INFO): Don't undef.
5637 (DBX_DEBUGGING_INFO): Don't undef.
5638 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
5639 (MIPS_DEBUGGING_INFO): Don't undef.
5640 (DBX_DEBUGGING_INFO): Don't undef.
5641 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
5642 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
5643 handling.
5644 (alpha_start_function): Likewise.
5645 (sdb_label_count): Remove.
5646 (alpha_output_filename): Remove DBX_DEBUG handling.
5647 (alpha_file_start): Likewise.
5648
5649 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5650
5651 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
5652 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
5653 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
5654 Solaris 8 support.
5655 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
5656 (ld_tls_support): Remove Solaris 8 references.
5657 (lwp_dir, lwp_spec): Remove support for alternate thread library.
5658 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
5659 * configure: Regenerate.
5660 * config.in: Regenerate.
5661
5662 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
5663 * config/i386/sol2.h: Remove Solaris 8 references.
5664
5665 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
5666 (i?86-*-solaris2.9): ... this.
5667 Remove Solaris 8 references.
5668 (Specific, *-*-solaris2*): Document Solaris 8 removal.
5669 Remove Solaris 8 references.
5670
5671 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5672
5673 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
5674 (mips-sgi-irix6.5*): Remove.
5675 * config.host (mips-sgi-irix*): Remove.
5676 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
5677 (set_have_as_tls): Remove *-*-irix6*.
5678 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
5679 * configure: Regenerate.
5680
5681 * config/mips/iris6.h: Remove.
5682 * config/mips/iris6.opt: Remove.
5683 * config/mips/t-irix6: Remove.
5684
5685 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
5686 (TARGET_IRIX6): Remove.
5687 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
5688 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
5689 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
5690 handling.
5691 (mips_file_start): Likewise.
5692 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
5693
5694 * config/mips/driver-native.c [__sgi__]: Remove.
5695 (host_detect_local_cpu) [__sgi__]: Remove.
5696
5697 * config/mips/gnu-user.h: Remove iris5.h reference.
5698
5699 * config/mips/mips-modes.def: Remove IRIX 6 reference.
5700 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
5701 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
5702 Remove.
5703
5704 * gcc.c (main): Move asm_debug initialization ...
5705 (asm_debug): ... here.
5706
5707 * ginclude/stddef.h (__STDDEF_H__): Don't define.
5708
5709 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
5710 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
5711 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
5712 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
5713 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
5714 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
5715 Remove.
5716 * doc/tm.texi: Regenerate.
5717
5718 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
5719 IRIX 6 reference.
5720 (MIPS Options, -march): Remove IRIX reference.
5721 * doc/install.texi (Binaries, SGI IRIX): Remove.
5722 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
5723 of section.
5724 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
5725
5726 2012-03-14 Martin Jambor <mjambor@suse.cz>
5727
5728 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
5729 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
5730 (expand_expr_real_1): Do not handle misalignment if modifier is
5731 EXPAND_WRITE.
5732
5733 2012-03-14 Richard Guenther <rguenther@suse.de>
5734
5735 PR middle-end/52584
5736 * tree-vect-generic.c (type_for_widest_vector_mode): Take
5737 element type instead of mode, use build_vector_type_for_mode
5738 instead of the langhook, build a vector of proper signedness.
5739 (expand_vector_operations_1): Adjust.
5740
5741 2012-03-14 Richard Guenther <rguenther@suse.de>
5742
5743 PR middle-end/52582
5744 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
5745 a cgraph node for a FUNCTION_DECL that comes from a constructor.
5746 (gimple_get_virt_method_for_binfo): Likewise.
5747
5748 2012-03-14 Richard Guenther <rguenther@suse.de>
5749
5750 PR tree-optimization/52571
5751 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5752 flag_section_anchors check ...
5753 (vect_can_force_dr_alignment_p): ... here. Do not re-align
5754 DECL_COMMON variables.
5755
5756 2012-03-14 Richard Guenther <rguenther@suse.de>
5757
5758 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
5759 * stor-layout.c (start_bitfield_representative): New function.
5760 (finish_bitfield_representative): Likewise.
5761 (finish_bitfield_layout): Likewise.
5762 (finish_record_layout): Call finish_bitfield_layout.
5763 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
5764 for QUAL_UNION_TYPE fields.
5765 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
5766 Stream DECL_BIT_FIELD_REPRESENTATIVE.
5767 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
5768
5769 PR middle-end/52080
5770 PR middle-end/52097
5771 PR middle-end/48124
5772 * expr.c (get_bit_range): Unconditionally extract bitrange
5773 from DECL_BIT_FIELD_REPRESENTATIVE.
5774 (expand_assignment): Adjust call to get_bit_range.
5775
5776 2012-03-14 Richard Guenther <rguenther@suse.de>
5777
5778 PR middle-end/52578
5779 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
5780 the outermost conversion is a sign-change only.
5781 (fold_binary_loc): Disregard widening and sign-changing
5782 conversions when we determine if two variables are equal
5783 for reassociation.
5784 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
5785 (T1)x if the outermost conversion is a sign-change only.
5786
5787 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
5788
5789 Revert:
5790 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
5791
5792 * config/i386/predicates.md (constant_call_address_operand): Declare
5793 as special predicate. Update all uses.
5794
5795 2012-03-13 Jakub Jelinek <jakub@redhat.com>
5796
5797 PR c/52577
5798 * c-parser.c (c_parser_postfix_expression)
5799 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
5800
5801 * config/i386/smmintrin.h: Avoid /* within a comment.
5802 * config/i386/nmmintrin.h: Likewise.
5803
5804 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5805
5806 * config/i386/i386.md (xbegin): Remove constraint from expander.
5807
5808 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5809
5810 * config/i386/predicates.md (constant_call_address_operand): Declare
5811 as special predicate. Update all uses.
5812 * config/i386/i386.md: Remove mode from constant_call_address_operand
5813 predicates.
5814 * config/i386/i386.c (ix86_output_call_insn): Call
5815 constant_call_address_operand with VOIDmode.
5816
5817 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5818
5819 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
5820 AND zero extended address correctly.
5821
5822 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5823
5824 * config/i386/predicates.md (tls_symbolic_operand): Declare as
5825 special predicate.
5826 (tls_modbase_operand): Ditto.
5827 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
5828 tls_modbase_operand predicates.
5829
5830 2012-03-13 Martin Jambor <mjambor@suse.cz>
5831
5832 * expr.c (expand_assignment): Handle misaligned scalar writes to
5833 memory through top-level MEM_REFs by calling store_bit_field.
5834
5835 2012-03-13 Richard Guenther <rguenther@suse.de>
5836
5837 PR middle-end/52134
5838 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
5839 if Y is a constant multiple of 1 << CST.
5840
5841 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
5842
5843 PR target/52488
5844 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
5845 offset (size) to a value the insns can deal with.
5846 (expand_epilogue): Ditto.
5847
5848 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5849
5850 * config/arm/neon.ml (ops): Fixup expected instructions for
5851 unsigned vector compares.
5852
5853 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5854
5855 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
5856 addresses only when %reg is not in word mode.
5857
5858 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5859
5860 * config/microblaze/microblaze.md: Fix typo.
5861 * tree-if-conv.c: Likewise.
5862 * tree-vect-patterns.c: Likewise.
5863
5864 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5865
5866 * config.gcc (extra_passes): Remove.
5867 * configure.ac (extra_passes): Don't substitute.
5868 * configure: Regenerate.
5869 * Makefile.in (EXTRA_PASSES): Remove.
5870 (GCC_PASSES): Remove $(EXTRA_PASSES).
5871 (MOSTLYCLEANFILES): Likewise.
5872 (native): Likewise.
5873 (install-common): Likewise.
5874
5875 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5876
5877 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
5878 * config/i386/i386.c (ix86_decompose_address): Use
5879 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
5880 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
5881 thread pointer to a register.
5882
5883 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
5884
5885 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
5886 on tls_symbolic_operand.
5887 (tls_global_dynamic_64_<mode>): Likewise.
5888
5889 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
5890
5891 PR other/52545
5892 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
5893 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
5894
5895 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
5896
5897 PR target/52499
5898 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
5899 type from reg_class_t to enum reg_class.
5900 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
5901
5902 2012-03-12 Andrew Pinski <apinski@cavium.com>
5903
5904 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
5905 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
5906 (value_replacement): Likewise.
5907 (empty_block_p): Check also if the PHIs for the block are empty.
5908
5909 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
5910
5911 PR target/52148
5912 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
5913 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
5914 r184615 from 2012-02-28.
5915
5916 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
5917
5918 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
5919 (ix86_gen_tls_local_dynamic_base_64): Likewise.
5920 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
5921 and ix86_gen_tls_local_dynamic_base_64.
5922 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
5923 ix86_gen_tls_local_dynamic_base_64.
5924
5925 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
5926 (*tls_global_dynamic_64_<mode>): This.
5927 (tls_global_dynamic_64): Renamed to ...
5928 (tls_global_dynamic_64_<mode>): This.
5929 (*tls_local_dynamic_base_64): Renamed to ...
5930 (*tls_local_dynamic_base_64_<mode>): This.
5931 (tls_local_dynamic_base_64): Renamed to ...
5932 (tls_local_dynamic_base_64_<mode>): This.
5933
5934 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
5935
5936 * config/i386/i386.c (ix86_option_override_internal): Properly
5937 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
5938 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
5939 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
5940 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
5941
5942 * config/i386/sse.md (sse3_monitor64): Renamed to ...
5943 (sse3_monitor64_<mode>): This.
5944
5945 2012-03-12 Tristan Gingold <gingold@adacore.com>
5946
5947 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
5948 (ia64_function_arg_advance): Ditto.
5949
5950 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5951
5952 * config.gcc (mips*-*-openbsd*): Remove.
5953 * config/mips/openbsd.h: Remove.
5954 * config/mips/sdb.h: Remove.
5955
5956 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
5957 * config/mips/mips.c (sdb_label_count): Remove.
5958 (mips_debugger_offset): Remove #if 0 code.
5959 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
5960 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
5961
5962 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5963
5964 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
5965 binutils reference.
5966 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
5967 Update binutils references.
5968 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
5969 Update binutils reference.
5970 Update Sun as/GNU ld caveat.
5971 Document binutils largefile requirement for LTO plugin.
5972 Remove reference to alternate libpthread.
5973
5974 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5975
5976 * config.gcc (alpha*-dec-osf5.1*): Remove.
5977 * config.host (alpha*-dec-osf*): Remove.
5978 * configure.ac (*-*-osf*): Remove.
5979 (alpha*-dec-osf*): Remove.
5980 * configure: Regenerate.
5981
5982 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
5983 config/alpha/va_list.h, config/alpha/x-osf: Remove.
5984
5985 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
5986 * config/alpha/alpha.c (struct machine_function): Update comment.
5987 (alpha_start_function): Remove Tru64 UNIX as handling for
5988 max_frame_size.
5989 * config/alpha/alpha.md ("exception_receiver"): Remove
5990 TARGET_LD_BUGGY_LDGP.
5991 ("*exception_receiver_2"): Likewise.
5992 * except.c (finish_eh_generation): Remove Tru64 reference.
5993 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
5994 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
5995 * target.def (handle_pragma_extern_prefix): Remove.
5996
5997 * Makefile.in (mips-tfile.o-warn): Remove.
5998 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
5999 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
6000 * mips-tdump.c, mips-tfile.c: Remove.
6001
6002 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
6003 extern_prefix.
6004 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
6005 (Specific, alpha*-dec-osf5.1): Note removal.
6006 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
6007 Remove.
6008 * doc/tm.texi: Regenerate.
6009 * doc/trouble.texi (Cross-Compiler Problems): Remove.
6010
6011 2012-03-12 Richard Guenther <rguenther@suse.de>
6012
6013 * config/arm/arm.c (neon_dereference_pointer): Do not call
6014 covert during RTL expansion.
6015
6016 2012-03-12 Tristan Gingold <gingold@adacore.com>
6017
6018 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
6019 Options. Mention -mpointer-size.
6020
6021 2012-03-12 Richard Guenther <rguenther@suse.de>
6022
6023 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
6024 build_nonstandard_integer_type.
6025
6026 2012-03-12 Richard Guenther <rguenther@suse.de>
6027
6028 * tree.c (signed_or_unsigned_type_for): Use
6029 build_nonstandard_integer_type.
6030 (signed_type_for): Adjust documentation.
6031 (unsigned_type_for): Likewise.
6032 * tree-pretty-print.c (dump_generic_node): Use standard names
6033 for non-standard integer types if available.
6034
6035 2012-03-12 Tristan Gingold <gingold@adacore.com>
6036
6037 * config/vms/vms.opt: Add vms-opts.h header.
6038 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
6039 target mask.
6040 (-mvms-return-codes): Document.
6041 (-mpointer-size): New option.
6042 (vms_pointer_size): Add enumeration.
6043 * config/vms/vms-opts.h: New file.
6044 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
6045 __INITIAL_POINTER_SIZE.
6046 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
6047 (C_COMMON_OVERRIDE_OPTIONS): Define.
6048 (DWARF2_ADDR_SIZE): Define.
6049 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
6050 * config/vms/vms-protos.h (vms_c_common_override_options):
6051 New prototype.
6052 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
6053 if -mno-pointer-size.
6054 (vms_c_common_override_options): New function.
6055 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
6056 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
6057 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
6058 and flag_vms_pointer_size.
6059 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
6060 * config.gcc (*-*-*vms*): Define xm_file.
6061 (alpha*-dec-*vms*): Do not define xm_file.
6062 (alpha64-dec-*vms*): Remove.
6063 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
6064 and tmake_file.
6065
6066 2012-03-12 Jakub Jelinek <jakub@redhat.com>
6067
6068 PR tree-optimization/51721
6069 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
6070 if (int) unsvar cmp CST.
6071
6072 2012-03-12 Richard Guenther <rguenther@suse.de>
6073
6074 * tree-sra.c (create_access_replacement): Only rename the replacement
6075 if we can rewrite it into SSA form. Properly mark register typed
6076 replacements that we cannot rewrite with TREE_ADDRESSABLE.
6077 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
6078 for aggregate or BLKmode results.
6079
6080 2012-03-12 Jakub Jelinek <jakub@redhat.com>
6081
6082 PR tree-optimization/52533
6083 * tree-vrp.c (register_edge_assert_for_2): Use double_int
6084 type for mask, only handle shifts by non-zero in-range
6085 shift count, for LE_EXPR and GT_EXPR if new_val is
6086 maximum, don't add the assertion.
6087
6088 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
6089
6090 * doc/invoke.texi: Document -mrtm option.
6091 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
6092 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
6093 (ix86_handle_option): Handle OPT_mrtm.
6094 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
6095 xtestintrin.h.
6096 (x86_64-*-*): Ditto.
6097 * i386-builtin-types.def (INT_FTYPE_VOID): New.
6098 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6099 __RTM__ if needed.
6100 (ix86_target_string): Define -mrtm option.
6101 (PTA_RTM): New.
6102 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
6103 Handle new option.
6104 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
6105 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
6106 IX86_BUILTIN_XTEST.
6107 (bdesc_special_args): Ditto.
6108 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
6109 (ix86_expand_special_args_builtin): Handle new built-in type.
6110 (ix86_expand_builtin): Handle XABORT instruction.
6111 * config/i386/i386.h (TARGET_RTM): New.
6112 * config/i386/i386.md (UNSPECV_XBEGIN): New.
6113 (UNSPECV_XEND): Ditto.
6114 (UNSPECV_XABORT): Ditto.
6115 (UNSPECV_XTEST): Ditto.
6116 (xbegin): Ditto.
6117 (xbegin_1): Ditto.
6118 (xend): Ditto.
6119 (xabort): Ditto
6120 (xtest): Ditto.
6121 (xtest_1): Ditto.
6122 * config/i386/i386.opt (mrtm): New.
6123 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
6124 * config/i386/rtmintrin.h: New header.
6125 * config/i386/xtestintrin.h: Ditto.
6126
6127 2012-03-12 Tristan Gingold <gingold@adacore.com>
6128
6129 * ginclude/stddef.h: Adjust previous patch.
6130 Use __VMS__ instead of VMS.
6131
6132 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
6133
6134 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
6135 Also convert sequences with CC setting arithmetic instruction.
6136
6137 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
6138
6139 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
6140 from C Language Options to Preprocessor Options.
6141 (C Dialect Options): Move -no-integrated-cpp documentation
6142 from here...
6143 (Preprocessor Options): ...to here. Rewrite the description
6144 so it makes more sense, and remove discussion of merging front ends.
6145
6146 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6147
6148 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
6149 needed for loop.
6150 (ix86_expand_setmem): Likewise.
6151
6152 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
6153
6154 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
6155 convert_to_mode.
6156
6157 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6158
6159 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
6160 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
6161
6162 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6163
6164 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
6165
6166 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6167
6168 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
6169 TARGET_64BIT.
6170
6171 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6172 Uros Bizjak <ubizjak@gmail.com>
6173
6174 * config/i386/predicates.md (call_insn_operand): Allow
6175 constant_call_address_operand in Pmode only.
6176 (sibcall_insn_operand): Ditto.
6177 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
6178 (*call_vzeroupper): Ditto.
6179 (*sibcall): Ditto.
6180 (*sibcall_vzeroupper): Ditto.
6181 (*call_value): Ditto.
6182 (*call_value_vzeroupper): Ditto.
6183 (*sibcall_value): Ditto.
6184 (*sibcall_value_vzeroupper): Ditto.
6185 (*indirect_jump): Ditto.
6186 (*tablejump_1): Ditto.
6187 (indirect_jump): Convert memory address to word mode for TARGET_X32.
6188 (tablejump): Ditto.
6189 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
6190 to word mode.
6191
6192 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
6193
6194 PR target/51244
6195 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
6196 Use movrt_negc instead of negc pattern for non-SH2A.
6197 (*movnegt): Remove.
6198 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
6199
6200 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
6201
6202 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
6203 if Pmode != word_mode.
6204 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
6205 Pmode == SImode for TARGET_X32.
6206
6207 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
6208 (tls_initial_exec_x32): Likewise.
6209
6210 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
6211
6212 PR rtl-optimization/52528
6213 * combine.c (can_combine_p): Add setting of subst_low_luid
6214 before call to expand_field_assignment().
6215
6216 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
6217
6218 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
6219 and related program names.
6220
6221 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
6222
6223 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
6224
6225 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
6226
6227 PR target/52530
6228 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
6229 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
6230 to set code to 'q'.
6231 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
6232 (*movdi_internal_rex64): Use %E operand modifier for lea.
6233 (*movsi_internal): Ditto.
6234 (*lea_1): Ditto.
6235 (*lea<mode>_2): Ditto.
6236 (*lea_{3,4,5,6}_zext): Ditto.
6237 (*tls_global_dynamic_32_gnu): Ditto.
6238 (*tls_global_dynamic_64): Ditto.
6239 (*tls_dynamic_gnu2_lea_32): Ditto.
6240 (*tls_dynamic_gnu2_lea_64): Ditto.
6241 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
6242
6243 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6244
6245 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
6246 redefine to be NULL if the current bit-size is different from the
6247 configured bit-size.
6248
6249 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
6250 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
6251 set the default tuning. Add asserts to make sure the cpu and tune
6252 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
6253 test whether the index is set, instead of > 0.
6254 (rs6000_file_start): Do not reset the default cpu if the current
6255 bit-size is different from the configured bit-size.
6256
6257 2012-03-09 Tristan Gingold <gingold@adacore.com>
6258
6259 * config/vms/vms-crtlmap.map: Add comments.
6260 Add entries needed to build Ada RTS.
6261
6262 2012-03-09 Tristan Gingold <gingold@adacore.com>
6263
6264 * ginclude/stddef.h: Do not define __size_t on VMS.
6265
6266 2012-03-09 Tristan Gingold <gingold@adacore.com>
6267
6268 * c-tree.h (c_default_pointer_mode): New variable.
6269 * c-decl.c (c_default_pointer_mode): New variable.
6270 (c_build_pointer_type): New function.
6271 (grokdeclarator): Call c_build_pointer_type instead
6272 of build_pointer_type.
6273
6274 * config/vms/vms-c.c: Include c-tree.h
6275 (saved_pointer_mode): New variable.
6276 (handle_pragma_pointer_size): New function.
6277 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
6278 (vms_c_register_pragma): Register __pointer_size and
6279 __required_pointer_size pragmas.
6280
6281 2012-03-09 Tristan Gingold <gingold@adacore.com>
6282
6283 * config/vms/vms-c.c (vms_construct_include_filename): New function.
6284 (vms_c_register_includes): Reference it.
6285
6286 2012-03-09 Andrew Pinski <apinski@cavium.com>
6287
6288 PR middle-end/51988
6289 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
6290 print_generic_expr.
6291 (tree_ssa_phiopt_worker): Go through all the PHIs for
6292 value_replacement instead of just the singleton one.
6293 (value_replacement): Change return type to int. Return 0 instead of
6294 false.
6295 Allow the middle basic block to contain more than just the defining
6296 statement.
6297 Handle non empty middle basic blocks.
6298 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
6299
6300 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
6301
6302 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
6303 array reference and component reference.
6304 (analyze_scalar_evolution_for_address_of): New.
6305
6306 2012-03-08 Jie Zhang <jzhang918@gmail.com>
6307
6308 PR target/49862
6309 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
6310 (hwloop_pattern_reg): Fix set but not used warning.
6311 (bfin_reorg_loops): Remove unused parameter.
6312 (bfin_reorg): Update use of bfin_reorg_loops.
6313
6314 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
6315
6316 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
6317 with integer parameters in registers.
6318 (gen_push): Push register in word_mode instead of Pmode.
6319 (ix86_emit_save_regs): Likewise.
6320 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
6321 (gen_pop): Pop register in word_mode instead of Pmode.
6322 (ix86_emit_restore_regs_using_pop): Likewise.
6323 (ix86_expand_prologue): Replace Pmode with word_mode for push
6324 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
6325 restore RAX and R10 in word_mode.
6326 (ix86_emit_restore_regs_using_mov): Restore integer registers
6327 in word_mode.
6328 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
6329 word_mode.
6330 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
6331 (ix86_split_long_move): Likewise.
6332
6333 * config/i386/i386.md (W): New.
6334 (*push<mode>2_prologue): Replace :P with :W.
6335 (*pop<mode>1): Likewise.
6336 (*pop<mode>1_epilogue): Likewise.
6337 (push/pop peephole2): Use word_mode scratch registers.
6338
6339 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
6340
6341 * config/i386/predicates.md (indirect_branch_operand): Simplify.
6342
6343 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
6344
6345 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
6346 for constants in [-63,63].
6347
6348 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
6349
6350 PR target/52530
6351 Revert:
6352 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
6353
6354 * config/i386/i386.c (ix86_print_operand_address): Only handle
6355 zero-extended DImode addresses.
6356
6357 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6358
6359 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
6360 * configure: Regenerate.
6361
6362 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
6363
6364 PR target/52496
6365 * config/avr/avr.c (avr_mem_clobber): New static function.
6366 (avr_expand_delay_cycles): Add memory clobber operand to
6367 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
6368 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
6369 (enable_interrupt, disable_interrupt): New expander.
6370 (nopv, sleep, wdr): New expanders.
6371 (delay_cycles_1): Add memory clobber.
6372 (delay_cycles_2): Add memory clobber.
6373 (delay_cycles_3): Add memory clobber.
6374 (delay_cycles_4): Add memory clobber.
6375 (cli_sei): New insn from former "enable_interrupt",
6376 "disable_interrupt" with memory clobber.
6377 (*wdt): New insn from former "wdt" with memory clobber.
6378 (*nopv): Similar, but for "nopv".
6379 (*sleep): Similar, but for "sleep".
6380
6381 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
6382 Kaz Kojima <kkojima@gcc.gnu.org>
6383
6384 PR target/52503
6385 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
6386 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
6387 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6388
6389 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
6390
6391 * config/i386/predicates.md (x86_64_zext_general_operand): New.
6392 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
6393 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
6394
6395 2012-03-07 Walter Lee <walt@tilera.com>
6396
6397 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
6398 REG_CFA_* notes for the stack pointer.
6399 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
6400 EH_RETURN_STACKADJ_RTX.
6401 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
6402 generate REG_CFA_* notes for the stack pointer.
6403 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
6404 by EH_RETURN_STACKADJ_RTX.
6405
6406 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6407
6408 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
6409 when __AVR_3_BYTE_PC__ is defined.
6410
6411 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
6412
6413 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
6414 (ix86_print_operand): Handle '^'.
6415 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
6416 using P mode iterator. Add %^ to asm template to conditionally emit
6417 addr32 prefix.
6418 (*rep_movdi_rex64): Ditto.
6419 (*strsetdi_rex_1): Ditto.
6420 (*rep_stosdi_rex64): Ditto.
6421 (*strmov{si,hi,qi}_1): Add %^ to asm template to
6422 conditionally emit addr32 prefix.
6423 (*rep_mov{si,qi}): Ditto.
6424 (*strset{si,hi,qi}): Ditto.
6425 (*rep_stos{si,qi}): Ditto.
6426 (*cmpstrnqi_nz_1): Ditto.
6427 (*cmpstrnqi_1): Ditto.
6428 (*strlenqi_1): Ditto.
6429
6430 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
6431
6432 * config/i386/i386.c (function_value_64): Return pointers in
6433 word_mode instead of Pmode.
6434 (ix86_promote_function_mode): Likewise.
6435
6436 2012-03-07 Richard Guenther <rguenther@suse.de>
6437
6438 * coverage.c (get_gcov_type): Use type_for_mode.
6439 (get_gcov_unsigned_t): Likewise.
6440 * expr.c (store_constructor): Use type_for_mode.
6441 (try_casesi): Likewise.
6442 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
6443 (add_standard_iv_candidates): Use standard type trees.
6444 * dojump.c (do_jump): Remove dead code.
6445
6446 2012-03-07 Richard Guenther <rguenther@suse.de>
6447
6448 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
6449
6450 2012-03-07 Richard Guenther <rguenther@suse.de>
6451
6452 * convert.c (strip_float_extensions): Move ...
6453 * tree.c (strip_float_extensions): ... here.
6454
6455 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6456
6457 PR target/52484
6458 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
6459
6460 2012-03-07 Richard Guenther <rguenther@suse.de>
6461
6462 * omp-low.c (extract_omp_for_data): Use signed_type_for.
6463 (expand_omp_for_generic): Likewise.
6464 (expand_omp_for_static_nochunk): Likewise.
6465 (expand_omp_for_static_chunk): Likewise.
6466 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
6467 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
6468 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
6469 Use unsigned_type_for.
6470 (vect_create_cond_for_align_checks): Use signed_type_for.
6471
6472 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
6473
6474 PR rtl-optimization/52203
6475 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
6476 all callers to pass NULL except ...
6477 (reset_sched_cycles_in_current_ebb): ... here, save the value
6478 in new variable 'empty'. Increase issue_rate only for
6479 non-empty insns.
6480
6481 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
6482
6483 PR target/51417
6484 * Makefile.in: Let install-gcc-ar depend on installdirs,
6485 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
6486 Don't double canonicalize if cross-compiling.
6487
6488 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6489
6490 PR target/52506
6491 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
6492 to: RAMPZ, RAMPY, RAMPX, RAMPD.
6493 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
6494
6495 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6496
6497 PR target/52505
6498 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
6499 from RAM.
6500 * config/avr/avr.md (xload_8): Adjust insn length.
6501
6502 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6503
6504 PR target/52461
6505 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
6506 if RAMPZ affects reading from RAM.
6507
6508 2012-03-07 Richard Guenther <rguenther@suse.de>
6509
6510 PR pch/52518
6511 PR pch/38987
6512 * doc/invoke.texi (Precompiled Headers): Remove sentence that
6513 suggests you can include PCHs from inside another header.
6514
6515 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
6516
6517 PR middle-end/52515
6518 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
6519
6520 2012-03-07 Kai Tietz <ktietz@redhat.com>
6521
6522 * doc/invoke.texi (fwritable-relocated-rdata): Document
6523 new Cygwin/MinGW target option.
6524 * config/i386/winnt.c (i386_pe_unique_section): Ignore
6525 reloc if flag -fwritable-relocated-rdata is not set.
6526 (i386_pe_section_type_flags): Likewise.
6527 * config/i386/cygming.opt (fwritable-relocated-rdata):
6528 Add new flag variable flag_writable_rel_rdata.
6529
6530 2012-03-07 Richard Guenther <rguenther@suse.de>
6531
6532 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
6533 precision against gimple constraints.
6534
6535 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
6536
6537 PR middle-end/52372
6538 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
6539 variables.
6540 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
6541 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
6542 variables.
6543 (init_emit_regs): Move associated initialization to...
6544 (init_emit_once): ...here.
6545
6546 2012-03-06 Richard Henderson <rth@redhat.com>
6547
6548 * config/m68k/m68k.h (ISA_HAS_TAS): New.
6549 * config/m68k/sync.md (atomic_test_and_set): Use it.
6550 (atomic_test_and_set_1): Likewise.
6551
6552 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6553
6554 PR target/50310
6555 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
6556 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
6557 (vector_ltgt<mode>): Likewise.
6558 (vector_ordered<mode>): Likewise.
6559 (vector_unordered<mode>): Likewise.
6560 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6561
6562 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
6563
6564 * trans-mem.c: New typedef for tm_region_p.
6565 Define vector types for tm_region_p.
6566 (tm_region_init): Replace region_worklist to a vector called
6567 bb_regions.
6568
6569 2012-03-06 Richard Guenther <rguenther@suse.de>
6570
6571 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
6572 MEM_REF with constant pointer operand.
6573
6574 2012-03-06 Richard Guenther <rguenther@suse.de>
6575
6576 PR middle-end/52493
6577 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
6578
6579 2012-03-06 Tristan Gingold <gingold@adacore.com>
6580
6581 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
6582 (external_model_kind): Improve documentation.
6583 (vms_pragma_extern_model): Handle relaxed_redef.
6584 (vms_c_register_pragma): Allow expansion for nomember_alignment.
6585
6586 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
6587
6588 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
6589 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
6590 Some more notes on EIND usage and reorder EIND subsection.
6591
6592 2012-03-06 Tristan Gingold <gingold@adacore.com>
6593
6594 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
6595 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
6596
6597 2012-03-06 Tristan Gingold <gingold@adacore.com>
6598
6599 * config/vms/t-vmsnative (version): Define.
6600 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
6601
6602 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
6603
6604 PR rtl-optimization/52250
6605 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
6606 to put note list into. Unconditionally call move_bb_info.
6607 (move_bb_info): Do not assert the blocks being in the same region,
6608 just drop the note list if they are not.
6609
6610 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
6611
6612 PR target/51244
6613 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
6614 and use unified expansion logic.
6615 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
6616 closer to the existing movt insn.
6617 (negc): Rename insn to *negc. Add new expander.
6618 (movnegt): Use xor pattern for T bit negation. Reserve helper
6619 constant for negc pattern.
6620 (*movnegt): New insn and splitter.
6621
6622 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
6623
6624 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
6625 PLUS_EXPR.
6626
6627 2012-03-05 Richard Henderson <rth@redhat.com>
6628
6629 * genemit.c (main): Include "target.h" in insn-emit.c.
6630 * Makefile.in (insn-emit.o): Depend on TARGET_H.
6631 * config/sh/sync.md (atomic_test_and_set): Reference
6632 targetm.atomic_test_and_set_trueval instead of
6633 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
6634
6635 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
6636
6637 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
6638 Make static.
6639
6640 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
6641
6642 * langhooks.c (add_builtin_type): New function.
6643 * langhooks.h (add_builtin_type): Export it.
6644 * config/mep/mep.c (mep_init_builtins): Use it.
6645 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
6646
6647 2012-03-05 Jakub Jelinek <jakub@redhat.com>
6648
6649 PR debug/51902
6650 * tree.h (BLOCK_SAME_RANGE): Define.
6651 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
6652 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
6653 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
6654 isn't equal to supercontext fragment's fragment chain.
6655 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
6656 fragment origin.
6657 (blocks_nreverse_all): Likewise.
6658 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
6659 BLOCK_SUPERCONTEXT to supercontext fragment instead of
6660 supercontext fragment's fragment origin.
6661 * dwarf2out.c (add_high_low_attributes): If stmt has the same
6662 range as its parent (or parents thereof etc.), use the parent's
6663 DW_AT_ranges value instead of creating a new .debug_ranges range.
6664
6665 2012-03-05 Richard Henderson <rth@redhat.com>
6666
6667 PR tree-opt/52242
6668 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
6669 * omp-low.c (expand_omp_atomic): Assume anything aligned to
6670 BIGGEST_ALIGNMENT is aligned.
6671
6672 2012-03-05 Richard Henderson <rth@redhat.com>
6673
6674 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
6675 * config/sh/sh.c: ... here.
6676
6677 2012-03-05 Richard Henderson <rth@redhat.com>
6678
6679 PR target/52481
6680 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
6681 instead of calling negqi2 directly.
6682
6683 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
6684
6685 PR middle-end/52463
6686 * trans-mem.c (tm_region_init): Use last_basic_block.
6687
6688 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
6689
6690 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
6691 * config/sh/sync.md (atomic_test_and_set): New expander.
6692 (tasb, atomic_test_and_set_soft): New insns.
6693 * config/sh/sh.opt (menable-tas): New option.
6694 * doc/invoke.texi (SH Options): Document it.
6695
6696 2012-03-05 Richard Guenther <rguenther@suse.de>
6697
6698 * cfgloop.c (verify_loop_structure): Verify dominators before
6699 using them.
6700 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
6701 dominators from here.
6702 * graphite-scop-detection.c (create_sese_edges): Likewise.
6703 * loop-doloop.c (doloop_optimize_loops): Likewise.
6704 * loop-init.c (loop_optimizer_init): Likewise.
6705 * loop-unroll.c (unroll_and_peel_loops): Likewise.
6706 * loop-unswitch.c (unswitch_loops): Likewise.
6707 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
6708 * tree-parloops.c (parallelize_loops): Likewise. Verify
6709 only when checking is enabled.
6710 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
6711
6712 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
6713
6714 * genautomata.c (parse_automata_opt): New static function.
6715 (initiate_automaton_gen): Remove all option handling code. Remove
6716 argc argument. All callers changed.
6717 (main): Call init_rtx_reader_args_cb with the new function as argument.
6718
6719 2012-03-05 Richard Guenther <rguenther@suse.de>
6720
6721 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
6722 * tree-if-conv.c (combine_blocks): Free post-dominator info
6723 after breaking it.
6724 * tree-parloops.c (create_parallel_loop): Free and re-compute
6725 dominator info after breaking it.
6726
6727 2012-03-05 Richard Guenther <rguenther@suse.de>
6728
6729 PR middle-end/52353
6730 * optabs.h (trapv_unoptab_p): New function.
6731 (trapv_binoptab_p): Likewise.
6732 * optabs.c (expand_binop): Use emit_libcall_block_1 with
6733 a proper equiv_may_trap argument.
6734 (expand_unop): Likewise.
6735 (emit_libcall_block_1): Take extra argument whether the
6736 instruction may trap. Renamed from ...
6737 (emit_libcall_block): ... this. New wrapper.
6738
6739 2012-03-05 Jakub Jelinek <jakub@redhat.com>
6740
6741 PR tree-optimization/51721
6742 * tree-vrp.c (register_edge_assert_for_2): If comparing
6743 lhs of right shift by constant with an integer constant,
6744 add ASSERT_EXPRs for the rhs1 of the right shift.
6745
6746 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
6747
6748 2012-03-05 Richard Guenther <rguenther@suse.de>
6749
6750 * tree.c (integer_zerop): Handle VECTOR_CSTs.
6751 (integer_onep): Likewise.
6752 (integer_all_onesp): Likewise.
6753
6754 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
6755
6756 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
6757
6758 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
6759
6760 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
6761 instead of TARGET_64BIT.
6762
6763 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
6764
6765 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
6766 adjust_stack_insn.
6767
6768 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
6769
6770 * config/i386/i386.c (ix86_print_operand_address): Only handle
6771 zero-extended DImode addresses.
6772
6773 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
6774
6775 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
6776 taken and cputaken as bool.
6777
6778 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
6779
6780 * config/i386/constraints.md (Ya): New internal constraint.
6781 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
6782 (*zero_extendsidi2_rex64): Add x,x alternative.
6783 (*zero_extendsidi2): Ditto. Add o,0 alternative.
6784 Remove flags reg clobber. Adjust corresponding splits.
6785 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
6786 zero_extendqisi2 expanders using SWI12 mode iterator.
6787 (zero_extend<mode>si2_and): Macroize insn from
6788 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
6789 splitters.
6790 (*zero_extend<mode>si2): Macroize insn from
6791 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
6792 (*zero_extend*2_movzbl_and): Remove insn patterns.
6793 (zero_extendqihi2_and): Merge corresponding splitter.
6794 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
6795 (*zero_extend*2_movzbl_and): Remove insn patterns.
6796 (*anddi_1): Split TYPE_IMOVX instructions.
6797 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
6798 (*andhi_1): Ditto.
6799 (and->zext splitter): Add splitter pattern.
6800 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
6801
6802 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
6803
6804 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
6805 x86-specific text.
6806 (Debugging Options): Likewise.
6807 (Optimize Options): Likewise.
6808 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
6809 with other architectures. Use official processor names with correct
6810 spelling/capitalization. Fix formatting and grammar issues.
6811 (i386 and x86-64 Windows Options): Similar cleanup here.
6812
6813 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
6814
6815 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
6816
6817 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
6818
6819 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
6820 DBX_REGISTER_NUMBER.
6821
6822 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
6823
6824 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
6825 operand is CONST_INT. Take COSTS_N_INSNS into account.
6826 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
6827 of shiftcosts.
6828
6829 2012-03-02 Richard Henderson <rth@redhat.com>
6830
6831 * optabs.c (expand_atomic_test_and_set): Honor
6832 atomic_test_and_set_trueval even when atomic_test_and_set
6833 optab is not in use.
6834
6835 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
6836
6837 PR target/48596
6838 PR target/48806
6839 * config/sh/sh.c (sh_register_move_cost): Increase cost between
6840 GENERAL_REGS and FP_REGS for SImode.
6841
6842 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
6843
6844 PR target/49486
6845 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
6846 (absdi2): New expander.
6847 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
6848
6849 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
6850
6851 * config/sh/sync.md (atomic_exchange<mode>): New expander.
6852 (atomic_exchange<mode>_soft): New insn.
6853
6854 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
6855
6856 * config/sh/sync.md: Update copyright notice dates.
6857 (atomic_compare_and_swap<mode>): Use SImode for return value instead
6858 of QImode.
6859 (atomic_compare_and_swap<mode>_soft): Likewise.
6860
6861 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
6862
6863 PR target/31640
6864 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
6865 * config/sh/sh.c: Update copyright notice dates.
6866 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
6867 alignment for TARGET_HARD_SH4.
6868 (sh_option_override): Reduce default function alignment. Set
6869 loop alignment to 4 bytes when not optimizing for size.
6870
6871 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
6872
6873 PR middle-end/50335
6874 * doc/invoke.texi (floop-flatten): Remove.
6875 * toplev.c (process_options): Remove references to flag_loop_flatten.
6876 * tree-ssa-loop.c (gate_graphite_transform): Same.
6877 * common.opt (floop-flatten): Obsolete.
6878 * graphite-poly.c (apply_poly_transforms): Remove reference to
6879 flag_loop_flatten.
6880 * Makefile.in (graphite-flattening.o): Remove.
6881 * graphite-flattening.c: Remove.
6882
6883 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
6884
6885 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
6886 having mode compatible with the mode of previous compare. Substitute
6887 compare mode of previous compare with the mode, compatible
6888 with eliminated and previous compare.
6889
6890 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
6891
6892 * config/rs6000/dfp.md (floatdidd2): New define_insn.
6893
6894 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
6895
6896 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
6897 compatible with CCGOCmode and CCGCmode.
6898
6899 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
6900
6901 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
6902
6903 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6904
6905 * config/arm/arm.c (arm_sat_operator_match): New function.
6906 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
6907 * config/arm/arm.md ("insn" attribute): Add "sat" value.
6908 ("SAT", "SATrev"): New code iterators.
6909 ("SATlo", "SAThi"): New code iterator attributes.
6910 ("*satsi_<SAT:code>"): New pattern.
6911 ("*satsi_<SAT:code>_shift"): Likewise.
6912 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
6913 and "shift" attributes.
6914 ("arm_usatsihi"): Add "insn" attribute.
6915 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
6916 by powers of two. Do not allow shift by 32.
6917
6918 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
6919
6920 PR target/46716
6921 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
6922 to pass the argument in the register of "natural" mode.
6923
6924 2012-03-02 Richard Guenther <rguenther@suse.de>
6925
6926 PR tree-optimization/52406
6927 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
6928 (struct indices): Add unconstrained_base member.
6929 (struct dr_alias): Remove unused vops member.
6930 (DR_UNCONSTRAINED_BASE): New define.
6931 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
6932 add indices to allow their disambiguation. Make DR_BASE_OBJECT
6933 be an artificial access that covers the whole indexed object,
6934 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
6935 plain decl base-objects to their MEM_REF variant.
6936 (dr_may_alias_p): When the base-object of either data reference
6937 has unknown size use only points-to information.
6938 (compute_affine_dependence): Make dumps easier to read and
6939 more verbose.
6940 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
6941 DR_REF when looking for packed references.
6942 (vect_supportable_dr_alignment): Likewise.
6943
6944 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
6945
6946 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
6947 Improve conditions for peepholes of loads followed by commutative
6948 operators.
6949 * config/arm/ldmstm.md: Regenerated.
6950
6951 2012-03-02 Richard Guenther <rguenther@suse.de>
6952
6953 * BASE-VER: Set to 4.8.0.
6954
6955 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
6956
6957 * config.gcc (obsolete): Add all ARM targets using the FPA.
6958 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
6959 * doc/install.texi: Avoid references to obsolete ARM ports.
6960
6961 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
6962
6963 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
6964
6965 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
6966 Joern Rennecke <joern.rennecke@embecosm.com>
6967
6968 * doc/extend.texi: Expand and update information on interrupt
6969 attribute for Epiphany.
6970
6971 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
6972
6973 * config/sh/sh-protos.h: Update copyright notice dates.
6974 * config/sh/sh.h: Likewise.
6975 * config/sh/sh.md: Likewise.
6976 * config/sh/constraints.md: Likewise.
6977 * config/sh/predicates.md: Likewise.
6978
6979 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
6980
6981 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
6982 * config/sh/sh.c (tertiary_reload_operand): Likewise.
6983
6984 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
6985
6986 * config/sh/constraints.md: Fix comment typo.
6987
6988 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6989
6990 PR target/52408
6991 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
6992 unsigned HOST_WIDE_INT.
6993 (zvdep_imm64): Likewise.
6994 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
6995 (vdepi_and): Likewise.
6996 Likewise for unamed 64-bit patterns.
6997 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
6998
6999 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
7000
7001 PR debug/52001
7002 PR rtl-optimization/52417
7003 * cselib.c (cselib_any_perm_equivs): New variable.
7004 (cselib_reset_table): Check that it's not set when not
7005 preserving constants.
7006 (cselib_add_permanent_equiv): Set it.
7007 (cselib_have_permanent_equivalences): New.
7008 (cselib_init, cselib_finish): Reset it.
7009 * cselib.h (cselib_have_permanent_equivalences): Declare.
7010 * alias.c (get_addr): Restore earlier behavior when there
7011 aren't permanent equivalences.
7012
7013 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
7014
7015 * config/mn10300/mn10300-modes.def: Fix copyright notice.
7016 * config/v850/v850-modes.def: Fix copyright notice.
7017
7018 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
7019
7020 * doc/extend.texi (AVR Built-in Functions): Document
7021 __builtin_avr_flash_segment.
7022
7023 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
7024 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
7025 (*split.flash_segment): New insn-and-split.
7026 * config/avr/avr.c (avr_init_builtins): Add local variables:
7027 const_memx_void_node, const_memx_ptr_type_node,
7028 char_ftype_const_memx_ptr.
7029
7030 2012-03-01 Jakub Jelinek <jakub@redhat.com>
7031
7032 PR tree-optimization/52445
7033 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
7034 add ssa_name_ver, offset and size fields and change store field
7035 to bool.
7036 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
7037 (add_or_mark_expr): Likewise. Only consider previous stores
7038 with the same size and offset.
7039 (nt_init_block): Only look at gimple_assign_single_p stmts,
7040 doesn't look at rhs2.
7041
7042 2012-03-01 Richard Guenther <rguenther@suse.de>
7043
7044 PR middle-end/52443
7045 * tree-cfg.c (verify_gimple_assign_unary): Allow any
7046 conversions from integral types to pointer types.
7047
7048 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
7049
7050 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
7051 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
7052 unintentionally removed in r184616.
7053
7054 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7055
7056 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
7057 3DNow from bdver1.
7058
7059 2012-02-29 Jakub Jelinek <jakub@redhat.com>
7060 Uros Bizjak <ubizjak@gmail.com>
7061
7062 PR target/52437
7063 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
7064 alternatives, add "e" constraint to the new last alternative
7065 and ! to last 3 alternatives.
7066
7067 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
7068
7069 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
7070 DW_AT_artificial attributes at the end of the processing.
7071 (gen_array_type_die): Likewise.
7072 (gen_enumeration_type_die): Likewise.
7073 (gen_struct_or_union_type_die): Likewise.
7074 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
7075 the parent type.
7076
7077 2012-02-29 Jakub Jelinek <jakub@redhat.com>
7078
7079 PR middle-end/52419
7080 * expr.c (expand_assignment): If doing misaligned store that doesn't
7081 cover all mode bits, perform a RMW cycle.
7082
7083 PR tree-optimization/52429
7084 * tree-parloops.c (separate_decls_in_region_debug): Return early
7085 if var is LABEL_DECL.
7086
7087 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7088
7089 PR tree-optimization/52424
7090 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
7091 calling dom_thread_across_edge.
7092
7093 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7094
7095 * config/avr/avr.c: Move definition of TARGET macros to end of file.
7096
7097 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7098
7099 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
7100 * config/avr/avr.c (avr_output_bld): Remove unused function.
7101 (avr_out_sbxx_branch): Use "%T" to print bit position.
7102
7103 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7104
7105 * config/avr/avr.md: Untabify.
7106
7107 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7108
7109 * config/avr/avr.md (eqne): New code iterator.
7110 (*dec-and-branchsi): Use it in text peephole's condition.
7111 (*dec-and-branchhi): Ditto.
7112 (*dec-and-branchqi): Ditto.
7113
7114 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7115
7116 PR target/49939
7117 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
7118 the device does not have the skip-bug.
7119
7120 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
7121
7122 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
7123 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
7124 -mpretend-cmove): New.
7125
7126 2012-02-29 Jakub Jelinek <jakub@redhat.com>
7127
7128 PR bootstrap/52397
7129 * df.h (struct df_d): Adjust comment that hard_regs_live_count
7130 doesn't count DEBUG_INSN refs.
7131 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
7132 for DEBUG_INSN refs.
7133
7134 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7135
7136 Partially revert:
7137
7138 2012-02-20 Richard Guenther <rguenther@suse.de>
7139 PR tree-optimization/52298
7140 * tree-vect-stmts.c (vectorizable_load): Properly use
7141 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
7142
7143 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
7144
7145 PR middle-end/51752
7146 * gimple.h (gimple_in_transaction): New.
7147 (gimple_set_in_transaction): New.
7148 (struct gimple_statement_base): Add in_transaction field.
7149 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
7150 transaction loads.
7151 (tree_ssa_lim_initialize): Compute transaction bits.
7152 * tree.h (compute_transaction_bits): Protoize.
7153 * trans-mem.c (tm_region_init): Use the heap to store BB
7154 auxilliary data.
7155 (compute_transaction_bits): New.
7156
7157 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7158
7159 * gcc.c (display_help): Document --help=common and sort entries
7160 alphabetically.
7161
7162 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7163
7164 * doc/install.texi: Document check-$LANG specific shortcuts
7165
7166 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7167
7168 PR target/51534
7169 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
7170 and vcgtu.
7171 * config/arm/arm_neon.h: Regenerate.
7172 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
7173 (neon_vcgeu): New insn.
7174 (neon_vcgtu): Likewise.
7175 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
7176 (ops): Unsigned comparison intrinsics call a different builtin.
7177
7178 2012-02-28 Richard Guenther <rguenther@suse.de>
7179
7180 PR target/52407
7181 * config/i386/i386.c (ix86_expand_vector_set): Fix element
7182 ordering for the VEC_CONCAT for two element vectors for
7183 V2SFmode, V2SImode and V2DImode.
7184
7185 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
7186
7187 PR target/49448
7188 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
7189 detecting big-endian triplets.
7190
7191 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
7192
7193 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
7194 mode if there is no type information available.
7195
7196 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
7197
7198 PR tree-optimization/53207
7199 * doc/invoke.texi: Document as experimental and relying on graphite.
7200
7201 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7202
7203 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
7204 of initializer to changes from r184614.
7205
7206 2012-02-28 Richard Guenther <rguenther@suse.de>
7207
7208 PR tree-optimization/52395
7209 * tree-sra.c (build_ref_for_offset): Also look at the base
7210 TYPE_ALIGN when figuring out the alignment of the replacement.
7211
7212 2012-02-28 Richard Guenther <rguenther@suse.de>
7213
7214 PR tree-optimization/52402
7215 * ipa-prop.c (ipa_modify_call_arguments): Properly use
7216 mis-aligned types when creating the accesses at the call site.
7217
7218 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7219
7220 * config/avr/builtins.def: New file.
7221 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
7222 * config/avr/avr.c (enum avr_builtin_id): Use it.
7223 (avr_init_builtins): Use it. And use avr_bdesc.
7224 (bdesc_1arg): Remove.
7225 (bdesc_2arg): Remove.
7226 (bdesc_3arg): Remove.
7227 (struct avr_builtin_description): Add field n_args.
7228 (avr_bdesc): New static variable using builtins.def.
7229 (avr_expand_builtin): Use it.
7230 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
7231 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
7232 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
7233
7234 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7235
7236 PR target/52148
7237 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
7238 match only one single hard register with respective hard reg rtx.
7239 (movmemx_<mode>): Ditto.
7240 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
7241 insn anatomy of movmem[x]_<mode>.
7242 (avr_out_movmem): Same for printing assembler and operand usage.
7243
7244 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7245
7246 PR target/49868
7247 PR target/52261
7248 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
7249 address spaces located outside of device flash.
7250
7251 * config/avr/avr.h (base_arch_s): Remove field n_segments.
7252 (mcu_type_s): Add field n_flash.
7253 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
7254 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
7255 (AVR_MCU): Add N_FLASH argument.
7256 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
7257 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
7258 macro __FLASH<n> if that address space makes sense for the device.
7259 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
7260 outside of target flash.
7261 (avr_asm_named_section): Ditto.
7262 (avr_asm_select_section): Ditto.
7263 (avr_addr_space_convert): Ditto.
7264 (avr_emit_movmemhi): Ditto.
7265 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
7266 address space is outside of device flash.
7267 (avr_insert_attributes): Ditto.
7268 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
7269 avr_current_arch->n_segments.
7270
7271 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
7272
7273 PR target/52352
7274 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
7275 (*movabs<mode>_2): Likewise.
7276
7277 2012-02-27 Jakub Jelinek <jakub@redhat.com>
7278
7279 PR target/52375
7280 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
7281 s_register_operand in the test instead of REG_P. Don't call
7282 gen_reg_rtx if it won't be used.
7283
7284 PR tree-optimization/52376
7285 * ipa-split.c (split_function): Ignore CLOBBER stmts.
7286
7287 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
7288
7289 * ifcvt.c (noce_get_condition): Check condition variable is not
7290 small_register_classes_for_mode_p before accepting.
7291
7292 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
7293
7294 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
7295
7296 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7297
7298 Revert:
7299 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7300 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
7301 tuning parameters.
7302 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
7303
7304 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
7305
7306 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
7307
7308 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
7309
7310 * config/sh/predicates.md: Remove blank lines.
7311 * config/sh/sh.c: Fix typos in comments.
7312 * config/sh/constraints.md: Likewise.
7313 * config/sh/sh.md: Remove blank lines.
7314 Fix typos in comments. Use ;; as comment characters.
7315
7316 2012-02-26 Walter Lee <walt@tilera.com>
7317
7318 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
7319 (replace_mov_pcrel_step2): Ditto.
7320
7321 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
7322
7323 PR debug/52001
7324 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
7325 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
7326 and locs that reference values newer than the non-canonical value
7327 at hand. Return the canonical value as a worst case.
7328 (memrefs_conflict_p): Walk canonical value's locs.
7329
7330 PR debug/52001
7331 * cselib.c (preserve_only_constants): Rename to...
7332 (preserve_constants_and_equivs): ... this. Split out...
7333 (invariant_or_equiv_p): ... this. Preserve plus expressions
7334 of other preserved expressions too.
7335 (cselib_reset_table): Adjust.
7336 * var-tracking.c (reverse_op): Use canonical value to build
7337 reverse operation.
7338
7339 2012-02-23 Kai Tietz <ktietz@redhat.com>
7340
7341 * config/i386/i386.c (ix86_delegitimize_address): Handle
7342 UNSPEC_PCREL plus displacement.
7343
7344 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
7345
7346 PR target/52261
7347 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
7348 to test for unusedness in st X addressing.
7349
7350 2012-02-24 Richard Guenther <rguenther@suse.de>
7351
7352 PR middle-end/52361
7353 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
7354 (is_gimple_reg_type): Move inline ...
7355 * gimple.h (is_gimple_reg_type): ... here.
7356
7357 2012-02-24 Richard Guenther <rguenther@suse.de>
7358
7359 PR middle-end/52361
7360 * passes.c (execute_function_todo): When verifying SSA form
7361 verify gimple form first.
7362 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
7363
7364 2012-02-24 Richard Guenther <rguenther@suse.de>
7365
7366 PR middle-end/52355
7367 * fold-const.c (fold_addr_of_array_ref_difference): New function.
7368 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
7369
7370 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7371
7372 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
7373
7374 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7375
7376 * tree-phinodes.c (make_phi_node): Mark static.
7377 * tree-flow.h (make_phi_node): Remove extern decl.
7378 * doc/gimple.texi (make_phi_node): Remove documentation.
7379
7380 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7381
7382 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
7383 * tree-ssa-sccvn.c (print_scc): Ditto.
7384
7385 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7386
7387 * doc/passes.texi (Full redundancy elimination): Fix typo.
7388
7389 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7390
7391 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
7392
7393 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
7394
7395 PR bootstrap/52287
7396 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
7397
7398 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
7399
7400 PR c/52290
7401 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
7402
7403 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
7404
7405 * config/avr/avr.md (code_stdname): Add ior, xor.
7406 (xior): New code iterator.
7407 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
7408 (*<code_stdname><mode>qi.byte1-3): Ditto.
7409
7410 2012-02-23 Jakub Jelinek <jakub@redhat.com>
7411
7412 PR tree-optimization/52019
7413 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
7414 CLOBBER stmts.
7415
7416 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7417
7418 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
7419 HAVE_INITFINI_ARRAY to work around namespace pollution in
7420 certain versions of newlib system headers.
7421 * config.in: Regenerate.
7422 * configure: Regenerate.
7423 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
7424 instead of HAVE_INITFINI_ARRAY.
7425
7426 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
7427
7428 PR target/52330
7429 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
7430 is not offsettable memory reference.
7431
7432 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
7433
7434 PR target/18145
7435 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
7436 setting avr_need_clear_bss_p for __gnu_lto* symbols.
7437
7438 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
7439
7440 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
7441 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
7442
7443 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7444
7445 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
7446 library on Solaris 8 even without TLS support.
7447 * configure: Regenerate.
7448
7449 2012-02-22 Richard Guenther <rguenther@suse.de>
7450
7451 PR middle-end/52329
7452 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
7453 for GIMPLE_DEBUG stmts.
7454
7455 2012-02-22 Martin Jambor <mjambor@suse.cz>
7456
7457 PR middle-end/51782
7458 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
7459 according to the base object.
7460
7461 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
7462
7463 PR rtl-optimization/50063
7464 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
7465 and 2 (8-bit SP) in operand 2.
7466 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
7467 setup to use movhi_sp_r instead of vanilla move to write SP.
7468 Adjust REG_CFA notes to superseed unspec.
7469 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
7470 of vanilla move.
7471 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
7472 known to be off) only with TARGET_NO_INTERRUPTS. Never use
7473 irq_state 1 (IRQ known to be on) here.
7474
7475 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
7476
7477 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
7478 WORDS_BIG_ENDIAN.
7479 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
7480 assign_hard_reg): Likewise.
7481
7482 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
7483
7484 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
7485
7486 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
7487
7488 * config/avr/avr.md
7489 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
7490 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
7491
7492 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
7493
7494 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
7495 prototype from here to...
7496 * config/avr/avr.h: ...here.
7497
7498 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
7499
7500 PR target/52294
7501 * thumb2.md (thumb2_shiftsi3_short): Split register and
7502 immediate shifts. For register shifts tie operands 0 and 1.
7503 (peephole2 for above): Check that register-controlled shifts
7504 have suitably tied operands.
7505
7506 2012-02-21 Quentin Neill <quentin.neill@amd.com>
7507
7508 PR target/52137
7509 * config/i386/bdver1.md (bdver1_call, bdver1_push,
7510 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
7511 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
7512 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
7513 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
7514 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
7515 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
7516 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
7517 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
7518 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
7519 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
7520 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
7521 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
7522 bdver1_ssevector_avx256_unaligned_load,
7523 bdver1_ssevector_sse128_unaligned_load,
7524 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
7525 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
7526 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
7527 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
7528 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
7529 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
7530 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
7531 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
7532 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
7533 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
7534 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
7535 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
7536 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
7537 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
7538 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
7539 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
7540 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
7541 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
7542 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
7543 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
7544 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
7545 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
7546 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
7547 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
7548 bdver1_ssediv_double_load, bdver1_ssediv_double,
7549 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
7550 Add "bdver2" attribute.
7551
7552 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7553
7554 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
7555 default if possible and not specified otherwise.
7556
7557 2012-02-21 Richard Guenther <rguenther@suse.de>
7558
7559 PR middle-end/52314
7560 * gimplify.c (create_tmp_from_val): Use the main variant type
7561 for the type of the temporary we create.
7562
7563 2012-02-21 Richard Guenther <rguenther@suse.de>
7564
7565 PR tree-optimization/52324
7566 * gimplify.c (gimplify_expr): When re-gimplifying expressions
7567 do not gimplify a MEM_REF address operand if it is already
7568 in suitable form.
7569
7570 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7571
7572 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
7573 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
7574
7575 2012-02-21 Richard Guenther <rguenther@suse.de>
7576
7577 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
7578 nested_in_vect_loop.
7579
7580 2012-02-21 Jakub Jelinek <jakub@redhat.com>
7581
7582 PR tree-optimization/52318
7583 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
7584 vdef also to non-pure/const call stmts in the sequence.
7585
7586 2012-02-21 Tristan Gingold <gingold@adacore.com>
7587
7588 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
7589
7590 2012-02-20 David S. Miller <davem@davemloft.net>
7591
7592 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
7593 don't use the "rd %pc" instruction on v9 for PIC register loads.
7594
7595 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
7596
7597 PR middle-end/52141
7598 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
7599 in a transaction safe function.
7600
7601 2012-02-20 Kai Tietz <ktietz@redhat.com>
7602
7603 PR target/52238
7604 * stor-layout.c (place_field): Handle desired_align for
7605 ms-bitfields, too.
7606
7607 2012-02-20 Richard Guenther <rguenther@suse.de>
7608
7609 PR tree-optimization/52298
7610 * tree-vect-stmts.c (vectorizable_store): Properly use
7611 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
7612 outer loops.
7613 (vectorizable_load): Likewise.
7614 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7615 Access DR_STEP after ensuring it is not NULL.
7616
7617 2012-02-20 Jakub Jelinek <jakub@redhat.com>
7618
7619 PR tree-optimization/52286
7620 * fold-const.c (fold_binary_loc): For (X & C1) | C2
7621 optimization use double_int_to_tree instead of build_int_cst_wide,
7622 rewrite to use double_int vars.
7623
7624 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7625
7626 PR target/50166
7627 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
7628 Define _start.
7629 Remove -e 0 from $gcc_cv_ld invocation.
7630 Only use __GLIBC_PREREQ if defined.
7631 Enable on Solaris since Solaris 8 patch.
7632 (gcc_SUN_LD_VERSION): New macro.
7633 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
7634 gcc_SUN_LD_VERSION for version number format.
7635 * configure: Regenerate.
7636 * varasm.c (get_elf_initfini_array_priority_section): Set
7637 SECTION_NOTYPE for non-default priority.
7638 Use get_section instead of get_unnamed_section to emit
7639 .init_array/.fini_array with default priority.
7640
7641 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
7642
7643 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
7644 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
7645 (mips_start_unique_function, mips_output_mips16_rdhwr)
7646 (mips_code_end): New functions.
7647 (TARGET_ASM_CODE_END): Define.
7648
7649 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
7650
7651 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
7652 to stubs with non-sibling calls.
7653
7654 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
7655
7656 * doc/invoke.texi (-fira-* options): Copy-edit.
7657 (ira-* parameters): Copy-edit.
7658
7659 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
7660
7661 * doc/invoke.texi: Minor copy-edits to bring into conformance with
7662 GCC coding conventions.
7663
7664 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
7665
7666 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
7667 when used as adjectives.
7668
7669 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
7670
7671 * doc/invoke.texi: Clean up "that"/"which" confusion.
7672
7673 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
7674
7675 * system.h: Poison SMALL_REGISTER_CLASSES
7676 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
7677 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
7678
7679 2012-02-16 Jakub Jelinek <jakub@redhat.com>
7680
7681 PR tree-optimization/52285
7682 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
7683 when deciding if a call is a tail call or tail recursion.
7684
7685 2012-02-16 Kai Tietz <ktietz@redhat.com>
7686
7687 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
7688 interger-constant displacement for UNSPEC_PCREL.
7689
7690 2012-02-16 Jakub Jelinek <jakub@redhat.com>
7691
7692 PR rtl-optimization/52208
7693 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
7694 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
7695
7696 PR tree-optimization/52255
7697 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
7698 loop->header has virtual PHI, but exit_e->dest doesn't, add
7699 virtual PHI to exit_e->dest and adjust all uses after the loop.
7700
7701 PR debug/52260
7702 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
7703 children with clone_tree_hash, not after it.
7704
7705 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
7706
7707 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
7708 extended identifiers.
7709
7710 2012-02-16 Jakub Jelinek <jakub@redhat.com>
7711
7712 PR middle-end/51929
7713 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
7714 a same_body_alias, also test whether e->callee isn't a former
7715 or current clone of the decl this is a same body alias of.
7716
7717 PR translation/52264
7718 * cgraphunit.c (verify_cgraph_node): Fix a typo.
7719
7720 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
7721
7722 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
7723
7724 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7725
7726 PR target/52199
7727 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
7728 force_reg instead of copy_to_reg for better optimization. Force
7729 non-register or memory operands into a register.
7730
7731 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
7732
7733 * extend.texi: Reserve upper bits of memory model for future use.
7734
7735 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
7736 Anatoly Sokolov <aesok@post.ru>
7737 Eric Weddington <eric.weddington@atmel.com>
7738
7739 PR target/52261
7740 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
7741 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
7742 Rewrite initializers for .macro.
7743 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
7744 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
7745 atxmega32d4, atxmega32x1.
7746 avrxmega4: atxmega64a3, atxmega64d3.
7747 avrxmega5: atxmega64a1, atxmega64a1u.
7748 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
7749 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
7750 avrxmega7: atxmega128a1, atxmega128a1u.
7751 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
7752 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
7753 (struct base_arch_s): Rename reserved to xmega_p.
7754 Rename reserved2 to have_rampd.
7755 (AVR_XMEGA): New define.
7756 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
7757 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
7758 * config/avr/predicates.md (io_address_operand): Take into
7759 account SFR offset.
7760 (low_io_address_operand): Ditto.
7761 (high_io_address_operand): Ditto.
7762 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
7763 (enabled, movhi_sp_r): Use them.
7764 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
7765 cpp_define_formatted to built-in define __AVR_ARCH__.
7766 (__AVR_XMEGA__): New built-in define.
7767 (__AVR_HAVE_RAMPD__): New built-in define.
7768 (__AVR_HAVE_RAMPX__): New built-in define.
7769 (__AVR_HAVE_RAMPY__): New built-in define.
7770 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
7771
7772 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
7773 (avr_option_override): Initialize them.
7774 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
7775 (avr_init_expanders): Initialize them. No more block several calls.
7776 (emit_push_sfr): New static function.
7777 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
7778 Handle AVR_XMEGA.
7779 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
7780 (avr_print_operand): Print addreeses as symbols for
7781 RAMPX, RAMPY, RAMPD, CCP.
7782 (output_movhi): Handle AVR_XMEGA when writing to SP.
7783 (avr_out_movhi_mr_r_xmega): New static function.
7784 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
7785 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
7786 __RAMPD__, __CCP__ as needed.
7787
7788 * config/avr/multilib.h: Regenerate.
7789 * config/avr/t-multilib: Regenerate.
7790 * config/avr/avr-tables.opt: Regenerate.
7791
7792 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
7793
7794 PR tree-optimization/50561
7795 * graphite-flattening.c (lst_project_loop): Do not
7796 remove old scattering dimensions after flattening.
7797 (lst_do_flatten): Likewise.
7798
7799 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
7800
7801 * doc/extend.texi (AVR Built-in Functions): Remove doc for
7802 __builtin_avr_map8, __builtin_avr_map16.
7803 Document __builtin_avr_insert_bits.
7804
7805 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
7806 (insert_bits): New insn.
7807 (adjust_len.map_bits): Rename to insert_bits.
7808 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
7809 * avr-protos.h (avr_out_map_bits): Remove.
7810 (avr_out_insert_bits, avr_has_nibble_0xf): New.
7811 * config/avr/constraints.md (Cxf,C0f): New.
7812 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
7813 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
7814 New built-in define __BUILTIN_AVR_INSERT_BITS.
7815 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
7816 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
7817 (avr_move_bits): Rewrite.
7818 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
7819 functions.
7820 (avr_map_op_t): New typedef.
7821 (avr_map_op): New static variable.
7822 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
7823 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
7824 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
7825 (bdesc_3arg, avr_expand_triop_builtin): New.
7826 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
7827 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
7828 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
7829 (avr_map_equal_p, avr_map_sig_p): Remove.
7830 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
7831 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
7832 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
7833 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
7834 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
7835 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
7836
7837 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
7838
7839 * config/c6x/c6x.md (reserve_cycles): New attribute.
7840 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
7841 don't reserve functional units after the branch occurs.
7842
7843 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
7844
7845 PR middle-end/52142
7846 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
7847 functions into non-tm_pure functions.
7848
7849 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
7850
7851 PR lto/52178
7852 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
7853 (iterative_hash_canonical_type): Likewise.
7854 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
7855 the dead edges.
7856
7857 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
7858
7859 * haifa-sched.c (prune_ready_list): Ensure that if there is a
7860 sched-group insn, it either remains alone or the entire list is pruned.
7861
7862 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
7863
7864 * doc/install.texi (Prerequisites): Fix grammar.
7865 (Configuration): Likewise.
7866
7867 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
7868
7869 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
7870 MPC as part of GCC before describing configuring with --with-gmp etc.
7871 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
7872 sources are present.
7873
7874 2012-02-14 Jakub Jelinek <jakub@redhat.com>
7875
7876 PR debug/51950
7877 * dwarf2out.c (clone_tree_hash): New function.
7878 (copy_decls_walk): Use it instead of clone_tree.
7879
7880 2012-02-14 Richard Guenther <rguenther@suse.de>
7881
7882 PR tree-optimization/52244
7883 PR tree-optimization/51528
7884 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
7885 replacements for integral types.
7886
7887 2012-02-14 Walter Lee <walt@tilera.com>
7888
7889 * config.gcc: Handle tilegx and tilepro.
7890 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
7891 tilegx and tilepro.
7892 Add HAVE_AS_TLS check for tilegx and tilepro.
7893 * configure: Regenerate.
7894 * doc/contrib.texi: Add Mat Hostetter and self.
7895 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
7896 Document instruction intrinsics and network accessing intrinsics.
7897 (TILEPro Built-in Functions): New node. Document instruction
7898 intrinsics and network accessing intrinsics.
7899 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
7900 (Specific, tilepro-*-linux*): Likewise.
7901 * doc/invoke.texi (TILE-Gx Options): New section.
7902 (TILEPro Options): New section.
7903 * doc/md.texi (TILE-Gx): New section.
7904 (TILEPro): New section.
7905 * common/config/tilegx/tilegx-common.c: New file.
7906 * common/config/tilepro/tilepro-common.c: New file.
7907 * config/tilegx/constraints.md: New file.
7908 * config/tilegx/linux.h: New file.
7909 * config/tilegx/mul-tables.c: New file.
7910 * config/tilegx/predicates.md: New file.
7911 * config/tilegx/sync.md: New file.
7912 * config/tilegx/t-tilegx: New file.
7913 * config/tilegx/tilegx-builtins.h: New file.
7914 * config/tilegx/tilegx-c.c: New file.
7915 * config/tilegx/tilegx-generic.md: New file.
7916 * config/tilegx/tilegx-modes.def: New file.
7917 * config/tilegx/tilegx-multiply.h: New file.
7918 * config/tilegx/tilegx-protos.h: New file.
7919 * config/tilegx/tilegx.c: New file.
7920 * config/tilegx/tilegx.h: New file.
7921 * config/tilegx/tilegx.md: New file.
7922 * config/tilegx/tilegx.opt: New file.
7923 * config/tilepro/constraints.md: New file.
7924 * config/tilepro/gen-mul-tables.cc: New file.
7925 * config/tilepro/linux.h: New file.
7926 * config/tilepro/mul-tables.c: New file.
7927 * config/tilepro/predicates.md: New file.
7928 * config/tilepro/t-tilepro: New file.
7929 * config/tilepro/tilepro-builtins.h: New file.
7930 * config/tilepro/tilepro-c.c: New file.
7931 * config/tilepro/tilepro-generic.md: New file.
7932 * config/tilepro/tilepro-modes.def: New file.
7933 * config/tilepro/tilepro-multiply.h: New file.
7934 * config/tilepro/tilepro-protos.h: New file.
7935 * config/tilepro/tilepro.c: New file.
7936 * config/tilepro/tilepro.h: New file.
7937 * config/tilepro/tilepro.md: New file.
7938 * config/tilepro/tilepro.opt: New file.
7939
7940 2012-02-14 Jakub Jelinek <jakub@redhat.com>
7941
7942 PR tree-optimization/52210
7943 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
7944 vect_model_simple_cost with two entry vect_def_type array instead
7945 of an address of dt.
7946
7947 2012-02-14 Richard Guenther <rguenther@suse.de>
7948
7949 PR lto/52178
7950 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
7951 Do not stream DECL_QUALIFIER.
7952 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
7953 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
7954 (find_decls_types_r): Do not walk DECL_QUALIFIER.
7955
7956 2012-02-14 Jakub Jelinek <jakub@redhat.com>
7957
7958 PR c/52181
7959 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
7960 newdecl.
7961
7962 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7963
7964 PR bootstrap/52172
7965 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
7966 * cselib.c (cselib_subst_to_values_from_insn): New function.
7967 * sched-deps.c (add_insn_mem_dependence,
7968 sched_analyze_1, sched_analyze_2): Use it.
7969
7970 2012-02-13 Jan Hubicka <jh@suse.cz>
7971
7972 PR middle-end/52214
7973 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
7974
7975 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
7976
7977 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
7978 (GTM_SELF_SPECS): Define if not already defined.
7979 (driver_self_specs): Add GTM_SELF_SPECS.
7980 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
7981 (GTM_SELF_SPECS): Define.
7982 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
7983 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
7984
7985 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7986
7987 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
7988 away if seen.
7989
7990 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
7991
7992 PR middle-end/52230
7993 * omp-low.c (expand_omp_for): If a static schedule without chunk size
7994 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
7995
7996 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
7997
7998 PR c/52190
7999 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
8000
8001 2012-02-13 Richard Guenther <rguenther@suse.de>
8002
8003 PR translation/52211
8004 * passes.c (enable_disable_pass): Fix typo.
8005
8006 2012-02-13 Jakub Jelinek <jakub@redhat.com>
8007
8008 PR middle-end/52209
8009 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
8010 XOR for reduce_bit_field if type is unsigned.
8011
8012 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
8013
8014 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
8015 disallow changes from SFmode to mode with different size in FP regs.
8016
8017 2012-02-12 Robert Millan <rmh@gnu.org>
8018 Gerald Pfeifer <gerald@pfeifer.com>
8019
8020 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
8021 Tweak comment.
8022
8023 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
8024
8025 PR rtl-optimization/52175
8026 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
8027 to frame-related instructions.
8028
8029 2012-02-10 Jason Merrill <jason@redhat.com>
8030
8031 PR c++/51910
8032 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
8033 (demangle_new_symbols): Fill it.
8034 (scan_linker_output): Walk it.
8035 (start_tweaking): Split out from scan_linker_output.
8036 (maybe_tweak): Update sym->chosen.
8037 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
8038
8039 2012-02-11 Jakub Jelinek <jakub@redhat.com>
8040
8041 PR debug/52132
8042 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
8043
8044 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
8045
8046 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
8047 having the same mode as previous compare.
8048
8049 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
8050
8051 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
8052 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
8053 (nonlocal_goto_internal): Likewise.
8054 (nonlocal_goto): Emit a use and an indirect jump directly.
8055
8056 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
8057
8058 PR c/52190
8059 * doc/extend.texi : Update comments for __atomic_compare_exchange and
8060 __atomic_{is,always}_lock_free.
8061
8062 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
8063
8064 PR target/52146
8065 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
8066 negative constant address for TARGET_X32.
8067
8068 2012-02-10 Richard Henderson <rth@redhat.com>
8069
8070 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
8071 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
8072 for GIMPLE_TRANSACTION. Tidy if's into a switch.
8073
8074 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8075 Ira Rosen <irar@il.ibm.com>
8076
8077 PR tree-optimization/50031
8078 * targhooks.c (default_builtin_vectorization_cost): Handle
8079 vec_promote_demote.
8080 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
8081 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
8082 all types of reduction and pattern statements.
8083 (vect_estimate_min_profitable_iters): Likewise.
8084 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
8085 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
8086 for explicit realigns.
8087 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
8088 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
8089 vec_promote_demote.
8090 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
8091 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
8092 vec_perm for VSX and handle vec_promote_demote.
8093
8094 2012-02-10 Jakub Jelinek <jakub@redhat.com>
8095
8096 PR middle-end/52177
8097 * builtins.c (fold_builtin_atomic_always_lock_free,
8098 expand_builtin_atomic_always_lock_free,
8099 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
8100 Return and/or test boolean_true_node/boolean_false_node instead of
8101 integer_one_node/integer_zero_node.
8102
8103 2012-02-10 Jan Hubicka <jh@suse.cz>
8104
8105 PR middle-end/48600
8106 * predict.c (predict_paths_for_bb): Prevent looping.
8107 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
8108
8109 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
8110
8111 * config/arm/arm.c (output_move_double): In one case properly
8112 count number of instructions that will be emitted.
8113
8114 2012-02-10 Richard Guenther <rguenther@suse.de>
8115
8116 PR translation/52193
8117 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
8118
8119 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
8120
8121 PR middle-end/52140
8122 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
8123
8124 2012-02-09 Jakub Jelinek <jakub@redhat.com>
8125
8126 PR debug/52165
8127 * var-tracking.c (emit_note_insn_var_location): If
8128 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
8129 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
8130 non-NOTE_DURING_CALL_P insn.
8131
8132 2012-02-09 Bin Cheng <bin.cheng@arm.com>
8133
8134 PR middle-end/51867
8135 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
8136
8137 2012-02-08 Magnus Granberg <zorry@gentoo.org>
8138
8139 PR driver/48524
8140 * gcc.c (switch_matches) Support switches with separated form,
8141 -D and -U.
8142
8143 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
8144
8145 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
8146 (SP_ADDR): Ditto.
8147 (RAMPZ_ADDR): Ditto.
8148 * config/avr/avr.c (avr_addr_t): New typedef.
8149 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
8150 (avr_init_expanders): Initialize it.
8151 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
8152 SREG_ADDR.
8153 (expand_epilogue): Ditto.
8154 (avr_print_operand): Ditto.
8155 (avr_file_start): Ditto.
8156 (avr_emit_movmemhi): Ditto.
8157
8158 2012-02-08 Richard Guenther <rguenther@suse.de>
8159
8160 PR tree-optimization/46886
8161 * tree-flow.h (do_while_loop_p): Declare.
8162 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
8163 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
8164
8165 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
8166
8167 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
8168 always succeed for integers larger than a native word.
8169
8170 2012-02-08 Richard Guenther <rguenther@suse.de>
8171
8172 PR rtl-optimization/52170
8173 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
8174 properly handle integer vector modes.
8175
8176 2012-02-08 Jakub Jelinek <jakub@redhat.com>
8177
8178 PR gcov-profile/52150
8179 * coverage.c: Include target.h.
8180 (build_var): Call targetm.strip_name_encoding on the assembler name.
8181 Change one _ into . or $ if the target allows it.
8182 * Makefile.in (coverage.o): Depend on $(TARGET_H).
8183
8184 PR rtl-optimization/52139
8185 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
8186 is a BARRIER after emit_insn_after_noloc, move BB_END
8187 to the last non-BARRIER insn before it.
8188
8189 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
8190
8191 PR middle-end/24306
8192 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
8193 (mips_gimplify_va_arg_expr): Call it instead of
8194 std_gimplify_va_arg_expr.
8195
8196 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8197
8198 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
8199 message for -mno-pointers-to-nested-function.
8200
8201 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
8202
8203 PR middle-end/51994
8204 * expr.c (get_inner_reference): If there is an offset, add a negative
8205 bit position to it (if any).
8206
8207 2012-02-07 Jakub Jelinek <jakub@redhat.com>
8208
8209 PR rtl-optimization/52060
8210 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
8211 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
8212 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
8213 and/or i0src_copy2 when needed.
8214
8215 2012-02-07 Jakub Jelinek <jakub@redhat.com>
8216
8217 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
8218 or LTOPLUGINSONAME if have_c.
8219
8220 * config/freebsd-spec.h: Add comment about what macros can be defined
8221 in this header.
8222 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
8223 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
8224 here instead.
8225
8226 2012-02-07 Richard Guenther <rguenther@suse.de>
8227
8228 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
8229 newline in -alias dumps.
8230
8231 2012-02-07 Kai Tietz <ktietz@redhat.com>
8232 Dave Korn <dave.korn.cygwin@gmail.com>
8233
8234 PR target/40068
8235 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
8236 Take care that typinfo gets dllexport-attribute.
8237
8238 2012-02-07 Jakub Jelinek <jakub@redhat.com>
8239
8240 PR middle-end/52074
8241 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
8242 if modifier < EXPAND_SUM call force_operand on the result.
8243
8244 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
8245
8246 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
8247 adding __forwarder_dst__ prefix if a forwarder_section attribute is
8248 present.
8249 (epiphany_function_type): Replace types for specific interrupts with
8250 EPIPHANY_FUNCTION_INTERRUPT.
8251 (EPIPHANY_INTERRUPT_P): Update.
8252 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
8253 New static function.
8254 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
8255 <disinterrupt>: Affects type identity.
8256 (epiphany_handle_interrupt_attribute): Handle variable number of
8257 arguments.
8258 (epiphany_compute_function_type): Update for new
8259 epiphany_function_type definition.
8260 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
8261 handlers with a longcall forwarder.
8262 (epiphany_start_function): Handle multiple interrupt arguments and/or
8263 forwarder_section attribute.
8264
8265 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
8266 libgloss.
8267
8268 2012-02-07 Alan Modra <amodra@gmail.com>
8269
8270 PR target/52107
8271 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
8272 subregs of TFmode.
8273
8274 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8275
8276 PR tree-optimization/50969
8277 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
8278 use vec_perm rather than vector_stmt.
8279 (vect_model_load_cost): Likewise.
8280 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
8281 vec_perm to be the same as other vector statements.
8282 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
8283 cost of vec_perm for TARGET_VSX.
8284
8285 2012-02-06 Richard Guenther <rguenther@suse.de>
8286
8287 PR tree-optimization/52115
8288 * tree-sra.c (access_has_replacements_p): New function.
8289 (sra_modify_assign): Use it to decide whether a use is uninitialized.
8290
8291 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
8292
8293 PR middle-end/52047
8294 * trans-mem.c (expand_call_tm): Add an assertion.
8295 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
8296 functions.
8297
8298 2012-02-06 Richard Guenther <rguenther@suse.de>
8299
8300 PR tree-optimization/50955
8301 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
8302 raise cost of expressions that replace an address with an
8303 expression based on a different pointer.
8304
8305 2012-02-06 Jakub Jelinek <jakub@redhat.com>
8306
8307 PR target/52129
8308 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
8309 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
8310
8311 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8312
8313 PR c++/48680
8314 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
8315 -Weffc++ and specify guidelines come from second edition.
8316
8317 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
8318
8319 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
8320 (sibcall_value_multiple_internal, call_split, call_internal_direct)
8321 (call_direct_split, call_value_split, call_value_internal_direct)
8322 (call_value_direct_split, call_value_multiple_split): Use jal and
8323 jal_macro attributes.
8324
8325 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
8326
8327 * reload1.c (reload_regs_reach_end_p): Replace with...
8328 (reload_reg_rtx_reaches_end_p): ...this function.
8329 (new_spill_reg_store): Update commentary.
8330 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
8331 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
8332 before setting new_spill_reg_store.
8333 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
8334 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
8335 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
8336 for non-spill reload registers.
8337
8338 2012-02-05 Ira Rosen <irar@il.ibm.com>
8339
8340 PR tree-optimization/52091
8341 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
8342 (vect_is_simple_use_1): Likewise.
8343 * tree-vect-loop.c (vectorizable_reduction): Update calls
8344 to vect_is_simple_use_1 and vect_is_simple_use.
8345 (vectorizable_live_operation): Likewise.
8346 * tree-vect-patterns.c (widened_name_p,
8347 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
8348 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
8349 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
8350 vectorizable_shift,vectorizable_operation, vectorizable_store,
8351 vectorizable_load): Likewise.
8352 (vect_is_simple_cond): Add an argument, pass it to
8353 vect_is_simple_use_1.
8354 (vectorizable_condition): Update calls to vect_is_simple_cond,
8355 vect_is_simple_use.
8356 (vect_is_simple_use): Add an argument, the statement in which
8357 OPERAND is used. Check that if OPERAND's def stmt is a double
8358 reduction phi node, the use is a phi node too.
8359 (vect_is_simple_use_1): Add an argument, pass it to
8360 vect_is_simple_use.
8361 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
8362 to vect_is_simple_use.
8363
8364 2012-02-04 Jakub Jelinek <jakub@redhat.com>
8365
8366 PR rtl-optimization/52095
8367 * modulo-sched.c (dump_insn_locator): New function.
8368 (loop_canon_p, sms_schedule): Use it.
8369
8370 PR rtl-optimization/52113
8371 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
8372 even for decomposable shift/zext insns.
8373
8374 2012-02-03 Jakub Jelinek <jakub@redhat.com>
8375 Zdenek Dvorak <ook@ucw.cz>
8376
8377 PR rtl-optimization/52092
8378 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
8379 on get_iv_value result.
8380
8381 2012-02-02 Andrew Pinski <apinski@cavium.com>
8382
8383 PR middle-end/47982
8384 PR middle-end/43967
8385 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
8386
8387 2012-02-02 Jakub Jelinek <jakub@redhat.com>
8388
8389 PR middle-end/48071
8390 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
8391
8392 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
8393
8394 PR rtl-optimization/49800
8395 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
8396 (sched_finish): Call regstat_free_n_sets_and_refs.
8397
8398 2012-02-02 Jia Liu <proljc@gmail.com>
8399
8400 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
8401 than operand 2.
8402
8403 2012-02-02 Jan Hubicka <jh@suse.cz>
8404 Tom de Vries <tom@codesourcery.com>
8405
8406 PR middle-end/51998
8407 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
8408 * varpool.c (varpool_analyze_pending_decls): Likewise.
8409
8410 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
8411 Jayant R Sonar <jayant.sonar@kpitcummins.com>
8412
8413 * config.gcc: Add cr16-* support.
8414
8415 * doc/extend.texi: Document cr16 extensions.
8416 * doc/install.texi: Document cr16 install.
8417 * doc/invoke.texi: Document cr16 options.
8418 * doc/md.texi: Document cr16 constraints.
8419
8420 * common/config/cr16/cr16-common.c: New file.
8421 * config/cr16/cr16.c: New file.
8422 * config/cr16/cr16.h: New file.
8423 * config/cr16/cr16.md: New file.
8424 * config/cr16/cr16.opt: New file.
8425 * config/cr16/cr16-protos.h: New file.
8426 * config/cr16/predicates.md: New file.
8427 * config/cr16/constraints.md: New file.
8428 * config/cr16/t-cr16: New file.
8429
8430 2012-02-02 Jakub Jelinek <jakub@redhat.com>
8431
8432 PR target/52086
8433 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
8434 that operands[2] is either immediate, or q_regs_operand.
8435
8436 PR tree-optimization/52073
8437 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
8438 a pattern stmt for pattern uses, ignore uses outside of the loop.
8439
8440 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
8441
8442 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
8443 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
8444 (OUT_AS1, OUT_AS2): Remove.
8445
8446 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
8447
8448 PR rtl-optimization/51374
8449 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
8450 to cross other volatile_refs_p insns.
8451
8452 2012-02-01 Richard Guenther <rguenther@suse.de>
8453
8454 * doc/invoke.texi (fno-inline): Clarify documentation.
8455 (finline-small-functions): Likewise.
8456 (finline-functions): Likewise.
8457 * common.opt (finline): Adjust comment and documentation.
8458 (finline-small-functions): Clarify documentation.
8459 (finline-functions): Likewise.
8460 (finline-functions-called-once): Likewise.
8461
8462 2012-02-01 Tristan Gingold <gingold@adacore.com>
8463
8464 * c-typeck.c (composite_type): Keep mode for pointers.
8465
8466 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
8467
8468 * function.h (regno_reg_rtx): Adjust comment.
8469 * reginfo.c (init_reg_modes_target): Only use the previous mode
8470 if it fits within one register. Remove MIPS comment.
8471
8472 2012-01-31 Jakub Jelinek <jakub@redhat.com>
8473
8474 PR bootstrap/52058
8475 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
8476
8477 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8478
8479 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
8480 to srak instruction.
8481
8482 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8483
8484 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
8485
8486 2012-01-31 Jakub Jelinek <jakub@redhat.com>
8487
8488 PR bootstrap/52041
8489 PR bootstrap/52039
8490 PR target/51974
8491 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
8492
8493 2012-01-31 Richard Guenther <rguenther@suse.de>
8494
8495 PR tree-optimization/51528
8496 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
8497 assigns.
8498
8499 2012-01-31 Jakub Jelinek <jakub@redhat.com>
8500
8501 PR bootstrap/52041
8502 PR bootstrap/52039
8503 PR target/51974
8504 * ree.c (add_removable_extension): Change def_map argument
8505 to unsigned *, store in def_map 1 + offset into *insn_list vector
8506 instead of pointers into the vector.
8507 (find_removable_extensions): Adjust caller.
8508
8509 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
8510
8511 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
8512 Transform all "* quoted-c-code" to { c-code }.
8513 Remove redundant test for "optimize" in combine patterns.
8514 Move (include "avr-dimode.md") to end of file.
8515
8516 2012-01-30 Bin Cheng <bin.cheng@arm.com>
8517
8518 PR target/51835
8519 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
8520 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
8521
8522 2012-01-30 Richard Guenther <rguenther@suse.de>
8523
8524 PR tree-optimization/52028
8525 * tree-loop-distribution.c (ldist_gen): Properly update
8526 virtual SSA form.
8527
8528 2012-01-30 Jakub Jelinek <jakub@redhat.com>
8529
8530 PR debug/52027
8531 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
8532 set_cur_line_info_table if not emitting debug info.
8533
8534 PR tree-optimization/52046
8535 * tree-vect-patterns.c (check_bool_pattern): Give up if
8536 a comparison could throw.
8537
8538 PR debug/52048
8539 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
8540
8541 2012-01-30 Richard Guenther <rguenther@suse.de>
8542
8543 PR tree-optimization/52045
8544 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
8545 SSA form if cfgcleanup did anything.
8546
8547 2012-01-30 Richard Guenther <rguenther@suse.de>
8548
8549 PR tree-optimization/52045
8550 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
8551 before computing final todo.
8552
8553 2012-01-30 Richard Guenther <rguenther@suse.de>
8554
8555 PR tree-optimization/51528
8556 * tree-sra.c (sra_modify_assign): Re-factor in preparation
8557 for PR51528 fix.
8558
8559 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
8560
8561 * df-problems.c (df_kill_notes): Check that the use refers
8562 to the note under examination.
8563
8564 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
8565
8566 PR target/51920
8567 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
8568 parameter and use short-lived pseudos.
8569 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
8570 (sparc_expand_vector_init): Const-ify local variables and adjust
8571 calls to above functions.
8572
8573 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
8574
8575 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
8576
8577 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
8578
8579 * doc/invoke.texi: Make usage of "compile time" and
8580 "run time"/"runtime" consistent throughout the file.
8581
8582 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
8583
8584 * config/alpha/alpha.c (alpha_option_override): Default to
8585 full IEEE compliance mode for Go language.
8586
8587 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
8588
8589 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
8590 (LINK_SSP_SPEC): Define.
8591
8592 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8593
8594 PR target/51871
8595 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
8596 stubs.
8597
8598 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
8599
8600 * doc/invoke.texi: Correct hyphenation of "floating point",
8601 "double precision", and related terminology throughout the file.
8602
8603 2012-01-28 Jakub Jelinek <jakub@redhat.com>
8604
8605 PR target/52006
8606 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
8607 arm_general_register_operand predicate for operand 2 instead of
8608 register_operand.
8609
8610 2012-01-27 Ian Lance Taylor <iant@google.com>
8611
8612 PR go/47656
8613 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
8614 * builtins.c (expand_builtin_init_trampoline): Add onstack
8615 parameter. Change caller.
8616 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
8617 * tree.c (build_common_builtin_nodes): Declare
8618 __builtin_init_heap_trampoline.
8619
8620 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
8621
8622 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
8623 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
8624 * config/avr/avr.c: Ditto.
8625 (avr_regnames): Remove because unused.
8626 * config/avr/avr.md (*cpse.ne): New peephole.
8627 (*cpse.eq): New peephole from former cpse peepholes.
8628
8629 2012-01-27 Michael Eager <eager@eagercon.com>
8630
8631 * config/microblaze.c (microblaze_emit_compare): Correct
8632 test after pcmp instruction.
8633
8634 2012-01-27 Richard Guenther <rguenther@suse.de>
8635
8636 PR tree-optimization/52020
8637 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
8638
8639 2012-01-27 Richard Guenther <rguenther@suse.de>
8640
8641 * ipa-pure-const.c (check_stmt): Clobbers do not make a
8642 function non-const/pure.
8643
8644 2012-01-27 Richard Guenther <rguenther@suse.de>
8645
8646 PR tree-optimization/50444
8647 * tree-sra.c (build_ref_for_offset): Properly adjust the
8648 MEM_REF type for unaligned accesses.
8649
8650 2012-01-27 Richard Guenther <rguenther@suse.de>
8651
8652 PR tree-optimization/50444
8653 * expr.c (mem_ref_refers_to_non_mem_p): New function.
8654 (expand_assignment): Use it. Properly handle misaligned
8655 bases when expanding stores to component references.
8656 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
8657 refactor that case.
8658
8659 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
8660
8661 PR middle-end/51389
8662 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
8663 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
8664 * tree-data-ref.c (find_data_references_in_loop): Make static.
8665 (compute_all_dependences): Change return type to bool. Bail out
8666 for too many datarefs in a loop. Move the hunk resetting the data
8667 dependences vector from ...
8668 (compute_data_dependences_for_loop): ... here. Account for
8669 compute_all_dependences returning false.
8670 (compute_data_dependences_for_bb): Likewise.
8671 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
8672 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
8673
8674 2012-01-27 Richard Guenther <rguenther@suse.de>
8675
8676 PR middle-end/51959
8677 * expr.c (store_field): Use the alias-set of the scratch memory
8678 for storing to it.
8679
8680 2012-01-27 Tom de Vries <tom@codesourcery.com>
8681
8682 PR tree-optimization/51990
8683 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
8684 WITH_SIZE_EXPR.
8685 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
8686
8687 2012-01-27 Jakub Jelinek <jakub@redhat.com>
8688
8689 PR debug/52001
8690 * var-tracking.c (reverse_op): Don't add any reverse operation
8691 if V already has any constant locations.
8692
8693 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
8694
8695 * doc/invoke.texi: Correct usage of "command line" (noun)
8696 vs "command-line" (adjective) throughout.
8697
8698 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
8699
8700 * doc/invoke.texi (Language Independent Options): Move
8701 -Wcoverage-mismatch blurb from here....
8702 (Warning Options): ...to here.
8703
8704 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
8705
8706 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8707 Set rs6000_always_hint to false for 476.
8708
8709 2012-01-27 Matthias Klose <doko@ubuntu.com>
8710
8711 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
8712 system root.
8713 * incpath.c (add_standard_paths): Likewise.
8714
8715 2012-01-27 Richard Henderson <rth@redhat.com>
8716
8717 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
8718 * config/m68k/sync.md (atomic_test_and_set): Rename from
8719 sync_test_and_setqi and adjust the operands.
8720 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
8721 and unconditionally enable.
8722
8723 2012-01-27 Richard Henderson <rth@redhat.com>
8724
8725 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
8726 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
8727 (ldstub): Rename from ldstubqi.
8728 (ldstub<I24MODE>): Remove.
8729
8730 2012-01-27 Richard Henderson <rth@redhat.com>
8731
8732 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
8733 * c-cppbuiltin.c (cpp_atomic_builtins): Define
8734 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
8735 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
8736 * doc/tm.texi: Rebuild.
8737
8738 2012-01-27 Richard Henderson <rth@redhat.com>
8739
8740 * optabs.c (gen_atomic_test_and_set): Remove default.
8741 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
8742
8743 2012-01-26 Jakub Jelinek <jakub@redhat.com>
8744
8745 PR rtl-optimization/51978
8746 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
8747 (combine_reaching_defs): Likewise.
8748 (struct re_info): Remove.
8749 (add_removable_extension): Remove x and data arguments,
8750 add insn, insn_list and def_map. Use the arguments directly
8751 instead of using struct re_info.
8752 (find_removable_extensions): Don't call add_removable_extension
8753 through note_stores, instead just call it with single_set
8754 result if non-NULL.
8755 (find_and_remove_re): Pass curr_cand->expr instead of
8756 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
8757
8758 2012-01-26 Michael Matz <matz@suse.de>
8759
8760 PR tree-optimization/46590
8761 * cfgexpand.c: Revert last change (r183305).
8762 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
8763 regs.
8764 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
8765 checking for emptiness.
8766
8767 2012-01-26 Jakub Jelinek <jakub@redhat.com>
8768
8769 PR middle-end/51895
8770 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
8771 non-addressable non-BLKmode base correctly.
8772
8773 2012-01-26 Michael Matz <matz@suse.de>
8774
8775 PR tree-optimization/48794
8776 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
8777 regions referenced from RESX/EH_DISPATCH.
8778
8779 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8780
8781 * config/s390/s390.h: Make BRANCH_COST an option.
8782 * config/s390/s390.opt: New option -mbranch-cost.
8783
8784 2012-01-26 Richard Henderson <rth@redhat.com>
8785
8786 Revert 2012-01-24 change:
8787 * trans-mem.c (requires_barrier): Do not instrument thread local
8788 variables and emit save/restore for them.
8789
8790 2012-01-25 Jakub Jelinek <jakub@redhat.com>
8791
8792 PR middle-end/51986
8793 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
8794 for pat == 0.
8795
8796 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
8797
8798 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
8799 ASM_OPERANDS.
8800
8801 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
8802
8803 PR target/49868
8804 Rename __pgm to __flash.
8805 Rename __pgm1 to __flash1.
8806 Rename __pgm2 to __flash2.
8807 Rename __pgm3 to __flash3.
8808 Rename __pgm4 to __flash4.
8809 Rename __pgm5 to __flash5.
8810 Rename __pgmx to __memx.
8811 * doc/extend.texi (AVR Named Address Spaces)
8812 Rename address space names as indicated above.
8813 * config/avr/avr.c (avr_addrspace): Ditto.
8814
8815 * config/avr/avr-protos.h
8816 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
8817 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
8818 * config/avr/predicates.md: Ditto.
8819 * config/avr/avr.c Ditto, and
8820 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
8821 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
8822
8823 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
8824 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
8825 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
8826 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
8827 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
8828 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
8829 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
8830 * config/avr/avr.c: Ditto.
8831 * config/avr/avr.md: Ditto.
8832
8833 2012-01-25 Jason Merrill <jason@redhat.com>
8834
8835 PR c++/51992
8836 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
8837
8838 2012-01-25 Jakub Jelinek <jakub@redhat.com>
8839
8840 PR tree-optimization/51987
8841 * tree-data-ref.c (get_references_in_stmt): Handle references in
8842 non-volatile GIMPLE_ASM.
8843
8844 2012-01-25 Richard Guenther <rguenther@suse.de>
8845
8846 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
8847 bases are dereferenced.
8848
8849 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
8850
8851 PR rtl-optimization/48374
8852 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
8853
8854 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
8855
8856 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
8857 compute_data_dependences_for_loop returns false.
8858 * tree-parloops.c (loop_parallel_p): Likewise.
8859
8860 2012-01-25 Richard Guenther <rguenther@suse.de>
8861
8862 * tree.h (get_pointer_alignment_1): Declare.
8863 * builtins.c (get_pointer_alignment_1): New function.
8864 (get_pointer_alignment): Use it.
8865
8866 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8867
8868 PR rtl-optimization/48308
8869 * combine.c (enum undo_kind): Add UNDO_LINKS.
8870 (struct undo): Add member l to other_contents and where.
8871 (do_SUBST_LINK): New.
8872 (SUBST_LINK): New.
8873 (try_combine): Handle LOG_LINKS for the dummy i1 case.
8874 (undo_all): Handle UNDO_LINKS.
8875
8876 2012-01-25 Richard Henderson <rth@redhat.com>
8877
8878 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
8879 mem inputs.
8880
8881 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8882
8883 * optabs.c (gen_atomic_test_and_set): Use each argument.
8884
8885 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8886
8887 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
8888 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
8889 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
8890 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
8891 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
8892 TARGET_PAIRED_SINGLE_FLOAT.
8893
8894 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8895
8896 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
8897 (in_struct, return_val): Remove MEM documentation.
8898 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
8899 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
8900 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
8901 and MEM_SCALAR.
8902 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8903 * cfgexpand.c (add_alias_set_conflicts): Likewise.
8904 * expr.c (store_field): Likewise.
8905 * function.c (assign_stack_temp_for_type): Likewise.
8906 * ifcvt.c (noce_try_cmove_arith): Likewise.
8907 * reload1.c (reload): Likewise.
8908 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
8909 (alpha_set_memflags): Likewise.
8910 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
8911
8912 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8913
8914 * rtl.h (true_dependence, canon_true_dependence): Remove varies
8915 parameter.
8916 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
8917 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
8918 (true_dependence_1, true_dependence, canon_true_dependence): Remove
8919 varies parameter.
8920 * cselib.c (cselib_rtx_varies_p): Delete.
8921 (cselib_invalidate_mem): Update call to canon_true_dependence.
8922 * dse.c (record_store, check_mem_read_rtx): Likewise.
8923 (scan_reads_nospill): Likewise.
8924 * cse.c (check_dependence): Likewise.
8925 (cse_rtx_varies_p): Delete.
8926 * expr.c (safe_from_p): Update call to true_dependence.
8927 * ira.c (validate_equiv_mem_from_store): Likewise.
8928 (memref_referenced_p): Likewise.
8929 * postreload-gcse.c (find_mem_conflicts): Likewise.
8930 * sched-deps.c (sched_analyze_2): Likewise.
8931 * store-motion.c (load_kills_store): Likewise.
8932 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
8933 * gcse.c (mems_conflict_for_gcse_p): Likewise.
8934 (compute_transp): Update call to canon_true_dependence.
8935
8936 2012-01-25 Richard Henderson <rth@redhat.com>
8937
8938 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
8939 (maybe_emit_atomic_test_and_set): New.
8940 (expand_sync_lock_test_and_set): Use it.
8941 (expand_atomic_test_and_set): Likewise.
8942 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
8943 the implementation; clarify implementation defined details.
8944 * doc/md.texi (atomic_test_and_set): Document.
8945
8946 2012-01-25 Richard Henderson <rth@redhat.com>
8947
8948 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
8949
8950 2012-01-25 Richard Henderson <rth@redhat.com>
8951
8952 PR target/51968
8953 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
8954 to effect no-op split.
8955
8956 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
8957
8958 PR lto/51698
8959 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
8960 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
8961 (BT_FN_VOID_PTR_INT_SIZE): New.
8962 (BT_FN_UINT_UINT_VAR): Remove.
8963 (BT_FN_UINT32_UINT32_VAR): New.
8964 (BT_FN_DOUBLE_VPTR): Remove.
8965 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
8966
8967 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
8968 (_ITM_changeTransactionMode): Same.
8969 (_ITM_memmoveRtWt): Change return type to void.
8970 (_ITM_memcpyRtWt): Same.
8971 (_ITM_memsetW): Same.
8972 (_ITM_RaRD): Change types to double.
8973 (_ITM_RD): Same.
8974 (_ITM_RaWD): Same.
8975 (_ITM_RfWD): Same.
8976
8977 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
8978
8979 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
8980 Patrick Marlier <patrick.marlier@gmail.com>
8981
8982 * trans-mem.c (requires_barrier): Do not instrument thread local
8983 variables and emit save/restore for them.
8984
8985 2012-01-24 Jason Merrill <jason@redhat.com>
8986
8987 PR c++/51812
8988 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
8989 output static aliases.
8990
8991 2012-01-24 Jakub Jelinek <jakub@redhat.com>
8992
8993 PR driver/47249
8994 * common.opt (-pie, -shared, pie, shared): Change from Common to
8995 Driver.
8996 * gcc.c (display_help): Display help for -pie and -shared.
8997
8998 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
8999
9000 PR target/49868
9001 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
9002 Remove note on size/offset limitation.
9003 (AVR Variable Attributes): Add example how to read data located
9004 with progmem. Refer to named address spaces.
9005 * doc/invoke.texi (AVR Options): Fix typo.
9006
9007 2012-01-24 Richard Guenther <rguenther@suse.de>
9008
9009 Forward-port to trunk
9010 2010-09-21 Jakub Jelinek <jakub@redhat.com>
9011
9012 PR middle-end/45678
9013 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
9014 op0 isn't sufficiently aligned and there is movmisalignM
9015 insn for mode, use it to load op0 into a temporary register.
9016
9017 2012-01-24 Jakub Jelinek <jakub@redhat.com>
9018
9019 PR target/51957
9020 * target.def (const_not_ok_for_debug_p): New hook.
9021 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
9022 documentation.
9023 * doc/tm.texi: Regenerated.
9024 * dwarf2out.c (const_ok_for_output_1): If
9025 targetm.const_not_ok_for_debug_p returns true, fail.
9026 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
9027 function.
9028 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
9029
9030 2012-01-23 Kai Tietz <ktietz@redhat.com>
9031
9032 PR target/51900
9033 * config/i386/predicates.md (symbolic_operand): Allow
9034 UNSPEC_PCREL as PIC expression for lea.
9035 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
9036 * config/i386/i386.c (ix86_delegitimize_address): Handle
9037 UNSPEC_PCREL for none-MEM, too.
9038
9039 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
9040
9041 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
9042 (ipa_tm_create_version_alias): Same.
9043
9044 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
9045
9046 PR libitm/51830
9047 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
9048 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
9049
9050 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
9051 Patrick Marlier <patrick.marlier@gmail.com>
9052 Iain Sandoe <developer@sandoe-acoustics.co.uk>
9053
9054 PR lto/51916
9055 * lto-wrapper.c (run_gcc): Pass the LTO section name to
9056 simple_object_start_read.
9057
9058 2012-01-23 Richard Guenther <rguenther@suse.de>
9059
9060
9061 PR tree-optimization/51895
9062 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
9063 parameter decomposition into BLKmode components.
9064
9065 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
9066
9067 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
9068 fake variables for restrict-qualified pointers whose pointed-to type
9069 contains a placeholder.
9070
9071 2012-01-23 Richard Guenther <rguenther@suse.de>
9072
9073 PR tree-optimization/51949
9074 * ipa-split.c (execute_split_functions): Do not split malloc functions.
9075
9076 2012-01-23 Jakub Jelinek <jakub@redhat.com>
9077
9078 PR rtl-optimization/51933
9079 * ree.c (transform_ifelse): Return true right away if dstreg is
9080 already wider or equal to cand->mode.
9081 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
9082 (make_defs_and_copies_lists): Remove defs_list and copies_list
9083 arguments, add state argument, just truncate state->work_list
9084 instead of always allocating and freeing the vector. Assert that
9085 get_defs succeeds instead of returning 2. Changed return type to bool.
9086 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
9087 have ext_src_mode, see if it has been modified already with the
9088 right kind of extension and has been extended before from the
9089 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
9090 just return true. Remember the original mode in state->modified array.
9091 (combine_reaching_defs): Add state argument. Don't allocate and
9092 free here def_list, copied_list and vec vectors, instead just
9093 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
9094 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
9095 Add state variable, clear vectors in it, initialize state.modified
9096 if needed. Free all the vectors at the end and state.modified too.
9097 Don't skip a candidate if the extension expression has been modified.
9098
9099 2012-01-22 Douglas B Rupp <rupp@gnat.com>
9100
9101 PR target/47096
9102 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
9103 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
9104 (extra_options) interix.opt -> i386/interix.opt"
9105 (extra_objs):Add winnt-stubs.o
9106 * configure.ac: Add interix to target_os .comm on PE check.
9107 * configure: Regenerate.
9108 * config/interix3.h: Delete and move bits to..
9109 * config/interix.h: Delete and move bits to..
9110 * config/i386/i386-interix3.h: Delete and move bits to..
9111 * config/i386/i386-interix.h: ..here.
9112 (TARGET_CPU_DEFAULT): Remove redefinition.
9113 (TARGET_ASM_CONSTRUCTOR): Undefine.
9114 (SUBTARGET_SWITCHES): Define for ms-bitfields.
9115 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
9116 (PTRDIFF_TYPE): Define.
9117 (LONG_DOUBLE_TYPE_SIZE): Define.
9118 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
9119 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9120 (TARGET_SECTION_TYPE_FLAGS): Define.
9121 (ASM_DECLARE_FUNCTION_NAME): Define.
9122 (ASM_OUTPUT_EXTERNAL): Define.
9123 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
9124 (ASM_OUTPUT_ALIGNED_BSS): Define.
9125 (PCC_BITFIELD_TYPE_MATTERS): Define.
9126 (USE_CONST_SECTION): Define.
9127 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
9128 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
9129 (SUPPORTS_ONE_ONLY): Remove.
9130 (I386_PE_STRIP_ENCODING): Define.
9131 * config/interix.opt: Delete and move bits to..
9132 * config/i386/interix.opt: ..here. New.
9133 (mpe-aligned-commons): Add.
9134 * config/i386/t-interix: Add copyright header.
9135 (winnt-stubs.o): Add rule.
9136
9137 2012-01-22 Jason Merrill <jason@redhat.com>
9138
9139 PR c++/51832
9140 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
9141 for extra name aliases.
9142
9143 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
9144
9145 PR rtl-optimization/51924
9146 * ree.c (combine_set_extension): Improve debugging message.
9147 (combine_reaching_defs): Likewise.
9148 (get_defs): Rename confusingly named variable.
9149 (find_and_remove_re): Skip a candidate if the extension expression has
9150 been modified.
9151
9152 2012-01-21 Robert Millan <rmh@gnu.org>
9153 Gerald Pfeifer <gerald@pfeifer.com>
9154
9155 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
9156 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
9157
9158 2012-01-20 Jakub Jelinek <jakub@redhat.com>
9159
9160 PR tree-optimization/51914
9161 * tree-vect-stmts.c (vectorizable_conversion): For
9162 cvt_type && modifier == WIDEN, put temporary with cvt_type
9163 at the beginning of vec_dsts and set vec_dest to temporary
9164 with vectype_out.
9165
9166 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
9167
9168 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
9169
9170 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
9171
9172 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
9173 * config/rs6000/rs6000.c: Likewise.
9174
9175 2012-01-20 Jakub Jelinek <jakub@redhat.com>
9176
9177 PR target/51915
9178 * config/arm/arm.c (arm_count_output_move_double_insns): Call
9179 output_move_double on a copy of operands array.
9180
9181 2012-01-20 Cary Coutant <ccoutant@google.com>
9182 Dodji Seketeli <dodji@redhat.com>
9183
9184 PR debug/45682
9185 * dwarf2out.c (copy_declaration_context): Return ref to parent
9186 of declaration DIE, if necessary.
9187 (remove_child_or_replace_with_skeleton): Add new parameter; update
9188 caller. Place skeleton DIE under parent DIE of original declaration.
9189 Move call to copy_declaration_context to here ...
9190 (break_out_comdat_types): ... from here.
9191
9192 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9193
9194 PR rtl-optimization/51856
9195 * reload.c (find_reloads_subreg_address): Set the address_reloaded
9196 flag to reloaded.
9197
9198 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9199
9200 PR target/51819
9201 * config/arm/arm.c (arm_print_operand): Correct output of alignment
9202 hints for neon loads and stores.
9203
9204 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
9205
9206 PR target/49868
9207 PR target/50887
9208 * doc/extend.texi (Named Address Spaces): Split into subsections.
9209 (AVR Named Address Spaces): New subsection.
9210 (M32C Named Address Spaces): New subsection.
9211 (RL78 Named Address Spaces): New subsection.
9212 (SPU Named Address Spaces): New subsection.
9213 (Variable Attributes): New anchor "AVR Variable Attributes".
9214 (AVR Variable Attributes): Rewrite and avoid wording
9215 "address space" in this context.
9216 * doc/invoke.texi (AVR Options): Rewrite and add documentation
9217 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
9218 (AVR Built-in Macros): New subsubsection therein.
9219 * doc/md.texi (AVR constraints): Remove "C04", "R".
9220
9221 2012-01-20 Richard Guenther <rguenther@suse.de>
9222
9223 PR tree-optimization/51903
9224 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
9225 when removing stmts.
9226
9227 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9228
9229 PR target/50313
9230 * config/arm/arm.c (arm_load_pic_register): Use
9231 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
9232 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
9233 (arm_pic_static_addr): Likewise.
9234 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
9235 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
9236 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
9237 (pic_load_addr_unified): New.
9238
9239 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
9240
9241 PR target/51106
9242 * function.c (instantiate_virtual_regs_in_insn): Use
9243 delete_insn_and_edges when removing a wrong asm insn.
9244
9245 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
9246
9247 PR rtl-optimization/40761
9248 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
9249 Add new member loop_num.
9250 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
9251 (ira_build): Remove the parameter.
9252
9253 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
9254 (ira.c): Do not build CFG loops for one region allocation. Remove
9255 argument from ira_build call.
9256
9257 * ira-build.c (init_loop_tree_node): New function.
9258 (create_loop_tree_nodes): Use it. Separate the case when CFG
9259 loops are not built.
9260 (more_one_region_p): Check current_loops.
9261 (finish_loop_tree_nodes): Separate the case when CFG loops are not
9262 built.
9263 (add_loop_to_tree): Process loop equal to NULL too.
9264 (form_loop_tree): Separate the case when CFG loops are not built.
9265 Use explicitly number for the root.
9266 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
9267 an assertion.
9268 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
9269 instead of loop->num.
9270 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
9271 (mark_all_loops_for_removal): Ditto.
9272 (remove_unnecessary_regions): Separate the case when CFG loops
9273 are not built.
9274 (ira_build): Remove the parameter. Use explicit number of regions
9275 when CFG loops are not built.
9276
9277 * ira-color.c (print_loop_title): Separate the case for the root node.
9278 Use loop_num instead of loop->num.
9279 (move_spill_restore): Use loop_num instead of loop->num.
9280
9281 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
9282 (change_loop): Ditto.
9283 (change_loop): Use loop_num instead of loop->num.
9284
9285 * ira-lives.c (process_bb_node_lives): Ditto.
9286
9287 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
9288
9289 * ira-conflicts.c (print_allocno_conflicts): Ditto.
9290
9291 2012-01-19 Jakub Jelinek <jakub@redhat.com>
9292
9293 PR libmudflap/40778
9294 * tree-mudflap.c (mf_artificial): New function.
9295 (execute_mudflap_function_ops, execute_mudflap_function_decls,
9296 mx_register_decls, mudflap_enqueue_decl): Use it.
9297
9298 PR target/51876
9299 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
9300 numbers in the insn pattern.
9301
9302 2012-01-19 Michael Matz <matz@suse.de>
9303
9304 PR tree-optimization/46590
9305 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
9306 use it in remembering which conflicts we already created.
9307 (add_scope_conflicts): Adjust call to above, (de)allocate helper
9308 bitmap.
9309
9310 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
9311
9312 PR lto/51280
9313 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
9314 (merge_and_complain): Same.
9315
9316 2012-01-19 Jakub Jelinek <jakub@redhat.com>
9317
9318 PR bootstrap/50237
9319 * config/initfini-array.h: Guard content of the header
9320 with #ifdef HAVE_INITFINI_ARRAY.
9321 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
9322 Add initfini-array.h to tm_file here.
9323 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
9324 * config.gcc: Don't add initfini-array.h to tm_file here.
9325 * configure: Regenerated.
9326
9327 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
9328
9329 PR rtl-optimization/51505
9330 * df-problems.c (df_kill_notes): New parameter live. Update comment.
9331 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
9332 (df_note_bb_compute): Update the call to df_kill_notes.
9333
9334 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
9335
9336 * trans-mem.c (requires_barrier): Remove call to is_global_var.
9337
9338 2012-01-18 Richard Guenther <rguenther@suse.de>
9339
9340 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
9341 of conversions to void *.
9342
9343 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9344 Richard Sandiford <rdsandiford@googlemail.com>
9345
9346 PR middle-end/50325
9347 PR middle-end/51192
9348 * optabs.h (simplify_expand_binop): Declare.
9349 * optabs.c (simplify_expand_binop): Make global.
9350 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
9351 endian targets if the source cannot be exactly covered by word
9352 mode chunks.
9353
9354 2012-01-17 Jakub Jelinek <jakub@redhat.com>
9355
9356 PR bootstrap/51872
9357 * hard-reg-set.h (struct hard_reg_set_container): New type.
9358 * target.h (struct hard_reg_set_container): Forward declare.
9359 * target.def (set_up_by_prologue): New target hook.
9360 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
9361 * doc/tm.texi: Regenerated.
9362 * function.c (thread_prologue_and_epilogue_insns): Change
9363 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
9364 Call targetm.set_up_by_prologue on it.
9365 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
9366 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
9367
9368 2012-01-17 Nick Clifton <nickc@redhat.com>
9369
9370 * config/rx/rx.c (rx_can_use_simple_return): New function.
9371 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
9372 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
9373
9374 2012-01-17 Richard Guenther <rguenther@suse.de>
9375
9376 PR middle-end/51782
9377 * expr.c (expand_assignment): Take address-space information
9378 from the address operand of MEM_REF and TARGET_MEM_REF.
9379 (expand_expr_real_1): Likewise.
9380
9381 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9382
9383 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
9384 reload dump is requested.
9385
9386 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
9387
9388 PR other/51165
9389 * trans-mem.c (requires_barrier): Call may_be_aliased.
9390
9391 2012-01-17 Jakub Jelinek <jakub@redhat.com>
9392
9393 PR tree-optimization/51877
9394 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
9395 call arguments and fndecls compare equal, instead return false if they
9396 don't. Return true only if lhs1 and lhs2 are either both NULL, or
9397 both SSA_NAMEs that are valueized the same, or they satisfy
9398 operand_equal_p.
9399
9400 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9401
9402 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
9403 Solaris 11+.
9404 * configure: Regenerate.
9405
9406 2012-01-16 Jan Hubicka <jh@suse.cz>
9407
9408 PR c/12245
9409 PR c++/14179
9410 * convert.c (convert_to_integer): Use fold_convert for
9411 converting an INTEGER_CST to integer type.
9412
9413 2012-01-16 Jason Merrill <jason@redhat.com>
9414
9415 PR c++/14179
9416 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
9417
9418 2012-01-16 Jakub Jelinek <jakub@redhat.com>
9419
9420 PR bootstrap/51860
9421 * config/s390/s390.c (s390_chunkify_start): Don't skip
9422 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
9423 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
9424 If insn is followed by NOTE_INSN_VAR_LOCATION or
9425 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
9426 Don't use location of note insns.
9427
9428 PR tree-optimization/51865
9429 * tree-inline.c (tree_function_versioning): Call remap_decl
9430 on DECL_RESULT whenever it has VOID_TYPE_P type.
9431
9432 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
9433
9434 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
9435 for calls to locally-binding MIPS16 functions if only the return
9436 type uses float regs.
9437
9438 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
9439 Richard Sandiford <rdsandiford@googlemail.com>
9440
9441 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
9442 (SYMBOL_32_HIGH): Likewise.
9443 (mips_output_tls_reloc_directive): Declare.
9444 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
9445 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
9446 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
9447 (mips_lo_relocs, mips_hi_relocs): Make extern.
9448 (mips16_stub_function): Move up file.
9449 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
9450 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
9451 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
9452 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
9453 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
9454 (mips_get_tp): Add MIPS16 support.
9455 (mips_legitimize_tls_address): Remove MIPS16 sorry().
9456 Generalize DTPREL and TPREL handling.
9457 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
9458 Add MIPS16 TLS support.
9459 (mips_output_tls_reloc_directive): New function.
9460 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
9461 * config/mips/predicates.md (symbolic_operand_with_high)
9462 (tls_reloc_operand): New predicates.
9463 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
9464 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
9465 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
9466 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
9467 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
9468 (*tls_get_tp_mips16_call_<mode>): Likewise.
9469
9470 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
9471
9472 PR rtl-optimization/51821
9473 * recog.c (peep2_find_free_register): Determine clobbered registers
9474 from insn pattern.
9475
9476 2012-01-14 Denis Chertykov <chertykov@gmail.com>
9477
9478 PR target/50925
9479 * config/avr/avr-protos.h: Revert change of 2012-01-09.
9480 * config/avr/avr.c: Likewise.
9481 * config/avr/avr.h: Likewise.
9482
9483 2012-01-13 Ian Lance Taylor <iant@google.com>
9484
9485 PR c++/50012
9486 * tree.h (TYPE_QUALS): Add cast to int.
9487 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
9488
9489 2012-01-13 Ian Lance Taylor <iant@google.com>
9490
9491 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
9492 comparing param_index to VEC_length result.
9493
9494 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
9495
9496 * c-decl.c: Do not include tree-mudflap.h
9497 * tree-optimize.c: Likewise.
9498 * Makefile.in: Update dependencies.
9499
9500 2012-01-13 Richard Guenther <rguenther@suse.de>
9501
9502 PR middle-end/8081
9503 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
9504 variable-sized result always use RSO.
9505
9506 2012-01-12 DJ Delorie <dj@redhat.com>
9507
9508 * cfgexpand.c (convert_debug_memory_address): Allow any valid
9509 pointer type, not just the default pointer type.
9510
9511 2012-01-09 Richard Henderson <rth@redhat.com>
9512 Denis Chertykov <chertykov@gmail.com>
9513
9514 PR target/50925
9515 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
9516 * config/avr/avr.c (avr_can_eliminate): Simplify.
9517 (avr_initial_elimination_offset): Likewise.
9518 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
9519 (expand_epilogue): Likewise.
9520 (avr_legitimize_address): Gut.
9521 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
9522 (avr_hard_regno_nregs): New.
9523 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
9524 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
9525 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
9526 add soft frame pointer.
9527 (CALL_USED_REGISTERS): Likewise.
9528 (REG_CLASS_CONTENTS): Likewise.
9529 (REGISTER_NAMES): Likewise.
9530 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
9531 (HARD_FRAME_POINTER_REGNUM): New.
9532 (FRAME_POINTER_REGNUM): Use soft frame pointer.
9533 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
9534 remove the HARD_FRAME_POINTER self-elimination.
9535
9536 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
9537
9538 PR target/51756
9539 * config/avr/avr.c (avr_encode_section_info): Test for absence of
9540 DECL_EXTERNAL when checking for initializers of progmem variables.
9541
9542 2012-01-12 Ira Rosen <irar@il.ibm.com>
9543
9544 PR tree-optimization/51799
9545 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
9546 that the last operation is a type demotion.
9547
9548 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
9549
9550 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
9551 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
9552
9553 2012-01-11 Jakub Jelinek <jakub@redhat.com>
9554
9555 PR bootstrap/51796
9556 * combine.c (distribute_notes): If i3 is a noreturn call,
9557 allow old_size to be equal to args_size and make sure the
9558 noreturn call gets REG_ARGS_SIZE note.
9559 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
9560 on noreturn calls even when the delta is 0.
9561
9562 2012-01-11 Nathan Sidwell <nathan@acm.org>
9563
9564 * gcov.c (STRING_SIZE): Remove.
9565 (generate_results): Erase annotations for source files with no
9566 coverage information.
9567 (read_line): New.
9568 (output_lines): Use it.
9569
9570 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
9571
9572 * gimple.h (gimplify_body): Remove first argument.
9573 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
9574 pointer set here, instead just pass DATA to walk_tree.
9575 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
9576 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
9577 (unvisit_body): Likewise, but with unmark_visited.
9578 (gimplify_body): Remove BODY_P argument and adjust.
9579 (gimplify_function_tree): Adjust call to gimplify_body.
9580 * omp-low.c (finalize_task_copyfn): Likewise.
9581
9582 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
9583
9584 * tree.h (build_function_decl_skip_args): Add boolean parameter.
9585 (build_function_type_skip_args): Delete.
9586 * tree.c (build_function_type_skip_args): Make static and add
9587 SKIP_RETURN parameter. Fix thinko in the handling of variants.
9588 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
9589 pass it to build_function_type_skip_args.
9590 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
9591 (tree_function_versioning): Likewise.
9592 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
9593 build_function_decl_skip_args.
9594 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
9595 and pass it to build_function_decl_skip_args/tree_function_versioning.
9596 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
9597 * ipa-inline-transform.c (save_inline_function_body): Likewise.
9598 * trans-mem.c (ipa_tm_create_version): Likewise.
9599 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
9600 * tree-inline.c (declare_return_variable): Remove always-true test.
9601 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
9602 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
9603 * ipa-split.c (split_function): Skip the return value for the split
9604 part if it doesn't return.
9605
9606 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9607
9608 PR tree-optimization/49642
9609 * ipa-split.c (forbidden_dominators): New variable.
9610 (check_forbidden_calls): New function.
9611 (dominated_by_forbidden): Likewise.
9612 (consider_split): Check for forbidden dominators.
9613 (execute_split_functions): Initialize and free forbidden
9614 dominators info; call check_forbidden_calls.
9615
9616 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9617
9618 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
9619
9620 2012-01-11 Nick Clifton <nickc@redhat.com>
9621
9622 * config/rx/rx.md (return): Define pattern.
9623
9624 2012-01-11 Richard Guenther <rguenther@suse.de>
9625
9626 * doc/extend.texi (malloc attribute): Adjust according to
9627 implementation.
9628
9629 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
9630 Patrick Marlier <patrick.marlier@gmail.com>
9631
9632 PR middle-end/51516
9633 * trans-mem.c (get_cg_data): Traverse aliases if requested.
9634 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
9635 (ipa_tm_note_irrevocable): Same.
9636 (ipa_tm_scan_irr_block): Same.
9637 (ipa_tm_decrement_clone_counts): Same.
9638 (ipa_tm_scan_irr_function): Same.
9639 (ipa_tm_create_version_alias): Same.
9640 (ipa_tm_create_version): Same.
9641 (ipa_tm_transform_calls_redirect): Same.
9642 (ipa_tm_transform_calls): Same.
9643 (ipa_tm_transform_transaction): Same.
9644 (ipa_tm_execute): Same.
9645
9646 2012-01-10 Richard Guenther <rguenther@suse.de>
9647
9648 PR middle-end/51806
9649 * opts.c (common_handle_option): Handle -Werror.
9650
9651 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
9652
9653 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
9654 operand number.
9655
9656 2012-01-10 Jason Merrill <jason@redhat.com>
9657
9658 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
9659 information.
9660
9661 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9662
9663 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
9664 supports R_386_TLS_GD_PLT reloc.
9665 (gcc_cv_as_ix86_tlsldmplt): Check if linker
9666 supports R_386_TLS_LDM_PLT reloc.
9667 * configure: Regenerate.
9668 * config.in: Regenerate.
9669
9670 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
9671
9672 PR target/49868
9673 Extend __pgmx semantics to linearize memory.
9674 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
9675 determine if code comes inline or from libgcc.
9676 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
9677 (movmem_qi, movmem_qi): Set constraint #2 to "n".
9678 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
9679 (movmemx_qi, movmemx_hi): New insns.
9680 (xload_<mode>_libgcc): Rewrite to new insn condition.
9681 (xload_<mode>): Remove insns.
9682 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
9683 cases that don't satisfy avr_xload_libgcc_p().
9684 (avr_addr_space_convert): Allow converting in any direction.
9685 (avr_addr_space_subset_p): Return always true.
9686 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
9687 (avr_emit_movmemhi): Ditto.
9688 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
9689 (avr_out_movmem): Ditto.
9690 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
9691 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
9692 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
9693 (avr_encode_section_info): Encode 'progmem' in symbol flags.
9694 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
9695
9696 2012-01-10 Richard Guenther <rguenther@suse.de>
9697
9698 PR tree-optimization/50913
9699 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
9700 Require data-refs to be representable by Graphite with respect
9701 to any loop nest.
9702
9703 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
9704
9705 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
9706 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
9707
9708 2012-01-10 Tom de Vries <tom@codesourcery.com>
9709
9710 PR rtl-optimization/51271
9711 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
9712 handling annulled branch.
9713
9714 2012-01-10 Richard Henderson <rth@redhat.com>
9715
9716 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
9717 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
9718 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
9719 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
9720 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
9721 arm_expand_vec_perm_const): New.
9722 * config/arm/arm-protos.h: Update.
9723 * config/arm/neon.md (UNSPEC_VCONCAT): New.
9724 (*neon_vswp<VDQX>): New.
9725 (neon_vcombine<VDX>): Use neon_split_vcombine.
9726 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
9727 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
9728 (vec_perm<VE>): New.
9729
9730 2012-01-10 Richard Henderson <rth@redhat.com>
9731
9732 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
9733 use it if reload_completed.
9734 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
9735 arm_output_asm_insn, arm_process_output_memory_barrier,
9736 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
9737 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
9738 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
9739 arm_process_output_sync_insn, arm_output_sync_insn,
9740 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
9741 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
9742 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
9743 (emit_unlikely_jump): New.
9744 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
9745 (arm_split_atomic_op): New.
9746 * config/arm/arm-protos.h: Update.
9747 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
9748 (struct arm_sync_generator): Remove.
9749 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
9750 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
9751 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
9752 (VUNSPEC_LL, VUNSPEC_SC): New.
9753 (sync_result, sync_memory, sync_required_value, sync_new_value,
9754 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
9755 (attr length): Don't use arm_sync_loop_insns.
9756 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
9757 (movsfcc, movdfcc): Likewise.
9758 * config/arm/constraints.md (Ua): New.
9759 * config/arm/prediates.md (mem_noofs_operand): New.
9760 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
9761 (sync_clobber, sync_t2_reqd): Remove.
9762 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
9763 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
9764 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
9765 (arm_sync_compare_and_swap<SIDI>): Remove.
9766 (arm_sync_compare_and_swap<NARROW>): Remove.
9767 (arm_sync_lock_test_and_set<SIDI>): Remove.
9768 (arm_sync_lock_test_and_set<NARROW>): Remove.
9769 (arm_sync_new_<syncop><SIDI>): Remove.
9770 (arm_sync_new_<syncop><NARROW>): Remove.
9771 (arm_sync_new_nand<SIDI>): Remove.
9772 (arm_sync_new_nand<NARROW>): Remove.
9773 (arm_sync_old_<syncop><SIDI>): Remove.
9774 (arm_sync_old_<syncop><NARROW>): Remove.
9775 (arm_sync_old_nand<SIDI>): Remove.
9776 (arm_sync_old_nand<NARROW>): Remove.
9777 (*memory_barrier): Merge arm_output_memory_barrier.
9778 (atomic_compare_and_swap<QHSD>): New.
9779 (atomic_compare_and_swap<NARROW>_1): New.
9780 (atomic_compare_and_swap<SIDI>_1): New.
9781 (atomic_exchange<QHSD>): New.
9782 (cas_cmp_operand, cas_cmp_str): New.
9783 (atomic_op_operand, atomic_op_str): New.
9784 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
9785 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
9786 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
9787 (arm_load_exclusive<NARROW>): New.
9788 (arm_load_exclusivesi, arm_load_exclusivedi): New.
9789 (arm_store_exclusive<QHSD>): New.
9790
9791 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9792
9793 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
9794 reload patterns if -mvsx-scalar-memory.
9795
9796 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
9797 generated, even -mno-vsx-scalar-double was used.
9798 (vsx_xscvdpsp_scalar): Likewise.
9799 (vsx_xscvspdp_scalar2): Likewise.
9800
9801 2012-01-09 Tom de Vries <tom@codesourcery.com>
9802 Andrew Pinski <apinski@cavium.com>
9803
9804 PR debug/51471
9805 * reorg.c (fill_slots_from_thread): Don't speculate
9806 frame-related insns.
9807
9808 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
9809
9810 * sched-int.h (bb_note): Move to...
9811 * basic-block.h: ...here.
9812 * haifa-sched.c (bb_note): Move to...
9813 * cfgrtl.c: ...here.
9814 * function.c (next_block_for_reg): New function.
9815 (move_insn_for_shrink_wrap): Likewise.
9816 (prepare_shrink_wrap): Rewrite to use the above.
9817
9818 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
9819
9820 * gimple.c (is_gimple_non_addressable): Remove.
9821 * gimple.h: Remove is_gimple_non_addressable.
9822 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
9823 is_gimple_non_addressable.
9824 * trans-mem.c (expand_assign_tm): Same.
9825
9826 2012-01-09 Richard Guenther <rguenther@suse.de>
9827
9828 PR tree-optimization/51775
9829 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
9830 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
9831
9832 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9833
9834 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
9835 tuning parameters.
9836 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
9837
9838 2012-01-09 Richard Guenther <rguenther@suse.de>
9839
9840 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
9841
9842 2012-01-08 Jan Hubicka <jh@suse.cz>
9843
9844 PR tree-optimize/51680
9845 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
9846 on when known_vals needs to be computed; cleanup.
9847
9848 2012-01-08 Jan Hubicka <jh@suse.cz>
9849
9850 PR tree-optimize/51694
9851 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
9852
9853 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
9854
9855 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
9856 for -std=c++98 and -std=c++11 too.
9857
9858 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
9859
9860 * cfgloop.c (cancel_loop): Add free() of bbs array.
9861
9862 2012-01-07 Jan Hubicka <jh@suse.cz>
9863
9864 PR tree-optimization/51600
9865 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
9866 that benefits small functions.
9867
9868 2012-01-07 Jan Hubicka <jh@suse.cz>
9869
9870 * ipa-inline.c (want_inline_small_function_p): Fix formating.
9871
9872 2012-01-07 Jan Hubicka <jh@suse.cz>
9873
9874 PR tree-optimization/51680
9875 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
9876 whose inlining reduce unit size.
9877
9878 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
9879
9880 PR bootstrap/51725
9881 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
9882 Add canonical node to containing_mem chain after the non-canonical
9883 one, even if there weren't any locs to propagate.
9884 (remove_useless_values): Keep only canonical values.
9885 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
9886 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
9887 canonicalize mem_chain elements that are not discarded.
9888
9889 2012-01-06 Jakub Jelinek <jakub@redhat.com>
9890
9891 PR target/47333
9892 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
9893 before emitting functions.
9894
9895 PR gcov-profile/50127
9896 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
9897 clear_aux_for_blocks.
9898
9899 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
9900
9901 PR debug/51746
9902 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
9903
9904 2012-01-06 Arnaud Charlet <charlet@adacore.com>
9905
9906 * c-decl.c (ext_block): Moved up.
9907 (collect_all_refs, for_each_global_decl): Take ext_block into account.
9908
9909 2012-01-06 Han Shen <shenhan@google.com>
9910
9911 Translate built-in include paths for sysroot.
9912 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
9913 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
9914
9915 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
9916 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
9917
9918 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
9919 control whether sysroot should be prepended to gxx include dir.
9920
9921 * configure: Regenerate.
9922
9923 2012-01-06 Torvald Riegel <triegel@redhat.com>
9924
9925 PR rtl-optimization/51771
9926 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
9927 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
9928
9929 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
9930
9931 PR tree-optimization/51315
9932 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
9933 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
9934
9935 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
9936
9937 PR target/51681
9938 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
9939 for shrp pattern. Correctly handle and fixup shift variable.
9940 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
9941
9942 2012-01-05 Jakub Jelinek <jakub@redhat.com>
9943
9944 PR debug/51762
9945 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
9946 note when !ACCUMULATE_OUTGOING_ARGS.
9947
9948 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
9949
9950 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
9951 condition.
9952 (extract_range_from_unary_expr_1): Avoid useless computations.
9953
9954 2012-01-05 Jakub Jelinek <jakub@redhat.com>
9955
9956 PR rtl-optimization/51767
9957 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
9958 of jump_block and add an extra edge for degenerated asm gotos.
9959
9960 PR middle-end/51768
9961 * stmt.c (check_unique_operand_names): Don't ICE during error
9962 reporting if i is from labels chain.
9963
9964 PR middle-end/44777
9965 * profile.c (branch_prob): Split bbs that have exit edge
9966 and need a fake entry edge too.
9967
9968 2012-01-05 Jan Hubicka <jh@suse.cz>
9969
9970 PR middle-end/49710
9971 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
9972 unlooping loops.
9973
9974 2012-01-05 Richard Guenther <rguenther@suse.de>
9975
9976 PR lto/50490
9977 * tree-streamer-out.c (write_ts_optimization): New function.
9978 (streamer_write_tree_body): Call it.
9979 * tree-streamer-in.c (lto_input_ts_optimization): New function.
9980 (streamer_read_tree_body): Call it.
9981 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
9982
9983 2012-01-05 Jakub Jelinek <jakub@redhat.com>
9984
9985 PR middle-end/51761
9986 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
9987 * gimplify.c (gimplify_cleanup_point_expr): Save and set
9988 in_cleanup_point_expr before gimplify_stmt call and restore it
9989 afterwards.
9990 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
9991 in_cleanup_point_expr is false.
9992
9993 2012-01-05 Richard Guenther <rguenther@suse.de>
9994
9995 PR middle-end/51764
9996 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
9997 to c.opt.
9998 * toplev.c (process_options): Reject combining mudflap and LTO.
9999 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
10000
10001 2012-01-05 Richard Guenther <rguenther@suse.de>
10002
10003 PR tree-optimization/51760
10004 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
10005 not VARYING.
10006 (bit_value_unop): Handle UNDEFINED operands.
10007 (bit_value_binop): Likewise.
10008
10009 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
10010
10011 * config/avr/avr.c (avr_replace_prefix): Remove.
10012 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
10013 (avr_asm_function_rodata_section): Ditto.
10014 (avr_asm_select_section): Ditto.
10015
10016 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10017
10018 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
10019 insertion.
10020
10021 2012-01-05 Jakub Jelinek <jakub@redhat.com>
10022
10023 PR bootstrap/51648
10024 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
10025 calls that have any non-fake successor edges.
10026
10027 PR debug/51746
10028 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
10029
10030 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
10031
10032 PR tree-optimization/51624
10033 * tree-sra.c (build_ref_for_model): When replicating a chain of
10034 COMPONENT_REFs, stop as soon as the offset would become negative.
10035
10036 2012-01-04 Jakub Jelinek <jakub@redhat.com>
10037
10038 PR debug/51695
10039 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
10040 in .debug_loc on the floor.
10041
10042 2012-01-04 Andrew Pinski <apinski@cavium.com>
10043
10044 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
10045
10046 2012-01-04 Andrew Pinski <apinski@cavium.com>
10047 Adam Nemet <anemet@caviumnetworks.com>
10048
10049 * config/mips/mips.md (size): Add SI and DI.
10050 (SIZE): New mode attribute.
10051 (U): New code attribute.
10052 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
10053 (mips_lbux_<mode>): Delete.
10054 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
10055 (mips_lhx): Use gen_mips_lhx_extsi.
10056 (mips_lhx_<mode>): Delete.
10057 (mips_lwx): Delete.
10058 (mips_l<size>x): New expand.
10059 (mips_lwx_<mode>): Delete.
10060 (mips_l<GPR:size>x_<P:mode>): New pattern.
10061 (*mips_lw<u>x_<P:mode>_ext): Likewise.
10062 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
10063 * config/mips/mips.c (mips_lx_address_p): New function.
10064 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
10065 (dsp64): New availability predicate.
10066 (mips_builtins): Add an entry for __builtin_mips_ldx.
10067 * config/mips/mips.h (ISA_HAS_LBX): New define.
10068 (ISA_HAS_LBUX): Likewise.
10069 (ISA_HAS_LHX): Likewise.
10070 (ISA_HAS_LHUX): Likewise.
10071 (ISA_HAS_LWX): Likewise.
10072 (ISA_HAS_LWUX): Likewise.
10073 (ISA_HAS_LDX): Likewise.
10074 * doc/extend.texi (__builtin_mips_ldx): Document.
10075
10076 2012-01-04 Tristan Gingold <gingold@adacore.com>
10077
10078 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
10079 when long pointers are used.
10080 * config.build (*-*-*vms*): Handle all OpenVMS targets.
10081 (alpha64-dec-*vms*, alpha*-dec-*vms*)
10082 (ia64-hp-*vms*): Remove.
10083 * config/vms/xm-vms64.h: Delete.
10084
10085 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
10086
10087 PR middle-end/51472
10088 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
10089
10090 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
10091
10092 * opts.c (finish_options): Remove duplicate sorry.
10093
10094 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
10095
10096 PR middle-end/51696
10097 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
10098 correctly.
10099
10100 2012-01-04 Richard Guenther <rguenther@suse.de>
10101
10102 PR middle-end/51750
10103 * tree.c (size_low_cst): New function.
10104 * tree.h (size_low_cst): Declare.
10105 * fold-const.c (fold_comparison): Use it to extract the low
10106 part of the POINTER_PLUS_EXPR offset.
10107
10108 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
10109
10110 Fix clearing ZERO_REG
10111 * config/avr/avr.md (cc): Add alternative "ldi".
10112 (movqi_insn): Use it in cc attribute.
10113 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
10114 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
10115 (output_reload_insisf): Use ZERO_REG to pre-clear register.
10116
10117 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10118
10119 * configure: Regenerate.
10120
10121 2012-01-04 Richard Guenther <rguenther@suse.de>
10122
10123 PR tree-optimization/49651
10124 * tree-ssa-structalias.c (type_can_have_subvars): New function.
10125 (var_can_have_subvars): Use it.
10126 (get_constraint_for_1): Only consider subfields if there can be any.
10127
10128 2012-01-03 Jakub Jelinek <jakub@redhat.com>
10129
10130 PR bootstrap/51725
10131 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
10132 to its new canonical_cselib_val and the cselib_val was in
10133 first_containing_mem chain, but the canonical_cselib_val was not,
10134 add the latter into the chain.
10135 (cselib_invalidate_mem): Compare canonical_cselib_val of
10136 addr_list chain elt with v.
10137
10138 PR pch/51722
10139 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
10140 dwarf2out_undef): Allocate e.info using ggc_strdup instead
10141 of xstrdup.
10142 (output_macinfo_op): Don't ggc_strdup fd->filename.
10143 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
10144 then ggc_strdup it. Don't free inc->info or cur->info.
10145 (output_macinfo): Don't free ref->info or file->info.
10146
10147 2012-01-03 Ira Rosen <irar@il.ibm.com>
10148
10149 PR tree-optimization/51269
10150 * tree-vect-loop-manip.c (set_prologue_iterations): Make
10151 first_niters a pointer.
10152 (slpeel_tree_peel_loop_to_edge): Likewise.
10153 (vect_do_peeling_for_loop_bound): Update call to
10154 slpeel_tree_peel_loop_to_edge.
10155 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
10156 here. Remove it from the parameters list.
10157 (vect_do_peeling_for_alignment): Update calls and compute
10158 wide_prolog_niters.
10159
10160 2012-01-03 Richard Guenther <rguenther@suse.de>
10161
10162 PR tree-optimization/51070
10163 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
10164 Properly handle calls.
10165
10166 2012-01-03 Richard Guenther <rguenther@suse.de>
10167
10168 PR tree-optimization/51692
10169 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
10170 the LHS of allocation stmts.
10171
10172 2012-01-03 Olivier Hainque <hainque@adacore.com>
10173
10174 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
10175
10176 2012-01-03 Olivier Hainque <hainque@adacore.com>
10177
10178 * collect2.c (main): In AIX specific computations for vector
10179 insertions, use CONST_CAST2 to cast from char ** to const char **.
10180
10181 2012-01-03 Richard Guenther <rguenther@suse.de>
10182
10183 PR debug/51650
10184 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
10185 the context of a limbo DIE when it does not already exist.
10186
10187 2012-01-03 Jakub Jelinek <jakub@redhat.com>
10188
10189 PR tree-optimization/51719
10190 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
10191 but direct call is, clear direct call's lhs and don't add fallthrough
10192 edge from dcall_bb to join_bb and PHIs.
10193
10194 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10195
10196 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
10197 the instructions emitted by the pattern.
10198 ("*TDC_insn_<mode>"): Add comment.
10199
10200 2012-01-03 Richard Guenther <rguenther@suse.de>
10201
10202 PR middle-end/51730
10203 * fold-const.c (fold_comparison): Properly canonicalize
10204 tree offset and HOST_WIDE_INT bit position.
10205
10206 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
10207
10208 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
10209 operands for extzv pattern.
10210
10211 2012-01-02 Jakub Jelinek <jakub@redhat.com>
10212
10213 PR bootstrap/51725
10214 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
10215 on mem_elt first.
10216
10217 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
10218
10219 * doc/invoke.texi (-flto and related options): Copy-edit.
10220
10221 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10222
10223 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
10224
10225 2012-01-02 Jakub Jelinek <jakub@redhat.com>
10226
10227 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
10228 New patterns.
10229
10230 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10231
10232 * expr.h (move_by_pieces_ninsns): Declare.
10233 * expr.c (move_by_pieces_ninsns): Make external.
10234 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
10235 (mips_store_by_pieces_p): Likewise.
10236 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
10237 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
10238 * config/mips/mips.c (mips_move_by_pieces_p): New function.
10239 (mips_store_by_pieces_p): Likewise.
10240
10241 2012-01-02 Jakub Jelinek <jakub@redhat.com>
10242
10243 * passes.c (register_one_dump_file): Free full_name.
10244
10245 * reload1.c (reload): Don't allocate reg_max_ref_width here.
10246 (calculate_elim_costs_all_insns): Free offsets_at and
10247 offsets_known_at at the end and clear the pointers.
10248
10249 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10250
10251 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
10252 this option introduced in r180739.
10253
10254 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10255
10256 PR target/51345
10257 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
10258 (tmake_file target=avr): Add avr/t-multilib.
10259
10260 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
10261 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
10262 * config/avr/genmultilib.awk: New file.
10263 * config/avr/t-multilib: New auto-generated file.
10264 * config/avr/multilib.h: New auto-generated file.
10265 * config/avr/t-avr (AVR_MCUS): New variable.
10266 (genopt.sh): Use it.
10267 (s-mlib): Depend on t-multilib.
10268 (t-multilib, multilib.h): New dependencies.
10269 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
10270 (MULTILIB_OPTIONS): Remove.
10271 (MULTILIB_MATCHES): Remove.
10272 (MULTILIB_DIRNAMES): Remove.
10273 (MULTILIB_EXCEPTIONS): Remove:
10274 * config/avr/genopt.sh: Don't use hard coded file name;
10275 pass AVR_MCUS from t-avr instead.
10276
10277 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10278
10279 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
10280
10281 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10282
10283 Implement light-weight DImode support.
10284 * config/avr/avr-dimode.md: New file.
10285 * config/avr/avr.md: Include it.
10286 (adjust_len): Add plus64, compare64.
10287 (HIDI): Remove code iterator.
10288 (code_stdname): New code attribute.
10289 (rotx, rotsmode): Remove DI.
10290 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
10291 as code iterator.
10292 * config/avr/avr-protos.h (avr_have_dimode): New.
10293 (avr_out_plus64, avr_out_compare64): New.
10294 * config/avr/avr.c (avr_out_compare): Handle DImode.
10295 (avr_have_dimode): New variable definition and initialization.
10296 (avr_out_compare64, avr_out_plus64): New functions.
10297 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
10298 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
10299 (avr_compare_pattern): Skip DImode comparisons.
10300
10301 2012-01-02 Revital Eres <revital.eres@linaro.org>
10302
10303 * ddg.c (def_has_ccmode_p): New function.
10304 (add_cross_iteration_register_deps,
10305 create_ddg_dep_from_intra_loop_link): Call it.
10306
10307 2012-01-02 Richard Guenther <rguenther@suse.de>
10308
10309 PR other/51679
10310 * invoke.texi (fassociative-math): Remove spurious paranthesis.
10311
10312 2012-01-01 Jakub Jelinek <jakub@redhat.com>
10313
10314 * gcc.c (process_command): Update copyright notice dates.
10315 * gcov.c (print_version): Likewise.
10316 * gcov-dump.c (print_version): Likewise.
10317 * mips-tfile.c (main): Likewise.
10318 * mips-tdump.c (main): Likewise.
10319
10320 2012-01-01 Ira Rosen <irar@il.ibm.com>
10321
10322 PR tree-optimization/51704
10323 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
10324 a use is inside the basic block or loop before accessing its vect info.
10325
10326 2012-01-01 Jan Hubicka <jhjh@suse.cz>
10327
10328 PR rtl-optimization/51069
10329 * cfgloopmanip.c (remove_path): Removing path making irreducible
10330 region unconditional makes BB part of the region.
10331
10332 2012-01-01 Jakub Jelinek <jakub@redhat.com>
10333
10334 PR tree-optimization/51683
10335 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
10336 calls with side-effects.
10337 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10338 \f
10339 Copyright (C) 2012 Free Software Foundation, Inc.
10340
10341 Copying and distribution of this file, with or without modification,
10342 are permitted in any medium without royalty provided the copyright
10343 notice and this notice are preserved.