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