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