e58e86f3ada99b5eb5f5751e27e2cf9109f7ffed
[gcc.git] / gcc / ChangeLog
1 2012-04-09 Jan Hubicka <jh@suse.cz>
2
3 PR lto/52722
4 PR lto/51765
5 PR lto/52634
6 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the boundary,
7 add its target too.
8 * lto.c (add_references_to_partition): Add also aliased nodes.
9 (add_cgraph_node_to_partition,
10 add_varpool_node_to_partition): Work on nodes, not functions/variables;
11 when adding alias, add also the aliased object.
12
13 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
14
15 PR target/52883
16 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
17 VOIDmode immediate operands.
18 * config/i386/constraints.md (Wz): New constraint.
19 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
20
21 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
22
23 PR target/52717
24 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
25 the DECL generated for the special GOT helper.
26
27 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
28
29 * config/sh/constraints.md: Update list of constraints in
30 comment block.
31 (Sr0): Remove unused memory constraint.
32
33 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
34
35 * tree-pretty-print.h: Update comment.
36
37 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
38
39 * config/sh/sh.md: Use braced string notation where applicable.
40 (*prefetch_i4, prefetch_m2a): Merge into ...
41 (*prefetch): ... this new insn.
42
43 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
44
45 * config/sh/sh.h (high_life_started): Remove
46 * config/sh/predicates.md (general_movdst_operand): Use
47 'reload_in_progress' instead of 'high_life_started'.
48 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
49 divsi_inv_fp): Likewise.
50
51 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
52
53 * config/sh/sh-protos.h (prepare_move_operands): Return void
54 instead of int.
55 * config/sh/sh.c (prepare_move_operands): Likewise.
56 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
57
58 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
59
60 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
61 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
62 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
63 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
64 commutative_float_operator, noncommutative_float_operator,
65 sh_handle_pragma): Remove.
66
67 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
68
69 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
70 Use @option markup on command-line options. Use @samp markup on
71 literal keywords to options. Use @code markup on code fragments.
72 Use other markup in preference to quotation marks in the text.
73 Add markup to some passages without any.
74
75 2012-04-06 Mike Stump <mikestump@comcast.net>
76
77 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
78
79 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
80
81 * config/sh/sh.c (hi_const): Remove.
82 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
83 of hi_const.
84
85 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
86
87 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
88 to bool.
89 * config/sh/sh.c (sh_expand_t_scc): Likewise.
90 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
91 calling sh_expand_t_scc.
92
93 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
94
95 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
96 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
97 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
98 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
99 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
100 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
101 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
102 sh2a_is_function_vector_call): Use bool as return type.
103 (sh_pass_in_reg_p): Remove.
104 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
105 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
106 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
107 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
108 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
109 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
110 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
111 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
112 sh_loads_bankedreg_p): Use bool as return type.
113 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
114 'register' modifier.
115
116 2012-04-06 Matt Turner <mattst88@gmail.com>
117
118 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
119
120 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
121
122 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
123 of the destination isn't also a FP_REGS register.
124
125 2012-04-05 Teresa Johnson <tejohnson@google.com>
126 H.J. Lu <hongjiu.lu@intel.com>
127
128 * config/i386/i386.h (ix86_tune_indices): Add
129 X86_TUNE_LCP_STALL.
130 * config/i386/i386.md (move immediate to memory peephole2):
131 Add cases for HImode move when LCP stall avoidance is needed.
132 * config/i386/i386.c (initial_ix86_tune_features): Initialize
133 X86_TUNE_LCP_STALL entry.
134
135 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
136
137 PR target/52882
138 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
139 CONST_INT operands, zero-extended with AND.
140
141 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
142
143 PR target/50751
144 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
145 first argument instead of mode size. Move displacement calculations
146 to ...
147 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
148 ... these new functions.
149 (disp_adjust): Remove max_mov_disp field.
150 (sh_legitimate_index_p): Use max_mov_insn_displacement and
151 mov_insn_alignment_mask.
152 (sh_address_cost): Use max_mov_insn_displacement.
153
154 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
155
156 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
157 (arch_enabled): Handle new arch types.
158 (one_cmpldi2): Add NEON support.
159
160 2012-04-05 Richard Guenther <rguenther@suse.de>
161
162 * gimple.c (walk_gimple_op): Compute val_only for the LHS
163 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
164 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
165 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
166 ... here and make static.
167 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
168 Remove.
169
170 2012-04-05 Richard Guenther <rguenther@suse.de>
171
172 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
173 basic-block before removing it.
174
175 2012-04-05 Richard Guenther <rguenther@suse.de>
176
177 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
178 version namespace as we release the freelist.
179
180 2012-04-05 Richard Guenther <rguenther@suse.de>
181
182 * tree-nrv.c (tree_nrv): Release VDEFs.
183 * tree-sra.c (sra_modify_constructor_assign): Likewise.
184 (sra_modify_assign): Likewise.
185 * tree-vect-stmts.c (vect_remove_stores): Likewise.
186 * tree-vect-loop.c (vect_transform_loop): Likewise.
187 * tree-ssa-dom.c (optimize_stmt): Likewise.
188 * tree-vect-slp.c (vect_schedule_slp): Likewise.
189 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
190
191 2012-04-05 Richard Guenther <rguenther@suse.de>
192
193 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
194 cleanup.
195 * gimple.h (gsi_remove): Adjust.
196 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
197 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
198 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
199 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
200 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
201 * tree-ssa-pre.c (eliminate): Likewise.
202
203 2012-04-04 Mike Stump <mikestump@comcast.net>
204
205 * doc/rtl.texi (const_double): Document as sign-extending.
206 * expmed.c (expand_mult): Ensure we don't use shift
207 incorrectly.
208 * emit-rtl.c (immed_double_int_const): Refine to state the
209 value is signed.
210 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
211 CONST_DOUBLE integers.
212 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
213 negative values are converted. Fix conversions bigger than
214 HOST_BITS_PER_WIDE_INT.
215 (simplify_binary_operation_1): Ensure we don't use shift
216 incorrectly.
217 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
218 * explow.c (plus_constant_mode): Add.
219 (plus_constant): Implement with plus_constant_mode.
220 * rtl.h (plus_constant_mode): Add.
221
222 2012-04-04 Richard Guenther <rguenther@suse.de>
223
224 PR tree-optimization/52808
225 * tracer.c (tail_duplicate): Do not tail-duplicate loop header
226 blocks.
227 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
228
229 2012-04-04 Tristan Gingold <gingold@adacore.com>
230
231 * expr.c (expand_expr_real_2): Handle larger sizetype in
232 POINTER_PLUS_EXPR.
233
234 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
235
236 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
237 to m2a-single instead of m2e.
238
239 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
240
241 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
242 Change type of BITOFFSET to signed. Make sure the lower bound of
243 the computed range is non-negative by adjusting OFFSET and BITPOS.
244 (expand_assignment): Adjust call to get_bit_range.
245
246 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
247
248 * h8300/h8300.c (h8300_current_function_monitor_function_p):
249 New function. Added to check monitor functions.
250 (h8300_option_override): Modified to generate error/warning
251 messages for invalid combinations of different command line
252 options.
253 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
254 save EXR on stack for monitor function in case of H8S target
255 when "-mno-exr" is passed.
256 * h8300/h8300-protos.h
257 (h8300_current_function_monitor_function_p): Add prototype.
258 * doc/invoke.texi: Document H8S options.
259
260 2012-04-03 Tristan Gingold <gingold@adacore.com>
261
262 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
263 of gcc_AC_FUNC_MMAP_BLACKLIST.
264 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
265 * Makefile.in (aclocal_deps): Add mmap.m4.
266 * configure: Regenerate.
267 * aclocal.m4: Regenerate.
268
269 2012-04-03 Richard Guenther <rguenther@suse.de>
270
271 PR tree-optimization/52808
272 * tracer.c (tail_duplicate): Return whether we have duplicated
273 any block.
274 (tracer): If we have duplicated any block, cleanup the CFG.
275 * cfghooks.c (duplicate_block): If we duplicated a loop
276 header but not its loop, destroy the loop because it now has
277 multiple entries.
278 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
279 the cfg manipulation routines we are not creating a multiple
280 entry loop.
281
282 2012-04-03 Tristan Gingold <gingold@adacore.com>
283
284 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
285 'byte' alignment.
286 (vms_c_common_override_options): Allow parameterless variadic
287 functions.
288
289 2012-04-03 Jakub Jelinek <jakub@redhat.com>
290
291 PR tree-optimization/52835
292 * tree-data-ref.c (build_rdg): Return NULL if
293 compute_data_dependences_for_loop failed.
294
295 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
296
297 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
298 for REAL_CST as well.
299 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
300 In the bitfield case, if the value is a REAL_CST, convert it first to
301 an INTEGER_CST.
302
303 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
304
305 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
306 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
307 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
308
309 * config/i386/biarchx32.h: New.
310
311 2012-04-02 Anatoly Sokolov <aesok@post.ru>
312
313 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
314 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
315 (arm_preferred_reload_class): New function.
316
317 2012-04-02 Richard Guenther <rguenther@suse.de>
318
319 PR tree-optimization/52756
320 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
321 (thread_through_loop_header): After threading through the loop latch
322 remove the split part from the loop and clear further threading
323 opportunities that would create a multiple entry loop.
324
325 2012-04-02 Richard Guenther <rguenther@suse.de>
326
327 PR rtl-optimization/52800
328 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
329 CLEANUP_CFG_CHANGED.
330
331 2012-04-02 Richard Guenther <rguenther@suse.de>
332
333 PR middle-end/52803
334 * loop-init.c (gate_handle_loop2): Destroy loops here if
335 we don't enter RTL loop optimizers.
336
337 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
338
339 Partially revert:
340 2012-03-29 Richard Guenther <rguenther@suse.de>
341
342 * rtl.h (extended_count): Remove.
343 * combine.c (extended_count): Remove.
344
345 2012-04-02 Dodji Seketeli <dodji@redhat.com>
346
347 PR c++/40942
348 * pt.c (more_specialized_fn): Don't apply decay conversion to
349 types of function parameters.
350
351 2012-04-02 Tristan Gingold <gingold@adacore.com>
352
353 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
354 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
355 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
356 (ggc_pch_this_base): Use uintptr_t instead of size_t.
357
358 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
359
360 PR bootstrap/52784
361 * config/i386/i386.c (ix86_option_override_internal): Don't
362 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
363
364 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
365
366 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
367 (stmt_can_make_abnormal_goto): Use it.
368 (is_ctrl_altering_stmt): Likewise.
369
370 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
371 Kaz Kojima <kkojima@gcc.gnu.org>
372
373 * config/sh/sh.c (push_regs): Skip banked registers when
374 resbank attribute is specified.
375 (sh_expand_epilogue): Likewise.
376
377 2012-03-30 Richard Henderson <rth@redhat.com>
378
379 PR debug/52727
380 * combine-stack-adj.c (prev_active_insn_bb): New.
381 (next_active_insn_bb): New.
382 (force_move_args_size_note): New.
383 (combine_stack_adjustments_for_block): Use it.
384
385 2012-03-30 Richard Henderson <rth@redhat.com>
386
387 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
388 (ix86_expand_vector_init_duplicate): Initialize it.
389 (expand_vec_perm_palignr): Likewise.
390 (ix86_expand_vec_perm_const): Likewise.
391 (ix86_vectorize_vec_perm_const_ok): Likewise.
392 (expand_vec_perm_blend): Use it.
393 (expand_vec_perm_vpermil): Likewise.
394 (expand_vec_perm_pshufb): Likewise.
395 (expand_vec_perm_1): Likewise.
396 (expand_vec_perm_pshuflw_pshufhw): Likewise.
397 (expand_vec_perm_interleave2): Likewise.
398 (expand_vec_perm_vpermq_perm_1): Likewise.
399 (expand_vec_perm_vperm2f128): Likewise.
400 (expand_vec_perm_interleave3): Likewise.
401 (expand_vec_perm_vperm2f128_vblend): Likewise.
402 (expand_vec_perm_vpshufb2_vpermq): Likewise.
403 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
404 (expand_vec_perm_broadcast): Likewise.
405 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
406
407 2012-03-30 Richard Henderson <rth@redhat.com>
408
409 * dwarf2out.c (gen_variable_die): Initialize off.
410
411 2012-03-30 Tristan Gingold <gingold@adacore.com>
412
413 * config/vms/vms-f.c: New file.
414 * config/vms/t-vms (vms-f.o): New rule.
415 * config.gcc (*-*-*vms*): Define fortran_target_objs.
416
417 2012-03-30 Richard Guenther <rguenther@suse.de>
418
419 PR tree-optimization/52754
420 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
421 propagate arbitrary addresses into really plain dereferences.
422
423 2012-03-30 Richard Guenther <rguenther@suse.de>
424
425 PR middle-end/52772
426 * except.c (emit_to_new_bb_before): Move loop updating ...
427 (dw2_build_landing_pads): ... here. Use a proper block for
428 querying the loop father.
429
430 2012-03-30 Tristan Gingold <gingold@adacore.com>
431
432 * config/ia64/ia64.c (ia64_section_type_flags): Remove
433 common_object attribute handling.
434 (SECTION_VMS_OVERLAY): Remove
435 (ia64_vms_common_object_attribute): Replace abort with an assert.
436 Do not set DECL_SECTION_NAME.
437 (ia64_vms_output_aligned_decl_common): Handle common_object
438 attribute.
439 (ia64_vms_elf_asm_named_section): Remove.
440 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
441
442 2012-03-30 Richard Guenther <rguenther@suse.de>
443
444 PR middle-end/52786
445 * double-int.c (rshift_double): Remove not needed cast.
446
447 2012-03-30 Richard Guenther <rguenther@suse.de>
448
449 * tree-affine.h (print_aff): Remove.
450 * tree-affine.c (print_aff): Make static.
451 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
452 (get_references_in_stmt): Likewise.
453 (print_direction_vector): Likewise.
454 (print_dir_vectors): Likewise.
455 (print_dist_vectors): Likewise.
456 (dump_subscript): Likewise.
457 (dump_ddrs): Likewise.
458 (dump_dist_dir_vectors): Likewise.
459 (dump_data_references): Likewise.
460 (dump_data_dependence_relation): Likewise.
461 (dump_data_dependence_direction): Likewise.
462 (dump_rdg_vertex): Likewise.
463 (dump_rdg_component): Likewise.
464 (debug_ddrs): Declare.
465 (struct data_ref_loc_d): Move ...
466 * tree-data-ref.c (struct data_ref_loc_d): ... here.
467 (get_references_in_stmt): Make static.
468 (dump_data_references): Likewise.
469 (dump_subscript): Likewise.
470 (print_direction_vector): Likewise.
471 (print_dir_vectors): Likewise.
472 (print_dist_vectors): Likewise.
473 (dump_data_dependence_relation): Likewise.
474 (dump_dist_dir_vectors): Likewise.
475 (dump_ddrs): Likewise.
476 (dump_rdg_vertex): Likewise.
477 (dump_rdg_component): Likewise.
478 (debug_ddrs): New function.
479 (access_matrix_get_index_for_parameter): Remove.
480
481 2012-03-30 Tristan Gingold <gingold@adacore.com>
482
483 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
484 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
485 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
486 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
487 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
488 (vms_patch_builtins): Handle new flags
489 * config/vms/vms-crtlmap.map: Completed using nm on
490 c and math system libraries.
491 * config/vms/make-crtlmap.awk: Handle any number of flags.
492
493 2012-03-30 Martin Jambor <mjambor@suse.cz>
494
495 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
496 is a builtin_stack_save in a dominating BB.
497
498 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
499
500 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
501 crossing 128bit lane boundary.
502
503 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
504
505 * ira-color.c (setup_left_conflict_sizes_p): Process all
506 conflicting objects.
507
508 2012-03-29 Jakub Jelinek <jakub@redhat.com>
509
510 PR tree-optimization/52760
511 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
512 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
513
514 2012-03-29 Richard Guenther <rguenther@suse.de>
515
516 * cgraph.h (cgraph_materialize_all_clones): Remove.
517 (reset_inline_failed): Likewise.
518 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
519 * cgraphbuild.c (reset_inline_failed): Remove.
520 * rtl.h (cse_main): Remove.
521 (extended_count): Likewise.
522 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
523 (cse_main): Make static.
524 * combine.c (extended_count): Remove.
525 (dump_combine_stats): Mark as DEBUG_FUNCTION.
526 * basic-block.h (reorder_basic_blocks): Remove.
527 * bb-reorder.c (reorder_basic_blocks): Make static.
528 * Makefile.in (dse.o): Remove dse.h dependency.
529 * dse.h: Remove.
530 * dse.c (gate_dse): Remove.
531 (clear_alias_mode_eq): Likewise.
532 (clear_alias_mode_hash): Likewise.
533 (dse_record_singleton_alias_set): Likewise.
534 (dse_invalidate_singleton_alias_set): Likewise.
535
536 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
537
538 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
539 crtbegin_so%O%s for -shared.
540 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
541
542 2012-03-29 Richard Guenther <rguenther@suse.de>
543
544 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
545 (add_to_value): Remove.
546 (print_value_expressions): Likewise.
547 * tree-ssa-pre.c (add_to_value): Make static.
548 (print_value_expressions): Likewise.
549 * gimple.h (gimple_adjust_this_by_delta): Remove.
550 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
551
552 2012-03-29 Richard Guenther <rguenther@suse.de>
553
554 PR middle-end/50708
555 * double-int.h (rshift_double): Remove.
556 * double-int.c (lshift_double): Use absu_hwi to make count
557 positive.
558 (rshift_double): Make static, take unsigned count argument,
559 remove handling of negative count argument.
560 (double_int_rshift): Dispatch to lshift_double.
561
562 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
563
564 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
565 OPTION_MASK_ABI_64.
566
567 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
568 (SPEC_X32): Likewise.
569 (MULTILIB_DEFAULTS): Likewise.
570
571 * config/i386/i386.c (isa_opts): Remove -m64.
572 (ix86_target_string): Properly handle -m32/-m64/-mx32.
573 (ix86_option_override_internal): Properly
574 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
575 handle -m32, -m64 and -mx32.
576
577 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
578 with OPTION_ABI_X32. Moved after TARGET_LP64.
579 (TARGET_LP64): Changed to OPTION_ABI_64.
580
581 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
582 (mx32): Replace ISA_X32 with ABI_X32.
583
584 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
585
586 * tree.c (tree_size) <VECTOR_CST>: New case.
587
588 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
589
590 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
591 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
592
593 2012-03-28 Jakub Jelinek <jakub@redhat.com>
594
595 PR middle-end/52691
596 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
597 __builtin_va_start to __builtin_next_arg if the latter is
598 builtin_decl_explicit_p rather than when it is not.
599
600 PR middle-end/52750
601 * tree-vect-generic.c (vector_element): Perform multiplication
602 for pos in bitsizetype type instead of idx type.
603
604 2012-03-28 Richard Guenther <rguenther@suse.de>
605
606 * loop-init.c (loop_optimizer_init): If loops are preserved
607 perform incremental initialization of required loop features.
608 (loop_optimizer_finalize): If loops are to be preserved only
609 clean up optional loop features.
610 (rtl_loop_done): Forcefully free loops here.
611 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
612 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
613 to existing loops.
614 (construct_init_block): Likewise.
615 (construct_exit_block): Likewise.
616 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
617 the CFG after expanding.
618 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
619 If we needed to calculate them, free them afterwards.
620 * tree-pass.h (PROP_loops): New define.
621 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
622 * basic-block.h (CLEANUP_CFG_CHANGED): New.
623 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
624 (cleanup_cfg): If we did something and have loops around, fix them up.
625 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
626 with CLEANUP_CFG_CHANGED.
627 * cfghooks.c (merge_blocks): If we merge a loop header into
628 its predecessor, update the loop structure.
629 (duplicate_block): If we copy a loop latch, adjust loop state
630 to note we may have multiple latches.
631 (delete_basic_block): Mark loops for fixup if we remove a loop.
632 * cfganal.c (forwarder_block_p): Protect loop latches, headers
633 and preheaders.
634 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
635 (cfg_layout_can_merge_blocks_p): Likewise.
636 * cprop.c (bypass_block): If we create a loop with multiple
637 entries, mark it for removal.
638 * except.c (emit_to_new_bb_before): Add the new basic-block
639 to existing loops.
640 * tree-eh.c (lower_resx): Likewise.
641 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
642 (expand_omp_taskreg): Likewise.
643 * tree-inline.c (initialize_cfun): Likewise.
644 * tree-mudflap.c (add_bb_to_loop): Prototype.
645 (mf_build_check_statement_for): Properly add new basic-blocks
646 to existing loops.
647 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
648 if we remove a loop.
649 (thread_through_loop_header): Likewise.
650 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
651 new basic-blocks to existing loops.
652 (expand_transaction): Likewise.
653 * Makefile.in (except.o): Add $(CFGLOOP_H).
654 (expr.o): Likewise.
655 (cgraph.o): Likewise.
656 (cprop.o): Likewise.
657 (cfgexpand.o): Likewise.
658 (cfganal.o): Likewise.
659 (trans-mem.o): Likewise.
660 (tree-eh.o): Likewise.
661
662 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
663
664 PR target/52692
665 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
666 (avr_builtin_decl): New static function.
667 (struct avr_builtin_description, avr_bdesc): Move up.
668 Add GTY marker. Add field fndecl. Remove redundant field id.
669 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
670 (avr_expand_builtin): Code cleanup because .id is removed.
671
672 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
673
674 PR target/52737
675 * config.gcc (tm_file): Remove avr/multilib.h.
676
677 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
678
679 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
680 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
681 * config/avr/t-avr: Remove generation of multilib.h.
682 * config/avr/t-multilib: Regenerate.
683 * config/avr/multilib.h: Remove.
684 * config/avr/avr.opt (-msp8): New option.
685 (avr_sp8): New variable.
686 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
687 * config/avr/avr.h (AVR_HAVE_SPH): New define.
688 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
689 (avr_device_to_sp8): New prototype.
690 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
691 (DRIVER_SELF_SPECS): New define.
692 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
693 __AVR_SP8__, __AVR_HAVE_SPH__.
694 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
695 AVR_HAVE_8BIT_SP to decide if SP_H is present.
696 (avr_file_start): Ditto.
697
698 2012-03-28 Jakub Jelinek <jakub@redhat.com>
699
700 PR target/52736
701 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
702 instead of 8 in adjust_address.
703
704 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
705
706 PR middle-end/51893
707 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
708 targets.
709
710 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
711
712 PR target/50751
713 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
714 Rearrange conditional logic. Move displacement address calculations
715 to ...
716 (sh_find_mov_disp_adjust): ... this new function.
717
718 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
719
720 * config/arm/arm.opt (mapcs): Remove MaskExists.
721 * config/cris/linux.opt (mno-gotplt): Likewise.
722 * config/i386/i386.opt (mhard-float): Likewise.
723 (msse4): Likewise.
724 (mno-sse4): Likewise.
725 * config/m68k/m68k.opt (mhard-float): Likewise.
726 * config/mep/mep.op (mcop32): Likewise.
727 * config/pa/pa-hpux.opt (msio): Likewise.
728 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
729 * config/picochip/picochip.opt (mlittle): Likewise.
730 * config/sh/sh.opt (mrenesas): Likewise.
731 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
732 * config/sparc/sparc.opt (mhard-float): Likewise.
733 * config/v850/v850.opt (mv850es): Likewise.
734 * config/vax/vax.opt (mg-float): Likewise.
735
736 2012-03-27 Martin Jambor <mjambor@suse.cz>
737
738 PR middle-end/52693
739 * tree-sra.c (sra_modify_assign): Do not call
740 load_assign_lhs_subreplacements when working with an unscalarizable
741 region.
742
743 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
744
745 PR target/52698
746 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
747 New prototype.
748 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
749 * config/i386/i386.c: Include reload.h.
750 (ix86_legitimize_reload_address): New function.
751
752 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
753
754 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
755 hasn't been allocated. Define a target macro for Mask and
756 InverseMask if it hasn't been defined. Remove MaskExists handling.
757
758 * doc/options.texi: Remove MaskExists.
759
760 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
761
762 PR target/52667
763 * config/sh/sh.c (find_barrier): Add equality check of last_got
764 to avoid going above orig insn. Update comments.
765
766 2012-03-27 Richard Guenther <rguenther@suse.de>
767
768 PR middle-end/52720
769 * fold-const.c (try_move_mult_to_index): Handle &x.array more
770 explicitely.
771
772 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
773
774 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
775 of a unit before computing the offset in units.
776 * expr.c (get_bit_range): Return the null range if the enclosing record
777 is part of a larger bit field.
778
779 2012-03-27 Tristan Gingold <gingold@adacore.com>
780
781 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
782 * config/ia64/ia64.md: Remove mode in template.
783 Sign extend operand in expand_simple_binop.
784 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
785 CASE_VECTOR_MODE instead of TARGET_ILP32.
786 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
787
788 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
789
790 * varasm.c (assemble_external): #if 0 out the new assert from the
791 previous commit, it breaks the Java and Go front ends.
792
793 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
794
795 * toplev.c (check_global_declaration_1): Do not call assemble_external.
796 * expr.c (emit_block_move_libcall_fn): Likewise.
797 (clear_storage_libcall_fn): Likewise.
798 (expand_expr_addr_expr_1): Likewise.
799 (expand_expr_real_1): Likewise.
800 * calls.c (rtx_for_function_call): Likewise.
801
802 * varasm.c (assemble_external): Assert this function is only called
803 during or after expanding to RTL.
804
805 2012-03-26 Martin Jambor <mjambor@suse.cz>
806
807 PR tree-optimization/50052
808 * tree-sra.c (tree_non_aligned_mem_p): Removed.
809 (tree_non_aligned_mem_for_access_p): Likewise.
810 (build_accesses_from_assign): Removed strict alignment requirements
811 checks.
812 (access_precludes_ipa_sra_p): Likewise.
813
814 2012-03-26 Richard Guenther <rguenther@suse.de>
815
816 PR tree-optimization/52701
817 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
818 compute and set the evolution part of PHI nodes.
819
820 2012-03-26 Richard Guenther <rguenther@suse.de>
821
822 PR tree-optimization/52721
823 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
824
825 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
826
827 PR tree-optimization/52686
828 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
829 WIDEN_LSHIFT_EXPR.
830
831 2012-03-26 Tristan Gingold <gingold@adacore.com>
832
833 * config/alpha/vms.h (LINK_SPEC): Simplify.
834 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
835 (NAME__MAIN, SYMBOL__MAIN): Remove.
836 (VMS_DEBUG_MAIN_POINTER): Remove.
837 * config/ia64/vms.h: Likewise.
838 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
839 code to vms.c. Call vms_start_function.
840 * config/ia64/ia64.c (ia64_start_function): Likewise.
841 * config/vms/vms-protos.h (vms_start_function): Declare.
842 * config/vms/vms.c (vms_start_function): New function.
843 * config/vms/vms.h (MATH_LIBRARY): Define.
844 (VMS_DEBUG_MAIN_POINTER): Define.
845
846 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
847
848 PR rtl-optimization/52629
849 * reload1.c (count_pseudo): Short-circuit common case.
850 (count_spilled_pseudo): Return early for pseudos without hard regs.
851 Assert that the pseudo has got a hard reg before manipulating it.
852
853 2012-03-24 Jan Hubicka <jh@suse.cz>
854
855 PR lto/51663
856 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
857 (decide_is_variable_needed): Do not handle toplevel reorder here.
858 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
859 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
860 even at -O0.
861
862 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
863
864 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
865 and str_bitsize instead of more convoluted expressions.
866
867 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
868
869 PR target/52610
870 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
871
872 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
873
874 PR target/52656
875 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
876
877 2012-03-23 Martin Jambor <mjambor@suse.cz>
878
879 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
880
881 2012-03-23 Richard Guenther <rguenther@suse.de>
882
883 PR tree-optimization/52678
884 * tree-vectorizer.h (struct _stmt_vec_info): Add
885 loop_phi_evolution_part member.
886 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
887 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
888 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
889 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
890 Use the cached evolution part and the PHI nodes value from
891 the loop preheader edge instead of re-analyzing the evolution.
892
893 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
894
895 * config/mips/mips-tables.opt: Update.
896 * config/mips/mips.md (processor): Add xlp.
897 * config/mips/mips-cpus.def: Add xlp.
898 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
899 5KF for now.
900 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
901 * doc/invoke.texi: Mention XLP.
902
903 2012-03-22 Jakub Jelinek <jakub@redhat.com>
904
905 PR middle-end/52547
906 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
907 on any new_local_var_chain vars declared during recursing on
908 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
909
910 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
911
912 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
913 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
914 (ASM_OUTPUT_LOCAL): Ditto.
915 (ASM_OUTPUT_COMMON): Remove.
916 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
917 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
918
919 2012-03-22 Jan Hubicka <jh@suse.cz>
920
921 PR middle-end/51737
922 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
923 parameter.
924 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
925 * ipa-inline-transform.c (save_inline_function_body): Remove
926 copied clone if needed.
927 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
928
929 2012-03-22 Richard Guenther <rguenther@suse.de>
930
931 PR middle-end/52666
932 * fold-const.c (fold_ternary_loc): Fix typo.
933
934 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
935
936 PR target/52496
937 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
938 (unspecv): Add UNSPECV_MEMORY_BARRIER.
939 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
940 (delay_cycles_1, delay_cycles_2): Ditto.
941 (delay_cycles_3, delay_cycles_4): Ditto.
942 (nopv, *nopv): Ditto.
943 (sleep, *sleep): Ditto.
944 (wdr, *wdr): Ditto.
945
946 2012-03-22 Richard Guenther <rguenther@suse.de>
947
948 PR tree-optimization/52548
949 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
950 because of clobbers.
951 (prune_clobbered_mems): New function.
952 (compute_antic_aux): Use it to prune ANTIC_OUT.
953 (compute_partial_antic_aux): Use it to prune PA_IN.
954 (compute_avail): Only insert expressions into EXP_GEN that are not
955 invalidated when translated up to the beginning of the block.
956
957 2012-03-22 Richard Guenther <rguenther@suse.de>
958
959 PR tree-optimization/52638
960 * tree-vect-stmts.c (vect_init_vector_1): New function, split
961 out from ...
962 (vect_init_vector): ... here. Handle scalar vector inits.
963 (vect_get_vec_def_for_operand): Adjust.
964 (vectorizable_load): Likewise.
965
966 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
967
968 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
969 (alpha*-*-freebsd*): Ditto.
970 (alpha*-*-netbsd*): Ditto.
971 (alpha*-*-openbsd*): Ditto.
972 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
973 (DWARF2_DEBUGGING_INFO): Remove.
974 (PREFERRED_DEBUGGING_TYPE): Remove.
975 (ASM_FINAL_SPEC): Remove.
976 (IDENT_ASM_OP): Remove.
977 (ASM_OUTPUT_IDENT): Remove.
978 (SKIP_ASM_OP): Remove.
979 (ASM_OUTPUT_SKIP): Remove.
980 (ALIGN_ASM_OP): Remove.
981 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
982 (ASM_OUTPUT_CASE_LABEL): Remove.
983 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
984 (COMMON_ASM_OP): Remove.
985 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
986 (ASCII_DATA_ASM_OP): Remove.
987 (READONLY_DATA_SECTION_ASM_OP): Remove.
988 (INIT_SECTION_ASM_OP): Remove.
989 (FINI_SECTION_ASM_OP): Remove.
990 (ASM_SECTION_START_OP): Remove.
991 (ASM_OUTPUT_SECTION_START_FILE): Remove.
992 (TARGET_ASM_NAMED_SECTION): Remove.
993 (TARGET_ASM_SELECT_SECTION): Remove.
994 (MAKE_DECL_ONE_ONLY): Remove.
995 (TYPE_ASM_OP): Remove.
996 (SIZE_ASM_OP): Remove.
997 (ASM_WEAKEN_LABEL): Remove.
998 (TYPE_OPERAND_FMT): Remove.
999 (ASM_DECLARE_RESULT): Remove.
1000 (ASM_DECLARE_OBJECT_NAME): Remove.
1001 (ASM_FINISH_DECLARE_OBJECT): Remove.
1002 (ELF_ASCII_ESCAPES): Remove.
1003 (ELF_STRING_LIMIT): Remove.
1004 (STRING_ASM_OP): Remove.
1005 (ASM_OUTPUT_EXTERNAL): Remove.
1006 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
1007 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
1008 before define.
1009 (ASM_DECLARE_FUNCTION_NAME): Ditto.
1010 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
1011 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
1012 (ASM_OUTPUT_SKIP): Ditto.
1013 (READONLY_DATA_SECTION_ASM_OP): Remove.
1014 (USER_LABEL_PREFIX): Remove.
1015 (ASM_OUTPUT_ASCII): Remove.
1016 (ASM_OUTPUT_CASE_LABEL): Remove.
1017 (NO_DOLLAR_IN_LABEL): Undefine.
1018
1019 2012-03-22 Richard Guenther <rguenther@suse.de>
1020
1021 PR tree-optimization/52459
1022 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
1023 PHI insertion for calls.
1024
1025 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
1026
1027 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
1028 find_sets_in_insn, canonicalize_insn): Split out from ...
1029 (cse_insn): ... here.
1030 (invalidate_from_clobbers): Take an insn instead of the pattern.
1031
1032 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
1033
1034 PR target/52479
1035 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
1036 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
1037 * config/sh/sh.md (sindf2, cosdf2): Remove.
1038
1039 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
1040
1041 PR target/52642
1042 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
1043 prologue for unwinder and profiler.
1044
1045 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
1046
1047 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
1048 Introduce emul_name to select the right linker emulation for
1049 powerpc64-*-freebsd*.
1050 * configure: Regenerate.
1051 * config.gcc: Add bits to support powerpc64-*-freebsd*.
1052 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
1053 * config/rs6000/freebsd64.h: New file.
1054 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
1055 POWERPC_FREEBSD.
1056 (rs6000_savres_strategy): Likewise.
1057 (rs6000_savres_routine_name): Likewise.
1058 (rs6000_elf_file_end): Likewise.
1059 * config/rs6000/t-freebsd64: New file.
1060 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
1061 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
1062
1063 * config/rs6000/freebsd64.h: Remove duplicated entries from last
1064 commit.
1065 * config/rs6000/t-freebsd64: Likewise.
1066
1067 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
1068
1069 PR rtl-optimization/52543
1070 PR target/52461
1071 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
1072 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
1073 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
1074 (avr_load_libgcc_p): Restrict to __flash loads.
1075 (avr_out_lpm): Only handle 1-byte loads from __flash.
1076 (avr_load_lpm): New function.
1077 (avr_find_unused_d_reg): Remove.
1078 (avr_out_lpm_no_lpmx): Remove.
1079 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
1080 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
1081 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
1082 (load_<mode>, load_<mode>_clobber): New insns.
1083 (mov<mode>): For multi-byte move from non-generic
1084 16-bit address spaces: Expand to load_<mode> resp.
1085 load_<mode>_clobber.
1086 (load<mode>_libgcc): Remove expander.
1087 (split-lpmx): Remove split.
1088
1089 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
1090
1091 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
1092 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
1093 All callers changed.
1094 (Fixed_core_reg): New feature.
1095 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
1096 disassembly.
1097 * neon-testgen.ml: Handle Fixed_core_reg.
1098
1099 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
1100
1101 * config/arm/arm.c (thumb2_reorg): Add complete support
1102 for 16-bit instructions.
1103 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
1104
1105 2012-03-21 Richard Guenther <rguenther@suse.de>
1106
1107 PR tree-optimizer/52636
1108 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
1109 to the appropriate type.
1110
1111 2012-03-21 Richard Guenther <rguenther@suse.de>
1112
1113 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
1114 dependencies.
1115 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
1116 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
1117 * passes.c (init_optimization_passes): Remove pass_init_function,
1118 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
1119 * tree-pass.h (pass_init_function): Remove.
1120 (pass_jump): Remove.
1121 (pass_initial_value_sets): Remove.
1122 (pass_unshare_all_rtl): Remove.
1123 * integrate.c (pass_initial_value_sets): Remove.
1124 * emit-rtl.c (pass_unshare_all_rtl): Remove.
1125 * tree.h (init_function_for_compilation): Remove.
1126 * function.c (init_function_for_compilation): Remove.
1127 (pass_init_function): Remove.
1128 * cfgcleanup.c (rest_of_handle_jump): Remove.
1129 (pass_jump): Remove.
1130
1131 2012-03-20 Jason Merrill <jason@redhat.com>
1132
1133 * tree-streamer-in.c (streamer_alloc_tree): Call
1134 ggc_alloc_zone_cleared_tree_node instead of
1135 ggc_alloc_zone_cleared_tree_node_stat.
1136
1137 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
1138
1139 * doc/extend.texi (Template Instantiation): Remove anachronisms.
1140
1141 2012-03-20 Jakub Jelinek <jakub@redhat.com>
1142
1143 PR target/52607
1144 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
1145 (ix86_expand_vec_perm_const_1): Call it.
1146
1147 * config/i386/i386.c (vselect_insn): New variable.
1148 (init_vselect_insn): New function.
1149 (expand_vselect, expand_vselect_insn): Add testing_p argument.
1150 Call init_vselect_insn if vselect_insn is NULL. Adjust
1151 PATTERN (vselect_insn), instead of creating a new insn each time,
1152 only emit a copy of it if not testing and recog has been successful.
1153 (expand_vec_perm_pshufb, expand_vec_perm_1,
1154 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
1155 callers.
1156
1157 PR target/52607
1158 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
1159 ("enabled" attribute): Handle avx2 and noavx2 isas.
1160 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
1161 New insns.
1162 (vec_dup<mode>): Add avx2 =x,x alternative.
1163 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
1164 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
1165 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
1166 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
1167 for V8SFmode.
1168 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
1169 if possible, handle also V8SFmode.
1170
1171 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
1172
1173 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
1174 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
1175 reg_or_zero_operand predicate.
1176 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
1177
1178 2012-03-20 Jakub Jelinek <jakub@redhat.com>
1179
1180 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
1181 If operand isn't UNSPEC, return 0.
1182
1183 2012-03-20 Richard Guenther <rguenther@suse.de>
1184
1185 * tree-pass.h (pass_rtl_eh): Remove.
1186 * except.c (gate_handle_eh): Likewise.
1187 (rest_of_handle_eh): Likewise.
1188 (pass_rtl_eh): Likewise.
1189 (finish_eh_generation): Export.
1190 * except.h (finish_eh_generation): Declare.
1191 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
1192 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
1193 after expanding stack alignment. Instead of compacting blocks
1194 call cleanup_cfg.
1195
1196 2012-03-20 Richard Guenther <rguenther@suse.de>
1197
1198 * stor-layout.c (finish_bitfield_representative): Fallback
1199 to conservative maximum size if the padding up to the next
1200 field cannot be computed as a constant.
1201 (finish_bitfield_layout): If we cannot compute the distance
1202 between the start of the bitfield representative and the
1203 bitfield member start a new representative.
1204 * expr.c (get_bit_range): The distance between the start of
1205 the bitfield representative and the bitfield member is zero
1206 if the field offsets are not constants.
1207
1208 2012-03-20 Tristan Gingold <gingold@adacore.com>
1209
1210 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
1211 convert in lowercase.
1212 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
1213 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
1214 * stor-layout.c (sizetype_tab): Adjust.
1215 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
1216 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
1217 instead of type_kind_last.
1218 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
1219 instead of size_int_kind.
1220 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
1221 * doc/tm.texi: Regenerate.
1222 * defaults.h (SIZETYPE): Provide a default value.
1223 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
1224 (SIZETYPE): Define.
1225
1226 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
1227
1228 * config/sh/sh.md: Use braced string notation where applicable.
1229
1230 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1231
1232 * config/i386/i386.md (allocate_stack): Simplify.
1233
1234 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1235
1236 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
1237 copy_to_mode_reg (Pmode, ...).
1238 (expand_builtin_frame_address): Ditto.
1239 * expr.c (emit_block_move_via_libcall): Ditto.
1240 (set_storage_via_libcall): Ditto.
1241
1242 * config/i386/i386.c (ix86_expand_movmem): Ditto.
1243 (ix86_expand_setmem): Ditto.
1244 (ix86_trampoline_init): DItto.
1245 * config/i386/i386.md (cmpstrnsi): Ditto.
1246
1247 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
1248
1249 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
1250 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
1251 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
1252 (SH Options): Likewise.
1253
1254 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1255
1256 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
1257 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
1258 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
1259 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
1260 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
1261
1262 Revert:
1263 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1264
1265 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
1266 * config/i386/i386.c (ix86_decompose_address): Use
1267 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
1268 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
1269 thread pointer to a register.
1270
1271 Revert:
1272 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
1273
1274 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
1275 if Pmode != word_mode.
1276 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
1277 Pmode == SImode for TARGET_X32.
1278
1279 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
1280 (tls_initial_exec_x32): Likewise.
1281
1282 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
1283
1284 PR target/50751
1285 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
1286 DISP_ADDR_OFFSET): New macros.
1287 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
1288 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
1289 (sh_legitimize_address): Add QImode displacement handling.
1290 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
1291 vector subregs.
1292 (sh_secondary_reload): Add QImode displacement handling.
1293 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
1294 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
1295 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
1296 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
1297 to register operands only.
1298 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
1299 (extendqihi2): Change insn to expander.
1300 (*extendqihi2_compact_reg): New insn.
1301 (movqi_i, movqi): Replace with ...
1302 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
1303 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
1304 Add new peepholes for QImode displacement addressing.
1305
1306 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1307
1308 PR c++/14710
1309 * doc/invoke.texi: Document -Wuseless-cast.
1310
1311 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
1312
1313 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
1314 * tree.h (handled_component_p): Reorder cases.
1315 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
1316 not initialize unsignedp.
1317 (loc_list_from_tree): Likewise.
1318 (fortran_common): Likewise.
1319 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1320
1321 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1322
1323 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
1324 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
1325 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
1326 (ix86_split_long_move): Ditto.
1327 (legitimize_tls_address): Use ix86_gen_sub3.
1328 (construct_plt_address): Assert that Pmode == DImode.
1329
1330 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
1331
1332 * config/i386/i386.md: Remove empty predicates and/or constraints.
1333 * config/i386/sync.md: Ditto.
1334 * config/i386/sse.md: Ditto.
1335 * config/i386/mmx.md: Ditto.
1336 * config/i386/pentium.md: Ditto.
1337 * config/i386/athlon.md: Ditto.
1338
1339 2012-03-16 Richard Guenther <rguenther@suse.de>
1340
1341 PR tree-optimization/52603
1342 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
1343 comment.
1344
1345 Revert
1346 2012-03-14 Richard Guenther <rguenther@suse.de>
1347
1348 PR tree-optimization/52571
1349 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1350 flag_section_anchors check ...
1351 (vect_can_force_dr_alignment_p): ... here.
1352
1353 2012-03-16 Martin Jambor <mjambor@suse.cz>
1354
1355 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
1356 memory through MEM_REFs by calling extract_bit_field.
1357
1358 2012-03-16 Richard Guenther <rguenther@suse.de>
1359
1360 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
1361 and REFERENCE_TYPE interpretations.
1362 (can_native_interpret_type_p): New function.
1363 (fold_ternary_loc): Use native encode/interpret to fold
1364 BIT_FIELD_REFs of constants.
1365
1366 2012-03-16 Richard Guenther <rguenther@suse.de>
1367
1368 PR middle-end/52584
1369 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
1370 of vector constants and constructors.
1371
1372 2012-03-16 Richard Guenther <rguenther@suse.de>
1373
1374 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1375 VIEW_CONVERT_EXPR to convert constants.
1376 (vect_is_simple_use): Treat all constants as vec_constant_def.
1377
1378 2012-03-16 Richard Guenther <rguenther@suse.de>
1379 Kai Tietz <ktietz@redhat.com>
1380
1381 PR middle-end/48814
1382 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
1383 side-effects completely in the pre-queue and use a temporary
1384 for the result.
1385
1386 2012-03-16 Richard Guenther <rguenther@suse.de>
1387
1388 * stor-layout.c (finish_bitfield_representative): Fall back
1389 to the conservative maximum size if we cannot compute the
1390 size of the tail padding.
1391
1392 2012-03-16 Tristan Gingold <gingold@adacore.com>
1393
1394 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
1395 __CRTL_VER and __VMS_VER.
1396 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
1397 and vms_c_get_vms_ver.
1398 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
1399 functions.
1400 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
1401 (VMS_DEFAULT_VMS_VER): Define.
1402 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
1403 (VMS_DEFAULT_VMS_VER): Define.
1404
1405 2012-03-16 Richard Guenther <rguenther@suse.de>
1406
1407 * tree-vect-loop.c (get_initial_def_for_induction): Use
1408 build_constructor directly.
1409 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1410 build_vector_from_val.
1411 * tree.c (build_vector_from_val): Avoid creating a constructor
1412 first when we want a constant vector.
1413
1414 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1415
1416 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
1417
1418 2012-03-16 Richard Guenther <rguenther@suse.de>
1419
1420 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
1421 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
1422 (struct tree_vector): Remove elements member, add variable size
1423 elts array member.
1424 (build_vector_stat): Declare.
1425 (build_vector): Define in terms of build_vector_stat.
1426 * tree.c (build_vector): Rename to ...
1427 (build_vector_stat): ... this. Take array of trees as parameter.
1428 (build_vector_from_ctor): Adjust.
1429 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
1430 initializer_zerop): Adjust.
1431 * cfgexpand.c (expand_debug_expr): Likewise.
1432 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
1433 const_vector_from_tree): Likewise.
1434 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
1435 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
1436 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
1437 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
1438 (lto_input_ts_vector_tree_pointers): Adjust.
1439 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
1440 (write_ts_vector_tree_pointers): Adjust.
1441 * varasm.c (const_hash_1, compare_constant, copy_constant,
1442 output_constant): Adjust.
1443 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
1444 * print-tree.c (print_node): Adjust.
1445 * tree-pretty-print.c (dump_generic_node): Adjust.
1446 * tree-vect-generic.c (uniform_vector_p, vector_element,
1447 lower_vec_perm): Adjust.
1448 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
1449 * tree-vect-slp.c (vect_get_constant_vectors,
1450 vect_transform_slp_perm_load): Adjust.
1451 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
1452 * expmed.c (make_tree): Adjust.
1453 * config/i386/i386.c (ix86_expand_builtin): Adjust.
1454 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
1455 and implementation.
1456 (sparc_fold_builtin): Adjust.
1457
1458 2012-03-16 Tristan Gingold <gingold@adacore.com>
1459
1460 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
1461 * config/vms/vms-stdint.h: New file.
1462
1463 2012-03-16 Tristan Gingold <gingold@adacore.com>
1464
1465 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
1466 (ia64-hp-*vms*): Replaced by ...
1467 (*-*-*vms*): ... This new entry.
1468
1469 2012-03-15 Jakub Jelinek <jakub@redhat.com>
1470
1471 PR target/52568
1472 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
1473 (ix86_expand_vec_perm_const_1): Use it.
1474
1475 PR target/52568
1476 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
1477 (avx2_permv4df): Remove.
1478 (avx2_permv4di): Macroize into...
1479 (avx2_perm<mode>): ... this using VI8F_256 iterator.
1480 (avx2_permv4di_1): Macroize into...
1481 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
1482
1483 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1484
1485 * combine.c (apply_distributive_law): Do not distribute SUBREG.
1486
1487 2012-03-15 Ira Rosen <irar@il.ibm.com>
1488 Ulrich Weigand <ulrich.weigand@linaro.org>
1489
1490 * tree-vect-patterns.c (widened_name_p): Rename to ...
1491 (type_conversion_p): ... this. Add new argument to determine
1492 if it's a promotion or demotion operation. Check for
1493 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
1494 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
1495 widened_name_p.
1496 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
1497 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
1498 Likewise.
1499 (vect_recog_mixed_size_cond_pattern): Likewise and allow
1500 non-constant then and else clauses.
1501
1502 2012-03-15 Ira Rosen <irar@il.ibm.com>
1503 Ulrich Weigand <ulrich.weigand@linaro.org>
1504
1505 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
1506 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
1507 vect_pattern_recog.
1508 * tree-vect-patterns.c (widened_name_p): Pass basic block
1509 info to vect_is_simple_use.
1510 (vect_recog_dot_prod_pattern): Fail for basic blocks.
1511 (vect_recog_widen_sum_pattern): Likewise.
1512 (vect_handle_widen_op_by_const): Support basic blocks.
1513 (vect_operation_fits_smaller_type,
1514 vect_recog_over_widening_pattern): Likewise.
1515 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
1516 Update call to vect_is_simple_use.
1517 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
1518 Add printing.
1519 (check_bool_pattern): Add an argument, update call to
1520 vect_is_simple_use and the recursive calls.
1521 (vect_recog_bool_pattern): Update relevant function calls.
1522 Add printing.
1523 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
1524 (vect_pattern_recog_1): Check for reduction only in loops.
1525 (vect_pattern_recog): Add new argument. Support basic blocks.
1526 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
1527 info to vect_is_simple_use_1.
1528 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
1529 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
1530
1531 2012-03-15 Jakub Jelinek <jakub@redhat.com>
1532 Andrew Pinski <apinski@cavium.com>
1533
1534 PR middle-end/52592
1535 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
1536 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
1537 calls instead of __builtin_ir{int,ound}*.
1538
1539 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1540
1541 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
1542 documentation.
1543
1544 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1545
1546 * config.gcc (target_type_format_char): New. Document it. Set it for
1547 arm*-*-* .
1548 * configure.ac (gnu_unique_option): Use target_type_format_char
1549 in test. Comment rationale.
1550 * configure: Regenerate .
1551
1552 2012-03-15 Jakub Jelinek <jakub@redhat.com>
1553
1554 PR tree-optimization/52267
1555 * tree-vrp.c (masked_increment): New function.
1556 (register_edge_assert_for_2): Derive ASSERT_EXPRs
1557 from (X & CST1) cmp CST2 tests.
1558
1559 2012-03-15 Richard Guenther <rguenther@suse.de>
1560
1561 PR middle-end/52580
1562 * tree-data-ref.c (subscript_dependence_tester_1): Check
1563 all dimensions for non-conflicting access functions.
1564
1565 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1566
1567 PR c++/44783
1568 * doc/invoke.texi [C++ Language Options]: Document
1569 -ftemplate-backtrace-limit.
1570
1571 2012-03-15 Tristan Gingold <gingold@adacore.com>
1572
1573 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
1574 before a parameter.
1575
1576 2012-03-15 Tristan Gingold <gingold@adacore.com>
1577
1578 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
1579 use DW_OP_call_frame_cfa.
1580
1581 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
1582
1583 PR target/50797
1584 * config/i386/i386-opts.h (pmode): New.
1585
1586 * config/i386/i386.c (ix86_option_override_internal): Properly
1587 check and set ix86_pmode.
1588
1589 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
1590
1591 * config/i386/i386.opt (maddress-mode=): New.
1592
1593 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
1594
1595 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1596
1597 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
1598 (dwarf2out_do_cfi_asm): Likewise.
1599 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
1600 handling.
1601 (add_data_member_location_attribute): Likewise.
1602 (gen_array_type_die): Likewise.
1603 (gen_subprogram_die): Likewise.
1604 (gen_producer_string): Likewise.
1605 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
1606 Remove MIPS_DEBUGGING_INFO handling.
1607 (sdb_debug_hooks): Likewise.
1608 (sdbout_begin_block): Likewise.
1609 (sdbout_end_block): Likewise.
1610 (sdbout_begin_prologue): Likewise.
1611 (sdbout_start_source_file): Likewise.
1612 (sdbout_end_source_file): Likewise.
1613 (sdbout_init): Likewise.
1614 * system.h (MIPS_DEBUGGING_INFO): Poison.
1615
1616 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1617
1618 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
1619 (alpha_file_start) [MS_STAMP]: Remove.
1620
1621 * config/alpha/elf.h (TARGET_GAS): Remove.
1622 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
1623 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
1624 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
1625 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
1626 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
1627 (alpha*-*-freebsd*): Likewise.
1628 (alpha*-*-netbsd*): Likewise.
1629 (alpha*-*-openbsd*): Likewise.
1630 (alpha*-*-*): Remove target_cpu_default2.
1631 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
1632 handling.
1633 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
1634 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
1635 * config/alpha/alpha.c (print_operand): Always assume
1636 TARGET_AS_SLASH_BEFORE_SUFFIX.
1637 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
1638 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
1639 ("*builtin_setjmp_receiver_er_1"): Remove.
1640 * config/alpha/alpha.opt (malpha-as): Remove.
1641 (mgas): Ignore.
1642 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
1643 -malpha-as, -mgas.
1644 Remove DEC Unix reference.
1645
1646 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
1647 (EXTENDED_COFF): Remove.
1648 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
1649 (EXTENDED_COFF): Don't undef.
1650 * config/alpha/alpha.c (alpha_file_start): Always assume
1651 OBJECT_FORMAT_ELF.
1652 Don't set targetm.asm_file_start_file_directive.
1653 [!OBJECT_FORMAT_ELF]: Remove.
1654 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1655
1656 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
1657 (DBX_DEBUGGING_INFO): Remove.
1658 (MIPS_DEBUGGING_INFO): Remove.
1659 (PREFERRED_DEBUGGING_TYPE): Remove.
1660 (DBX_OUTPUT_SOURCE_LINE): Remove.
1661 (SDB_OUTPUT_SOURCE_LINE): Remove.
1662 (DBX_CONTIN_LENGTH): Remove.
1663 (NO_DBX_FUNCTION_END): Remove.
1664 (ASM_STABS_OP): Remove.
1665 (ASM_STABN_OP): Remove.
1666 (ASM_STABD_OP): Remove.
1667 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
1668 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
1669 (PUT_SDB_DEF): Remove.
1670 (PUT_SDB_PLAIN_DEF): Remove.
1671 (PUT_SDB_TYPE): Remove.
1672 (sdb_label_count): Remove.
1673 (PUT_SDB_BLOCK_START): Remove.
1674 (PUT_SDB_BLOCK_END): Remove.
1675 (PUT_SDB_FUNCTION_START): Remove.
1676 (PUT_SDB_FUNCTION_END): Remove.
1677 (PUT_SDB_EPILOGUE_END): Remove.
1678 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
1679 (MIPS_DEBUGGING_INFO): Don't undef.
1680 (DBX_DEBUGGING_INFO): Don't undef.
1681 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
1682 (MIPS_DEBUGGING_INFO): Don't undef.
1683 (DBX_DEBUGGING_INFO): Don't undef.
1684 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
1685 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
1686 handling.
1687 (alpha_start_function): Likewise.
1688 (sdb_label_count): Remove.
1689 (alpha_output_filename): Remove DBX_DEBUG handling.
1690 (alpha_file_start): Likewise.
1691
1692 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1693
1694 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
1695 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
1696 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
1697 Solaris 8 support.
1698 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
1699 (ld_tls_support): Remove Solaris 8 references.
1700 (lwp_dir, lwp_spec): Remove support for alternate thread library.
1701 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
1702 * configure: Regenerate.
1703 * config.in: Regenerate.
1704
1705 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
1706 * config/i386/sol2.h: Remove Solaris 8 references.
1707
1708 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
1709 (i?86-*-solaris2.9): ... this.
1710 Remove Solaris 8 references.
1711 (Specific, *-*-solaris2*): Document Solaris 8 removal.
1712 Remove Solaris 8 references.
1713
1714 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1715
1716 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
1717 (mips-sgi-irix6.5*): Remove.
1718 * config.host (mips-sgi-irix*): Remove.
1719 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
1720 (set_have_as_tls): Remove *-*-irix6*.
1721 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
1722 * configure: Regenerate.
1723
1724 * config/mips/iris6.h: Remove.
1725 * config/mips/iris6.opt: Remove.
1726 * config/mips/t-irix6: Remove.
1727
1728 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
1729 (TARGET_IRIX6): Remove.
1730 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
1731 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
1732 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
1733 handling.
1734 (mips_file_start): Likewise.
1735 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
1736
1737 * config/mips/driver-native.c [__sgi__]: Remove.
1738 (host_detect_local_cpu) [__sgi__]: Remove.
1739
1740 * config/mips/gnu-user.h: Remove iris5.h reference.
1741
1742 * config/mips/mips-modes.def: Remove IRIX 6 reference.
1743 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
1744 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
1745 Remove.
1746
1747 * gcc.c (main): Move asm_debug initialization ...
1748 (asm_debug): ... here.
1749
1750 * ginclude/stddef.h (__STDDEF_H__): Don't define.
1751
1752 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
1753 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
1754 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
1755 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
1756 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
1757 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
1758 Remove.
1759 * doc/tm.texi: Regenerate.
1760
1761 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
1762 IRIX 6 reference.
1763 (MIPS Options, -march): Remove IRIX reference.
1764 * doc/install.texi (Binaries, SGI IRIX): Remove.
1765 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
1766 of section.
1767 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
1768
1769 2012-03-14 Martin Jambor <mjambor@suse.cz>
1770
1771 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
1772 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
1773 (expand_expr_real_1): Do not handle misalignment if modifier is
1774 EXPAND_WRITE.
1775
1776 2012-03-14 Richard Guenther <rguenther@suse.de>
1777
1778 PR middle-end/52584
1779 * tree-vect-generic.c (type_for_widest_vector_mode): Take
1780 element type instead of mode, use build_vector_type_for_mode
1781 instead of the langhook, build a vector of proper signedness.
1782 (expand_vector_operations_1): Adjust.
1783
1784 2012-03-14 Richard Guenther <rguenther@suse.de>
1785
1786 PR middle-end/52582
1787 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
1788 a cgraph node for a FUNCTION_DECL that comes from a constructor.
1789 (gimple_get_virt_method_for_binfo): Likewise.
1790
1791 2012-03-14 Richard Guenther <rguenther@suse.de>
1792
1793 PR tree-optimization/52571
1794 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1795 flag_section_anchors check ...
1796 (vect_can_force_dr_alignment_p): ... here. Do not re-align
1797 DECL_COMMON variables.
1798
1799 2012-03-14 Richard Guenther <rguenther@suse.de>
1800
1801 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
1802 * stor-layout.c (start_bitfield_representative): New function.
1803 (finish_bitfield_representative): Likewise.
1804 (finish_bitfield_layout): Likewise.
1805 (finish_record_layout): Call finish_bitfield_layout.
1806 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
1807 for QUAL_UNION_TYPE fields.
1808 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
1809 Stream DECL_BIT_FIELD_REPRESENTATIVE.
1810 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
1811
1812 PR middle-end/52080
1813 PR middle-end/52097
1814 PR middle-end/48124
1815 * expr.c (get_bit_range): Unconditionally extract bitrange
1816 from DECL_BIT_FIELD_REPRESENTATIVE.
1817 (expand_assignment): Adjust call to get_bit_range.
1818
1819 2012-03-14 Richard Guenther <rguenther@suse.de>
1820
1821 PR middle-end/52578
1822 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
1823 the outermost conversion is a sign-change only.
1824 (fold_binary_loc): Disregard widening and sign-changing
1825 conversions when we determine if two variables are equal
1826 for reassociation.
1827 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
1828 (T1)x if the outermost conversion is a sign-change only.
1829
1830 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
1831
1832 Revert:
1833 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
1834
1835 * config/i386/predicates.md (constant_call_address_operand): Declare
1836 as special predicate. Update all uses.
1837
1838 2012-03-13 Jakub Jelinek <jakub@redhat.com>
1839
1840 PR c/52577
1841 * c-parser.c (c_parser_postfix_expression)
1842 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
1843
1844 * config/i386/smmintrin.h: Avoid /* within a comment.
1845 * config/i386/nmmintrin.h: Likewise.
1846
1847 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1848
1849 * config/i386/i386.md (xbegin): Remove constraint from expander.
1850
1851 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1852
1853 * config/i386/predicates.md (constant_call_address_operand): Declare
1854 as special predicate. Update all uses.
1855 * config/i386/i386.md: Remove mode from constant_call_address_operand
1856 predicates.
1857 * config/i386/i386.c (ix86_output_call_insn): Call
1858 constant_call_address_operand with VOIDmode.
1859
1860 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1861
1862 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
1863 AND zero extended address correctly.
1864
1865 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1866
1867 * config/i386/predicates.md (tls_symbolic_operand): Declare as
1868 special predicate.
1869 (tls_modbase_operand): Ditto.
1870 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
1871 tls_modbase_operand predicates.
1872
1873 2012-03-13 Martin Jambor <mjambor@suse.cz>
1874
1875 * expr.c (expand_assignment): Handle misaligned scalar writes to
1876 memory through top-level MEM_REFs by calling store_bit_field.
1877
1878 2012-03-13 Richard Guenther <rguenther@suse.de>
1879
1880 PR middle-end/52134
1881 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
1882 if Y is a constant multiple of 1 << CST.
1883
1884 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
1885
1886 PR target/52488
1887 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
1888 offset (size) to a value the insns can deal with.
1889 (expand_epilogue): Ditto.
1890
1891 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1892
1893 * config/arm/neon.ml (ops): Fixup expected instructions for
1894 unsigned vector compares.
1895
1896 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1897
1898 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
1899 addresses only when %reg is not in word mode.
1900
1901 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1902
1903 * config/microblaze/microblaze.md: Fix typo.
1904 * tree-if-conv.c: Likewise.
1905 * tree-vect-patterns.c: Likewise.
1906
1907 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1908
1909 * config.gcc (extra_passes): Remove.
1910 * configure.ac (extra_passes): Don't substitute.
1911 * configure: Regenerate.
1912 * Makefile.in (EXTRA_PASSES): Remove.
1913 (GCC_PASSES): Remove $(EXTRA_PASSES).
1914 (MOSTLYCLEANFILES): Likewise.
1915 (native): Likewise.
1916 (install-common): Likewise.
1917
1918 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1919
1920 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
1921 * config/i386/i386.c (ix86_decompose_address): Use
1922 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
1923 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
1924 thread pointer to a register.
1925
1926 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
1927
1928 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
1929 on tls_symbolic_operand.
1930 (tls_global_dynamic_64_<mode>): Likewise.
1931
1932 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
1933
1934 PR other/52545
1935 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
1936 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
1937
1938 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
1939
1940 PR target/52499
1941 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
1942 type from reg_class_t to enum reg_class.
1943 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
1944
1945 2012-03-12 Andrew Pinski <apinski@cavium.com>
1946
1947 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
1948 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
1949 (value_replacement): Likewise.
1950 (empty_block_p): Check also if the PHIs for the block are empty.
1951
1952 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
1953
1954 PR target/52148
1955 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
1956 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
1957 r184615 from 2012-02-28.
1958
1959 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
1960
1961 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
1962 (ix86_gen_tls_local_dynamic_base_64): Likewise.
1963 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
1964 and ix86_gen_tls_local_dynamic_base_64.
1965 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
1966 ix86_gen_tls_local_dynamic_base_64.
1967
1968 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
1969 (*tls_global_dynamic_64_<mode>): This.
1970 (tls_global_dynamic_64): Renamed to ...
1971 (tls_global_dynamic_64_<mode>): This.
1972 (*tls_local_dynamic_base_64): Renamed to ...
1973 (*tls_local_dynamic_base_64_<mode>): This.
1974 (tls_local_dynamic_base_64): Renamed to ...
1975 (tls_local_dynamic_base_64_<mode>): This.
1976
1977 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
1978
1979 * config/i386/i386.c (ix86_option_override_internal): Properly
1980 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
1981 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
1982 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
1983 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
1984
1985 * config/i386/sse.md (sse3_monitor64): Renamed to ...
1986 (sse3_monitor64_<mode>): This.
1987
1988 2012-03-12 Tristan Gingold <gingold@adacore.com>
1989
1990 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
1991 (ia64_function_arg_advance): Ditto.
1992
1993 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1994
1995 * config.gcc (mips*-*-openbsd*): Remove.
1996 * config/mips/openbsd.h: Remove.
1997 * config/mips/sdb.h: Remove.
1998
1999 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
2000 * config/mips/mips.c (sdb_label_count): Remove.
2001 (mips_debugger_offset): Remove #if 0 code.
2002 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
2003 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
2004
2005 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2006
2007 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
2008 binutils reference.
2009 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
2010 Update binutils references.
2011 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
2012 Update binutils reference.
2013 Update Sun as/GNU ld caveat.
2014 Document binutils largefile requirement for LTO plugin.
2015 Remove reference to alternate libpthread.
2016
2017 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2018
2019 * config.gcc (alpha*-dec-osf5.1*): Remove.
2020 * config.host (alpha*-dec-osf*): Remove.
2021 * configure.ac (*-*-osf*): Remove.
2022 (alpha*-dec-osf*): Remove.
2023 * configure: Regenerate.
2024
2025 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
2026 config/alpha/va_list.h, config/alpha/x-osf: Remove.
2027
2028 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
2029 * config/alpha/alpha.c (struct machine_function): Update comment.
2030 (alpha_start_function): Remove Tru64 UNIX as handling for
2031 max_frame_size.
2032 * config/alpha/alpha.md ("exception_receiver"): Remove
2033 TARGET_LD_BUGGY_LDGP.
2034 ("*exception_receiver_2"): Likewise.
2035 * except.c (finish_eh_generation): Remove Tru64 reference.
2036 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
2037 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
2038 * target.def (handle_pragma_extern_prefix): Remove.
2039
2040 * Makefile.in (mips-tfile.o-warn): Remove.
2041 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
2042 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
2043 * mips-tdump.c, mips-tfile.c: Remove.
2044
2045 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
2046 extern_prefix.
2047 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
2048 (Specific, alpha*-dec-osf5.1): Note removal.
2049 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
2050 Remove.
2051 * doc/tm.texi: Regenerate.
2052 * doc/trouble.texi (Cross-Compiler Problems): Remove.
2053
2054 2012-03-12 Richard Guenther <rguenther@suse.de>
2055
2056 * config/arm/arm.c (neon_dereference_pointer): Do not call
2057 covert during RTL expansion.
2058
2059 2012-03-12 Tristan Gingold <gingold@adacore.com>
2060
2061 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
2062 Options. Mention -mpointer-size.
2063
2064 2012-03-12 Richard Guenther <rguenther@suse.de>
2065
2066 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
2067 build_nonstandard_integer_type.
2068
2069 2012-03-12 Richard Guenther <rguenther@suse.de>
2070
2071 * tree.c (signed_or_unsigned_type_for): Use
2072 build_nonstandard_integer_type.
2073 (signed_type_for): Adjust documentation.
2074 (unsigned_type_for): Likewise.
2075 * tree-pretty-print.c (dump_generic_node): Use standard names
2076 for non-standard integer types if available.
2077
2078 2012-03-12 Tristan Gingold <gingold@adacore.com>
2079
2080 * config/vms/vms.opt: Add vms-opts.h header.
2081 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
2082 target mask.
2083 (-mvms-return-codes): Document.
2084 (-mpointer-size): New option.
2085 (vms_pointer_size): Add enumeration.
2086 * config/vms/vms-opts.h: New file.
2087 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
2088 __INITIAL_POINTER_SIZE.
2089 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
2090 (C_COMMON_OVERRIDE_OPTIONS): Define.
2091 (DWARF2_ADDR_SIZE): Define.
2092 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
2093 * config/vms/vms-protos.h (vms_c_common_override_options):
2094 New prototype.
2095 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
2096 if -mno-pointer-size.
2097 (vms_c_common_override_options): New function.
2098 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
2099 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
2100 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
2101 and flag_vms_pointer_size.
2102 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
2103 * config.gcc (*-*-*vms*): Define xm_file.
2104 (alpha*-dec-*vms*): Do not define xm_file.
2105 (alpha64-dec-*vms*): Remove.
2106 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
2107 and tmake_file.
2108
2109 2012-03-12 Jakub Jelinek <jakub@redhat.com>
2110
2111 PR tree-optimization/51721
2112 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
2113 if (int) unsvar cmp CST.
2114
2115 2012-03-12 Richard Guenther <rguenther@suse.de>
2116
2117 * tree-sra.c (create_access_replacement): Only rename the replacement
2118 if we can rewrite it into SSA form. Properly mark register typed
2119 replacements that we cannot rewrite with TREE_ADDRESSABLE.
2120 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
2121 for aggregate or BLKmode results.
2122
2123 2012-03-12 Jakub Jelinek <jakub@redhat.com>
2124
2125 PR tree-optimization/52533
2126 * tree-vrp.c (register_edge_assert_for_2): Use double_int
2127 type for mask, only handle shifts by non-zero in-range
2128 shift count, for LE_EXPR and GT_EXPR if new_val is
2129 maximum, don't add the assertion.
2130
2131 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
2132
2133 * doc/invoke.texi: Document -mrtm option.
2134 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
2135 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
2136 (ix86_handle_option): Handle OPT_mrtm.
2137 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
2138 xtestintrin.h.
2139 (x86_64-*-*): Ditto.
2140 * i386-builtin-types.def (INT_FTYPE_VOID): New.
2141 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2142 __RTM__ if needed.
2143 (ix86_target_string): Define -mrtm option.
2144 (PTA_RTM): New.
2145 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
2146 Handle new option.
2147 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
2148 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
2149 IX86_BUILTIN_XTEST.
2150 (bdesc_special_args): Ditto.
2151 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
2152 (ix86_expand_special_args_builtin): Handle new built-in type.
2153 (ix86_expand_builtin): Handle XABORT instruction.
2154 * config/i386/i386.h (TARGET_RTM): New.
2155 * config/i386/i386.md (UNSPECV_XBEGIN): New.
2156 (UNSPECV_XEND): Ditto.
2157 (UNSPECV_XABORT): Ditto.
2158 (UNSPECV_XTEST): Ditto.
2159 (xbegin): Ditto.
2160 (xbegin_1): Ditto.
2161 (xend): Ditto.
2162 (xabort): Ditto
2163 (xtest): Ditto.
2164 (xtest_1): Ditto.
2165 * config/i386/i386.opt (mrtm): New.
2166 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
2167 * config/i386/rtmintrin.h: New header.
2168 * config/i386/xtestintrin.h: Ditto.
2169
2170 2012-03-12 Tristan Gingold <gingold@adacore.com>
2171
2172 * ginclude/stddef.h: Adjust previous patch.
2173 Use __VMS__ instead of VMS.
2174
2175 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
2176
2177 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
2178 Also convert sequences with CC setting arithmetic instruction.
2179
2180 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
2181
2182 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
2183 from C Language Options to Preprocessor Options.
2184 (C Dialect Options): Move -no-integrated-cpp documentation
2185 from here...
2186 (Preprocessor Options): ...to here. Rewrite the description
2187 so it makes more sense, and remove discussion of merging front ends.
2188
2189 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2190
2191 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
2192 needed for loop.
2193 (ix86_expand_setmem): Likewise.
2194
2195 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
2196
2197 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
2198 convert_to_mode.
2199
2200 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2201
2202 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
2203 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
2204
2205 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2206
2207 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
2208
2209 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2210
2211 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
2212 TARGET_64BIT.
2213
2214 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2215 Uros Bizjak <ubizjak@gmail.com>
2216
2217 * config/i386/predicates.md (call_insn_operand): Allow
2218 constant_call_address_operand in Pmode only.
2219 (sibcall_insn_operand): Ditto.
2220 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
2221 (*call_vzeroupper): Ditto.
2222 (*sibcall): Ditto.
2223 (*sibcall_vzeroupper): Ditto.
2224 (*call_value): Ditto.
2225 (*call_value_vzeroupper): Ditto.
2226 (*sibcall_value): Ditto.
2227 (*sibcall_value_vzeroupper): Ditto.
2228 (*indirect_jump): Ditto.
2229 (*tablejump_1): Ditto.
2230 (indirect_jump): Convert memory address to word mode for TARGET_X32.
2231 (tablejump): Ditto.
2232 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
2233 to word mode.
2234
2235 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
2236
2237 PR target/51244
2238 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
2239 Use movrt_negc instead of negc pattern for non-SH2A.
2240 (*movnegt): Remove.
2241 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
2242
2243 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
2244
2245 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
2246 if Pmode != word_mode.
2247 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
2248 Pmode == SImode for TARGET_X32.
2249
2250 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
2251 (tls_initial_exec_x32): Likewise.
2252
2253 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
2254
2255 PR rtl-optimization/52528
2256 * combine.c (can_combine_p): Add setting of subst_low_luid
2257 before call to expand_field_assignment().
2258
2259 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
2260
2261 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
2262 and related program names.
2263
2264 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
2265
2266 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
2267
2268 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
2269
2270 PR target/52530
2271 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
2272 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
2273 to set code to 'q'.
2274 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
2275 (*movdi_internal_rex64): Use %E operand modifier for lea.
2276 (*movsi_internal): Ditto.
2277 (*lea_1): Ditto.
2278 (*lea<mode>_2): Ditto.
2279 (*lea_{3,4,5,6}_zext): Ditto.
2280 (*tls_global_dynamic_32_gnu): Ditto.
2281 (*tls_global_dynamic_64): Ditto.
2282 (*tls_dynamic_gnu2_lea_32): Ditto.
2283 (*tls_dynamic_gnu2_lea_64): Ditto.
2284 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
2285
2286 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2287
2288 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
2289 redefine to be NULL if the current bit-size is different from the
2290 configured bit-size.
2291
2292 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
2293 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
2294 set the default tuning. Add asserts to make sure the cpu and tune
2295 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
2296 test whether the index is set, instead of > 0.
2297 (rs6000_file_start): Do not reset the default cpu if the current
2298 bit-size is different from the configured bit-size.
2299
2300 2012-03-09 Tristan Gingold <gingold@adacore.com>
2301
2302 * config/vms/vms-crtlmap.map: Add comments.
2303 Add entries needed to build Ada RTS.
2304
2305 2012-03-09 Tristan Gingold <gingold@adacore.com>
2306
2307 * ginclude/stddef.h: Do not define __size_t on VMS.
2308
2309 2012-03-09 Tristan Gingold <gingold@adacore.com>
2310
2311 * c-tree.h (c_default_pointer_mode): New variable.
2312 * c-decl.c (c_default_pointer_mode): New variable.
2313 (c_build_pointer_type): New function.
2314 (grokdeclarator): Call c_build_pointer_type instead
2315 of build_pointer_type.
2316
2317 * config/vms/vms-c.c: Include c-tree.h
2318 (saved_pointer_mode): New variable.
2319 (handle_pragma_pointer_size): New function.
2320 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
2321 (vms_c_register_pragma): Register __pointer_size and
2322 __required_pointer_size pragmas.
2323
2324 2012-03-09 Tristan Gingold <gingold@adacore.com>
2325
2326 * config/vms/vms-c.c (vms_construct_include_filename): New function.
2327 (vms_c_register_includes): Reference it.
2328
2329 2012-03-09 Andrew Pinski <apinski@cavium.com>
2330
2331 PR middle-end/51988
2332 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
2333 print_generic_expr.
2334 (tree_ssa_phiopt_worker): Go through all the PHIs for
2335 value_replacement instead of just the singleton one.
2336 (value_replacement): Change return type to int. Return 0 instead of
2337 false.
2338 Allow the middle basic block to contain more than just the defining
2339 statement.
2340 Handle non empty middle basic blocks.
2341 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
2342
2343 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
2344
2345 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
2346 array reference and component reference.
2347 (analyze_scalar_evolution_for_address_of): New.
2348
2349 2012-03-08 Jie Zhang <jzhang918@gmail.com>
2350
2351 PR target/49862
2352 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
2353 (hwloop_pattern_reg): Fix set but not used warning.
2354 (bfin_reorg_loops): Remove unused parameter.
2355 (bfin_reorg): Update use of bfin_reorg_loops.
2356
2357 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
2358
2359 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
2360 with integer parameters in registers.
2361 (gen_push): Push register in word_mode instead of Pmode.
2362 (ix86_emit_save_regs): Likewise.
2363 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
2364 (gen_pop): Pop register in word_mode instead of Pmode.
2365 (ix86_emit_restore_regs_using_pop): Likewise.
2366 (ix86_expand_prologue): Replace Pmode with word_mode for push
2367 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
2368 restore RAX and R10 in word_mode.
2369 (ix86_emit_restore_regs_using_mov): Restore integer registers
2370 in word_mode.
2371 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
2372 word_mode.
2373 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
2374 (ix86_split_long_move): Likewise.
2375
2376 * config/i386/i386.md (W): New.
2377 (*push<mode>2_prologue): Replace :P with :W.
2378 (*pop<mode>1): Likewise.
2379 (*pop<mode>1_epilogue): Likewise.
2380 (push/pop peephole2): Use word_mode scratch registers.
2381
2382 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
2383
2384 * config/i386/predicates.md (indirect_branch_operand): Simplify.
2385
2386 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
2387
2388 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
2389 for constants in [-63,63].
2390
2391 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
2392
2393 PR target/52530
2394 Revert:
2395 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
2396
2397 * config/i386/i386.c (ix86_print_operand_address): Only handle
2398 zero-extended DImode addresses.
2399
2400 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2401
2402 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
2403 * configure: Regenerate.
2404
2405 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
2406
2407 PR target/52496
2408 * config/avr/avr.c (avr_mem_clobber): New static function.
2409 (avr_expand_delay_cycles): Add memory clobber operand to
2410 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
2411 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
2412 (enable_interrupt, disable_interrupt): New expander.
2413 (nopv, sleep, wdr): New expanders.
2414 (delay_cycles_1): Add memory clobber.
2415 (delay_cycles_2): Add memory clobber.
2416 (delay_cycles_3): Add memory clobber.
2417 (delay_cycles_4): Add memory clobber.
2418 (cli_sei): New insn from former "enable_interrupt",
2419 "disable_interrupt" with memory clobber.
2420 (*wdt): New insn from former "wdt" with memory clobber.
2421 (*nopv): Similar, but for "nopv".
2422 (*sleep): Similar, but for "sleep".
2423
2424 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
2425 Kaz Kojima <kkojima@gcc.gnu.org>
2426
2427 PR target/52503
2428 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
2429 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
2430 (SUBTARGET_OVERRIDE_OPTIONS): Define.
2431
2432 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
2433
2434 * config/i386/predicates.md (x86_64_zext_general_operand): New.
2435 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
2436 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
2437
2438 2012-03-07 Walter Lee <walt@tilera.com>
2439
2440 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
2441 REG_CFA_* notes for the stack pointer.
2442 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
2443 EH_RETURN_STACKADJ_RTX.
2444 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
2445 generate REG_CFA_* notes for the stack pointer.
2446 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
2447 by EH_RETURN_STACKADJ_RTX.
2448
2449 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2450
2451 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
2452 when __AVR_3_BYTE_PC__ is defined.
2453
2454 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
2455
2456 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
2457 (ix86_print_operand): Handle '^'.
2458 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
2459 using P mode iterator. Add %^ to asm template to conditionally emit
2460 addr32 prefix.
2461 (*rep_movdi_rex64): Ditto.
2462 (*strsetdi_rex_1): Ditto.
2463 (*rep_stosdi_rex64): Ditto.
2464 (*strmov{si,hi,qi}_1): Add %^ to asm template to
2465 conditionally emit addr32 prefix.
2466 (*rep_mov{si,qi}): Ditto.
2467 (*strset{si,hi,qi}): Ditto.
2468 (*rep_stos{si,qi}): Ditto.
2469 (*cmpstrnqi_nz_1): Ditto.
2470 (*cmpstrnqi_1): Ditto.
2471 (*strlenqi_1): Ditto.
2472
2473 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
2474
2475 * config/i386/i386.c (function_value_64): Return pointers in
2476 word_mode instead of Pmode.
2477 (ix86_promote_function_mode): Likewise.
2478
2479 2012-03-07 Richard Guenther <rguenther@suse.de>
2480
2481 * coverage.c (get_gcov_type): Use type_for_mode.
2482 (get_gcov_unsigned_t): Likewise.
2483 * expr.c (store_constructor): Use type_for_mode.
2484 (try_casesi): Likewise.
2485 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
2486 (add_standard_iv_candidates): Use standard type trees.
2487 * dojump.c (do_jump): Remove dead code.
2488
2489 2012-03-07 Richard Guenther <rguenther@suse.de>
2490
2491 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
2492
2493 2012-03-07 Richard Guenther <rguenther@suse.de>
2494
2495 * convert.c (strip_float_extensions): Move ...
2496 * tree.c (strip_float_extensions): ... here.
2497
2498 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2499
2500 PR target/52484
2501 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
2502
2503 2012-03-07 Richard Guenther <rguenther@suse.de>
2504
2505 * omp-low.c (extract_omp_for_data): Use signed_type_for.
2506 (expand_omp_for_generic): Likewise.
2507 (expand_omp_for_static_nochunk): Likewise.
2508 (expand_omp_for_static_chunk): Likewise.
2509 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
2510 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
2511 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2512 Use unsigned_type_for.
2513 (vect_create_cond_for_align_checks): Use signed_type_for.
2514
2515 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
2516
2517 PR rtl-optimization/52203
2518 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
2519 all callers to pass NULL except ...
2520 (reset_sched_cycles_in_current_ebb): ... here, save the value
2521 in new variable 'empty'. Increase issue_rate only for
2522 non-empty insns.
2523
2524 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2525
2526 PR target/51417
2527 * Makefile.in: Let install-gcc-ar depend on installdirs,
2528 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
2529 Don't double canonicalize if cross-compiling.
2530
2531 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2532
2533 PR target/52506
2534 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
2535 to: RAMPZ, RAMPY, RAMPX, RAMPD.
2536 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
2537
2538 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2539
2540 PR target/52505
2541 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
2542 from RAM.
2543 * config/avr/avr.md (xload_8): Adjust insn length.
2544
2545 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2546
2547 PR target/52461
2548 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
2549 if RAMPZ affects reading from RAM.
2550
2551 2012-03-07 Richard Guenther <rguenther@suse.de>
2552
2553 PR pch/52518
2554 PR pch/38987
2555 * doc/invoke.texi (Precompiled Headers): Remove sentence that
2556 suggests you can include PCHs from inside another header.
2557
2558 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
2559
2560 PR middle-end/52515
2561 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
2562
2563 2012-03-07 Kai Tietz <ktietz@redhat.com>
2564
2565 * doc/invoke.texi (fwritable-relocated-rdata): Document
2566 new Cygwin/MinGW target option.
2567 * config/i386/winnt.c (i386_pe_unique_section): Ignore
2568 reloc if flag -fwritable-relocated-rdata is not set.
2569 (i386_pe_section_type_flags): Likewise.
2570 * config/i386/cygming.opt (fwritable-relocated-rdata):
2571 Add new flag variable flag_writable_rel_rdata.
2572
2573 2012-03-07 Richard Guenther <rguenther@suse.de>
2574
2575 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
2576 precision against gimple constraints.
2577
2578 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
2579
2580 PR middle-end/52372
2581 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
2582 variables.
2583 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
2584 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
2585 variables.
2586 (init_emit_regs): Move associated initialization to...
2587 (init_emit_once): ...here.
2588
2589 2012-03-06 Richard Henderson <rth@redhat.com>
2590
2591 * config/m68k/m68k.h (ISA_HAS_TAS): New.
2592 * config/m68k/sync.md (atomic_test_and_set): Use it.
2593 (atomic_test_and_set_1): Likewise.
2594
2595 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2596
2597 PR target/50310
2598 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
2599 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
2600 (vector_ltgt<mode>): Likewise.
2601 (vector_ordered<mode>): Likewise.
2602 (vector_unordered<mode>): Likewise.
2603 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
2604
2605 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
2606
2607 * trans-mem.c: New typedef for tm_region_p.
2608 Define vector types for tm_region_p.
2609 (tm_region_init): Replace region_worklist to a vector called
2610 bb_regions.
2611
2612 2012-03-06 Richard Guenther <rguenther@suse.de>
2613
2614 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
2615 MEM_REF with constant pointer operand.
2616
2617 2012-03-06 Richard Guenther <rguenther@suse.de>
2618
2619 PR middle-end/52493
2620 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
2621
2622 2012-03-06 Tristan Gingold <gingold@adacore.com>
2623
2624 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
2625 (external_model_kind): Improve documentation.
2626 (vms_pragma_extern_model): Handle relaxed_redef.
2627 (vms_c_register_pragma): Allow expansion for nomember_alignment.
2628
2629 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
2630
2631 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
2632 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
2633 Some more notes on EIND usage and reorder EIND subsection.
2634
2635 2012-03-06 Tristan Gingold <gingold@adacore.com>
2636
2637 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
2638 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
2639
2640 2012-03-06 Tristan Gingold <gingold@adacore.com>
2641
2642 * config/vms/t-vmsnative (version): Define.
2643 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
2644
2645 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
2646
2647 PR rtl-optimization/52250
2648 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
2649 to put note list into. Unconditionally call move_bb_info.
2650 (move_bb_info): Do not assert the blocks being in the same region,
2651 just drop the note list if they are not.
2652
2653 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
2654
2655 PR target/51244
2656 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
2657 and use unified expansion logic.
2658 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
2659 closer to the existing movt insn.
2660 (negc): Rename insn to *negc. Add new expander.
2661 (movnegt): Use xor pattern for T bit negation. Reserve helper
2662 constant for negc pattern.
2663 (*movnegt): New insn and splitter.
2664
2665 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
2666
2667 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
2668 PLUS_EXPR.
2669
2670 2012-03-05 Richard Henderson <rth@redhat.com>
2671
2672 * genemit.c (main): Include "target.h" in insn-emit.c.
2673 * Makefile.in (insn-emit.o): Depend on TARGET_H.
2674 * config/sh/sync.md (atomic_test_and_set): Reference
2675 targetm.atomic_test_and_set_trueval instead of
2676 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
2677
2678 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
2679
2680 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
2681 Make static.
2682
2683 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
2684
2685 * langhooks.c (add_builtin_type): New function.
2686 * langhooks.h (add_builtin_type): Export it.
2687 * config/mep/mep.c (mep_init_builtins): Use it.
2688 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
2689
2690 2012-03-05 Jakub Jelinek <jakub@redhat.com>
2691
2692 PR debug/51902
2693 * tree.h (BLOCK_SAME_RANGE): Define.
2694 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
2695 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
2696 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
2697 isn't equal to supercontext fragment's fragment chain.
2698 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
2699 fragment origin.
2700 (blocks_nreverse_all): Likewise.
2701 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
2702 BLOCK_SUPERCONTEXT to supercontext fragment instead of
2703 supercontext fragment's fragment origin.
2704 * dwarf2out.c (add_high_low_attributes): If stmt has the same
2705 range as its parent (or parents thereof etc.), use the parent's
2706 DW_AT_ranges value instead of creating a new .debug_ranges range.
2707
2708 2012-03-05 Richard Henderson <rth@redhat.com>
2709
2710 PR tree-opt/52242
2711 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
2712 * omp-low.c (expand_omp_atomic): Assume anything aligned to
2713 BIGGEST_ALIGNMENT is aligned.
2714
2715 2012-03-05 Richard Henderson <rth@redhat.com>
2716
2717 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
2718 * config/sh/sh.c: ... here.
2719
2720 2012-03-05 Richard Henderson <rth@redhat.com>
2721
2722 PR target/52481
2723 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
2724 instead of calling negqi2 directly.
2725
2726 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
2727
2728 PR middle-end/52463
2729 * trans-mem.c (tm_region_init): Use last_basic_block.
2730
2731 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
2732
2733 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
2734 * config/sh/sync.md (atomic_test_and_set): New expander.
2735 (tasb, atomic_test_and_set_soft): New insns.
2736 * config/sh/sh.opt (menable-tas): New option.
2737 * doc/invoke.texi (SH Options): Document it.
2738
2739 2012-03-05 Richard Guenther <rguenther@suse.de>
2740
2741 * cfgloop.c (verify_loop_structure): Verify dominators before
2742 using them.
2743 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
2744 dominators from here.
2745 * graphite-scop-detection.c (create_sese_edges): Likewise.
2746 * loop-doloop.c (doloop_optimize_loops): Likewise.
2747 * loop-init.c (loop_optimizer_init): Likewise.
2748 * loop-unroll.c (unroll_and_peel_loops): Likewise.
2749 * loop-unswitch.c (unswitch_loops): Likewise.
2750 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
2751 * tree-parloops.c (parallelize_loops): Likewise. Verify
2752 only when checking is enabled.
2753 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
2754
2755 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
2756
2757 * genautomata.c (parse_automata_opt): New static function.
2758 (initiate_automaton_gen): Remove all option handling code. Remove
2759 argc argument. All callers changed.
2760 (main): Call init_rtx_reader_args_cb with the new function as argument.
2761
2762 2012-03-05 Richard Guenther <rguenther@suse.de>
2763
2764 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
2765 * tree-if-conv.c (combine_blocks): Free post-dominator info
2766 after breaking it.
2767 * tree-parloops.c (create_parallel_loop): Free and re-compute
2768 dominator info after breaking it.
2769
2770 2012-03-05 Richard Guenther <rguenther@suse.de>
2771
2772 PR middle-end/52353
2773 * optabs.h (trapv_unoptab_p): New function.
2774 (trapv_binoptab_p): Likewise.
2775 * optabs.c (expand_binop): Use emit_libcall_block_1 with
2776 a proper equiv_may_trap argument.
2777 (expand_unop): Likewise.
2778 (emit_libcall_block_1): Take extra argument whether the
2779 instruction may trap. Renamed from ...
2780 (emit_libcall_block): ... this. New wrapper.
2781
2782 2012-03-05 Jakub Jelinek <jakub@redhat.com>
2783
2784 PR tree-optimization/51721
2785 * tree-vrp.c (register_edge_assert_for_2): If comparing
2786 lhs of right shift by constant with an integer constant,
2787 add ASSERT_EXPRs for the rhs1 of the right shift.
2788
2789 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
2790
2791 2012-03-05 Richard Guenther <rguenther@suse.de>
2792
2793 * tree.c (integer_zerop): Handle VECTOR_CSTs.
2794 (integer_onep): Likewise.
2795 (integer_all_onesp): Likewise.
2796
2797 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
2798
2799 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
2800
2801 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
2802
2803 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
2804 instead of TARGET_64BIT.
2805
2806 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
2807
2808 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
2809 adjust_stack_insn.
2810
2811 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
2812
2813 * config/i386/i386.c (ix86_print_operand_address): Only handle
2814 zero-extended DImode addresses.
2815
2816 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
2817
2818 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
2819 taken and cputaken as bool.
2820
2821 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
2822
2823 * config/i386/constraints.md (Ya): New internal constraint.
2824 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
2825 (*zero_extendsidi2_rex64): Add x,x alternative.
2826 (*zero_extendsidi2): Ditto. Add o,0 alternative.
2827 Remove flags reg clobber. Adjust corresponding splits.
2828 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
2829 zero_extendqisi2 expanders using SWI12 mode iterator.
2830 (zero_extend<mode>si2_and): Macroize insn from
2831 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
2832 splitters.
2833 (*zero_extend<mode>si2): Macroize insn from
2834 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
2835 (*zero_extend*2_movzbl_and): Remove insn patterns.
2836 (zero_extendqihi2_and): Merge corresponding splitter.
2837 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
2838 (*zero_extend*2_movzbl_and): Remove insn patterns.
2839 (*anddi_1): Split TYPE_IMOVX instructions.
2840 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
2841 (*andhi_1): Ditto.
2842 (and->zext splitter): Add splitter pattern.
2843 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
2844
2845 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
2846
2847 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
2848 x86-specific text.
2849 (Debugging Options): Likewise.
2850 (Optimize Options): Likewise.
2851 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
2852 with other architectures. Use official processor names with correct
2853 spelling/capitalization. Fix formatting and grammar issues.
2854 (i386 and x86-64 Windows Options): Similar cleanup here.
2855
2856 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
2857
2858 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
2859
2860 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
2861
2862 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
2863 DBX_REGISTER_NUMBER.
2864
2865 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
2866
2867 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
2868 operand is CONST_INT. Take COSTS_N_INSNS into account.
2869 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
2870 of shiftcosts.
2871
2872 2012-03-02 Richard Henderson <rth@redhat.com>
2873
2874 * optabs.c (expand_atomic_test_and_set): Honor
2875 atomic_test_and_set_trueval even when atomic_test_and_set
2876 optab is not in use.
2877
2878 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
2879
2880 PR target/48596
2881 PR target/48806
2882 * config/sh/sh.c (sh_register_move_cost): Increase cost between
2883 GENERAL_REGS and FP_REGS for SImode.
2884
2885 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
2886
2887 PR target/49486
2888 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
2889 (absdi2): New expander.
2890 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
2891
2892 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
2893
2894 * config/sh/sync.md (atomic_exchange<mode>): New expander.
2895 (atomic_exchange<mode>_soft): New insn.
2896
2897 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
2898
2899 * config/sh/sync.md: Update copyright notice dates.
2900 (atomic_compare_and_swap<mode>): Use SImode for return value instead
2901 of QImode.
2902 (atomic_compare_and_swap<mode>_soft): Likewise.
2903
2904 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
2905
2906 PR target/31640
2907 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
2908 * config/sh/sh.c: Update copyright notice dates.
2909 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
2910 alignment for TARGET_HARD_SH4.
2911 (sh_option_override): Reduce default function alignment. Set
2912 loop alignment to 4 bytes when not optimizing for size.
2913
2914 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
2915
2916 PR middle-end/50335
2917 * doc/invoke.texi (floop-flatten): Remove.
2918 * toplev.c (process_options): Remove references to flag_loop_flatten.
2919 * tree-ssa-loop.c (gate_graphite_transform): Same.
2920 * common.opt (floop-flatten): Obsolete.
2921 * graphite-poly.c (apply_poly_transforms): Remove reference to
2922 flag_loop_flatten.
2923 * Makefile.in (graphite-flattening.o): Remove.
2924 * graphite-flattening.c: Remove.
2925
2926 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
2927
2928 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
2929 having mode compatible with the mode of previous compare. Substitute
2930 compare mode of previous compare with the mode, compatible
2931 with eliminated and previous compare.
2932
2933 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
2934
2935 * config/rs6000/dfp.md (floatdidd2): New define_insn.
2936
2937 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
2938
2939 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
2940 compatible with CCGOCmode and CCGCmode.
2941
2942 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
2943
2944 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
2945
2946 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2947
2948 * config/arm/arm.c (arm_sat_operator_match): New function.
2949 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
2950 * config/arm/arm.md ("insn" attribute): Add "sat" value.
2951 ("SAT", "SATrev"): New code iterators.
2952 ("SATlo", "SAThi"): New code iterator attributes.
2953 ("*satsi_<SAT:code>"): New pattern.
2954 ("*satsi_<SAT:code>_shift"): Likewise.
2955 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
2956 and "shift" attributes.
2957 ("arm_usatsihi"): Add "insn" attribute.
2958 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
2959 by powers of two. Do not allow shift by 32.
2960
2961 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
2962
2963 PR target/46716
2964 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
2965 to pass the argument in the register of "natural" mode.
2966
2967 2012-03-02 Richard Guenther <rguenther@suse.de>
2968
2969 PR tree-optimization/52406
2970 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
2971 (struct indices): Add unconstrained_base member.
2972 (struct dr_alias): Remove unused vops member.
2973 (DR_UNCONSTRAINED_BASE): New define.
2974 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
2975 add indices to allow their disambiguation. Make DR_BASE_OBJECT
2976 be an artificial access that covers the whole indexed object,
2977 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
2978 plain decl base-objects to their MEM_REF variant.
2979 (dr_may_alias_p): When the base-object of either data reference
2980 has unknown size use only points-to information.
2981 (compute_affine_dependence): Make dumps easier to read and
2982 more verbose.
2983 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
2984 DR_REF when looking for packed references.
2985 (vect_supportable_dr_alignment): Likewise.
2986
2987 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
2988
2989 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
2990 Improve conditions for peepholes of loads followed by commutative
2991 operators.
2992 * config/arm/ldmstm.md: Regenerated.
2993
2994 2012-03-02 Richard Guenther <rguenther@suse.de>
2995
2996 * BASE-VER: Set to 4.8.0.
2997
2998 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
2999
3000 * config.gcc (obsolete): Add all ARM targets using the FPA.
3001 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
3002 * doc/install.texi: Avoid references to obsolete ARM ports.
3003
3004 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
3005
3006 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
3007
3008 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
3009 Joern Rennecke <joern.rennecke@embecosm.com>
3010
3011 * doc/extend.texi: Expand and update information on interrupt
3012 attribute for Epiphany.
3013
3014 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
3015
3016 * config/sh/sh-protos.h: Update copyright notice dates.
3017 * config/sh/sh.h: Likewise.
3018 * config/sh/sh.md: Likewise.
3019 * config/sh/constraints.md: Likewise.
3020 * config/sh/predicates.md: Likewise.
3021
3022 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
3023
3024 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
3025 * config/sh/sh.c (tertiary_reload_operand): Likewise.
3026
3027 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
3028
3029 * config/sh/constraints.md: Fix comment typo.
3030
3031 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3032
3033 PR target/52408
3034 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
3035 unsigned HOST_WIDE_INT.
3036 (zvdep_imm64): Likewise.
3037 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
3038 (vdepi_and): Likewise.
3039 Likewise for unamed 64-bit patterns.
3040 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
3041
3042 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
3043
3044 PR debug/52001
3045 PR rtl-optimization/52417
3046 * cselib.c (cselib_any_perm_equivs): New variable.
3047 (cselib_reset_table): Check that it's not set when not
3048 preserving constants.
3049 (cselib_add_permanent_equiv): Set it.
3050 (cselib_have_permanent_equivalences): New.
3051 (cselib_init, cselib_finish): Reset it.
3052 * cselib.h (cselib_have_permanent_equivalences): Declare.
3053 * alias.c (get_addr): Restore earlier behavior when there
3054 aren't permanent equivalences.
3055
3056 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
3057
3058 * config/mn10300/mn10300-modes.def: Fix copyright notice.
3059 * config/v850/v850-modes.def: Fix copyright notice.
3060
3061 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
3062
3063 * doc/extend.texi (AVR Built-in Functions): Document
3064 __builtin_avr_flash_segment.
3065
3066 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
3067 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
3068 (*split.flash_segment): New insn-and-split.
3069 * config/avr/avr.c (avr_init_builtins): Add local variables:
3070 const_memx_void_node, const_memx_ptr_type_node,
3071 char_ftype_const_memx_ptr.
3072
3073 2012-03-01 Jakub Jelinek <jakub@redhat.com>
3074
3075 PR tree-optimization/52445
3076 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
3077 add ssa_name_ver, offset and size fields and change store field
3078 to bool.
3079 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
3080 (add_or_mark_expr): Likewise. Only consider previous stores
3081 with the same size and offset.
3082 (nt_init_block): Only look at gimple_assign_single_p stmts,
3083 doesn't look at rhs2.
3084
3085 2012-03-01 Richard Guenther <rguenther@suse.de>
3086
3087 PR middle-end/52443
3088 * tree-cfg.c (verify_gimple_assign_unary): Allow any
3089 conversions from integral types to pointer types.
3090
3091 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
3092
3093 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
3094 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
3095 unintentionally removed in r184616.
3096
3097 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3098
3099 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
3100 3DNow from bdver1.
3101
3102 2012-02-29 Jakub Jelinek <jakub@redhat.com>
3103 Uros Bizjak <ubizjak@gmail.com>
3104
3105 PR target/52437
3106 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
3107 alternatives, add "e" constraint to the new last alternative
3108 and ! to last 3 alternatives.
3109
3110 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
3111
3112 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
3113 DW_AT_artificial attributes at the end of the processing.
3114 (gen_array_type_die): Likewise.
3115 (gen_enumeration_type_die): Likewise.
3116 (gen_struct_or_union_type_die): Likewise.
3117 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
3118 the parent type.
3119
3120 2012-02-29 Jakub Jelinek <jakub@redhat.com>
3121
3122 PR middle-end/52419
3123 * expr.c (expand_assignment): If doing misaligned store that doesn't
3124 cover all mode bits, perform a RMW cycle.
3125
3126 PR tree-optimization/52429
3127 * tree-parloops.c (separate_decls_in_region_debug): Return early
3128 if var is LABEL_DECL.
3129
3130 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3131
3132 PR tree-optimization/52424
3133 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
3134 calling dom_thread_across_edge.
3135
3136 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3137
3138 * config/avr/avr.c: Move definition of TARGET macros to end of file.
3139
3140 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3141
3142 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
3143 * config/avr/avr.c (avr_output_bld): Remove unused function.
3144 (avr_out_sbxx_branch): Use "%T" to print bit position.
3145
3146 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3147
3148 * config/avr/avr.md: Untabify.
3149
3150 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3151
3152 * config/avr/avr.md (eqne): New code iterator.
3153 (*dec-and-branchsi): Use it in text peephole's condition.
3154 (*dec-and-branchhi): Ditto.
3155 (*dec-and-branchqi): Ditto.
3156
3157 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3158
3159 PR target/49939
3160 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
3161 the device does not have the skip-bug.
3162
3163 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
3164
3165 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
3166 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
3167 -mpretend-cmove): New.
3168
3169 2012-02-29 Jakub Jelinek <jakub@redhat.com>
3170
3171 PR bootstrap/52397
3172 * df.h (struct df_d): Adjust comment that hard_regs_live_count
3173 doesn't count DEBUG_INSN refs.
3174 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
3175 for DEBUG_INSN refs.
3176
3177 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3178
3179 Partially revert:
3180
3181 2012-02-20 Richard Guenther <rguenther@suse.de>
3182 PR tree-optimization/52298
3183 * tree-vect-stmts.c (vectorizable_load): Properly use
3184 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
3185 outer loops.
3186
3187 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
3188
3189 PR middle-end/51752
3190 * gimple.h (gimple_in_transaction): New.
3191 (gimple_set_in_transaction): New.
3192 (struct gimple_statement_base): Add in_transaction field.
3193 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
3194 transaction loads.
3195 (tree_ssa_lim_initialize): Compute transaction bits.
3196 * tree.h (compute_transaction_bits): Protoize.
3197 * trans-mem.c (tm_region_init): Use the heap to store BB
3198 auxilliary data.
3199 (compute_transaction_bits): New.
3200
3201 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3202
3203 * gcc.c (display_help): Document --help=common and sort entries
3204 alphabetically.
3205
3206 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3207
3208 * doc/install.texi: Document check-$LANG specific shortcuts
3209
3210 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3211
3212 PR target/51534
3213 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
3214 and vcgtu.
3215 * config/arm/arm_neon.h: Regenerate.
3216 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
3217 (neon_vcgeu): New insn.
3218 (neon_vcgtu): Likewise.
3219 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
3220 (ops): Unsigned comparison intrinsics call a different builtin.
3221
3222 2012-02-28 Richard Guenther <rguenther@suse.de>
3223
3224 PR target/52407
3225 * config/i386/i386.c (ix86_expand_vector_set): Fix element
3226 ordering for the VEC_CONCAT for two element vectors for
3227 V2SFmode, V2SImode and V2DImode.
3228
3229 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
3230
3231 PR target/49448
3232 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
3233 detecting big-endian triplets.
3234
3235 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
3236
3237 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
3238 mode if there is no type information available.
3239
3240 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
3241
3242 PR tree-optimization/53207
3243 * doc/invoke.texi: Document as experimental and relying on graphite.
3244
3245 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3246
3247 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
3248 of initializer to changes from r184614.
3249
3250 2012-02-28 Richard Guenther <rguenther@suse.de>
3251
3252 PR tree-optimization/52395
3253 * tree-sra.c (build_ref_for_offset): Also look at the base
3254 TYPE_ALIGN when figuring out the alignment of the replacement.
3255
3256 2012-02-28 Richard Guenther <rguenther@suse.de>
3257
3258 PR tree-optimization/52402
3259 * ipa-prop.c (ipa_modify_call_arguments): Properly use
3260 mis-aligned types when creating the accesses at the call site.
3261
3262 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3263
3264 * config/avr/builtins.def: New file.
3265 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
3266 * config/avr/avr.c (enum avr_builtin_id): Use it.
3267 (avr_init_builtins): Use it. And use avr_bdesc.
3268 (bdesc_1arg): Remove.
3269 (bdesc_2arg): Remove.
3270 (bdesc_3arg): Remove.
3271 (struct avr_builtin_description): Add field n_args.
3272 (avr_bdesc): New static variable using builtins.def.
3273 (avr_expand_builtin): Use it.
3274 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
3275 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
3276 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
3277
3278 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3279
3280 PR target/52148
3281 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
3282 match only one single hard register with respective hard reg rtx.
3283 (movmemx_<mode>): Ditto.
3284 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
3285 insn anatomy of movmem[x]_<mode>.
3286 (avr_out_movmem): Same for printing assembler and operand usage.
3287
3288 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3289
3290 PR target/49868
3291 PR target/52261
3292 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
3293 address spaces located outside of device flash.
3294
3295 * config/avr/avr.h (base_arch_s): Remove field n_segments.
3296 (mcu_type_s): Add field n_flash.
3297 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
3298 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
3299 (AVR_MCU): Add N_FLASH argument.
3300 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
3301 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
3302 macro __FLASH<n> if that address space makes sense for the device.
3303 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
3304 outside of target flash.
3305 (avr_asm_named_section): Ditto.
3306 (avr_asm_select_section): Ditto.
3307 (avr_addr_space_convert): Ditto.
3308 (avr_emit_movmemhi): Ditto.
3309 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
3310 address space is outside of device flash.
3311 (avr_insert_attributes): Ditto.
3312 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
3313 avr_current_arch->n_segments.
3314
3315 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
3316
3317 PR target/52352
3318 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
3319 (*movabs<mode>_2): Likewise.
3320
3321 2012-02-27 Jakub Jelinek <jakub@redhat.com>
3322
3323 PR target/52375
3324 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
3325 s_register_operand in the test instead of REG_P. Don't call
3326 gen_reg_rtx if it won't be used.
3327
3328 PR tree-optimization/52376
3329 * ipa-split.c (split_function): Ignore CLOBBER stmts.
3330
3331 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
3332
3333 * ifcvt.c (noce_get_condition): Check condition variable is not
3334 small_register_classes_for_mode_p before accepting.
3335
3336 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
3337
3338 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
3339
3340 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3341
3342 Revert:
3343 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3344 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
3345 tuning parameters.
3346 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
3347
3348 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
3349
3350 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
3351
3352 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
3353
3354 * config/sh/predicates.md: Remove blank lines.
3355 * config/sh/sh.c: Fix typos in comments.
3356 * config/sh/constraints.md: Likewise.
3357 * config/sh/sh.md: Remove blank lines.
3358 Fix typos in comments. Use ;; as comment characters.
3359
3360 2012-02-26 Walter Lee <walt@tilera.com>
3361
3362 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
3363 (replace_mov_pcrel_step2): Ditto.
3364
3365 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
3366
3367 PR debug/52001
3368 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
3369 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
3370 and locs that reference values newer than the non-canonical value
3371 at hand. Return the canonical value as a worst case.
3372 (memrefs_conflict_p): Walk canonical value's locs.
3373
3374 PR debug/52001
3375 * cselib.c (preserve_only_constants): Rename to...
3376 (preserve_constants_and_equivs): ... this. Split out...
3377 (invariant_or_equiv_p): ... this. Preserve plus expressions
3378 of other preserved expressions too.
3379 (cselib_reset_table): Adjust.
3380 * var-tracking.c (reverse_op): Use canonical value to build
3381 reverse operation.
3382
3383 2012-02-23 Kai Tietz <ktietz@redhat.com>
3384
3385 * config/i386/i386.c (ix86_delegitimize_address): Handle
3386 UNSPEC_PCREL plus displacement.
3387
3388 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
3389
3390 PR target/52261
3391 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
3392 to test for unusedness in st X addressing.
3393
3394 2012-02-24 Richard Guenther <rguenther@suse.de>
3395
3396 PR middle-end/52361
3397 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
3398 (is_gimple_reg_type): Move inline ...
3399 * gimple.h (is_gimple_reg_type): ... here.
3400
3401 2012-02-24 Richard Guenther <rguenther@suse.de>
3402
3403 PR middle-end/52361
3404 * passes.c (execute_function_todo): When verifying SSA form
3405 verify gimple form first.
3406 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
3407
3408 2012-02-24 Richard Guenther <rguenther@suse.de>
3409
3410 PR middle-end/52355
3411 * fold-const.c (fold_addr_of_array_ref_difference): New function.
3412 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
3413
3414 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3415
3416 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
3417
3418 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3419
3420 * tree-phinodes.c (make_phi_node): Mark static.
3421 * tree-flow.h (make_phi_node): Remove extern decl.
3422 * doc/gimple.texi (make_phi_node): Remove documentation.
3423
3424 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3425
3426 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
3427 * tree-ssa-sccvn.c (print_scc): Ditto.
3428
3429 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3430
3431 * doc/passes.texi (Full redundancy elimination): Fix typo.
3432
3433 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3434
3435 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
3436
3437 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
3438
3439 PR bootstrap/52287
3440 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
3441
3442 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
3443
3444 PR c/52290
3445 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
3446
3447 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
3448
3449 * config/avr/avr.md (code_stdname): Add ior, xor.
3450 (xior): New code iterator.
3451 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
3452 (*<code_stdname><mode>qi.byte1-3): Ditto.
3453
3454 2012-02-23 Jakub Jelinek <jakub@redhat.com>
3455
3456 PR tree-optimization/52019
3457 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
3458 CLOBBER stmts.
3459
3460 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3461
3462 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
3463 HAVE_INITFINI_ARRAY to work around namespace pollution in
3464 certain versions of newlib system headers.
3465 * config.in: Regenerate.
3466 * configure: Regenerate.
3467 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
3468 instead of HAVE_INITFINI_ARRAY.
3469
3470 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
3471
3472 PR target/52330
3473 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
3474 is not offsettable memory reference.
3475
3476 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
3477
3478 PR target/18145
3479 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
3480 setting avr_need_clear_bss_p for __gnu_lto* symbols.
3481
3482 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
3483
3484 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
3485 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
3486
3487 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3488
3489 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
3490 library on Solaris 8 even without TLS support.
3491 * configure: Regenerate.
3492
3493 2012-02-22 Richard Guenther <rguenther@suse.de>
3494
3495 PR middle-end/52329
3496 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
3497 for GIMPLE_DEBUG stmts.
3498
3499 2012-02-22 Martin Jambor <mjambor@suse.cz>
3500
3501 PR middle-end/51782
3502 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
3503 according to the base object.
3504
3505 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
3506
3507 PR rtl-optimization/50063
3508 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
3509 and 2 (8-bit SP) in operand 2.
3510 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
3511 setup to use movhi_sp_r instead of vanilla move to write SP.
3512 Adjust REG_CFA notes to superseed unspec.
3513 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
3514 of vanilla move.
3515 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
3516 known to be off) only with TARGET_NO_INTERRUPTS. Never use
3517 irq_state 1 (IRQ known to be on) here.
3518
3519 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
3520
3521 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
3522 WORDS_BIG_ENDIAN.
3523 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
3524 assign_hard_reg): Likewise.
3525
3526 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
3527
3528 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
3529
3530 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
3531
3532 * config/avr/avr.md
3533 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
3534 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
3535
3536 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
3537
3538 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
3539 prototype from here to...
3540 * config/avr/avr.h: ...here.
3541
3542 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
3543
3544 PR target/52294
3545 * thumb2.md (thumb2_shiftsi3_short): Split register and
3546 immediate shifts. For register shifts tie operands 0 and 1.
3547 (peephole2 for above): Check that register-controlled shifts
3548 have suitably tied operands.
3549
3550 2012-02-21 Quentin Neill <quentin.neill@amd.com>
3551
3552 PR target/52137
3553 * config/i386/bdver1.md (bdver1_call, bdver1_push,
3554 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
3555 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
3556 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
3557 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
3558 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
3559 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
3560 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
3561 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
3562 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
3563 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
3564 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
3565 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
3566 bdver1_ssevector_avx256_unaligned_load,
3567 bdver1_ssevector_sse128_unaligned_load,
3568 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
3569 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
3570 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
3571 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
3572 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
3573 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
3574 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
3575 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
3576 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
3577 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
3578 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
3579 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
3580 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
3581 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
3582 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
3583 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
3584 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
3585 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
3586 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
3587 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
3588 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
3589 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
3590 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
3591 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
3592 bdver1_ssediv_double_load, bdver1_ssediv_double,
3593 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
3594 Add "bdver2" attribute.
3595
3596 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3597
3598 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
3599 default if possible and not specified otherwise.
3600
3601 2012-02-21 Richard Guenther <rguenther@suse.de>
3602
3603 PR middle-end/52314
3604 * gimplify.c (create_tmp_from_val): Use the main variant type
3605 for the type of the temporary we create.
3606
3607 2012-02-21 Richard Guenther <rguenther@suse.de>
3608
3609 PR tree-optimization/52324
3610 * gimplify.c (gimplify_expr): When re-gimplifying expressions
3611 do not gimplify a MEM_REF address operand if it is already
3612 in suitable form.
3613
3614 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3615
3616 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
3617 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
3618
3619 2012-02-21 Richard Guenther <rguenther@suse.de>
3620
3621 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
3622 nested_in_vect_loop.
3623
3624 2012-02-21 Jakub Jelinek <jakub@redhat.com>
3625
3626 PR tree-optimization/52318
3627 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
3628 vdef also to non-pure/const call stmts in the sequence.
3629
3630 2012-02-21 Tristan Gingold <gingold@adacore.com>
3631
3632 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
3633
3634 2012-02-20 David S. Miller <davem@davemloft.net>
3635
3636 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
3637 don't use the "rd %pc" instruction on v9 for PIC register loads.
3638
3639 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
3640
3641 PR middle-end/52141
3642 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
3643 in a transaction safe function.
3644
3645 2012-02-20 Kai Tietz <ktietz@redhat.com>
3646
3647 PR target/52238
3648 * stor-layout.c (place_field): Handle desired_align for
3649 ms-bitfields, too.
3650
3651 2012-02-20 Richard Guenther <rguenther@suse.de>
3652
3653 PR tree-optimization/52298
3654 * tree-vect-stmts.c (vectorizable_store): Properly use
3655 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
3656 outer loops.
3657 (vectorizable_load): Likewise.
3658 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
3659 Access DR_STEP after ensuring it is not NULL.
3660
3661 2012-02-20 Jakub Jelinek <jakub@redhat.com>
3662
3663 PR tree-optimization/52286
3664 * fold-const.c (fold_binary_loc): For (X & C1) | C2
3665 optimization use double_int_to_tree instead of build_int_cst_wide,
3666 rewrite to use double_int vars.
3667
3668 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3669
3670 PR target/50166
3671 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
3672 Define _start.
3673 Remove -e 0 from $gcc_cv_ld invocation.
3674 Only use __GLIBC_PREREQ if defined.
3675 Enable on Solaris since Solaris 8 patch.
3676 (gcc_SUN_LD_VERSION): New macro.
3677 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
3678 gcc_SUN_LD_VERSION for version number format.
3679 * configure: Regenerate.
3680 * varasm.c (get_elf_initfini_array_priority_section): Set
3681 SECTION_NOTYPE for non-default priority.
3682 Use get_section instead of get_unnamed_section to emit
3683 .init_array/.fini_array with default priority.
3684
3685 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
3686
3687 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
3688 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
3689 (mips_start_unique_function, mips_output_mips16_rdhwr)
3690 (mips_code_end): New functions.
3691 (TARGET_ASM_CODE_END): Define.
3692
3693 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
3694
3695 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
3696 to stubs with non-sibling calls.
3697
3698 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
3699
3700 * doc/invoke.texi (-fira-* options): Copy-edit.
3701 (ira-* parameters): Copy-edit.
3702
3703 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
3704
3705 * doc/invoke.texi: Minor copy-edits to bring into conformance with
3706 GCC coding conventions.
3707
3708 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
3709
3710 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
3711 when used as adjectives.
3712
3713 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
3714
3715 * doc/invoke.texi: Clean up "that"/"which" confusion.
3716
3717 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
3718
3719 * system.h: Poison SMALL_REGISTER_CLASSES
3720 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
3721 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
3722
3723 2012-02-16 Jakub Jelinek <jakub@redhat.com>
3724
3725 PR tree-optimization/52285
3726 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
3727 when deciding if a call is a tail call or tail recursion.
3728
3729 2012-02-16 Kai Tietz <ktietz@redhat.com>
3730
3731 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
3732 interger-constant displacement for UNSPEC_PCREL.
3733
3734 2012-02-16 Jakub Jelinek <jakub@redhat.com>
3735
3736 PR rtl-optimization/52208
3737 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
3738 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
3739
3740 PR tree-optimization/52255
3741 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
3742 loop->header has virtual PHI, but exit_e->dest doesn't, add
3743 virtual PHI to exit_e->dest and adjust all uses after the loop.
3744
3745 PR debug/52260
3746 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
3747 children with clone_tree_hash, not after it.
3748
3749 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
3750
3751 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
3752 extended identifiers.
3753
3754 2012-02-16 Jakub Jelinek <jakub@redhat.com>
3755
3756 PR middle-end/51929
3757 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
3758 a same_body_alias, also test whether e->callee isn't a former
3759 or current clone of the decl this is a same body alias of.
3760
3761 PR translation/52264
3762 * cgraphunit.c (verify_cgraph_node): Fix a typo.
3763
3764 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
3765
3766 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
3767
3768 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3769
3770 PR target/52199
3771 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
3772 force_reg instead of copy_to_reg for better optimization. Force
3773 non-register or memory operands into a register.
3774
3775 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
3776
3777 * extend.texi: Reserve upper bits of memory model for future use.
3778
3779 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
3780 Anatoly Sokolov <aesok@post.ru>
3781 Eric Weddington <eric.weddington@atmel.com>
3782
3783 PR target/52261
3784 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
3785 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
3786 Rewrite initializers for .macro.
3787 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
3788 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
3789 atxmega32d4, atxmega32x1.
3790 avrxmega4: atxmega64a3, atxmega64d3.
3791 avrxmega5: atxmega64a1, atxmega64a1u.
3792 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
3793 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
3794 avrxmega7: atxmega128a1, atxmega128a1u.
3795 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
3796 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
3797 (struct base_arch_s): Rename reserved to xmega_p.
3798 Rename reserved2 to have_rampd.
3799 (AVR_XMEGA): New define.
3800 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
3801 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
3802 * config/avr/predicates.md (io_address_operand): Take into
3803 account SFR offset.
3804 (low_io_address_operand): Ditto.
3805 (high_io_address_operand): Ditto.
3806 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
3807 (enabled, movhi_sp_r): Use them.
3808 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
3809 cpp_define_formatted to built-in define __AVR_ARCH__.
3810 (__AVR_XMEGA__): New built-in define.
3811 (__AVR_HAVE_RAMPD__): New built-in define.
3812 (__AVR_HAVE_RAMPX__): New built-in define.
3813 (__AVR_HAVE_RAMPY__): New built-in define.
3814 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
3815
3816 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
3817 (avr_option_override): Initialize them.
3818 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
3819 (avr_init_expanders): Initialize them. No more block several calls.
3820 (emit_push_sfr): New static function.
3821 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
3822 Handle AVR_XMEGA.
3823 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
3824 (avr_print_operand): Print addreeses as symbols for
3825 RAMPX, RAMPY, RAMPD, CCP.
3826 (output_movhi): Handle AVR_XMEGA when writing to SP.
3827 (avr_out_movhi_mr_r_xmega): New static function.
3828 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
3829 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
3830 __RAMPD__, __CCP__ as needed.
3831
3832 * config/avr/multilib.h: Regenerate.
3833 * config/avr/t-multilib: Regenerate.
3834 * config/avr/avr-tables.opt: Regenerate.
3835
3836 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
3837
3838 PR tree-optimization/50561
3839 * graphite-flattening.c (lst_project_loop): Do not
3840 remove old scattering dimensions after flattening.
3841 (lst_do_flatten): Likewise.
3842
3843 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
3844
3845 * doc/extend.texi (AVR Built-in Functions): Remove doc for
3846 __builtin_avr_map8, __builtin_avr_map16.
3847 Document __builtin_avr_insert_bits.
3848
3849 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
3850 (insert_bits): New insn.
3851 (adjust_len.map_bits): Rename to insert_bits.
3852 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
3853 * avr-protos.h (avr_out_map_bits): Remove.
3854 (avr_out_insert_bits, avr_has_nibble_0xf): New.
3855 * config/avr/constraints.md (Cxf,C0f): New.
3856 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
3857 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
3858 New built-in define __BUILTIN_AVR_INSERT_BITS.
3859 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
3860 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
3861 (avr_move_bits): Rewrite.
3862 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
3863 functions.
3864 (avr_map_op_t): New typedef.
3865 (avr_map_op): New static variable.
3866 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
3867 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
3868 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
3869 (bdesc_3arg, avr_expand_triop_builtin): New.
3870 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
3871 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
3872 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
3873 (avr_map_equal_p, avr_map_sig_p): Remove.
3874 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
3875 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
3876 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
3877 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
3878 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
3879 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
3880
3881 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
3882
3883 * config/c6x/c6x.md (reserve_cycles): New attribute.
3884 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
3885 don't reserve functional units after the branch occurs.
3886
3887 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
3888
3889 PR middle-end/52142
3890 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
3891 functions into non-tm_pure functions.
3892
3893 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
3894
3895 PR lto/52178
3896 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
3897 (iterative_hash_canonical_type): Likewise.
3898 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
3899 the dead edges.
3900
3901 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
3902
3903 * haifa-sched.c (prune_ready_list): Ensure that if there is a
3904 sched-group insn, it either remains alone or the entire list is pruned.
3905
3906 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
3907
3908 * doc/install.texi (Prerequisites): Fix grammar.
3909 (Configuration): Likewise.
3910
3911 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
3912
3913 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
3914 MPC as part of GCC before describing configuring with --with-gmp etc.
3915 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
3916 sources are present.
3917
3918 2012-02-14 Jakub Jelinek <jakub@redhat.com>
3919
3920 PR debug/51950
3921 * dwarf2out.c (clone_tree_hash): New function.
3922 (copy_decls_walk): Use it instead of clone_tree.
3923
3924 2012-02-14 Richard Guenther <rguenther@suse.de>
3925
3926 PR tree-optimization/52244
3927 PR tree-optimization/51528
3928 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
3929 replacements for integral types.
3930
3931 2012-02-14 Walter Lee <walt@tilera.com>
3932
3933 * config.gcc: Handle tilegx and tilepro.
3934 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
3935 tilegx and tilepro.
3936 Add HAVE_AS_TLS check for tilegx and tilepro.
3937 * configure: Regenerate.
3938 * doc/contrib.texi: Add Mat Hostetter and self.
3939 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
3940 Document instruction intrinsics and network accessing intrinsics.
3941 (TILEPro Built-in Functions): New node. Document instruction
3942 intrinsics and network accessing intrinsics.
3943 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
3944 (Specific, tilepro-*-linux*): Likewise.
3945 * doc/invoke.texi (TILE-Gx Options): New section.
3946 (TILEPro Options): New section.
3947 * doc/md.texi (TILE-Gx): New section.
3948 (TILEPro): New section.
3949 * common/config/tilegx/tilegx-common.c: New file.
3950 * common/config/tilepro/tilepro-common.c: New file.
3951 * config/tilegx/constraints.md: New file.
3952 * config/tilegx/linux.h: New file.
3953 * config/tilegx/mul-tables.c: New file.
3954 * config/tilegx/predicates.md: New file.
3955 * config/tilegx/sync.md: New file.
3956 * config/tilegx/t-tilegx: New file.
3957 * config/tilegx/tilegx-builtins.h: New file.
3958 * config/tilegx/tilegx-c.c: New file.
3959 * config/tilegx/tilegx-generic.md: New file.
3960 * config/tilegx/tilegx-modes.def: New file.
3961 * config/tilegx/tilegx-multiply.h: New file.
3962 * config/tilegx/tilegx-protos.h: New file.
3963 * config/tilegx/tilegx.c: New file.
3964 * config/tilegx/tilegx.h: New file.
3965 * config/tilegx/tilegx.md: New file.
3966 * config/tilegx/tilegx.opt: New file.
3967 * config/tilepro/constraints.md: New file.
3968 * config/tilepro/gen-mul-tables.cc: New file.
3969 * config/tilepro/linux.h: New file.
3970 * config/tilepro/mul-tables.c: New file.
3971 * config/tilepro/predicates.md: New file.
3972 * config/tilepro/t-tilepro: New file.
3973 * config/tilepro/tilepro-builtins.h: New file.
3974 * config/tilepro/tilepro-c.c: New file.
3975 * config/tilepro/tilepro-generic.md: New file.
3976 * config/tilepro/tilepro-modes.def: New file.
3977 * config/tilepro/tilepro-multiply.h: New file.
3978 * config/tilepro/tilepro-protos.h: New file.
3979 * config/tilepro/tilepro.c: New file.
3980 * config/tilepro/tilepro.h: New file.
3981 * config/tilepro/tilepro.md: New file.
3982 * config/tilepro/tilepro.opt: New file.
3983
3984 2012-02-14 Jakub Jelinek <jakub@redhat.com>
3985
3986 PR tree-optimization/52210
3987 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
3988 vect_model_simple_cost with two entry vect_def_type array instead
3989 of an address of dt.
3990
3991 2012-02-14 Richard Guenther <rguenther@suse.de>
3992
3993 PR lto/52178
3994 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
3995 Do not stream DECL_QUALIFIER.
3996 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
3997 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
3998 (find_decls_types_r): Do not walk DECL_QUALIFIER.
3999
4000 2012-02-14 Jakub Jelinek <jakub@redhat.com>
4001
4002 PR c/52181
4003 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
4004 newdecl.
4005
4006 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4007
4008 PR bootstrap/52172
4009 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
4010 * cselib.c (cselib_subst_to_values_from_insn): New function.
4011 * sched-deps.c (add_insn_mem_dependence,
4012 sched_analyze_1, sched_analyze_2): Use it.
4013
4014 2012-02-13 Jan Hubicka <jh@suse.cz>
4015
4016 PR middle-end/52214
4017 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
4018
4019 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
4020
4021 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
4022 (GTM_SELF_SPECS): Define if not already defined.
4023 (driver_self_specs): Add GTM_SELF_SPECS.
4024 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
4025 (GTM_SELF_SPECS): Define.
4026 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
4027 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
4028
4029 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4030
4031 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
4032 away if seen.
4033
4034 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
4035
4036 PR middle-end/52230
4037 * omp-low.c (expand_omp_for): If a static schedule without chunk size
4038 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
4039
4040 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
4041
4042 PR c/52190
4043 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
4044
4045 2012-02-13 Richard Guenther <rguenther@suse.de>
4046
4047 PR translation/52211
4048 * passes.c (enable_disable_pass): Fix typo.
4049
4050 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4051
4052 PR middle-end/52209
4053 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
4054 XOR for reduce_bit_field if type is unsigned.
4055
4056 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
4057
4058 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
4059 disallow changes from SFmode to mode with different size in FP regs.
4060
4061 2012-02-12 Robert Millan <rmh@gnu.org>
4062 Gerald Pfeifer <gerald@pfeifer.com>
4063
4064 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
4065 Tweak comment.
4066
4067 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
4068
4069 PR rtl-optimization/52175
4070 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
4071 to frame-related instructions.
4072
4073 2012-02-10 Jason Merrill <jason@redhat.com>
4074
4075 PR c++/51910
4076 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
4077 (demangle_new_symbols): Fill it.
4078 (scan_linker_output): Walk it.
4079 (start_tweaking): Split out from scan_linker_output.
4080 (maybe_tweak): Update sym->chosen.
4081 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
4082
4083 2012-02-11 Jakub Jelinek <jakub@redhat.com>
4084
4085 PR debug/52132
4086 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
4087
4088 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
4089
4090 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
4091 having the same mode as previous compare.
4092
4093 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
4094
4095 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
4096 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
4097 (nonlocal_goto_internal): Likewise.
4098 (nonlocal_goto): Emit a use and an indirect jump directly.
4099
4100 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
4101
4102 PR c/52190
4103 * doc/extend.texi : Update comments for __atomic_compare_exchange and
4104 __atomic_{is,always}_lock_free.
4105
4106 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
4107
4108 PR target/52146
4109 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
4110 negative constant address for TARGET_X32.
4111
4112 2012-02-10 Richard Henderson <rth@redhat.com>
4113
4114 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
4115 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
4116 for GIMPLE_TRANSACTION. Tidy if's into a switch.
4117
4118 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4119 Ira Rosen <irar@il.ibm.com>
4120
4121 PR tree-optimization/50031
4122 * targhooks.c (default_builtin_vectorization_cost): Handle
4123 vec_promote_demote.
4124 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
4125 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
4126 all types of reduction and pattern statements.
4127 (vect_estimate_min_profitable_iters): Likewise.
4128 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
4129 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
4130 for explicit realigns.
4131 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
4132 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
4133 vec_promote_demote.
4134 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4135 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
4136 vec_perm for VSX and handle vec_promote_demote.
4137
4138 2012-02-10 Jakub Jelinek <jakub@redhat.com>
4139
4140 PR middle-end/52177
4141 * builtins.c (fold_builtin_atomic_always_lock_free,
4142 expand_builtin_atomic_always_lock_free,
4143 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
4144 Return and/or test boolean_true_node/boolean_false_node instead of
4145 integer_one_node/integer_zero_node.
4146
4147 2012-02-10 Jan Hubicka <jh@suse.cz>
4148
4149 PR middle-end/48600
4150 * predict.c (predict_paths_for_bb): Prevent looping.
4151 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
4152
4153 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
4154
4155 * config/arm/arm.c (output_move_double): In one case properly
4156 count number of instructions that will be emitted.
4157
4158 2012-02-10 Richard Guenther <rguenther@suse.de>
4159
4160 PR translation/52193
4161 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
4162
4163 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
4164
4165 PR middle-end/52140
4166 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
4167
4168 2012-02-09 Jakub Jelinek <jakub@redhat.com>
4169
4170 PR debug/52165
4171 * var-tracking.c (emit_note_insn_var_location): If
4172 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
4173 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
4174 non-NOTE_DURING_CALL_P insn.
4175
4176 2012-02-09 Bin Cheng <bin.cheng@arm.com>
4177
4178 PR middle-end/51867
4179 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
4180
4181 2012-02-08 Magnus Granberg <zorry@gentoo.org>
4182
4183 PR driver/48524
4184 * gcc.c (switch_matches) Support switches with separated form,
4185 -D and -U.
4186
4187 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
4188
4189 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
4190 (SP_ADDR): Ditto.
4191 (RAMPZ_ADDR): Ditto.
4192 * config/avr/avr.c (avr_addr_t): New typedef.
4193 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
4194 (avr_init_expanders): Initialize it.
4195 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
4196 SREG_ADDR.
4197 (expand_epilogue): Ditto.
4198 (avr_print_operand): Ditto.
4199 (avr_file_start): Ditto.
4200 (avr_emit_movmemhi): Ditto.
4201
4202 2012-02-08 Richard Guenther <rguenther@suse.de>
4203
4204 PR tree-optimization/46886
4205 * tree-flow.h (do_while_loop_p): Declare.
4206 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
4207 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
4208
4209 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
4210
4211 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
4212 always succeed for integers larger than a native word.
4213
4214 2012-02-08 Richard Guenther <rguenther@suse.de>
4215
4216 PR rtl-optimization/52170
4217 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
4218 properly handle integer vector modes.
4219
4220 2012-02-08 Jakub Jelinek <jakub@redhat.com>
4221
4222 PR gcov-profile/52150
4223 * coverage.c: Include target.h.
4224 (build_var): Call targetm.strip_name_encoding on the assembler name.
4225 Change one _ into . or $ if the target allows it.
4226 * Makefile.in (coverage.o): Depend on $(TARGET_H).
4227
4228 PR rtl-optimization/52139
4229 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
4230 is a BARRIER after emit_insn_after_noloc, move BB_END
4231 to the last non-BARRIER insn before it.
4232
4233 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
4234
4235 PR middle-end/24306
4236 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
4237 (mips_gimplify_va_arg_expr): Call it instead of
4238 std_gimplify_va_arg_expr.
4239
4240 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
4241
4242 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
4243 message for -mno-pointers-to-nested-function.
4244
4245 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
4246
4247 PR middle-end/51994
4248 * expr.c (get_inner_reference): If there is an offset, add a negative
4249 bit position to it (if any).
4250
4251 2012-02-07 Jakub Jelinek <jakub@redhat.com>
4252
4253 PR rtl-optimization/52060
4254 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
4255 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
4256 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
4257 and/or i0src_copy2 when needed.
4258
4259 2012-02-07 Jakub Jelinek <jakub@redhat.com>
4260
4261 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
4262 or LTOPLUGINSONAME if have_c.
4263
4264 * config/freebsd-spec.h: Add comment about what macros can be defined
4265 in this header.
4266 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
4267 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
4268 here instead.
4269
4270 2012-02-07 Richard Guenther <rguenther@suse.de>
4271
4272 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
4273 newline in -alias dumps.
4274
4275 2012-02-07 Kai Tietz <ktietz@redhat.com>
4276 Dave Korn <dave.korn.cygwin@gmail.com>
4277
4278 PR target/40068
4279 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
4280 Take care that typinfo gets dllexport-attribute.
4281
4282 2012-02-07 Jakub Jelinek <jakub@redhat.com>
4283
4284 PR middle-end/52074
4285 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
4286 if modifier < EXPAND_SUM call force_operand on the result.
4287
4288 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
4289
4290 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
4291 adding __forwarder_dst__ prefix if a forwarder_section attribute is
4292 present.
4293 (epiphany_function_type): Replace types for specific interrupts with
4294 EPIPHANY_FUNCTION_INTERRUPT.
4295 (EPIPHANY_INTERRUPT_P): Update.
4296 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
4297 New static function.
4298 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
4299 <disinterrupt>: Affects type identity.
4300 (epiphany_handle_interrupt_attribute): Handle variable number of
4301 arguments.
4302 (epiphany_compute_function_type): Update for new
4303 epiphany_function_type definition.
4304 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
4305 handlers with a longcall forwarder.
4306 (epiphany_start_function): Handle multiple interrupt arguments and/or
4307 forwarder_section attribute.
4308
4309 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
4310 libgloss.
4311
4312 2012-02-07 Alan Modra <amodra@gmail.com>
4313
4314 PR target/52107
4315 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
4316 subregs of TFmode.
4317
4318 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4319
4320 PR tree-optimization/50969
4321 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
4322 use vec_perm rather than vector_stmt.
4323 (vect_model_load_cost): Likewise.
4324 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
4325 vec_perm to be the same as other vector statements.
4326 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
4327 cost of vec_perm for TARGET_VSX.
4328
4329 2012-02-06 Richard Guenther <rguenther@suse.de>
4330
4331 PR tree-optimization/52115
4332 * tree-sra.c (access_has_replacements_p): New function.
4333 (sra_modify_assign): Use it to decide whether a use is uninitialized.
4334
4335 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
4336
4337 PR middle-end/52047
4338 * trans-mem.c (expand_call_tm): Add an assertion.
4339 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
4340 functions.
4341
4342 2012-02-06 Richard Guenther <rguenther@suse.de>
4343
4344 PR tree-optimization/50955
4345 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
4346 raise cost of expressions that replace an address with an
4347 expression based on a different pointer.
4348
4349 2012-02-06 Jakub Jelinek <jakub@redhat.com>
4350
4351 PR target/52129
4352 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
4353 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
4354
4355 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4356
4357 PR c++/48680
4358 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
4359 -Weffc++ and specify guidelines come from second edition.
4360
4361 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
4362
4363 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
4364 (sibcall_value_multiple_internal, call_split, call_internal_direct)
4365 (call_direct_split, call_value_split, call_value_internal_direct)
4366 (call_value_direct_split, call_value_multiple_split): Use jal and
4367 jal_macro attributes.
4368
4369 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
4370
4371 * reload1.c (reload_regs_reach_end_p): Replace with...
4372 (reload_reg_rtx_reaches_end_p): ...this function.
4373 (new_spill_reg_store): Update commentary.
4374 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
4375 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
4376 before setting new_spill_reg_store.
4377 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
4378 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
4379 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
4380 for non-spill reload registers.
4381
4382 2012-02-05 Ira Rosen <irar@il.ibm.com>
4383
4384 PR tree-optimization/52091
4385 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
4386 (vect_is_simple_use_1): Likewise.
4387 * tree-vect-loop.c (vectorizable_reduction): Update calls
4388 to vect_is_simple_use_1 and vect_is_simple_use.
4389 (vectorizable_live_operation): Likewise.
4390 * tree-vect-patterns.c (widened_name_p,
4391 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
4392 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
4393 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
4394 vectorizable_shift,vectorizable_operation, vectorizable_store,
4395 vectorizable_load): Likewise.
4396 (vect_is_simple_cond): Add an argument, pass it to
4397 vect_is_simple_use_1.
4398 (vectorizable_condition): Update calls to vect_is_simple_cond,
4399 vect_is_simple_use.
4400 (vect_is_simple_use): Add an argument, the statement in which
4401 OPERAND is used. Check that if OPERAND's def stmt is a double
4402 reduction phi node, the use is a phi node too.
4403 (vect_is_simple_use_1): Add an argument, pass it to
4404 vect_is_simple_use.
4405 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
4406 to vect_is_simple_use.
4407
4408 2012-02-04 Jakub Jelinek <jakub@redhat.com>
4409
4410 PR rtl-optimization/52095
4411 * modulo-sched.c (dump_insn_locator): New function.
4412 (loop_canon_p, sms_schedule): Use it.
4413
4414 PR rtl-optimization/52113
4415 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
4416 even for decomposable shift/zext insns.
4417
4418 2012-02-03 Jakub Jelinek <jakub@redhat.com>
4419 Zdenek Dvorak <ook@ucw.cz>
4420
4421 PR rtl-optimization/52092
4422 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
4423 on get_iv_value result.
4424
4425 2012-02-02 Andrew Pinski <apinski@cavium.com>
4426
4427 PR middle-end/47982
4428 PR middle-end/43967
4429 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
4430
4431 2012-02-02 Jakub Jelinek <jakub@redhat.com>
4432
4433 PR middle-end/48071
4434 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
4435
4436 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
4437
4438 PR rtl-optimization/49800
4439 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
4440 (sched_finish): Call regstat_free_n_sets_and_refs.
4441
4442 2012-02-02 Jia Liu <proljc@gmail.com>
4443
4444 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
4445 than operand 2.
4446
4447 2012-02-02 Jan Hubicka <jh@suse.cz>
4448 Tom de Vries <tom@codesourcery.com>
4449
4450 PR middle-end/51998
4451 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
4452 * varpool.c (varpool_analyze_pending_decls): Likewise.
4453
4454 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
4455 Jayant R Sonar <jayant.sonar@kpitcummins.com>
4456
4457 * config.gcc: Add cr16-* support.
4458
4459 * doc/extend.texi: Document cr16 extensions.
4460 * doc/install.texi: Document cr16 install.
4461 * doc/invoke.texi: Document cr16 options.
4462 * doc/md.texi: Document cr16 constraints.
4463
4464 * common/config/cr16/cr16-common.c: New file.
4465 * config/cr16/cr16.c: New file.
4466 * config/cr16/cr16.h: New file.
4467 * config/cr16/cr16.md: New file.
4468 * config/cr16/cr16.opt: New file.
4469 * config/cr16/cr16-protos.h: New file.
4470 * config/cr16/predicates.md: New file.
4471 * config/cr16/constraints.md: New file.
4472 * config/cr16/t-cr16: New file.
4473
4474 2012-02-02 Jakub Jelinek <jakub@redhat.com>
4475
4476 PR target/52086
4477 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
4478 that operands[2] is either immediate, or q_regs_operand.
4479
4480 PR tree-optimization/52073
4481 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
4482 a pattern stmt for pattern uses, ignore uses outside of the loop.
4483
4484 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
4485
4486 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
4487 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
4488 (OUT_AS1, OUT_AS2): Remove.
4489
4490 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
4491
4492 PR rtl-optimization/51374
4493 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
4494 to cross other volatile_refs_p insns.
4495
4496 2012-02-01 Richard Guenther <rguenther@suse.de>
4497
4498 * doc/invoke.texi (fno-inline): Clarify documentation.
4499 (finline-small-functions): Likewise.
4500 (finline-functions): Likewise.
4501 * common.opt (finline): Adjust comment and documentation.
4502 (finline-small-functions): Clarify documentation.
4503 (finline-functions): Likewise.
4504 (finline-functions-called-once): Likewise.
4505
4506 2012-02-01 Tristan Gingold <gingold@adacore.com>
4507
4508 * c-typeck.c (composite_type): Keep mode for pointers.
4509
4510 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
4511
4512 * function.h (regno_reg_rtx): Adjust comment.
4513 * reginfo.c (init_reg_modes_target): Only use the previous mode
4514 if it fits within one register. Remove MIPS comment.
4515
4516 2012-01-31 Jakub Jelinek <jakub@redhat.com>
4517
4518 PR bootstrap/52058
4519 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
4520
4521 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4522
4523 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
4524 to srak instruction.
4525
4526 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4527
4528 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
4529
4530 2012-01-31 Jakub Jelinek <jakub@redhat.com>
4531
4532 PR bootstrap/52041
4533 PR bootstrap/52039
4534 PR target/51974
4535 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
4536
4537 2012-01-31 Richard Guenther <rguenther@suse.de>
4538
4539 PR tree-optimization/51528
4540 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
4541 assigns.
4542
4543 2012-01-31 Jakub Jelinek <jakub@redhat.com>
4544
4545 PR bootstrap/52041
4546 PR bootstrap/52039
4547 PR target/51974
4548 * ree.c (add_removable_extension): Change def_map argument
4549 to unsigned *, store in def_map 1 + offset into *insn_list vector
4550 instead of pointers into the vector.
4551 (find_removable_extensions): Adjust caller.
4552
4553 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
4554
4555 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
4556 Transform all "* quoted-c-code" to { c-code }.
4557 Remove redundant test for "optimize" in combine patterns.
4558 Move (include "avr-dimode.md") to end of file.
4559
4560 2012-01-30 Bin Cheng <bin.cheng@arm.com>
4561
4562 PR target/51835
4563 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
4564 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
4565
4566 2012-01-30 Richard Guenther <rguenther@suse.de>
4567
4568 PR tree-optimization/52028
4569 * tree-loop-distribution.c (ldist_gen): Properly update
4570 virtual SSA form.
4571
4572 2012-01-30 Jakub Jelinek <jakub@redhat.com>
4573
4574 PR debug/52027
4575 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
4576 set_cur_line_info_table if not emitting debug info.
4577
4578 PR tree-optimization/52046
4579 * tree-vect-patterns.c (check_bool_pattern): Give up if
4580 a comparison could throw.
4581
4582 PR debug/52048
4583 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
4584
4585 2012-01-30 Richard Guenther <rguenther@suse.de>
4586
4587 PR tree-optimization/52045
4588 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
4589 SSA form if cfgcleanup did anything.
4590
4591 2012-01-30 Richard Guenther <rguenther@suse.de>
4592
4593 PR tree-optimization/52045
4594 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
4595 before computing final todo.
4596
4597 2012-01-30 Richard Guenther <rguenther@suse.de>
4598
4599 PR tree-optimization/51528
4600 * tree-sra.c (sra_modify_assign): Re-factor in preparation
4601 for PR51528 fix.
4602
4603 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
4604
4605 * df-problems.c (df_kill_notes): Check that the use refers
4606 to the note under examination.
4607
4608 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
4609
4610 PR target/51920
4611 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
4612 parameter and use short-lived pseudos.
4613 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
4614 (sparc_expand_vector_init): Const-ify local variables and adjust
4615 calls to above functions.
4616
4617 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
4618
4619 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
4620
4621 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
4622
4623 * doc/invoke.texi: Make usage of "compile time" and
4624 "run time"/"runtime" consistent throughout the file.
4625
4626 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
4627
4628 * config/alpha/alpha.c (alpha_option_override): Default to
4629 full IEEE compliance mode for Go language.
4630
4631 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
4632
4633 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
4634 (LINK_SSP_SPEC): Define.
4635
4636 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4637
4638 PR target/51871
4639 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
4640 stubs.
4641
4642 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
4643
4644 * doc/invoke.texi: Correct hyphenation of "floating point",
4645 "double precision", and related terminology throughout the file.
4646
4647 2012-01-28 Jakub Jelinek <jakub@redhat.com>
4648
4649 PR target/52006
4650 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
4651 arm_general_register_operand predicate for operand 2 instead of
4652 register_operand.
4653
4654 2012-01-27 Ian Lance Taylor <iant@google.com>
4655
4656 PR go/47656
4657 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
4658 * builtins.c (expand_builtin_init_trampoline): Add onstack
4659 parameter. Change caller.
4660 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
4661 * tree.c (build_common_builtin_nodes): Declare
4662 __builtin_init_heap_trampoline.
4663
4664 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
4665
4666 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
4667 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
4668 * config/avr/avr.c: Ditto.
4669 (avr_regnames): Remove because unused.
4670 * config/avr/avr.md (*cpse.ne): New peephole.
4671 (*cpse.eq): New peephole from former cpse peepholes.
4672
4673 2012-01-27 Michael Eager <eager@eagercon.com>
4674
4675 * config/microblaze.c (microblaze_emit_compare): Correct
4676 test after pcmp instruction.
4677
4678 2012-01-27 Richard Guenther <rguenther@suse.de>
4679
4680 PR tree-optimization/52020
4681 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
4682
4683 2012-01-27 Richard Guenther <rguenther@suse.de>
4684
4685 * ipa-pure-const.c (check_stmt): Clobbers do not make a
4686 function non-const/pure.
4687
4688 2012-01-27 Richard Guenther <rguenther@suse.de>
4689
4690 PR tree-optimization/50444
4691 * tree-sra.c (build_ref_for_offset): Properly adjust the
4692 MEM_REF type for unaligned accesses.
4693
4694 2012-01-27 Richard Guenther <rguenther@suse.de>
4695
4696 PR tree-optimization/50444
4697 * expr.c (mem_ref_refers_to_non_mem_p): New function.
4698 (expand_assignment): Use it. Properly handle misaligned
4699 bases when expanding stores to component references.
4700 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
4701 refactor that case.
4702
4703 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
4704
4705 PR middle-end/51389
4706 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
4707 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
4708 * tree-data-ref.c (find_data_references_in_loop): Make static.
4709 (compute_all_dependences): Change return type to bool. Bail out
4710 for too many datarefs in a loop. Move the hunk resetting the data
4711 dependences vector from ...
4712 (compute_data_dependences_for_loop): ... here. Account for
4713 compute_all_dependences returning false.
4714 (compute_data_dependences_for_bb): Likewise.
4715 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
4716 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
4717
4718 2012-01-27 Richard Guenther <rguenther@suse.de>
4719
4720 PR middle-end/51959
4721 * expr.c (store_field): Use the alias-set of the scratch memory
4722 for storing to it.
4723
4724 2012-01-27 Tom de Vries <tom@codesourcery.com>
4725
4726 PR tree-optimization/51990
4727 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4728 WITH_SIZE_EXPR.
4729 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
4730
4731 2012-01-27 Jakub Jelinek <jakub@redhat.com>
4732
4733 PR debug/52001
4734 * var-tracking.c (reverse_op): Don't add any reverse operation
4735 if V already has any constant locations.
4736
4737 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
4738
4739 * doc/invoke.texi: Correct usage of "command line" (noun)
4740 vs "command-line" (adjective) throughout.
4741
4742 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
4743
4744 * doc/invoke.texi (Language Independent Options): Move
4745 -Wcoverage-mismatch blurb from here....
4746 (Warning Options): ...to here.
4747
4748 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
4749
4750 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4751 Set rs6000_always_hint to false for 476.
4752
4753 2012-01-27 Matthias Klose <doko@ubuntu.com>
4754
4755 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
4756 system root.
4757 * incpath.c (add_standard_paths): Likewise.
4758
4759 2012-01-27 Richard Henderson <rth@redhat.com>
4760
4761 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
4762 * config/m68k/sync.md (atomic_test_and_set): Rename from
4763 sync_test_and_setqi and adjust the operands.
4764 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
4765 and unconditionally enable.
4766
4767 2012-01-27 Richard Henderson <rth@redhat.com>
4768
4769 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
4770 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
4771 (ldstub): Rename from ldstubqi.
4772 (ldstub<I24MODE>): Remove.
4773
4774 2012-01-27 Richard Henderson <rth@redhat.com>
4775
4776 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
4777 * c-cppbuiltin.c (cpp_atomic_builtins): Define
4778 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
4779 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
4780 * doc/tm.texi: Rebuild.
4781
4782 2012-01-27 Richard Henderson <rth@redhat.com>
4783
4784 * optabs.c (gen_atomic_test_and_set): Remove default.
4785 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
4786
4787 2012-01-26 Jakub Jelinek <jakub@redhat.com>
4788
4789 PR rtl-optimization/51978
4790 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
4791 (combine_reaching_defs): Likewise.
4792 (struct re_info): Remove.
4793 (add_removable_extension): Remove x and data arguments,
4794 add insn, insn_list and def_map. Use the arguments directly
4795 instead of using struct re_info.
4796 (find_removable_extensions): Don't call add_removable_extension
4797 through note_stores, instead just call it with single_set
4798 result if non-NULL.
4799 (find_and_remove_re): Pass curr_cand->expr instead of
4800 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
4801
4802 2012-01-26 Michael Matz <matz@suse.de>
4803
4804 PR tree-optimization/46590
4805 * cfgexpand.c: Revert last change (r183305).
4806 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
4807 regs.
4808 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
4809 checking for emptiness.
4810
4811 2012-01-26 Jakub Jelinek <jakub@redhat.com>
4812
4813 PR middle-end/51895
4814 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
4815 non-addressable non-BLKmode base correctly.
4816
4817 2012-01-26 Michael Matz <matz@suse.de>
4818
4819 PR tree-optimization/48794
4820 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
4821 regions referenced from RESX/EH_DISPATCH.
4822
4823 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4824
4825 * config/s390/s390.h: Make BRANCH_COST an option.
4826 * config/s390/s390.opt: New option -mbranch-cost.
4827
4828 2012-01-26 Richard Henderson <rth@redhat.com>
4829
4830 Revert 2012-01-24 change:
4831 * trans-mem.c (requires_barrier): Do not instrument thread local
4832 variables and emit save/restore for them.
4833
4834 2012-01-25 Jakub Jelinek <jakub@redhat.com>
4835
4836 PR middle-end/51986
4837 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
4838 for pat == 0.
4839
4840 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
4841
4842 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
4843 ASM_OPERANDS.
4844
4845 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
4846
4847 PR target/49868
4848 Rename __pgm to __flash.
4849 Rename __pgm1 to __flash1.
4850 Rename __pgm2 to __flash2.
4851 Rename __pgm3 to __flash3.
4852 Rename __pgm4 to __flash4.
4853 Rename __pgm5 to __flash5.
4854 Rename __pgmx to __memx.
4855 * doc/extend.texi (AVR Named Address Spaces)
4856 Rename address space names as indicated above.
4857 * config/avr/avr.c (avr_addrspace): Ditto.
4858
4859 * config/avr/avr-protos.h
4860 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
4861 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
4862 * config/avr/predicates.md: Ditto.
4863 * config/avr/avr.c Ditto, and
4864 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
4865 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
4866
4867 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
4868 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
4869 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
4870 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
4871 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
4872 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
4873 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
4874 * config/avr/avr.c: Ditto.
4875 * config/avr/avr.md: Ditto.
4876
4877 2012-01-25 Jason Merrill <jason@redhat.com>
4878
4879 PR c++/51992
4880 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
4881
4882 2012-01-25 Jakub Jelinek <jakub@redhat.com>
4883
4884 PR tree-optimization/51987
4885 * tree-data-ref.c (get_references_in_stmt): Handle references in
4886 non-volatile GIMPLE_ASM.
4887
4888 2012-01-25 Richard Guenther <rguenther@suse.de>
4889
4890 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
4891 bases are dereferenced.
4892
4893 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
4894
4895 PR rtl-optimization/48374
4896 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
4897
4898 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
4899
4900 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
4901 compute_data_dependences_for_loop returns false.
4902 * tree-parloops.c (loop_parallel_p): Likewise.
4903
4904 2012-01-25 Richard Guenther <rguenther@suse.de>
4905
4906 * tree.h (get_pointer_alignment_1): Declare.
4907 * builtins.c (get_pointer_alignment_1): New function.
4908 (get_pointer_alignment): Use it.
4909
4910 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4911
4912 PR rtl-optimization/48308
4913 * combine.c (enum undo_kind): Add UNDO_LINKS.
4914 (struct undo): Add member l to other_contents and where.
4915 (do_SUBST_LINK): New.
4916 (SUBST_LINK): New.
4917 (try_combine): Handle LOG_LINKS for the dummy i1 case.
4918 (undo_all): Handle UNDO_LINKS.
4919
4920 2012-01-25 Richard Henderson <rth@redhat.com>
4921
4922 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
4923 mem inputs.
4924
4925 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4926
4927 * optabs.c (gen_atomic_test_and_set): Use each argument.
4928
4929 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4930
4931 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
4932 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
4933 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
4934 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
4935 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
4936 TARGET_PAIRED_SINGLE_FLOAT.
4937
4938 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4939
4940 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
4941 (in_struct, return_val): Remove MEM documentation.
4942 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
4943 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
4944 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
4945 and MEM_SCALAR.
4946 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4947 * cfgexpand.c (add_alias_set_conflicts): Likewise.
4948 * expr.c (store_field): Likewise.
4949 * function.c (assign_stack_temp_for_type): Likewise.
4950 * ifcvt.c (noce_try_cmove_arith): Likewise.
4951 * reload1.c (reload): Likewise.
4952 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
4953 (alpha_set_memflags): Likewise.
4954 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
4955
4956 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4957
4958 * rtl.h (true_dependence, canon_true_dependence): Remove varies
4959 parameter.
4960 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
4961 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
4962 (true_dependence_1, true_dependence, canon_true_dependence): Remove
4963 varies parameter.
4964 * cselib.c (cselib_rtx_varies_p): Delete.
4965 (cselib_invalidate_mem): Update call to canon_true_dependence.
4966 * dse.c (record_store, check_mem_read_rtx): Likewise.
4967 (scan_reads_nospill): Likewise.
4968 * cse.c (check_dependence): Likewise.
4969 (cse_rtx_varies_p): Delete.
4970 * expr.c (safe_from_p): Update call to true_dependence.
4971 * ira.c (validate_equiv_mem_from_store): Likewise.
4972 (memref_referenced_p): Likewise.
4973 * postreload-gcse.c (find_mem_conflicts): Likewise.
4974 * sched-deps.c (sched_analyze_2): Likewise.
4975 * store-motion.c (load_kills_store): Likewise.
4976 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
4977 * gcse.c (mems_conflict_for_gcse_p): Likewise.
4978 (compute_transp): Update call to canon_true_dependence.
4979
4980 2012-01-25 Richard Henderson <rth@redhat.com>
4981
4982 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
4983 (maybe_emit_atomic_test_and_set): New.
4984 (expand_sync_lock_test_and_set): Use it.
4985 (expand_atomic_test_and_set): Likewise.
4986 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
4987 the implementation; clarify implementation defined details.
4988 * doc/md.texi (atomic_test_and_set): Document.
4989
4990 2012-01-25 Richard Henderson <rth@redhat.com>
4991
4992 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
4993
4994 2012-01-25 Richard Henderson <rth@redhat.com>
4995
4996 PR target/51968
4997 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
4998 to effect no-op split.
4999
5000 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
5001
5002 PR lto/51698
5003 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
5004 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
5005 (BT_FN_VOID_PTR_INT_SIZE): New.
5006 (BT_FN_UINT_UINT_VAR): Remove.
5007 (BT_FN_UINT32_UINT32_VAR): New.
5008 (BT_FN_DOUBLE_VPTR): Remove.
5009 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
5010
5011 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
5012 (_ITM_changeTransactionMode): Same.
5013 (_ITM_memmoveRtWt): Change return type to void.
5014 (_ITM_memcpyRtWt): Same.
5015 (_ITM_memsetW): Same.
5016 (_ITM_RaRD): Change types to double.
5017 (_ITM_RD): Same.
5018 (_ITM_RaWD): Same.
5019 (_ITM_RfWD): Same.
5020
5021 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
5022
5023 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
5024 Patrick Marlier <patrick.marlier@gmail.com>
5025
5026 * trans-mem.c (requires_barrier): Do not instrument thread local
5027 variables and emit save/restore for them.
5028
5029 2012-01-24 Jason Merrill <jason@redhat.com>
5030
5031 PR c++/51812
5032 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
5033 output static aliases.
5034
5035 2012-01-24 Jakub Jelinek <jakub@redhat.com>
5036
5037 PR driver/47249
5038 * common.opt (-pie, -shared, pie, shared): Change from Common to
5039 Driver.
5040 * gcc.c (display_help): Display help for -pie and -shared.
5041
5042 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
5043
5044 PR target/49868
5045 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
5046 Remove note on size/offset limitation.
5047 (AVR Variable Attributes): Add example how to read data located
5048 with progmem. Refer to named address spaces.
5049 * doc/invoke.texi (AVR Options): Fix typo.
5050
5051 2012-01-24 Richard Guenther <rguenther@suse.de>
5052
5053 Forward-port to trunk
5054 2010-09-21 Jakub Jelinek <jakub@redhat.com>
5055
5056 PR middle-end/45678
5057 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
5058 op0 isn't sufficiently aligned and there is movmisalignM
5059 insn for mode, use it to load op0 into a temporary register.
5060
5061 2012-01-24 Jakub Jelinek <jakub@redhat.com>
5062
5063 PR target/51957
5064 * target.def (const_not_ok_for_debug_p): New hook.
5065 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
5066 documentation.
5067 * doc/tm.texi: Regenerated.
5068 * dwarf2out.c (const_ok_for_output_1): If
5069 targetm.const_not_ok_for_debug_p returns true, fail.
5070 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
5071 function.
5072 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
5073
5074 2012-01-23 Kai Tietz <ktietz@redhat.com>
5075
5076 PR target/51900
5077 * config/i386/predicates.md (symbolic_operand): Allow
5078 UNSPEC_PCREL as PIC expression for lea.
5079 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
5080 * config/i386/i386.c (ix86_delegitimize_address): Handle
5081 UNSPEC_PCREL for none-MEM, too.
5082
5083 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
5084
5085 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
5086 (ipa_tm_create_version_alias): Same.
5087
5088 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
5089
5090 PR libitm/51830
5091 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
5092 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
5093
5094 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
5095 Patrick Marlier <patrick.marlier@gmail.com>
5096 Iain Sandoe <developer@sandoe-acoustics.co.uk>
5097
5098 PR lto/51916
5099 * lto-wrapper.c (run_gcc): Pass the LTO section name to
5100 simple_object_start_read.
5101
5102 2012-01-23 Richard Guenther <rguenther@suse.de>
5103
5104
5105 PR tree-optimization/51895
5106 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
5107 parameter decomposition into BLKmode components.
5108
5109 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
5110
5111 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
5112 fake variables for restrict-qualified pointers whose pointed-to type
5113 contains a placeholder.
5114
5115 2012-01-23 Richard Guenther <rguenther@suse.de>
5116
5117 PR tree-optimization/51949
5118 * ipa-split.c (execute_split_functions): Do not split malloc functions.
5119
5120 2012-01-23 Jakub Jelinek <jakub@redhat.com>
5121
5122 PR rtl-optimization/51933
5123 * ree.c (transform_ifelse): Return true right away if dstreg is
5124 already wider or equal to cand->mode.
5125 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
5126 (make_defs_and_copies_lists): Remove defs_list and copies_list
5127 arguments, add state argument, just truncate state->work_list
5128 instead of always allocating and freeing the vector. Assert that
5129 get_defs succeeds instead of returning 2. Changed return type to bool.
5130 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
5131 have ext_src_mode, see if it has been modified already with the
5132 right kind of extension and has been extended before from the
5133 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
5134 just return true. Remember the original mode in state->modified array.
5135 (combine_reaching_defs): Add state argument. Don't allocate and
5136 free here def_list, copied_list and vec vectors, instead just
5137 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
5138 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
5139 Add state variable, clear vectors in it, initialize state.modified
5140 if needed. Free all the vectors at the end and state.modified too.
5141 Don't skip a candidate if the extension expression has been modified.
5142
5143 2012-01-22 Douglas B Rupp <rupp@gnat.com>
5144
5145 PR target/47096
5146 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
5147 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
5148 (extra_options) interix.opt -> i386/interix.opt"
5149 (extra_objs):Add winnt-stubs.o
5150 * configure.ac: Add interix to target_os .comm on PE check.
5151 * configure: Regenerate.
5152 * config/interix3.h: Delete and move bits to..
5153 * config/interix.h: Delete and move bits to..
5154 * config/i386/i386-interix3.h: Delete and move bits to..
5155 * config/i386/i386-interix.h: ..here.
5156 (TARGET_CPU_DEFAULT): Remove redefinition.
5157 (TARGET_ASM_CONSTRUCTOR): Undefine.
5158 (SUBTARGET_SWITCHES): Define for ms-bitfields.
5159 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
5160 (PTRDIFF_TYPE): Define.
5161 (LONG_DOUBLE_TYPE_SIZE): Define.
5162 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
5163 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5164 (TARGET_SECTION_TYPE_FLAGS): Define.
5165 (ASM_DECLARE_FUNCTION_NAME): Define.
5166 (ASM_OUTPUT_EXTERNAL): Define.
5167 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
5168 (ASM_OUTPUT_ALIGNED_BSS): Define.
5169 (PCC_BITFIELD_TYPE_MATTERS): Define.
5170 (USE_CONST_SECTION): Define.
5171 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
5172 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
5173 (SUPPORTS_ONE_ONLY): Remove.
5174 (I386_PE_STRIP_ENCODING): Define.
5175 * config/interix.opt: Delete and move bits to..
5176 * config/i386/interix.opt: ..here. New.
5177 (mpe-aligned-commons): Add.
5178 * config/i386/t-interix: Add copyright header.
5179 (winnt-stubs.o): Add rule.
5180
5181 2012-01-22 Jason Merrill <jason@redhat.com>
5182
5183 PR c++/51832
5184 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
5185 for extra name aliases.
5186
5187 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
5188
5189 PR rtl-optimization/51924
5190 * ree.c (combine_set_extension): Improve debugging message.
5191 (combine_reaching_defs): Likewise.
5192 (get_defs): Rename confusingly named variable.
5193 (find_and_remove_re): Skip a candidate if the extension expression has
5194 been modified.
5195
5196 2012-01-21 Robert Millan <rmh@gnu.org>
5197 Gerald Pfeifer <gerald@pfeifer.com>
5198
5199 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
5200 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
5201
5202 2012-01-20 Jakub Jelinek <jakub@redhat.com>
5203
5204 PR tree-optimization/51914
5205 * tree-vect-stmts.c (vectorizable_conversion): For
5206 cvt_type && modifier == WIDEN, put temporary with cvt_type
5207 at the beginning of vec_dsts and set vec_dest to temporary
5208 with vectype_out.
5209
5210 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
5211
5212 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
5213
5214 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
5215
5216 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
5217 * config/rs6000/rs6000.c: Likewise.
5218
5219 2012-01-20 Jakub Jelinek <jakub@redhat.com>
5220
5221 PR target/51915
5222 * config/arm/arm.c (arm_count_output_move_double_insns): Call
5223 output_move_double on a copy of operands array.
5224
5225 2012-01-20 Cary Coutant <ccoutant@google.com>
5226 Dodji Seketeli <dodji@redhat.com>
5227
5228 PR debug/45682
5229 * dwarf2out.c (copy_declaration_context): Return ref to parent
5230 of declaration DIE, if necessary.
5231 (remove_child_or_replace_with_skeleton): Add new parameter; update
5232 caller. Place skeleton DIE under parent DIE of original declaration.
5233 Move call to copy_declaration_context to here ...
5234 (break_out_comdat_types): ... from here.
5235
5236 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5237
5238 PR rtl-optimization/51856
5239 * reload.c (find_reloads_subreg_address): Set the address_reloaded
5240 flag to reloaded.
5241
5242 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5243
5244 PR target/51819
5245 * config/arm/arm.c (arm_print_operand): Correct output of alignment
5246 hints for neon loads and stores.
5247
5248 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
5249
5250 PR target/49868
5251 PR target/50887
5252 * doc/extend.texi (Named Address Spaces): Split into subsections.
5253 (AVR Named Address Spaces): New subsection.
5254 (M32C Named Address Spaces): New subsection.
5255 (RL78 Named Address Spaces): New subsection.
5256 (SPU Named Address Spaces): New subsection.
5257 (Variable Attributes): New anchor "AVR Variable Attributes".
5258 (AVR Variable Attributes): Rewrite and avoid wording
5259 "address space" in this context.
5260 * doc/invoke.texi (AVR Options): Rewrite and add documentation
5261 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
5262 (AVR Built-in Macros): New subsubsection therein.
5263 * doc/md.texi (AVR constraints): Remove "C04", "R".
5264
5265 2012-01-20 Richard Guenther <rguenther@suse.de>
5266
5267 PR tree-optimization/51903
5268 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
5269 when removing stmts.
5270
5271 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5272
5273 PR target/50313
5274 * config/arm/arm.c (arm_load_pic_register): Use
5275 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
5276 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
5277 (arm_pic_static_addr): Likewise.
5278 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
5279 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
5280 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
5281 (pic_load_addr_unified): New.
5282
5283 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
5284
5285 PR target/51106
5286 * function.c (instantiate_virtual_regs_in_insn): Use
5287 delete_insn_and_edges when removing a wrong asm insn.
5288
5289 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
5290
5291 PR rtl-optimization/40761
5292 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
5293 Add new member loop_num.
5294 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
5295 (ira_build): Remove the parameter.
5296
5297 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
5298 (ira.c): Do not build CFG loops for one region allocation. Remove
5299 argument from ira_build call.
5300
5301 * ira-build.c (init_loop_tree_node): New function.
5302 (create_loop_tree_nodes): Use it. Separate the case when CFG
5303 loops are not built.
5304 (more_one_region_p): Check current_loops.
5305 (finish_loop_tree_nodes): Separate the case when CFG loops are not
5306 built.
5307 (add_loop_to_tree): Process loop equal to NULL too.
5308 (form_loop_tree): Separate the case when CFG loops are not built.
5309 Use explicitly number for the root.
5310 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
5311 an assertion.
5312 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
5313 instead of loop->num.
5314 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
5315 (mark_all_loops_for_removal): Ditto.
5316 (remove_unnecessary_regions): Separate the case when CFG loops
5317 are not built.
5318 (ira_build): Remove the parameter. Use explicit number of regions
5319 when CFG loops are not built.
5320
5321 * ira-color.c (print_loop_title): Separate the case for the root node.
5322 Use loop_num instead of loop->num.
5323 (move_spill_restore): Use loop_num instead of loop->num.
5324
5325 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
5326 (change_loop): Ditto.
5327 (change_loop): Use loop_num instead of loop->num.
5328
5329 * ira-lives.c (process_bb_node_lives): Ditto.
5330
5331 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
5332
5333 * ira-conflicts.c (print_allocno_conflicts): Ditto.
5334
5335 2012-01-19 Jakub Jelinek <jakub@redhat.com>
5336
5337 PR libmudflap/40778
5338 * tree-mudflap.c (mf_artificial): New function.
5339 (execute_mudflap_function_ops, execute_mudflap_function_decls,
5340 mx_register_decls, mudflap_enqueue_decl): Use it.
5341
5342 PR target/51876
5343 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
5344 numbers in the insn pattern.
5345
5346 2012-01-19 Michael Matz <matz@suse.de>
5347
5348 PR tree-optimization/46590
5349 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
5350 use it in remembering which conflicts we already created.
5351 (add_scope_conflicts): Adjust call to above, (de)allocate helper
5352 bitmap.
5353
5354 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
5355
5356 PR lto/51280
5357 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
5358 (merge_and_complain): Same.
5359
5360 2012-01-19 Jakub Jelinek <jakub@redhat.com>
5361
5362 PR bootstrap/50237
5363 * config/initfini-array.h: Guard content of the header
5364 with #ifdef HAVE_INITFINI_ARRAY.
5365 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
5366 Add initfini-array.h to tm_file here.
5367 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
5368 * config.gcc: Don't add initfini-array.h to tm_file here.
5369 * configure: Regenerated.
5370
5371 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
5372
5373 PR rtl-optimization/51505
5374 * df-problems.c (df_kill_notes): New parameter live. Update comment.
5375 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
5376 (df_note_bb_compute): Update the call to df_kill_notes.
5377
5378 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
5379
5380 * trans-mem.c (requires_barrier): Remove call to is_global_var.
5381
5382 2012-01-18 Richard Guenther <rguenther@suse.de>
5383
5384 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
5385 of conversions to void *.
5386
5387 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5388 Richard Sandiford <rdsandiford@googlemail.com>
5389
5390 PR middle-end/50325
5391 PR middle-end/51192
5392 * optabs.h (simplify_expand_binop): Declare.
5393 * optabs.c (simplify_expand_binop): Make global.
5394 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
5395 endian targets if the source cannot be exactly covered by word
5396 mode chunks.
5397
5398 2012-01-17 Jakub Jelinek <jakub@redhat.com>
5399
5400 PR bootstrap/51872
5401 * hard-reg-set.h (struct hard_reg_set_container): New type.
5402 * target.h (struct hard_reg_set_container): Forward declare.
5403 * target.def (set_up_by_prologue): New target hook.
5404 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
5405 * doc/tm.texi: Regenerated.
5406 * function.c (thread_prologue_and_epilogue_insns): Change
5407 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
5408 Call targetm.set_up_by_prologue on it.
5409 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
5410 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
5411
5412 2012-01-17 Nick Clifton <nickc@redhat.com>
5413
5414 * config/rx/rx.c (rx_can_use_simple_return): New function.
5415 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
5416 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
5417
5418 2012-01-17 Richard Guenther <rguenther@suse.de>
5419
5420 PR middle-end/51782
5421 * expr.c (expand_assignment): Take address-space information
5422 from the address operand of MEM_REF and TARGET_MEM_REF.
5423 (expand_expr_real_1): Likewise.
5424
5425 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5426
5427 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
5428 reload dump is requested.
5429
5430 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
5431
5432 PR other/51165
5433 * trans-mem.c (requires_barrier): Call may_be_aliased.
5434
5435 2012-01-17 Jakub Jelinek <jakub@redhat.com>
5436
5437 PR tree-optimization/51877
5438 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
5439 call arguments and fndecls compare equal, instead return false if they
5440 don't. Return true only if lhs1 and lhs2 are either both NULL, or
5441 both SSA_NAMEs that are valueized the same, or they satisfy
5442 operand_equal_p.
5443
5444 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5445
5446 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
5447 Solaris 11+.
5448 * configure: Regenerate.
5449
5450 2012-01-16 Jan Hubicka <jh@suse.cz>
5451
5452 PR c/12245
5453 PR c++/14179
5454 * convert.c (convert_to_integer): Use fold_convert for
5455 converting an INTEGER_CST to integer type.
5456
5457 2012-01-16 Jason Merrill <jason@redhat.com>
5458
5459 PR c++/14179
5460 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
5461
5462 2012-01-16 Jakub Jelinek <jakub@redhat.com>
5463
5464 PR bootstrap/51860
5465 * config/s390/s390.c (s390_chunkify_start): Don't skip
5466 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
5467 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
5468 If insn is followed by NOTE_INSN_VAR_LOCATION or
5469 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
5470 Don't use location of note insns.
5471
5472 PR tree-optimization/51865
5473 * tree-inline.c (tree_function_versioning): Call remap_decl
5474 on DECL_RESULT whenever it has VOID_TYPE_P type.
5475
5476 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
5477
5478 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
5479 for calls to locally-binding MIPS16 functions if only the return
5480 type uses float regs.
5481
5482 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
5483 Richard Sandiford <rdsandiford@googlemail.com>
5484
5485 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
5486 (SYMBOL_32_HIGH): Likewise.
5487 (mips_output_tls_reloc_directive): Declare.
5488 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
5489 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
5490 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
5491 (mips_lo_relocs, mips_hi_relocs): Make extern.
5492 (mips16_stub_function): Move up file.
5493 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
5494 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
5495 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
5496 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
5497 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
5498 (mips_get_tp): Add MIPS16 support.
5499 (mips_legitimize_tls_address): Remove MIPS16 sorry().
5500 Generalize DTPREL and TPREL handling.
5501 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
5502 Add MIPS16 TLS support.
5503 (mips_output_tls_reloc_directive): New function.
5504 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
5505 * config/mips/predicates.md (symbolic_operand_with_high)
5506 (tls_reloc_operand): New predicates.
5507 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
5508 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
5509 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
5510 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
5511 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
5512 (*tls_get_tp_mips16_call_<mode>): Likewise.
5513
5514 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
5515
5516 PR rtl-optimization/51821
5517 * recog.c (peep2_find_free_register): Determine clobbered registers
5518 from insn pattern.
5519
5520 2012-01-14 Denis Chertykov <chertykov@gmail.com>
5521
5522 PR target/50925
5523 * config/avr/avr-protos.h: Revert change of 2012-01-09.
5524 * config/avr/avr.c: Likewise.
5525 * config/avr/avr.h: Likewise.
5526
5527 2012-01-13 Ian Lance Taylor <iant@google.com>
5528
5529 PR c++/50012
5530 * tree.h (TYPE_QUALS): Add cast to int.
5531 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
5532
5533 2012-01-13 Ian Lance Taylor <iant@google.com>
5534
5535 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
5536 comparing param_index to VEC_length result.
5537
5538 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
5539
5540 * c-decl.c: Do not include tree-mudflap.h
5541 * tree-optimize.c: Likewise.
5542 * Makefile.in: Update dependencies.
5543
5544 2012-01-13 Richard Guenther <rguenther@suse.de>
5545
5546 PR middle-end/8081
5547 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
5548 variable-sized result always use RSO.
5549
5550 2012-01-12 DJ Delorie <dj@redhat.com>
5551
5552 * cfgexpand.c (convert_debug_memory_address): Allow any valid
5553 pointer type, not just the default pointer type.
5554
5555 2012-01-09 Richard Henderson <rth@redhat.com>
5556 Denis Chertykov <chertykov@gmail.com>
5557
5558 PR target/50925
5559 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
5560 * config/avr/avr.c (avr_can_eliminate): Simplify.
5561 (avr_initial_elimination_offset): Likewise.
5562 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
5563 (expand_epilogue): Likewise.
5564 (avr_legitimize_address): Gut.
5565 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
5566 (avr_hard_regno_nregs): New.
5567 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
5568 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
5569 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
5570 add soft frame pointer.
5571 (CALL_USED_REGISTERS): Likewise.
5572 (REG_CLASS_CONTENTS): Likewise.
5573 (REGISTER_NAMES): Likewise.
5574 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
5575 (HARD_FRAME_POINTER_REGNUM): New.
5576 (FRAME_POINTER_REGNUM): Use soft frame pointer.
5577 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
5578 remove the HARD_FRAME_POINTER self-elimination.
5579
5580 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
5581
5582 PR target/51756
5583 * config/avr/avr.c (avr_encode_section_info): Test for absence of
5584 DECL_EXTERNAL when checking for initializers of progmem variables.
5585
5586 2012-01-12 Ira Rosen <irar@il.ibm.com>
5587
5588 PR tree-optimization/51799
5589 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
5590 that the last operation is a type demotion.
5591
5592 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
5593
5594 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
5595 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
5596
5597 2012-01-11 Jakub Jelinek <jakub@redhat.com>
5598
5599 PR bootstrap/51796
5600 * combine.c (distribute_notes): If i3 is a noreturn call,
5601 allow old_size to be equal to args_size and make sure the
5602 noreturn call gets REG_ARGS_SIZE note.
5603 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
5604 on noreturn calls even when the delta is 0.
5605
5606 2012-01-11 Nathan Sidwell <nathan@acm.org>
5607
5608 * gcov.c (STRING_SIZE): Remove.
5609 (generate_results): Erase annotations for source files with no
5610 coverage information.
5611 (read_line): New.
5612 (output_lines): Use it.
5613
5614 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
5615
5616 * gimple.h (gimplify_body): Remove first argument.
5617 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
5618 pointer set here, instead just pass DATA to walk_tree.
5619 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
5620 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
5621 (unvisit_body): Likewise, but with unmark_visited.
5622 (gimplify_body): Remove BODY_P argument and adjust.
5623 (gimplify_function_tree): Adjust call to gimplify_body.
5624 * omp-low.c (finalize_task_copyfn): Likewise.
5625
5626 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
5627
5628 * tree.h (build_function_decl_skip_args): Add boolean parameter.
5629 (build_function_type_skip_args): Delete.
5630 * tree.c (build_function_type_skip_args): Make static and add
5631 SKIP_RETURN parameter. Fix thinko in the handling of variants.
5632 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
5633 pass it to build_function_type_skip_args.
5634 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
5635 (tree_function_versioning): Likewise.
5636 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
5637 build_function_decl_skip_args.
5638 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
5639 and pass it to build_function_decl_skip_args/tree_function_versioning.
5640 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
5641 * ipa-inline-transform.c (save_inline_function_body): Likewise.
5642 * trans-mem.c (ipa_tm_create_version): Likewise.
5643 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
5644 * tree-inline.c (declare_return_variable): Remove always-true test.
5645 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
5646 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
5647 * ipa-split.c (split_function): Skip the return value for the split
5648 part if it doesn't return.
5649
5650 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5651
5652 PR tree-optimization/49642
5653 * ipa-split.c (forbidden_dominators): New variable.
5654 (check_forbidden_calls): New function.
5655 (dominated_by_forbidden): Likewise.
5656 (consider_split): Check for forbidden dominators.
5657 (execute_split_functions): Initialize and free forbidden
5658 dominators info; call check_forbidden_calls.
5659
5660 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5661
5662 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
5663
5664 2012-01-11 Nick Clifton <nickc@redhat.com>
5665
5666 * config/rx/rx.md (return): Define pattern.
5667
5668 2012-01-11 Richard Guenther <rguenther@suse.de>
5669
5670 * doc/extend.texi (malloc attribute): Adjust according to
5671 implementation.
5672
5673 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
5674 Patrick Marlier <patrick.marlier@gmail.com>
5675
5676 PR middle-end/51516
5677 * trans-mem.c (get_cg_data): Traverse aliases if requested.
5678 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
5679 (ipa_tm_note_irrevocable): Same.
5680 (ipa_tm_scan_irr_block): Same.
5681 (ipa_tm_decrement_clone_counts): Same.
5682 (ipa_tm_scan_irr_function): Same.
5683 (ipa_tm_create_version_alias): Same.
5684 (ipa_tm_create_version): Same.
5685 (ipa_tm_transform_calls_redirect): Same.
5686 (ipa_tm_transform_calls): Same.
5687 (ipa_tm_transform_transaction): Same.
5688 (ipa_tm_execute): Same.
5689
5690 2012-01-10 Richard Guenther <rguenther@suse.de>
5691
5692 PR middle-end/51806
5693 * opts.c (common_handle_option): Handle -Werror.
5694
5695 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
5696
5697 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
5698 operand number.
5699
5700 2012-01-10 Jason Merrill <jason@redhat.com>
5701
5702 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
5703 information.
5704
5705 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5706
5707 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
5708 supports R_386_TLS_GD_PLT reloc.
5709 (gcc_cv_as_ix86_tlsldmplt): Check if linker
5710 supports R_386_TLS_LDM_PLT reloc.
5711 * configure: Regenerate.
5712 * config.in: Regenerate.
5713
5714 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
5715
5716 PR target/49868
5717 Extend __pgmx semantics to linearize memory.
5718 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
5719 determine if code comes inline or from libgcc.
5720 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
5721 (movmem_qi, movmem_qi): Set constraint #2 to "n".
5722 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
5723 (movmemx_qi, movmemx_hi): New insns.
5724 (xload_<mode>_libgcc): Rewrite to new insn condition.
5725 (xload_<mode>): Remove insns.
5726 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
5727 cases that don't satisfy avr_xload_libgcc_p().
5728 (avr_addr_space_convert): Allow converting in any direction.
5729 (avr_addr_space_subset_p): Return always true.
5730 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
5731 (avr_emit_movmemhi): Ditto.
5732 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
5733 (avr_out_movmem): Ditto.
5734 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
5735 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
5736 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
5737 (avr_encode_section_info): Encode 'progmem' in symbol flags.
5738 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
5739
5740 2012-01-10 Richard Guenther <rguenther@suse.de>
5741
5742 PR tree-optimization/50913
5743 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
5744 Require data-refs to be representable by Graphite with respect
5745 to any loop nest.
5746
5747 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
5748
5749 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
5750 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
5751
5752 2012-01-10 Tom de Vries <tom@codesourcery.com>
5753
5754 PR rtl-optimization/51271
5755 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
5756 handling annulled branch.
5757
5758 2012-01-10 Richard Henderson <rth@redhat.com>
5759
5760 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
5761 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
5762 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
5763 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
5764 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
5765 arm_expand_vec_perm_const): New.
5766 * config/arm/arm-protos.h: Update.
5767 * config/arm/neon.md (UNSPEC_VCONCAT): New.
5768 (*neon_vswp<VDQX>): New.
5769 (neon_vcombine<VDX>): Use neon_split_vcombine.
5770 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
5771 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
5772 (vec_perm<VE>): New.
5773
5774 2012-01-10 Richard Henderson <rth@redhat.com>
5775
5776 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
5777 use it if reload_completed.
5778 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
5779 arm_output_asm_insn, arm_process_output_memory_barrier,
5780 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
5781 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
5782 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
5783 arm_process_output_sync_insn, arm_output_sync_insn,
5784 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
5785 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
5786 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
5787 (emit_unlikely_jump): New.
5788 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
5789 (arm_split_atomic_op): New.
5790 * config/arm/arm-protos.h: Update.
5791 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
5792 (struct arm_sync_generator): Remove.
5793 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
5794 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
5795 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
5796 (VUNSPEC_LL, VUNSPEC_SC): New.
5797 (sync_result, sync_memory, sync_required_value, sync_new_value,
5798 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
5799 (attr length): Don't use arm_sync_loop_insns.
5800 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
5801 (movsfcc, movdfcc): Likewise.
5802 * config/arm/constraints.md (Ua): New.
5803 * config/arm/prediates.md (mem_noofs_operand): New.
5804 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
5805 (sync_clobber, sync_t2_reqd): Remove.
5806 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
5807 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
5808 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
5809 (arm_sync_compare_and_swap<SIDI>): Remove.
5810 (arm_sync_compare_and_swap<NARROW>): Remove.
5811 (arm_sync_lock_test_and_set<SIDI>): Remove.
5812 (arm_sync_lock_test_and_set<NARROW>): Remove.
5813 (arm_sync_new_<syncop><SIDI>): Remove.
5814 (arm_sync_new_<syncop><NARROW>): Remove.
5815 (arm_sync_new_nand<SIDI>): Remove.
5816 (arm_sync_new_nand<NARROW>): Remove.
5817 (arm_sync_old_<syncop><SIDI>): Remove.
5818 (arm_sync_old_<syncop><NARROW>): Remove.
5819 (arm_sync_old_nand<SIDI>): Remove.
5820 (arm_sync_old_nand<NARROW>): Remove.
5821 (*memory_barrier): Merge arm_output_memory_barrier.
5822 (atomic_compare_and_swap<QHSD>): New.
5823 (atomic_compare_and_swap<NARROW>_1): New.
5824 (atomic_compare_and_swap<SIDI>_1): New.
5825 (atomic_exchange<QHSD>): New.
5826 (cas_cmp_operand, cas_cmp_str): New.
5827 (atomic_op_operand, atomic_op_str): New.
5828 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
5829 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
5830 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
5831 (arm_load_exclusive<NARROW>): New.
5832 (arm_load_exclusivesi, arm_load_exclusivedi): New.
5833 (arm_store_exclusive<QHSD>): New.
5834
5835 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5836
5837 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
5838 reload patterns if -mvsx-scalar-memory.
5839
5840 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
5841 generated, even -mno-vsx-scalar-double was used.
5842 (vsx_xscvdpsp_scalar): Likewise.
5843 (vsx_xscvspdp_scalar2): Likewise.
5844
5845 2012-01-09 Tom de Vries <tom@codesourcery.com>
5846 Andrew Pinski <apinski@cavium.com>
5847
5848 PR debug/51471
5849 * reorg.c (fill_slots_from_thread): Don't speculate
5850 frame-related insns.
5851
5852 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
5853
5854 * sched-int.h (bb_note): Move to...
5855 * basic-block.h: ...here.
5856 * haifa-sched.c (bb_note): Move to...
5857 * cfgrtl.c: ...here.
5858 * function.c (next_block_for_reg): New function.
5859 (move_insn_for_shrink_wrap): Likewise.
5860 (prepare_shrink_wrap): Rewrite to use the above.
5861
5862 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
5863
5864 * gimple.c (is_gimple_non_addressable): Remove.
5865 * gimple.h: Remove is_gimple_non_addressable.
5866 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
5867 is_gimple_non_addressable.
5868 * trans-mem.c (expand_assign_tm): Same.
5869
5870 2012-01-09 Richard Guenther <rguenther@suse.de>
5871
5872 PR tree-optimization/51775
5873 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
5874 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
5875
5876 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5877
5878 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
5879 tuning parameters.
5880 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
5881
5882 2012-01-09 Richard Guenther <rguenther@suse.de>
5883
5884 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
5885
5886 2012-01-08 Jan Hubicka <jh@suse.cz>
5887
5888 PR tree-optimize/51680
5889 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
5890 on when known_vals needs to be computed; cleanup.
5891
5892 2012-01-08 Jan Hubicka <jh@suse.cz>
5893
5894 PR tree-optimize/51694
5895 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
5896
5897 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5898
5899 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
5900 for -std=c++98 and -std=c++11 too.
5901
5902 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
5903
5904 * cfgloop.c (cancel_loop): Add free() of bbs array.
5905
5906 2012-01-07 Jan Hubicka <jh@suse.cz>
5907
5908 PR tree-optimization/51600
5909 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
5910 that benefits small functions.
5911
5912 2012-01-07 Jan Hubicka <jh@suse.cz>
5913
5914 * ipa-inline.c (want_inline_small_function_p): Fix formating.
5915
5916 2012-01-07 Jan Hubicka <jh@suse.cz>
5917
5918 PR tree-optimization/51680
5919 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
5920 whose inlining reduce unit size.
5921
5922 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
5923
5924 PR bootstrap/51725
5925 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
5926 Add canonical node to containing_mem chain after the non-canonical
5927 one, even if there weren't any locs to propagate.
5928 (remove_useless_values): Keep only canonical values.
5929 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
5930 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
5931 canonicalize mem_chain elements that are not discarded.
5932
5933 2012-01-06 Jakub Jelinek <jakub@redhat.com>
5934
5935 PR target/47333
5936 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
5937 before emitting functions.
5938
5939 PR gcov-profile/50127
5940 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
5941 clear_aux_for_blocks.
5942
5943 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
5944
5945 PR debug/51746
5946 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
5947
5948 2012-01-06 Arnaud Charlet <charlet@adacore.com>
5949
5950 * c-decl.c (ext_block): Moved up.
5951 (collect_all_refs, for_each_global_decl): Take ext_block into account.
5952
5953 2012-01-06 Han Shen <shenhan@google.com>
5954
5955 Translate built-in include paths for sysroot.
5956 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
5957 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
5958
5959 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
5960 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
5961
5962 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
5963 control whether sysroot should be prepended to gxx include dir.
5964
5965 * configure: Regenerate.
5966
5967 2012-01-06 Torvald Riegel <triegel@redhat.com>
5968
5969 PR rtl-optimization/51771
5970 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
5971 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
5972
5973 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
5974
5975 PR tree-optimization/51315
5976 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
5977 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
5978
5979 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
5980
5981 PR target/51681
5982 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
5983 for shrp pattern. Correctly handle and fixup shift variable.
5984 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
5985
5986 2012-01-05 Jakub Jelinek <jakub@redhat.com>
5987
5988 PR debug/51762
5989 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
5990 note when !ACCUMULATE_OUTGOING_ARGS.
5991
5992 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
5993
5994 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
5995 condition.
5996 (extract_range_from_unary_expr_1): Avoid useless computations.
5997
5998 2012-01-05 Jakub Jelinek <jakub@redhat.com>
5999
6000 PR rtl-optimization/51767
6001 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
6002 of jump_block and add an extra edge for degenerated asm gotos.
6003
6004 PR middle-end/51768
6005 * stmt.c (check_unique_operand_names): Don't ICE during error
6006 reporting if i is from labels chain.
6007
6008 PR middle-end/44777
6009 * profile.c (branch_prob): Split bbs that have exit edge
6010 and need a fake entry edge too.
6011
6012 2012-01-05 Jan Hubicka <jh@suse.cz>
6013
6014 PR middle-end/49710
6015 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
6016 unlooping loops.
6017
6018 2012-01-05 Richard Guenther <rguenther@suse.de>
6019
6020 PR lto/50490
6021 * tree-streamer-out.c (write_ts_optimization): New function.
6022 (streamer_write_tree_body): Call it.
6023 * tree-streamer-in.c (lto_input_ts_optimization): New function.
6024 (streamer_read_tree_body): Call it.
6025 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
6026
6027 2012-01-05 Jakub Jelinek <jakub@redhat.com>
6028
6029 PR middle-end/51761
6030 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
6031 * gimplify.c (gimplify_cleanup_point_expr): Save and set
6032 in_cleanup_point_expr before gimplify_stmt call and restore it
6033 afterwards.
6034 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
6035 in_cleanup_point_expr is false.
6036
6037 2012-01-05 Richard Guenther <rguenther@suse.de>
6038
6039 PR middle-end/51764
6040 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
6041 to c.opt.
6042 * toplev.c (process_options): Reject combining mudflap and LTO.
6043 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
6044
6045 2012-01-05 Richard Guenther <rguenther@suse.de>
6046
6047 PR tree-optimization/51760
6048 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
6049 not VARYING.
6050 (bit_value_unop): Handle UNDEFINED operands.
6051 (bit_value_binop): Likewise.
6052
6053 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
6054
6055 * config/avr/avr.c (avr_replace_prefix): Remove.
6056 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
6057 (avr_asm_function_rodata_section): Ditto.
6058 (avr_asm_select_section): Ditto.
6059
6060 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
6061
6062 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
6063 insertion.
6064
6065 2012-01-05 Jakub Jelinek <jakub@redhat.com>
6066
6067 PR bootstrap/51648
6068 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
6069 calls that have any non-fake successor edges.
6070
6071 PR debug/51746
6072 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
6073
6074 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
6075
6076 PR tree-optimization/51624
6077 * tree-sra.c (build_ref_for_model): When replicating a chain of
6078 COMPONENT_REFs, stop as soon as the offset would become negative.
6079
6080 2012-01-04 Jakub Jelinek <jakub@redhat.com>
6081
6082 PR debug/51695
6083 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
6084 in .debug_loc on the floor.
6085
6086 2012-01-04 Andrew Pinski <apinski@cavium.com>
6087
6088 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
6089
6090 2012-01-04 Andrew Pinski <apinski@cavium.com>
6091 Adam Nemet <anemet@caviumnetworks.com>
6092
6093 * config/mips/mips.md (size): Add SI and DI.
6094 (SIZE): New mode attribute.
6095 (U): New code attribute.
6096 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
6097 (mips_lbux_<mode>): Delete.
6098 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
6099 (mips_lhx): Use gen_mips_lhx_extsi.
6100 (mips_lhx_<mode>): Delete.
6101 (mips_lwx): Delete.
6102 (mips_l<size>x): New expand.
6103 (mips_lwx_<mode>): Delete.
6104 (mips_l<GPR:size>x_<P:mode>): New pattern.
6105 (*mips_lw<u>x_<P:mode>_ext): Likewise.
6106 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
6107 * config/mips/mips.c (mips_lx_address_p): New function.
6108 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
6109 (dsp64): New availability predicate.
6110 (mips_builtins): Add an entry for __builtin_mips_ldx.
6111 * config/mips/mips.h (ISA_HAS_LBX): New define.
6112 (ISA_HAS_LBUX): Likewise.
6113 (ISA_HAS_LHX): Likewise.
6114 (ISA_HAS_LHUX): Likewise.
6115 (ISA_HAS_LWX): Likewise.
6116 (ISA_HAS_LWUX): Likewise.
6117 (ISA_HAS_LDX): Likewise.
6118 * doc/extend.texi (__builtin_mips_ldx): Document.
6119
6120 2012-01-04 Tristan Gingold <gingold@adacore.com>
6121
6122 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
6123 when long pointers are used.
6124 * config.build (*-*-*vms*): Handle all OpenVMS targets.
6125 (alpha64-dec-*vms*, alpha*-dec-*vms*)
6126 (ia64-hp-*vms*): Remove.
6127 * config/vms/xm-vms64.h: Delete.
6128
6129 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
6130
6131 PR middle-end/51472
6132 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
6133
6134 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
6135
6136 * opts.c (finish_options): Remove duplicate sorry.
6137
6138 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
6139
6140 PR middle-end/51696
6141 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
6142 correctly.
6143
6144 2012-01-04 Richard Guenther <rguenther@suse.de>
6145
6146 PR middle-end/51750
6147 * tree.c (size_low_cst): New function.
6148 * tree.h (size_low_cst): Declare.
6149 * fold-const.c (fold_comparison): Use it to extract the low
6150 part of the POINTER_PLUS_EXPR offset.
6151
6152 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
6153
6154 Fix clearing ZERO_REG
6155 * config/avr/avr.md (cc): Add alternative "ldi".
6156 (movqi_insn): Use it in cc attribute.
6157 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
6158 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
6159 (output_reload_insisf): Use ZERO_REG to pre-clear register.
6160
6161 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6162
6163 * configure: Regenerate.
6164
6165 2012-01-04 Richard Guenther <rguenther@suse.de>
6166
6167 PR tree-optimization/49651
6168 * tree-ssa-structalias.c (type_can_have_subvars): New function.
6169 (var_can_have_subvars): Use it.
6170 (get_constraint_for_1): Only consider subfields if there can be any.
6171
6172 2012-01-03 Jakub Jelinek <jakub@redhat.com>
6173
6174 PR bootstrap/51725
6175 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
6176 to its new canonical_cselib_val and the cselib_val was in
6177 first_containing_mem chain, but the canonical_cselib_val was not,
6178 add the latter into the chain.
6179 (cselib_invalidate_mem): Compare canonical_cselib_val of
6180 addr_list chain elt with v.
6181
6182 PR pch/51722
6183 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
6184 dwarf2out_undef): Allocate e.info using ggc_strdup instead
6185 of xstrdup.
6186 (output_macinfo_op): Don't ggc_strdup fd->filename.
6187 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
6188 then ggc_strdup it. Don't free inc->info or cur->info.
6189 (output_macinfo): Don't free ref->info or file->info.
6190
6191 2012-01-03 Ira Rosen <irar@il.ibm.com>
6192
6193 PR tree-optimization/51269
6194 * tree-vect-loop-manip.c (set_prologue_iterations): Make
6195 first_niters a pointer.
6196 (slpeel_tree_peel_loop_to_edge): Likewise.
6197 (vect_do_peeling_for_loop_bound): Update call to
6198 slpeel_tree_peel_loop_to_edge.
6199 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
6200 here. Remove it from the parameters list.
6201 (vect_do_peeling_for_alignment): Update calls and compute
6202 wide_prolog_niters.
6203
6204 2012-01-03 Richard Guenther <rguenther@suse.de>
6205
6206 PR tree-optimization/51070
6207 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
6208 Properly handle calls.
6209
6210 2012-01-03 Richard Guenther <rguenther@suse.de>
6211
6212 PR tree-optimization/51692
6213 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
6214 the LHS of allocation stmts.
6215
6216 2012-01-03 Olivier Hainque <hainque@adacore.com>
6217
6218 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
6219
6220 2012-01-03 Olivier Hainque <hainque@adacore.com>
6221
6222 * collect2.c (main): In AIX specific computations for vector
6223 insertions, use CONST_CAST2 to cast from char ** to const char **.
6224
6225 2012-01-03 Richard Guenther <rguenther@suse.de>
6226
6227 PR debug/51650
6228 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
6229 the context of a limbo DIE when it does not already exist.
6230
6231 2012-01-03 Jakub Jelinek <jakub@redhat.com>
6232
6233 PR tree-optimization/51719
6234 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
6235 but direct call is, clear direct call's lhs and don't add fallthrough
6236 edge from dcall_bb to join_bb and PHIs.
6237
6238 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6239
6240 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
6241 the instructions emitted by the pattern.
6242 ("*TDC_insn_<mode>"): Add comment.
6243
6244 2012-01-03 Richard Guenther <rguenther@suse.de>
6245
6246 PR middle-end/51730
6247 * fold-const.c (fold_comparison): Properly canonicalize
6248 tree offset and HOST_WIDE_INT bit position.
6249
6250 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
6251
6252 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
6253 operands for extzv pattern.
6254
6255 2012-01-02 Jakub Jelinek <jakub@redhat.com>
6256
6257 PR bootstrap/51725
6258 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
6259 on mem_elt first.
6260
6261 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
6262
6263 * doc/invoke.texi (-flto and related options): Copy-edit.
6264
6265 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6266
6267 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
6268
6269 2012-01-02 Jakub Jelinek <jakub@redhat.com>
6270
6271 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
6272 New patterns.
6273
6274 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6275
6276 * expr.h (move_by_pieces_ninsns): Declare.
6277 * expr.c (move_by_pieces_ninsns): Make external.
6278 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
6279 (mips_store_by_pieces_p): Likewise.
6280 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
6281 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
6282 * config/mips/mips.c (mips_move_by_pieces_p): New function.
6283 (mips_store_by_pieces_p): Likewise.
6284
6285 2012-01-02 Jakub Jelinek <jakub@redhat.com>
6286
6287 * passes.c (register_one_dump_file): Free full_name.
6288
6289 * reload1.c (reload): Don't allocate reg_max_ref_width here.
6290 (calculate_elim_costs_all_insns): Free offsets_at and
6291 offsets_known_at at the end and clear the pointers.
6292
6293 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6294
6295 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
6296 this option introduced in r180739.
6297
6298 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6299
6300 PR target/51345
6301 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
6302 (tmake_file target=avr): Add avr/t-multilib.
6303
6304 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
6305 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
6306 * config/avr/genmultilib.awk: New file.
6307 * config/avr/t-multilib: New auto-generated file.
6308 * config/avr/multilib.h: New auto-generated file.
6309 * config/avr/t-avr (AVR_MCUS): New variable.
6310 (genopt.sh): Use it.
6311 (s-mlib): Depend on t-multilib.
6312 (t-multilib, multilib.h): New dependencies.
6313 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
6314 (MULTILIB_OPTIONS): Remove.
6315 (MULTILIB_MATCHES): Remove.
6316 (MULTILIB_DIRNAMES): Remove.
6317 (MULTILIB_EXCEPTIONS): Remove:
6318 * config/avr/genopt.sh: Don't use hard coded file name;
6319 pass AVR_MCUS from t-avr instead.
6320
6321 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6322
6323 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
6324
6325 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6326
6327 Implement light-weight DImode support.
6328 * config/avr/avr-dimode.md: New file.
6329 * config/avr/avr.md: Include it.
6330 (adjust_len): Add plus64, compare64.
6331 (HIDI): Remove code iterator.
6332 (code_stdname): New code attribute.
6333 (rotx, rotsmode): Remove DI.
6334 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
6335 as code iterator.
6336 * config/avr/avr-protos.h (avr_have_dimode): New.
6337 (avr_out_plus64, avr_out_compare64): New.
6338 * config/avr/avr.c (avr_out_compare): Handle DImode.
6339 (avr_have_dimode): New variable definition and initialization.
6340 (avr_out_compare64, avr_out_plus64): New functions.
6341 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
6342 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
6343 (avr_compare_pattern): Skip DImode comparisons.
6344
6345 2012-01-02 Revital Eres <revital.eres@linaro.org>
6346
6347 * ddg.c (def_has_ccmode_p): New function.
6348 (add_cross_iteration_register_deps,
6349 create_ddg_dep_from_intra_loop_link): Call it.
6350
6351 2012-01-02 Richard Guenther <rguenther@suse.de>
6352
6353 PR other/51679
6354 * invoke.texi (fassociative-math): Remove spurious paranthesis.
6355
6356 2012-01-01 Jakub Jelinek <jakub@redhat.com>
6357
6358 * gcc.c (process_command): Update copyright notice dates.
6359 * gcov.c (print_version): Likewise.
6360 * gcov-dump.c (print_version): Likewise.
6361 * mips-tfile.c (main): Likewise.
6362 * mips-tdump.c (main): Likewise.
6363
6364 2012-01-01 Ira Rosen <irar@il.ibm.com>
6365
6366 PR tree-optimization/51704
6367 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
6368 a use is inside the basic block or loop before accessing its vect info.
6369
6370 2012-01-01 Jan Hubicka <jhjh@suse.cz>
6371
6372 PR rtl-optimization/51069
6373 * cfgloopmanip.c (remove_path): Removing path making irreducible
6374 region unconditional makes BB part of the region.
6375
6376 2012-01-01 Jakub Jelinek <jakub@redhat.com>
6377
6378 PR tree-optimization/51683
6379 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
6380 calls with side-effects.
6381 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6382 \f
6383 Copyright (C) 2012 Free Software Foundation, Inc.
6384
6385 Copying and distribution of this file, with or without modification,
6386 are permitted in any medium without royalty provided the copyright
6387 notice and this notice are preserved.