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