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