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