1 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
3 * config/sh/sh.md (negc): Delete expander.
4 (*negc): Rename insn to negc.
6 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
9 * config/i386/i386.md (*lea): New insn pattern.
11 (*lea<mode>_2): Ditto.
12 (*lea_{3,4,5,6}_zext): Ditto.
13 * config/i386/constraints.md (j): Remove address constraint.
14 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
16 (ix86_print_operand_address): Handle SImode subreg of an address.
17 (ix86_avoid_lea_for_add): Reject zero-extended addresses for now.
19 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
21 Emit executable-stack note correctly for CRIS targets.
22 * config/cris/cris.c (cris_file_end): New function.
23 (TARGET_ASM_FILE_END): Define.
25 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
26 Maxim Kuvyrkov <maxim@codesourcery.com>
27 NetLogic Microsystems Inc.
29 * config/mips/mips.c (mips_issue_rate): Handle XLP.
30 * config/mips/mips.md: Include xlp.md.
31 * config/mips/xlp.md: New file.
33 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
36 * profile.c (branch_prob): Update total_num_edges_instrumented and
37 report the number of edges to instrument.
39 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
41 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
43 2012-07-21 Andrew Pinski <apinski@cavium.com>
45 * config/mips/mips.md (*popcountdi2_trunc): New pattern
46 to handle popcount of a truncation.
48 2012-07-21 Andrew Pinski <apinski@cavium.com>
50 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
52 * config/mips/mips.c (mips_block_move_straight): Update call to
53 mips_expand_ext_as_unaligned_load.
54 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
55 Accept DImode dest when the width is that of SImode.
56 * config/mips/mips.md (extv): Update call to
57 mips_expand_ext_as_unaligned_load.
60 2012-07-21 Andrew Pinski <apinski@cavium.com>
62 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
65 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
67 * config/mips/mips.md (define_attr sync_*): Move before "type".
68 (define_attr "type"): New values "atomic" and "syncloop".
69 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
71 * config/mips/generic.md (generic_atomic, generic_syncloop):
73 * gcc/config/mips/10000.md, gcc/config/mips/20kc.md,
74 * gcc/config/mips/24k.md, gcc/config/mips/4130.md,
75 * gcc/config/mips/4k.md, gcc/config/mips/5400.md,
76 * gcc/config/mips/5500.md, gcc/config/mips/5k.md,
77 * gcc/config/mips/7000.md, gcc/config/mips/74k.md,
78 * gcc/config/mips/9000.md, gcc/config/mips/loongson2ef.md,
79 * gcc/config/mips/loongson3a.md, gcc/config/mips/octeon.md,
80 * gcc/config/mips/sb1.md, gcc/config/mips/sr71k.md,
81 * gcc/config/mips/xlr.md: Handle "atomic" and "syncloop" types.
83 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
85 * config/sh/sh.md: Group and sort shift related patterns.
86 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
88 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
90 * config/cris/cris.c (cris_asm_output_ident): Remove unused
91 local variables section_asm_op, size, buf.
93 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
94 Steven Bosscher <steven@gcc.gnu.org>
95 * config/rs6000/power4.md (power4-store-update): Fix reservation.
96 (power4-three): Likewise.
98 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
99 Greta Yorsh <Greta.Yorsh@arm.com>
101 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
102 * config/arm/arm-cores.def (cortex-a15): Use it.
104 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
105 Greta Yorsh <Greta.Yorsh@arm.com>
107 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
108 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
109 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
110 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
111 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
112 (arm_fa726te_tune): Likewise.
114 2012-07-20 Richard Guenther <rguenther@suse.de>
116 * tree-dfa.c (collect_dfa_stats): Simplify.
117 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
119 * cfgexpand.c (estimated_stack_frame_size): Walk over local
120 decls instead of referenced vars.
121 * tree-ssa.c (delete_tree_ssa): Simplify.
122 * tree-tailcall.c (find_tail_calls): Walk over local decls
123 instead of referenced vars.
124 (add_virtual_phis): Remove.
125 (tree_optimize_tail_calls_1): Instead mark the virtual operand
128 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
130 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
131 (brief_dump_cfg): Update prototype to take flags argument.
132 (check_bb_profile): Remove prototype.
133 * tracer.c (tracer): Update brief_dump_cfg calls.
134 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
135 Call dump_bb_info before and after the cfghook dump_bb. Terminate
136 the dump with a newline.
137 (dump_flow_info): Do not call check_bb_profile.
138 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
139 (check_bb_profile): Make static. Take indent and flags arguments.
140 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
141 check_bb_profile. Print one edge per line.
142 (brief_dump_cfg): Take a flags argument, and filter out
143 TDF_COMMENT and TDF_DETAILS.
144 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
145 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
146 dump_bb_info here, it is already called from dump_bb. Idem for
148 (dump_gimple_bb_footer): Likewise.
149 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
150 avoid broken dumps for statement histograms.
151 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
152 not call pp_flush here, the buffer should be empty.
153 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
154 * sched-vis.c (debug_bb_slim): Likewise.
155 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
156 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
157 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
158 (dump_function_to_file): Do not call check_bb_profile on
159 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
160 Use dump_bb instead of gimple_dump_bb.
161 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
162 * passes.c (execute_function_dump): Always call print_rtl_with_bb
164 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
165 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
166 bottom of each basic block.
168 2012-07-20 Richard Guenther <rguenther@suse.de>
170 PR tree-optimization/54031
171 * tree-ssa-ccp.c (get_value_from_alignment): Use
172 get_pointer_alignment_1.
174 2012-07-20 Richard Guenther <rguenther@suse.de>
176 * tree-inline.c (add_local_variables): Remove check_var_ann
177 parameter and dead code.
178 (expand_call_inline): Adjust.
179 (tree_function_versioning): Likewise.
181 2012-07-20 Jakub Jelinek <jakub@redhat.com>
184 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
185 of just the first one.
187 2012-07-20 Richard Guenther <rguenther@suse.de>
189 * builtins.c (get_object_alignment_2): Correct offset handling
190 when using type alignment of a MEM_REF kind base.
192 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
195 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
198 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
200 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
202 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
204 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
205 defining statement is a SSA name that occurs in abnormal PHIs.
207 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
209 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
212 2012-07-19 Jakub Jelinek <jakub@redhat.com>
214 PR rtl-optimization/53942
215 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
216 directly from likely spilled non-fixed hard registers, move them
219 2012-07-19 Steve Ellcey <sellcey@mips.com>
221 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
224 2012-07-19 Jason Merrill <jason@redhat.com>
227 * dwarf2out.c (get_die_parent): New.
228 (generate_type_signature): Use it.
230 2012-07-19 Richard Henderson <rth@redhat.com>
232 * config/ia64/vect.md (smulv4hi3_highpart): New.
233 (umulv4hi3_highpart): New.
234 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
235 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
236 (udot_prodv8qi, sdot_prodv8qi): Remove.
237 (sdot_prodv4hi, udot_prodv4hi): Remove.
238 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
239 * config/ia64/ia64-protos.h: Update.
241 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
242 vectors larger than UNITS_PER_WORD.
244 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
245 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
246 dummy != CODE_FOR_nothing value.
248 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
250 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
251 * doc/tm.texi: Regenerate.
252 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
253 * config/sh/sh.h (MODE_AFTER): Update.
254 * config/epiphany/epiphany.h (MODE_AFTER): Update.
256 2012-07-19 Jakub Jelinek <jakub@redhat.com>
259 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
260 (cleanup_tree_cfg_bb): Don't call it.
261 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
264 2012-07-19 Christian Bruel <christian.bruel@st.com>
267 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
269 2012-07-19 Richard Guenther <rguenther@suse.de>
270 Eric Botcazou <ebotcazou@adacore.com>
272 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
273 about transition from invariant to known bits.
274 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
276 2012-07-19 Richard Guenther <rguenther@suse.de>
278 PR tree-optimization/53970
279 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
281 2012-07-19 Tristan Gingold <gingold@adacore.com>
282 Richard Henderson <rth@redhat.com>
284 * opts.c (finish_options): Handle UI_SEH.
285 * expr.c (build_personality_function): Handle UI_SEH.
286 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
287 * coretypes.h (unwind_info_type): Add UI_SEH.
288 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
290 (i386_pe_seh_init_sections): Likewise.
291 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
292 (TARGET_ASM_INIT_SECTIONS): Define.
293 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
294 (i386_except_unwind_info): New function.
296 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
297 Chao-ying Fu <fu@mips.com>
299 * config/mips/mips.opt (mmcu): New option.
300 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
301 _mips_mcu when TARGET_MCU.
302 (ASM_SPEC): Pass mcu options to the assembler.
303 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
305 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
307 * config.gcc (v850-*-rtems*): New target.
308 * config/v850/rtems.h: New.
309 * config/v850/t-rtems: New.
311 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
313 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
314 of flags controlling optimization; add -ftree-slsr to list of flags
315 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
316 enabled by default at -O2; add -fvect-cost-model to list of flags
317 enabled by default at -O3; document -fhoist-adjacent-loads and
319 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
320 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
322 * common.opt: Add -ftree-slsr with flag_tree_slsr.
324 2012-07-18 Jie Zhang <jzhang918@gmail.com>
325 Julian Brown <julian@codesourcery.com>
327 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
328 (arm_size_rtx_costs): Likewise.
329 (neon_valid_immediate): Add a case for double 0.0.
331 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
332 Mark Shinwell <shinwell@codesourcery.com>
333 Julian Brown <julian@codesourcery.com>
335 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
336 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
337 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
338 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
340 * config/arm/arm.md (neon_type): Update comment.
342 2012-07-18 Richard Guenther <rguenther@suse.de>
344 PR tree-optimization/53970
345 * tree.h (contains_packed_reference): Remove.
346 * expr.c (contains_packed_reference): Likewise.
347 * tree-vect-data-refs.c (not_size_aligned): New function.
348 (vector_alignment_reachable_p): Use it.
349 (vect_supportable_dr_alignment): Likewise.
351 2012-07-18 Richard Guenther <rguenther@suse.de>
353 * tree.h (get_object_or_type_alignment): Remove.
354 * builtins.c (get_object_alignment_2): New function copied from
355 get_object_alignment_1. Take extra argument to indicate whether
356 we take the address of EXP. Rework to use type alignment information
357 if not, and return whether the result is an approximation or not.
358 (get_object_alignment_1): Wrap around get_object_alignment_2.
359 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
361 (get_object_or_type_alignment): Remove.
362 * expr.c (expand_assignment): Call get_object_alignment.
363 (expand_expr_real_1): Likewise.
365 2012-07-18 Nick Clifton <nickc@redhat.com>
367 * doc/invoke.texi (ARM Options): Document -munaligned-access.
369 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
371 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
372 expander. Use arith_reg_dest predicate.
373 (rotldi3, rotrdi3): Remove constraints in expander.
374 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
375 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
378 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
381 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
383 * config/sh/sh.c (sh_option_override): Do not change
384 flag_finite_math_only. Set TARGET_IEEE to complement of
385 flag_finite_math_only.
386 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
387 of mieee and mno-ieee behavior.
389 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
391 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
393 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
395 * dumpfile.h (TDF_COMMENT): New define.
396 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
397 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
398 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
399 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
400 Move to new file cfg-flags.h.
401 (enum cfg_edge_flags): New enum, using cfg-flags.h.
402 (EDGE_ALL_FLAGS): Compute value automatically.
403 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
404 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
405 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
406 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
407 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
408 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
409 (BB_ALL_FLAGS): New, compute value automatically.
410 (dump_bb_info): Update prototype.
411 (dump_edge_info): Update prototype.
412 * cfg-flags.h: New file.
413 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
414 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
415 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
416 (debug_bb): Update dump_bb call.
417 (dump_cfg_bb_info): Remove.
418 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
419 Adjust verbosity using TDF_* flags. Check that the basic block flags
420 are within the range of BB_ALL_FLAGS.
421 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
422 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
423 first for consistency with other dump functions.
424 (dump_bb): Update prototype accordingly.
425 * cfghooks.c: Include dumpfile.h.
426 (verify_flow_info): Update dump_edge_info calls.
427 (dump_bb): Take a flags argument and pass it around.
428 Use dump_bb_info to dump common information about a basic block.
429 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
430 (debug_flow_info): Moved here from cfgrtl.c.
431 * profile.c (is_edge_inconsistent): Update dump_bb calls.
432 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
433 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
434 print_rtl_slim_with_bb): Remove prototypes.
435 (dump_insn_slim): Adjust prototype to take a const_rtx.
436 (print_rtl_with_bb): Adjust prototype.
437 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
438 * sched-vis.c (dump_insn_slim): Take a const_rtx.
439 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
440 (print_rtl_slim_with_bb): Remove.
441 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
442 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
443 for that. Prototype here near DEBUG_FUNCTION marker.
444 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
446 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
447 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
448 (remove_bb): Update dump_bb call.
449 (gimple_debug_bb): Use dump_bb.
450 (dump_function_to_file): Update gimple_dump_bb call.
451 (print_loops_bb): Likewise.
452 * tree-flow.h (gimple_dump_bb): Update prototype.
453 * gimple-pretty-print.c (dump_bb_header): Rename to
454 dump_gimple_bb_header. Write to a stream instead of a pretty
455 printer. Use dump_bb_info to dump basic block info.
456 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
457 stream instead of a pretty printer. Use dump_bb_info.
458 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
459 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
460 dump_gimple_bb_footer.
461 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
462 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
463 (print_rtl_with_bb): Take a flags argument and pass it around.
464 Use dump_insn_slim if TDF_SLIM.
465 (dump_bb_info): Removed and re-incarnated in cfg.c.
466 (dump_flow_info): Moved to cfghooks.c.
467 (debug_flow_info): Moved to cfghooks.c.
468 * passes.c (execute_function_dump): Unconditionally use
469 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
470 * final.c (dump_basic_block_info): Update dump_edge_info calls.
471 * tree-vrp.c (dump_asserts_for): Likewise.
472 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
473 * tree-if-conv.c (if_convertible_bb_p): Don't look at
474 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
475 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
477 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
479 2012-07-17 Richard Guenther <rguenther@suse.de>
481 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
482 vars here, use create_tmp_reg where appropriate.
483 (vect_create_addr_base_for_vector_ref): Do not add referenced
484 vars here, use create_tmp_reg where appropriate.
485 (vect_create_data_ref_ptr): Likewise.
486 (vect_create_destination_var): Likewise.
487 (vect_permute_store_chain): Likewise.
488 (vect_permute_load_chain): Likewise.
489 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
491 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
492 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
493 (vect_handle_widen_op_by_const): Likewise.
494 * tree-vect-stmts.c (vect_init_vector): Likewise.
495 (vectorizable_load): Likewise.
497 2012-07-17 Tom de Vries <tom@codesourcery.com>
499 * hwint.c: Fix loop range.
501 2012-07-17 Tom de Vries <tom@codesourcery.com>
503 * double-int.h (double_int_popcount): New inline function.
504 * hwint.c (popcount_hwi): New function.
505 * hwint.h (popcount_hwi): Declare function. New inline function.
507 2012-07-17 Richard Henderson <rth@redhat.com>
509 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
511 (vectorizable_conversion): Update supportable_widening_operation call.
512 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
513 (vect_recog_widen_shift_pattern): Likewise.
514 * tree-vectorizer.h: Update decl.
516 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
517 Ulrich Weigand <ulrich.weigand@linaro.org>
519 * common/config/arm/arm-common.c (arm_option_optimization_table):
520 Enable -fsched-pressure by default while optimizing.
521 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
522 pressure algorithm by default.
524 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
526 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
527 (CONST_OK_FOR_I10): Move macro to ...
528 * config/sh/sh.c: ... here.
529 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
532 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
534 * config/sh/sh.md: Delete mov related define_peephole patterns.
536 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
539 * doc/install.texi (Installing GCC): Refer to instructions for
540 released versions. Fix hyphenation.
542 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
544 * config/spu/spu.c (targetm): Move to bottom of file.
545 (spu_attribute_table): Likewise.
546 (spu_option_override, spu_init_builtins, spu_builtin_decl,
547 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
548 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
549 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
550 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
551 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
552 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
553 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
554 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
555 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
556 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
557 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
558 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
559 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
560 spu_encode_section_info, spu_legitimize_address,
561 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
562 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
563 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
564 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
565 spu_section_type_flags, spu_select_section, spu_unique_section,
566 spu_trampoline_init, spu_conditional_register_usage,
567 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
568 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
569 spu_setup_incoming_varargs): Remove prototypes.
570 (spu_legitimize_address): Add "static" to definition.
572 2012-07-16 Jakub Jelinek <jakub@redhat.com>
574 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
576 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
578 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
579 before calling gsi_stmt.
581 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
584 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
586 * config/i386/i386.md (stack_protect_set): Disable the pattern
587 for Android since Android libc (bionic) does not provide random
588 value for stack protection guard at gs:0x14. Guard value
589 will be provided from external symbol (default implementation).
590 (stack_protect_set_<mode>): Likewise.
591 (stack_protect_test): Likewise.
592 (stack_protect_test_<mode>): Likewise.
594 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
598 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
601 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
603 * opts.c (default_option): Add -fvect-cost-model to default options
606 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
608 * graphite-clast-to-gimple.c, graphite-dependences.c,
609 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
611 * Makefile.in: Fix dependencies.
613 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
615 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
616 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
618 * function.c (stack_protect_epilogue): Use expand_call to expand
619 targetm.stack_protect_fail.
620 * stmt.c (expand_expr_stmt): Remove now-unused function.
621 * tree.h (expand_expr_stmt): Remove prototype.
622 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
623 hook must return a CALL_EXPR.
624 * doc/tm.texi: Regenerate.
626 * emit-rtl.c (emit_label_before): Do not allow the same label
628 (emit_label_after): Likewise.
629 (emit_label): Likewise.
631 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
632 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
633 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
634 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
636 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
638 * system.h (dump_file): Do not define.
639 * tree-pass.h: Include dumpfile.h, which is a new file containing...
640 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
641 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
642 dump_flag_name, dump_file, dump_flags, dump_file_name,
643 get_dump_file_info, struct dump_file_info): all of this, moved to...
644 * dumpfile.h: Here, new file.
645 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
646 (dump_stmt): Remove prototype for C++ specific function.
647 (dump_enumerated_decls): Move prototype from here...
648 * tree-flow.h (dump_enumerated_decls): ... to here.
649 (get_ref_base_and_extent) Move prototype from here ...
650 * tree.h (get_ref_base_and_extent) ... to here.
651 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
652 gimple-pretty-print.h is enough. Do not include tree-dump.h,
653 include timevar.h and dumpfile.h instead.
654 (struct numbered_tree_d, compare_decls_by_uid,
655 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
656 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
657 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
658 Do not include timevar.h.
659 * tree.c: Do not include timevar.h.
660 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
662 (dump_cfg_stats): Use current_function_name.
663 (gimple_cfg2vcg): Likewise.
664 (dump_function_to_file): Likewise.
665 * df-scan.c: Do not include tree-pass.h and timevar.h.
667 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
668 use print_current_pass.
669 * df-problems.c: Include dumpfile.h.
670 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
671 leads to errors in the code not selected.
672 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
673 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
674 * lcm.c: Include dumpfile.h.
675 Remove obsolete include of insn-attr.h.
676 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
677 missing probability notes.
678 * stmt.c: Include dumpfile.h.
679 (emit_case_decision_tree): Re-enable printing expand details only
681 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
682 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
683 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
684 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
685 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
686 function.c, fwprop.c, gcse.c, gimple-fold.c,
687 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
688 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
689 graphite-dependences.c, graphite-interchange.c,
690 graphite-optimize-isl.c, graphite-poly.c,
691 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
692 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
693 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
694 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
695 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
696 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
697 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
698 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
699 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
700 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
701 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
702 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
703 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
704 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
705 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
706 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
707 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
708 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
709 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
710 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
711 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
712 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
713 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
714 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
715 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
716 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
717 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
718 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
719 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
720 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
721 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
722 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
723 tree-ssa-uncprop.c, tree-ssa-uninit.c,
724 tree-switch-conversion.c, tree-tailcall.c,
725 tree-vect-data-refs.c, tree-vect-loop.c,
726 tree-vect-loop-manip.c, tree-vectorizer.c,
727 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
728 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
729 only if needed. If tree-pass.h is included, do not include timevar.h
730 and dumpfile.h. If tree-pass.h is not included but dump_file, or
731 dump_flags, or the TDF_* flags are used, include dumpfile.h.
732 If gimple-pretty-print.h is included, don't include
733 tree-pretty-print.h. Remove assorted unnecessary includes.
735 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
736 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
737 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
739 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
740 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
741 spu/t-spu-elf: Fix dependencies.
743 2012-07-16 Dehao Chen <dehao@google.com>
746 2012-07-10 Dehao Chen <dehao@google.com>
748 * tree.h (phi_arg_d): New field.
749 * tree-flow-inline.h (gimple_phi_arg_block): New function.
750 (gimple_phi_arg_block_from_edge): New function.
751 (gimple_phi_arg_set_block): New function.
752 (gimple_phi_arg_has_block): New function.
753 (redirect_edge_var_map_block): New function.
754 * tree-flow.h (_edge_var_map): New field.
755 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
756 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
757 redirect_edge_var_map_add.
758 * tree-outof-ssa.c (_elim_graph): New field.
759 (insert_partition_copy_on_edge): New parameter.
760 (insert_value_copy_on_edge): New parameter.
761 (insert_rtx_to_part_on_edge): New parameter.
762 (insert_part_to_rtx_on_edge): New parameter.
763 (elim_graph_add_edge): New parameter.
764 (elim_graph_remove_succ_edge): New parameter.
765 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
766 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
767 (new_elim_graph): Add block debug info.
768 (clear_elim_graph): Likewise.
769 (delete_elim_graph): Likewise.
770 (elim_graph_add_node): Likewise.
771 (elim_graph_add_edge): Likewise.
772 (elim_graph_remove_succ_edge): Likewise.
773 (eliminate_build): Likewise.
774 (elim_forward): Likewise.
775 (elim_unvisited_predecessor): Likewise.
776 (elim_backward): Likewise.
777 (elim_create): Likewise.
778 (eliminate_phi): Likewise.
779 (insert_backedge_copies): Likewise.
780 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
782 (rewrite_add_phi_arguments): Likewise.
783 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
784 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
785 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
786 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
787 * tree-ssa-loop-manip.c (create_iv): Likewise.
788 (add_exit_phis_edge): Likewise.
789 (split_loop_exit_edge): Likewise.
790 (copy_phi_node_args): Likewise.
791 (tree_transform_and_unroll_loop): Likewise.
792 * value-prof.c (gimple_ic): Likewise.
793 (gimple_stringop_fixed_value): Likewise.
794 * tree-tailcall.c (add_successor_phi_arg): Likewise.
795 (eliminate_tail_call): Likewise.
796 (create_tailcall_accumulator): Likewise.
797 (tree_optimize_tail_calls_1): Likewise.
798 * tree-phinodes.c (add_phi_arg): Likewise.
799 (make_phi_node): Likewise.
800 (resize_phi_node): Likewise.
801 (remove_phi_arg_num): Likewise.
802 * omp-low.c (expand_parallel_call): Likewise.
803 (expand_omp_for_static_chunk): Likewise.
804 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
806 (slpeel_update_phi_nodes_for_guard1): Likewise.
807 (slpeel_update_phi_nodes_for_guard2): Likewise.
808 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
809 (set_prologue_iterations): Likewise.
810 (slpeel_tree_peel_loop_to_edge): Likewise.
811 (vect_loop_versioning): Likewise.
812 * tree-parloops.c (create_phi_for_local_result): Likewise.
813 (transform_to_exit_first_loop): Likewise.
814 (create_parallel_loop): Likewise.
815 * ipa-split.c (split_function): Likewise.
816 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
817 (vect_create_epilog_for_reduction): Likewise.
818 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
819 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
820 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
821 (cond_if_else_store_replacement_1): Likewise.
822 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
823 (remove_forwarder_block_with_phi): Likewise.
824 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
825 * tree-predcom.c (initialize_root_vars): Likewise.
826 (initialize_root_vars_lm): Likewise.
827 * sese.c (sese_add_exit_phis_edge): Likewise.
828 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
829 * tree-ssa.c (flush_pending_stmts): Likewise.
830 (redirect_edge_var_map_add): Likewise.
831 (ssa_redirect_edge): Likewise.
832 * gimple-streamer-in.c (input_phi): Likewise.
833 * tree-vect-stmts.c (vectorizable_load): Likewise.
834 * tree-inline.c (copy_phis_for_bb): Likewise.
835 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
836 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
837 * tree-cfg.c (reinstall_phi_args): Likewise.
838 (gimple_make_forwarder_block): Likewise.
839 (add_phi_args_after_copy_edge): Likewise.
840 (gimple_duplicate_sese_tail): Likewise.
842 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
844 * config/i386/i386.md (stack_protect_set): Disable the pattern
845 for Android since Android libc (bionic) does not provide random
846 value for stack protection guard at gs:0x14. Guard value
847 will be provided from external symbol (default implementation).
848 (stack_protect_set_<mode>): Likewise.
849 (stack_protect_test): Likewise.
850 (stack_protect_test_<mode>): Likewise.
852 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
854 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
855 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
856 CONSTANT_P and cris_legitimate_address_p.
857 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
858 (cris_preferred_reload_class): Don't return GENERAL_REGS as
859 preferred to MOF_SRP_REGS.
861 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
862 of library functions for basic atomic compare-and-swap.
863 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
864 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
865 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
866 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
867 ("atomic_compare_and_swap<mode>")
868 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
869 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
870 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
871 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
872 (atomic_op_op_pred): Ditto.
873 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
874 reflect the change to include %2 in expansion. All callers changed.
875 (qm3): New mode_attr.
876 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
877 as predicate for operand 2.
878 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
879 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
880 constraint for operand 2.
881 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
882 nonmemory_operand for operand 3.
883 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
884 exclude memory. Improve emitted sync code for v10 and v32. Use
885 <qm3> instead of <m> for size designator for cmp.
886 ("atomic_compare_and_swap<mode>"): Change predicate to
887 nonmemory_operand for operand 3. Add FIXME.
888 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
889 constraints for operand 3 to exclude memory.
890 ("atomic_fetch_<atomic_op_name><mode>")
891 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
892 calls on result of call to need_atomic_barrier_p.
894 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
896 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
898 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
899 and mtlo. Adjust move_type->type mapping.
900 (may_clobber_hilo): Split mthilo into mthi and mtlo.
901 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
902 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
903 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
904 instead of mthilo and mfhilo.
905 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
906 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
907 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
908 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
909 Use mflo instead of mfhilo.
910 * config/mips/10000.md (r10k_arith): Split mthilo.
911 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
912 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
913 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
914 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
916 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
917 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
919 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
920 * config/mips/5400.md (ir_vr54_hilo): Likewise.
921 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
922 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
923 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
924 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
925 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
926 * config/mips/generic.md (generic_hilo): Likewise.
927 * config/mips/loongson2ef.md (ls2_alu): Likewise.
928 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
929 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
930 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
931 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
932 * config/mips/xlr.md (xlr_hilo): Likewise.
934 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
935 Sandra Loosemore <sandra@codesourcery.com>
937 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
939 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
941 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
944 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
946 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
948 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
951 * config/spu/spu.c (spu_init_cost): Mark static.
952 (spu_add_stmt_cost): Likewise.
953 (spu_finish_cost): Likewise.
954 (spu_destroy_cost_data): Likewise.
955 * config/i386/i386.c (ix86_init_cost): Mark static.
956 (ix86_add_stmt_cost): Likewise.
957 (ix86_finish_cost): Likewise.
958 (ix86_destroy_cost_data): Likewise.
959 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
960 (rs6000_add_stmt_cost): Likewise.
961 (rs6000_finish_cost): Likewise.
962 (rs6000_destroy_cost_data): Likewise.
964 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
966 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
967 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
968 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
970 * alloc-pool.h (pool_alloc): Likewise.
972 * final.c (final): Do not loop to find max_uid.
974 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
976 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
977 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
979 2012-07-13 Richard Guenther <rguenther@suse.de>
981 PR tree-optimization/53907
982 * tree-ssa-forwprop.c (associate_pointerplus): New function.
983 (ssa_forward_propagate_and_combine): Call it.
985 2012-07-13 Richard Guenther <rguenther@suse.de>
987 PR tree-optimization/53922
988 * tree-vrp.c (value_inside_range): Change prototype to take
989 min/max instead of value-range.
990 (range_includes_zero_p): Likewise. Return the result from
992 (extract_range_from_binary_expr_1): Adjust to handle dont-know
993 return value from range_includes_zero_p.
994 (extract_range_from_unary_expr_1): Likewise.
995 (compare_range_with_value): Likewise.
996 (vrp_meet_1): Likewise.
998 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
1000 * doc/tm.texi: Regenerate.
1001 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
1002 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1003 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1004 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1005 * targhooks.c (default_init_cost): New function.
1006 (default_add_stmt_cost): Likewise.
1007 (default_finish_cost): Likewise.
1008 (default_destroy_cost_data): Likewise.
1009 * targhooks.h (default_init_cost): New decl.
1010 (default_add_stmt_cost): Likewise.
1011 (default_finish_cost): Likewise.
1012 (default_destroy_cost_data): Likewise.
1013 * target.def (init_cost): New DEFHOOK.
1014 (add_stmt_cost): Likewise.
1015 (finish_cost): Likewise.
1016 (destroy_cost_data): Likewise.
1017 * target.h (struct _stmt_vec_info): New extern decl.
1018 (stmt_vectype): Likewise.
1019 (stmt_in_inner_loop_p): Likewise.
1020 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
1021 (stmt_vector_for_cost): New VEC/typedef.
1022 (add_stmt_info_to_vec): New function.
1023 (struct _slp_tree): Remove cost.inside_of_loop field.
1024 (struct _slp_instance): Remove cost.inside_of_loop field; add
1025 stmt_cost_vec field.
1026 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
1027 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
1028 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
1029 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
1030 (struct _loop_vec_info): Add target_cost_data field.
1031 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
1032 (struct _bb_vec_info): Add target_cost_data field.
1033 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
1034 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
1035 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
1036 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
1037 (init_cost): New function.
1038 (add_stmt_cost): Likewise.
1039 (finish_cost): Likewise.
1040 (destroy_cost_data): Likewise.
1041 (vect_model_simple_cost): Change parameter list.
1042 (vect_model_store_cost): Likewise.
1043 (vect_model_load_cost): Likewise.
1044 (record_stmt_cost): New extern decl.
1045 (vect_get_load_cost): Change parameter list.
1046 (vect_get_store_cost): Likewise.
1047 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
1048 (destroy_loop_vec_info): Call destroy_cost_data.
1049 (vect_estimate_min_profitable_iters): Remove old calculation of
1050 inside costs; call finish_cost instead.
1051 (vect_model_reduction_cost): Call add_stmt_cost instead of old
1052 inside-costs calculation.
1053 (vect_model_induction_cost): Likewise.
1054 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
1055 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
1056 and vect_get_store_cost to obtain the value to return.
1057 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
1058 vect_get_data_access_cost and store it in the minimum peeling
1060 (vect_peeling_hash_choose_best_peeling): Change the parameter list
1061 to add a (stmt_vector_for_cost *) output parameter, and set its value.
1062 (vect_enhance_data_refs_alignment): Ignore the new return value from
1063 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
1064 vect_peeling_hash_choose_best_peeling and pass its contents to the
1066 * tree-vect-stmts.c (stmt_vectype): New function.
1067 (stmt_in_inner_loop_p): Likewise.
1068 (record_stmt_cost): Likewise.
1069 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
1070 record_stmt_cost instead of old calculation; don't call
1071 stmt_vinfo_set_inside_of_loop_cost.
1072 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
1073 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
1074 (vect_model_store_cost): Add stmt_cost_vec parameter; call
1075 record_stmt_cost instead of old calculation; add stmt_cost_vec
1076 parameter to vect_get_store_cost call; don't call
1077 stmt_vinfo_set_inside_of_loop_cost.
1078 (vect_get_store_cost): Add stmt_cost_vec parameter; call
1079 record_stmt_cost instead of old calculation.
1080 (vect_model_load_cost): Add stmt_cost_vec parameter; call
1081 record_stmt_cost instead of old calculation; add stmt_cost_vec
1082 parameter to vect_get_load_cost call; don't call
1083 stmt_vinfo_set_inside_of_loop_cost.
1084 (vect_get_load_cost): Add stmt_cost_vec parameter; call
1085 record_stmt_cost instead of old calculation.
1086 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
1087 (vectorizable_conversion): Likewise.
1088 (vectorizable_assignment): Likewise.
1089 (vectorizable_shift): Likewise.
1090 (vectorizable_operation): Likewise.
1091 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
1092 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
1093 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
1094 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
1095 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1096 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1097 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1098 (spu_init_cost): New function.
1099 (spu_add_stmt_cost): Likewise.
1100 (spu_finish_cost): Likewise.
1101 (spu_destroy_cost_data): Likewise.
1102 * config/i386/i386.c (ix86_init_cost): New function.
1103 (ix86_add_stmt_cost): Likewise.
1104 (ix86_finish_cost): Likewise.
1105 (ix86_destroy_cost_data): Likewise.
1106 (TARGET_VECTORIZE_INIT_COST): New macro def.
1107 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1108 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1109 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1110 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
1111 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1112 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1113 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1114 (rs6000_init_cost): New function.
1115 (rs6000_add_stmt_cost): Likewise.
1116 (rs6000_finish_cost): Likewise.
1117 (rs6000_destroy_cost_data): Likewise.
1118 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
1119 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
1120 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
1121 stmt_cost_vec parameter to vect_model_store_cost and
1122 vect_model_simple_cost calls.
1123 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
1124 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
1125 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
1126 calculating cost more than once for loads; remove inside_cost
1127 parameter from recursive vect_build_slp_tree calls; call
1128 record_stmt_cost instead of old calculation.
1129 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
1130 the instance; free it on premature exit; remove inside_cost parameter
1131 from vect_build_slp_tree call; add stmt_cost_vec parameter to
1132 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
1133 (new_bb_vec_info): Call init_cost.
1134 (destroy_bb_vec_info): Call destroy_cost_data.
1135 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
1136 statement recorded with an SLP instance; call finish_cost instead of
1137 the old calculation.
1138 (vect_update_slp_costs_according_to_vf): Record statement costs from
1139 SLP instances, multiplying by the appropriate number of copies; don't
1140 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
1142 2012-07-13 Richard Guenther <rguenther@suse.de>
1145 * builtins.c (get_pointer_alignment_1): Handle constant
1148 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
1149 Steven Bosscher <steven@gcc.gnu.org>
1150 Bernd Schmidt <bernds@codesourcery.com>
1152 PR rtl-optimization/53908
1153 * df-problems.c (can_move_insns_across): When doing
1154 memory-reference book-keeping, handle call insns.
1156 2012-07-13 Richard Guenther <rguenther@suse.de>
1158 * gimple.c (gimple_types_compatible_p_1): Remove redundant
1159 type attribute comparisons.
1160 (gimple_canonical_types_compatible_p): Likewise.
1162 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
1164 PR rtl-optimization/53176
1165 * rtlanal.c (rtx_cost): Adjust default cost for X with a
1166 UNITS_PER_WORD factor for all X according to the size of
1167 its mode, not just for SUBREGs with untieable modes.
1168 Handle SET. Use factor * factor for MULT, DIV, UDIV,
1171 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
1173 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
1174 QImode and HImode splitters. Use ix86_comparison_operator.
1175 Explicitly match FLAGS_REG.
1176 (DFmode cmove splitter): Explicitly match FLAGS_REG.
1178 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1180 * expr.h (can_move_by_pieces): Move prototype from here ...
1181 * tree.h (can_move_by_pieces): ... to here.
1182 * optabs.h (set_widening_optab_handler): Use XCNEW.
1183 * gimplify.c: Do not include expr.h.
1185 * toplev.c: Do not include dwarf2out.h.
1186 * config/ia64/ia64.c: Likewise.
1187 * config/sparc/sparc.c: Likewise.
1188 * config/sparc/t-sparc (sparc.o): Fix dependencies.
1190 * Makefile.in (toplev.o): Fix dependencies
1191 (c-family/c-gimplify.o): Likewise.
1192 (c-family/c-common.o): Likewise.
1194 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1196 * basic-block.h (struct edge_def): Use basic_block instead of
1198 * cfgloop.h (struct loop_exit, struct loop): Likewise.
1199 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
1200 instead of union tree_node *.
1201 * rtl.h (union rtunion_def, emit_insn_before_noloc,
1202 emit_insn_after_noloc, add_insn_before, add_insn_after,
1203 debug_bb_slim): Likewise.
1204 * tree-inline.h (struct copy_body_data): Likewise.
1205 * sched-rgn.c (dump_region_dot): Likewise.
1206 * gimple.h (struct gimple_statement_base, gimple_set_bb,
1207 gsi_move_to_bb_end): Likewise.
1208 * sched-vis.c (debug_bb_slim): Likewise.
1209 (debug_bb_n_slim): Likewise.
1210 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
1211 (mn10300_block_contains_call):
1213 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
1216 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
1219 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
1221 * doc/extend.texi (Namespace Association): Alter cautionary text.
1223 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
1226 * config/sh/sh.md: Remove displacement addresssing related splits.
1228 2012-07-10 Xinliang David Li <davidxl@google.com>
1230 * doc/invoke.texi: New option documented.
1231 * flag-types.h: New enum type.
1232 * gimplify.c (gimplify_bind_expr): Control
1233 clobber generation with new option.
1234 (gimplify_target_expr): Ditto.
1235 * common.opt: New option.
1237 2012-07-10 Julian Brown <julian@codesourcery.com>
1239 * config/arm/arm.md (movsi): Don't split symbol refs here.
1240 (define_split): New.
1242 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
1245 * config/m68k/m68k.c (m68k_epilogue_uses): New.
1246 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
1247 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
1249 2012-07-10 Richard Henderson <rth@redhat.com>
1251 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
1252 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
1253 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
1254 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
1255 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
1256 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
1257 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
1258 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
1259 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
1260 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
1261 (bdesc_args): Remove entries to match.
1262 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
1263 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
1264 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
1265 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
1266 (rs6000_builtin_mul_widen_odd): Remove.
1267 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
1268 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
1269 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
1270 (spu_builtin_mul_widen_odd): Remove.
1271 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
1272 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
1273 * doc/tm.texi.in: Don't document the removed hooks.
1275 * tree-vect-stmts.c (supportable_widening_operation): Expand
1276 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
1278 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
1279 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
1280 * optabs.c (can_mult_highpart_p): New.
1281 (expand_mult_highpart): New.
1282 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
1283 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
1284 by pieces if can_mult_highpart_p.
1285 (expand_vector_divmod): Use can_mult_highpart_p and always
1286 generate MULT_HIGHPART_EXPR.
1287 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
1288 * tree-vect-stmts.c (vectorizable_operation): Likewise.
1290 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
1291 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
1292 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
1293 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
1294 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
1295 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
1296 * config/spu/spu-builtins.def: Update pattern names to match.
1298 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
1299 from altivec_vmuleub.
1300 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
1301 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
1302 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
1303 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
1304 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
1305 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
1306 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
1307 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
1309 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
1311 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
1312 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
1313 (mulv4si3): Remove XOP test shadowed by SSE4 test.
1314 * config/i386/i386.c (bdesc_args): Update pattern names.
1315 (ix86_expand_sse2_mulvxdi3): Likewise.
1316 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
1317 shadowed by SSE4 test.
1319 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
1320 * cfgexpand.c (expand_debug_expr): Handle them.
1321 * expr.c (expand_expr_real_2): Likewise.
1322 * fold-const.c (fold_binary_loc): Likewise.
1323 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
1324 * optabs.c (optab_for_tree_code): Likewise.
1325 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
1326 * tree-inline.c (estimate_operator_cost): Likewise.
1327 * tree-pretty-print.c (dump_generic_node): Likewise.
1328 * tree.c (commutative_tree_code): Likewise.
1329 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1330 Handle type change before looking up optab.
1331 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
1332 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
1333 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
1334 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
1335 * genopinit.c (optabs): Initialize them.
1336 * doc/md.texi: Document them.
1338 2012-07-10 Dehao Chen <dehao@google.com>
1340 * tree.h (phi_arg_d): New field.
1341 * tree-flow-inline.h (gimple_phi_arg_block): New function.
1342 (gimple_phi_arg_block_from_edge): New function.
1343 (gimple_phi_arg_set_block): New function.
1344 (gimple_phi_arg_has_block): New function.
1345 (redirect_edge_var_map_block): New function.
1346 * tree-flow.h (_edge_var_map): New field.
1347 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
1348 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
1349 redirect_edge_var_map_add.
1350 * tree-outof-ssa.c (_elim_graph): New field.
1351 (insert_partition_copy_on_edge): New parameter.
1352 (insert_value_copy_on_edge): New parameter.
1353 (insert_rtx_to_part_on_edge): New parameter.
1354 (insert_part_to_rtx_on_edge): New parameter.
1355 (elim_graph_add_edge): New parameter.
1356 (elim_graph_remove_succ_edge): New parameter.
1357 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
1358 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
1359 (new_elim_graph): Add block debug info.
1360 (clear_elim_graph): Likewise.
1361 (delete_elim_graph): Likewise.
1362 (elim_graph_add_node): Likewise.
1363 (elim_graph_add_edge): Likewise.
1364 (elim_graph_remove_succ_edge): Likewise.
1365 (eliminate_build): Likewise.
1366 (elim_forward): Likewise.
1367 (elim_unvisited_predecessor): Likewise.
1368 (elim_backward): Likewise.
1369 (elim_create): Likewise.
1370 (eliminate_phi): Likewise.
1371 (insert_backedge_copies): Likewise.
1372 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
1374 (rewrite_add_phi_arguments): Likewise.
1375 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
1376 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
1377 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
1378 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
1379 * tree-ssa-loop-manip.c (create_iv): Likewise.
1380 (add_exit_phis_edge): Likewise.
1381 (split_loop_exit_edge): Likewise.
1382 (copy_phi_node_args): Likewise.
1383 (tree_transform_and_unroll_loop): Likewise.
1384 * value-prof.c (gimple_ic): Likewise.
1385 (gimple_stringop_fixed_value): Likewise.
1386 * tree-tailcall.c (add_successor_phi_arg): Likewise.
1387 (eliminate_tail_call): Likewise.
1388 (create_tailcall_accumulator): Likewise.
1389 (tree_optimize_tail_calls_1): Likewise.
1390 * tree-phinodes.c (add_phi_arg): Likewise.
1391 (make_phi_node): Likewise.
1392 (resize_phi_node): Likewise.
1393 (remove_phi_arg_num): Likewise.
1394 * omp-low.c (expand_parallel_call): Likewise.
1395 (expand_omp_for_static_chunk): Likewise.
1396 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
1398 (slpeel_update_phi_nodes_for_guard1): Likewise.
1399 (slpeel_update_phi_nodes_for_guard2): Likewise.
1400 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1401 (set_prologue_iterations): Likewise.
1402 (slpeel_tree_peel_loop_to_edge): Likewise.
1403 (vect_loop_versioning): Likewise.
1404 * tree-parloops.c (create_phi_for_local_result): Likewise.
1405 (transform_to_exit_first_loop): Likewise.
1406 (create_parallel_loop): Likewise.
1407 * ipa-split.c (split_function): Likewise.
1408 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1409 (vect_create_epilog_for_reduction): Likewise.
1410 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1411 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
1412 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1413 (cond_if_else_store_replacement_1): Likewise.
1414 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1415 (remove_forwarder_block_with_phi): Likewise.
1416 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
1417 * tree-predcom.c (initialize_root_vars): Likewise.
1418 (initialize_root_vars_lm): Likewise.
1419 * sese.c (sese_add_exit_phis_edge): Likewise.
1420 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
1421 * tree-ssa.c (flush_pending_stmts): Likewise.
1422 (redirect_edge_var_map_add): Likewise.
1423 (ssa_redirect_edge): Likewise.
1424 * gimple-streamer-in.c (input_phi): Likewise.
1425 * tree-vect-stmts.c (vectorizable_load): Likewise.
1426 * tree-inline.c (copy_phis_for_bb): Likewise.
1427 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1428 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
1429 * tree-cfg.c (reinstall_phi_args): Likewise.
1430 (gimple_make_forwarder_block): Likewise.
1431 (add_phi_args_after_copy_edge): Likewise.
1432 (gimple_duplicate_sese_tail): Likewise.
1434 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
1437 * config/sh/sh.c (sequence_insn_p): New function.
1438 (find_barrier, sh_insn_length_adjustment): Use it.
1440 2012-07-09 Iain Sandoe <iain@codesourcery.com>
1443 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
1445 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
1446 SUBTARGET_FOLD_BUILTIN.
1447 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
1448 SUBTARGET_FOLD_BUILTIN.
1450 2012-07-09 Iain Sandoe <iain@codesourcery.com>
1452 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
1453 runtime exceptions model setting from here ...
1454 * config/darwin.c (darwin_override_options): ... to here.
1456 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
1458 PR tree-optimization/53887
1459 * tree-cfg.c (group_case_labels_stmt): Make non-static.
1460 * tree-flow.h (group_case_labels_stmt): Add prototype.
1461 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
1462 to pre-process every switch.
1464 2012-07-09 Jason Merrill <jason@redhat.com>
1467 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
1468 (type_hash_eq): Likewise.
1470 2012-07-09 Tom de Vries <tom@codesourcery.com>
1471 Richard Guenther <rguenther@suse.de>
1473 * tree-ssa-ccp.c (optimize_unreachable): New function.
1474 (execute_fold_all_builtins): Use optimize_unreachable to optimize
1475 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
1477 2012-07-09 Richard Guenther <rguenther@suse.de>
1480 * graphite-optimize-isl.c: Make sure CU is not empty.
1482 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
1484 * gensupport.c (init_rtx_reader_args_cb): Start counting code
1485 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
1486 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
1487 the LAST_INSN_CODE marker at the end.
1488 * genoutput.c (nothing): New static struct data.
1489 (idata): Initialize to ¬hing.
1490 (idata_end): Initialize to ¬hing.next.
1491 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
1493 * genpeep.c (insn_code_number): Remove global variable.
1494 (gen_peephole): Take it as an argument instead.
1495 (main): Take insn_code_number from read_md_rtx.
1496 * optabs.h: Revert r161809:
1497 (optab_handlers): Change type of insn_code back to insn_code.
1498 (optab_handler, widening_optab_handler, set_optab_handler,
1499 set_widening_optab_handler, convert_optab_handler,
1500 set_convert_optab_handler, direct_optab_handler,
1501 set_direct_optab_handler): Remove int casts.
1502 Revert to treating the insn_code field as "insn_code".
1504 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
1506 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
1507 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
1508 * config/sh/sh-protos.h: Declare it.
1510 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1512 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
1513 (dump_fixup_graph): Use current_function_name.
1514 (adjust_cfg_counts): Likewise.
1515 * ira-conflicts.c: Do not include tree.h.
1516 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
1518 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
1521 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
1523 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1525 * basic-block.h: Re-group most prototypes per file.
1526 (struct edge_list): Remove num_blocks field.
1527 (dump_bb_info): Adjust prototypes.
1528 (dump_reg_info): Move prototype to regs.h.
1529 * function.h: Do not include tree.h.
1530 Include vec.h, vecir.h, input.h and machmode.h to compensate.
1531 (function_name): New prototype.
1532 * gimple.h: Include tree.h to compensate for basic-block.h change.
1533 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
1534 * regs.h (dump_reg_info): Prototype here.
1535 * regset.h: Adjust file reference in comment.
1536 (debug_regset): Remove prototype.
1537 * rtl.h: Include flags.h for flag_var_tracking_assignments.
1538 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
1539 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
1540 (dump_reg_info, dump_flow_info): Remove prototypes.
1541 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
1542 to here, the only user. Make static.
1543 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
1544 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
1545 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
1546 tree-pass.h, cfgloop.h, and tree-flow.h.
1547 Include basic-block.h, the first header I'd expect to be included.
1548 (reg_obstack): Move to df-core.c.
1549 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
1550 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
1551 (redirect_edge_succ_nodup): Move to cfghooks.c.
1552 (dump_regset, debug_regset): Move to df-core.c.
1553 (dump_bb_info): Move to cfgrtl.c.
1554 (dump_reg_info): Move to regstat.c.
1555 (dump_flow_info): Move to cfgrtl.c.
1556 (debug_flow_info): Likewise.
1557 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
1558 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
1559 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
1560 (flow_active_insn_p, forwarder_block_p, can_fallthru,
1561 could_fall_through): Move to cfgrtl.c.
1562 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
1563 (create_edge_list): Do not set edge_list's removed num_blocks.
1564 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
1565 (flow_nodes_print): Remove.
1566 (flow_edge_list_print): Remove.
1567 (inverted_post_order_compute): Use FOR_ALL_BB.
1568 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
1569 Do not call dump_reg_info.
1570 (debug_flow_info): Moved from cfg.c
1571 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
1572 to avoid looking at TDF_* flags from tree-pass.h.
1573 (flow_active_insn_p, forwarder_block_p, can_fallthru,
1574 could_fall_through): Moved from cfganal.c.
1575 (print_rtl_with_bb): Adjust dump_bb_info calls.
1576 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
1577 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
1578 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
1579 * cselib.c: Include tree.h with a FIXME.
1580 * df-core.c (reg_obstack): Moved from cfg.c.
1581 (dump_regset): Likewise.
1582 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
1583 * final.c (compute_alignments): Call dump_reg_info before
1585 * function.c (function_name): New function.
1586 (current_function_name): Use it.
1587 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
1589 * ira-conflicts.c: Include tree.h with a note.
1590 * regstat.c (dump_reg_info): Moved here from cfg.c.
1591 * loop-init.c: Include regs.h instead of hard-reg-set.h.
1592 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
1593 (rtl_loop_done): Likewise.
1594 * mcf.c: Include tree.h before langhooks.h.
1595 * predict.c (maybe_hot_count_p): Assert we have cfun.
1596 (probably_never_executed_bb_p): Likewise.
1597 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
1598 instead of dump_flow_info.
1599 * sched-deps.c: Include tree.h with a FIXME.
1600 (call_may_noreturn_p): Add FIXME note why this function has to
1601 look at function decls instead of function decl flags.
1602 * sched-vis.c: Include tree.h with a FIXME.
1603 (print_rtl_slim): Adjust dump_bb_info uses.
1604 * statistics.c (statistics_fini_pass_2): Use current_function_name
1605 to avoid including tree.h.
1606 (statistics_counter_event): Use function_name for the same reason.
1607 (statistics_histogram_event): Likewise.
1608 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
1609 instead of dump_flow_info.
1610 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
1611 before dump_flow_info.
1612 * doc/cfg.texi: Update CFG documentation.
1613 * Makefile.in (RTL_H): Depend on FLAGS_H.
1614 (GIMPLE_H): Depend on TREE_H.
1615 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
1616 but no longer on TREE_H.
1617 (C_COMMON_H): Depend on TREE_H.
1618 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
1619 sched-deps.o, sched-vis.o): Fixup dependencies.
1621 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1623 * alias.h: Do not include coretypes.h in header files.
1624 * cppbuiltin.h: Likewise.
1625 * double-int.h: Likewise.
1626 * gimple-fold.h: Likewise.
1627 * flags.h: Likewise.
1628 * tree-ssa-alias.h: Likewise.
1629 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
1630 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
1631 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
1633 (ALIAS_H): Do not depend on coretypes.h.
1634 (FLAGS_H): Likewise.
1635 (realmpfr.o): Depend on coretypes.h.
1637 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1639 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
1640 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
1642 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
1644 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
1645 (TARGET_FPA): Delete definition.
1646 (TARGET_MAVERICK): Likewise.
1647 (TARGET_FPA_EMU2): Likewise.
1648 (arm_fp_model): Remove FPA and Maverick models.
1649 (arm_arch_cirrus): Delete declaration.
1650 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
1651 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
1652 (CALL_USED_REGISTERS): Likewise.
1653 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
1654 (FIRST_VFP_REGNUM): Renumbered.
1655 (D7_VFP_REGNUM): Chain definition.
1656 (LAST_LO_VFP_REGNUM): Likewise.
1657 (FIRST_HI_VFP_REGNUM): Likewise.
1658 (LAST_HI_VFP_REGNUM): Likewise.
1659 (FIRST_IWMMXT_GR_REGNUM): Likewise.
1660 (LAST_IWMMXT_GR_REGNUM): Likewise.
1661 (FIRST_IWMMXT_REGNUM): Likewise.
1662 (LAST_IWMMXT_REGNUM): Likewise.
1663 (FRAME_POINTER_REGNUM): Renumbered.
1664 (ARG_POINTER_REGNUM): Renumbered.
1665 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
1666 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
1667 (HARD_REGNO_REGNUM): Remove FPA support.
1668 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
1669 (reg_class): Likewise.
1670 (REG_CLASS_NAMES): Likewise.
1671 (REG_CLASS_CONTENTS): Likewise.
1672 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
1673 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
1674 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
1675 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
1676 Reorganize. Use AAPCS preferred names.
1677 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
1679 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
1680 * arm.c (FL_CIRRUS): Delete definition.
1681 (arm_arch_cirrus): Delete variable.
1682 (arm_float_words_big_endian): Delete function.
1683 (cirrus_memory_offset): Delete function.
1684 (output_mov_long_double_fpa_from_arm): Delete function.
1685 (output_mov_long_double_arm_from_fpa): Delete function.
1686 (output_mov_double_fpa_from_arm): Delete function.
1687 (output_mov_double_arm_from_fpa): Delete function.
1688 (emit_sfm): Delete function.
1689 (maybe_get_arm_condition_code): Update comment.
1690 (arm_file_start): Always use softvfp for softfloat systems.
1691 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
1692 (arm_option_override): Remove FPA and Maverick support. Always
1693 default to vfp as the fallback FPU format.
1694 (use_return_insn): Remove FPA support.
1695 (arm_get_frame_offsets): Likewise.
1696 (arm_save_coproc_regs): Likewise.
1697 (arm_canonicalize_comparison): Remove Maverick support.
1698 (arm_select_cc_mode): Likewise.
1699 (arm_gen_compare_reg): Likewise.
1700 (arm_print_operand): Likewise.
1701 (arm_libcall_value_1): Remove FPA and Maverick support.
1702 (arm_function_value_regno_p): Likewise.
1703 (arm_apply_result_size): Likewise.
1704 (arm_legitimate_index_p): Likewise.
1705 (thumb2_legitimate_index_p): Likewise.
1706 (legitimize_reload_address): Likewise.
1707 (arm_register_move_cost): Likewise.
1708 (arm_hard_regno_mode_ok): Likewise.
1709 (arm_regno_class): Likewise.
1710 (arm_dbx_register_number): Likewise.
1711 (arm_emit_unwind_sequence): Likewise.
1712 (arm_conditional_register_usage): Likewise.
1713 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
1714 (cirrus_memory_offset): Likewise.
1715 (output_move_long_double_fpa_from_arm): Likewise.
1716 (output_move_long_double_arm_from_fpa): Likewise.
1717 (output_move_double_fpa_from_arm): Likewise.
1718 (output_move_double_arm_from_fpa): Likewise.
1719 (arm_float_words_big_endian): Likewise.
1720 * arm.md (CC_REGNUM): Renumbered.
1721 (VFPCC_REGNUM): Moved here. Renumbered.
1722 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
1723 (attr fpu): Remove FPA and Maverick support.
1724 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
1725 * arm-cores.def (ep9312): Remove Maverick support.
1726 * arm-arches.def (ep9312): Delete architecture.
1727 * arm-tables.opt: Regenerated.
1729 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
1731 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
1733 PR tree-optimization/53881
1734 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
1735 comparing labels to establish uniqueness of a switch case target,
1736 use the CFG instead.
1738 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1740 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
1741 due to negative shift amount.
1743 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
1745 Fix configure test for "stack protector support in target C library".
1746 * configure.ac (test_prefix, test_exec_prefix): Move setting from
1747 inside sysroot handling to before and outside it.
1748 * configure: Regenerate.
1750 2012-07-06 Kai Tietz <ktietz@redhat.com>
1753 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
1754 as "/mingw/include".
1756 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
1759 * var-tracking.c (vt_add_function_parameter): Convert
1760 internal_arg_pointer into arg_pointer-based address even
1763 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
1765 PR rtl-optimization/53827
1768 * alias.c (memrefs_conflict_p): Adjust offset and size by the
1769 same amount for alignment ANDs.
1771 2012-07-06 Tom de Vries <tom@codesourcery.com>
1773 PR tree-optimization/51879
1774 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
1775 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
1776 (visit_use): Also call visit_reference_op_call for calls with a vdef.
1778 2012-07-06 Tom de Vries <tom@codesourcery.com>
1780 PR tree-optimization/52009
1781 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
1782 value numbers of gimple_vdef.
1783 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
1785 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
1786 (vn_reference_insert): Add and handle vdef parameter.
1787 (visit_reference_op_load): Add argument to vn_reference_insert call.
1788 (visit_reference_op_store): Find value number of vdef of store. Insert
1789 value number of vdef of store.
1791 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
1793 * config/i386/i386.md (simple lea to add peephole): Also transform
1794 RTXes where second PLUS operand matches output.
1796 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
1798 * config/i386/i386.c (construct_plt_address): Make static.
1799 * config/i386/i386-protos.h (construct_plt_address): Remove.
1801 2012-07-06 Nick Clifton <nickc@redhat.com>
1803 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
1804 default_encode_section_info.
1806 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
1809 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
1810 emit PIC sequence for fnaddr symbol reference in advance.
1812 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
1815 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
1817 * dwarf2out.c (function_possibly_abstracted_p): New static function.
1818 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
1819 cgraph_function_possibly_inlined_p.
1820 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
1821 (process_scope_var): Do not emit concrete instances of abstracted
1822 nested functions from here.
1823 (gen_decl_die): Emit the abstract instance if the function is possibly
1824 abstracted and not only possibly inlined.
1825 (dwarf2out_finish): Find the first non-abstract parent instance and
1826 attach concrete instances on the limbo list to it.
1828 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1829 Julian Brown <julian@codesourcery.com>
1833 * config/arm/neon-gen.ml (return_by_ptr): Delete.
1834 (print_function): Handle empty strings.
1835 (return): Delete use of return_by_ptr.
1836 (mask_shape_for_shuffle): New function.
1837 (mask_elems): Likewise.
1838 (shuffle_fn): Likewise.
1839 (params): Simplify and remove use of return_by_ptr.
1840 (get_shuffle): New function.
1841 (print_variant): Update.
1842 * config/arm/neon.ml (rev_elems): New function.
1843 (permute_range): Likewise.
1844 (zip_range): Likewise.
1845 (uzip_range): Likewise.
1846 (trn_range): Likewise.
1847 (zip_elems): Likewise.
1848 (uzip_elems): Likewise.
1849 (trn_elems): Likewise.
1850 (features): New enumeration Use_shuffle. Delete ReturnPtr.
1853 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
1854 * config/arm/arm_neon.h: Regenerate.
1856 2012-07-05 Richard Guenther <rguenther@suse.de>
1858 * tree-pretty-print.c (dump_generic_node): Properly test
1859 the result of exact_log2.
1861 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1863 * config/s390/s390-protos.h (s390_expand_movmem)
1864 (s390_expand_cmpmem): Add return value.
1865 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
1866 Return FALSE to use the library function in some cases.
1867 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
1870 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1872 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
1874 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
1876 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
1877 * stmt.c (dump_case_nodes): New.
1878 (expand_case): Split out code generation parts into new functions.
1879 (expand_switch_as_decision_tree_p): Split out from expand_case.
1880 (emit_case_decision_tree): Likewise.
1881 (emit_case_dispatch_table): Likewise.
1883 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1885 * config/arm/iterators.md (SDF): New mode iterator.
1886 (V_if_elem): Add support for SF and DF modes.
1888 (F_constraint): New mode iterator attribute.
1889 (F_fma_type): Likewise.
1890 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
1891 (*fmsub<SDF:mode>4): Likewise.
1892 (*fmnsub<SDF:mode>4): Likewise.
1893 (*fmnadd<SDF:mode>4): Likewise.
1895 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
1897 * expmed.c (expand_mult): Initialize coeff and is_neg.
1899 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
1901 * config/sh/predicates.md (zero_extend_operand): New predicate.
1902 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
1903 zero_extend_operand predicate.
1904 (zero_extendqisi2): Likewise.
1906 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
1909 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
1910 to not call cgraph_propagate_frequency if something was changed.
1912 2012-07-04 Richard Guenther <rguenther@suse.de>
1915 * gimple-fold.c (get_base_constructor): Do not return an
1916 error_mark_node DECL_INITIAL.
1918 2012-07-04 Richard Guenther <rguenther@suse.de>
1920 PR tree-optimization/53844
1921 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
1922 the loop virtual PHI.
1924 2012-07-04 Richard Guenther <rguenther@suse.de>
1926 PR tree-optimization/53849
1927 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
1928 for duplicated locals. Use add_referenced_var_1 to avoid
1929 pushing/popping cfun.
1931 2012-07-04 Kai Tietz <ktietz@redhat.com>
1933 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
1934 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
1936 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
1937 as i386_pe_reloc_rw_mask.
1939 2012-07-04 Richard Guenther <rguenther@suse.de>
1941 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
1942 as in free_lang_data_in_type.
1944 2012-07-04 Tobias Grosser <tobias@grosser.es>
1945 Michael Matz <matz@suse.de>
1947 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
1948 (graphite-optimize-isl.o): Add dependencies.
1949 * common.opt (floop-nest-optimize): New flag.
1950 * doc/invoke.texi (floop-nest-optimize): Document.
1951 * graphite-dependences.c (compute_deps): Export.
1952 * graphite-poly.h (compute_deps): Declare.
1953 * graphite-optimize-isl.c: New file.
1954 * graphite-poly.c (apply_poly_transforms): Run the loop
1956 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
1957 if -floop-nest-optimize is enabled.
1959 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
1961 * config/sh/predicates.md (logical_and_operand): New predicate.
1962 * config/sh/constraints.md (Jmb, Jmw): New constraints.
1963 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
1964 of 0xFFFF constant. Use logical_and_operand predicate and
1965 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
1966 (*andsi3_compact): Make it an insn_and_split. Use
1967 logical_and_operand predicate. Add Jmb,Jmw alternatives.
1969 2012-07-03 Jason Merrill <jason@redhat.com>
1972 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
1974 2012-07-03 Nick Clifton <nickc@redhat.com>
1976 * config/mep/mep.c (mep_reorg_regmove): Use
1977 next_nonnote_non_debug_insn to advance to the next insn. Do not
1978 expect delete_insn to return an rtx.
1980 2012-07-03 Richard Guenther <rguenther@suse.de>
1982 * doc/install.texi (CLooG): Clarify how CLooG needs to be
1983 configured and that it needs to be built against ISL 0.10.
1985 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1987 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
1988 code model string in the error message.
1990 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1993 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
1994 sibcall_insn_operand. Move it to a temporary register if not.
1996 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
1999 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
2002 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2004 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
2006 2012-07-03 Roland McGrath <mcgrathr@google.com>
2008 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
2009 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
2010 * configure: Regenerated.
2011 * config/i386/i386.md (simple_return_internal_long): Use %;
2012 (ctz<mode>2): Likewise.
2015 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
2018 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
2020 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
2021 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
2022 gen_branch_true and gen_branch_false.
2023 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
2025 (branch_true, branch_false): Use t_reg_operand predicate.
2026 (*branch_true, *branch_false): Delete.
2027 (movt): Use t_reg_operand predicate.
2028 (*negnegt): Use negt_reg_operand predicate and fold little and big
2030 (*movtt): Use t_reg_operand and fold little and big endian variants.
2033 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
2035 * stmt.c (emit_case_bit_tests): Remove.
2036 (expand_case): Remove expand_switch_using_bit_tests_p code.
2037 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
2038 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
2039 (lshift_cheap_p): Likewise.
2040 (expand_switch_using_bit_tests_p): Likewise.
2041 (struct case_bit_test): Likewise.
2042 (case_bit_test_cmp): Likewise.
2043 (emit_case_bit_tests): New implementation for GIMPLE.
2044 (gen_inbound_check): Do not release post-dominator info here.
2045 (process_switch): Reorder code. Expand as bit tests if it
2047 (do_switchconv): Release post-dominator info here if something changed.
2048 (struct gimple_opt_pass): Verify more.
2049 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
2051 2012-07-02 Martin Jambor <mjambor@suse.cz>
2054 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
2055 dynamic type change check.
2057 2012-07-02 Richard Guenther <rguenther@suse.de>
2058 Michael Matz <matz@suse.de>
2059 Tobias Grosser <tobias@grosser.es>
2060 Sebastian Pop <sebpop@gmail.com>
2062 * Makefile.in: Remove PPL flags in favor of ISL ones.
2063 (BACKENDLIBS): Remove PPL libs.
2064 (INCLUDES): Remove PPL includes in favor of ISL ones.
2065 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
2066 graphite-cloog-compat.h dependencies.
2067 (graphite-dependences.o): Likewise.
2068 (graphite-poly.o): Likewise.
2069 * configure.ac: Declare ISL vars instead of PPL ones.
2070 * configure: Regenerated.
2071 * doc/install.texi: Replace PPL requirement documentation with ISL one.
2072 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
2073 * graphite-clast-to-gimple.c: Likewise.
2074 * graphite-dependences.c: Likewise.
2075 * graphite-interchange.c: Likewise.
2076 * graphite-poly.h: Likewise.
2077 * graphite-poly.c: Likewise.
2078 * graphite-sese-to-poly.c: Likewise.
2079 * graphite.c: Likewise.
2080 * graphite-scop-detection.c: Re-arrange includes.
2081 * graphite-cloog-util.c: Remove.
2082 * graphite-cloog-util.h: Likewise.
2083 * graphite-ppl.h: Likewise.
2084 * graphite-ppl.c: Likewise.
2085 * graphite-dependences.h: Likewise.
2087 2012-07-02 Richard Guenther <rguenther@suse.de>
2089 Merge from graphite branch
2090 2011-07-21 Tobias Grosser <tobias@grosser.es>
2092 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
2093 Remove graphite-cloog-util.h.
2094 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
2095 build_iv_mapping, translate_clast_user, translate_clast,
2096 free_scattering, initialize_cloog_names, build_cloog_prog,
2097 create_params_index): Do not use old compatibility functions.
2098 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
2099 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
2100 compatibility functions.
2101 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
2103 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
2104 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
2106 * graphite-cloog-compat.h: Remove.
2108 2011-08-09 Tobias Grosser <tobias@grosser.es>
2110 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
2111 of the string, no just a reference.
2112 (clast_name_index): Add a new field, that specifies if we need to free
2114 (free_clast_name_index): If necessary, free the name string.
2115 (clast_name_index_elt_info): Calculate the hash based on the string
2116 content, not the memory location it is stored in.
2117 (clast_name_to_level): Specify that we do not need to free the name.
2118 (clast_name_to_index): Dito.
2119 (clast_name_to_lb_ub): Dito.
2120 (eq_clast_name_indexes): Compare the strings, not their base pointers.
2121 (free_scattering): Removed.
2122 (initialize_cloog_names): Renamed to add_names_to_union_domain().
2123 (add_names_to_union_domain): Changed to work on a union_domain,
2124 instead of a CloogNames structure.
2125 (build_cloog_prog): Removed.
2126 (build_cloog_union_domain): New.
2127 (generate_cloog_input): New.
2128 (scop_to_clast): Use CloogInput instead of CloogProgram.
2129 (print_generated_program): Adapt to new scop_to_clast() and do not
2130 print the CloogProgram any more.
2131 (create_params_index): Removed, functionality integrated in
2132 add_names_to_union_domain().
2133 (gloog): Adapt to new scop_to_clast().
2134 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
2136 2012-01-11 Tobias Grosser <tobias@grosser.es>
2138 * graphite-clast-to-gimple.c (clast_name_to_index,
2139 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
2140 (clast_to_gcc_expression): Add clast_expr_name as a new
2141 case. Do not assume a clast_expr_term points always to a
2143 (type_for_clast_term): Do not assume a clast_expr_term points always to
2145 (type_for_clast_name): New.
2146 (type_for_clast_expr): Add clast_expr_name as a new case.
2148 2011-08-03 Sebastian Pop <sebpop@gmail.com>
2150 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
2151 new_Cloog_Scattering_from_ppl_Polyhedron,
2152 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
2154 2012-07-02 Jakub Jelinek <jakub@redhat.com>
2156 PR tree-optimization/53645
2157 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
2158 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
2160 2012-07-01 Wei Guozhi <carrot@google.com>
2163 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
2164 * config/arm/arm.c (const_ok_for_dimode_op): New function.
2165 * config/arm/constraints.md (Dd): New constraint.
2166 * config/arm/predicates.md (arm_adddi_operand): New predicate.
2167 * config/arm/arm.md (adddi3): Extend it to handle constants.
2168 (arm_adddi3): Likewise.
2169 (addsi3_carryin_<optab>): Extend it to handle sbc case.
2170 (addsi3_carryin_alt2_<optab>): Likewise.
2171 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
2173 2012-06-30 Nathan Sidwell <nathan@acm.org>
2175 * coverage.c (bbg_file_stamp): New.
2176 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
2177 (build_info): Write bbg_file_stamp.
2178 (coverage_init): Initialize bbg_file_stamp. Read counts file
2179 before writing graph header.
2180 (coverage_finish): Don't unlink the data file if we can generate a
2182 * tree.h (crc32_unsigned): Declare.
2183 * tree.c (crc32_unsigned_bits): New, broken out of ...
2184 (crc32_byte): ... here. Use it.
2185 (crc32_unsigned): New.
2187 2012-06-29 Cary Coutant <ccoutant@google.com>
2189 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
2190 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
2191 (gen_variable_die): Likewise.
2192 (gen_namespace_die): Likewise.
2194 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
2196 * tree-eh.c (lower_try_finally_switch): Really put the location of the
2197 last statement of the finally block onto the switch.
2199 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
2202 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
2205 2012-06-29 Sterling Augustine <saugustine@google.com>
2207 * dwarf2out.c (add_pubname): Add comment.
2208 (add_pubtype): Fix indentation.
2209 (gen_enumeration_type_die): Likewise.
2211 2012-06-29 Jakub Jelinek <jakub@redhat.com>
2213 * tree-vect-generic.c (expand_vector_divmod): For even/odd
2214 widening multiply, put even always as first argument to VEC_PERM_EXPR.
2216 2012-06-29 Richard Henderson <rth@redhat.com>
2218 * tree-vect-generic.c: Include target.h.
2219 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
2220 * Makefile.in (tree-vect-generic.o): Update.
2222 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2224 * configure.ac: Remove special gtfiles case for C.
2225 * configure: Regenerate.
2226 * Makefile.in: Remove C front-end hooks and build hooks that
2227 will be picked up from c/Make-lang.in now.
2228 Add tree-mudflap to C_COMMON_OBJS.
2229 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
2230 * config/vms/vms.c: Look for c-tree.h in c/.
2231 * doc/gty.texi: Remove reference to c-config-lang.in.
2232 * doc/sourcebuild.texi: Document the c/ subdirectory.
2234 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2236 * system.h (CASE_USE_BIT_TESTS): Poison.
2237 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
2238 (expand_switch_using_bit_tests_p): ...here.
2239 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
2240 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
2242 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2244 * system.h (IFCVT_EXTRA_FIELDS): Poison.
2245 (IFCVT_INIT_EXTRA_FIELDS): Poison.
2246 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
2247 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
2248 IFCVT_INIT_EXTRA_FIELDS.
2249 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
2250 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
2252 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
2253 frv_ifcvt_machdep_init.
2254 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
2255 Remove documentation.
2256 (IFCVT_MACHDEP_INIT): Document.
2257 * doc/tm.texi: Regenerate.
2259 2012-06-29 Nick Clifton <nickc@redhat.com>
2261 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
2263 2012-06-29 Jakub Jelinek <jakub@redhat.com>
2265 * tree-vect-stmts.c (vectorizable_operation): Check both
2266 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
2267 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
2269 2012-06-28 Richard Henderson <rth@redhat.com>
2271 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
2273 2012-06-28 Jakub Jelinek <jakub@redhat.com>
2275 PR tree-optimization/51581
2276 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
2277 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
2278 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
2279 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
2280 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
2281 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
2283 PR tree-optimization/53645
2284 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
2285 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
2288 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
2291 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
2292 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
2293 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
2294 avr_hard_regno_call_part_clobbered.
2296 2012-06-28 Richard Guenther <rguenther@suse.de>
2299 * expr.c (expand_expr_real_1): Verify if the type is complete
2300 before inspecting its size.
2302 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2304 * doc/include/gpl.texi: Remove.
2305 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
2307 2012-06-28 Jakub Jelinek <jakub@redhat.com>
2309 PR tree-optimization/53645
2310 * tree-vect-generic.c (add_rshift): New function.
2311 (expand_vector_divmod): New function.
2312 (expand_vector_operation): Use it for vector integer
2313 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
2314 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
2315 unused lguup variable with dummy_int.
2317 2012-06-28 OLivier Hainque <hainque@adacore.com>
2319 * expr.c (convert_move): Latch mem integer inputs into a
2320 register before expanding a multi-instructions sequence.
2322 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
2323 Uros Bizjak <ubizjak@gmail.com>
2324 Jakub Jelinek <jakub@redhat.com>
2328 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
2329 (vt_finalize): ... here instead, if needed.
2331 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
2336 * dce.c (word_dce_process_block): Check whether inserting debug
2337 temps are needed even for needed insns.
2338 (dce_process_block): Likewise.
2339 * df-problems.c (dead_debug_add): Add comment about multi-regs.
2340 (dead_debug_insert_temp): Likewise. Don't subreg when we're
2341 setting fewer regs than a multi-reg requires.
2343 2012-06-27 Richard Henderson <rth@redhat.com>
2345 * config/alpha/alpha.c (alpha_dimode_u): New.
2346 (alpha_init_builtins): Initialize it, and use it.
2347 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
2348 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
2349 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
2350 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
2351 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
2352 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
2353 (alpha_fold_builtin_ctpop): Likewise.
2354 (alpha_fold_builtin_umulh): Remove.
2355 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
2356 typo in MAX_ARGS check.
2358 2012-06-27 Richard Henderson <rth@redhat.com>
2360 * tree.def (MULT_HIGHPART_EXPR): New.
2361 * cfgexpand.c (expand_debug_expr): Ignore it.
2362 * expr.c (expand_expr_real_2): Handle it.
2363 * fold-const.c (int_const_binop_1): Likewise.
2364 * optabs.c (optab_for_tree_code): Likewise.
2365 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
2366 * tree-inline.c (estimate_operator_cost): Likewise.
2367 * tree-pretty-print.c (dump_generic_node): Likewise.
2368 (op_code_prio, op_symbol_code): Likewise.
2369 * tree.c (commutative_tree_code): Likewise. Also handle
2370 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
2372 2012-06-27 Richard Henderson <rth@redhat.com>
2375 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
2376 in 2012-06-23 change. Adjust two other DImode tests as well.
2378 2012-06-27 Nick Clifton <nickc@redhat.com>
2380 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
2383 2012-06-27 Richard Guenther <rguenther@suse.de>
2386 * tree-chrec.c (chrec_convert_1): Represent truncation to
2387 a type with undefined overflow as truncation to an unsigned
2388 type converted to the type with undefined overflow.
2389 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
2390 the scalar evolution of a truncated widened operation avoid
2391 looking at the non-existing evolution of the widened operation
2394 2012-06-27 Richard Guenther <rguenther@suse.de>
2396 PR tree-optimization/53774
2397 * tree-ssa-reassoc.c (get_rank): All default defs have
2399 (init_reassoc): Precompute rank for all SSA default defs.
2401 2012-06-27 Nick Clifton <nickc@redhat.com>
2403 * config/rx/rx.md (simple_return): Use the simple_return rtx.
2405 2012-06-26 Richard Henderson <rth@redhat.com>
2407 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
2408 and don't fall thru from standard_80387_constant_p to the memory
2411 2012-06-26 Richard Henderson <rth@redhat.com>
2413 * config/i386/i386.c (bdesc_args): Update. Change
2414 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
2415 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
2416 (ix86_builtin_mul_widen_even): Use it.
2417 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
2418 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
2419 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
2421 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
2422 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
2423 (vec_widen_smult_even_v4si): New.
2425 2012-06-26 Richard Henderson <rth@redhat.com>
2427 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
2428 to expander; move guts to ...
2429 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
2430 highparts before shifting up.
2431 * config/i386/i386-protos.h: Update.
2433 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2435 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
2436 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
2437 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
2439 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
2441 * var-tracking.c (vt_add_function_parameter): Use a preserved
2442 VALUE for the MEM address of an incoming parameter.
2444 2012-06-26 Sterling Augustine <saugustine@google.com>
2446 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
2447 (prune_unused_types): Likewise.
2449 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2451 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2452 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
2453 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2454 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
2455 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
2456 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
2457 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
2458 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
2459 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
2461 * doc/tm.texi: Regenerate.
2462 * doc/cpp.texi: Make example for #error generic.
2463 * config/frv/frv.h: Fix example text to match tm.texi.
2465 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
2467 * tree-pass.h (pass_strength_reduction): New decl.
2468 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
2469 (finalize_costs): Likewise.
2470 * timevar.def (TV_TREE_SLSR): New timevar.
2471 * gimple-ssa-strength-reduction.c: New.
2472 * tree-flow.h (initialize_costs): New decl.
2473 (finalize_costs): Likewise.
2474 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
2475 * passes.c (init_optimization_passes): Add pass_strength_reduction.
2477 2012-06-26 Matt Turner <mattst88@gmail.com>
2479 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
2480 (__builtin_arm_tinsrh): Likewise.
2481 (__builtin_arm_tinsrw): Likewise.
2482 (__builtin_arm_wsadb): Add missing v2si parameter.
2483 (__builtin_arm_wsadh): Likewise.
2484 (__builtin_arm_getwcx): Delete.
2485 (__builtin_arm_setwcx): Delete.
2486 (__builtin_arm_getwcgr0): Add.
2487 (__builtin_arm_getwcgr1): Add.
2488 (__builtin_arm_getwcgr2): Add.
2489 (__builtin_arm_getwcgr3): Add.
2490 (__builtin_arm_setwcgr0): Add.
2491 (__builtin_arm_setwcgr1): Add.
2492 (__builtin_arm_setwcgr2): Add.
2493 (__builtin_arm_setwcgr3): Add.
2495 2012-06-26 Richard Guenther <rguenther@suse.de>
2498 2012-06-21 Richard Guenther <rguenther@suse.de>
2500 * tree-inline.c (estimate_num_insns): Estimate call cost for
2503 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2506 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
2507 * doc/tm.texi: Regenerate.
2509 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2512 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
2513 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
2514 * doc/tm.texi.in: Remove documentation for unused target macros
2515 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2516 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2517 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2518 TARGET_NARROW_VOLATILE_BITFIELDS.
2519 Document that MD_HANDLE_UNWABI is a macro in libgcc.
2520 * doc/tm.texi: Regenerate.
2521 * system.h: Poison target macros
2522 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2523 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2524 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2525 TARGET_NARROW_VOLATILE_BITFIELDS
2527 2012-06-26 Jan Hubicka <jh@suse.cz>
2530 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
2533 2012-06-26 Dehao Chen <dehao@google.com>
2535 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
2536 source location is consistant with the call stmt.
2538 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
2540 PR tree-optimization/53729
2541 PR tree-optimization/53636
2542 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
2543 vect_verify_datarefs_alignment until after statements have
2544 been marked as relevant/irrelevant.
2545 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
2546 Skip irrelevant statements.
2547 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
2548 instead of STMT_VINFO_RELEVANT.
2549 (vect_get_data_access_cost): Do not check for supportable
2550 alignment before calling vect_get_load_cost/vect_get_store_cost.
2551 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
2552 handling unsupported alignment.
2553 (vect_get_load_cost): Likewise.
2555 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
2557 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
2558 Do not define JMP_BUF_SIZE.
2560 2012-06-26 Jakub Jelinek <jakub@redhat.com>
2562 PR tree-optimization/53748
2563 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
2564 if arg0/arg1 have integral or pointer types.
2566 2012-06-25 Richard Henderson <rth@redhat.com>
2568 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
2569 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
2570 (sdot_prodv4si): New; handle only XOP.
2572 2012-06-25 Richard Henderson <rth@redhat.com>
2574 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
2575 (V2UDI_FUNC_V4USI_V4USI): New.
2576 (V4UDI_FUNC_V8USI_V8USI): New.
2577 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
2578 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
2579 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
2580 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
2581 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
2582 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
2583 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
2584 (bdesc_args): Add them.
2585 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
2586 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
2587 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
2588 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
2589 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
2591 2012-06-25 Richard Henderson <rth@redhat.com>
2593 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
2595 2012-06-25 Richard Henderson <rth@redhat.com>
2597 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
2599 (ix86_expand_vec_interleave): New.
2600 (ix86_expand_mul_widen_evenodd): New.
2601 (ix86_expand_mul_widen_hilo): New.
2602 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
2603 * config/i386/i386.md (u_bool) New code attr.
2604 * config/i386/predicates.md
2605 (nonimmediate_or_const_vector_operand): Remove.
2606 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
2607 both AVX and SSE4_1.
2608 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
2609 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
2610 (vec_widen<s>mult_hi_v8si): Remove.
2611 (vec_widen<s>mult_lo_v8si): Remove.
2612 (vec_widen_smult_hi_v4si): Remove.
2613 (vec_widen_smult_lo_v4si): Remove.
2614 (vec_widen_umult_hi_v4si): Remove.
2615 (vec_widen_umult_lo_v4si): Remove.
2616 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
2617 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
2618 * config/i386/i386-protos.h: Update.
2620 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
2622 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
2623 (neon_vld1_dup): Restrict to VQ operands.
2624 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
2626 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2627 James Greenhalgh <james.greenhalgh@arm.com>
2629 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
2630 (TARGET_FMA): New macro.
2631 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
2632 (TARGET_ARM_ARCH): Likewise.
2633 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
2634 (TARGET_V6M, TARGET_V7M): Likewise.
2635 (TARGET_ARM_ARCH_PROFILE): Likewise.
2636 (TARGET_ARM_FEATURE_LDREX): Likewise.
2637 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
2638 (ARM_MIN_ENUM_SIZE): Likewise.
2639 * config/arm/arm.c (arm_file_start): Refactor appropriately.
2640 (base_architecture): New enumeration.
2641 (arm_base_arch): New global variable.
2642 (processors): Add field base_arch.
2643 (ARM_ARCH, ARM_CORE): Adjust accordingly.
2644 (arm_option_override): Add initialization of arm_base_arch.
2645 * doc/cpp.texi (system-specific predefined macros.): Change.
2647 2012-06-25 Jakub Jelinek <jakub@redhat.com>
2650 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
2651 of x x x in the vmovlps load alternative.
2653 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
2656 * df.h (dead_debug_add): Remove third argument.
2657 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
2658 REG that we want to replace instead.
2659 (dead_debug_insert_temp): Use the REGNO of the reg that we want
2660 to replace instead of DF_REF_REGNO. Require there to always be
2661 at least one such use. Check for cases where the same location
2662 has more than df_ref associated with it.
2663 (df_note_bb_compute): Remove third dead_debug_add argument.
2664 * dce.c (word_dce_process_block): Likewise.
2666 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
2668 * config/v850/v850.c: Remove redundant extern declarations for
2669 last_assemble_variable_decl and size_directive_output.
2671 * doc/tm.texi.in: Document JMP_BUF_SIZE.
2672 * doc/tm.texi: Regenerate.
2673 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
2674 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
2675 * config/stormy16/stormy16.h: Likewise.
2677 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
2679 * doc/sourcebuild.texi: Add missing subdirectories.
2681 2012-06-25 Tristan Gingold <gingold@adacore.com>
2683 * config/i386/i386.h: Fix typo.
2685 2012-06-25 Tristan Gingold <gingold@adacore.com>
2687 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
2688 (seh_cfa_adjust_cfa): ... that function.
2689 (seh_emit_stackalloc): Do not emit out of range values.
2690 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
2691 UNSPEC_DEF_CFA constants.
2692 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
2693 * config/i386/i386.c (ix86_frame_pointer_required): Required
2694 for very large frames on SEH target.
2695 (ix86_compute_frame_layout): Save area is before frame pointer
2696 on SEH target. Handle very large frames.
2697 (ix86_expand_prologue): Likewise.
2699 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
2701 * output.h: (current_function_is_leaf,
2702 current_function_sp_is_unchanging,
2703 current_function_uses_only_leaf_regs): Remove.
2704 * function.c (current_function_is_leaf,
2705 current_function_sp_is_unchanging,
2706 current_function_uses_only_leaf_regs): Remove.
2707 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
2708 instead of current_function_uses_only_leaf_regs.
2709 * function.h (struct rtl_data): New fields sp_is_unchanging,
2710 is_leaf, uses_only_leaf_regs.
2711 * resource.c (init_resource_info): Replace current_function_is_leaf,
2712 current_function_sp_is_unchanging, and
2713 current_function_uses_only_leaf_regs with new crtl fields.
2714 * sdbout.c (sdbout_symbol): Likewise.
2715 * df-core.c (rest_of_handle_df_initialize): Likewise.
2716 * ira.c (ira): Likewise.
2717 * final.c (final_start_function): Likewise.
2718 * reorg.c (fill_simple_delay_slots): Likewise.
2719 * regrename.c (check_new_reg_p): Likewise.
2720 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
2721 (notice_stack_pointer_modification): Likewise.
2722 * dbxout.c (dbxout_symbol): Likewise.
2723 (dbxout_parms): Likewise.
2724 * sel-sched.c (init_regs_for_mode): Likewise.
2725 * dwarf2out.c (dbx_reg_number): Likewise.
2726 (multiple_reg_loc_descriptor): Likewise.
2727 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
2728 (gen_pop): Likewise.
2729 (ix86_select_alt_pic_regnum): Likewise.
2730 (ix86_compute_frame_layout): Likewise.
2731 (ix86_finalize_stack_realign_flags): Likewise.
2732 (ix86_expand_epilogue): Likewise.
2733 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
2734 * config/h8300/h8300.c (byte_reg): Likewise.
2735 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
2736 (c6x_save_reg): Likewise.
2737 (c6x_compute_frame_layout): Likewise.
2738 * config/pa/pa.c (pa_compute_frame_size): Likewise.
2739 (pa_output_function_prologue): Likewise.
2740 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
2741 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
2742 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
2743 (sparc_expand_prologue): Likewise.
2744 (sparc_flat_expand_prologue): Likewise.
2745 (sparc_asm_function_prologue): Likewise.
2746 (sparc_output_mi_thunk): Likewise.
2747 (sparc_frame_pointer_required): Likewise.
2748 * config/epiphany/epiphany.c (epiphany_compute_function_type):
2750 (epiphany_compute_frame_size): Likewise.
2751 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2752 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
2753 (cris_frame_pointer_required): Likewise.
2754 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
2755 (tilepro_current_function_is_leaf): Likewise.
2756 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
2757 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
2758 * config/ia64/ia64.c (find_gr_spill): Likewise.
2759 (ia64_compute_frame_size): Likewise.
2760 (ia64_can_eliminate): Likewise.
2761 (ia64_initial_elimination_offset): Likewise.
2762 * config/m68k/m68k.c (m68k_save_reg): Likewise.
2763 (m68k_expand_epilogue): Likewise.
2764 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2765 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
2766 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
2768 (picochip_output_frame_debug): Likewise.
2769 * config/sh/sh.c (sh_media_register_for_return): Likewise.
2770 (sh_allocate_initial_value): Likewise.
2771 (sh_output_mi_thunk): Likewise.
2772 * config/microblaze/microblaze.c (microblaze_must_save_register):
2774 (compute_frame_size): Likewise.
2775 (microblaze_initial_elimination_offset): Likewise.
2776 (microblaze_expand_prologue): Likewise.
2777 (microblaze_expand_epilogue): Likewise.
2778 * config/frv/frv.c (frv_expand_epilogue): Likewise.
2779 (frv_frame_pointer_required): Likewise.
2780 * config/spu/spu.c (get_pic_reg): Likewise.
2781 (direct_return): Likewise.
2782 (spu_expand_prologue): Likewise.
2783 (spu_expand_epilogue): Likewise.
2784 (spu_initial_elimination_offset): Likewise.
2785 * config/mips/mips.c (mips_global_pointer): Likewise.
2786 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2787 (mips_compute_frame_info): Likewise.
2788 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
2789 (mep_reload_pointer): Likewise.
2790 * config/rl78/rl78.c (need_to_save): Likewise.
2791 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2792 * config/score/score.c (score_compute_frame_size): Likewise.
2793 (score_function_prologue): Likewise.
2794 * config/bfin/bfin.c (must_save_p): Likewise.
2795 (expand_prologue_reg_save): Likewise.
2796 (expand_epilogue_reg_restore): Likewise.
2797 (bfin_frame_pointer_required): Likewise.
2798 (n_regs_saved_by_prologue): Likewise.
2799 (add_to_reg): Likewise.
2800 (expand_interrupt_handler_prologue): Likewise.
2801 (expand_interrupt_handler_epilogue): Likewise.
2802 (bfin_expand_prologue): Likewise.
2803 * config/avr/avr.c (avr_regs_to_save): Likewise.
2804 (avr_prologue_setup_frame): Likewise.
2805 (expand_epilogue): Likewise.
2806 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2807 (s390_register_info): Likewise.
2808 (s390_frame_info): Likewise.
2809 (s390_init_frame_layout): Likewise.
2810 (s390_emit_prologue): Likewise.
2813 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
2815 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
2816 * vmsdbgout: Do not undefine it if defined.
2817 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
2818 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
2819 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
2821 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
2823 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
2825 2012-06-23 Richard Henderson <rth@redhat.com>
2828 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
2829 V*QImode shifts and multiply.
2830 (ix86_expand_vecop_qihi): Support shifts.
2831 * config/i386/i386.md (any_shift): New code iterator.
2832 * config/i386/sse.md (ashlv16qi3): Merge ...
2833 (<any_shiftrt>v16qi3): ... into ...
2834 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
2835 to support SSE and AVX.
2837 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
2838 parameter into src and dest.
2839 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
2840 (vec_unpacks_hi_<V124_AVX2>): Likewise.
2841 (vec_unpacku_lo_<V124_AVX2>): Likewise.
2842 (vec_unpacks_lo_<V124_AVX2>): Likewise.
2843 * config/i386/i386-protos.h: Update.
2845 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
2846 pure expander; move expansion code ...
2847 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
2848 * config/i386/i386-protos.h: Update.
2850 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
2852 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
2853 (popcntb<mode>2): Add attribute type popcnt.
2854 (popcntd<mode>2): Ditto.
2855 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
2856 * config/rs6000/power5.md (define_insn_reservation): Ditto.
2857 * config/rs6000/power7.md (define_insn_reservation): Ditto.
2858 * config/rs6000/476.md (define_insn_reservation): Ditto.
2859 * config/rs6000/power6.md (define_insn_reservation): New
2860 reservation for popcnt instructions.
2862 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
2864 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
2866 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
2869 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
2871 * config/i386/i386.c (ix86_option_override_internal): Allow
2872 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
2874 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
2877 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
2879 * double-int.c (double_int_multiple_of): New function.
2880 * double-int.h (double_int_multiple_of): New decl.
2881 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
2882 (mbc_entry_hash): New forward decl.
2883 (mbc_entry_eq): Likewise.
2884 (zero_cost): Change to no_cost.
2885 (mult_costs): New static var.
2886 (cost_tables_exist): Likewise.
2887 (initialize_costs): New function.
2888 (finalize_costs): Likewise.
2889 (tree_ssa_iv_optimize_init): Call initialize_costs.
2890 (add_cost): Change to add_regs_cost; distinguish costs by speed.
2891 (multiply_regs_cost): New function.
2892 (add_const_cost): Likewise.
2893 (extend_or_trunc_reg_cost): Likewise.
2894 (negate_reg_cost): Likewise.
2895 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
2897 (get_address_cost): Change add_cost to add_regs_cost; change
2898 multiply_by_cost to multiply_by_const_cost.
2899 (force_expr_to_var_cost): Change zero_cost to no_cost; change
2900 add_cost to add_regs_cost; change multiply_by_cost to
2901 multiply_by_const_cost.
2902 (split_cost): Change zero_cost to no_cost.
2903 (ptr_difference_cost): Likewise.
2904 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
2905 to multiply_by_const_cost.
2906 (get_computation_cost_at): Change add_cost to add_regs_cost; change
2907 multiply_by_cost to multiply_by_const_cost.
2908 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
2909 (determine_iv_cost): Change add_cost to add_regs_cost.
2910 (iv_ca_new): Change zero_cost to no_cost.
2911 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
2912 * tree-ssa-address.c (most_expensive_mult_to_index): Change
2913 multiply_by_cost to multiply_by_const_cost.
2914 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
2915 (add_regs_cost): New decl.
2916 (multiply_regs_cost): Likewise.
2917 (add_const_cost): Likewise.
2918 (extend_or_trunc_reg_cost): Likewise.
2919 (negate_reg_cost): Likewise.
2921 2012-06-22 Richard Guenther <rguenther@suse.de>
2923 Merge from graphite branch
2924 2011-08-10 Sebastian Pop <sebpop@gmail.com>
2926 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
2928 2012-01-13 Tobias Grosser <tobias@grosser.es>
2930 * tree-flow.h (parallelized_function_p): Declare.
2931 * tree-parloops.c (parallelized_function_p): Export.
2932 * graphite.c (graphite_transform_loops): Do not run graphite on
2933 already parallel functions.
2935 2012-06-22 Alan Modra <amodra@gmail.com>
2937 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
2938 return mem. Convert to indirect addressing if not indirect or
2939 indexed. Adjust all callers.
2941 2012-06-22 Richard Guenther <rguenther@suse.de>
2943 * gcov-iov.c: Include bconfig.h and system.h.
2945 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
2947 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
2949 2012-06-22 Richard Guenther <rguenther@suse.de>
2951 PR gcov-profile/53744
2952 * gcov-iov.c (main): Treat "" and "prerelease" the same.
2954 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
2957 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
2958 for GNU Fortran if in strict DWARF2 mode.
2960 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
2962 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
2963 DECL_IGNORED_P non-reg vars even if they are used.
2965 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2969 * var-tracking.c (vt_get_canonicalize_base): New.
2970 (vt_canonicalize_addr, vt_stack_offset_p): New.
2971 (vt_canon_true_dep): New.
2972 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
2973 (clobber_overlaping_mems): Use vt_canonicalize_addr.
2975 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2979 * var-tracking.c (vt_initialize): Record initial offset between
2980 arg pointer and stack pointer.
2982 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2986 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
2989 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2993 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
2995 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2997 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
2999 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
3002 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
3004 2012-06-21 Meador Inge <meadori@codesourcery.com>
3007 * c-decl.c (c_push_function_context): Restore the behavior to reuse
3008 the language function allocated for -Wunused-local-typedefs.
3009 (c_pop_function_context): If necessary, clear the language function
3010 created in c_push_function_context. Always clear out the
3011 x_cur_stmt_list field of the restored language function.
3013 2012-06-21 Sterling Augustine <saugustine@google.com>
3014 Cary Coutant <ccoutant@google.com>
3016 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
3017 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
3018 (comdat_type_struct): New field 'skeleton_die'.
3019 (breakout_comdat_types): Update it.
3020 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
3021 is_namespace_die. Fix minor style violation. Call want_pubnames.
3022 (add_pubname_string): Call want_pubnames.
3023 (add_pubtype): Rework logic for calculating type name. Call
3024 is_namespace_die. Call want_pubnames.
3025 (output_pubnames): Move conditional logic deciding when to produce the
3026 section from dwarf2out_finish. Use new skeleton_die field.
3027 (base_type_die): Call add_pubtype.
3028 (gen_enumeration_type_die): Unconditionally call add_pubtype.
3029 (gen_subprogram_die): Adjust calls to add_pubname.
3030 (gen_namespace_die): Call add_pubname_string.
3031 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
3032 produce pubnames and pubtypes sections to output_pubnames.
3033 * common.opt (-gpubnames): New option.
3034 * doc/invoke.texi: Document it.
3036 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3038 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
3040 2012-06-21 Michael Matz <matz@suse.de>
3043 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
3046 2012-06-21 Richard Guenther <rguenther@suse.de>
3048 * tree-inline.c (estimate_num_insns): Estimate call cost for
3051 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
3053 * tree.h (DECL_SOURCE_COLUMN): New accessor.
3055 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3057 * config/i386/i386.md (SINCOS): New int iterator.
3058 (sincos): New int attribute.
3059 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
3060 SINCOS int iterator.
3061 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
3062 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
3064 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3066 * config/i386/i386.md (RDFSGSBASE): New int iterator.
3067 (WRFSGSBASE): Ditto.
3068 (fsgs): New int attribute.
3069 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
3070 RDFSGSBASE int iterator.
3071 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
3072 WRFSGSBASE int iterator.
3074 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3076 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
3077 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
3078 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
3079 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
3082 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3084 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
3086 2012-06-20 Richard Guenther <rguenther@suse.de>
3088 PR tree-optimization/30318
3089 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
3091 (range_int_cst_singleton_p): But explicitely here.
3092 (zero_nonzero_bits_from_vr): And here.
3093 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
3094 to cover all cases we can perform arbitrary precision
3095 arithmetic with double-ints.
3096 (intersect_ranges): Handle adjacent anti-ranges.
3098 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3100 * config/i386/i386.md (rounding_insn): New int attribute.
3101 (<rounding_insn>xf2): Macroize insn from
3102 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
3103 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
3105 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3107 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
3108 (ieee_maxmin): New int attribute.
3109 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
3110 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
3112 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3114 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
3115 * config/arm/arm.c: Do not include c-pragma.h.
3116 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
3117 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
3118 to arm_emit_eabi_attribute.
3119 * arm-c.c: Do not include output.h.
3120 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
3121 call to arm_emit_eabi_attribute.
3122 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
3124 2012-06-20 Richard Guenther <rguenther@suse.de>
3126 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3127 Allow adjusting alignment of user-aligned decls again.
3129 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3131 * config/rl78/rl78-c.c: Remove unnecessary includes.
3133 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3135 * config/cris/cris.c: Include cgraph.h.
3136 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
3138 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
3140 * emit-rtl.c (need_atomic_barrier_p): New function.
3141 * emit-rtl.h (need_atomic_barrier_p): Declare it.
3142 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
3143 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
3144 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
3145 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
3146 (mips_process_sync_loop): Use generic version instead.
3148 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
3150 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
3153 2012-06-19 Tom de Vries <vries@codesourcery.com>
3154 Maxim Kuvyrkov <maxim@codesourcery.com>
3156 * config/mips/constraints.md (ZR): New constraint.
3157 * config/mips/predicates.md (mem_noofs_operand): New predicate.
3158 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
3159 * config/mips/mips.h (TARGET_XLP): Define.
3160 (TARGET_SYNC_AFTER_SC): Update.
3161 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
3162 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
3163 XLP-specific swap and ldadd patterns.
3164 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
3166 2012-06-19 Tom de Vries <vries@codesourcery.com>
3167 Maxim Kuvyrkov <maxim@codesourcery.com>
3169 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
3170 (mips_emit_post_atomic_barrier_p): New static functions.
3171 (mips_process_sync_loop): Use them. Emit sync memory barriers in
3172 accordance with memory model semantics. Add return of CMP result for
3174 * config/mips/mips.md: Update comment.
3175 (sync_cmp): New attribute.
3176 (sync_memmodel): New attribute replacing sync_release_barrier.
3177 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
3178 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
3179 (sync_lock_test_and_set, test_and_set_12): Update.
3180 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
3181 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
3183 2012-06-19 Joseph Myers <joseph@codesourcery.com>
3185 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
3186 mov_si<mode>_e500_subreg0.
3187 (*mov_si<mode>_e500_subreg0_elf_low)
3188 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
3190 2012-06-19 Richard Henderson <rth@redhat.com>
3192 * config/alpha/alpha.c: Include params.h.
3193 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
3194 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
3196 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3198 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
3199 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
3200 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
3202 * doc/tm.texi: Regenerate.
3203 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
3205 * config/darwin-c.c: Include target.h.
3206 (darwin_objc_declare_unresolved_class_reference): New function.
3207 (darwin_objc_declare_class_definition): New function.
3208 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
3209 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
3211 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3213 * target.def (output_ident): New hook.
3214 * targhooks.h (default_asm_output_ident_directive): Add prototype.
3215 * varasm.c (assemble_asm): Only prefix a tab if the string does not
3216 already start with one.
3217 (default_asm_output_ident_directive): New function to emit
3218 .ident as a top-level asm node while parsing, or directly to
3219 asm_out_file after parsing.
3220 * toplev.c (compile_file): Print a GCC .ident with
3221 targetm.asm_out.output_ident.
3222 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
3223 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
3224 * doc/tm.texi: Update.
3226 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
3227 (TARGET_ASM_OUTPUT_IDENT): Define.
3228 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
3229 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
3230 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
3231 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
3232 (TARGET_ASM_OUTPUT_IDENT): Define.
3233 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
3234 (TARGET_ASM_OUTPUT_IDENT): Define.
3236 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
3237 * config/cris/cris.c (cris_asm_output_ident): New function.
3238 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
3240 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
3242 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
3243 (microblaze_asm_output_ident): Rewrite to work similar to
3244 default_asm_output_ident_directive for front-end .idents.
3245 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
3246 (TARGET_ASM_OUTPUT_IDENT): Define.
3248 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
3249 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
3251 * config/rx/rx.c: Include cgraph.h for add_asm_node.
3252 (rx_asm_output_ident): New function, similar to
3253 default_asm_output_ident_directive, but handle AS100 syntax also, so
3254 that #ident also works for rx in AS100 syntax.
3255 (TARGET_ASM_OUTPUT_IDENT): Define.
3256 * config/rx/rx.h (IDENT_ASM_OP): Remove.
3258 * Makefile.in: Fix dependencies for c-family/c-lex.o.
3260 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
3262 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
3263 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
3265 (*fist<mode>2_<rounding>_1): Macroize insn from
3266 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
3267 (fistdi2_<rounding>): Macroize insn from
3268 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
3269 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
3270 corresponding splitters from fistdi2_{floor,ceil} and corresponding
3271 splitters using FIST_ROUNDING int iterator.
3272 (fist<mode>2_<rounding>): Macroize insn from
3273 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
3274 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
3275 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
3276 splitters using FIST_ROUNDING int iterator.
3277 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
3278 using FIST_ROUNDING int iterator.
3280 2012-06-19 Richard Henderson <rth@redhat.com>
3282 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
3283 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
3284 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
3285 * config/i386/sse.md (sse2_mulv4si3): Delete.
3286 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
3287 nonimmediate_or_const_vector_operand.
3289 2012-06-19 Richard Henderson <rth@redhat.com>
3291 * expmed.c (struct init_expmed_rtl): Split ...
3292 (init_expmed_one_mode): ... out of ...
3293 (init_expmed): ... here. Initialize integer vector modes also.
3294 (synth_mult): Handle integer vector modes.
3295 (choose_mult_variant): Likewise.
3296 (expand_mult_const): Likewise.
3297 (expand_mult): Likewise.
3298 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
3300 2012-06-19 Richard Henderson <rth@redhat.com>
3302 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
3303 integral vector modes.
3305 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
3307 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
3308 (rounding): New int attribute.
3310 (frndintxf2_<rounding>): Macroize insn from
3311 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
3312 (frndintxf2_<rounding>_i387): Macroize insn from
3313 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
3315 2012-06-19 Richard Guenther <rguenther@suse.de>
3317 * tree-vrp.c (union_ranges): New function.
3318 (vrp_meet_1): Use union_ranges.
3319 (vrp_meet): Dump what we union and call vrp_meet_1.
3321 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
3323 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
3324 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
3325 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
3326 (attr write_conflict, attr core_cycles): Update.
3327 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
3329 2012-06-19 Richard Guenther <rguenther@suse.de>
3331 * tree-vrp.c (intersect_ranges): Handle more cases.
3332 (vrp_intersect_ranges): Dump what we intersect and call ...
3333 (vrp_intersect_ranges_1): ... this.
3335 2012-06-19 Richard Guenther <rguenther@suse.de>
3337 PR tree-optimization/53708
3338 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
3339 user-supplied alignment and alignment of decls with the used
3342 2012-06-18 Lawrence Crowl <crowl@google.com>
3344 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
3345 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
3346 (TV_PHASE_STREAM_IN): New.
3347 (TV_PHASE_STREAM_OUT): New.
3348 * timevar.c (validate_phases): New.
3349 (timevar_print): Call validate_phases.
3350 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
3351 to TV_PHASE_OPT_GEN.
3352 * langhooks.c (write_global_declarations): Rename use of
3353 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
3354 TV_PHASE_CHECK_DBGINFO.
3355 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
3356 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
3357 lang_hooks.decls.final_write_globals.
3359 2012-06-18 David Edelshn <dje.gcc@gmail.com>
3361 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
3363 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
3366 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
3367 (*sse4_2_pcmpistr_unaligned): New.
3369 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3370 Sameera Deshpande <sameera.deshpande@arm.com>
3371 Greta Yorsh <greta.yorsh@arm.com>
3373 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
3374 * config/arm/arm.c (print_multi_reg): Remove.
3375 (vfp_output_fldmd): Likewise.
3376 (arm_output_epilogue): Likewise.
3377 * config/arm/arm.md (epilogue_insns): Update condition and code.
3379 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3380 Sameera Deshpande <sameera.deshpande@arm.com>
3381 Greta Yorsh <greta.yorsh@arm.com>
3383 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
3384 * config/arm/arm.c (thumb2_expand_return): New function.
3385 * config/arm/arm.md (return): Update condition and code.
3387 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3388 Sameera Deshpande <sameera.deshpande@arm.com>
3389 Greta Yorsh <greta.yorsh@arm.com>
3391 * config/arm/arm-protos.h (output_return_instruction): New parameter
3392 and int to bool change of parameter types.
3393 * config/arm/arm.c (output_return_instruction): Likewise.
3394 * config/arm/arm.md (arm_simple_return): New pattern.
3395 (arm_return, cond_return, cond_return_inverted): Add new arguments.
3396 * config/arm/thumb2.md (thumb2_return): Update condition and code.
3398 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3399 Sameera Deshpande <sameera.deshpande@arm.com>
3400 Greta Yorsh <greta.yorsh@arm.com>
3402 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
3403 * config/arm/arm.c (arm_expand_epilogue): New function.
3404 * config/arm/arm.md (epilogue): Update condition and code.
3405 (sibcall_epilogue): Likewise.
3407 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3408 Sameera Deshpande <sameera.deshpande@arm.com>
3409 Greta Yorsh <greta.yorsh@arm.com>
3411 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
3412 * config/arm/arm.md (arm_addsi3) Add an alternative.
3414 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3415 Sameera Deshpande <sameera.deshpande@arm.com>
3416 Greta Yorsh <greta.yorsh@arm.com>
3418 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
3419 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
3420 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
3422 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3423 Sameera Deshpande <sameera.deshpande@arm.com>
3424 Greta Yorsh <greta.yorsh@arm.com>
3426 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
3427 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
3428 (pop_multiple_with_return, ldr_with_return) Likewise.
3429 * config/arm/predicates.md (pop_multiple_return) New special predicate.
3430 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
3431 * config/arm/arm.c (arm_output_multireg_pop) New function.
3432 (arm_emit_multi_reg_pop): New function.
3434 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3436 * config/arm/arm.c (ldm_stm_operation_p): Require SP
3437 as base register for loads if SP is in the register list.
3439 2012-06-18 Richard Guenther <rguenther@suse.de>
3441 PR tree-optimization/53693
3442 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
3443 Reject operands with more than one use.
3445 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
3447 PR tree-optimization/53703
3448 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
3449 correctly set bb_for_def[12].
3451 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
3453 * config/vax/vax.h (VMS_TARGET): Remove.
3455 2012-06-18 Richard Guenther <rguenther@suse.de>
3457 * tree-vrp.c (extract_range_from_assert): Split out range
3459 (intersect_ranges): New function.
3460 (vrp_intersect_ranges): Likewise.
3462 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3464 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
3467 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
3469 * doc/md.texi: Document int iterators.
3470 * read-rtl.c (ints): New iterator group.
3471 (find_int): Int iterator group callback.
3472 (apply_int_iterator): Likewise.
3473 (apply_iterators): Traverse int iterator table and add all the used
3475 (initialize_iterators): Initialize data structures and callbacks for
3477 (read_rtx): Parse and read mappings for int iterators.
3478 (read_rtx_code): Record int iterator usage.
3480 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
3483 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
3484 performing an addition.
3486 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3488 * output.h (split_double): Move prototype to rtl.h.
3489 (constructor_static_from_elts_p): Move prototype to tree.c.
3490 * rtl.h (split_double): Moved here from output.h.
3491 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
3492 * final.c (split_double): Move from here ...
3493 * rtlanal.c (split_double): ... to here.
3494 * expr.c: Do not include output.h.
3496 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3498 * cfglayout.h: Remove.
3499 * cfglayout.c: Remove.
3500 * function.h (struct function): Remove x_last_location field.
3501 * function.c: Do not include cfglayout.h.
3502 (expand_function_start): Do not call no-op force_next_line_note.
3503 (expand_function_end): Likewise.
3504 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
3505 (unlink_insn_chain): Moved here from cfglayout.c.
3506 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
3507 into_cfg_layout_mode, outof_cfg_layout_mode,
3508 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
3509 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
3510 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
3511 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
3512 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
3513 cfg_layout_finalize): Likewise.
3514 (rtl_can_remove_branch_p): Likewise.
3515 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
3516 (duplicate_insn_chain): Likewise.
3517 (force_next_line_note): Remove prototype.
3518 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
3519 (last_location): Remove #define to emit.x_last_location.
3520 (force_next_line_note): Remove no-op function.
3521 (init_emit): Don't set x_last_location.
3522 (block_locators_locs, block_locators_blocks, locations_locators_locs,
3523 locations_locators_vals, prologue_locator, epilogue_locator,
3524 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3525 Move POD to here from cfglayout.c.
3526 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
3527 set_curr_insn_source_location, get_curr_insn_source_location,
3528 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
3529 locator_scope, insn_scope, locator_location, locator_line, insn_line,
3530 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
3531 * cfghooks.h: Remove double-include protection.
3532 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
3533 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
3534 * final.c: Do not include cfglayout.h.
3535 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
3536 (reemit_insn_block_notes): Likewise. Make static.
3537 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
3538 operation_could_trap_p, tree_could_throw_p): Move from here...
3539 * tree.h: ... to here.
3540 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
3541 * profile.c: Do not include cfghooks.h.
3542 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
3543 * modulo-sched.c: Likewise.
3544 * loop-unswitch.c: Do not include cfglayout.h.
3545 * sched-ebb.c: Likewise.
3546 * tracer.c: Likewise.
3548 * tree-vect-loop-manip.c: Likewise.
3549 * loop-init.c: Likewise.
3550 * dwarf2out.c: Likewise.
3551 * hw-doloop.c: Likewise.
3552 * loop-unroll.c: Likewise.
3553 * cfgcleanup.c: Likewise.
3554 * bb-reorder.c: Likewise.
3555 * sched-rgn.c: Likewise.
3556 * tree-cfg.c: Likewise.
3557 * config/alpha/alpha.c: Likewise.
3558 * config/spu/spu.c: Likewise.
3559 * config/sparc/sparc.c: Likewise.
3560 * config/sh/sh.c: Likewise.
3561 * config/c6x/c6x.c: Likewise.
3562 * config/ia64/ia64.c: Likewise.
3563 * config/rs6000/rs6000.c: Likewise.
3564 * config/score/score.c: Likewise.
3565 * config/mips/mips.c: Likewise.
3566 * config/bfin/bfin.c: Likewise.
3567 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
3568 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
3569 * config/spu/t-spu-elf (spu.o: $): Likewise.
3570 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
3572 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3574 * cfgloop.h: Do not include rtl.h.
3575 (enum iv_extend_code): New.
3576 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
3577 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
3578 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
3579 an IV_EXTEND_CODE to an RTX_CODE.
3580 (dump_iv_info): Update for rtx_iv field type change.
3581 (iv_constant): Likewise.
3582 (iv_subreg): Likewise.
3583 (iv_extend): Likewise.
3586 (iv_mult): Likewise.
3587 (iv_shift): Likewise.
3588 (get_biv_step_1): Likewise.
3589 (get_biv_step): Likewise.
3590 (iv_analyze_biv): Likewise.
3591 (get_iv_value): Likewise.
3592 (shorten_into_mode): Likewise.
3593 (canonicalize_iv_subregs): Likewise.
3594 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
3595 of MAY_HAVE_DEBUG_INSNS.
3596 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
3597 * tree-ssa-loop-prefetch.c: Likewise.
3599 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3601 * expmed.c (ceil_log2): Move from here...
3602 * hwint.c: ... to here for older GCCs...
3603 * hwint.h: ... and here for newer GCCs.
3604 * rtl.h (ceil_log2): Remove prototype.
3606 * tree-phinodes.c: Do not include rtl.h.
3607 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
3609 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3611 * config/cris/cris.h (TARGET_ELF): Remove.
3612 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
3613 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
3614 (LOCAL_LABEL_PREFIX): Likewise.
3615 * config/cris/cris.c (cris_target_asm_named_section): Remove.
3616 (cris_option_override): Simpify using TARGET_ELF==1.
3617 (cris_file_start): Likewise.
3618 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
3620 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
3622 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
3624 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
3627 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
3629 2012-06-15 Easwaran Raman <eraman@google.com>
3631 * passes.c (init_optimization_passes): Remove pass_call_cdce
3632 from its current position and insert after pass_dce.
3634 2012-06-15 Walter Lee <walt@tilera.com>
3636 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
3638 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
3640 * arm.c (note_invalid_constants): Don't return a result.
3641 (arm_memory_load_p): Delete function.
3642 (arm_const_double_rtx): Delete iterator variable i;
3643 (fp_immediate_constant): Likewise.
3644 (fp_const_from_val): Likewise.
3646 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
3648 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
3651 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
3652 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
3654 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
3656 * config/avr/avr.c (avr_default_expand_builtin): New function.
3657 (avr_expand_builtin): Use it.
3658 (avr_expand_unop_builtin): Remove.
3659 (avr_expand_binop_builtin): Remove.
3660 (avr_expand_triop_builtin): Remove.
3662 2012-06-15 Michael Matz <matz@suse.de>
3665 * cfgexpand.c (add_alias_set_conflicts): Remove.
3666 (expand_used_vars): Don't call it.
3667 (aggregate_contains_union_type): Remove.
3668 * function.c (n_temp_slots_in_use): New static data.
3669 (make_slot_available, assign_stack_temp_for_type): Update it.
3670 (init_temp_slots): Zero it.
3671 (remove_unused_temp_slot_addresses): Use it for quicker removal.
3672 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
3674 2012-06-15 Michael Matz <matz@suse.de>
3676 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
3677 argument, don't emit assign statement if value is directly usable.
3678 (gimplify_expr): Adjust.
3680 2012-06-15 Michael Matz <matz@suse.de>
3682 * gimplify.c (gimplify_modify_expr): Fold generated statements.
3683 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
3685 2012-06-15 Richard Guenther <rguenther@suse.de>
3687 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
3688 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
3689 we assert for in set_value_range to VR_VARYING.
3691 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
3693 * arm.md (addsf3, adddf3): Use s_register_operand.
3694 (subsf3, subdf3): Likewise.
3695 (mulsf3, muldf3): Likewise.
3696 (difsf3, divdf3): Likewise.
3697 (movsfcc, movdfcc): Likewise.
3698 * predicates.md (f_register_operand): Delete.
3699 (arm_float_rhs_operand): Delete.
3700 (arm_float_add_operand): Delete.
3701 (arm_float_compare_operand): Use s_register_operand when
3703 (cirrus_register_operand): Delete.
3704 (cirrus_fp_register): Delete.
3705 (cirrus_shift_const): Delete.
3706 (cmpdi_operand): Remove Maverick support.
3707 * constraints.md (f, v, H): Delete constraints.
3708 (G): Update documentation.
3709 * arm.c (fp_consts_inited): Convert to bool.
3710 (strings_fp): Delete.
3711 (values_fp): Delete.
3712 (value_fp0): New variable.
3713 (init_fp_table): Simplify logic.
3714 (arm_const_double_rtx): Likewise.
3715 (fp_immediate_constant): Likewise.
3716 (fp_const_from_val): Likewise.
3717 (neg_const_double_rtx_ok_for_fpa): Delete.
3718 * doc/md.texi (ARM constraints): Update documentation.
3720 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
3722 PR tree-optimization/53636
3723 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
3724 stride when doing basic-block vectorization.
3726 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3728 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
3731 2012-06-15 Jakub Jelinek <jakub@redhat.com>
3733 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
3734 allocate and free bbs array for the SLP case.
3736 PR tree-optimization/51581
3737 * expr.h (choose_multiplier): New prototype.
3738 * expmed.c (choose_multiplier): No longer static.
3739 Change multiplier_ptr from rtx * to UHWI *.
3740 (expand_divmod): Adjust callers.
3741 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
3742 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
3743 argument to new_stmt_vec_info. Attempt to optimize also divisions
3744 by non-pow2 constants if integer vector division isn't supported.
3745 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
3746 don't look at pattern stmts and sequences.
3748 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
3751 * common.opt (-fdelete-dead-exceptions): New switch.
3752 * doc/invoke.texi (Code Gen Options): Document it.
3753 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
3754 insn_could_throw_p predicate. Do not skip an insn that could throw
3755 if dead exceptions can be deleted.
3756 (insn_live_p): Likewise, do not return true in that case.
3757 * dce.c (can_alter_cfg): New flag.
3758 (deletable_insn_p): Do not return false for an insn that can throw if
3759 the CFG can be altered and dead exceptions can be deleted.
3760 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
3761 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
3762 predicate. Do not preserve an insn that could throw if dead exceptions
3764 * function.h (struct function): Add can_delete_dead_exceptions flag.
3765 * function.c (allocate_struct_function): Set it.
3766 * lto-streamer-in.c (input_struct_function_base): Stream it.
3767 * lto-streamer-out.c (input_struct_function_base): Likewise.
3768 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
3769 statement that could throw as necessary if dead exceptions can be
3772 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
3774 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
3776 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
3779 * config/sh/sh.md: Add peephole for swapbsi2.
3780 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
3782 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
3784 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
3785 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
3787 2012-06-14 Jakub Jelinek <jakub@redhat.com>
3790 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
3792 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
3794 * arm.c (arm_cirrus_insn_p): Delete.
3795 (cirrus_reorg): Delete.
3796 (arm_reorg): Don't call cirrus_reorg.
3797 (arm_final_prescan_insn_p): Don't check for cirrus insns.
3798 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
3799 (adddi3, subdi3): Remove Maverick support.
3800 (arm_adddi3): Likewise.
3801 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3802 (addsf3, adddf3): Likewise.
3803 (subsf3, subdf3): Likewise.
3804 (mulsf3, muldf3): Likewise.
3805 (ashldi3, ashrdi3, lshrdi3): Likewise.
3806 (floatsisf2, floatsidf2): Likewise.
3807 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
3808 (arm_movdi, thumb1_movdi_insn): Likewise.
3809 (arm_cmpdi_insn): Likewise.
3810 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
3811 (cirrus.md): Don't include.
3812 * cirrus.md: Delete file.
3813 * t-arm (MD_INCLUDES): Remove cirrus.md.
3815 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
3817 * dwarf2out.c (function_possibly_abstracted_p): New static function.
3818 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
3819 cgraph_function_possibly_inlined_p.
3820 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
3821 (process_scope_var): Do not emit concrete instances of abstracted
3822 nested functions from here.
3823 (gen_decl_die): Emit the abstract instance if the function is possibly
3824 abstracted and not only possibly inlined.
3825 (dwarf2out_finish): Find the first non-abstract parent instance and
3826 attach concrete instances on the limbo list to it.
3828 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
3830 * arm.md (divsf3, divdf3): Remove FPA support.
3831 (negsf2, negdf2): Likewise.
3832 (sqrtsf2, sqrtdf2): Likewise.
3833 (movdfcc): Likewise.
3834 (modsf3, moddf3, movxf): Delete.
3835 (push_fp_multi): Delete.
3836 (fpa.md): Don't include it.
3837 * fpa.md: Delete file.
3838 * t-arm (MD_INCLUDES): Remove fpa.md.
3840 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
3842 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
3843 (cost_for_stmt): Remove decl.
3844 (vect_get_single_scalar_iteration_cost): Correct typo in name.
3845 * tree-vect-loop.c (vect_get_cost): Remove.
3846 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
3847 vect_get_stmt_cost rather than vect_get_cost.
3848 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
3850 (vect_estimate_min_profitable_iters): Correct typo in call to
3851 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
3853 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
3855 (vect_model_induction_cost): Likewise.
3856 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
3857 typo in call to vect_get_single_scalar_iteration_cost.
3858 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
3859 (cost_for_stmt): Remove unnecessary function.
3860 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
3862 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
3864 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
3865 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
3866 * arm-tables.opt: Regenerated.
3867 * doc/invoke.texi: Remove references to deleted options.
3869 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3871 * config/h8300/genmova.sh: Modified to add offset bits of
3872 mova/Sz assembly instruction for memory access.
3873 * config/h8300/h8300.c: Likewise.
3874 * config/h8300/mova.md: Likewise.
3876 2012-06-12 Christian Bruel <christian.bruel@st.com>
3879 * config/sh/sh.c (sh_option_override): Don't force
3880 flag_omit_frame_pointer and maccumulate_outgoing_args.
3881 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
3883 2012-06-14 Richard Guenther <rguenther@suse.de>
3885 * tree-vrp.c (VR_INITIALIZER): New define.
3886 (ranges_from_anti_range): New function.
3887 (extract_range_from_binary_expr_1): Decompose operations on
3888 VR_ANTI_RANGEs to operations on VR_RANGE.
3889 (extract_range_from_unary_expr_1): Likewise.
3890 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
3891 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
3892 extract_range_from_cond_expr, adjust_range_with_scev,
3893 vrp_visit_assignment_or_call, vrp_visit_phi_node,
3894 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
3896 2012-06-13 Richard Henderson <rth@redhat.com>
3898 * hwint.h (HOST_WIDEST_INT_C): New.
3899 (HOST_WIDE_INT_C): New.
3900 (HOST_WIDE_INT_1): Use it.
3901 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
3903 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
3906 * var-tracking.c: Include alias.h.
3907 (overlapping_mems): New struct.
3908 (drop_overlapping_mem_locs): New.
3909 (clobber_overlapping_mems): New.
3910 (var_mem_delete_and_set, var_mem_delete): Call it.
3911 (val_bind): Likewise, but only if modified.
3912 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
3913 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
3915 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
3918 * var-tracking.c (loc_exp_dep_pool): New.
3919 (vt_emit_notes): Create and release the pool.
3920 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
3921 (emit_notes_in_bb): Likewise.
3922 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
3923 (notify_dependents_of_changed_value): Likewise.
3924 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
3925 variables don't have a VAR_LOC_DEP_LST.
3926 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
3927 VALUEs or MEMs of VALUEs.
3929 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
3933 * dce.c (word_dce_process_block): Insert debug temps only if the
3935 (dce_process_block): Likewise, and if debug.used is not empty,
3936 and only after iterating over all DEFs that might mark the insn.
3938 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
3940 * common.opt (ftree-coalesce-inlined-vars): New.
3941 (ftree-coalesce-vars): New.
3942 * doc/invoke.texi: Document them.
3943 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3946 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3948 * read-rtl.c (mapping): Remove index field. Add current_value field.
3949 Define heap vectors.
3950 (iterator_group): Fix long line. Remove num_builtins field and
3951 uses_iterator fields. Make apply_iterator take a void * parameter.
3952 (iterator_use, atttribute_use): New structures.
3953 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
3954 (current_iterators, iterator_uses, attribute_uses): New variables.
3955 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
3956 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
3957 (map_attr_string, apply_iterator_to_string): Remove iterator
3958 and value parameters. Look through all current iterator values
3959 for a matching attribute.
3960 (mode_attr_index, apply_mode_maps): Delete.
3961 (apply_iterator_to_rtx): Replace with...
3962 (copy_rtx_for_iterators): ...this new function.
3963 (uses_iterator_p, apply_iterator_traverse): Delete.
3964 (apply_attribute_uses, add_current_iterators, apply_iterators): New
3966 (add_mapping): Remove index field. Set current_value field.
3967 (initialize_iterators): Don't set num_builtins and uses_iterator_p
3969 (find_iterator): Delete.
3970 (record_iterator_use, record_attribute_use): New functions.
3971 (record_potential_iterator_use): New function.
3972 (check_code_iterator): Remove handling of bellwether codes.
3973 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
3974 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
3975 parameter. Use the first code iterator value instead of the
3976 bellwether_codes array. Use record_potential_iterator_use for modes.
3978 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
3981 * config/sh/sh.md (bswapsi2): New expander.
3982 (swapbsi2): New insn.
3984 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
3987 * config/i386/i386.c (ix86_tune_cost): New variable.
3988 (ix86_option_override_internal): Set ix86_tune_cost. Use
3989 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
3990 l1_cache_size and l2_cache_size.
3992 2012-06-13 Richard Guenther <rguenther@suse.de>
3994 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
3995 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
3996 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
3997 VR_ANTI_RANGE with VR_ANTI_RANGE.
3999 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
4001 * config.gcc (unsupported): Move obsoleted FPA-based configurations
4003 (obsolete): ... here.
4004 (arm*-*-freebsd*): Remove.
4005 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
4006 (arm*-*-uclinux*): Likewise.
4007 (arm*-*-ecos-elf): Remove.
4008 (arm*-*-rtems*): Remove.
4009 (arm*-*-elf): Remove.
4010 (arm*-wince-pe*): Remove.
4011 (arm, --with-fpu): Remove support for fpa and Maverick variants.
4012 * arm/ecos-elf.h: Delete.
4013 * arm/t-strongarm-elf: Delete.
4014 * arm/rtems-elf.h: Delete.
4015 * arm/wince-pe.h: Delete.
4018 * arm/t-wince-pe: Delete.
4020 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
4022 PR tree-optimization/53647
4023 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
4024 targets with no defined cache line size.
4026 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
4028 * targhooks.c (default_builtin_vectorized_conversion): Handle
4029 vec_construct, using vectype to base cost on subparts.
4030 * target.h (enum vect_cost_for_stmt): Add vec_construct.
4031 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
4032 instead of scalar_to-vec.
4033 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
4034 vec_construct in same way as default for now.
4035 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4036 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4037 Handle vec_construct, including special case for 32-bit loads.
4039 2012-06-13 Xinyu Qi <xyqi@marvell.com>
4041 * config/arm/arm.c (FL_IWMMXT2): New define.
4042 (arm_arch_iwmmxt2): New variable.
4043 (arm_option_override): Enable use of iWMMXt with VFP.
4044 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
4045 Thumb mode. Set arm_arch_iwmmxt2.
4046 (arm_expand_binop_builtin): Accept VOIDmode op.
4047 (enum arm_builtins): Revise built-in fcode.
4048 (IWMMXT2_BUILTIN): New define.
4049 (IWMMXT2_BUILTIN2): Likewise.
4050 (iwmmx2_mbuiltin): Likewise.
4051 (builtin_description bdesc_2arg): Revise built in declaration.
4052 (builtin_description bdesc_1arg): Likewise.
4053 (arm_init_iwmmxt_builtins): Revise built in initialization.
4054 (arm_expand_builtin): Revise built in expansion.
4055 (arm_output_iwmmxt_shift_immediate): New function.
4056 (arm_output_iwmmxt_tinsr): Likewise.
4057 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
4058 (arm_output_iwmmxt_tinsr): Likewise.
4059 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
4060 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
4061 (rorv4hi3, rorv2si3, rordi3): Likewise.
4062 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
4063 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
4064 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
4065 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
4066 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
4067 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
4068 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
4069 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
4070 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
4071 (ror<mode>3, ror<mode>3_di): Likewise.
4072 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
4073 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
4074 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
4075 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
4076 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
4077 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
4078 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
4079 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
4080 (All instruction patterns): Add wtype attribute.
4081 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
4082 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
4083 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
4084 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
4085 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
4086 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
4087 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
4088 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
4089 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
4090 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
4091 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
4092 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
4093 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
4094 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
4095 (iwmmxt2.md): Include.
4096 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
4097 (TARGET_IWMMXT2): New define.
4098 (TARGET_REALLY_IWMMXT2): Likewise.
4099 (arm_arch_iwmmxt2): Declare.
4100 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
4101 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
4102 Use C name-mangling for intrinsics.
4104 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
4105 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
4106 (_m_from_int): Likewise.
4107 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
4108 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
4109 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
4110 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
4111 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
4112 (_mm_tbcst_pi32): Likewise.
4113 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
4114 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
4115 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
4116 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
4117 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
4118 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
4119 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
4120 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
4121 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
4122 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
4123 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
4124 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
4125 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
4126 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
4127 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
4128 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
4129 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
4130 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
4131 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
4132 (_m_to_int): New define.
4133 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
4134 * config/arm/arm-arches.def (iwmmxt2): Likewise.
4135 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
4137 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
4138 (arch): Add "iwmmxt2".
4139 (arch_enabled): Handle "iwmmxt2".
4140 (wtype): New attribute.
4141 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
4142 (UNSPEC_WALIGNI): New unspec.
4143 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
4144 * config/arm/iterators.md (VMMX2): New mode_iterator.
4145 * config/arm/marvell-f-iwmmxt.md: New file.
4146 * config/arm/iwmmxt2.md: New file.
4148 2012-06-12 Jakub Jelinek <jakub@redhat.com>
4153 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
4154 if type isn't complete.
4156 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
4158 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
4160 2012-06-12 Richard Henderson <rth@redhat.com>
4162 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
4163 iterator instead of INT.
4165 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
4167 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
4168 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
4170 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
4171 (tree_ssa_phiopt): Call gate_hoist_loads.
4172 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
4173 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
4174 hoist_adjacent_loads.
4175 (local_mem_dependence): New function.
4176 (hoist_adjacent_loads): Likewise.
4177 (gate_hoist_loads): Likewise.
4178 * common.opt (fhoist-adjacent-loads): New switch.
4179 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
4181 2012-06-12 Michael Matz <matz@suse.de>
4183 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
4184 (nonoverlapping_memrefs_p): Don't call it here ...
4185 (true_dependence_1): ... but here.
4187 2012-06-12 Richard Guenther <rguenther@suse.de>
4189 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
4190 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
4191 and MEM_SIZE only refines it. Reflect that and be less conservative
4192 if either of the latter is not known.
4194 2012-06-12 Jakub Jelinek <jakub@redhat.com>
4196 PR rtl-optimization/53589
4197 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
4198 discovery even when e->dest != target. If any LABEL_REF points
4199 to e->dest label, redirect it to target's label.
4201 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
4203 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
4204 condition for generating REG_FRAME_RELATED_EXPR note.
4205 (pop): Add code for generating REG_CFA_RESTORE,
4206 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
4207 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
4208 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
4210 2012-06-11 Richard Henderson <rth@redhat.com>
4212 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
4213 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
4215 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
4217 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
4219 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
4220 Mention that this hook needs to be defined for native TLS.
4221 * doc/tm.texi: Regenerate.
4223 2012-06-11 Mike Stump <mikestump@comcast.net>
4225 * emit-rtl.c (init_emit_once): Iterate through the
4226 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
4227 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
4228 all the MIN_MODE_PARTIAL_INT modes anymore.
4230 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
4232 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
4234 2012-06-11 Roland McGrath <mcgrathr@google.com>
4236 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
4237 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
4238 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
4241 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
4244 * config/sh/sh.md (fmasf4): New expander.
4245 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
4246 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
4247 * config/sh/sh.opt (mfused-madd): Remove.
4248 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
4249 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
4250 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
4252 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
4255 2012-06-11 Richard Henderson <rth@redhat.com>
4257 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
4259 2012-06-11 Richard Guenther <rguenther@suse.de>
4262 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
4263 replace it with the first non-BLOCK context.
4265 2012-06-11 Richard Guenther <rguenther@suse.de>
4267 * alias.c (aliases_everything_p): Remove.
4268 (DIFFERENT_ALIAS_SETS_P): Likewise.
4269 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
4270 Do not use aliases_everything_p or special-case ANDs. Do not
4271 special-case BLKmode moves.
4272 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
4275 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
4277 Fix CRIS build errors with --enable-build-with-cxx.
4278 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
4279 variable "and" to "andop".
4280 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
4281 temporary variable for memory model, passing C++-type-correct
4282 parameter type to expand_mem_thread_fence.
4283 ("atomic_compare_and_swap<mode>"): Ditto.
4285 2012-06-09 Richard Henderson <rth@redhat.com>
4288 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
4289 (pass_jump): Rename from pass_jump2.
4290 (execute_jump2, pass_jump2): New.
4291 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
4292 perform cfg cleanup here. Move the test of PUSH_ROUNDING
4293 and ACCUMULATE_OUTGOING_ARGS test...
4294 (gate_handle_stack_adjustments): ... here.
4295 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
4296 Place new pass_jump2 after pass_stack_adjustments.
4297 * tree-pass.h (pass_jump): Declare.
4299 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
4301 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
4304 2012-06-08 Richard Henderson <rth@redhat.com>
4307 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
4308 note to a clobber insn when no other insn is available.
4310 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
4312 * config/avr/avr.c (avr_case_values_threshold): Return 7.
4314 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
4316 * genhooks.c (main): Set progname.
4317 (emit_documentation): Remove variable found_start, always bail out
4318 when a place is missing.
4319 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
4321 2012-06-07 Jakub Jelinek <jakub@redhat.com>
4324 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
4325 call walk_gimple_seq_mod instead of walk_gimple_seq.
4326 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
4327 scan_omp_for, scan_omp_sections, scan_omp_single,
4328 execute_lower_omp): Adjust callers.
4329 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
4330 returns false, replace stmt with GIMPLE_NOP.
4331 (check_omp_nesting_restrictions): Instead of issuing warnings,
4332 issue errors and return false if any errors were reported.
4334 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4336 * doc/invoke.texi (fconserve-space): Remove documentation.
4338 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
4340 * config/rs6000/rs6000-tables.opt: Regenerated.
4342 2012-06-06 Richard Guenther <rguenther@suse.de>
4344 PR tree-optimization/53081
4345 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
4346 (adjacent_dr_p): ... this and make it work for reads, too.
4347 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
4348 (struct partition_s): Change main_stmt to main_dr, add
4349 secondary_dr member.
4350 (build_size_arg_loc): Change to date data-reference and not
4352 (build_addr_arg_loc): New function split out from ...
4353 (generate_memset_builtin): ... here. Use it and simplify.
4354 (generate_memcpy_builtin): New function.
4355 (generate_code_for_partition): Adjust.
4356 (classify_partition): Streamline pattern detection. Detect memcpy.
4357 (ldist_gen): Adjust.
4358 (tree_loop_distribution): Adjust seed statements for memcpy
4361 2012-06-06 Matt Turner <mattst88@gmail.com>
4363 * config/arm/mmintrin.h (_mm_empty): New.
4366 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
4368 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
4369 * common.opt (fsched-pressure-algorithm=): Remove.
4370 * flag-types.h (sched_pressure_algorithm): Move to...
4371 * sched-int.h (sched_pressure_algorithm): ...here.
4372 * params.def (sched-pressure-algorithm): New param.
4373 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
4374 * common/config/s390/s390-common.c (s390_option_optimization_table):
4375 Remove OPT_fsched_pressure_algorithm_ entry.
4376 * config/s390/s390.c (s390_option_override): Set a default value for
4377 PARAM_SCHED_PRESSURE_ALGORITHM.
4379 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4382 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
4383 doing an unsigned compare, make sure the second argument is not a
4385 (rs6000_emit_cmove): Don't allow floating point comparisons when
4386 generating ISEL moves.
4388 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
4390 * config/rs6000/e5500.md: New file.
4391 * config/rs6000/e6500.md: New file.
4392 * config/rs6000/rs6000.c (processor_costs): Add new costs for
4394 (rs6000_option_override_internal): Altivec and Spe options not
4395 allowed with e5500. Spe options not allowed with e6500. Increase
4396 move inline limit for e5500 and e6500. Disable string instructions
4397 for e5500 and e6500. Enable branch targets alignment for e5500 and
4398 e6500. Initialize rs6000_cost for e5500 and e6500.
4399 (rs6000_adjust_cost): Add extra scheduling cycles between compare
4400 and brnach for e5500 and e6500.
4401 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
4402 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
4404 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
4405 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
4407 Include e5500.md and e6500.md.
4408 * config/rs6000/rs6000-opt.h (processor_type): Add
4409 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
4410 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
4411 (powerpc*-*-*): Add new cores e5500, e6500.
4412 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
4414 2012-06-05 Richard Guenther <rguenther@suse.de>
4416 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
4418 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
4421 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
4422 is used for x86_64-*-*.
4424 2012-06-05 Richard Guenther <rguenther@suse.de>
4426 PR tree-optimization/30442
4427 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
4428 vectorization stop analysis at the first stmt we cannot compute
4429 a data-reference for instead of giving up completely.
4431 2012-06-05 Richard Guenther <rguenther@suse.de>
4433 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
4434 (partition_alloc): Initialize it.
4435 (partition_has_writes): New function.
4436 (rdg_flag_uses): Adjust.
4437 (rdg_flag_vertex): Likewise.
4438 (rdg_flag_vertex_and_dependent): Likewise.
4439 (rdg_flag_loop_exits): Likewise.
4440 (build_rdg_partition_for_component): Likewise.
4441 (rdg_build_partitions): Likewise.
4443 2012-06-05 Richard Guenther <rguenther@suse.de>
4445 PR tree-optimization/53081
4446 * tree-loop-distribution.c (generate_memset_builtin): Handle all
4447 kinds of byte-sized stores.
4448 (classify_partition): Likewise.
4449 (tree_loop_distribution): Adjust seed statements used for
4450 !flag_tree_loop_distribution.
4452 2012-06-05 Alan Modra <amodra@gmail.com>
4454 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
4455 (rs6000_emit_prologue): Ensure register used for inline saves
4456 of vector regs is not the static chain register. Revise comment.
4458 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4460 * doc/md.texi (Standard Pattern Names For Generation): Document
4463 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
4466 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
4468 2012-06-04 Jason Merrill <jason@redhat.com>
4470 * dwarf2out.c (is_unit_die): New.
4471 (copy_declaration_context, copy_ancestor_tree): Use it.
4472 (copy_decls_walk): Likewise.
4474 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
4477 * doc/invoke.texi (Wenum-compare): Update documentation.
4479 2012-06-04 Dodji Seketeli <dodji@redhat.com>
4481 PR preprocessor/53463
4482 * parser.c (cp_parser_assignment_expression): Use the location
4483 for the '=' as the default location for the expression.
4485 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
4488 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
4490 (altivec_stvlxl): Ditto.
4491 (altivec_stvrx): Ditto.
4492 (altivec_stvrxl): Ditto.
4494 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
4496 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
4497 (ira_uniform_class_p): New macro.
4499 * ira.c (setup_uniform_class_p): New function.
4500 (setup_allocno_and_important_classes): Call the function.
4501 (print_unform_and_important_classes): New function.
4502 (print_classes): Rename to print_translated_classes.
4503 (ira_debug_allocno_classes): Add call of
4504 print_unform_and_important_classes.
4506 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
4507 classes instead of pressure classes.
4509 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
4512 * trans-mem.c (expand_block_edges): Do not skip the first
4513 statement when resetting the BB.
4515 2012-06-04 Richard Guenther <rguenther@suse.de>
4517 * tree-data-ref.c (stores_from_loop): Remove.
4518 (stmt_with_adjacent_zero_store_dr_p): Likewise.
4519 (stores_zero_from_loop): Likewise.
4520 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
4521 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
4522 (adjacent_store_dr_p): New function.
4523 * tree-loop-distribution.c (generate_memset_builtin): Pass
4524 the RDG, use the already available data-reference.
4525 (generate_code_for_partition): Pass down RDG.
4526 (classify_partition): Inline parts of the former
4527 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
4528 (ldist_gen): Remember if there was any detected builtin and
4529 do less work if not and flag_tree_loop_distribution is not set.
4530 (tree_loop_distribution): Inline and fuse stores_from_loop
4531 and stores_zero_from_loop here.
4533 2012-06-04 Richard Guenther <rguenther@suse.de>
4536 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
4537 create new assembler names.
4539 2012-06-04 Richard Guenther <rguenther@suse.de>
4541 * tree-data-ref.c (struct rdg_vertex_info): Remove.
4542 (rdg_vertex_for_stmt): Simplify using gimple_uid.
4543 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
4544 hashtable. Record stmt data-references.
4545 (hash_stmt_vertex_info): Remove.
4546 (eq_stmt_vertex_info): Likewise.
4547 (hash_stmt_vertex_del): Likewise.
4548 (build_empty_rdg): Simplify.
4549 (build_rdg): Adjust.
4550 (free_rdg): Likewise.
4551 (ref_base_address): Remove.
4552 (have_similar_memory_accesses): Likewise.
4553 * tree-data-ref.h (create_rdg_vertices): Remove.
4554 (struct rdg_vertex): Add datarefs member.
4555 (RDGV_DATAREFS): New define.
4556 (RDG_DATAREFS): Likewise.
4557 (have_similar_memory_accesses): Remove.
4558 (rdg_has_similar_memory_accesses): Likewise.
4559 * tree-loop-distribution.c (ref_base_address): Re-implement here.
4560 (similar_memory_accesses): Re-implement using existing data-references.
4561 (tree_loop_distribution): Initialize stmt uids for the stmt to
4563 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
4564 access stmt vinfo for stmts in loop.
4566 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
4569 * config/m68k/m68k.md ("tablejump"): Fix check for
4570 CASE_VECTOR_PC_RELATIVE.
4572 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4574 * output.h (merge_weak, assemble_alias,
4575 initializer_constant_valid_p,
4576 initializer_constant_valid_for_bitfield_p): Move protos from here...
4577 * tree.h: ... to here.
4578 * cgraphclones.c: Do not include output.h.
4579 * gimplify.c: Likewise.
4580 * reload.c: Likewise.
4581 * recog.c: Likewise.
4582 * tree-ssa-loop-ivopts.c: Likewise.
4583 * tree-switch-conversion.c: Likewise.
4584 * c-parser.c: Likewise.
4585 * c-typeck.c: Likewise.
4586 * Makefile.in: Fix dependencies.
4588 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
4591 * config/avr/avr-stdint.h: New file.
4592 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
4595 2012-06-04 Jakub Jelinek <jakub@redhat.com>
4597 PR tree-optimization/53550
4598 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
4599 is POINTER_TYPE_P, use sizetype as step type instead of type.
4601 2012-06-04 Richard Guenther <rguenther@suse.de>
4603 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
4604 (ref_base_address_1): Likewise.
4605 (remove_similar_memory_refs): Likewise.
4606 * tree-data-ref.h (remove_similar_memory_refs): Remove.
4607 * tree-loop-distribution.c (classify_partition): Do not classify
4608 as builtin if -ftree-loop-distribute-patterns is not enabled.
4609 (fuse_partitions_with_similar_memory_accesses): Inline ...
4610 (ldist_gen): ... here. Fuse all non-builtin partitions if
4611 -ftree-loop-distribution is not enabled. Properly return
4612 the number of created partitions. Do not update SSA form here but ...
4613 (tree_loop_distribution): ... once here for the whole function.
4614 Only walk innermost loops, constrain loops we consider here
4615 further. Do not call remove_similar_memory_refs.
4616 (distribute_loop): Do not check number of loop nodes here.
4618 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4620 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
4622 2012-06-03 Martin Jambor <mjambor@suse.cz>
4624 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
4625 (ipa_get_jf_known_type_base_type): Likewise.
4626 (ipa_get_jf_known_type_component_type): Likewise.
4627 (ipa_get_jf_constant): Likewise.
4628 (ipa_get_jf_pass_through_formal_id): Likewise.
4629 (ipa_get_jf_pass_through_operation): Likewise.
4630 (ipa_get_jf_ancestor_offset): Likewise.
4631 (ipa_get_jf_ancestor_type): Likewise.
4632 (ipa_get_jf_ancestor_formal_id): Likewise.
4633 (ipa_get_jf_member_ptr_pfn): Likewise.
4634 * ipa-prop.c (ipa_set_jf_known_type): New function.
4635 (ipa_set_jf_constant): Likewise.
4636 (ipa_set_jf_simple_pass_through): Likewise.
4637 (ipa_set_jf_arith_pass_through): Likewise.
4638 (ipa_set_ancestor_jf): Likewise.
4639 (fill_member_ptr_cst_jump_function): Moved up and renamed to
4640 ipa_set_jf_member_ptr_cst.
4641 (detect_type_change_1): Use the new jump function creation functions.
4642 (compute_complex_assign_jump_func): Likewise.
4643 (compute_complex_ancestor_jump_func): Likewise.
4644 (compute_known_type_jump_func): Likewise.
4645 (compute_scalar_jump_functions): Likewise.
4646 (compute_pass_through_member_ptrs): Likewise.
4647 (determine_cst_member_ptr): Likewise.
4648 (combine_known_type_and_ancestor_jfs): Likewise.
4649 (try_make_edge_direct_simple_call): Likewise.
4650 (try_make_edge_direct_virtual_call): Likewise.
4651 (update_indirect_edges_after_inlining): Likewise.
4652 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
4653 access functions. Incorporat NOP_EXPR and BINFO handling from its
4655 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
4656 which was in its callers.
4657 (ipa_value_from_jfunc): Use jump function access functions. Some
4658 functionality moved to functions above.
4659 (propagate_vals_accross_ancestor): Likewise.
4660 (propagate_vals_accross_pass_through): Use jump function access
4662 (propagate_accross_jump_function): Likewise.
4663 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
4665 (inline_merge_summary): Likewise.
4667 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4669 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
4670 * config/pa/pa.c (pa_attr_length_millicode_call): Use
4671 MAX_PCREL17F_OFFSET instead of fixed offset.
4672 (pa_attr_length_call): Likewise.
4673 (pa_attr_length_indirect_call): Likewise.
4675 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
4678 * config/sh/sh.opt (mfsca, mfsrra): New options.
4679 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
4681 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
4682 (sinssf2, cossf2): Fold expanders to ...
4683 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
4684 TARGET_FSCA condition.
4685 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
4687 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
4688 -mno-fsca, -mfsrra, -mno-fsrra.
4690 2012-06-03 Matt Turner <mattst88@gmail.com>
4692 * config/mips/4600.md (r4700_imul_si): New.
4693 (r4700_imul_di): New.
4694 (r4700_fmul_single): New.
4695 (r4700_fmul_double): New.
4696 * config/mips/mips-cpus.def: Add r4700.
4697 * config/mips/mips.c: Likewise.
4698 * config/mips/mips.md: Likewise.
4699 * config/mips/mips-tables.opt: Regenerate.
4701 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
4703 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
4704 new function sparc_initial_elimination_offset.
4705 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
4707 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
4710 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
4712 * expmed.c (expand_mult, choose_multiplier): Change
4713 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
4714 * expr.c (convert_modes): Likewise.
4715 * explow.c (plus_constant): Likewise.
4716 * fixed-value.c (fixed_saturate1, fixed_saturate2)
4717 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
4718 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
4719 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
4720 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
4721 (do_fixed_shift, fixed_convert, fixed_convert)
4722 (fixed_convert_from_int, fixed_convert_from_int)
4723 (fixed_convert_from_real): Likewise.
4724 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
4725 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
4726 * varasm.c (output_constructor_bitfield): Likewise.
4727 * tree-vrp.c (register_edge_assert_for_2): Likewise.
4728 * double-int.c (rshift_double, lshift_double): Likewise.
4729 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
4731 * simplify-rtx.c (mode_signbit_p)
4732 (simplify_const_unary_operation, simplify_binary_operation_1)
4733 (simplify_immed_subreg): Likewise.
4734 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
4735 * tree-vect-generic.c (build_replicated_const): Likewise.
4736 * dbxout.c (stabstr_O): Likewise.
4737 * emit-rtl.c (immed_double_int_const, immed_double_const)
4738 (gen_lowpart_common, init_emit_once): Likewise.
4739 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
4740 (widest_int_cst_value, upper_bound_in_type): Likewise.
4741 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
4742 (fixup_unsigned_type): Likewise.
4743 * real.c (real_to_integer2, real_from_integer): Likewise.
4744 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
4745 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
4747 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
4750 * fold-const.c (fold_binary_loc): Refine previous change.
4752 2012-06-01 Olivier Hainque <hainque@adacore.com>
4754 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
4755 the "do {" part of the do-while(0) loop.
4757 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
4759 * config/i386/i386.c (x86_sched_reorder): New function.
4760 Added new function x86_sched_reorder.
4762 2012-06-01 Richard Guenther <rguenther@suse.de>
4764 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4766 (classify_partition): Likewise.
4768 2012-06-01 Richard Guenther <rguenther@suse.de>
4770 * tree-loop-distribution.c (enum partition_kind): New enum.
4771 (struct partition_s): Add kind and main_stmt members.
4772 (partition_alloc): Initialize kind to PKIND_NORMAL.
4773 (partition_builtin_p): New function.
4774 (copy_loop_before): Remove failure path and assert instead.
4775 (generate_loops_for_partition): Likewise.
4776 (generate_memset_zero): Fold into ...
4777 (generate_memset_builtin): ... this.
4778 (classify_partition): New function with code from
4779 can_generate_builtin and generate_builtin.
4780 (generate_builtin): Remove.
4781 (can_generate_builtin): Likewise.
4782 (fuse_partitions_with_similar_memory_accesses): Call
4783 partition_builtin_p instead of can_generate_builtin.
4784 (rdg_build_partitions): Do not call
4785 fuse_partitions_with_similar_memory_accesses here...
4786 (ldist_gen): ... but here after classifying all partitions.
4787 Remove failure path of generate_code_for_partition.
4788 (generate_code_for_partition): Generate code according
4789 to partition classification.
4791 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
4792 Jonathan Wakely <jwakely.gcc@gmail.com>
4795 * doc/invoke.texi (Warning Options): Explain purpose and differences
4796 between -Wmissing-prototypes and -Wmissing-declarations.
4798 2012-06-01 Christian Bruel <christian.bruel@st.com>
4800 * gcc.c (save_switch): Add user_p parameter.
4801 (read_specs): Likewise.
4802 (set_specs): Likewise.
4803 (validate_switches): Likewise.
4804 (validate_switches_from_spec): Likewise.
4805 (validate_all_switches): Pass on user_p parameter.
4806 (struct spec_list): Add user_p field.
4807 (struct switchstr): Add known field.
4808 (save_switch): Add known parameter.
4809 (INIT_STATIC_SPEC): Initialize user_p;
4810 (driver_unknown_option_callbac): call save_switch if
4811 OPT_SPECIAL_unknown.
4812 (driver_handle_option): Propagate OPT_specs.
4813 (do_spec_1): Set validated only if known.
4814 (check_live_switch): Likewise.
4815 (validate_switches): Set validated if known or user_spec.
4817 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
4819 Add CRIS atomic patterns for 1, 2, and 4 bytes.
4820 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
4821 * config/cris/cris-protos.h: Declare it.
4822 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
4823 (TARGET_DEFAULT): Add alignment by 32.
4824 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
4825 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
4826 TARGET_CPU_DEFAULT == 32.
4827 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
4828 * config/cris/cris.md: Include sync.md. Avoid allocating specific
4829 numbers by replacing the define_constants for all UNSPECs with the
4830 equivalent define_c_enum construct.
4831 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
4832 * config/cris/sync.md: New file.
4834 2012-05-31 Matt Turner <mattst88@gmail.com>
4836 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
4837 (r4600_imul_di): New.
4838 (r4600_idiv_si): Rename from r4600_idiv.
4839 (r4600_idiv_di): New.
4841 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4843 * output.h (__gcc_host_wide_int__): Move to hwint.h.
4844 (decl_default_tls_model): Move to tree.h
4845 (dump_file): Move to system.h.
4846 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
4847 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
4848 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
4849 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
4850 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
4851 dbxout_stab_value_internal_label,
4852 dbxout_stab_value_internal_label_diff): Move from here ...
4853 * dbxout.h: ... to here.
4854 * system.h (dump_file): Moved here from output.h.
4855 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
4856 * tree.h (decl_default_tls_model): Moved here from output.h.
4857 * varasm.c (default_stabs_asm_out_destructor,
4858 default_stabs_asm_out_constructor): Move from here ...
4859 * dbxout.c: ... to here.
4861 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
4863 * collect2.h (dump_file): Rename to dump_ld_file.
4864 * collect2.c: Likewise.
4865 * tlink.c: Likewise.
4867 * alias.c: Do not include output.h.
4868 * auto-inc-dec.c: Likewise.
4869 * bt-load.c: Likewise.
4870 * caller-save.c: Likewise.
4872 * cfgbuild.c: Likewise.
4873 * cfgcleanup.c: Likewise.
4874 * cfglayout.c: Likewise.
4875 * cfgloop.c: Likewise.
4876 * cfgloopanal.c: Likewise.
4877 * cfgloopmanip.c: Likewise.
4878 * cfgrtl.c: Likewise.
4879 * cgraph.c: Likewise.
4880 * cgraphclones.c: Likewise.
4881 * combine-stack-adj.c: Likewise.
4882 * combine.c: Likewise.
4883 * cprop.c: Likewise.
4885 * cselib.c: Likewise.
4886 * dbgcnt.c: Likewise.
4887 * df-problems.c: Likewise.
4888 * df-scan.c: Likewise.
4889 * dojump.c: Likewise.
4890 * fwprop.c: Likewise.
4892 * graph.c: Likewise.
4893 * haifa-sched.c: Likewise.
4894 * hw-doloop.c: Likewise.
4895 * ipa-inline-transform.c: Likewise.
4896 * ipa-pure-const.c: Likewise.
4897 * ipa-reference.c: Likewise.
4898 * ipa-utils.c: Likewise.
4899 * ira-build.c: Likewise.
4900 * ira-emit.c: Likewise.
4902 * loop-doloop.c: Likewise.
4903 * loop-invariant.c: Likewise.
4904 * loop-iv.c: Likewise.
4905 * loop-unroll.c: Likewise.
4906 * loop-unswitch.c: Likewise.
4907 * lto-cgraph.c: Likewise.
4908 * lto-section-in.c: Likewise.
4909 * lto-streamer-in.c: Likewise.
4911 * mode-switching.c: Likewise.
4912 * postreload-gcse.c: Likewise.
4913 * postreload.c: Likewise.
4914 * predict.c: Likewise.
4915 * profile.c: Likewise.
4917 * reg-stack.c: Likewise.
4918 * regcprop.c: Likewise.
4919 * regmove.c: Likewise.
4920 * regstat.c: Likewise.
4921 * reload1.c: Likewise.
4922 * sched-ebb.c: Likewise.
4923 * sel-sched-dump.c: Likewise.
4924 * simplify-rtx.c: Likewise.
4925 * stor-layout.c: Likewise.
4926 * store-motion.c: Likewise.
4927 * tracer.c: Likewise.
4928 * tree-affine.c: Likewise.
4929 * tree-cfg.c: Likewise.
4930 * tree-cfgcleanup.c: Likewise.
4931 * tree-dfa.c: Likewise.
4932 * tree-into-ssa.c: Likewise.
4933 * tree-nomudflap.c: Likewise.
4934 * tree-optimize.c: Likewise.
4935 * tree-pretty-print.c: Likewise.
4936 * tree-profile.c: Likewise.
4937 * tree-ssa-address.c: Likewise.
4938 * tree-ssa-ccp.c: Likewise.
4939 * tree-ssa-copy.c: Likewise.
4940 * tree-ssa-dom.c: Likewise.
4941 * tree-ssa-loop-ch.c: Likewise.
4942 * tree-ssa-loop-im.c: Likewise.
4943 * tree-ssa-loop-manip.c: Likewise.
4944 * tree-ssa-loop-niter.c: Likewise.
4945 * tree-ssa-loop-prefetch.c: Likewise.
4946 * tree-ssa-loop-unswitch.c: Likewise.
4947 * tree-ssa-loop.c: Likewise.
4948 * tree-ssa-propagate.c: Likewise.
4949 * tree-ssa-structalias.c: Likewise.
4950 * tree-ssa-tail-merge.c: Likewise.
4951 * tree-ssa-threadedge.c: Likewise.
4952 * tree-ssa-threadupdate.c: Likewise.
4953 * tree-ssa-uncprop.c: Likewise.
4954 * tree-ssa-uninit.c: Likewise.
4955 * tree-ssa.c: Likewise.
4956 * value-prof.c: Likewise.
4957 * var-tracking.c: Likewise.
4960 * config/m32r/m32r.c: Include dbxout.h.
4961 * config/pa/pa.c: Likewise.
4962 * config/rs6000/rs6000.c: Likewise.
4964 * Makefile.in: Fix dependencies.
4965 * config/rs6000/t-rs5000: Likewise.
4967 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
4969 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
4970 * gimple.h (block_in_transaction): Check for flag_tm.
4972 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
4974 PR tree-optimization/52558
4975 * cfg.c (alloc_aux_for_edge): Fix comment.
4976 (alloc_aux_for_edge): Remove static.
4977 * basic-block.h (alloc_aux_for_edge): Protoize.
4978 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
4979 (execute_sm_if_changed_flag): New.
4980 (execute_sm_if_changed_flag_set): New.
4981 (execute_sm): Do not generate data races unless requested.
4982 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
4983 (tree_ssa_lim_finalize): Call free_aux_for_edges.
4984 * gimple.h (block_in_transaction): New.
4985 (gimple_in_transaction): Use block_in_transaction.
4987 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
4990 * config/avr/avr.opt (-msp8): Document it.
4991 * doc/invoke.texi (AVR Options): Ditto. And document related
4994 2012-05-31 Diego Novillo <dnovillo@google.com>
4996 * configure.ac (CXX_FOR_BUILD): Define and substitute.
4997 (BUILD_CXXFLAGS): Define and substitute.
4998 * Makefile.in (BUILD_CXXFLAGS): Define.
4999 (CXX_FOR_BUILD): Define.
5000 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
5001 (LINKER_FOR_BUILD): Likewise.
5002 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
5003 (BUILD_LINKERFLAGS): Likewise.
5004 * configure: Regenerate.
5006 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5008 * Makefile.in: Fix many dependencies.
5009 * tree-profile.c: Don't include regs.h.
5010 * tree-vectorizer.c: Don't include cfglayout.h.
5011 * tree-vect-stmts.c: Likewise.
5012 * tree-vect-slp.c: Likewise.
5013 * tree-vect-loop.c: Likewise.
5014 * reg-stack.c: Likewise.
5015 * tree-ssa-loop-manip.c: Likewise.
5016 * toplev.c: Likewise.
5017 * varasm.c: Don't include cfglayout.h, basic-block.h,
5018 and tree-iterator.h.
5019 * tree-cfgcleanup.c: Don't include cfglayout.h.
5020 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
5021 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
5022 * cgraphclones.c: Don't include plugin.h.
5024 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5026 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
5027 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
5028 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
5030 2012-05-31 Richard Guenther <rguenther@suse.de>
5032 * tree-loop-distribution.c (struct partition_s): New struct,
5033 typedef and vector type.
5034 (partition_alloc, partition_free): New functions.
5035 (generate_loops_for_partition, generate_builtin,
5036 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
5037 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
5038 build_rdg_partition_for_component, can_generate_builtin,
5039 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
5040 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
5041 number_of_rw_in_partition, partition_contains_all_rw,
5042 ldist_gen): Use partition_t instead of bitmap.
5044 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5046 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
5047 * doc/avr-mmcu.texi: Regenerate.
5049 2012-05-31 Richard Guenther <rguenther@suse.de>
5051 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
5052 Use FOR_EACH_SSA_DEF_OPERAND.
5053 (generate_builtin): Adjust.
5054 (stmt_generated_in_another_partition): Remove.
5055 (add_scalar_computations_to_partition): Likewise.
5056 (rdg_build_partitions): Do not call
5057 add_scalar_computations_to_partition.
5059 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
5061 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
5062 double ints throughout.
5063 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
5064 Check that the position of the field is representable as an integer.
5066 2012-05-31 Richard Guenther <rguenther@suse.de>
5068 * tree-data-ref.c (dr_analyze_innermost): Properly convert
5069 the MEM_REF offset to sizetype.
5071 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5073 * doc/invoke.texi (AVR Options): Fix typos.
5075 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
5077 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
5079 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
5080 non-v32 into --march=v0_v10.
5082 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5084 * ira-int.h (target_ira_int): Rename x_move_cost to
5085 x_ira_register_move_cost, x_may_move_in_cost to
5086 x_ira_may_move_in_cost and x_may_move_out_cost to
5087 x_ira_may_move_out_cost. Delete the old fields with
5088 those names and also x_ira_max_register_move_cost,
5089 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
5090 (move_cost, may_move_in_cost, may_move_out_cost)
5091 (ira_max_register_move_cost, ira_max_may_move_in_cost)
5092 (ira_max_may_move_out_cost): Delete.
5093 * ira.c (init_move_cost): Rename to...
5094 (ira_init_register_move_cost): ...this, deleting the old
5095 function with that name. Apply above variable renamings.
5096 Retain asserts for null fields.
5097 (ira_init_once): Don't initialize register move costs here.
5098 (free_register_move_costs): Apply above variable renamings.
5099 Remove code for deleted fields.
5101 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5103 * ira.c (init_move_cost): Adjust choice of subclasses to match
5104 the current ira_init_register_move_cost choice. Use
5105 ira_class_subset_p instead of reg_class_subset_p.
5106 (ira_init_register_move_cost): Assert that move_cost,
5107 may_move_in_cost and may_move_out_cost already hold the desired
5108 values for their ira_* equivalents. For the latter two,
5109 ignore classes that can't store a register of the given mode.
5111 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5113 * ira.c (setup_allocno_and_important_classes): Use
5114 ira_class_hard_regs_num to check whether a class has any
5115 allocatable registers.
5116 (ira_init_register_move_cost): Likewise.
5118 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5120 * ira.c (init_move_cost): Adjust local variable names to match
5121 file conventions. Use ira_assert instead of gcc_assert.
5123 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5125 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
5126 Move these definitions and associated target_globals fields to...
5127 * ira-int.h: ...here.
5128 * rtl.h (init_move_cost): Delete.
5129 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
5130 * ira.c: ...here, making the latter static.
5132 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5134 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
5135 and ira_register_move_cost instead of init_move_cost and move_cost.
5137 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5139 * ira.h (target_ira): Delete x_ira_available_class_regs.
5140 (ira_available_class_regs): Delete.
5141 * ira.c (setup_available_class_regs): Delete.
5142 (setup_alloc_classes): Don't call it.
5143 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
5144 ira_available_class_regs.
5145 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
5146 (model_spill_cost): Likewise.
5147 * ira-build.c (low_pressure_loop_node_p): Likewise.
5148 * ira-color.c (color_pass): Likewise.
5149 * ira-emit.c (change_loop): Likewise.
5150 * ira-lives.c (inc_register_pressure, dec_register_pressure)
5151 (single_reg_class, ira_implicitly_set_insn_hard_regs)
5152 (process_bb_node_lives): Likewise.
5153 * loop-invariant.c (gain_for_invariant): Likewise.
5155 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5158 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
5159 (pa_section_type_flags): New.
5160 (pa_legitimate_constant_p): Revert previous change.
5162 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
5164 * ira.c (allocate_initial_values): Make static.
5166 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
5168 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
5169 Generate tls_initial_exec_64_sun only when !TARGET_X32.
5171 2012-05-30 Richard Guenther <rguenther@suse.de>
5174 * fold-const.c (fold_binary_loc): Make sure to call
5175 fold_plusminus_mult_expr with the original sign of operands.
5177 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
5179 * Makefile.in: Fix many dependencies.
5180 (DWARF2_H): Depend on dwarf2.def.
5181 (RTL_ERROR_H): Depend on rtl-error.h.
5182 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
5183 all gimple-pretty-print.h and tree-pretty-print.h references.
5185 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
5187 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
5190 2012-05-30 Richard Guenther <rguenther@suse.de>
5193 * tree-emutls.c (gen_emutls_addr): Do not add globals to
5196 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
5198 * explow.c (probe_stack_range): Restore simple control flow and stop
5199 again when the probe cannot be generated if HAVE_check_stack.
5201 2012-05-30 Jakub Jelinek <jakub@redhat.com>
5203 PR rtl-optimization/53519
5204 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
5205 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
5207 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5209 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
5211 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
5214 * doc/tm.texi: Update.
5215 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
5216 * target.def (force_at_comp_dir): New hook.
5217 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
5218 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
5220 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
5222 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
5224 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
5225 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
5227 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
5230 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
5231 flag_unsafe_math_optimizations is set.
5232 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
5233 Update description of -mfused-madd.
5235 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
5238 * config/sh/predicates.md (atomic_arith_operand,
5239 atomic_logical_operand): New predicates.
5240 * config/sh/sh.c (sh_option_override): Check atomic options.
5241 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
5242 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
5243 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
5244 UNSUPPORTED_HARD_ATOMIC_CPU.
5245 * config/sh/sync.md: Update description comments.
5246 (I12): New mode iterator.
5247 (fetchop_predicate, fetchop_constraint): New code attributes.
5248 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
5249 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
5250 atomic_fetch_<fetchop_name>si_hard,
5251 atomic_fetch_<fetchop_name><mode>_hard,
5252 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
5253 atomic_<fetchop_name>_fetchsi_hard,
5254 atomic_<fetchop_name>_fetch<mode>_hard,
5255 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
5256 atomic_test_and_set_hard): New insns.
5257 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
5258 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
5259 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
5260 atomic_test_and_set_soft): Use same formatting for the first line of
5261 the asm block as in new insns above.
5262 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
5263 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
5264 atomic_test_and_set): Integrate new *_hard insns into expanders.
5265 * config/sh/sh.opt (mhard-atomic): New option.
5266 * doc/invoke.texi (SH Options): Document it.
5268 2012-05-29 Meador Inge <meadori@codesourcery.com>
5270 * c-decl.c (c_push_function_context): Always create a new language
5272 (c_pop_function_context): Clear the language function created in
5273 c_push_function_context.
5275 2012-05-29 Matt Turner <mattst88@gmail.com>
5277 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
5278 (define_bypass "ev6_fcmov"): New.
5280 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
5282 * integrate.c: Remove.
5283 * integrate.h: Remove.
5284 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
5285 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
5286 * config/rs6000/t-rs6000: Likewise
5287 * config/spu/t-spu-elf: Likewise.
5288 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
5289 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
5290 from integrate.h to here.
5291 (initial_value_entry): New prototype.
5292 * reload.h (allocate_initial_values): Remove prototype.
5293 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
5294 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
5296 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
5297 set_decl_abstract_flags, set_block_abstract_flags): Move from
5298 integrate.c to here, the only user.
5299 * expmed.c (extract_fixed_bit_field): Remove outdated comment
5301 * function.c: Don't include integrate.h.
5302 (struct initial_value_pair, struct initial_value_struct,
5303 get_hard_reg_initial_val, has_hard_reg_initial_val,
5304 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
5305 integrate.c to here.
5306 (initial_value_entry): New function.
5307 * genemit.c (main): Don't print integrate.h include line.
5308 * ira.c: Don't include integrate.h.
5309 (allocate_initial_values): Move from integrate.c to here.
5310 (ira): Update allocate_initial_values call.
5311 * tree-inline.c: Don't include integrate.h.
5312 (function_attribute_inlinable_p): Moved from integrate.c to here.
5313 * cfgexpand.c: Don't include integrate.h.
5314 * except.c: Likewise.
5315 * langhooks.c: Likewise.
5316 * passes.c: Likewise.
5317 * toplev.c: Likewise.
5318 * config/frv/frv.c: Likewise.
5319 * config/pa/pa.c: Likewise.
5320 * config/spu/spu.c: Likewise.
5321 * config/epiphany/epiphany.c: Likewise.
5322 * config/mep/mep.c: Likewise.
5323 * config/score/score.c: Likewise.
5324 * config/picochip/picochip.c: Likewise.
5325 * config/sh/sh.c: Likewise.
5326 * config/alpha/alpha.c: Likewise.
5327 * config/microblaze/microblaze.c: Likewise.
5328 * config/mips/mips.c: Likewise.
5329 * config/v850/v850.c: Likewise.
5330 * config/mmix/mmix.c: Likewise.
5331 * config/bfin/bfin.c: Likewise.
5332 * config/arm/arm.c: Likewise.
5333 * config/s390/s390.c: Likewise.
5334 * config/m32r/m32r.c: Likewise.
5335 * config/rs6000/rs6000.c: Likewise.
5336 * config/c6x/c6x.c: Include function.h instead of integrate.h.
5337 * config/tilegx/tilegx.c: Likewise.
5338 * config/tilepro/tilepro.c: Likewise.
5340 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
5342 * config/avr/t-avr (s-avr-mmcu-texi): Call
5343 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
5345 2012-05-29 Michael Matz <matz@suse.de>
5347 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
5348 assign_temp): Remove 'keep' argument.
5349 (mark_temp_addr_taken): Remove prototype.
5350 * tree.h (expand_decl): Remove prototype.
5351 * function.c (struct temp_slot): Remove addr_taken and keep member.
5352 (assign_stack_temp_for_type) Don't initialize above, remove
5354 (assign_stack_temp, assign_temp): Remove keep argument.
5355 (mark_temp_addr_taken): Remove.
5356 (preserve_temp_slots): Remove handling of addr_taken and keep members.
5357 (free_temp_slots): Ditto.
5358 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
5360 * stmt.c (expand_asm_operands): Remove dead code.
5361 (expand_decl): Remove.
5362 * c-decl.c (finish_struct): Don't call expand_decl.
5363 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
5364 and assign_stack_temp.
5365 * calls.c (save_fixed_argument_area, initialize_argument_information,
5366 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
5367 * expmed.c (extract_bit_field_1): Ditto.
5368 * expr.c (emit_group_load_1, emit_group_store,
5369 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
5370 store_field, expand_constructor, expand_cond_expr_using_cmove,
5371 expand_expr_real_2, expand_expr_real_1): Ditto.
5372 * stmt.c (expand_asm_operands, expand_return): Ditto.
5374 * function.c (pop_temp_slots): Call free_temp_slots.
5375 * calls.c (store_one_arg): Don't call preserve_temp_slots or
5377 * expr.c (expand_assignment): Don't call free_temp_slots.
5379 * config/arm/arm.c (neon_expand_vector_init): Ditto.
5380 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
5381 (ix86_expand_vector_extract): Ditto.
5382 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
5383 ia64_expand_movxf_movrf): Ditto.
5384 * config/mips/mips.c (mips_expand_vi_general): Ditto.
5385 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
5386 extendsfdf2): Ditto.
5387 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
5388 rs6000_expand_vector_set, rs6000_expand_vector_extract,
5389 rs6000_allocate_stack_temp): Ditto.
5390 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
5391 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5392 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
5393 sparc_expand_vector_init): Ditto.
5395 2012-05-29 Michael Matz <matz@suse.de>
5397 * c-tree.h (c_expand_decl): Remove prototype.
5399 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
5401 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
5402 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
5403 COMPOUND_LITERAL_EXPR.
5404 * function.c (expand_function_start): Don't call expand_decl,
5405 instead assert that we have RTL assigned.
5406 * tree-ssa-live.c (remove_unused_locals): Clear
5407 nonlocal_goto_save_area if its backing variable is removed.
5408 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
5410 (expand_decl): Assert that this does nothing.
5411 * calls.c (expand_call): Don't call mark_temp_addr_taken.
5413 2012-05-29 Richard Guenther <rguenther@suse.de>
5415 PR tree-optimization/53516
5416 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
5418 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5420 2012-05-29 Joseph Myers <joseph@codesourcery.com>
5422 * LANGUAGES: Fix typos.
5423 * Makefile.in: Fix typos.
5424 * alias.c: Fix typos.
5425 * auto-inc-dec.c: Fix typos.
5426 * bb-reorder.c: Fix typos.
5427 * cfgcleanup.c: Fix typos.
5428 * cgraph.c: Fix typos.
5429 * cgraph.h: Fix typos.
5430 * cgraphunit.c: Fix typos.
5431 * collect2-aix.h: Fix typos.
5432 * collect2.c: Fix typos.
5433 * compare-elim.c: Fix typos.
5434 * config/alpha/vms.h: Fix typos.
5435 * config/arm/README-interworking: Fix typos.
5436 * config/arm/arm.c: Fix typos.
5437 * config/arm/iterators.md: Fix typos.
5438 * config/arm/vxworks.h: Fix typos.
5439 * config/avr/avr.c: Fix typos.
5440 * config/avr/avr.h: Fix typos.
5441 * config/avr/avr.md: Fix typos.
5442 * config/avr/builtins.def: Fix typos.
5443 * config/c6x/c6x.c: Fix typos.
5444 * config/cr16/cr16.c: Fix typos.
5445 * config/cr16/cr16.md: Fix typos.
5446 * config/cris/cris.md: Fix typos.
5447 * config/darwin.c: Fix typos.
5448 * config/darwin.opt: Fix typos.
5449 * config/i386/i386-c.c: Fix typos.
5450 * config/i386/i386.c: Fix typos.
5451 * config/ia64/ia64.c: Fix typos.
5452 * config/m68k/cf.md: Fix typos.
5453 * config/mep/mep.c: Fix typos.
5454 * config/microblaze/microblaze.c: Fix typos.
5455 * config/microblaze/microblaze.h: Fix typos.
5456 * config/mn10300/mn10300.c: Fix typos.
5457 * config/mn10300/mn10300.md: Fix typos.
5458 * config/pa/pa.c: Fix typos.
5459 * config/picochip/picochip.h: Fix typos.
5460 * config/rs6000/a2.md: Fix typos.
5461 * config/rs6000/rs6000.c: Fix typos.
5462 * config/rs6000/vector.md: Fix typos.
5463 * config/rx/rx.md: Fix typos.
5464 * config/rx/rx.opt: Fix typos.
5465 * config/s390/2097.md: Fix typos.
5466 * config/s390/s390.c: Fix typos.
5467 * config/s390/s390.h: Fix typos.
5468 * config/sh/sh.c: Fix typos.
5469 * config/sh/sh.md: Fix typos.
5470 * config/sparc/sync.md: Fix typos.
5471 * config/spu/spu.c: Fix typos.
5472 * config/spu/spu.md: Fix typos.
5473 * config/vms/vms.c: Fix typos.
5474 * config/vxworks-dummy.h: Fix typos.
5475 * config/vxworks.h: Fix typos.
5476 * cselib.c: Fix typos.
5477 * df-scan.c: Fix typos.
5479 * doc/extend.texi: Fix typos.
5480 * doc/install.texi: Fix typos.
5481 * doc/invoke.texi: Fix typos.
5482 * doc/md.texi: Fix typos.
5483 * doc/plugins.texi: Fix typos.
5484 * doc/rtl.texi: Fix typos.
5486 * dwarf2asm.c: Fix typos.
5487 * dwarf2out.c: Fix typos.
5488 * except.h: Fix typos.
5489 * expr.c: Fix typos.
5490 * fold-const.c: Fix typos.
5492 * gcse.c: Fix typos.
5493 * genautomata.c: Fix typos.
5494 * gengtype-state.c: Fix typos.
5495 * gengtype.c: Fix typos.
5496 * genhooks.c: Fix typos.
5497 * gimple-fold.c: Fix typos.
5498 * gimple-pretty-print.c: Fix typos.
5499 * gimple.c: Fix typos.
5500 * gimple.h: Fix typos.
5501 * gimplify.c: Fix typos.
5502 * graphite-interchange.c: Fix typos.
5503 * graphite-sese-to-poly.c: Fix typos.
5504 * ifcvt.c: Fix typos.
5505 * input.c: Fix typos.
5506 * ipa-cp.c: Fix typos.
5507 * ipa-inline-analysis.c: Fix typos.
5508 * ipa-inline-transform.c: Fix typos.
5509 * ipa-inline.c: Fix typos.
5510 * ipa-pure-const.c: Fix typos.
5511 * ipa-ref.h: Fix typos.
5512 * ipa-reference.c: Fix typos.
5513 * ipa-utils.c: Fix typos.
5515 * ira-emit.c: Fix typos.
5516 * ira-lives.c: Fix typos.
5517 * lto-streamer.c: Fix typos.
5518 * lto-streamer.h: Fix typos.
5519 * lto-wrapper.c: Fix typos.
5521 * mode-switching.c: Fix typos.
5522 * modulo-sched.c: Fix typos.
5523 * plugin.c: Fix typos.
5524 * postreload.c: Fix typos.
5525 * sched-deps.c: Fix typos.
5526 * sel-sched-ir.c: Fix typos.
5527 * sel-sched-ir.h: Fix typos.
5528 * sel-sched.c: Fix typos.
5529 * sese.c: Fix typos.
5530 * stor-layout.c: Fix typos.
5531 * target-hooks-macros.h: Fix typos.
5532 * target.def: Fix typos.
5533 * trans-mem.c: Fix typos.
5534 * tree-eh.c: Fix typos.
5535 * tree-predcom.c: Fix typos.
5536 * tree-sra.c: Fix typos.
5537 * tree-ssa-address.c: Fix typos.
5538 * tree-ssa-loop-ivopts.c: Fix typos.
5539 * tree-ssa-loop-niter.c: Fix typos.
5540 * tree-ssa-math-opts.c: Fix typos.
5541 * tree-ssa-pre.c: Fix typos.
5542 * tree-ssa-propagate.c: Fix typos.
5543 * tree-ssa-reassoc.c: Fix typos.
5544 * tree-ssa-sccvn.c: Fix typos.
5545 * tree-ssa-ter.c: Fix typos.
5546 * tree-ssa-uninit.c: Fix typos.
5547 * tree-ssanames.c: Fix typos.
5548 * tree-vect-generic.c: Fix typos.
5549 * tree-vect-slp.c: Fix typos.
5550 * tree.c: Fix typos.
5551 * tree.h: Fix typos.
5552 * varasm.c: Fix typos.
5553 * varpool.c: Fix typos.
5555 2012-05-29 Joseph Myers <joseph@codesourcery.com>
5557 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
5559 2012-05-29 Richard Guenther <rguenther@suse.de>
5561 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
5563 (add_referenced_var_1): Re-organize. Assert we are not
5565 (remove_referenced_var): Likewise.
5566 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
5567 * tree-mudflap.c (execute_mudflap_function_ops): Do not
5568 call add_referenced_var on globals.
5569 * matrix-reorg.c (transform_access_sites): Likewise.
5571 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
5573 * alias.c (reg_known_value): Make this a VEC.
5574 (reg_known_equiv_p): Make this an sbitmap.
5575 (reg_known_value_size): Remove.
5576 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
5577 set_reg_known_equiv_p): Update for reg_known_value and
5578 reg_known_value_size data structure change.
5579 (init_alias_analysis, end_alias_analysis): Likewise.
5581 2012-05-29 Jakub Jelinek <jakub@redhat.com>
5584 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
5585 to avoid leaking memory. No need to handle memory allocation
5586 failure. Double string_len on each reallocation instead of adding 2.
5587 * gcov.c (read_line): Likewise.
5589 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
5591 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
5593 * config/cris/cris.md ("trap"): Define, enabled for
5594 TARGET_TRAP_USING_BREAK8.
5595 * config/cris/cris.opt (mtrap-using-break8): New option.
5597 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5600 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
5603 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
5605 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
5606 (Standard Names): Fix typos in documentation of atomic patterns.
5608 2012-05-27 Nathan Sidwell <nathan@acm.org>
5610 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
5612 2012-05-26 Jason Merrill <jason@redhat.com>
5615 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
5616 about array compound literals.
5618 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
5620 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
5621 if CLEANUP_NO_INSN_DEL.
5622 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
5623 from cfg_layout_merge_blocks.
5624 (emit_nop_for_unique_locus_between): New function.
5625 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
5626 (cfg_layout_merge_blocks): Likewise.
5628 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
5629 Paolo Bonzini <bonzini@gnu.org>
5631 * df-scan.c (df_def_record_1): Assert a parallel must contain an
5632 EXPR_LIST at this point. Receive the LOC and move its extraction...
5633 (df_defs_record): ... here. Change if-else to a switch statement.
5634 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
5635 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
5636 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
5637 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
5638 regs_invalidated_by_call.
5639 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
5642 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
5645 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
5646 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
5648 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5650 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
5651 software floating point emulation. No longer build the multilibs
5652 with -mstrict-align.
5654 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
5657 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
5658 accessed indirectly.
5659 (ipa_tm_create_version): Same.
5661 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
5664 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
5665 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
5667 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
5670 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
5671 (ix86_expand_vec_perm): Use int mode instead of float.
5672 (expand_vec_perm_pshufb): Remove handling of useseless type
5675 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
5678 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
5679 gnu_ld variables to yes.
5680 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
5681 (HAVE_GNU_AS): Likewise.
5682 * config.in: Regenerate.
5683 * configure: Likewise.
5685 2012-05-25 Tristan Gingold <gingold@adacore.com>
5687 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
5688 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
5689 and preferred_alignment.
5691 2012-05-25 Tristan Gingold <gingold@adacore.com>
5693 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
5695 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
5697 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
5698 volatile bitfields case.
5700 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
5702 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5703 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
5704 (adjacent_mem_locations): Move some code to and call...
5705 (get_memref_parts): ...new function.
5706 (mem_locations_overlap): New function.
5707 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
5708 (is_mem_ref): Rename to...
5709 (find_mem_ref): ...this. Return MEM rtx.
5710 (get_store_dest): Remove function.
5711 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
5712 new parameter and adjust calls.
5713 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
5714 mem refs overlap for true_store_to_load_dep_costly.
5715 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
5716 passed to adjacent_mem_locations.
5717 (is_costly_group): Walk resolved dependency list.
5718 (force_new_group): Emit group ending nop for Power6/Power7.
5719 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
5720 (group_ending_nop): New define_insn.
5722 2012-05-24 Dodji Seketeli <dodji@redhat.com>
5724 Make unwound macro expansion trace less redundant
5725 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
5726 context of macro definition in the trace, when it's redundant.
5729 2012-05-24 Richard Guenther <rguenther@suse.de>
5732 * tree-profile.c (tree_profiling): Cleanup the CFG if
5733 execute_fixup_cfg requests it.
5735 2012-05-24 Richard Guenther <rguenther@suse.de>
5737 * tree-flow.h (create_var_ann): Remove.
5738 * tree-dfa.c (create_var_ann): Remove and inline into its
5740 (add_referenced_var_1): ... here.
5741 * varpool.c (add_new_static_var): Do not call add_referenced_var
5743 * gimple-fold.c (canonicalize_constructor_val): Likewise.
5744 * tree-switch-conversion.c (build_one_array): Likewise.
5745 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
5746 * tree-flow-inline.h (gimple_referenced_vars): Guard against
5748 * tree-inline.c (remap_gimple_op_r): Likewise. Check
5749 gimple_referenced_vars instead of gimple_in_ssa_p.
5750 (copy_tree_body_r): Likewise.
5751 (setup_one_parameter): Likewise.
5752 (declare_return_variable): Likewise.
5753 (tree_function_versioning): Likewise.
5755 2012-05-24 Jakub Jelinek <jakub@redhat.com>
5757 PR tree-optimization/53465
5758 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
5759 vr0 into *vr, then vrp_meet that.
5760 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
5761 have any equivalences.
5762 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
5765 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
5767 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
5769 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
5770 check end_regno - 1 is a hard register.
5772 2012-05-24 Richard Guenther <rguenther@suse.de>
5774 * varpool.c (add_new_static_var): Remove call to create_var_ann.
5775 * tree-ssa-operands.c (create_vop_var): Likewise.
5777 2012-05-24 Richard Guenther <rguenther@suse.de>
5780 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
5782 (remove_unused_locals): Pass global_unused_vars to
5783 remove_unused_scope_block_p. Restore code walking all
5784 referenced vars and pruning them.
5786 2012-05-23 Jan Hubicka <jh@suse.cz>
5788 * tree.h (alias_diag_flags): Remove.
5789 (alias_pair): Remove emitted_diags.
5790 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
5791 symbol_alias_set_t, symbol_alias_set_destroy,
5792 symbol_alias_set_contains, propagate_aliases_backward): Remove.
5793 * toplev.c (compile_file): Do not call finish_aliases_2
5794 * cgraphunit.c (cgraph_process_new_functions): Do not call
5796 (handle_alias_pairs): Output diagnostics about aliases to externals.
5797 (assemble_thunks_and_aliases): Use do_assemble_alias.
5798 (output_weakrefs): Likewise.
5799 (finalize_compilation_unit): Do not call finish_aliases_1.
5800 * ipa.c (symtab_remove_unreachable_nodes): De not call
5801 remove_unreachable_alias_pairs.
5802 * varasm.c (do_assemble_alias): Export.
5803 (symbol_alias_set_create, symbol_alias_set_destroy,
5804 symbol_alias_set_contains, symbol_alias_set_insert,
5805 propagate_aliases_forward, propagate_aliases_backward,
5806 propagate_aliases_backward, trivially_visible_alias,
5807 trivially_defined_alias, remove_unreachable_alias_pairs,
5808 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
5809 * output.h (do_assemble_alias): Declare.
5810 * varpool.c (varpool_remove_unreferenced_decls): Do not call
5813 2012-05-23 Martin Jambor <mjambor@suse.cz>
5815 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
5817 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
5819 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
5821 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
5822 (iterative_hash_gimple_type): Adjust comment.
5823 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
5824 domain for an array type instead of the domain type itself.
5826 2012-05-23 Richard Guenther <rguenther@suse.de>
5828 PR tree-optimization/53438
5829 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
5831 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
5834 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
5835 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
5838 2012-05-23 Richard Guenther <rguenther@suse.de>
5840 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
5841 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
5842 via the global_unused_vars bitmap.
5843 (remove_unused_locals): Handle global vars in local-decls via
5844 a global_unused_vars bitmap instead of the used flag in the
5845 var annotation. Simplify global variable handling and removal.
5847 2012-05-22 Jan Hubicka <jh@suse.cz>
5850 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
5851 from other partitions.
5853 2012-05-22 Jan Hubicka <jh@suse.cz>
5856 * symtab.c (symtab_register_node): Fix ordering issue.
5858 2012-05-22 Steven Drake <sbd@NetBSD.org>
5860 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
5862 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
5864 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
5865 Use strip_name_encoding target hook.
5867 2012-05-22 Richard Guenther <rguenther@suse.de>
5869 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
5870 (init_function_for_compilation): Remove.
5871 * tree-dfa.c (find_vars_r): Take struct function argument.
5872 (find_referenced_vars_in): Adjust.
5873 * tree-ssa-operands.c (clobber_stats): Remove.
5874 (create_vop_var): Take struct function argument. Mark
5875 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
5876 (init_ssa_operands): Take struct function argument.
5877 (fini_ssa_operands): Do not dump dead stats.
5878 * tree-ssa-operands.h (init_ssa_operands): Take struct function
5880 * cgraphunit.c (init_lowered_empty_function): Adjust.
5881 * lto-streamer-in.c (input_cfg): Likewise.
5882 * tree-inline.c (initialize_cfun): Likewise.
5883 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
5884 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
5885 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
5886 virtual operands are not registers.
5888 2012-05-22 Richard Guenther <rguenther@suse.de>
5890 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
5892 2012-05-22 Richard Guenther <rguenther@suse.de>
5895 * tree-inline.c (setup_one_parameter): Create a dummy init
5896 statement for unused parameters when not optimizing.
5898 2012-05-22 Richard Guenther <rguenther@suse.de>
5900 * tree-flow.h (add_referenced_var_1): Declare.
5901 (add_referenced_var): Define.
5902 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
5903 (add_referenced_var): Rename to ...
5904 (add_referenced_var_1): ... this. Take struct function argument.
5906 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5909 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
5910 * config/arm/arm.c (arm_validize_comparison): Define.
5911 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
5912 arm_validize_comparison.
5913 ("cbranchdi4"): Likewise.
5914 ("cstoredi4"): Likewise.
5915 ("movsicc"): Likewise.
5916 ("movsfcc"): Likewise.
5917 ("movdfcc"): Likewise.
5919 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
5921 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
5922 the mw_reg_pool size.
5924 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
5926 PR tree-optimization/53336
5927 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
5928 non-integer integral types to offset type and vice versa.
5930 2012-05-22 Alan Modra <amodra@gmail.com>
5932 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5933 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5934 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
5935 V_SAVE_INLINE): Delete.
5936 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
5937 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
5938 For ELF targets, use out-of-line restores for -Os and any number
5939 of regs if the restore exits, and out-of-line gp save for two or
5940 more regs. Use save_reg_p to test for holes in reg restore set.
5941 Replace "#if" with "if".
5943 2012-05-22 Alan Modra <amodra@gmail.com>
5945 * config/rs6000/rs6000.c (save_reg_p): New function.
5946 (first_reg_to_save, first_fp_reg_to_save): Use it here.
5947 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
5948 (emit_frame_save): Use gen_frame_store.
5949 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
5950 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
5952 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
5953 vrsave, toc, gp and fp restores.
5955 2012-05-22 Alan Modra <amodra@gmail.com>
5957 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
5958 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
5959 Move function pointer variables after forward declarations.
5960 (rs6000_builtin_support_vector_misalignment): Make static.
5961 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
5962 (rs6000_function_value, rs6000_can_eliminate): Likewise.
5964 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
5966 PR rtl-optimization/53373
5967 * caller-save.c (save_call_clobbered_regs): Look into a possible
5968 PARALLEL manually rather than using single_set on a call insn.
5970 2012-05-21 Jakub Jelinek <jakub@redhat.com>
5972 PR tree-optimization/53436
5973 * omp-low.c (omp_build_component_ref): New function.
5974 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
5976 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
5978 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
5980 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
5981 Do not print '.' here. Output operand lossage error for unhandled
5986 <case 'z'>: Hardcode "code" argument into error strings.
5988 <case 'D'>: Merge AVX and non-AVX codes.
5989 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
5990 Update call to put_condition_code.
5992 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
5994 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
5996 (clzsi2): New expander.
5997 (*clzsi2_68k): New insn.
5998 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
6000 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
6002 * gimple.h (gimple_set_in_transaction): Remove.
6003 (gimple_in_transaction): Look in BB instead.
6004 (gimple_statement_base): Remove in_transaction field.
6005 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
6006 * trans-mem.c (compute_transaction_bits): Place transaction bit
6007 information into basic blocks.
6009 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
6011 * expr.c (get_def_for_expr_class): Define only if
6012 HAVE_conditional_move.
6013 (convert_tree_comp_to_rtx): Likewise.
6015 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
6018 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
6020 (ffssi2_no_cmove): Ditto.
6021 (*ffs<mode>_1): Remove insn pattern.
6022 (*tzcnt<mode>_1): New insn pattern.
6023 (*bsf<mode>1): Ditto.
6025 2012-05-21 Richard Guenther <rguenther@suse.de>
6027 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
6028 more referenced vars.
6029 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
6030 flag on variables that have a var-annotation.
6032 2012-05-21 Joseph Myers <joseph@codesourcery.com>
6035 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
6036 from folded operands before wrapping another around the
6037 conditional expression.
6039 2012-05-21 Jakub Jelinek <jakub@redhat.com>
6041 PR tree-optimization/53366
6042 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
6043 tests if complex_numbers == 2, but there are non-complex number loads
6046 PR tree-optimization/53409
6047 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
6048 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
6050 PR tree-optimization/53410
6051 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
6052 instead of build_int_cst (type, 0) where vector types might be
6053 involved. Instead of build_int_cst (type, 1) convert the original
6054 integer_onep argument to the desired type.
6056 2012-05-21 Michael Matz <matz@suse.de>
6058 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
6059 (simplify_test_exp): Handle one more case of distributive law,
6060 decrease cost threshold.
6061 (tests_attr_p, get_attr_order): New functions.
6062 (optimize_attrs): Use topological order, inline only cheap values.
6063 (write_attr_set): Reset our_known_true after some time.
6065 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
6068 * config/i386/i386.c (type_natural_mode): Warn passing SSE
6069 vector argument without SSE enabled changes the ABI.
6071 2012-05-21 Richard Guenther <rguenther@suse.de>
6073 PR tree-optimization/53408
6074 * tree-vect-loop.c (vectorizable_induction): Properly check
6075 the restriction that we cannot handle induction results from
6076 the inner loop outside of the outer loop.
6078 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
6081 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
6082 (UNSPECV_RDRAND): This.
6083 (rdrand<mode>_1): Updated.
6085 2012-05-21 Richard Guenther <rguenther@suse.de>
6087 * tree-loop-distribution.c (can_generate_builtin): Reject
6090 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
6092 * Makefile.in (options.c): Add options.h to included header
6095 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
6097 * tree-parloops.c : Add myself to contributors, update
6098 TODO list, add link to wiki.
6100 2012-05-21 Alan Modra <amodra@gmail.com>
6102 * config/rs6000/predicates.md (input_operand): Don't match
6103 constant pool addresses. Remove label_ref, high and plus from
6104 match_code list. Remove redundant CONSTANT_P test.
6105 (splat_input_operand): Similarly update match_code list.
6106 (small_toc_ref): New predicate.
6107 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
6108 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
6109 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
6110 register checks to..
6111 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
6112 generated by create_TOC_reference.
6113 (rs6000_legitimize_address): Update cerate_TOC_reference call.
6114 (rs6000_delegitimize_address): Handle new rtl for toc refs.
6115 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
6116 (use_toc_relative_ref): New function, split out from..
6117 (rs6000_emit_move): ..here. Remove redundant tests. Update
6118 create_TOC_reference calls.
6119 (rs6000_legitimize_reload_address): Formatting. Handle splitting
6120 of medium/large model toc addresses. Use use_toc_relative_ref.
6121 (print_operand): Formatting, style. Adjust for toc changes.
6122 (print_operand_address): Likewise.
6123 (rs6000_output_addr_const_extra): Likewise.
6124 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
6125 than a PLUS. Use this formulation for both high and low part
6126 of -mcmodel=medium/large toc reference too. Before reload,
6127 always use the small model formulation.
6128 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
6129 a PLUS in high part of addresses here.
6130 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
6131 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
6132 (largetoc_high, largetoc_low): Move earlier. Cope when no
6134 (largetoc_high_plus): New insn.
6135 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
6136 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
6137 (tocref): ..instead do so here, new insn and split.
6139 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
6141 * config/i386/driver-i386.c (host_detect_local_cpu): Support
6142 RDRND, F16C and FSGSBASE.
6144 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6146 PR rtl-optimzation/53373
6147 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
6148 call pattern. Update split patterns.
6149 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
6150 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
6152 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
6154 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
6157 2012-05-18 Jan Hubicka <jh@suse.cz>
6159 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
6160 (cgraph_process_new_functions): Process also aliases.
6161 * lto-streamer-out.c (struct sets): Remove.
6162 (trivally_defined_alias): Remove.
6163 (output_alias_pair_p): Remove.
6164 (output_unreferenced_globals): Remove.
6165 (produce_symtab); Do not handle alias pairs.
6166 (produce_asm_for_decls): Likewise.
6167 * lto-streamer-in.c (input_alias_pairs): Remove.
6168 (lto_read_body): Do not input alias pairs.
6169 (lto_input_constructors_and_inits): Remove.
6171 2012-05-18 Jan Hubicka <jh@suse.cz>
6173 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
6176 2012-05-18 Jan Hubicka <jh@suse.cz>
6178 * cgraphbuild.c (record_reference): Update.
6179 * lto-cgraph.c (lto_output_varpool_node): External vars
6180 are not in other partition even if they are not output
6181 in current partition.
6182 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
6184 (canonicalize_constructor_val): Take FROM_DECL argument.
6185 (fold_ctor_reference, fold_string_cst_ctor_reference,
6186 fold_array_ctor_reference, fold_nonarray_ctor_reference,
6187 fold_ctor_reference): Likewise.
6188 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
6189 * gimple.h (gimple_fold_builtin): Likewise.
6191 2012-05-18 Olivier Hainque <hainque@adacore.com>
6193 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
6194 $(libsubdir) as libexecsubdir.
6196 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6198 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
6199 relied on signed overflow behavior.
6201 2012-05-18 Richard Guenther <rguenther@suse.de>
6203 PR tree-optimization/53346
6204 * tree-loop-distribution.c (ldist_gen): Make sure to apply
6205 builtin transform even when only a single partition with
6206 all reads/writes exists.
6208 2012-05-18 Richard Guenther <rguenther@suse.de>
6210 PR tree-optimization/53390
6211 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
6214 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6216 * tree-ssa-reassoc.c (bip_map): Remove decl.
6217 (completely_remove_stmt): Remove function.
6218 (remove_def_if_absorbed_call): Remove function.
6219 (remove_visited_stmt_chain): Remove __builtin_powi handling.
6220 (possibly_move_powi): Remove function.
6221 (rewrite_expr_tree): Remove calls to possibly_move_powi.
6222 (rewrite_expr_tree_parallel): Likewise.
6223 (attempt_builtin_powi): Build multiplies explicitly rather than
6224 relying on the ops vector and rank system.
6225 (transform_stmt_to_copy): New function.
6226 (transform_stmt_to_multiply): Likewise.
6227 (reassociate_bb): Handle leftover operations after __builtin_powi
6228 optimization; build a final multiply if necessary.
6230 2012-05-18 Jan Hubicka <jh@suse.cz>
6232 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
6233 (mark_functions_to_output): Fix sanity check.
6234 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
6236 2012-05-18 Richard Guenther <rguenther@suse.de>
6238 * tree-flow.h (mark_symbols_for_renaming): Remove.
6239 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
6240 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
6241 (copy_debug_stmt): Likewise.
6242 (expand_call_inline): Likewise.
6243 (declare_return_variable): Mark the return variable for renaming
6246 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
6248 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
6250 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
6251 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
6252 (ashrdi3,lshrdi3): Likewise.
6253 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
6255 2012-05-18 Meador Inge <meadori@codesourcery.com>
6257 PR rtl-optimization/53352
6258 * cse.c (equiv_constant): Ignore paradoxical subregs.
6260 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
6262 PR rtl-optimization/53125
6263 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
6264 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
6265 die in the basic block. Correctly top off REG_FREQ and
6266 REG_FREQ_CALLS_CROSSED.
6268 (regstat_compute_ri): Allocate and free local_live_last_luid.
6270 (regstat_bb_compute_calls_crossed): Correctly top off
6271 REG_FREQ_CALLS_CROSSED.
6273 2012-05-17 Jan Hubicka <jh@suse.cz>
6275 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
6276 constructor over decl without.
6277 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
6278 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
6279 * cgraphunit.c (process_function_and_variable_attributes): Finalize
6281 (mark_functions_to_output): Also accept bodies for functions with
6283 (output_in_order): Skip external vars.
6284 * lto-cgraph.c (lto_output_node): External functions are never in other
6286 (lto_output_varpool_node): Likewise.
6287 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
6288 forgotten initializers.
6289 * ipa.c (process_references): Handle external vars.
6290 (symtab_remove_unreachable_nodes): Update to handle external vars.
6291 (varpool_externally_visible_p): External vars are externally visible.
6292 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
6293 * varpool.c (varpool_remove_node): Remove constructor.
6294 (decide_is_variable_needed): Handle externals.
6295 (varpool_remove_unreferenced_decls): Likewise.
6297 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6299 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
6300 (enable_warning_as_error): Do not special case Wuninitialized.
6301 * optc-gen.awk: Add sanity checks.
6303 2012-05-17 Jan Hubicka <jh@suse.cz>
6305 * ipa-reference.c (is_proper_for_analysis): Do not check flags
6306 that might change as result of global optimization.
6307 (analyze_function): Do not check analyzed and externally_visible
6308 flags; be happy about address dereferences.
6309 (propagate): Prune all_module_statics so it really contains just
6310 statics; prune all the local summaries.
6311 (ipa_reference_write_optimization_summary): Simplify.
6313 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
6315 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
6316 * config/m68k/m68k-tables.opt: Regenerated.
6317 * doc/invoke.texi (M680x0 Options): Document.
6319 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
6320 Patrick Marlier <patrick.marlier@gmail.com>
6322 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
6325 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
6327 * configure: Regenerated.
6329 2012-05-16 Andrew Pinski <apinski@cavium.com>
6331 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
6334 2012-05-16 David S. Miller <davem@davemloft.net>
6336 * jump.c (delete_related_insns): If we remove a CALL, make sure
6337 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
6339 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6341 PR tree-optimization/53217
6342 * tree-ssa-reassoc.c (bip_map): New static variable.
6343 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
6344 (attempt_builtin_powi): Save feeding multiplies on a stack.
6345 (reassociate_bb): Create and destroy bip_map.
6347 2012-05-16 Olivier Hainque <hainque@adacore.com>
6349 * Makefile.in (install-no-fixedincludes): New target, former toplevel
6350 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
6351 Add comments and improve stamp preservation across the whole sequence.
6352 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
6354 2012-05-16 Richard Guenther <rguenther@suse.de>
6356 * tree-inline.c (insert_init_stmt): Do not call
6357 mark_symbols_for_renaming.
6358 (setup_one_parameter): Avoid initializing unused parameters.
6359 (declare_return_variable): Properly handle DECL_BY_REFERENCE
6360 return vars in SSA form.
6362 2012-05-16 Richard Guenther <rguenther@suse.de>
6364 * tree-flow.h (get_virtual_var): Remove.
6365 * tree-dfa.c (get_virtual_var): Likewise.
6367 2012-05-16 Richard Guenther <rguenther@suse.de>
6369 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
6370 Remove set-only bitmap of new names.
6371 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
6373 * tree-flow.h (ssa_names_to_replace): Remove.
6374 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
6376 2012-05-16 Richard Guenther <rguenther@suse.de>
6378 PR tree-optimization/53364
6379 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
6380 detect a view-conversion of the decl.
6382 2012-05-16 Dodji Seketeli <dodji@redhat.com>
6384 PR preprocessor/7263
6385 * c-tree.h (enum c_declspec_word): Declare new enum.
6386 (struct c_declspecs::locations): New member.
6387 (declspecs_add_qual, declspecs_add_scspec)
6388 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
6390 * c-decl.c (build_null_declspecs): Initialize the new struct
6391 c_declspecs::locations member.
6392 (declspecs_add_addrspace): Take a location parameter for the
6393 address space. Store it onto declaration specifiers.
6394 (declspecs_add_qual): Likewise, take a location parameter for the
6396 (declspecs_add_type): Likewise, take a location parameter for the
6398 (declspecs_add_scspec): Likewise, take a location parameter for
6399 the storage class specifier.
6400 (declspecs_add_attrs): Likewise, take a location parameter for the
6402 (declspecs_add_alignas): Likewise, take a location parameter for
6404 (finish_declspecs): For diagnostics, use the location of the
6405 relevant declspec, instead of the global input_location.
6406 * c-parser.c (c_parser_parameter_declaration): Pass the precise
6407 virtual location of the declspec to the declspecs-setters.
6408 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
6411 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
6413 * configure.ac: Stack protector enabling for Android targets.
6414 * configure: Regenerate.
6416 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
6418 * ira.c (pseudo_move_insn): Delete.
6419 (find_moveable_pseudos): Don't set it.
6420 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
6421 the definitions of the original pseudo. Delete all of them.
6423 2012-05-16 Olivier Hainque <hainque@adacore.com>
6425 * config/rs6000/rs6000-opts.h (enum processor_type): Add
6427 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
6428 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
6429 * config/rs6000/8540.md: indicate that the units/patterns apply to
6432 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
6433 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
6434 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
6435 related flags, check that what is queried is supported by the selected
6436 configuration. Rework the single/double_float and MASK_STRING resets to
6437 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
6438 costs for PROCESSOR_PPC8548 as well.
6439 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
6440 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
6441 statement instead of a sequence of ifs.
6443 * config/rs6000/rs6000.h (TARGET_E500): Remove.
6444 (TARGET_NO_LWSYNC): Adjust accordingly.
6445 * config/rs6000/e500.h (TARGET_E500): Remove.
6446 (CHECK_E500_OPTIONS): Adjust accordingly.
6447 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
6448 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
6449 * config/rs6000/linuxspe.h: Likewise.
6450 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
6451 superfluous comments.
6452 * config/rs6000/e500-double.h: Remove.
6454 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
6455 default to with_cpu=8548 if --enable-e500-double, and to 8540
6457 (set misc flags section): For powerpc*|rs6000*, remove inclusion
6458 of e500-double.h for --enable-e500-double.
6460 2012-05-16 Olivier Hainque <hainque@adacore.com>
6462 * Makefile.in (s-header-vars): Resort to -n instead of trailing
6463 -e d in sed invocation.
6465 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
6467 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
6469 * doc/tm.texi: Regenerate.
6471 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6473 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
6475 2012-05-15 Jakub Jelinek <jakub@redhat.com>
6478 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
6479 that operands[2] is either immediate, or q_regs_operand.
6481 2012-05-15 Richard Guenther <rguenther@suse.de>
6483 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
6484 (assemble_thunk): Likewise. Manually rename and register
6487 2012-05-15 Richard Guenther <rguenther@suse.de>
6489 PR tree-optimization/53355
6490 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
6493 2012-05-15 Tristan Gingold <gingold@adacore.com>
6495 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
6497 2012-05-15 Richard Guenther <rguenther@suse.de>
6499 * gimple.c (gimple_set_modified): Move ...
6500 * gimple.h (gimple_set_modified): ... here.
6502 2012-05-15 Tristan Gingold <gingold@adacore.com>
6504 * ira-color.c (move_spill_restore): Add a guard.
6506 2012-05-15 Tristan Gingold <gingold@adacore.com>
6508 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
6511 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
6513 * gimplify.c (gimplify_init_constructor): Do a block move for very
6514 small objects as well.
6516 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
6518 * ira.c (find_moveable_pseudos): Skip registers whose
6519 DF_REG_EQ_USE_COUNT is nonzero.
6521 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6523 * doc/md.texi (fma): Define to only be applicable for single rounding.
6525 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
6528 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
6529 generate target register for "load" class builtins.
6532 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
6535 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
6536 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
6537 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
6538 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
6539 (<sse>_movu<ssemodesuffix>): New expander.
6540 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
6541 (avx_movdqu<avxmodesuffix>): New expander.
6542 (*sse2_movdqu): Rename from sse2_movdqu.
6543 (sse2_movdqu): New expander.
6545 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
6548 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
6549 (canonicalize_perm): ... new function.
6550 (expand_vec_perm_2vperm2f128_vshuf): New function.
6551 (ix86_expand_vec_perm_const_1): Call it.
6553 2012-05-14 Andrew Pinski <apinski@cavium.com>
6554 H.J. Lu <hongjiu.lu@intel.com>
6555 Jakub Jelinek <jakub@redhat.com>
6558 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
6561 2012-05-14 Jakub Jelinek <jakub@redhat.com>
6563 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
6564 lineno 1 the same as lineno 0 before first start file directive.
6565 (optimize_macinfo_range): Likewise.
6567 * dwarf2out.c (have_macinfo): Define.
6568 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
6569 attribute, don't force empty compilation unit and don't emit any
6570 .debug_macinfo/.debug_macro section if macinfo_table is empty.
6572 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
6575 * config/avr/avr.c (avr_const_address_lo16): Remove.
6576 (avr_assemble_integer): Print ".byte lo8(x)",
6577 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
6578 .warning if 3-byte address is assembled.
6579 * doc/extend.texi (AVR Named Address Spaces): Document that
6580 binutils 2.23 is needed to assemble 3-byte addresses.
6582 2012-05-14 Richard Guenther <rguenther@suse.de>
6584 * tree-vect-data-refs.c (vect_setup_realignment): Remove
6585 call to mark_symbols_for_renaming.
6586 (vect_permute_load_chain): Likewise.
6587 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
6588 instead of calling mark_symbols_for_renaming.
6589 * tree-vect-stmts.c (read_vector_array): Remove call to
6590 mark_symbols_for_renaming.
6591 (write_vector_array): Likewise.
6592 (vectorizable_call): Likewise.
6593 (vectorizable_store): Likewise.
6594 (vectorizable_load): Likewise.
6595 * matrix-reorg.c (transform_allocation_sites): Likewise.
6596 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
6597 (create_expression_by_pieces): Likewise.
6599 2012-05-14 Richard Guenther <rguenther@suse.de>
6601 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
6602 of statements for renaming.
6603 (force_gimple_operand_1): Likewise, consistently for both
6604 calls to force_gimple_operand and force_gimple_operand_gsi.
6606 2012-05-14 Richard Guenther <rguenther@suse.de>
6608 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
6609 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
6611 (expand_omp_for): Likewise.
6612 (expand_omp_for_generic): Adjust conditional add to referenced vars.
6613 Use make_rename_temp for temporaries that should be rewritten into
6615 (expand_omp_for_static_nochunk): Likewise.
6616 (expand_omp_atomic_pipeline): Likewise.
6618 2012-05-14 Richard Guenther <rguenther@suse.de>
6620 PR tree-optimization/53331
6621 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
6623 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
6625 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6628 * doc/options.texi: (LangEnabledBy): Document it.
6629 * optc-gen.awk: Handle LangEnabledBy.
6630 * opth-gen.awk: Generate declaration for lang-specific functions.
6631 * opt-read.awk: Record lang numbers.
6632 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
6633 (lang_sanitized_name): New.
6635 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
6637 * attribs.c (decl_attributes): Avoid emitting a warning if
6639 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
6640 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
6641 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
6642 define a string "1".
6643 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
6644 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
6645 BUILT_IN_STRCPY): Use it for these functions.
6646 * postreload.c (reload_combine): Deal with SETs inside
6647 CALL_INSN_FUNCTION_USAGE.
6648 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
6649 Look for REG_RETURNED notes and use a cheap restore if possible.
6650 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
6651 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
6652 * ira-build.c (ira_create_allocno, create_cap_allocno,
6653 propagate_allocno_info, propagate_some_info_from_allocno,
6654 copy_info_to_removed_store_destination, ira_flattening): Handle it.
6655 * ira-lives.c (pseudo_regno_single_word_and_live_p,
6656 find_call_crossed_cheap_reg): New static functions.
6657 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
6658 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
6659 a REG_RETURNED note in that case.
6660 * ira.c (setup_reg_renumber): Change assert to allow cases where
6661 allocnos only cross calls for which they are cheap to restore.
6662 * ira-costs.c (ira_tune_allocno_costs): Compare
6663 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
6665 * reg-notes.def (REG_RETURNED): New note.
6666 * cse.c (cse_insn): Likewise.
6667 * sched-deps.c (sched_analyze_insn): Likewise.
6668 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
6669 * calls.c (decl_return_flags): New static function.
6670 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
6671 functions that return one of their arguments.
6672 * regcprop.c (struct kill_set_value_data): New.
6673 (kill_set_value): Interpret data as a pointer to such a struct.
6674 Do nothing if the caller wants the register to be ignored.
6675 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
6677 2012-05-14 Richard Guenther <rguenther@suse.de>
6679 PR tree-optimization/53340
6680 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
6682 2012-05-14 Richard Guenther <rguenther@suse.de>
6684 * gimplify.c (gimplify_expr): Remove odd code.
6686 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
6688 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
6689 into a PLUS_EXPR byte offset.
6691 * tree-ssa-pre.c (can_value_number_call): Delete.
6692 (compute_avail): Skip all statements with side effects.
6693 <GIMPLE_CALL>: Skip calls to internal functions.
6695 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
6697 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
6699 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6701 * common.opt (Wtype-limits): Use EnabledBy.
6703 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
6705 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
6706 (pushtf splitter): Ditto.
6708 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
6709 (<code>tf2): Enable for TARGET_SSE.
6710 (*absnegtf2_sse): Ditto.
6711 (copysign<mode>3): Enable TFmode for TARGET_SSE.
6712 (copysign<mode>3_const): Ditto.
6713 (copysign<mode>3_var): Ditto.
6714 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
6715 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
6716 (*<code>tf3): Ditto.
6717 * config/i386/i386.c (struct builtin_description bdesc_args)
6718 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
6719 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
6720 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
6721 Emit a normal call if SSE isn't available.
6723 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
6725 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
6726 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6727 (<code><mode>3): Ditto.
6728 (*andnot<mode>3): Ditto.
6729 (*andnottf3): Ditto.
6730 (*<code><mode>3): Ditto.
6733 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6735 * optc-gen.awk: Error instead of warning for conflicting help.
6737 2012-05-12 Jason Merrill <jason@redhat.com>
6740 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
6743 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
6745 * function.c (requires_stack_frame_p): If the function can throw
6746 non-call exceptions, return true if the insn can throw internally.
6748 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
6750 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
6752 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
6754 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
6755 ORDERED and UNORDERED conditions.
6757 2012-05-11 Richard Guenther <rguenther@suse.de>
6759 * tree-flow.h (referenced_var_check_and_insert): Remove.
6760 (find_new_referenced_vars): Likewise.
6761 * tree-dfa.c (referenced_var_check_and_insert): Make static.
6762 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
6763 * tree-inline.c (copy_bb): Use find_referenced_vars_in
6764 instead of find_new_referenced_vars.
6765 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
6767 2012-05-11 Richard Guenther <rguenther@suse.de>
6769 * tree-pass.h (pass_rest_of_compilation,
6770 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
6772 * passes.c (pass_all_optimizations, pass_postreload,
6773 pass_all_early_optimizations): Make static.
6774 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
6775 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
6776 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
6777 (delete_tree_ssa): Do not call fini_phinodes.
6778 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
6780 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6783 * doc/options.texi (EnabledBy): Document
6784 * opts.c: Include opts.h and options.h before tm.h.
6785 (finish_options): Do not handle some sub-options here...
6786 (common_handle_option): ... instead call common_handle_option_auto
6788 * optc-gen.awk: Handle EnabledBy.
6789 * opth-gen.awk: Declare common_handle_option_auto.
6790 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
6791 (Wmaybe-uninitialized): Likewise.
6792 (Wunused-but-set-variable): Likewise.
6793 (Wunused-function): Likewise.
6794 (Wunused-label): Likewise.
6795 (Wunused-value): Likewise.
6796 (Wunused-variable): Likewise.
6797 * opt-read.awk: Create opt_numbers array.
6799 2012-05-11 Richard Guenther <rguenther@suse.de>
6801 PR tree-optimization/53295
6802 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
6804 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
6805 strides when analyzing data-references in a loop context.
6806 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
6807 non-constant strides for now.
6808 (vect_enhance_data_refs_alignment): Ignore data references
6809 that are strided loads.
6810 (vect_analyze_data_ref_access): Handle non-constant strides.
6811 (vect_check_strided_load): Verify the data-reference is a load.
6812 (vect_analyze_data_refs): Restructure to make strided load
6813 support not dependent on gather support.
6814 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
6815 when doing strided or gather loads.
6816 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
6817 integer_zerop to compare stride with zero.
6819 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6821 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
6823 2012-05-11 Jan Hubicka <jh@suse.cz>
6826 * varpool.c (varpool_assemble_decl): Also output constat pool entries
6827 that output_constant_pool missed.
6829 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
6831 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
6832 MULTILIB_EXTRA_OPTS.
6834 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
6837 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
6839 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
6841 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
6842 optimization for TARGET_AVX.
6843 (*movti_internal_sse): Ditto.
6844 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6845 (*movdi_internal): Ditto.
6846 (*movsi_internal): Ditto.
6847 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
6848 (*movdf_internal_rex64): Ditto.
6849 (*movfd_internal): Ditto.
6850 (*movsf_internal): Ditto.
6851 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
6853 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
6855 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
6856 reference as size attribute.
6858 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
6859 Tristan Gingold <gingold@adacore.com>
6861 * doc/md.texi (Standard Names): Document probe_stack_address.
6862 * explow.c (emit_stack_probe): Handle probe_stack_address.
6863 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
6864 (UNSPECV_PROBE_STACK_RANGE): Likewise.
6865 (probe_stack_address): New insn.
6866 (probe_stack_range): Likewise.
6867 * config/ia64/ia64.c: Include common/common-target.h.
6868 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
6869 checking is enabled.
6870 (ia64_emit_probe_stack_range): New function.
6871 (output_probe_stack_range): Likewise.
6872 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
6873 builtin stack checking is enabled.
6874 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
6875 and UNSPECV_PROBE_STACK_ADDRESS.
6876 (unknown_for_bundling_p): New predicate.
6877 (group_barrier_needed): Use important_for_bundling_p.
6878 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
6879 (issue_nops_and_insn): Likewise.
6880 (bundling): Likewise.
6881 (final_emit_insn_group_barriers): Likewise.
6882 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
6883 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
6884 (STACK_CHECK_PROTECT): Likewise.
6885 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6887 2012-05-10 Jan Hubicka <jh@suse.cz>
6889 * ipa-inline.c (update_all_callee_keys): Remove.
6890 (inline_small_functions): Simplify priority updating.
6892 2012-05-10 Jan Hubicka <jh@suse.cz>
6894 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
6896 2012-05-10 Jan Hubicka <jh@suse.cz>
6898 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
6899 (symtab_remove_unreachable_nodes): ... this one.
6900 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
6901 * cgraphunit.c (ipa_passes): Update.
6902 * cgraphclones.c (cgraph_materialize_all_clones): Update.
6903 * cgraph.c (cgraph_release_function_body): Only turn initial
6904 into error mark when initial was previously set.
6905 * ipa-inline.c (ipa_inline): Update.
6906 * ipa.c: Include ipa-inline.h
6907 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
6908 (enqueue_node): New function.
6909 (process_references): Update.
6910 (symtab_remove_unreachable_nodes): Cleanup.
6911 * passes.c (execute_todo, execute_one_pass): Update.
6913 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
6915 PR rtl-optimization/53125
6916 * ira.c (ira): Call find_moveable_pseudos and
6917 move_unallocated_pseudos if only ira_conflicts_p is true.
6919 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
6921 * config/i386/i386.md (*movoi_internal_avx): Handle
6922 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
6923 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6924 (*movti_internal_sse): Ditto.
6925 (*movtf_internal): Ditto.
6926 * config/i386/sse.md (ssePSmode): New mode attribute.
6927 (*move<mode>_internal): Use ssePSmode.
6928 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
6929 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
6930 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
6931 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
6933 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
6935 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
6936 DECL_ORIGINAL_TYPE if it is present.
6938 2012-05-10 Nick Clifton <nickc@redhat.com>
6941 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
6942 a "0" constraint to being a (match_dup 0).
6944 2012-05-10 Richard Guenther <rguenther@suse.de>
6946 * stor-layout.c (byte_from_pos): Amend comment.
6948 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6950 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
6951 Document requirement to call in constructors.
6953 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
6955 2012-05-10 Richard Guenther <rguenther@suse.de>
6957 * tree.h (TYPE_IS_SIZETYPE): Remove.
6958 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
6959 (extract_muldiv_1): Likewise.
6960 * gimple.c (gtc_visit): Likewise.
6961 (gimple_types_compatible_p): Likewise.
6962 (iterative_hash_canonical_type): Likewise.
6963 (gimple_canonical_types_compatible_p): Likewise.
6964 * gimplify.c (gimplify_one_sizepos): Likewise.
6965 * print-tree.c (print_node): Likewise.
6966 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
6968 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
6971 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
6972 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
6973 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
6974 instead of xop_mulv2div2di3_low.
6975 (xop_p<macs>dql): Fix vec_select selector.
6976 (xop_p<macs>dqh): Ditto.
6977 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
6978 (xop_mulv2div2di3_high): Ditto.
6980 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6983 * diagnostic.h (diagnostic_context): Add last_location.
6984 * diagnostic.c (diagnostic_initialize): Initialize it.
6985 (diagnostic_show_locus): Use it.
6987 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6989 * doc/extend.texi (Function Attributes): Point xref to section
6992 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
6994 * config/i386/i386.c (*movdf_internal_rex64): Remove
6995 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
6996 Calculate "mode" attribute according to
6997 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
6998 (*movdf_internal): Ditto.
7000 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
7003 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
7004 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
7005 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
7006 or when optimizing for size.
7007 * config/i386/sse.md (*mov<mode>_internal): Remove
7008 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
7009 Calculate "mode" attribute according to optimize_function_for_size_p
7010 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
7011 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
7012 depending on the mode of the instruction. Calculate "mode" attribute
7013 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
7014 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
7015 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
7017 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
7020 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
7021 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
7022 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
7023 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
7024 (expand_prologue): Move initialization of cfun->machine->is_naked,
7025 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
7026 (avr_set_current_function): ...this new static function.
7027 (TARGET_SET_CURRENT_FUNCTION): New define.
7028 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
7029 checking attributes of current_function_decl.
7030 (avr_regs_to_save): Ditto.
7031 (signal_function_p): Rename to avr_signal_function_p.
7032 (interrupt_function_p): Rename to avr_interrupt_function_p.
7034 * doc/extend.texi (Function Attributes): Better explanation of
7035 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
7038 2012-05-09 Michael Matz <matz@suse.de>
7040 PR tree-optimization/53185
7041 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
7042 peeling when we see strided loads.
7044 2012-05-09 Matthias Klose <doko@ubuntu.com>
7046 * gcc-ar.c (main): Don't check for execute bits for the plugin.
7048 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7050 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
7051 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
7052 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
7053 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
7054 (USE_LOAD_POST_INCREMENT): Define.
7055 (USE_LOAD_PRE_INCREMENT): Define.
7056 (USE_LOAD_POST_DECREMENT): Define.
7057 (USE_LOAD_PRE_DECREMENT): Define.
7058 (USE_STORE_PRE_DECREMENT): Define.
7059 (USE_STORE_PRE_INCREMENT): Define.
7060 (USE_STORE_POST_DECREMENT): Define.
7061 (USE_STORE_POST_INCREMENT): Define.
7062 (arm_auto_incmodes): Add enumeration.
7063 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
7064 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
7066 2012-05-09 Jakub Jelinek <jakub@redhat.com>
7068 PR tree-optimization/53226
7069 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
7070 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
7071 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
7072 doesn't need to be revisited, look for earliest stmt with
7073 !gimple_plf (stmt, GF_PLF_1) if something changed.
7075 2012-05-09 Terry Guo <terry.guo@arm.com>
7077 * genmultilib: Update copyright dates.
7078 * doc/fragments.texi: Ditto.
7080 2012-05-09 Terry Guo <terry.guo@arm.com>
7082 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
7083 * genmultilib (MULTILIB_REQUIRED): New.
7084 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
7086 2012-05-09 Richard Guenther <rguenther@suse.de>
7088 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
7089 (vect_do_peeling_for_loop_bound): Likewise.
7090 (vect_do_peeling_for_alignment): Likewise.
7091 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
7092 (vect_do_peeling_for_loop_bound): Get check_profitability and
7093 threshold as parameters.
7094 (vect_do_peeling_for_alignment): Likewise.
7095 (vect_loop_versioning): Likewise.
7096 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
7097 and threshold here. Control where to put the check here.
7099 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
7102 * dwarf2out.h (get_address_mode): Move declaration to...
7104 * dwarf2out.c (get_address_mode): Move definition to...
7105 * rtlanal.c: ...here.
7106 * var-tracking.c (get_address_mode): Delete.
7107 * combine.c (find_split_point): Use get_address_mode instead of
7108 targetm.addr_space.address_mode.
7109 * cselib.c (cselib_record_sets): Likewise.
7110 * dse.c (canon_address, record_store): Likewise.
7111 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
7112 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
7113 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
7114 (expand_expr_real_1): Likewise.
7115 * ifcvt.c (noce_try_cmove_arith): Likewise.
7116 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
7117 * reload.c (find_reloads): Likewise.
7118 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
7119 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
7121 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
7123 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
7124 information from the instruction produced.
7126 2012-05-09 Richard Guenther <rguenther@suse.de>
7128 * stor-layout.c (bit_from_pos): Document.
7129 (byte_from_pos): Likewise. Optimize.
7130 (pos_from_bit): Likewise.
7131 (normalize_offset): Use pos_from_bit instead of replicating it.
7133 2012-05-09 Alan Modra <amodra@gmail.com>
7136 * config/rs6000/rs6000.c (gen_frame_set): New function.
7137 (gen_frame_load, gen_frame_store): New functions.
7138 (rs6000_savres_rtx): Use the above.
7139 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
7140 Correct mode used for CR2 in save/restore_world patterns.
7141 Don't emit instructions for eh_return frame unwind reg info.
7143 2012-05-08 Jan Hubicka <jh@suse.cz>
7145 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
7147 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
7149 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
7151 (compile_file): Do not output variables.
7152 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
7154 * langhooks.c: Include timevar.h
7155 (write_global_declarations): Finalize compilation unit after wrapup;
7156 set timevars correctly.
7157 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
7158 not to be added to varpool.
7159 * varpool.c (varpool_assemble_decl): Sanity check that we are called
7160 only on cases where it makes sense; skip constant pool and value expr
7163 2012-05-08 David S. Miller <davem@davemloft.net>
7165 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
7166 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
7167 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
7169 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
7171 PR rtl-optimization/53278
7172 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
7173 speed_p code from earlier patch.
7175 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
7178 * config/sh/sh.md (*branch_true, *branch_false): New insns.
7180 2012-05-08 Teresa Johnson <tejohnson@google.com>
7182 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
7183 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
7185 2012-05-08 Jan Hubicka <jh@suse.cz>
7187 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
7188 (cgraph_create_node_1): Rename to ...
7189 (cgraph_create_empty_node): ... this one; export.
7190 (cgraph_create_node): Update.
7191 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
7192 (cgraph_create_edge_including_clones): Likewise.
7193 (cgraph_find_replacement_node): Likewise.
7194 (cgraph_clone_edge): Likewise.
7195 (cgraph_clone_node): Likewise.
7196 (clone_function_name): Likewise.
7197 (cgraph_create_virtual_clone): Likewise.
7198 (cgraph_remove_node_and_inline_clones): Likewise.
7199 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
7200 * cgraph.h: Reorder declarations so they match file of origin.
7201 (cgraph_create_empty_node): Declare.
7202 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
7203 (cgraph_copy_node_for_versioning): Likewise.
7204 (cgraph_function_versioning): Likewise.
7205 (cgraph_materialize_clone): Likewise.
7206 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7207 (cgraph_materialize_all_clones): Likewise.
7208 * cgraphclones.c: New file.
7209 * Makefile.in: Update for cgraphclones.
7211 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
7214 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
7215 (ix86_rtx_costs): Handle SET.
7217 2012-05-08 Michael Matz <matz@suse.de>
7219 * basic-block.h (struct rtl_bb_info): Remove visited member and
7220 move head_ member to ...
7221 (struct basic_block_def.basic_block_il_dependent): ... the new
7222 member x, replacing but containing old member rtl.
7223 (enum bb_flags): New BB_VISITED flag.
7224 (BB_HEADER, BB_FOOTER): New macros.
7226 * jump.c (mark_all_labels): Adjust.
7227 * cfgcleanup.c (try_optimize_cfg): Adjust.
7228 * cfglayout.c (record_effective_endpoints): Adjust.
7229 (relink_block_chain): Ditto (and don't fiddle with visited).
7230 (fixup_reorder_chain): Adjust.
7231 (fixup_fallthru_exit_predecessor): Ditto.
7232 (cfg_layout_duplicate_bb): Ditto.
7233 * combine.c (update_cfg_for_uncondjump): Adjust.
7234 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
7235 (bb_visited_trace): New accessor.
7236 (mark_bb_visited): Move in front.
7237 (rotate_loop): Use bb_visited_trace.
7238 (find_traces_1_round): Ditto.
7239 (emit_barrier_after): Ditto.
7240 (copy_bb): Ditto, and initialize visited on resize.
7241 (reorder_basic_blocks): Initize visited member.
7242 (duplicate_computed_gotos): Clear bb flags at start, use
7245 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
7246 (rtl_verify_flow_info_1): Ditto.
7247 (cfg_layout_split_block): Ditto.
7248 (cfg_layout_delete_block): Ditto.
7249 (cfg_layout_merge_blocks): Ditto.
7250 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
7252 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
7255 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
7256 when a constant source operand matches an "I" constraint, the "no
7257 CC0 change" applies to a register-destination only, not a
7258 strict_low_part-destination.
7260 2012-05-08 Richard Guenther <rguenther@suse.de>
7262 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
7263 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
7265 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
7267 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
7269 * doc/avr-mmcu.texi: New auto-generated file.
7270 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
7271 to document all valid -mmcu= arguments.
7273 * config/avr/avr.h (arch_info_s): New struct definition.
7274 * config/avr/avr-devices.c (avr_texinfo): New variable.
7275 * config/avr/gen-avr-mmcu-texi.c: New file.
7276 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
7278 2012-05-08 Dehao Chen <dehao@google.com>
7280 * predict.c (find_qualified_ssa_name): New.
7281 (find_ssa_name_in_expr): New.
7282 (find_ssa_name_in_assign_stmt): New.
7283 (is_comparison_with_loop_invariant_p): New.
7284 (is_bound_expr_similar): New.
7285 (predict_iv_comparison): New.
7286 (predict_loops): Add heuristic for loop-nested branches that compare an
7287 induction variable to a loop bound variable.
7288 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
7290 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
7292 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
7293 TARGET_BDVER2 defines where appropriate.
7295 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
7297 * configure.ac (PLUGIN_LD): Rename into...
7298 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
7299 * config.in: Regenerate.
7300 * configure: Likewise.
7301 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
7303 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
7305 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
7306 computation using the precision of the index type.
7307 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
7308 (fold_array_ctor_reference): Do index computations in the index type.
7310 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
7312 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
7313 down to plus_constant.
7314 (expand_epilogue): Ditto.
7316 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7318 * postreload.c (reload_cse_regs): Make static.
7319 * reload.h (reload_cse_regs): Remove prototype.
7321 2012-05-07 Richard Henderson <rth@redhat.com>
7323 * config/alpha/alpha.md (clear_cache): New pattern.
7325 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7328 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
7329 is folded to a type boundary value, verify that the resulting case
7330 label is still a care range.
7332 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
7334 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
7335 only for TARGET_GENERIC, when not optimizing for size.
7336 (*ffs<mode>_1): Ditto.
7338 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7340 * tree-cfg.c (verify_gimple_switch): Tighten checks.
7342 2012-05-07 Jakub Jelinek <jakub@redhat.com>
7344 PR tree-optimization/53239
7345 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
7346 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
7348 2012-05-07 Richard Guenther <rguenther@suse.de>
7350 PR tree-optimization/53195
7351 * tree-inline.c (setup_one_parameter): Properly add referenced
7352 vars from the parameters new known value.
7354 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7356 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
7357 (sched_branch_type): Remove.
7358 (m68k_sched_md_init_global): Don't allocate it.
7359 (m68k_sched_md_finish_global): Don't free it.
7360 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
7361 * config/m68k/m68k.md: Set the type of insns using
7362 m68k_sched_branch_type to bcc directly.
7364 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7366 * config/sol2.c (solaris_override_options): New function.
7367 * config/sol2-protos.h (solaris_override_options): Declare.
7368 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
7370 2012-05-07 Richard Guenther <rguenther@suse.de>
7372 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
7373 whether we failed to compute data dependences.
7374 (loop_prefetch_arrays): Fail if we failed.
7376 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
7377 Paolo Bonzini <bonzini@gnu.org>
7379 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
7380 Emit bsf when optimizing for size.
7381 (*ffs<mode>_1): Ditto.
7383 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
7386 * config/sh/sh.c (sh_rtx_costs): Handle SET.
7388 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
7391 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
7392 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
7393 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
7395 (*bswapdi2_doubleword): New insn pattern.
7396 (*bswap<mode>2): Rename from *bswap<mode>2_1.
7398 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
7400 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
7401 (mips_set_reg_reg_cost): Likewise.
7402 (mips_rtx_costs): Handle SET.
7404 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
7406 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
7407 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
7408 to compute the cost of moves. Set the mode of the target register.
7410 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
7412 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
7413 plus_constant function.
7414 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
7415 that the mode is sensible.
7416 (use_anchored_address, round_push, allocate_dynamic_stack_space)
7417 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
7420 * alias.c (canon_rtx): Likewise.
7421 (init_alias_analysis): Likewise.
7422 * builtins.c (expand_builtin_return_addr)
7423 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
7424 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
7425 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
7426 (expand_builtin_stpcpy): Likewise.
7427 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
7428 (compute_argument_addresses, internal_arg_pointer_based_exp)
7429 (expand_call, emit_library_call_value_1): Likewise.
7430 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
7431 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
7432 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
7433 * cse.c (insert_const_anchor, find_reg_offset_for_const)
7434 (use_related_value, fold_rtx): Likewise.
7435 * cselib.c (cselib_subst_to_values): Likewise.
7436 * dse.c (record_store, check_mem_read_rtx): Likewise.
7437 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
7438 * emit-rtl.c (adjust_address_1): Likewise.
7439 * except.c (sjlj_emit_function_enter)
7440 (expand_builtin_extract_return_addr)
7441 (expand_builtin_frob_return_addr): Likewise.
7442 * expmed.c (expand_divmod): Likewise.
7443 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
7444 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
7445 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
7446 * function.c (assign_stack_local_1)
7447 (instantiate_virtual_regs_in_rtx): Likewise.
7448 * optabs.c (prepare_cmp_insn): Likewise.
7449 * recog.c (offsettable_address_addr_space_p): Likewise.
7450 * reload.c (find_reloads_address, form_sum)
7451 (find_reloads_subreg_address): Likewise.
7452 * reload1.c (init_reload, eliminate_regs_1)
7453 (eliminate_regs_in_insn): Likewise.
7454 * simplify-rtx.c (simplify_unary_operation_1)
7455 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
7456 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
7457 (vt_add_function_parameter): Likewise.
7459 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
7460 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
7461 * config/alpha/alpha.c (alpha_legitimize_address_1)
7462 (get_unaligned_address, alpha_expand_unaligned_load)
7463 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
7464 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
7465 (alpha_expand_builtin_establish_vms_condition_handler)
7466 (alpha_setup_incoming_varargs, emit_frame_store_1)
7467 (alpha_expand_prologue, alpha_expand_epilogue)
7468 (alpha_use_linkage): Likewise.
7469 * config/alpha/alpha.md: Likewise.
7471 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
7472 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
7473 (thumb_legitimize_address, arm_gen_load_multiple_1)
7474 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
7475 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
7476 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
7477 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
7478 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
7479 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
7480 (thumb_expand_movmemqi, arm_set_return_address)
7481 (thumb_set_return_address): Likewise.
7482 * config/arm/arm.md: Likewise.
7484 * config/avr/avr.c (avr_incoming_return_addr_rtx)
7485 (avr_prologue_setup_frame, expand_epilogue)
7486 (avr_const_address_lo16): Likewise.
7488 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
7489 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
7490 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
7491 (bfin_output_mi_thunk): Likewise.
7493 * config/c6x/c6x.c (c6x_initialize_trampoline)
7494 (c6x_output_mi_thunk): Likewise.
7496 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
7497 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
7499 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
7500 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
7501 (cris_emit_movem_store, cris_trampoline_init): Likewise.
7502 * config/cris/cris.md: Likewise.
7504 * config/darwin.c (machopic_indirect_data_reference)
7505 (machopic_legitimize_pic_address): Likewise.
7507 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
7508 (epiphany_expand_prologue, epiphany_expand_epilogue)
7509 (epiphany_trampoline_init): Likewise.
7510 * config/epiphany/epiphany.md: Likewise.
7512 * config/fr30/fr30.c (fr30_move_double): Likewise.
7514 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
7515 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
7516 (frv_index_memory, unspec_got_name, frv_find_base_term)
7517 (frv_output_dwarf_dtprel): Likewise.
7519 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
7520 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
7522 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
7523 * config/i386/i386.c (setup_incoming_varargs_64)
7524 (setup_incoming_varargs_ms_64, choose_baseaddr)
7525 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
7526 (ix86_emit_probe_stack_range, ix86_expand_prologue)
7527 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
7528 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
7529 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
7530 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
7531 (x86_output_mi_thunk): Likewise.
7532 * config/i386/i386.md: Likewise.
7534 * config/ia64/ia64.c (ia64_expand_load_address)
7535 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
7536 (do_spill, ia64_trampoline_init): Likewise.
7538 * config/iq2000/iq2000.c (iq2000_va_start)
7539 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
7540 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
7541 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
7543 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7545 * config/m32c/m32c.c (m32c_return_addr_rtx)
7546 (m32c_expand_insv): Likewise.
7548 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
7549 (m32r_legitimize_pic_address, m32r_print_operand)
7550 (m32r_print_operand_address): Likewise.
7552 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
7553 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
7554 (EH_RETURN_HANDLER_RTX): Likewise.
7555 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
7556 (m68k_expand_epilogue, legitimize_pic_address)
7557 (m68k_output_mi_thunk): Likewise.
7558 * config/m68k/m68k.md: Likewise.
7560 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7561 (mcore_expand_epilog): Likewise.
7562 * config/mcore/mcore.md: Likewise.
7564 * config/mep/mep.c (mep_allocate_initial_value)
7565 (mep_expand_prologue, mep_expand_epilogue): Likewise.
7567 * config/microblaze/microblaze.c (double_memory_operand)
7568 (microblaze_block_move_loop): Likewise.
7570 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
7571 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
7572 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
7573 (mips_expand_prologue, mips_epilogue_set_cfa)
7574 (mips_expand_epilogue): Likewise.
7575 * config/mips/mips.md: Likewise.
7577 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
7578 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
7580 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
7581 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
7583 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
7584 (EH_RETURN_HANDLER_RTX): Likewise.
7585 * config/moxie/moxie.c (moxie_static_chain): Likewise.
7587 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
7588 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
7589 (pa_return_addr_rtx, hppa_builtin_saveregs)
7590 (pa_trampoline_init): Likewise.
7591 * config/pa/pa.md: Likewise.
7593 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
7595 * config/picochip/picochip.c (picochip_static_chain): Likewise.
7597 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
7598 * config/rs6000/rs6000.c (rs6000_legitimize_address)
7599 (setup_incoming_varargs, print_operand, rs6000_return_addr)
7600 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
7601 (rs6000_emit_epilogue)
7602 (rs6000_machopic_legitimize_pic_address): Likewise.
7604 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7606 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
7607 (DYNAMIC_CHAIN_ADDRESS): Likewise.
7608 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
7609 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
7610 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
7611 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
7612 (s390_emit_epilogue, s390_function_profiler): Likewise.
7613 * config/s390/s390.md: Likewise.
7615 * config/score/score.c (score_add_offset, score_prologue): Likewise.
7617 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
7618 (sh_output_mi_thunk): Likewise.
7619 * config/sh/sh.md: Likewise.
7621 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
7622 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
7623 * config/sparc/sparc.c (sparc_legitimize_pic_address)
7624 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
7625 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
7626 (emit_and_preserve): Likewise.
7627 * config/sparc/sparc.md: Likewise.
7629 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7630 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
7631 (spu_setup_incoming_varargs, ea_load_store_inline)
7632 (spu_expand_load): Likewise.
7634 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
7635 (combine_bnp): Likewise.
7637 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7638 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
7639 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
7641 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7642 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
7643 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
7645 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
7646 * config/v850/v850.md: Likewise.
7648 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
7649 (EH_RETURN_HANDLER_RTX): Likewise.
7650 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
7651 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
7652 (print_operand_address, vax_trampoline_init): Likewise.
7654 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
7655 (xtensa_function_value_regno_p): Likewise.
7657 2012-05-04 Andrew Pinski <apinski@cavium.com>
7659 * expr.c (get_def_for_expr_class): New function.
7660 (convert_tree_comp_to_rtx): New function.
7661 (expand_cond_expr_using_cmove): New function.
7662 (expand_expr_real_2 <case COND_EXPR>): Call
7663 expand_cond_expr_using_cmove first and return if it succeeds.
7664 Remove the check for HAVE_conditional_move since we should have
7665 already converted it to a conditional move.
7666 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
7667 modes of DImode for 32bits and TImode.
7669 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
7672 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
7673 (print_md_ptr_loc, print_c_condition): Use them.
7674 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
7675 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
7676 attr_file, dfa_file, latency_file): New global variables.
7677 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
7678 write_upcase, write_indent, write_length_unit_log, write_test_expr,
7679 write_attr_get, write_insn_cases, write_eligible_delay,
7680 write_const_num_delay_slots): Accept FILE pointer and toss it around.
7682 (write_header, open_outfile, handle_arg): New funcions.
7683 (make_automaton_attrs): Write prototypes as extern to the output
7685 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
7686 names from the command line. Open the output files and write out
7687 internal functions for DFA functions to dfa_file_name, insn latency
7688 functions to latency_file_name, and everything else to attr_file.
7689 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
7690 (BACKEND): Build libbackend first.
7691 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
7692 (.PRECIOUS): Likewise.
7693 (insn-dfatab.o): New rule.
7694 (insn-latencytab.o): New rule.
7695 (simple_rtl_generated_c): Do not include insn-attrtab.c.
7696 (s-attrtab): New rule.
7698 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
7700 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
7701 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
7702 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
7703 * reorg.c (get_jump_flags): Do not set the removed flags.
7705 * doc/md.texi (attr_flag): Update for abovementioned changes.
7707 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
7710 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
7711 (TARGET_CMOV): Rename from TARGET_CMOVE.
7712 (TARGET_CMOVE): New define.
7713 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
7714 Do not set TARGET_CMOVE here.
7716 2012-05-04 Dodji Seketeli <dodji@redhat.com>
7718 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
7719 * opts.c (finish_options): Activate -Wunused-local-typedefs if
7720 -Wunused is activated.
7721 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
7723 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7725 * config/s390/s390.md (*movmem_short, *clrmem_short)
7726 (*cmpmem_short): Move the mode check from the insn condition to
7729 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7731 PR tree-optimization/52633
7732 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
7733 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
7734 (vect_recog_over_widening_pattern): Remove handling of code that was
7735 already detected as over-widening pattern. Remove special handling
7736 of "unsigned" cases. Instead, support general case of conversion
7737 of the shift result to another type.
7739 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7741 * tree-vect-patterns.c (vect_single_imm_use): New function.
7742 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
7743 (vect_recog_over_widening_pattern): Likewise.
7744 (vect_recog_widen_shift_pattern): Likewise.
7746 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7748 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
7749 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
7750 (vect_recog_widen_mult_pattern): Likewise.
7751 (vect_operation_fits_smaller_type): Likewise.
7752 (vect_recog_over_widening_pattern): Likewise.
7753 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
7755 2012-05-04 Richard Guenther <rguenther@suse.de>
7758 * lto-wrapper.c (merge_and_complain): Complain about mismatches
7759 of -freg-struct-return and -fpcc-struct-return.
7760 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
7761 from the input file options and ignore those from the link
7764 2012-05-04 Richard Guenther <rguenther@suse.de>
7766 PR tree-optimization/53168
7767 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
7768 memory reads when the result is a constant we can pun.
7770 2012-05-04 Richard Guenther <rguenther@suse.de>
7772 * common.opt (flto-report): Do not mark as Optimization.
7774 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
7777 * recog.c (constrain_operands): If extra constraints are present, also
7778 accept pseudo-registers with equivalent memory locations during reload.
7780 2012-05-04 Olivier Hainque <hainque@adacore.com>
7782 * collect2.c (may_unlink_output_file): New global.
7783 (maybe_unlink): Honor it.
7784 * collect2.h: Add extern for it.
7785 * tlink.c (do_tlink): Set it to true if the link succeeded.
7787 2012-05-04 Olivier Hainque <hainque@adacore.com>
7789 * gcc.c (eval_spec_function): Finalize/restore the current string
7790 obstack state as part of the context push/pop operations.
7792 2012-05-04 Bin Cheng <bin.cheng@arm.com>
7794 PR rtl-optimization/52804
7795 * reload1.c (reload_reg_reaches_end_p): Check whether successor
7796 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
7797 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
7798 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
7799 RELOAD_FOR_OUTADDR_ADDRESS.
7801 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7804 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
7805 for macro expansion.
7807 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7809 * flags.h (flag_permissive): Do not declare.
7810 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
7812 * toplev.c (flag_permissive): Do not define.
7813 * c-tree.h (system_header_p): Delete unused.
7815 2012-05-03 David S. Miller <davem@davemloft.net>
7818 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
7819 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
7820 (sparc_emit_float_lib_cmp): Likewise.
7822 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7825 * config/rs6000/rs6000.md (bswapdi splitters): If
7826 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
7827 default) is used, generate an alternate sequence that does not
7828 depend on using indexed addressing.
7830 2012-05-03 Jason Merrill <jason@redhat.com>
7832 * gengtype.c (write_types): Fix warning message.
7833 (write_local): Likewise.
7835 2012-05-02 Jason Merrill <jason@redhat.com>
7837 * dwarf2out.c (struct external_ref, build_local_stub): New.
7838 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
7839 (optimize_external_refs, optimize_external_refs_1): New.
7840 (change_AT_die_ref): New.
7841 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
7842 (build_abbrev_table): Take the external refs hashtable.
7843 (output_comp_unit): Get it from optimize_external_refs and pass it in.
7845 2012-05-03 Jan Hubicka <jh@suse.cz>
7848 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
7850 2012-05-03 Jan Hubicka <jh@suse.cz>
7853 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
7855 2012-05-03 Jason Merrill <jason@redhat.com>
7857 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
7858 use_debug_types to discriminate the die_id union.
7859 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
7860 (build_abbrev_table, output_die): Likewise.
7861 (prune_unused_types_walk_attribs): Likewise.
7862 (generate_type_signature, copy_declaration_context): Set it.
7863 (remove_child_or_replace_with_skeleton): Set it.
7864 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
7865 check use_debug_types.
7866 (dwarf2out_finish): Do break_out_includes after .debug_types.
7868 2012-05-03 Jason Merrill <jason@redhat.com>
7870 * dwarf2out.c (modified_type_die): Use scope_die_for.
7871 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
7872 (uses_local_type_r, uses_local_type): New.
7873 (scope_die_for): Keep a type that uses a local type in local scope.
7874 Use get_context_die for namespace and type scope.
7876 2012-05-03 Jason Merrill <jason@redhat.com>
7878 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
7880 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
7881 (dwarf2out_finish): Likewise.
7883 2012-05-03 Martin Jambor <mjambor@suse.cz>
7885 * builtins.c (get_object_alignment_1): Return whether we can determine
7886 the alignment or conservatively assume byte alignment. Return the
7887 alignment by reference. Use get_pointer_alignment_1 for dereference
7889 (get_pointer_alignment_1): Return whether we can determine the
7890 alignment or conservatively assume byte alignment. Return the
7891 alignment by reference. Use get_ptr_info_alignment to get SSA name
7893 (get_object_alignment): Update call to get_object_alignment_1.
7894 (get_object_or_type_alignment): Likewise, fall back to type alignment
7895 only when it returned false.
7896 (get_pointer_alignment): Update call to get_pointer_alignment_1.
7897 * fold-const.c (get_pointer_modulus_and_residue): Update call to
7898 get_object_alignment_1.
7899 * ipa-prop.c (ipa_modify_call_arguments): Update call to
7900 get_pointer_alignment_1.
7901 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
7902 of MEM_REF or TARGET_MEM_REF only when it returns false.
7903 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
7904 get_object_alignment_1.
7905 (ccp_finalize): Use set_ptr_info_alignment.
7906 * tree.h (get_object_alignment_1): Update declaration.
7907 (get_pointer_alignment_1): Likewise.
7908 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
7909 (dump_gimple_stmt): Likewise.
7910 * tree-flow.h (ptr_info_def): Updated comments of fields align and
7912 (get_ptr_info_alignment): Declared.
7913 (mark_ptr_info_alignment_unknown): Likewise.
7914 (set_ptr_info_alignment): Likewise.
7915 (adjust_ptr_info_misalignment): Likewise.
7916 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
7917 and set alignment of SSA names.
7918 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
7919 mark_ptr_info_alignment_unknown.
7920 * tree-ssanames.c (get_ptr_info_alignment): New function.
7921 (mark_ptr_info_alignment_unknown): Likewise.
7922 (set_ptr_info_alignment): Likewise.
7923 (adjust_ptr_info_misalignment): Likewise.
7924 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
7925 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7927 (bump_vector_ptr): Likewise.
7928 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
7929 (vectorizable_store): Likewise.
7930 (vectorizable_load): Likewise.
7932 2012-05-03 Michael Matz <matz@suse.de>
7934 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
7935 in front of basic_block_def.
7936 (struct basic_block_def): Make il.gimple the full struct, not a
7938 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
7940 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
7941 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
7942 NULL il.gimple, which can't happen anymore.
7943 * gimple.h (bb_seq): il.gimple can't be NULL.
7944 (bb_seq_add): Ditto.
7945 (set_bb_seq): Adjust.
7946 (gsi_start_bb, gsi_last_bb): Tidy.
7947 * lto-streamer-in.c (make_new_block): Don't zero members that
7948 are zeroed already, don't allocate a gimple_bb_info.
7949 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
7950 (remove_bb): Clear all il.gimple members.
7951 (gimple_verify_flow_info): Adjust for flat il.gimple.
7952 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
7954 * coretypes.h (const_gimple_seq): Remove typedef.
7955 * gimple.h (gimple_seq_first): Take gimple_seq.
7956 (gimple_seq_first_stmt): Ditto.
7957 (gimple_seq_last): Ditto.
7958 (gimple_seq_last_stmt): Ditto.
7959 (gimple_seq_empty_p): Ditto.
7961 2012-05-03 Richard Guenther <rguenther@suse.de>
7963 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
7965 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
7966 (compute_avail): Do not add possibly trapping operations to
7967 EXP_GEN if they might not be executed in the block.
7969 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
7971 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
7973 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
7975 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
7976 information as early as possible. Update dominance info instead of
7979 2012-05-03 Richard Guenther <rguenther@suse.de>
7981 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
7982 (union_contains_value): Remove.
7983 (vro_valid_in_sets): Likewise.
7984 (op_valid_in_sets): New function.
7985 (valid_in_sets): Use op_valid_in_sets.
7986 (insert_into_preds_of_block): Move dumping ...
7987 (do_regular_insertion): ... here.
7988 (do_partial_partial_insertion): ... and here. Dump that
7989 we've found a partial partial redundancy.
7990 (insert): Dump the current insert iteration.
7992 2012-05-03 Jakub Jelinek <jakub@redhat.com>
7995 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
7996 append program name to it and pass that as first argument
7997 to make_relative_prefix. Always pass standard_libexec_prefix
7998 as last argument to make_relative_prefix. If
7999 make_relative_prefix returns NULL, fall back to
8000 standard_libexec_prefix.
8003 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
8007 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
8008 mode, return that mode.
8011 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
8012 define __ATOMIC_HLE_* macros here.
8013 (ix86_target_macros): But here, using cpp_define_formatted.
8015 2012-05-03 Richard Guenther <rguenther@suse.de>
8017 PR tree-optimization/53144
8018 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
8020 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
8021 with SSA name values.
8022 (vn_reference_lookup_3): Adjust callers.
8024 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8026 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
8027 has_fma4 for AMD processors with both fma3 and fma4 support.
8029 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
8032 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
8035 2012-05-03 Michael Matz <matz@suse.de>
8038 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
8039 (dse_enter_block): Properly iterate the whole sequence even
8040 if the last statement was removed.
8042 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
8044 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
8045 unset flag_jump_tables.
8046 * stmt.c (expand_case): Remove special flag_pic case conditional
8047 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
8049 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8051 * common/config/s390/s390-common.c (s390_option_optimization_table):
8052 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
8053 default when optimizing.
8055 2012-05-02 Martin Jambor <mjambor@suse.cz>
8058 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
8059 of a variable when the contect is a function.
8061 2012-05-02 Michael Matz <matz@suse.de>
8063 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
8064 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
8065 (const_gimple_seq_node): Remove.
8066 (gimple_seq_node): Typedef as gimple.
8067 (struct gimple_statement_base): Add next and prev members,
8068 adjust all WORD markers in using structs.
8069 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
8070 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
8071 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
8072 gimple are the same.
8073 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
8075 (gimple_init_singleton): New function.
8076 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
8077 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
8079 (gsi_stmt_ptr): Remove.
8080 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
8082 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
8083 again, adjust for above changes.
8084 (update_call_edge_frequencies): Adjust for above changes.
8085 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
8086 (gsi_insert_seq_nodes_after): Ditto.
8087 (gsi_split_seq_after): Ditto.
8088 (gsi_set_stmt): Ditto.
8089 (gsi_split_seq_before): Ditto.
8090 (gsi_remove): Ditto.
8091 (gsi_insert_seq_before_without_update): Don't free sequence.
8092 (gsi_insert_seq_after_without_update): Ditto.
8093 (gsi_replace): Assert some more invariants.
8094 (gsi_insert_before_without_update, gsi_insert_after_without_update):
8096 (gsi_for_stmt): Don't search for stmt.
8097 (gsi_insert_on_edge_immediate): Tidy.
8099 * gimple.c (gimple_alloc_k): Remove "sequences".
8100 (gimple_seq_cache): Remove.
8101 (gimple_alloc_stat): Make stmt a singleton sequence.
8102 (gimple_seq_alloc, gimple_seq_free): Remove.
8103 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
8104 (gimple_copy): Ditto.
8105 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
8106 create iterator from correct sequence.
8107 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
8109 2012-05-02 Michael Matz <matz@suse.de>
8111 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
8113 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
8114 sequence, lazily allocate it.
8115 (bb_seq_addr): New function.
8116 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
8117 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
8118 (gsi_none): New function.
8119 (gsi_start_bb): Adjust.
8120 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
8121 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
8122 (gsi_last_bb): Adjust.
8124 * tree-flow-inline.h (phi_nodes_ptr): New function.
8126 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
8127 datastructure and interface change.
8128 (gsi_insert_seq_before_without_update): Ditto.
8129 (gsi_insert_seq_nodes_after): Ditto.
8130 (gsi_insert_seq_after_without_update): Ditto.
8131 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
8132 (gsi_split_seq_before): Ditto.
8133 (gsi_start_phis): Adjust.
8134 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
8135 (vect_transform_loop): Ditto.
8136 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
8137 gimple_seq_copy): Don't use gimple_seq_alloc.
8138 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
8139 (gimplify_seq_add_seq): Ditto.
8140 * lto-streamer-in.c (make_new_block): Ditto.
8141 * tree-cfg.c (create_bb): Ditto.
8142 * tree-sra.c (initialize_parameter_reductions): Ditto.
8144 2012-05-02 Michael Matz <matz@suse.de>
8146 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
8147 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
8148 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
8149 set_bb_seq): Move down to after gimple_statement_d definition.
8151 2012-05-02 Michael Matz <matz@suse.de>
8153 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
8154 gsi_replace_with_seq, instead of inserting itself.
8155 * gimple-iterator.c (gsi_replace_with_seq): New function.
8156 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
8157 iterator instead of statement, advance it.
8158 (ssa_forward_propagate_and_combine): Adjust call to above.
8160 2012-05-02 Michael Matz <matz@suse.de>
8162 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
8164 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
8165 * tree-nested.c (walk_gimple_omp_for): Ditto.
8166 * trans-mem.c (lower_transaction): Ditto.
8167 * tree-eh.c (do_return_redirection): Ditto.
8168 (do_goto_redirection): Ditto.
8169 (lower_try_finally_switch): Ditto.
8170 * gimplify.c (gimplify_stmt): Ditto.
8171 (gimplify_scan_omp_clauses): Ditto.
8172 (gimplify_omp_for): Ditto.
8173 (gimplify_function_tree): Ditto.
8174 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
8175 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
8176 (mf_build_check_statement_for): Ditto.
8177 (mx_register_decls): Ditto.
8178 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
8179 and don't use itertors to append.
8180 (insert_stmts): Ditto.
8181 (insert_out_of_ssa_copy): Ditto.
8182 (insert_out_of_ssa_copy_on_edge): Ditto.
8184 2012-05-02 Michael Matz <matz@suse.de>
8186 * gimple.h (gimple_bind_body_ptr): New function.
8187 (gimple_bind_body): Use it.
8188 (gimple_catch_handler): Use gimple_catch_handler_ptr.
8189 (gimple_eh_filter_failure_ptr): New function.
8190 (gimple_eh_filter_failure): Use it.
8191 (gimple_eh_else_n_body_ptr): New function.
8192 (gimple_eh_else_n_body): Use it.
8193 (gimple_eh_else_e_body_ptr): New function.
8194 (gimple_eh_else_e_body): Use it.
8195 (gimple_try_eval_ptr): New function.
8196 (gimple_try_eval): Use it.
8197 (gimple_try_cleanup_ptr): New function.
8198 (gimple_try_cleanup): Use it.
8199 (gimple_wce_cleanup_ptr): New function.
8200 (gimple_wce_cleanup): Use it.
8201 (gimple_omp_body_ptr): New function.
8202 (gimple_omp_body): Use it.
8203 (gimple_omp_for_pre_body_ptr): New function.
8204 (gimple_omp_for_pre_body): Use it.
8205 (gimple_transaction_body_ptr): New function.
8206 (gimple_transaction_body): Use it.
8207 (gsi_split_seq_before): Adjust to return nothing and take pointer
8209 (gsi_set_stmt): Declare.
8210 (gsi_replace_with_seq): Declare.
8211 (walk_gimple_seq_mod): Declare.
8212 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
8214 * gimple-iterator.c (gsi_set_stmt): New function.
8215 (gsi_split_seq_before): Return new sequence via pointer argument.
8216 (gsi_replace): Use gsi_set_stmt.
8218 * tree-ssa-loop-im.c (move_computations_stmt): First remove
8220 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
8221 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
8223 (reserve_phi_args_for_new_edge): Change call to above,
8226 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
8227 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
8228 iterators. Adjust call to lower_omp.
8229 (lower_lastprivate_clauses): Adjust call to lower_omp.
8230 (lower_reduction_clauses): Ditto.
8231 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
8232 (lower_omp_sections): Don't explicitely count sequence length,
8233 nullify lowered bodies earlier, ensure stmts are part of only
8234 one sequence, adjust call to lower_omp.
8235 (lower_omp_single): Ensure stmts are part of only one sequence,
8236 adjust call to lower_omp.
8237 (lower_omp_master): Ditto.
8238 (lower_omp_ordered): Ditto.
8239 (lower_omp_critical): Ditto.
8240 (lower_omp_for): Ditto.
8241 (lower_omp_taskreg): Ditto, tidy.
8242 (lower_omp_1): Adjust calls to lower_omp.
8243 (execute_lower_omp): Ditto.
8244 (lower_omp): Adjust to take pointer to sequence.
8245 (diagnose_sb_2): Use walk_gimple_seq_mod.
8246 (diagnose_omp_structured_block_errors): Ditto and set possibly
8247 changed function body.
8248 * gimple-low.c (lower_function_body): Set function body after
8250 (lower_sequence): Adjust to take pointer to sequence.
8251 (lower_omp_directive): Ensure stmt isn't put twice into the
8252 sequence, adjust call to lower_sequence.
8253 (lower_stmt): Adjust calls to lower_sequence.
8254 (lower_gimple_bind): Ditto.
8255 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
8256 * tree-nested.c (walk_body): Take pointer to sequence, use
8257 walk_gimple_seq_mod.
8258 (walk_function): Adjust call to walk_body, set possibly changed body.
8259 (walk_gimple_omp_for): Adjust calls to walk_body.
8260 (convert_nonlocal_omp_clauses): Ditto.
8261 (convert_nonlocal_reference_stmt): Ditto.
8262 (convert_local_omp_clauses): Ditto.
8263 (convert_local_reference_stmt): Ditto.
8264 (convert_tramp_reference_stmt): Ditto.
8265 (convert_gimple_call): Ditto.
8266 (convert_nl_goto_reference): Use local iterator copy.
8267 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
8268 but taking pointer to sequence, ensure gsi_start is called with
8270 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
8271 asserting that the sequence head didn't change.
8272 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
8273 walk_gimple_seq_mod.
8274 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
8275 (execute_lower_tm): Ditto, and set possibly changed body.
8276 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
8277 call gsi_start with that lvalue.
8278 (replace_goto_queue_stmt_list): Ditto.
8279 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
8280 (replace_goto_queue): Ditto.
8281 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
8282 (lower_try_finally_onedest): Ditto.
8283 (lower_try_finally_copy): Ditto.
8284 (lower_try_finally_switch): Ditto.
8285 (lower_try_finally): Ditto.
8286 (lower_eh_filter): Ditto.
8287 (lower_eh_must_not_throw): Ditto.
8288 (lower_cleanup): Ditto.
8289 (lower_eh_constructs_2): Ditto.
8290 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
8291 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
8292 set possibly changed body.
8293 (optimize_double_finally): Call gsi_start with lvalue.
8295 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
8296 (gimple_split_block): Ditto.
8297 (gimple_merge_blocks): Use gsi_start_phis.
8298 (move_stmt_r): Use walk_gimple_seq_mod.
8299 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
8300 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
8301 (rebuild_cgraph_edges): Ditto.
8302 (cgraph_rebuild_references): Ditto.
8303 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
8304 * tree-inline.c (copy_phis_for_bb): Ditto.
8305 * tree-ssa-dce.c: Ditto.
8307 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
8309 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
8310 Andi Kleen <ak@linux.intel.com>
8312 * coretypes.h (MEMMODEL_MASK): New.
8313 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
8314 and return new variable.
8315 (expand_builtin_atomic_exchange): Mask memmodel values.
8316 (expand_builtin_atomic_compare_exchange): Ditto.
8317 (expand_builtin_atomic_load): Ditto.
8318 (expand_builtin_atomic_store): Ditto.
8319 (expand_builtin_atomic_clear): Ditto.
8320 * doc/extend.texi: Mention port-dependent memory model flags.
8321 * config/i386/cpuid.h (bit_HLE): New.
8322 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8324 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
8325 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
8326 (ix86_target_string)<-mhle>: New.
8327 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
8328 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
8329 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
8330 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
8331 enabled for generic, generic64 and core-avx2.
8332 (ix86_print_operand): Generate HLE lock prefixes.
8333 (ix86_memmodel_check): New.
8334 (TARGET_MEMMODEL_CHECK): Ditto.
8335 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
8336 (IX86_HLE_ACQUIRE): Ditto.
8337 (IX86_HLE_RELEASE): Ditto.
8338 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
8339 * config/i386/i386.opt (mhle): Ditto.
8340 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
8341 success model to instruction emitter.
8342 (atomic_fetch_add<mode>): Ditto.
8343 (atomic_exchange<mode>): Ditto.
8344 (atomic_add<mode>): Ditto.
8345 (atomic_sub<mode>): Ditto.
8346 (atomic_<code><mode>): Ditto.
8347 (*atomic_compare_and_swap_doubledi_pic): Ditto.
8348 (atomic_compare_and_swap_single<mode>): Define and use argument
8350 (atomic_compare_and_swap_double<mode>): Ditto.
8351 * configure.ac: Check if assembler support HLE prefixes.
8352 * configure: Regenerate.
8355 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
8358 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
8360 (gimplify_switch_expr): ... here.
8361 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
8362 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
8363 to clean up case labels with values outside the index type range.
8364 (simplify_gimple_switch): Call it if something changed.
8365 Remove strange and unnecessary assert.
8367 2012-05-02 Richard Guenther <rguenther@suse.de>
8369 * fold-const.c (div_if_zero_remainder): sizetypes no longer
8371 (int_const_binop_1): New worker for int_const_binop with
8372 overflowable parameter. Pass it through to force_fit_type_double.
8373 (int_const_binop): Wrap around int_const_binop_1 with overflowable
8375 (size_binop_loc): Call int_const_binop_1 with overflowable equal
8376 to minus one, forcing overflow detection for even unsigned types.
8377 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
8378 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
8379 * stor-layout.c (initialize_sizetypes): sizetypes no longer
8381 (layout_type): For zero-sized arrays ignore overflow on the
8383 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
8384 (bit_value_binop_1): Likewise.
8385 * tree.c (double_int_to_tree): Likewise.
8386 (double_int_fits_to_tree_p): Likewise.
8387 (force_fit_type_double): Likewise.
8388 (host_integerp): Likewise.
8389 (int_fits_type_p): Likewise.
8390 * varasm.c (output_constructor_regular_field): Sign-extend the
8391 field-offset to cater for negative offsets produced by the Ada
8393 * omp-low.c (extract_omp_for_data): Convert the loop step to
8394 signed for pointer adjustments.
8396 2012-05-02 Richard Guenther <rguenther@suse.de>
8398 * tree.c (valid_constant_size_p): New function.
8399 * tree.h (valid_constant_size_p): Declare.
8400 * cfgexpand.c (expand_one_var): Adjust check for too large
8401 variables by using valid_constant_size_p.
8402 * varasm.c (assemble_variable): Likewise.
8404 * c-decl.c (grokdeclarator): Properly check for sizes that
8405 cover more than half of the address-space.
8407 2012-05-02 Jakub Jelinek <jakub@redhat.com>
8409 PR tree-optimization/53163
8410 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
8411 return value from compute_all_dependences.
8413 PR rtl-optimization/53160
8414 * ree.c (combine_reaching_defs): Handle the case where cand->insn
8415 has been modified by ree pass already.
8417 2012-05-01 Ian Lance Taylor <iant@google.com>
8420 * c-decl.c (build_compound_literal): Make the decl readonly if it
8421 an array of a readonly type.
8422 * gimplify.c (gimplify_compound_literal_expr): Add fallback
8423 parameter. Change all callers. If the decl is not addressable
8424 and is not an l-value, make it readonly.
8426 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
8428 * ira.c (allocated_reg_info_size): New static variable.
8429 (expand_reg_info): Manage it. Call
8430 setup_preferred_alternate_classes_for_new_pseudos.
8431 (ira): Don't do it here. Remove local allocated_reg_info_size,
8432 set the global before calling find_moveable_pseudos.
8433 (find_moveable_pseudos): Call expand_reg_info rather than
8436 2012-05-01 Richard Henderson <rth@redhat.com>
8438 * common.opt (fsync-libcalls): New.
8439 * doc/invoke.texi: Document it.
8440 * optabs.c (init_sync_libfuncs): Honor it.
8442 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
8443 Richard Sandiford <r.sandiford@uk.ibm.com>
8445 PR rtl-optimization/52543
8446 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
8448 * lower-subreg.h: New file.
8449 * target-globals.h (this_target_lower_subreg): Declare.
8450 (target_globals): Add lower_subreg;
8451 (restore_target_globals): Restore this_target_lower_subreg.
8452 * target-globals.c: Include it.
8453 (default_target_globals): Add default_target_lower_subreg.
8454 (save_target_globals): Initialize target_lower_subreg.
8455 * rtl.h (init_lower_subreg): Added declaration.
8456 * toplev.c (backend_init_target): Call initializer for lower-subreg
8458 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
8459 (default_target_lower_subreg): New variable.
8460 (this_target_lower_subreg): Likewise.
8461 (twice_word_mode, choices): New macros.
8462 (shift_cost, compute_splitting_shift, compute_costs)
8463 (init_lower_subreg): New functions.
8464 (resolve_simple_move): Add speed_p argument. Check choices.
8465 (find_pseudo_copy): Don't check the mode size here.
8466 (resolve_simple_move): Assert the mode size.
8467 (find_decomposable_shift_zext): Add speed_p argument and return
8468 a bool. Check choices.
8469 (resolve_shift_zext): Add comment.
8470 (dump_shift_choices, dump_choices): New functions.
8471 (decompose_multiword_subregs): Dump list of profitable
8472 transformations. Add code to skip non profitable transformations.
8473 Update calls to simple_move and find_decomposable_shift_zext.
8475 2012-05-01 Ian Bolton <ian.bolton@arm.com>
8476 Sameera Deshpande <sameera.deshpande@arm.com>
8477 Greta Yorsh <greta.yorsh@arm.com>
8479 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
8480 (thumb1_unexpanded_epilogue): ...this.
8481 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
8482 (thumb1_unexpanded_epilogue): ...this.
8483 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
8484 (thumb1_unexpanded_epilogue): ...this.
8486 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
8488 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
8489 comparing enumeration values. Update comments.
8491 2012-05-01 Alan Modra <amodra@gmail.com>
8494 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
8495 load_cr_save, add_crlr_cfa_restore): New functions.
8496 (rs6000_restore_saved_cr): Rename to..
8497 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
8498 (rs6000_emit_epilogue): Use new functions. Adjust condition
8499 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
8500 regs when using out-of-line restore only when shrink wrapping.
8502 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8505 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
8506 calls to cgraph_node_name in xstrdup.
8507 (ipa_make_edge_direct_to_target): Ditto.
8508 * cgraph.c (dump_cgraph_node): Ditto.
8509 * tree-sra.c (convert_callers_for_node): Ditto.
8510 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
8511 * ipa-cp.c (perhaps_add_new_callers): Ditto.
8512 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
8513 (cgraph_materialize_all_clones): Ditto.
8514 * ipa-inline.c (report_inline_failed_reason): Ditto.
8515 (want_early_inline_function_p): Ditto.
8516 (edge_badness): Ditto.
8517 (update_edge_key): Ditto.
8518 (flatten_function): Ditto.
8519 (ipa_inline): Ditto.
8520 (inline_always_inline_functions): Ditto.
8521 (early_inline_small_functions): Ditto.
8523 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8526 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
8527 constraints 0 and 1.
8529 012-04-30 Jan Hubicka <jh@suse.cz>
8531 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
8532 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
8533 (cgraph_add_to_same_comdat_group): Remove.
8534 (cgraph_add_asm_node): Move to cgraphunit.c.
8535 (cgraph_make_decl_local): Move to symtab.c
8536 (cgraph_make_node_local_1): Update.
8537 (cgraph_can_remove_if_no_direct_calls_and): Update.
8538 (used_from_object_file_p): Update.
8539 (resolution_used_from_other_file_p): Move to symtab.c
8540 (cgraph_used_from_object_file_p): move to symtab.c
8541 (verify_cgraph_node): Verify same comdat groups.
8542 * cgraph.h (cgraph_asm_node): Rename to ...
8543 (asm_node): ... this one.
8544 (cgraph_asm_nodes): Rename to ...
8545 (asm_nodes): ... this one.
8546 (symtab_add_to_same_comdat_group): New function.
8547 (symtab_dissolve_same_comdat_group_list): New function.
8548 (symtab_used_from_object_file_p): Declare.
8549 (symtab_make_decl_local): Declare.
8550 (cgraph_add_to_same_comdat_group): Remove.
8551 (cgraph_add_asm_node): Remove.
8552 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
8554 (cgraph_finalize_compilation_unit): Rename to ...
8555 (finalize_compilation_unit): ... this one.
8556 (cgraph_optimize): Rename to ....
8557 (compile): ... this one.
8558 (add_asm_node): Declare.
8559 (fixup_same_cpp_alias_visibility): Declare.
8560 (cgraph_make_decl_local): Remove.
8561 (varpool_assemble_pending_decls): Rename to ...
8562 (varpool_output_variables): ... this one.
8563 (varpool_remove_unreferenced_decls): Remove.
8564 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
8565 (preserve_function_body_p): Make static.
8566 * toplev.c (compile_file): Update comments; update.
8567 * cgraphunit.c: Update comments.
8568 (cgraph_expand_all_functions): Rename to ...
8569 (expand_all_functions): ... this one; update.
8570 (cgraph_mark_functions_to_output): Rename to ...
8571 (mark_functions_to_output): ... this one; cleanup.
8572 (cgraph_output_pending_asms): Remove prototype.
8573 (asm_nodes, asm_last_node): New static vars.
8574 (cgraph_process_new_functions): Update.
8575 (cgraph_reset_node): Cleanup; add comment.
8576 (cgraph_add_new_function): Update.
8577 (cgraph_output_pending_asms): Rename to ...
8578 (output_asm_statements): ... this one.
8579 (add_asm_node): New function.
8580 (fixup_same_cpp_alias_visibility): New function based on code
8581 in cgraph_analyze_function.
8582 (cgraph_analyze_function): Use it.
8583 (cgraph_order_sort): Update.
8584 (cgraph_output_in_order): Update.
8585 (cgraph_function_versioning): Update.
8586 (cgraph_optimize): Rename to ...
8587 (compile): ... this one; initialize streamer hooks here.
8588 (cgraph_finalize_compilation_unit): Rename to ...
8589 (finalize_compilation_unit): ... this one; do not initialize streamer
8591 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
8592 * dwarf2out.c: Update ocmment.
8593 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
8594 * method.c (use_thunk): Likewise.
8595 * semantics.c (maybe_add_lambda_conv_op): Likewise.
8596 * decl2.c (maybe_emit_vtables): Likewise.
8597 (cp_write_global_declarations): Use finalize_compilation_unit.
8598 * parser.c (cp_parser_asm_definition): Use add_asm_node.
8599 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
8600 * c-decl.c (c_write_global_declarations): Use
8601 finalize_compilation_unit.
8602 * langhooks.c (write_global_declarations): Update.
8603 * ipa.c (cgraph_externally_visible_p): Update.
8604 (dissolve_same_comdat_group_list): Remove.
8605 (function_and_variable_visibility): Update.
8606 * symtab.c: Inlcude lto-streamer.h and rtl.h
8607 (ld_plugin_symbol_resolution_names): New.
8608 (symtab_add_to_same_comdat_group): New.
8609 (symtab_dissolve_same_comdat_group_list): New.
8610 (resolution_used_from_other_file_p): Move here from cgraph.c
8611 (symtab_used_from_object_file_p): New.
8612 (symtab_make_decl_local): New.
8613 * passes.c (register_pass): Update comments.
8614 * c-parser.c (c_parser_asm_definition): Update.
8615 * varpool.c (varpool_analyze_node): Use
8616 fixup_same_cpp_alias_visibility.
8617 (varpool_remove_unreferenced_decls): Make static.
8618 (varpool_assemble_pending_decls): Rename to ...
8619 (varpool_output_variables): ... this one; call
8620 varpool_remove_unreferenced_decls.
8621 (varpool_used_from_object_file_p): Remove.
8623 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
8626 * c-typeck.c (build_array_ref): Call
8627 convert_vector_to_pointer_for_subscript.
8628 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
8630 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8632 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
8633 to compile-time "mode == <MODE>mode" checks.
8634 (and splitter): Ditto.
8636 2012-04-30 Richard Henderson <rth@redhat.com>
8638 * config/arm/arm.md (UNSPEC_LL): New.
8639 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
8640 (arm_load_exclusivedi): Use %H0.
8642 2012-04-30 Jason Merrill <jason@redhat.com>
8644 * dwarf2out.c (comdat_symbol_id): Add const.
8645 (union die_symbol_or_type_node): Add const to die_symbol.
8646 (output_die_symbol, output_die, output_comp_unit): Adjust.
8648 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
8650 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
8651 * config/arm/neon.md (negdi2_neon): New insn.
8652 Also add splitters for core and NEON registers.
8654 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
8656 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
8657 (arm_print_operand): Add 'x' format.
8658 * config/arm/constraints.md (Dn): Allow const_int.
8659 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
8660 Use 'x' format to print constants.
8661 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
8662 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
8664 (movdi_vfp_cortexa8): Likewise.
8666 2012-04-30 Ian Bolton <ian.bolton@arm.com>
8667 Sameera Deshpande <sameera.deshpande@arm.com>
8668 Greta Yorsh <greta.yorsh@arm.com>
8670 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
8671 * config/arm/arm.c (ldm_stm_operation_p): New function.
8672 * config/arm/predicates.md (load_multiple_operation): Update predicate.
8673 (store_multiple_operation): Likewise.
8675 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
8676 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
8677 * config/arm/predicates.md (load_multiple_operation): Add arguments.
8678 (store_multiple_operation): Likewise.
8680 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8682 * config/i386/i386.md (and<mode>3): Expand masking operations with
8683 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
8684 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
8686 2012-04-30 Dodji Seketeli <dodji@redhat.com>
8688 Add -Wvarargs option
8689 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
8690 argument for the various warning_at calls.
8691 * docs/invoke.texi: Update the documentation.
8693 2012-04-30 Dodji Seketeli <dodji@redhat.com>
8695 Switch -ftrack-macro-expansion=2 on by default.
8696 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
8699 Fix va_start related location
8700 * builtins.c (fold_builtin_next_arg): Unwinds to the first
8701 location in real source code.
8703 Make conversion warnings work on NULL with -ftrack-macro-expansion
8704 * input.h (expansion_point_location_if_in_system_header): Declare
8706 * input.c (expansion_point_location_if_in_system_header): Define it.
8708 Fix -Wuninitialized for -ftrack-macro-expansion
8709 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
8710 declaration. Use linemap_location_before_p for source locations.
8712 Strip "<built-in>" loc from displayed expansion context
8713 * input.c (expand_location_1): When expanding to spelling location
8714 in a context of a macro expansion, skip reserved system header
8715 locations. Update comments. * tree-diagnostic.c
8716 (maybe_unwind_expanded_macro_loc): Likewise.
8718 Make expand_location resolve to locus in main source file
8719 * input.c (expand_location_1): New. Takes a parameter to choose
8720 whether to resolve the location to spelling or expansion point.
8721 Was factorized from ...
8722 (expand_location): ... here.
8723 (expand_location_to_spelling_point): New. Implemented in terms of
8725 * diagnostic.c (diagnostic_build_prefix): Use the new
8726 expand_location_to_spelling_point instead of expand_location.
8728 Fix PCH crash on GTYed pointer-to-scalar field of a struct
8729 * gengtype.c (write_types_process_field): Force second argument of
8730 the call to the PCH object hierarchy walker to be 'x'.
8732 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
8734 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
8735 predicate to discriminate types.
8737 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8739 * doc/invoke.texi (Wmissing-format-attribute): Document as an
8740 alias of Wsuggest-attribute=format.
8741 * c-typeck.c (convert_for_assignment): Replace
8742 Wmissing-format-attribute with Wsuggest-attribute=format.
8743 (digest_init): Likewise.
8745 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8747 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
8748 * common.opt (Wmissing-noreturn): Alias of
8749 -Wsuggest-attribute=noreturn.
8751 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
8754 * config/cris/cris.md (andqu): New peephole2.
8755 (andu): Tweak head comment.
8757 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
8758 Steven Bosscher <steven@gcc.gnu.org>
8759 Maxim Kuvyrkov <maxim@codesourcery.com>
8761 PR tree-optimization/38785
8762 * common.opt (ftree-partial-pre): New option.
8763 * doc/invoke.texi: Document it.
8764 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
8765 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
8767 (execute_pre): Use flag_tree_partial_pre.
8769 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8772 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
8775 2012-04-27 Ollie Wild <aaw@google.com>
8777 * doc/invoke.texi (Wliteral-suffix): Document new option.
8779 2012-04-27 Tom Tromey <tromey@redhat.com>
8781 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
8782 (dwarf_tag_name): Use get_DW_TAG_name.
8783 (dwarf_attr_name): Use get_DW_AT_name.
8784 (dwarf_form_name): Use get_DW_FORM_name.
8785 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
8787 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
8789 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
8790 arguments are -1 and 0, by negating the result of the conditional.
8792 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
8795 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
8797 2012-04-27 Richard Guenther <rguenther@suse.de>
8799 * tree-flow.h (is_hidden_global_store): Remove.
8800 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
8801 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
8802 (stmt_may_clobber_global_p): Likewise.
8803 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
8804 (stmt_may_clobber_global_p): Likewise.
8805 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
8806 stmt_may_clobber_global_p.
8807 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
8809 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
8811 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
8814 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
8815 reorganize some fields and update comments. Rename bit_test_uniq
8816 and bit_test_count to uniq resp. count. Remove bit_test_bb.
8817 (collect_switch_conv_info): New function, collects info about a
8818 GIMPLE_SWITCH into a struct switch_conv_info.
8819 (check_range): Simplify to use pre-recorded info. Fix think-o in
8820 range-branch ratio check.
8821 (check_process_case): Remove function.
8822 (check_all_empty_except_final): New function, verifies that all
8823 non-final basic blocks are empty.
8824 (process_switch): Simplify to use pre-recorded info. Call
8825 collect_switch_conv_info to do that. Assert that degenerate switch
8826 statements have been cleaned up.
8828 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
8831 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
8833 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8836 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
8838 2012-04-27 Tom de Vries <tom@codesourcery.com>
8840 PR tree-optimization/51879
8841 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
8842 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
8844 (defs_to_varying): ... here. Don't set use_processed.
8845 (visit_reference_op_call): Handle gimple_vdef.
8846 Handle case that lhs is NULL_TREE.
8847 (visit_use): Use mark_use_processed. Handle calls with side-effect
8848 using visit_reference_op_call.
8850 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
8852 * sched-deps.c (fixup_sched_groups): Rename to...
8853 (chain_to_prev_insn): ...this.
8854 (chain_to_prev_insn_p): New function.
8855 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
8857 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
8859 * sched-int.h (_haifa_insn_data): Move priority_status.
8861 (INSN_MODEL_INDEX): New macro.
8862 * haifa-sched.c (insn_delay): New function.
8863 (sched_regno_pressure_class): Update commentary.
8864 (mark_regno_birth_or_death): Pass the liveness bitmap and
8865 pressure array as arguments, instead of using curr_reg_live and
8866 curr_reg_pressure. Only update the pressure if the bit in the
8867 liveness set has changed.
8868 (initiate_reg_pressure_info): Always trust the live-in set for
8869 SCHED_PRESSURE_MODEL.
8870 (initiate_bb_reg_pressure_info): Update call to
8871 mark_regno_birth_or_death.
8872 (dep_list_size): Take the list as argument.
8873 (calculate_reg_deaths): New function, extracted from...
8874 (setup_insn_reg_pressure_info): ...here.
8875 (MODEL_BAR): New macro.
8876 (model_pressure_data, model_insn_info, model_pressure_limit)
8877 (model_pressure_group): New structures.
8878 (model_schedule, model_worklist, model_insns, model_num_insns)
8879 (model_curr_point, model_before_pressure, model_next_priority):
8881 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
8882 (MODEL_INSN_INFO, MODEL_INSN): New macros.
8883 (model_index, model_update_limit_points_in_group): New functions.
8884 (model_update_limit_points, model_last_use_except): Likewise.
8885 (model_start_update_pressure, model_update_pressure): Likewise.
8886 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
8887 (model_excess_cost, model_dump_pressure_points): Likewise.
8888 (model_set_excess_costs): Likewise.
8889 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
8890 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
8891 schedule as an alternative tie-breaker. Update the call to
8893 (ready_sort): Call model_set_excess_costs.
8894 (update_register_pressure): Update call to mark_regno_birth_or_death.
8895 Rely on that function to check liveness rather than doing it here.
8896 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
8897 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
8898 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
8899 (model_record_pressure, model_record_pressures): New functions.
8900 (model_record_final_pressures, model_add_successors_to_worklist)
8901 (model_promote_predecessors, model_choose_insn): Likewise.
8902 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
8903 (model_start_schedule, model_finalize_pressure_group): Likewise.
8904 (model_end_schedule): Likewise.
8905 (schedule_insn): Say when we're scheduling the next instruction
8906 in the model schedule.
8907 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
8908 (queue_to_ready): Do not add instructions that are
8909 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
8910 Always allow the next instruction in the model schedule to be added.
8911 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8912 and delay for SCHED_PRESSURE_MODEL too.
8913 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
8914 SCHED_PRIORITY_MODEL, but also take the DFA into account.
8915 (schedule_block): Call model_start_schedule and model_end_schedule.
8916 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
8917 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8918 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
8920 (sched_finish): Update accordingly.
8921 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8922 to SCHED_PRESSURE_MODEL.
8923 (add_jump_dependencies): Update call to dep_list_size.
8924 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
8925 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8926 to SCHED_PRESSURE_MODEL.
8927 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
8928 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
8929 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8930 handling to SCHED_PRESSURE_MODEL.
8932 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
8934 * common.opt (fsched-pressure-algorithm=): New option.
8935 * flag-types.h (sched_pressure_algorithm): New enum.
8936 * sched-int.h (sched_pressure_p): Replace with...
8937 (sched_pressure): ...this new variable.
8938 * haifa-sched.c (sched_pressure_p): Replace with...
8939 (sched_pressure): ...this new variable.
8940 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
8941 (update_reg_and_insn_max_reg_pressure, schedule_insn)
8942 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
8943 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
8944 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8945 (sched_analyze_insn): Likewise.
8946 * sched-rgn.c (schedule_region): Likewise.
8947 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
8949 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
8951 * PR middle-end/52997
8952 * ira.c (find_moveable_pseudos): Call resize_reg_info.
8955 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
8956 * expr.c (convert_move): Honor unsignedp when extending partial int
8958 * genmodes.c (complete_mode): Don't clear component field of partial
8960 (emit_mode_inner): Don't emit it however.
8961 (calc_wider_mode): Partial int modes widen to their component.
8963 2012-04-26 David S. Miller <davem@davemloft.net>
8965 * config/sparc/niagara4.md: New file.
8966 * config/sparc/sparc.md: Include it.
8967 * config/sparc/sparc.c (niagara4_costs): New processor costs.
8968 (sparc_option_override): Use it.
8969 (sparc_use_sched_lookahead): Return 2 for niagara4.
8970 (sparc_issue_rate): Likewise.
8972 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
8973 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
8974 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
8975 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
8976 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
8977 alignaddrldi_vis): Set type to gsr.
8978 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
8979 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
8980 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
8981 v<vis3_shift_patname><mode>3, fmean16_vis,
8982 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
8983 fucmp<code>8<P:mode>_vis): Set type to fga.
8984 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
8985 * config/sparc/niagara.md: Likewise.
8986 * config/sparc/niagara2.md: Likewise.
8987 * config/sparc/ultra3.md: Likewise, and fix type matching for
8988 us3_ialuX reservation.
8990 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8992 * reload.c (find_reloads): Change the loop nesting when trying an
8993 alternative with swapped operands.
8995 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8997 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
8998 comment. Delete unused parameter first_exp_point_map.
8999 (virt_loc_aware_diagnostic_finalizer): Update call.
9001 2012-04-26 Michael Hope <michael.hope@linaro.org>
9002 Richard Earnshaw <rearnsha@arm.com>
9004 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
9005 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
9006 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
9007 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
9009 2012-04-25 Sriraman Tallam <tmsriram@google.com>
9011 * doc/extend.texi: Document avx2 support.
9012 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
9014 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
9017 * config/cris/cris.md ("*andhi_lowpart_v32")
9018 ("*andqi_lowpart_v32"): Change first input-only operand from
9019 a (match_operand ...) to (match_dup 0). Drop alternatives with
9020 const_int-matching constraints for redundancy.
9021 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
9022 three-operand alternative.
9024 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9027 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
9028 instead expand it as zero extension.
9030 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
9033 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
9035 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9037 * common.opt (flag_debug_types_section): Default to 0.
9038 (dwarf_version): Default to 4.
9039 (dwarf_record_gcc_switches): Default to 1.
9040 (dwarf_strict): Default to 0.
9041 * toplev.c (process_options): Don't handle dwarf_strict
9042 or dwarf_version here.
9043 * config/vxworks.c (vxworks_override_options): Don't
9044 test whether dwarf_strict or dwarf_version are negative,
9045 instead test !global_options_set.x_dwarf_*.
9046 * config/darwin.c (darwin_override_options): Default to
9048 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
9049 and -fno-debug-types-section are now the default.
9051 2012-04-25 Jan Hubicka <jh@suse.cz>
9053 * cgraphunit.c: Update toplevel comment.
9054 (tree_rest_of_compilation): Merge into cgraph_expand_function.
9055 (cgraph_analyze_function): Make static.
9056 (cgraph_decide_is_function_needed): Make static.
9057 (cgraph_add_new_function): Use expand_function instead of
9058 rest_of_compilation.
9059 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
9060 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
9062 (cgraph_inline_p): Remove.
9063 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
9064 (init_cgraph): Add comment.
9065 * cgraphbuild.c (record_reference, mark_address, mark_load,
9066 mark_store): Do not call analyze_expr hook.
9067 * cgraph.c: Update toplevel comment.
9068 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
9069 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
9070 Move fere from cgraphunit.c
9071 (cgraph_mark_force_output_node): Move to cgraph.h
9072 * cgraph.h: Reorder so the comments match the function placement.
9073 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
9074 (cgraph_mark_force_output_node): Move here from cgraph.c
9075 * tree.c (free_lang_data): Do not clear analyze_expr hook.
9076 * ipa-inline-transform.c (preserve_function_body_p): New function.
9077 (inline_transform): Update.
9078 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
9079 * langhooks.h (lang_hooks_for_callgraph): Remove.
9080 (lang_hooks): Remove callgraph.
9081 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
9082 * varpool.c: Remove out of date comment.
9083 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
9084 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
9086 2012-04-25 Jan Hubicka <jh@suse.cz>
9089 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
9090 forward declaration.
9091 (cgraph_finalize_function): Finalize them here.
9092 * symtab.c (dump_symtab): Dump ctors and dtors.
9094 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9097 * stor-layout.c (get_best_mode): Don't return mode with bitsize
9098 larger than maxbits. Don't compute maxbits modulo align.
9099 Also check that unit bytes long store at bitpos / unit * unit
9100 doesn't affect bits beyond bitregion_end.
9101 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
9102 would not fit into bitregion_start ... bitregion_end + 1 bit region.
9103 (store_split_bit_field): Decrease unit close to end of bitregion_end
9104 if access is restricted in order to avoid mutual recursion.
9106 PR tree-optimization/53058
9107 * double-int.h (double_int_max_value, double_int_min_value): New
9109 * double-int.c (double_int_max_value, double_int_min_value): New
9111 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
9112 or GT_EXPR with double_int_max_value instead of double_int_mask.
9114 2012-04-25 Richard Guenther <rguenther@suse.de>
9116 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
9117 * tree-vect-loop.c (vect_transform_loop): Adjust.
9118 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
9119 the maximum number of iterations for the epilogue loop.
9120 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
9122 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9125 * c-typeck.c (set_nonincremental_init,
9126 set_nonincremental_init_from_string): Pass true instead of false
9127 as IMPLICIT to add_pending_init.
9129 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
9131 * c-typeck.c (pop_init_level): Improve diagnostics.
9133 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
9135 * compare-elim.c (try_eliminate_compare): Also handle operands with
9136 implicit extensions.
9138 2012-04-25 Alan Modra <amodra@gmail.com>
9140 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
9141 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
9142 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
9143 (no_global_regs_above): Delete.
9144 (no_global_regs): New function.
9145 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
9146 value for load multiple test.
9147 (savres_routine_syms): Increase size.
9148 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
9149 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
9150 rather than a number of boolean flags. Update all callers.
9151 (rs6000_savres_routine_name): Generate vector save/restore names.
9152 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
9153 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
9154 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
9155 and using_store_multiple. Expand uses. Don't always use r11 as
9156 frame reg when needed for out-of-line saves. Set up initial offset
9157 for out-of-line vector saves when buying stack frame. Handle pointer
9158 reg setup for out-of-line fp save. Emit call to out-of-line vector
9159 save function. Choose r11 or r12 for vrsave reg when available for
9161 (rs6000_output_function_prologue): Don't emit .extern for ELF.
9162 (rs6000_emit_epilogue): Choose a better frame reg when restoring
9163 from back-chain to suit out-of-line vector restore functions. Emit
9164 call to out-of-line vector restore function. Adjust register used
9165 for cr restore. Tweak pointer register setup for gpr restore.
9166 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
9168 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
9169 (V_SAVE_INLINE): Define.
9170 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
9172 2012-04-25 Alan Modra <amodra@gmail.com>
9174 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
9175 out-of-line save/restore for large frames. Don't disable
9176 out-of-line saves on ABI_AIX when using static chain reg.
9177 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
9178 clobber static chain reg, and tweak for out-of-line gpr saves
9181 2012-04-25 Alan Modra <amodra@gmail.com>
9183 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
9184 (rs6000_emit_prologue): Use the above to catch register overlap.
9186 2012-04-25 Alan Modra <amodra@gmail.com>
9188 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
9189 decl. Move logic selecting update reg to callers. Update all callers.
9190 (rs6000_emit_allocate_stack): Add copy_off param.
9191 (emit_frame_save): Don't handle reg+reg addressing.
9192 (ptr_regno_for_savres): New function, extracted from..
9193 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
9194 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
9195 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
9196 frame offset adjustment for out-of-line save with copy from sp.
9197 Simplify condition controlling whether cr is saved early or
9198 late. Use ptr_regno_for_savres to verify correct reg is set
9199 up for out-of-line saves. Pass the actual pointer reg used to
9200 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
9201 function. Rearrange spe vars so code is similar to that
9202 elsewhere in this function. Don't update frame_off when spe
9203 save code will restore r11. Use emit_frame_save for spe and
9204 gpr saves. Consolidate darwin out-of-line gpr setup with that
9205 for other abis. Don't assume frame_offset is zero and frame
9206 reg is sp when setting up altivec reg saves, and calculate
9207 exact offset requirement.
9208 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
9209 spe restore code. Consolidate darwin out-of-line gpr setup
9210 with that for other abis.
9212 2012-04-25 Alan Modra <amodra@gmail.com>
9214 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
9215 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
9217 (emit_frame_save): Delete frame_ptr param. Rename total_size to
9219 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
9220 and emit_frame_save calls. Cope with possibly missing note.
9222 2012-04-24 Sriraman Tallam <tmsriram@google.com>
9224 * config/i386/i386.c (build_processor_model_struct): New function.
9225 (make_var_decl): New function.
9226 (fold_builtin_cpu): New function.
9227 (ix86_fold_builtin): New function.
9228 (make_cpu_type_builtin): New function.
9229 (ix86_init_platform_type_builtins): New function.
9230 (ix86_expand_builtin): Expand new builtins by folding them.
9231 (ix86_init_builtins): Make new builtins to detect CPU type.
9232 (TARGET_FOLD_BUILTIN): New macro.
9233 (IX86_BUILTIN_CPU_INIT): New enum value.
9234 (IX86_BUILTIN_CPU_IS): New enum value.
9235 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
9236 * config/i386/i386-builtin-types.def: New function type.
9237 * testsuite/gcc.target/builtin_target.c: New testcase.
9238 * doc/extend.texi: Document builtins.
9240 2012-04-24 Olivier Hainque <hainque@adacore.com>
9242 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
9243 * toplev.c (process_options): Default to dwarf_version 2.
9244 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
9245 and dwarf_version 2.
9247 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9249 * tree-pretty-print.h (default_tree_printer): Do not declare.
9250 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
9252 (default_tree_diagnostic_starter): Make static.
9253 (default_tree_printer): Move to here. Make static.
9254 (tree_diagnostics_defaults): New.
9255 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
9256 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
9257 * toplev.c: Do not include tree-pass.h.
9258 (default_tree_printer): Move from here.
9259 (general_init): Use tree_diagnostics_defaults.
9261 2012-04-24 Chao-ying Fu <fu@mips.com>
9263 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
9264 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
9265 * config/mips/gnu-user.h
9266 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
9267 (GNU_USER_TARGET_LINK_SPEC): New define.
9268 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9269 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
9270 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
9271 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
9272 GNU_USER_TARGET_ENDFILE_SPEC.
9273 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
9274 (GNU_USER_TARGET_LINK_SPEC): New define.
9275 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9276 * config/mips/linux-common.h: New file.
9278 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9281 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
9282 (altivec_build_resolved_builtin): Call fully_fold_convert.
9284 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
9287 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
9289 2012-04-24 Richard Guenther <rguenther@suse.de>
9291 PR tree-optimization/53085
9292 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
9295 2012-04-24 Richard Guenther <rguenther@suse.de>
9297 * tree-if-conv.c (main_tree_if_conversion): Move bb under
9300 2012-04-24 Jim Meyering <meyering@redhat.com>
9302 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
9303 absence of an define_enum call.
9305 2012-04-24 Richard Guenther <rguenther@suse.de>
9307 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
9308 the epilogue loop is not re-used as unvectorized version
9309 record the its maximum number of iterations.
9311 2012-04-24 Andrew Pinski <apinski@cavium.com>
9313 * tree-ssa-forwprop.c (simplify_bitwise_binary):
9314 Don't directly use def1/def2.
9316 2012-04-24 Richard Guenther <rguenther@suse.de>
9318 PR tree-optimization/53098
9319 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
9322 2012-04-24 Andrew Pinski <apinski@cavium.com>
9325 * tree-ssa-forwprop.c (defcodefor_name): New function.
9326 (simplify_bitwise_binary): Use defcodefor_name instead of manually
9327 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
9328 Simplify "(~X | Y) & X" to "X & Y" and
9329 "(~X & Y) | X" to "X | Y".
9331 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9333 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
9334 validate_change to add clobbers if IN_GROUP is nonzero.
9335 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
9336 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
9338 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
9340 * config/s390/s390.c (insn_invalid_p): Likewise.
9342 2012-04-24 Jakub Jelinek <jakub@redhat.com>
9345 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
9346 (output_addressed_constants): Likewise.
9349 * varasm.c (get_section): Don't ICE for section conflicts with
9350 built-in section kinds.
9352 2012-04-23 DJ Delorie <dj@redhat.com>
9354 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
9355 (LIBSTDCXX): Change to CPP2.
9357 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
9360 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
9363 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
9365 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
9366 (*addsi_2_zext): Ditto.
9367 (*add<mode>_3): Ditto.
9368 (*addsi_3_zext): Ditto.
9369 (*add<mode>_5): Ditto.
9371 2012-04-23 Andrew Pinski <apinski@cavium.com>
9373 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
9374 (C & B) to (A OP0) & B.
9376 2012-04-23 Martin Jambor <mjambor@suse.cz>
9378 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
9379 temporaries created for a bitfield (reverting revision 122014).
9381 2012-04-23 Richard Guenther <rguenther@suse.de>
9383 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
9384 the condition using is_gimple_condexpr and avoid the not necessary
9386 (set_prologue_iterations): Likewise.
9387 (vect_loop_versioning): Likewise.
9389 2012-04-23 Richard Guenther <rguenther@suse.de>
9391 PR tree-optimization/53070
9392 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
9393 (main_tree_if_conversion): Verify we succeeded in that.
9395 2012-04-23 Jan Hubicka <jh@suse.cz>
9397 * lto-symtab.c (lto_cgraph_replace_node): Do not call
9398 mark_reahcable_node.
9399 * cgraph.c (cgraph_remove_node): Do not clear reachable.
9400 (cgraph_mark_reachable_node): Remove.
9401 (cgraph_mark_force_output_node): Do not set reachable.
9402 (dump_cgraph_node): Do not dump reachable.
9403 (cgraph_create_virtual_clone): Do not set reachable.
9404 * cgraph.h (cgraph_node): Remove reachable flag.
9405 (varpool_node): Remove reachable flag.
9406 (cgraph_mark_if_needed): Remove.
9407 (cgraph_mark_reachable_node): Remove.
9408 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
9409 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
9411 (cgraph_add_new_function): Likewise.
9412 (cgraph_mark_if_needed): Remove.
9413 (cgraph_analyze_function): Do not set target as reachable.
9414 (process_function_and_variable_attributes): Do not care about
9416 (cgraph_analyze_functions): Do not set reachable flags.
9417 (cgraph_mark_functions_to_output): Do not check reachability.
9418 (cgraph_copy_node_for_versioning): Do not set reachable flag.
9419 (dbxout_expand_expr): Update.
9420 * c-decl.c (merge_decls): Do not track changed externs.
9421 * ipa.c: Include pointer-set.h
9422 (enqueue_cgraph_node): Use reachable pointer set.
9423 (process_references): Likewise.
9424 (cgraph_remove_unreachable_nodes): Likewise.
9425 (whole_program_function_and_variable_visibility): Do not recompute
9427 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
9429 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
9431 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
9433 2012-04-23 Richard Guenther <rguenther@suse.de>
9436 * c-typeck.c (build_binary_op): Fix typo.
9438 2012-04-23 Jakub Jelinek <jakub@redhat.com>
9440 PR tree-optimizations/52891
9441 * tree-vect-patterns.c (adjust_bool_pattern): Use
9442 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
9443 but with non-standard precision.
9445 2012-04-22 Jan Hubicka <jh@suse.cz>
9447 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
9450 2012-04-22 Jan Hubicka <jh@suse.cz>
9452 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
9453 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9454 mark_load, mark_store): Do not mark varpool nodes as needed.
9455 * cgraph.c (cgraph_new_nodes): Remove.
9456 (cgraph_create_function_alias): Do not mark nodes as reachable.
9457 (cgraph_add_thunk): Likewise.
9458 (cgraph_mark_reachable_node): Do not manage the queue.
9459 * cgraph.h (cgraph_node): Remove next_needed.
9460 (varpool_nodes_queue): Remove next_needed and prev_needed.
9461 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
9462 (cgraph_new_nodes): Declare.
9463 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
9464 (varpool_analyze_pending_decls): Remove.
9465 (varpool_analyze_node): New.
9466 (varpool_mark_needed_node): Remove.
9467 (varpool_first_variable, varpool_next_variable): New inlines.
9468 (varpool_first_static_initializer, varpool_next_static_initializer):
9470 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
9471 (varpool_first_defined_variable): New inline.
9472 (varpool_next_defined_variable): New inline
9473 (FOR_EACH_VARIABLE): Reimplement.
9474 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
9475 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
9477 * cgraphunit.c (cgraph_new_nodes): Declare here.
9478 (enqueue_node): New function.
9479 (cgraph_process_new_functions): update for new
9480 node set; when constructing cgraph enqueue node for processing.
9481 (cgraph_add_new_function): Use new node set.
9482 (process_function_and_variable_attributes): Do not set varpool needed
9484 (referred_to_p): New function.
9485 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
9486 when varpool is in construction.
9487 (cgraph_analyze_functions): Rewrite.
9488 (cgraph_expand_all_functions): Update.
9489 (cgraph_output_in_order): Do not analyze pending decls; do not set
9491 (cgraph_optimize): Do not analyze pending decls.
9492 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
9493 in other partition; do not mark node as needed.
9494 * dwarf2out.c (reference_to_unused): Use analyzed flag.
9495 (premark_types_used_by_global_vars_helper): Likewise.
9496 * ipa.c (process_references): Do not call varpool_mark_needed_node.
9497 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
9499 (function_and_variable_visibility): Do not mark node as needed.
9500 (whole_program_function_and_variable_visibility): Likewise.
9501 * Makefile.in (gt-varpool.h): No longer needed.
9502 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
9503 (ipa_write_summaries): Do not use needed flag.
9504 * varpool.c: Do not include gt-varpool.h
9505 (x_varpool_nodes_queue, x_varpool_last_needed_node,
9506 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
9507 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
9509 (varpool_remove_node): Do not update the lists.
9510 (dump_varpool_node): Do not dump needed flag.
9511 (varpool_enqueue_needed_node): Remove.
9512 (varpool_mark_needed_node): Remove.
9513 (varpool_reset_queue): Remove.
9514 (varpool_finalize_decl): Move to cgraphunit.c
9515 (varpool_analyze_node): New functions based on former
9516 varpool_analyze_pending_decls.
9517 (varpool_analyze_pending_decls): Remove.
9518 (varpool_assemble_decl): Do not update the lists.
9519 (enqueue_node): New function.
9520 (varpool_remove_unreferenced_decls): Rewrite.
9521 (varpool_empty_needed_queue): Remove.
9522 (add_new_static_var): Do not mark node as needed.
9523 (varpool_create_variable_alias): Handle expansion state
9525 * except.c (output_ttype): Do not mark node as needed.
9526 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
9527 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
9529 * tree-switch-conversion.c (build_one_array): Likewise.
9531 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9534 * doc/invoke.texi (pedantic): Rename to Wpedantic.
9535 * common.opt (Wpedantic): New.
9536 (pedantic): Alias Wpedantic.
9537 * diagnostic.c (warning_at): Likewise.
9538 * c-decl.c (diagnose_mismatched_decls): Likewise.
9539 (build_array_declarator): Likewise.
9540 (mark_forward_parm_decls):
9541 (check_bitfield_type_and_width): Likewise.
9542 (grokdeclarator): Likewise.
9543 (grokfield): Likewise.
9544 (finish_struct): Likewise.
9545 (build_enumerator): Likewise.
9546 (store_parm_decls_oldstyle): Likewise.
9547 (declspecs_add_qual): Likewise.
9548 (declspecs_add_type): Likewise.
9549 (finish_declspecs): Likewise.
9550 * c-typeck.c (composite_type): Likewise.
9551 (comp_target_types): Likewise.
9552 (build_array_ref): Likewise.
9553 (pointer_diff): Likewise.
9554 (build_unary_op): Likewise.
9555 (build_conditional_expr): Likewise.
9556 (build_c_cast): Likewise.
9557 (convert_for_assignment): Likewise.
9558 (maybe_warn_string_init): Likewise.
9559 (digest_init): Likewise.
9560 (pop_init_level): Likewise.
9561 (set_init_index): Likewise.
9562 (c_finish_goto_label): Likewise.
9563 (c_finish_return): Likewise.
9564 (do_case): Likewise.
9565 (build_binary_op): Likewise.
9566 * c-parser.c (static): Likewise.
9567 (c_parser_external_declaration): Likewise.
9568 (c_parser_declaration_or_fndef): Likewise.
9569 (c_parser_static_assert_declaration_no_se): Likewise.
9570 (c_parser_enum_specifier): Likewise.
9571 (c_parser_struct_or_union_specifier): Likewise.
9572 (c_parser_struct_declaration): Likewise.
9573 (c_parser_alignas_specifier): Likewise.
9574 (c_parser_braced_init): Likewise.
9575 (c_parser_initelt): Likewise.
9576 (c_parser_compound_statement_nostart): Likewise.
9577 (c_parser_conditional_expression): Likewise.
9578 (c_parser_alignof_expression): Likewise.
9579 (c_parser_postfix_expression): Likewise.
9580 (c_parser_postfix_expression_after_paren_): Likewise.
9581 (c_parser_objc_class_instance_variables): Likewise.
9582 (c_parser_objc_method_definition): Likewise.
9583 (c_parser_objc_methodprotolist): Likewise.
9585 2012-04-22 Ian Lance Taylor <iant@google.com>
9587 * godump.c (go_output_typedef): Dump size of structs.
9589 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
9591 Correcting transform_to_exit_first_loop + fix to PR46886
9592 * tree-parloops.c (transform_to_exit_first_loop): Remove
9593 setting of number of iterations according to the loop pattern.
9594 Duplicate from entry to exit->src instead of loop->latch.
9595 (pallelize_loops): Remove the condition preventing do-while loops.
9596 * tree-cfg.c (bool bb_in_region_p): New.
9597 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
9598 Adjust redirection of the duplicated iteration.
9600 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
9603 * rtl.def (ADDRESS): Use "i" rather than "w".
9604 * rtl.h (find_base_term): Delete.
9605 (may_be_sp_based_p): Declare.
9606 * rtl.c (rtx_code_size): Remove ADDRESS special case.
9607 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
9608 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
9610 (find_base_term): Make static.
9611 (may_be_sp_based_p): New function.
9612 * dse.c (record_store): Use it.
9613 * store-motion.c (store_killed_in_insn): Likewise.
9615 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
9617 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
9619 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9622 * c-typeck.c (inform_declaration): New.
9623 (build_function_call_vec): Do not pretty-print
9624 expressions when caret is enabled.
9625 (convert_arguments): Use inform_declaration.
9627 2012-04-20 Jim Meyering <meyering@redhat.com>
9629 * genmodes.c (make_complex_modes): Don't truncate a mode name of
9630 length 7 or more when prepending a "C". Suggested by Richard Guenther.
9632 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9634 PR rtl-optimization/44214
9635 * fold-const.c (exact_inverse): New function.
9636 (fold_binary_loc): Fold vector and complex division by constant into
9637 multiply by recripocal with flag_reciprocal_math; fold vector division
9638 by constant into multiply by reciprocal with exact inverse.
9640 2012-04-20 Jan Hubicka <jh@suse.cz>
9642 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
9644 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
9645 (cgraph_remove_node): Update.
9646 (cgraph_mark_needed_node): Remove.
9647 (cgraph_mark_force_output_node): New.
9648 (dump_cgraph_node): Do not dump needed flag.
9649 (cgraph_node_cannot_be_local_p_1): Update.
9650 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
9651 * cgraph.h (symtab_node_base): Add force_output flag.
9652 (cgraph_node): Remove needed flag.
9653 (varpool_node): Remove force_output flag.
9654 (cgraph_mark_needed_node): Remove.
9655 (cgraph_mark_force_output_node): New.
9656 (cgraph_only_called_directly_or_aliased_p,
9657 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
9658 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
9659 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
9660 (cgraph_add_new_function): Update.
9661 (cgraph_mark_if_needed): Update.
9662 (verify_cgraph_node): Update.
9663 (cgraph_analyze_function): Alias target is reachable.
9664 (process_function_and_variable_attributes): Update: externally_visible
9665 flag makes function reachable.
9666 (cgraph_analyze_functions): Update dumping.
9667 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9668 input_overwrite_node, input_varpool_node): Update streaming.
9669 * lto-streamer-out.c (produce_symtab): Use force_output.
9670 * ipa.c (process_references): Weakrefs must be processed.
9671 (cgraph_remove_unreachable_nodes): Likewise; update for new
9673 (varpool_externally_visible_p): Weakrefs are externally visible
9674 even if they are not.
9675 (function_and_variable_visibility): Update; when processing alias
9676 pair force the targets to be output.
9677 (whole_program_function_and_variable_visility): Use
9678 mark_reachable_node.
9679 * trans-mem.c (ipa_tm_mark_needed_node): Remove
9680 (ipa_tm_mark_force_output_node): New function.
9681 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
9682 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
9684 * varasm.c (mark_decl_referenced): Update.
9685 (find_decl_and_mark_needed): Remove.
9686 (find_decl): New function.
9687 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
9688 alias targets as needed.
9689 (dump_tm_clone_pairs): Update.
9690 * tree-inline.c (copy_bb): Update check.
9691 * symtab.c (dump_symtab_base): Dump force_output.
9692 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
9693 * passes.c (execute_todo): Fix dumping.
9694 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
9695 (varpool_analyze_pending_decls): Alias target is reachable.
9696 (varpool_create_variable_alias): Finalize weakrefs.
9698 2012-04-20 Jakub Jelinek <jakub@redhat.com>
9701 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
9702 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
9703 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
9704 macros instead of constants.
9705 * dse.c (record_store): Check for SP ADDRESS by comparing
9706 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
9707 XEXP to be stack_pointer_rtx.
9709 2012-04-20 Richard Guenther <rguenther@suse.de>
9711 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
9712 update_call_from_tree when propagating into a call.
9714 2012-04-20 Alan Modra <amodra@gmail.com>
9716 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
9717 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
9718 sp_offset to frame_off. Move world save code earlier.
9720 2012-04-20 Richard Guenther <rguenther@suse.de>
9722 PR tree-optimization/53050
9723 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
9724 Do only one transform on COND_EXPRs at the same time.
9726 2012-04-19 Jan Hubicka <jh@suse.cz>
9728 * symtab.c (dump_symtab_base): Revert accidental checkin.
9730 2012-04-20 Alan Modra <amodra@gmail.com>
9733 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
9734 static chain, set REST_INLINE_FPRS too.
9736 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
9738 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
9741 2012-04-20 Richard Guenther <rguenther@suse.de>
9743 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
9744 loops that can never run more often than the vectorization factor.
9746 2012-04-19 Jan Hubicka <jh@suse.cz>
9748 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
9750 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
9752 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
9754 2012-04-19 Jim Meyering <meyering@redhat.com>
9756 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
9757 We verified above that the string(including trailing NUL) fits in buf,
9760 2012-04-19 Richard Guenther <rguenther@suse.de>
9762 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
9763 for dumping DECL_SECTION_NAME.
9765 2012-04-19 Michael Matz <matz@suse.de>
9768 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
9769 (struct tree_vector): Adjust GTY length.
9770 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
9772 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
9774 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
9775 caller emitted the length calulation already.
9776 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
9777 before handling any of the fields for structs.
9779 2012-04-19 Richard Guenther <rguenther@suse.de>
9781 PR tree-optimization/53031
9782 * tree-vrp.c (adjust_range_with_scev): Revert back to
9783 using max_loop_iterations.
9785 2012-04-19 Michael Matz <matz@suse.de>
9787 * diagnostic.c (emit_diagnostic): Move va_end call after user
9789 (warning, warning_at, pedwarn, permerror): Ditto.
9791 2012-04-19 Richard Guenther <rguenther@suse.de>
9793 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
9796 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
9799 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
9800 the case *(X+const).
9802 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9804 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
9806 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9809 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
9810 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
9812 2012-04-19 Richard Guenther <rguenther@suse.de>
9814 PR rtl-optimization/44688
9815 * loop-iv.c (determine_max_iter): Only return max_iter.
9816 (iv_number_of_iterations): Also use the recorded loop bound
9817 on the maximum number of iterations.
9818 * loop-unroll.c (decide_unroll_runtime_iterations): Use
9819 max_iter to avoid unrolling loops that do not roll.
9820 (decide_unroll_stupid): Likewise.
9822 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
9824 * targhooks.c (default_case_values_threshold): Fix code style nit.
9826 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
9827 case range and type folding from here...
9828 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
9829 type, as documented in tree.def.
9831 2012-04-18 Jan Hubicka <jh@suse.cz>
9833 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
9835 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
9836 cgraph hash and same comdat groups.
9837 (cgraph_optimize): Verify symbol table.
9838 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
9839 (dissolve_same_comdat_group_list): Work on symtab nodes.
9840 (function_and_variable_visibility): Dissolve variable same comdat group
9842 * symtab.c: Include timevar.h
9843 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
9845 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
9847 * tree-switch-conversion.c (info): Remove global pass info.
9848 (check_range, check_process_case, check_final_bb, create_temp_arrays,
9849 free_temp_arrays, gather_default_values, build_constructors,
9850 array_value_type, build_one_array, build_arrays, gen_def_assigns,
9851 fix_phi_nodes, gen_inbound_check): Pass info around from ...
9852 (process_switch): ... here. Unify message format. Return a const
9853 char pointer to the failure reason message.
9854 (do_switchconv): Unify message format. Update process_switch usage.
9856 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
9857 * tree-cfg.c (edge_to_cases): Fix documentation.
9859 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
9861 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
9863 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9865 PR tree-optimization/52976
9866 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
9867 (possibly_move_powi): New function.
9868 (rewrite_expr_tree): Call possibly_move_powi.
9869 (rewrite_expr_tree_parallel): Likewise.
9870 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
9871 call add_to_ops_vec instead.
9873 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9875 PR tree-optimization/52976
9876 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
9877 (decrement_power): Likewise.
9878 (propagate_op_to_single_use): Likewise.
9879 (zero_one_operation): Handle __builtin_pow* calls in linearized
9880 expression trees; factor logic into propagate_op_to_single_use.
9881 (undistribute_ops_list): Allow operands with repeat counts > 1.
9883 2012-04-18 Richard Guenther <rguenther@suse.de>
9885 PR tree-optimization/44688
9886 * cfgloop.h (record_niter_bound): Declare.
9887 * tree-ssa-loop-niter.c (record_niter_bound): Export.
9888 Update the estimation with the upper bound here...
9889 (estimate_numbers_of_iterations_loop): ... instead of here.
9890 Do not forcefully reset a recorded upper bound.
9891 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
9892 Record the maximum number of loop iterations of the prologue loop.
9894 2012-04-18 Jan Hubicka <jh@suse.cz>
9896 * lto-symtab.c (lto_cgraph_replace_node): Update.
9897 * cgraphbuild.c (record_reference, record_type_list,
9898 record_eh_tables, mark_address, mark_load, mark_store): Update.
9899 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
9900 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
9902 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
9903 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
9904 * reload.c: Fix typo in comment.
9905 * rtlanal.c: Likewise.
9906 * tree-emultls.c (gen_emutls_addr): Update.
9907 * ipa-reference.c (analyze_function): Update.
9908 * cgraphunit.c (cgraph_analyze_function,
9909 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
9911 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
9912 (ipa_remove_reference): Likewise.
9913 (ipa_remove_all_refering): Rename to ...
9914 (ipa_remove_all_referring): ... this one; update.
9915 (ipa_dump_references): Update.
9916 (ipa_dump_referring): Update.
9917 (ipa_clone_references): Update.
9918 (ipa_clone_refering): Rename to ...
9919 (ipa_clone_referring): ... this one; update.
9920 (ipa_ref_cannot_lead_to_return): Update.
9921 (ipa_ref_has_aliases_p): Update.
9922 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
9924 (ipa_ref_type): Remove.
9925 (ipa_ref_ptr_u): Remove.
9926 (ipa_ref): Remove referencing, refered, refered_index, refering_type
9927 and refered_type; add referring, referred and referred_index.
9928 (ipa_ref_list): Rename refering to referring.
9929 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
9930 ipa_clone_references, ipa_clone_referring): Update prototypes.
9931 * lto-cgraph.c (referenced_from_other_partition_p): Update.
9932 (lto_output_ref): Update.
9933 (add_references): Update.
9934 (input_varpool_node): Update.
9935 (input_refs): Update.
9936 * ipa-ref-inline.h (ipa_ref_node): Update.
9937 (ipa_ref_varpool_node): Update.
9938 (ipa_ref_referring_node): Update.
9939 (ipa_ref_referring_varpool_node): Update.
9940 (ipa_ref_referring_ref_list): Update.
9941 (ipa_ref_referred_ref_list): Update.
9942 (ipa_ref_list_first_referring): Update.
9943 (ipa_empty_ref_list): Update.
9944 (ipa_ref_list_refering_iterate): Rename to ...
9945 (ipa_ref_list_referring_iterate): ... this one.
9946 * cse.c: Update comment.
9947 * ipa-utils.c (ipa_reverse_postorder): Update.
9948 * tree-ssa-alias.c: Update.
9949 * ipa-inline.c (reset_edge_caches): Update.
9950 (update_caller_keys): Update.
9951 * ipa-inline.h: Update comments.
9952 * jump.c: Update comment.
9953 * alias.c: Likewise.
9954 * ipa.c (process_references): Update.
9955 (cgraph_remove_unreachable_nodes): Likewise.
9956 (ipa_discover_readonly_nonaddressable_var): Likewise.
9957 (cgraph_address_taken_from_non_vtable_p): Likewise.
9958 * trans-mem.c (ipa_tm_execute): Update.
9959 * simplify-rtx.c: Fix comment.
9960 * rtl.c: Fix comment.
9961 * symtab.c (symtab_unregister_node): Update.
9962 * varpool.c (dump_varpool_node): Update.
9963 (varpool_analyze_pending_decls): Update.
9964 (assemble_aliases): Update.
9965 (varpool_for_node_and_aliases): Update.
9967 2012-04-18 Richard Guenther <rguenther@suse.de>
9969 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
9970 use_undefined_p parameter.
9971 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9972 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9974 (estimate_numbers_of_iterations): Likewise.
9975 (estimated_loop_iterations): Adjust.
9976 (max_loop_iterations): Likewise.
9977 (scev_probably_wraps_p): Likewise.
9978 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9979 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
9980 not max_loop_iterations.
9981 (execute_vrp): Remove explicit number of iterations estimation.
9983 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
9985 * config/i386/linux-common.h: New.
9987 * config.gcc: Add i386/linux-common.h before
9988 all i386/linux.h and i386/linux64.h usages.
9990 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
9991 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9992 * config/i386/gnu-user64.h: Likewise.
9994 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
9995 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
9996 (GNU_USER_TARGET_MATHFILE_SPEC): New.
9997 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
9999 2012-04-18 Jan Hubicka <jh@suse.cz>
10001 * cgraph.c (cgraph_node_name): Remove.
10002 (dump_cgraph_node): Use dump_symtab_base; reformat.
10003 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
10004 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
10006 (cgraph_node_name, varpool_node_name): Remove.
10007 (cgraph_node_asm_name, varpool_node_asm_name,
10008 cgraph_node_name, varpool_node_name): New.
10009 * tree-pass.h (TODO_dump_cgraph): Rename to ...
10010 (TODO_dump_symtab): ... this one.
10011 * ipa-cp (pass_ipa_cp): Update.
10012 * ia-reference.c (generate_summary, read_write_all_from_decl,
10013 propagate, ipa_reference_read_optimization_summary): Update.
10014 * cgraphunit.c (cgraph_analyze_functions): Update.
10015 (cgraph_optimize): Update.
10016 * ipa-ref.c (ipa_dump_references): Update.
10017 (ipa_dump_refering): Update.
10018 * ipa-inline.c (pass_ipa_inline): Update.
10019 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
10020 * ipa.c (pass_ipa_function_visibility,
10021 pass_ipa_whole_program_visibility): Update.
10022 * tree-sra.c (pass_early_ipa_sra): Update.
10023 * symtab.c: Include langhooks.h
10024 (symtab_node_asm_name): New.
10025 (symtab_node_name): New.
10026 (symtab_type_names): New static var.
10027 (dump_symtab_base): New.
10028 (dump_symtab_node, dump_symtab): New.
10029 (debug_symtab_node, debug_symtab): New.
10030 * tree-ssa-structalias.c: Dump symbol table.
10031 * pases.c (execute_todo): Handle TODO_dump_symtab instead
10032 of TODO_dump_cgraph.
10033 * varpoo.c (varpool_node_name): Remove.
10034 (dump_varpool_node): Use dump_symtab_base; reformat.
10036 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
10038 * doc/invoke.texi (Language Independent Options): @item should be
10041 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10044 * rtl.c (rtx_code_size): Handle ADDRESS.
10046 2012-04-17 Tom de Vries <tom@codesourcery.com>
10048 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
10049 is not a STMT_LIST.
10051 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
10054 * config/i386/sync.md (atomic_<code><mode>): Rename to
10055 atomic_<logic><mode>.
10057 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10059 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
10060 * alias.c (reg_base_value): Expand and update comment.
10061 (arg_base_value): New variable.
10062 (unique_id): Move up file.
10063 (unique_base_value, unique_base_value_p, known_base_value_p): New.
10064 (find_base_value): Use arg_base_value and known_base_value_p.
10065 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
10066 (find_base_term): Use known_base_value_p.
10067 (base_alias_check): Use unique_base_value_p.
10068 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
10069 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
10071 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
10073 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
10075 2012-04-17 Michael Matz <matz@suse.de>
10077 PR tree-optimization/18437
10078 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
10079 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
10080 (vect_check_strided_load): Declare.
10081 * tree-vect-data-refs.c (vect_check_strided_load): New function.
10082 (vect_analyze_data_refs): Use it to accept strided loads.
10083 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
10085 2012-04-17 Richard Guenther <rguenther@suse.de>
10087 PR middle-end/53011
10088 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
10089 loops when redirecting an entry or latch edge.
10091 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
10093 * sel-sched.c (sel_global_init): Revert previous change.
10095 2012-04-17 Richard Guenther <rguenther@suse.de>
10097 * tree-flow.h (array_at_struct_end_p): Move declaration ...
10098 * tree.h (array_at_struct_end_p): ... here.
10099 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
10100 * expr.c (array_at_struct_end_p): ... here. Rewrite.
10102 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
10104 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
10105 COST_TABLE): Remove.
10106 (estimate_case_costs): Remove.
10107 (expand_case): Do not call estimate_case_costs
10108 to set use_cost_table.
10109 (balance_case_nodes): Do not use use_cost_table.
10111 2012-04-16 Jan Hubicka <jh@suse.cz>
10113 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
10114 (hash_node, eq_node): Remove.
10115 (cgraph_create_node): Do not handle hashtable.
10116 (cgraph_get_node): Remove.
10117 (cgraph_insert_node_to_hashtable): Remove.
10118 (hash_node_by_assembler_name): Remove.
10119 (eq_assembler_name): Remove.
10120 (cgraph_node_for_asm): Rewrite.
10121 (cgraph_find_replacement_node): Break out from ...
10122 (cgraph_remove_node): ... here; do not maintain hashtables.
10123 (change_decl_assembler_name): Remove.
10124 (cgraph_clone_node): Do not maintain hashtables.
10125 * cgraph.h (const_symtab_node): New typedef.
10126 (cgraph_insert_node_to_hashtable): Remove.
10127 (symtab_get_node, symtab_node_for_asm,
10128 symtab_insert_node_to_hashtable): Declare.
10129 (cgraph_find_replacement_node): Declare.
10130 (cgraph_get_node, varpool_get_node): Turn into inlines.
10131 (cgraph, varpool): Work sanely on NULL pointers.
10132 (FOR_EACH_SYMBOL): New walker.
10133 * ipa-inline-transform.c (save_inline_function_body): Use
10134 symtab_insert_node_to_hashtable.
10135 * symtab.c: Include ggc.h and diagnostics.h
10136 (symtab_hash, assembler_name_hash): New static vars;
10137 (hash_node, eq_node, hash_node_by_assembler_name,
10138 eq_assembler_name, insert_to_assembler_name_hash,
10139 unlink_from_assembler_name_hash): New.
10140 (symtab_register_node): Update hashtables.
10141 (symtab_insert_node_to_hashtable): New.
10142 (symtab_unregister_node): Update hashtables.
10143 (symtab_get_node): New.
10144 (symtab_node_for_asm): New.
10145 (change_decl_assembler_name): New.
10146 * Makefile.in (symtab.o): Needs GTY.
10147 * varpool.c (varpool_hash): Remove.
10148 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
10149 (varpool_node): Rewrite using varpool_get_node.
10150 (varpool_remove_node): DO not maintain hashtables.
10151 (varpool_node_for_asm): Rewrite.
10153 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
10155 * doc/invoke.texi: Copy-edit to put verbs in the present tense
10156 when describing the current behavior of GCC.
10158 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
10160 * genemit.c (gen_exp): Remove ADDRESS handling.
10161 * genoutput.c (scan_operands): Likewise.
10162 * genpeep.c (match_rtx): Likewise.
10163 * genrecog.c (add_to_sequence): Likewise.
10165 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
10167 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
10169 2012-04-16 Martin Jambor <mjambor@suse.cz>
10171 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
10174 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
10177 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
10178 hints for 'A' operand types.
10180 2012-04-16 Jan Hubicka <jh@suse.cz>
10182 * cgraph.h (symtab_node_base): Add next and previous pointers.
10183 (cgraph_node): Remove next and preivous pointers.
10184 (varpool_node): Likewise; remove next/previous GTY marker;
10185 it is not type safe.
10186 (symtab_node_def): Update GTY marker
10187 (x_cgraph_nodes, cgraph_nodes): Remove.
10188 (symtab_nodes): New function.
10189 (cgraph_order): Rename to ...
10190 (symtab_order): ... this one.
10191 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
10193 (x_varpool_nodes, varpool_nodes): Remove.
10194 (FOR_EACH_STATIC_VARIABLE): Update.
10195 (symtab_function_p, symtab_variable_p): New function.
10196 (FOR_EACH_VARIABLE): Update.
10197 (varpool_first_variable, varpool_next_variable): New functions.
10198 (FOR_EACH_VARIABLE): Update.
10199 (cgraph_first_defined_function): Update.
10200 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
10201 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
10202 (cgraph_first_function, cgraph_next_function): New.
10203 (FOR_EACH_FUNCTION): Update.
10204 (cgraph_first_function_with_gimple_body,
10205 cgraph_next_function_with_gimple_body): Update.
10206 * symtab.c: New file.
10207 * cgraph.c: Update copyright dates.
10208 (x_cgraph_nodes, cgraph_order): Remove.
10209 (NEXT_FREE_NODE): Update.
10210 (SET_NEXT_FREE_NODE): New.
10211 (cgraph_create_node_1): Remove common code.
10212 (cgraph_create_node): Remove common code; call symtab_register_node.
10213 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
10214 (cgraph_add_asm_node): Update.
10215 (cgraph_clone_node): Register new node.
10216 * cgraphunit.c (process_function_and_variable_attributes): Update.
10217 (cgraph_analyze_functions): Update.
10218 (cgraph_analyze_functions): Update.
10219 (cgraph_output_in_order): Update.
10220 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
10222 * ipa-inline.c (recursive_inlining): Update.
10223 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
10224 * ipa.c (cgraph_remove_unreachable_nodes): Update.
10225 * Makefile.in: Add symtab.o
10226 * varpool.c (x_varpool_nodes): Remove
10227 (varpool_node): Remove common code; call symtab_register_node.
10228 (varpool_remove_node): Remove common code; call symtab_unregister_node.
10230 2012-04-16 Richard Guenther <rguenther@suse.de>
10232 PR middle-end/52977
10233 * tree.h (VECTOR_CST_NELTS): Adjust.
10234 (struct tree_vector): Add explicit length field.
10235 (make_vector_stat): Declare.
10236 (make_vector): Define.
10237 * tree.c (make_vector_stat): New function.
10238 (build_vector_stat): Use it.
10239 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
10241 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10243 PR tree-optimization/52976
10244 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
10245 (undistribute_ops_list): Ops with repeat counts aren't eligible for
10247 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
10249 2012-04-16 Jan Hubicka <jh@suse.cz>
10251 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
10253 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
10254 walkers to walk cgraph and varpool.
10255 * cgraph.c (cgraph_node_for_asm): Likewise.
10256 (dump_cgraph): Likewise.
10257 * value-prof.c (init_node_map): Likewise.
10258 * tree.c (free_lang_data_in_cgraph): Likewise.
10259 * tree-emutls.c: (ipa_lower_emutls): Likewise.
10260 * ipa-reference.c (generate_summary, propagate): Likewise.
10261 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
10262 cgraph_mark_functions_to_output, cgraph_output_in_order,
10263 output_weakrefs, cgraph_materialize_all_clones,
10264 cgraph_optimize): Likewise.
10265 * lto-cgraph.c (merge_profile_summaries): Likewise.
10266 (input_cgraph): Likewise.
10267 * ipa-pure-const.c (generate_summary): Likewise.
10268 (propagate): Likwise.
10269 * ipa-utils.c (ipa_reduced_postorder): Likewise.
10270 (ipa_free_postorder_info): Likewise.
10271 (ipa_reverse_postorder): Likewise.
10272 * ipa-inline.c (ipa_inline): Likewise.
10273 * matrix-reorg.c (find_matrices_decl): Likewise.
10274 (matrix_reorg): Likewise.
10275 * tree-vectorizer.c (increase_alignment): Likewise.
10276 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
10277 (function_and_variable_visibility): Likewise.
10278 (whole_program_function_and_variable_visibility): Likewise.
10279 (ipa_cdtor_merge): Likewise.
10280 * trans-mem.c (ipa_tm_execute): Likewise.
10281 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
10282 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
10283 (ipa_print_all_params): Likewise.
10284 (ipa_update_after_lto_read): Likewise.
10285 * tree-profie.c (tree_profiling): Likewise.
10286 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10287 * passes.c (dump_passes): Likewise.
10288 (do_per_function): Likewise.
10289 (ipa_write_summaries): Likewise.
10290 * varpool.c (dump_varpool): Likewise.
10291 (varpool_node_for_asm): Likewise.
10292 (varpool_assemble_pending_decls): Likewise.
10294 2012-04-16 Richard Guenther <rguenther@suse.de>
10296 PR tree-optimization/52975
10297 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
10298 condition but always mark it with TRUTH_NOT_EXPR.
10300 2012-04-16 Richard Guenther <rguenther@suse.de>
10302 PR tree-optimization/52975
10303 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
10304 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
10305 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
10306 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
10308 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
10310 * config/i386/sse.md (ssse3_plusminus): New code iterator.
10311 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
10312 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
10313 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
10314 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
10315 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
10316 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
10318 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
10319 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
10320 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
10321 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
10322 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
10323 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
10325 (xop_plus): New code iterator.
10326 (macs): New code attribute.
10328 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
10329 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
10331 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
10332 xop_plus code iterator.
10333 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
10334 xop_plus code iterator.
10335 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
10336 xop_plus code iterator.
10337 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
10338 xop_plus code iterator.
10340 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
10341 any_extend code iterator.
10342 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
10343 any_extend code iterator.
10344 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
10345 any_extend code iterator.
10346 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
10347 any_extend code iterator.
10348 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
10349 any_extend code iterator.
10350 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
10351 any_extend code iterator.
10353 2012-04-14 Tom de Vries <tom@codesourcery.com>
10355 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
10356 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
10357 DELETED_LABEL note, and move it to ...
10358 * cfgrtl.c (delete_insn): ... here. Change return type to void.
10359 (delete_insn_and_edges): Likewise.
10360 (delete_insn_chain): Handle new return type of delete_insn. Delete
10361 chain backwards rather than forwards.
10362 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
10364 * cfglayout.c (fixup_reorder_chain): Delete unused label.
10366 2012-04-14 Jan Hubicka <jh@suse.cz>
10368 * cgraph.h: Update copyrights;
10369 (symtab_node): Turn to union typedef.
10370 (symtab_node_base): New structure.
10371 (symtab_type): Add SYMTAB_SYMBOL tag.
10372 (cgraph_node): Annotate some pinters with nested_ptr.
10373 (varpool_node): Likewise.
10374 (cgraph_local_info): Remove lto_file_data
10375 and externally_visible.
10376 (cgraph_node): Remove decl; same_comdat_group list;
10377 aux; ref_list; order; address_taken; reachable_from_other_parittion,
10378 in_other_partition; resolution.
10379 (varpool_node): Remove decl; same_comdat_group;
10380 ref_list; lto_file_data; aux; order; resolution; externally_visible;
10381 used_from_other_partition; in_other_partition.
10382 (symtab_node_def): New union.
10383 (cgraph, varpool): Update.
10384 (varpool_first_static_initializer, varpool_next_static_initializer,
10385 cgraph_only_called_directly_or_aliased_p,
10386 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
10387 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
10388 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
10390 * cgraph.c: Likewise.
10391 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
10392 * cgraphbuild.c: Likewise.
10393 * lto-symtab.c: Likewise.
10394 * c-gimplify.c: Likewise.
10395 * value-prof.c: Likewise.
10396 * tree.c: Likewise.
10397 * ipa-cp.c: Likewise.
10398 * tree-emutls.c: Likewise.
10399 * ipa-inline-transform.c: Likwise.
10400 * ipa-reference.c: Likewise.
10401 * cgraphunit.c: Likewise.
10402 * ipa-ref.c: Likewise.
10403 * lto-cgraph.c: Likewise.
10404 * ipa-ref-inline.h: Likewise.
10405 * ipa-pure-const.c: Likewise.
10406 * lto-streamer-out.c: Likewise.
10407 * ipa-utils.c: Likewise.
10408 * ipa-inline.c: Likewise.
10409 * matrix-reorg.c: Likewise.
10410 * tree-eh.c: Likewise.
10411 * tree-vectorizer.c: Likewise.
10412 * ipa-split.c: Likewise.
10414 * trans-mem.c: Likewise.
10415 * ipa-inline-analysis.c: Likewise.
10416 * gimplify.c: Likewise.
10417 * cfgexpand.c: Likewise.
10418 * tree-sra.c: Likewise.
10419 * ipa-prop.c: Likewise.
10420 * varasm.c: Likewise.
10421 * tree-nested.c: Likewise.
10422 * tree-inline.c: Likewise.
10423 * tree-profile.c: Likewise.
10424 * tree-ssa-structalias.c: Likewise.
10425 * passes.c: Likewise.
10426 * varpool.c: Likewise.
10428 2012-04-14 Tom de Vries <tom@codesourcery.com>
10430 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
10431 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
10432 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
10434 (gsi_advance_fw_nondebug_nonlocal): New function.
10435 (local_def): Removed function.
10436 (same_succ_hash): Use stmt_local_def.
10437 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
10438 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
10440 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
10442 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
10443 and __ILP32__ for x32.
10445 2012-04-13 Martin Jambor <mjambor@suse.cz>
10447 PR middle-end/52939
10448 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
10449 fold_ctor_reference returns a zero constant.
10451 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
10453 * config.gcc: Add i386/gnu-user-common.h before all
10454 i386/gnu-user.h and i386/gnu-user64.h usages.
10456 * config/i386/gnu-user-common.h: New.
10458 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
10459 (CC1_SPEC): Likewise.
10460 (ENDFILE_SPEC): Likewise.
10461 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
10462 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
10463 (TARGET_OS_CPP_BUILTINS): Likewise.
10464 (LIBGCC2_HAS_TF_MODE): Likewise.
10465 (LIBGCC2_TF_CEXT): Likewise.
10466 (TF_SIZE): Likewise.
10467 (TARGET_ASM_FILE_END): Likewise.
10468 (STACK_CHECK_MOVING_SP): Likewise.
10469 (STACK_CHECK_STATIC_BUILTIN): Likewise.
10470 * config/i386/gnu-user64.h: Likewise.
10472 2012-04-13 Martin Jambor <mjambor@suse.cz>
10474 * expr.c (expand_expr_real_1): Pass type, not the expression, to
10475 set_mem_attributes for a memory temporary. Do not call the function
10476 for the memory temporary created for a bitfield.
10478 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
10481 * df.h (enum debug_temp_where): New.
10482 (dead_debug_init, dead_debug_finish) Declare.
10483 (dead_debug_add, dead_debug_insert_temp): Declare.
10484 (struct dead_debug_use, struct dead_debug): Moved from...
10485 * df-problems.c: ... here.
10486 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
10488 (df_create_unused_note): Likewise.
10489 (df_set_dead_notes_for_mw): Move comment where it belongs.
10490 (dead_debug_init): Export.
10491 (dead_debug_reset_uses): New, factored out of...
10492 (dead_debug_finish): ...this. Export.
10493 (dead_debug_reset): Remove.
10494 (dead_debug_add): Export.
10495 (dead_debug_insert_before): Rename to...
10496 (dead_debug_insert_temp): ... this. Add where argument. Export.
10497 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
10498 Return insertion count.
10499 (df_note_bb_compute): Adjust.
10500 * dce.c (word_dce_process_block): Adjust dead debug uses.
10501 (dce_process_block): Likewise.
10503 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
10505 * df-problems.c (df_note_bb_compute): Do not take note of
10506 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
10508 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
10511 * var-tracking.c (expand_depth): New type.
10512 (onepart_aux, expand_loc_callback_data): Change depth type to it.
10513 (loc_exp_dep_alloc): Adjust initializer.
10514 (update_depth): Use new type. Add entryvals.
10515 (vt_expand_var_loc_chain): Take note of expansions with
10516 ENTRY_VALUEs, but don't accept them right away. Run an optional
10517 second pass accepting the minimum ENTRY_VALUE count found in the
10519 (vt_expand_loc_callback, INIT_ELCD): Adjust.
10521 2012-04-13 Tom de Vries <tom@codesourcery.com>
10523 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
10524 parameters vuse and vuse_escaped.
10525 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
10526 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
10529 2012-04-13 Richard Guenther <rguenther@suse.de>
10531 PR tree-optimization/52969
10532 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
10533 the condition for the COND_EXPR and handle predicate negation
10534 by swapping the COND_EXPR arms.
10536 2012-04-13 Nick Clifton <nickc@redhat.com>
10538 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
10539 TODO_dump_func flag.
10541 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
10543 PR rtl-optimization/52203
10544 PR rtl-optimization/52715
10546 Revert the 2012-03-07 fix for PR 52203.
10547 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
10548 the insn does not modify DFA right before issuing, adjust
10549 issue_rate accordingly.
10551 2012-04-13 Richard Guenther <rguenther@suse.de>
10554 * c-typeck.c (pointer_diff): Remove bogus assert.
10556 2012-04-13 Richard Guenther <rguenther@suse.de>
10559 * convert.c (convert_to_pointer): Remove special-casing of zero.
10561 2012-04-13 Joey Ye <joey.ye@arm.com>
10563 * config/arm/constraints.md (Pe): New constraint.
10564 * config/arm/arm.md: New split for imm 256-510.
10566 2012-04-13 Terry Guo <terry.guo@arm.com>
10568 * config/arm/arm-cores.def: Added core cortex-m0plus.
10569 * config/arm/arm-tune.md: Regenerated.
10570 * config/arm/arm-tables.opt: Regenerated.
10571 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
10573 2012-04-13 Alan Modra <amodra@gmail.com>
10576 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
10577 tie regs on destination of sets. Delete forward declaration.
10578 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
10579 (rs6000_emit_prologue): Likewise.
10580 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
10582 (is_mem_ref): Use tie_operand to recognise stack ties.
10583 * config/rs6000/predicates.md (tie_operand): New.
10584 * config/rs6000/rs6000.md (restore_stack_block): Generate new
10586 (restore_stack_nonlocal): Likewise.
10587 (stack_tie): Update.
10588 (frame_tie): Delete.
10590 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10592 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
10593 HOST_WIDE_INT_PRINT_DEC in format strings.
10595 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
10598 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
10599 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
10600 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
10601 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
10602 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
10603 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
10604 avx2_permvarv8si using VI4F_256 mode iterator.
10605 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
10606 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
10607 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
10608 gen_avx2_permvarv8sf.
10609 (expand_vec_perm_pshufb): Ditto.
10611 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10614 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
10615 the list of options to enable the FCFID instruction.
10616 (TARGET_EXTRA_BUILTINS): Adjust comment.
10618 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10620 PR tree-optimization/18589
10621 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
10622 (operand_entry): Add count field.
10623 (add_repeat_to_ops_vec): New function.
10624 (completely_remove_stmt): Likewise.
10625 (remove_def_if_absorbed_call): Likewise.
10626 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
10627 (acceptable_pow_call): New function.
10628 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
10629 entries with repeat counts when found.
10630 (repeat_factor_d): New struct and associated typedefs.
10631 (repeat_factor_vec): New static vector variable.
10632 (compare_repeat_factors): New function.
10633 (get_reassoc_pow_ssa_name): Likewise.
10634 (attempt_builtin_powi): Likewise.
10635 (reassociate_bb): Call attempt_builtin_powi.
10636 (fini_reassoc): Two new calls to statistics_counter_event.
10638 2012-04-12 Richard Guenther <rguenther@suse.de>
10640 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
10641 * cgraph.h (tree_rest_of_compilation): Remove.
10642 * cgraph.c (cgraph_add_new_function): Move ...
10643 * cgraphunit.c (cgraph_add_new_function): ... here.
10644 (tree_rest_of_compilation): Make static.
10645 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
10646 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
10647 gate_all_early_local_passes, execute_all_early_local_passes,
10648 pass_early_local_passes, gate_all_early_optimizations,
10649 pass_all_early_optimizations): Move ...
10650 * passes.c (gate_all_optimizations, pass_all_optimizations,
10651 gate_all_early_local_passes, execute_all_early_local_passes,
10652 pass_early_local_passes, gate_all_early_optimizations,
10653 pass_all_early_optimizations): ... here.
10654 * tree-optimize.c (execute_free_datastructures): Remove.
10655 * tree-flow.h (execute_free_datastructures): Remove.
10656 * tree-optimize.c (execute_init_datastructures,
10657 pass_init_datastructures): Move ...
10658 * tree-ssa.c (execute_init_datastructures,
10659 pass_init_datastructures): ... here.
10660 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
10661 execute_free_datastructures.
10663 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
10665 * dbgcnt.def (ira_move): New counter.
10666 * ira-int.h (ira_create_new_reg): Declare function.
10667 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
10668 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
10669 no longer static. All callers changed.
10670 * ira.c: Include "dbgcnt.h".
10671 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
10672 move_unallocated_pseudos): New static functions.
10673 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
10674 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
10675 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
10676 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
10677 to the pseudos generated in find_moveable_pseudos.
10678 * Makefile.in (ira.o): Add $(DBGCNT_H).
10680 2012-04-12 Richard Guenther <rguenther@suse.de>
10682 PR tree-optimization/52943
10683 * tree-chrec.h (chrec_is_positive): Remove.
10684 * tree-scalar-evolution.c (chrec_is_positive): Move ...
10685 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
10686 Return false for a constant zero instead of negative.
10687 (analyze_siv_subscript_cst_affine): Handle zero difference
10688 in the initial condition explicitely.
10690 2012-04-12 Richard Guenther <rguenther@suse.de>
10692 * tree-parloops.c (parallelize_loops): Also consult the upper
10693 bound for the number of iterations.
10694 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10695 (loop_prefetch_arrays): Likewise.
10697 2012-04-12 Richard Guenther <rguenther@suse.de>
10699 * cfgloop.h (estimated_loop_iterations_int): Ditch
10700 'conservative' parameter.
10701 (max_stmt_executions_int): Likewise.
10702 (estimated_loop_iterations): Likewise.
10703 (max_stmt_executions): Likewise.
10704 (max_loop_iterations): Declare.
10705 (max_loop_iterations_int): Likewise.
10706 (estimated_stmt_executions): Likewise.
10707 (estimated_stmt_executions_int): Likewise.
10708 * tree-ssa-loop-niter.c (estimated_loop_iterations):
10710 (max_loop_iterations): ... this.
10711 (estimated_loop_iterations_int): Split parts to ...
10712 (max_loop_iterations_int): ... this.
10713 (max_stmt_executions_int): Split parts to ...
10714 (estimated_stmt_executions_int): ... this.
10715 (max_stmt_executions): Split parts to ...
10716 (estimated_stmt_executions): ... this.
10717 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
10718 * predict.c (predict_loops): Likewise.
10719 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
10720 (analyze_siv_subscript_cst_affine): Likewise.
10721 (compute_overlap_steps_for_affine_1_2): Likewise.
10722 (analyze_subscript_affine_affine): Likewise.
10723 (init_omega_for_ddr_1): Likewise.
10724 * tree-parloops.c (parallelize_loops): Likewise.
10725 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10726 (may_eliminate_iv): Likewise.
10727 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10728 (loop_prefetch_arrays): Likewise.
10729 * tree-vrp.c (adjust_range_with_scev): Likewise.
10731 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
10733 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
10734 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
10736 (dump_table): Use bool type for need_align and have_df variables.
10737 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
10738 (regs_used): Remove register modifier.
10739 (barrier_align): Move variables slot, credit, jump_to_next
10740 into if block above for loop. Use bool type for jump_to_next.
10741 (sh_function_arg): Use NULL_RTX instead of 0.
10743 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
10745 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
10746 (bswapsi2): New expander.
10748 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
10750 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
10751 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
10753 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
10755 PR rtl-optimization/52876
10756 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
10757 Don't call mark_reg_pointer for incompatible pointer sign extension.
10759 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
10762 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
10764 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
10765 comparisons against TYPE_PRECISION.
10766 * tree-ssa-forwprop.c (combine_conversions): Likewise.
10768 2012-04-11 Xinliang David Li <davidxl@google.com>
10770 * tree-passes.h: Remove TODO_dump_func.
10771 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
10772 * trans-mem.c: Remove TODO_dump_func.
10773 * ira.c: Remove TODO_dump_func.
10775 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
10777 * config/i386/i386.c (ix86_option_override_internal): Check
10778 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
10779 after TARGET_64BIT is updated.
10781 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10783 * config/sh/sh.h: Remove old secondary reload code.
10785 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10787 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
10788 (ready_reorder): ... this function.
10790 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
10792 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
10795 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
10796 insns so that no other insn is queued for a time before them.
10798 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
10801 2012-04-11 Richard Guenther <rguenther@suse.de>
10803 PR middle-end/52621
10804 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
10805 consider loop nesting.
10806 (evolution_function_is_univariate_p): Properly check the remainder
10809 2012-04-11 Richard Guenther <rguenther@suse.de>
10811 PR middle-end/52918
10812 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
10814 2012-04-11 Nick Clifton <nickc@redhat.com>
10816 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
10817 information, if requested.
10819 * config/rx/rx.c (rx_expand_prologue): Likewise.
10821 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
10822 Michael Matz <matz@suse.de>
10825 * rtlanal.c (unsigned_reg_p): New function.
10826 Update copyright notice dates.
10827 * rtl.h (unsigned_reg_p): Prototype it.
10828 Update copyright notice dates.
10829 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
10831 * expr.c (expand_expr_real_1): Set register attributes.
10832 * stmt.c (expand_case): Likewise.
10834 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10837 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
10838 consider_sh2a and allow_zero.
10839 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
10840 (disp_addr_displacement): New function.
10841 (sh_address_cost): Use disp_addr_displacement function instead
10842 of DISP_ADDR_OFFSET.
10843 (sh_legitimate_address_p): Adapt to changed
10844 sh_legitimate_index_p declaration.
10845 (sh_find_mov_disp_adjust): Remove HImode check.
10846 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
10847 disp_addr_displacement and max_mov_insn_displacement.
10848 (max_mov_insn_displacement): Remove HImode check.
10849 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
10850 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
10851 * config/sh/constraints.md (K05, K13): New constraints.
10852 (K12): Correct comment.
10853 (Sdd): Do not use DISP_ADDR_P macro.
10854 (Snd, Sbw): Use satisfies_constraint_Sdd.
10855 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
10856 (*extendhisi2_compact, movhi_i): Remove.
10857 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
10858 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
10859 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
10860 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
10861 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
10862 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
10863 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
10865 Add new peepholes for HImode displacement addressing.
10867 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10869 * config/sh/sh.h (SIDI_OFF): Remove.
10870 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
10871 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
10872 or operand_subword.
10874 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
10877 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
10878 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
10879 * doc/md.texi (Standard Names): Add bswap.
10880 * builtin-types.def (BT_UINT16): New primitive type.
10881 (BT_FN_UINT16_UINT16): New function type.
10882 * builtins.def (BUILT_IN_BSWAP16): New.
10883 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
10884 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
10885 expand_builtin_bswap.
10886 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
10887 (fold_builtin_1): Likewise.
10888 (is_inexpensive_builtin): Likewise.
10889 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
10890 missing bits for bswap to libcall code.
10891 * tree.c (build_common_tree_nodes): Build uint16_type_node.
10892 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
10893 (uint16_type_node): New define.
10894 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
10895 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
10897 (rs6000_init_builtins): Likewise.
10898 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
10900 2012-04-11 Tristan Gingold <gingold@adacore.com>
10902 * doc/extend.texi (Type Attributes): Move paragraph.
10904 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10907 * diagnostic.h (show_caret): Declare.
10908 (caret_max_width): Declare.
10909 (diagnostic_show_locus): Declare.
10910 * diagnostic.c (diagnostic_initialize): Initialize to false.
10911 (diagnostic_show_locus): New.
10912 (diagnostic_report_diagnostic): Call it.
10913 (getenv_columns): New.
10914 (adjust_line): New.
10915 (diagnostic_set_caret_max_width): New.
10916 * input.c (read_line): New.
10917 (location_get_source_line): New.
10918 * input.h (location_get_source_line): Declare.
10919 * toplev.c (general_init): Initialize show_caret from options.
10920 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
10921 * opts.c (common_handle_option): Likewise.
10922 * pretty-print.h (pp_get_prefix): New.
10923 (pp_base_get_prefix): New.
10924 * common.opt (fdiagnostics-show-caret): New option.
10925 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
10927 2012-04-11 Richard Guenther <rguenther@suse.de>
10929 PR rtl-optimization/52881
10930 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
10932 2012-04-11 Richard Guenther <rguenther@suse.de>
10934 PR tree-optimization/52912
10935 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
10936 manipulation code we are threading through a loop header
10937 to an exit destination.
10939 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10941 * tree.h (warn_if_unused_value): Move declaration from here.
10942 * stmt.c (warn_if_unused_value): Move definition from here.
10944 2012-04-10 Michael Matz <matz@suse.de>
10946 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
10948 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
10949 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
10950 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
10951 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
10952 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10953 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10954 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10955 (vect_record_strided_load_vectors): Rename to
10956 vect_record_grouped_load_vectors.
10957 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
10958 Rename use of above macros.
10959 (vect_verify_datarefs_alignment): Ditto.
10960 (vector_alignment_reachable_p): Ditto.
10961 (vect_peeling_hash_get_lowest_cost): Ditto.
10962 (vect_enhance_data_refs_alignment): Ditto.
10963 (vect_analyze_group_access): Ditto and rename stride to groupsize.
10964 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
10965 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10966 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10967 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10968 (vect_record_strided_load_vectors): Rename to
10969 vect_record_grouped_load_vectors.
10970 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
10971 (destroy_loop_vec_info): Ditto.
10972 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
10973 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
10974 (vect_analyze_slp): Ditto.
10975 (new_bb_vec_info): Ditto.
10976 (destroy_bb_vec_info): Ditto.
10977 (vect_schedule_slp_instance): Ditto and rename strided_store to
10979 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
10980 vect_cost_group_size.
10981 (vect_model_store_cost): Rename use of above macros and call
10982 to vect_cost_strided_group_size.
10983 (vect_model_load_cost): Ditto.
10984 (vectorizable_store): Ditto, rename strided_store to grouped_store
10985 and calls to renamed tree-vectorizer.h functions.
10986 (vectorizable_load): Ditto.
10987 (vect_transform_stmt): Rename use of above macros and strided_store
10990 2012-04-10 Jan Hubicka <jh@suse.cz>
10992 * cgraph.h: Remove misledaing comment on ipa-ref.h.
10993 (symtab_type): New enum.
10994 (symtab_node): New structure.
10995 (cgraph_node, varpool_node): Add symbol base type.
10996 (cgraph, varpool): New accestor functions.
10997 * cgraph.c (cgraph_create_node_1): Set symbol type.
10998 * varpool.c (varpool_node): Set symbol type.
11000 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
11001 Richard Sandiford <rdsandiford@googlemail.com>
11003 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
11005 2012-04-10 Richard Guenther <rguenther@suse.de>
11007 PR middle-end/52888
11008 * gimple-low.c (gimple_check_call_args): Properly account for
11009 compatible aggregate types.
11011 2012-04-10 Richard Guenther <rguenther@suse.de>
11013 * toplev.h (tree_rest_of_compilation): Remove.
11014 * tree-optimize.c (tree_rest_of_compilation): Likewise.
11015 * cgraph.h (tree_rest_of_compilation): Declare.
11016 * tree-optimize.c (tree_rest_of_compilation): Move ...
11017 * cgraphunit.c (tree_rest_of_compilation): ... here.
11018 * cgraph.c (cgraph_add_new_function): Adjust.
11019 * Makefile.in (tree-optimize.o): Adjust.
11020 (cgraphunit.o): Likewise.
11022 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
11024 PR tree-optimization/52870
11025 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
11026 presumed pattern statement is within the same loop or basic block.
11028 2012-04-10 Tristan Gingold <gingold@adacore.com>
11030 * gengtype.c (main): Make uintptr_t a known type.
11032 2012-04-10 Richard Guenther <rguenther@suse.de>
11034 * tree-pass.h (tree_lowering_passes): Remove.
11035 * tree-optimize.c (tree_lowering_passes): Remove.
11036 * cgraph.c (cgraph_add_new_function): Inline relevant parts
11037 of tree_lowering_passes, avoid redundant call of early local passes.
11038 * cgraphunit.c (cgraph_lower_function): Fold into ...
11039 (cgraph_analyze_function): ... its single caller. Inline
11040 relevant parts of tree_lowering_passes.
11042 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
11045 * config/pa/pa.opt: Remove SIO and GNU_LD.
11047 2012-04-09 Jan Hubicka <jh@suse.cz>
11052 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
11053 boundary, add its target too.
11054 * lto.c (add_references_to_partition): Add also aliased nodes.
11055 (add_cgraph_node_to_partition,
11056 add_varpool_node_to_partition): Work on nodes, not functions/variables;
11057 when adding alias, add also the aliased object.
11059 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
11062 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
11063 VOIDmode immediate operands.
11064 * config/i386/constraints.md (Wz): New constraint.
11065 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
11067 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
11070 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
11071 the DECL generated for the special GOT helper.
11073 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
11075 * config/sh/constraints.md: Update list of constraints in
11077 (Sr0): Remove unused memory constraint.
11079 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11081 * tree-pretty-print.h: Update comment.
11083 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
11085 * config/sh/sh.md: Use braced string notation where applicable.
11086 (*prefetch_i4, prefetch_m2a): Merge into ...
11087 (*prefetch): ... this new insn.
11089 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
11091 * config/sh/sh.h (high_life_started): Remove
11092 * config/sh/predicates.md (general_movdst_operand): Use
11093 'reload_in_progress' instead of 'high_life_started'.
11094 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
11095 divsi_inv_fp): Likewise.
11097 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
11099 * config/sh/sh-protos.h (prepare_move_operands): Return void
11101 * config/sh/sh.c (prepare_move_operands): Likewise.
11102 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
11104 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
11106 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
11107 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
11108 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
11109 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
11110 commutative_float_operator, noncommutative_float_operator,
11111 sh_handle_pragma): Remove.
11113 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
11115 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
11116 Use @option markup on command-line options. Use @samp markup on
11117 literal keywords to options. Use @code markup on code fragments.
11118 Use other markup in preference to quotation marks in the text.
11119 Add markup to some passages without any.
11121 2012-04-06 Mike Stump <mikestump@comcast.net>
11123 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
11125 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
11127 * config/sh/sh.c (hi_const): Remove.
11128 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
11131 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
11133 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
11135 * config/sh/sh.c (sh_expand_t_scc): Likewise.
11136 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
11137 calling sh_expand_t_scc.
11139 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
11141 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
11142 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
11143 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
11144 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
11145 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
11146 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
11147 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
11148 sh2a_is_function_vector_call): Use bool as return type.
11149 (sh_pass_in_reg_p): Remove.
11150 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
11151 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
11152 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
11153 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
11154 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
11155 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
11156 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
11157 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
11158 sh_loads_bankedreg_p): Use bool as return type.
11159 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
11160 'register' modifier.
11162 2012-04-06 Matt Turner <mattst88@gmail.com>
11164 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
11166 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
11168 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
11169 of the destination isn't also a FP_REGS register.
11171 2012-04-05 Teresa Johnson <tejohnson@google.com>
11172 H.J. Lu <hongjiu.lu@intel.com>
11174 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
11175 * config/i386/i386.md (move immediate to memory peephole2):
11176 Add cases for HImode move when LCP stall avoidance is needed.
11177 * config/i386/i386.c (initial_ix86_tune_features): Initialize
11178 X86_TUNE_LCP_STALL entry.
11180 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
11183 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
11184 CONST_INT operands, zero-extended with AND.
11186 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
11189 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
11190 first argument instead of mode size. Move displacement calculations
11192 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
11193 ... these new functions.
11194 (disp_adjust): Remove max_mov_disp field.
11195 (sh_legitimate_index_p): Use max_mov_insn_displacement and
11196 mov_insn_alignment_mask.
11197 (sh_address_cost): Use max_mov_insn_displacement.
11199 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
11201 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
11202 (arch_enabled): Handle new arch types.
11203 (one_cmpldi2): Add NEON support.
11205 2012-04-05 Richard Guenther <rguenther@suse.de>
11207 * gimple.c (walk_gimple_op): Compute val_only for the LHS
11208 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
11209 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
11210 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
11211 ... here and make static.
11212 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
11215 2012-04-05 Richard Guenther <rguenther@suse.de>
11217 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
11218 basic-block before removing it.
11220 2012-04-05 Richard Guenther <rguenther@suse.de>
11222 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
11223 version namespace as we release the freelist.
11225 2012-04-05 Richard Guenther <rguenther@suse.de>
11227 * tree-nrv.c (tree_nrv): Release VDEFs.
11228 * tree-sra.c (sra_modify_constructor_assign): Likewise.
11229 (sra_modify_assign): Likewise.
11230 * tree-vect-stmts.c (vect_remove_stores): Likewise.
11231 * tree-vect-loop.c (vect_transform_loop): Likewise.
11232 * tree-ssa-dom.c (optimize_stmt): Likewise.
11233 * tree-vect-slp.c (vect_schedule_slp): Likewise.
11234 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
11236 2012-04-05 Richard Guenther <rguenther@suse.de>
11238 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
11240 * gimple.h (gsi_remove): Adjust.
11241 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
11242 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
11243 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
11244 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
11245 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
11246 * tree-ssa-pre.c (eliminate): Likewise.
11248 2012-04-04 Mike Stump <mikestump@comcast.net>
11250 * doc/rtl.texi (const_double): Document as sign-extending.
11251 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
11252 * emit-rtl.c (immed_double_int_const): Refine to state the
11254 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
11255 CONST_DOUBLE integers.
11256 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
11257 negative values are converted. Fix conversions bigger than
11258 HOST_BITS_PER_WIDE_INT.
11259 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
11260 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
11261 * explow.c (plus_constant_mode): Add.
11262 (plus_constant): Implement with plus_constant_mode.
11263 * rtl.h (plus_constant_mode): Add.
11265 2012-04-04 Richard Guenther <rguenther@suse.de>
11267 PR tree-optimization/52808
11268 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
11269 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
11271 2012-04-04 Tristan Gingold <gingold@adacore.com>
11273 * expr.c (expand_expr_real_2): Handle larger sizetype in
11276 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
11278 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
11279 to m2a-single instead of m2e.
11281 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
11283 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
11284 Change type of BITOFFSET to signed. Make sure the lower bound of
11285 the computed range is non-negative by adjusting OFFSET and BITPOS.
11286 (expand_assignment): Adjust call to get_bit_range.
11288 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
11290 * h8300/h8300.c (h8300_current_function_monitor_function_p):
11291 New function. Added to check monitor functions.
11292 (h8300_option_override): Modified to generate error/warning
11293 messages for invalid combinations of different command line
11295 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
11296 save EXR on stack for monitor function in case of H8S target
11297 when "-mno-exr" is passed.
11298 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
11300 * doc/invoke.texi: Document H8S options.
11302 2012-04-03 Tristan Gingold <gingold@adacore.com>
11304 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
11305 of gcc_AC_FUNC_MMAP_BLACKLIST.
11306 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
11307 * Makefile.in (aclocal_deps): Add mmap.m4.
11308 * configure: Regenerate.
11309 * aclocal.m4: Regenerate.
11311 2012-04-03 Richard Guenther <rguenther@suse.de>
11313 PR tree-optimization/52808
11314 * tracer.c (tail_duplicate): Return whether we have duplicated
11316 (tracer): If we have duplicated any block, cleanup the CFG.
11317 * cfghooks.c (duplicate_block): If we duplicated a loop
11318 header but not its loop, destroy the loop because it now has
11320 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
11321 the cfg manipulation routines we are not creating a multiple
11324 2012-04-03 Tristan Gingold <gingold@adacore.com>
11326 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
11328 (vms_c_common_override_options): Allow parameterless variadic
11331 2012-04-03 Jakub Jelinek <jakub@redhat.com>
11333 PR tree-optimization/52835
11334 * tree-data-ref.c (build_rdg): Return NULL if
11335 compute_data_dependences_for_loop failed.
11337 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
11339 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
11340 for REAL_CST as well.
11341 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
11342 In the bitfield case, if the value is a REAL_CST, convert it first to
11345 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
11347 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
11348 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
11349 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
11351 * config/i386/biarchx32.h: New.
11353 2012-04-02 Anatoly Sokolov <aesok@post.ru>
11355 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
11356 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11357 (arm_preferred_reload_class): New function.
11359 2012-04-02 Richard Guenther <rguenther@suse.de>
11361 PR tree-optimization/52756
11362 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
11363 (thread_through_loop_header): After threading through the loop latch
11364 remove the split part from the loop and clear further threading
11365 opportunities that would create a multiple entry loop.
11367 2012-04-02 Richard Guenther <rguenther@suse.de>
11369 PR rtl-optimization/52800
11370 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
11371 CLEANUP_CFG_CHANGED.
11373 2012-04-02 Richard Guenther <rguenther@suse.de>
11375 PR middle-end/52803
11376 * loop-init.c (gate_handle_loop2): Destroy loops here if
11377 we don't enter RTL loop optimizers.
11379 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
11382 2012-03-29 Richard Guenther <rguenther@suse.de>
11384 * rtl.h (extended_count): Remove.
11385 * combine.c (extended_count): Remove.
11387 2012-04-02 Dodji Seketeli <dodji@redhat.com>
11390 * pt.c (more_specialized_fn): Don't apply decay conversion to
11391 types of function parameters.
11393 2012-04-02 Tristan Gingold <gingold@adacore.com>
11395 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
11396 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
11397 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
11398 (ggc_pch_this_base): Use uintptr_t instead of size_t.
11400 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
11403 * config/i386/i386.c (ix86_option_override_internal): Don't
11404 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
11406 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
11408 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
11409 (stmt_can_make_abnormal_goto): Use it.
11410 (is_ctrl_altering_stmt): Likewise.
11412 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
11413 Kaz Kojima <kkojima@gcc.gnu.org>
11415 * config/sh/sh.c (push_regs): Skip banked registers when
11416 resbank attribute is specified.
11417 (sh_expand_epilogue): Likewise.
11419 2012-03-30 Richard Henderson <rth@redhat.com>
11422 * combine-stack-adj.c (prev_active_insn_bb): New.
11423 (next_active_insn_bb): New.
11424 (force_move_args_size_note): New.
11425 (combine_stack_adjustments_for_block): Use it.
11427 2012-03-30 Richard Henderson <rth@redhat.com>
11429 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
11430 (ix86_expand_vector_init_duplicate): Initialize it.
11431 (expand_vec_perm_palignr): Likewise.
11432 (ix86_expand_vec_perm_const): Likewise.
11433 (ix86_vectorize_vec_perm_const_ok): Likewise.
11434 (expand_vec_perm_blend): Use it.
11435 (expand_vec_perm_vpermil): Likewise.
11436 (expand_vec_perm_pshufb): Likewise.
11437 (expand_vec_perm_1): Likewise.
11438 (expand_vec_perm_pshuflw_pshufhw): Likewise.
11439 (expand_vec_perm_interleave2): Likewise.
11440 (expand_vec_perm_vpermq_perm_1): Likewise.
11441 (expand_vec_perm_vperm2f128): Likewise.
11442 (expand_vec_perm_interleave3): Likewise.
11443 (expand_vec_perm_vperm2f128_vblend): Likewise.
11444 (expand_vec_perm_vpshufb2_vpermq): Likewise.
11445 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
11446 (expand_vec_perm_broadcast): Likewise.
11447 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11449 2012-03-30 Richard Henderson <rth@redhat.com>
11451 * dwarf2out.c (gen_variable_die): Initialize off.
11453 2012-03-30 Tristan Gingold <gingold@adacore.com>
11455 * config/vms/vms-f.c: New file.
11456 * config/vms/t-vms (vms-f.o): New rule.
11457 * config.gcc (*-*-*vms*): Define fortran_target_objs.
11459 2012-03-30 Richard Guenther <rguenther@suse.de>
11461 PR tree-optimization/52754
11462 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
11463 propagate arbitrary addresses into really plain dereferences.
11465 2012-03-30 Richard Guenther <rguenther@suse.de>
11467 PR middle-end/52772
11468 * except.c (emit_to_new_bb_before): Move loop updating ...
11469 (dw2_build_landing_pads): ... here. Use a proper block for
11470 querying the loop father.
11472 2012-03-30 Tristan Gingold <gingold@adacore.com>
11474 * config/ia64/ia64.c (ia64_section_type_flags): Remove
11475 common_object attribute handling.
11476 (SECTION_VMS_OVERLAY): Remove
11477 (ia64_vms_common_object_attribute): Replace abort with an assert.
11478 Do not set DECL_SECTION_NAME.
11479 (ia64_vms_output_aligned_decl_common): Handle common_object
11481 (ia64_vms_elf_asm_named_section): Remove.
11482 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
11484 2012-03-30 Richard Guenther <rguenther@suse.de>
11486 PR middle-end/52786
11487 * double-int.c (rshift_double): Remove not needed cast.
11489 2012-03-30 Richard Guenther <rguenther@suse.de>
11491 * tree-affine.h (print_aff): Remove.
11492 * tree-affine.c (print_aff): Make static.
11493 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
11494 (get_references_in_stmt): Likewise.
11495 (print_direction_vector): Likewise.
11496 (print_dir_vectors): Likewise.
11497 (print_dist_vectors): Likewise.
11498 (dump_subscript): Likewise.
11499 (dump_ddrs): Likewise.
11500 (dump_dist_dir_vectors): Likewise.
11501 (dump_data_references): Likewise.
11502 (dump_data_dependence_relation): Likewise.
11503 (dump_data_dependence_direction): Likewise.
11504 (dump_rdg_vertex): Likewise.
11505 (dump_rdg_component): Likewise.
11506 (debug_ddrs): Declare.
11507 (struct data_ref_loc_d): Move ...
11508 * tree-data-ref.c (struct data_ref_loc_d): ... here.
11509 (get_references_in_stmt): Make static.
11510 (dump_data_references): Likewise.
11511 (dump_subscript): Likewise.
11512 (print_direction_vector): Likewise.
11513 (print_dir_vectors): Likewise.
11514 (print_dist_vectors): Likewise.
11515 (dump_data_dependence_relation): Likewise.
11516 (dump_dist_dir_vectors): Likewise.
11517 (dump_ddrs): Likewise.
11518 (dump_rdg_vertex): Likewise.
11519 (dump_rdg_component): Likewise.
11520 (debug_ddrs): New function.
11521 (access_matrix_get_index_for_parameter): Remove.
11523 2012-03-30 Tristan Gingold <gingold@adacore.com>
11525 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
11526 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
11527 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
11528 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
11529 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
11530 (vms_patch_builtins): Handle new flags
11531 * config/vms/vms-crtlmap.map: Completed using nm on
11532 c and math system libraries.
11533 * config/vms/make-crtlmap.awk: Handle any number of flags.
11535 2012-03-30 Martin Jambor <mjambor@suse.cz>
11537 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
11538 is a builtin_stack_save in a dominating BB.
11540 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
11542 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
11543 crossing 128bit lane boundary.
11545 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
11547 * ira-color.c (setup_left_conflict_sizes_p): Process all
11548 conflicting objects.
11550 2012-03-29 Jakub Jelinek <jakub@redhat.com>
11552 PR tree-optimization/52760
11553 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
11554 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
11556 2012-03-29 Richard Guenther <rguenther@suse.de>
11558 * cgraph.h (cgraph_materialize_all_clones): Remove.
11559 (reset_inline_failed): Likewise.
11560 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
11561 * cgraphbuild.c (reset_inline_failed): Remove.
11562 * rtl.h (cse_main): Remove.
11563 (extended_count): Likewise.
11564 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
11565 (cse_main): Make static.
11566 * combine.c (extended_count): Remove.
11567 (dump_combine_stats): Mark as DEBUG_FUNCTION.
11568 * basic-block.h (reorder_basic_blocks): Remove.
11569 * bb-reorder.c (reorder_basic_blocks): Make static.
11570 * Makefile.in (dse.o): Remove dse.h dependency.
11572 * dse.c (gate_dse): Remove.
11573 (clear_alias_mode_eq): Likewise.
11574 (clear_alias_mode_hash): Likewise.
11575 (dse_record_singleton_alias_set): Likewise.
11576 (dse_invalidate_singleton_alias_set): Likewise.
11578 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
11580 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
11581 crtbegin_so%O%s for -shared.
11582 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
11584 2012-03-29 Richard Guenther <rguenther@suse.de>
11586 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
11587 (add_to_value): Remove.
11588 (print_value_expressions): Likewise.
11589 * tree-ssa-pre.c (add_to_value): Make static.
11590 (print_value_expressions): Likewise.
11591 * gimple.h (gimple_adjust_this_by_delta): Remove.
11592 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
11594 2012-03-29 Richard Guenther <rguenther@suse.de>
11596 PR middle-end/50708
11597 * double-int.h (rshift_double): Remove.
11598 * double-int.c (lshift_double): Use absu_hwi to make count positive.
11599 (rshift_double): Make static, take unsigned count argument,
11600 remove handling of negative count argument.
11601 (double_int_rshift): Dispatch to lshift_double.
11603 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
11605 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
11606 OPTION_MASK_ABI_64.
11608 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
11609 (SPEC_X32): Likewise.
11610 (MULTILIB_DEFAULTS): Likewise.
11612 * config/i386/i386.c (isa_opts): Remove -m64.
11613 (ix86_target_string): Properly handle -m32/-m64/-mx32.
11614 (ix86_option_override_internal): Properly
11615 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
11616 handle -m32, -m64 and -mx32.
11618 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
11619 with OPTION_ABI_X32. Moved after TARGET_LP64.
11620 (TARGET_LP64): Changed to OPTION_ABI_64.
11622 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
11623 (mx32): Replace ISA_X32 with ABI_X32.
11625 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
11627 * tree.c (tree_size) <VECTOR_CST>: New case.
11629 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
11631 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
11632 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
11634 2012-03-28 Jakub Jelinek <jakub@redhat.com>
11636 PR middle-end/52691
11637 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
11638 __builtin_va_start to __builtin_next_arg if the latter is
11639 builtin_decl_explicit_p rather than when it is not.
11641 PR middle-end/52750
11642 * tree-vect-generic.c (vector_element): Perform multiplication
11643 for pos in bitsizetype type instead of idx type.
11645 2012-03-28 Richard Guenther <rguenther@suse.de>
11647 * loop-init.c (loop_optimizer_init): If loops are preserved
11648 perform incremental initialization of required loop features.
11649 (loop_optimizer_finalize): If loops are to be preserved only
11650 clean up optional loop features.
11651 (rtl_loop_done): Forcefully free loops here.
11652 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
11653 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
11655 (construct_init_block): Likewise.
11656 (construct_exit_block): Likewise.
11657 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
11658 the CFG after expanding.
11659 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
11660 If we needed to calculate them, free them afterwards.
11661 * tree-pass.h (PROP_loops): New define.
11662 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
11663 * basic-block.h (CLEANUP_CFG_CHANGED): New.
11664 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
11665 (cleanup_cfg): If we did something and have loops around, fix them up.
11666 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
11667 with CLEANUP_CFG_CHANGED.
11668 * cfghooks.c (merge_blocks): If we merge a loop header into
11669 its predecessor, update the loop structure.
11670 (duplicate_block): If we copy a loop latch, adjust loop state
11671 to note we may have multiple latches.
11672 (delete_basic_block): Mark loops for fixup if we remove a loop.
11673 * cfganal.c (forwarder_block_p): Protect loop latches, headers
11675 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
11676 (cfg_layout_can_merge_blocks_p): Likewise.
11677 * cprop.c (bypass_block): If we create a loop with multiple
11678 entries, mark it for removal.
11679 * except.c (emit_to_new_bb_before): Add the new basic-block
11681 * tree-eh.c (lower_resx): Likewise.
11682 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
11683 (expand_omp_taskreg): Likewise.
11684 * tree-inline.c (initialize_cfun): Likewise.
11685 * tree-mudflap.c (add_bb_to_loop): Prototype.
11686 (mf_build_check_statement_for): Properly add new basic-blocks
11688 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
11689 if we remove a loop.
11690 (thread_through_loop_header): Likewise.
11691 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
11692 new basic-blocks to existing loops.
11693 (expand_transaction): Likewise.
11694 * Makefile.in (except.o): Add $(CFGLOOP_H).
11695 (expr.o): Likewise.
11696 (cgraph.o): Likewise.
11697 (cprop.o): Likewise.
11698 (cfgexpand.o): Likewise.
11699 (cfganal.o): Likewise.
11700 (trans-mem.o): Likewise.
11701 (tree-eh.o): Likewise.
11703 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
11706 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
11707 (avr_builtin_decl): New static function.
11708 (struct avr_builtin_description, avr_bdesc): Move up.
11709 Add GTY marker. Add field fndecl. Remove redundant field id.
11710 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
11711 (avr_expand_builtin): Code cleanup because .id is removed.
11713 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
11716 * config.gcc (tm_file): Remove avr/multilib.h.
11718 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
11720 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
11721 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
11722 * config/avr/t-avr: Remove generation of multilib.h.
11723 * config/avr/t-multilib: Regenerate.
11724 * config/avr/multilib.h: Remove.
11725 * config/avr/avr.opt (-msp8): New option.
11726 (avr_sp8): New variable.
11727 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
11728 * config/avr/avr.h (AVR_HAVE_SPH): New define.
11729 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
11730 (avr_device_to_sp8): New prototype.
11731 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
11732 (DRIVER_SELF_SPECS): New define.
11733 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
11734 __AVR_SP8__, __AVR_HAVE_SPH__.
11735 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
11736 AVR_HAVE_8BIT_SP to decide if SP_H is present.
11737 (avr_file_start): Ditto.
11739 2012-03-28 Jakub Jelinek <jakub@redhat.com>
11742 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
11743 instead of 8 in adjust_address.
11745 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
11747 PR middle-end/51893
11748 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
11751 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
11754 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
11755 Rearrange conditional logic. Move displacement address calculations
11757 (sh_find_mov_disp_adjust): ... this new function.
11759 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
11761 * config/arm/arm.opt (mapcs): Remove MaskExists.
11762 * config/cris/linux.opt (mno-gotplt): Likewise.
11763 * config/i386/i386.opt (mhard-float): Likewise.
11765 (mno-sse4): Likewise.
11766 * config/m68k/m68k.opt (mhard-float): Likewise.
11767 * config/mep/mep.op (mcop32): Likewise.
11768 * config/pa/pa-hpux.opt (msio): Likewise.
11769 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
11770 * config/picochip/picochip.opt (mlittle): Likewise.
11771 * config/sh/sh.opt (mrenesas): Likewise.
11772 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
11773 * config/sparc/sparc.opt (mhard-float): Likewise.
11774 * config/v850/v850.opt (mv850es): Likewise.
11775 * config/vax/vax.opt (mg-float): Likewise.
11777 2012-03-27 Martin Jambor <mjambor@suse.cz>
11779 PR middle-end/52693
11780 * tree-sra.c (sra_modify_assign): Do not call
11781 load_assign_lhs_subreplacements when working with an unscalarizable
11784 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
11787 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
11789 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
11790 * config/i386/i386.c: Include reload.h.
11791 (ix86_legitimize_reload_address): New function.
11793 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
11795 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
11796 hasn't been allocated. Define a target macro for Mask and
11797 InverseMask if it hasn't been defined. Remove MaskExists handling.
11799 * doc/options.texi: Remove MaskExists.
11801 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
11804 * config/sh/sh.c (find_barrier): Add equality check of last_got
11805 to avoid going above orig insn. Update comments.
11807 2012-03-27 Richard Guenther <rguenther@suse.de>
11809 PR middle-end/52720
11810 * fold-const.c (try_move_mult_to_index): Handle &x.array more
11813 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
11815 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
11816 of a unit before computing the offset in units.
11817 * expr.c (get_bit_range): Return the null range if the enclosing record
11818 is part of a larger bit field.
11820 2012-03-27 Tristan Gingold <gingold@adacore.com>
11822 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
11823 * config/ia64/ia64.md: Remove mode in template.
11824 Sign extend operand in expand_simple_binop.
11825 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
11826 CASE_VECTOR_MODE instead of TARGET_ILP32.
11827 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
11829 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
11831 * varasm.c (assemble_external): #if 0 out the new assert from the
11832 previous commit, it breaks the Java and Go front ends.
11834 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
11836 * toplev.c (check_global_declaration_1): Do not call assemble_external.
11837 * expr.c (emit_block_move_libcall_fn): Likewise.
11838 (clear_storage_libcall_fn): Likewise.
11839 (expand_expr_addr_expr_1): Likewise.
11840 (expand_expr_real_1): Likewise.
11841 * calls.c (rtx_for_function_call): Likewise.
11843 * varasm.c (assemble_external): Assert this function is only called
11844 during or after expanding to RTL.
11846 2012-03-26 Martin Jambor <mjambor@suse.cz>
11848 PR tree-optimization/50052
11849 * tree-sra.c (tree_non_aligned_mem_p): Removed.
11850 (tree_non_aligned_mem_for_access_p): Likewise.
11851 (build_accesses_from_assign): Removed strict alignment requirements
11853 (access_precludes_ipa_sra_p): Likewise.
11855 2012-03-26 Richard Guenther <rguenther@suse.de>
11857 PR tree-optimization/52701
11858 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
11859 compute and set the evolution part of PHI nodes.
11861 2012-03-26 Richard Guenther <rguenther@suse.de>
11863 PR tree-optimization/52721
11864 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
11866 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
11868 PR tree-optimization/52686
11869 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11872 2012-03-26 Tristan Gingold <gingold@adacore.com>
11874 * config/alpha/vms.h (LINK_SPEC): Simplify.
11875 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
11876 (NAME__MAIN, SYMBOL__MAIN): Remove.
11877 (VMS_DEBUG_MAIN_POINTER): Remove.
11878 * config/ia64/vms.h: Likewise.
11879 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
11880 code to vms.c. Call vms_start_function.
11881 * config/ia64/ia64.c (ia64_start_function): Likewise.
11882 * config/vms/vms-protos.h (vms_start_function): Declare.
11883 * config/vms/vms.c (vms_start_function): New function.
11884 * config/vms/vms.h (MATH_LIBRARY): Define.
11885 (VMS_DEBUG_MAIN_POINTER): Define.
11887 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
11889 PR rtl-optimization/52629
11890 * reload1.c (count_pseudo): Short-circuit common case.
11891 (count_spilled_pseudo): Return early for pseudos without hard regs.
11892 Assert that the pseudo has got a hard reg before manipulating it.
11894 2012-03-24 Jan Hubicka <jh@suse.cz>
11897 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
11898 (decide_is_variable_needed): Do not handle toplevel reorder here.
11899 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
11900 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
11903 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
11905 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
11906 and str_bitsize instead of more convoluted expressions.
11908 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
11911 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
11913 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
11916 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
11918 2012-03-23 Martin Jambor <mjambor@suse.cz>
11920 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
11922 2012-03-23 Richard Guenther <rguenther@suse.de>
11924 PR tree-optimization/52678
11925 * tree-vectorizer.h (struct _stmt_vec_info): Add
11926 loop_phi_evolution_part member.
11927 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
11928 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
11929 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
11930 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
11931 Use the cached evolution part and the PHI nodes value from
11932 the loop preheader edge instead of re-analyzing the evolution.
11934 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
11936 * config/mips/mips-tables.opt: Update.
11937 * config/mips/mips.md (processor): Add xlp.
11938 * config/mips/mips-cpus.def: Add xlp.
11939 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
11941 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
11942 * doc/invoke.texi: Mention XLP.
11944 2012-03-22 Jakub Jelinek <jakub@redhat.com>
11946 PR middle-end/52547
11947 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
11948 on any new_local_var_chain vars declared during recursing on
11949 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
11951 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
11953 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
11954 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
11955 (ASM_OUTPUT_LOCAL): Ditto.
11956 (ASM_OUTPUT_COMMON): Remove.
11957 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
11958 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
11960 2012-03-22 Jan Hubicka <jh@suse.cz>
11962 PR middle-end/51737
11963 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
11965 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
11966 * ipa-inline-transform.c (save_inline_function_body): Remove
11967 copied clone if needed.
11968 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
11970 2012-03-22 Richard Guenther <rguenther@suse.de>
11972 PR middle-end/52666
11973 * fold-const.c (fold_ternary_loc): Fix typo.
11975 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
11978 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
11979 (unspecv): Add UNSPECV_MEMORY_BARRIER.
11980 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
11981 (delay_cycles_1, delay_cycles_2): Ditto.
11982 (delay_cycles_3, delay_cycles_4): Ditto.
11983 (nopv, *nopv): Ditto.
11984 (sleep, *sleep): Ditto.
11985 (wdr, *wdr): Ditto.
11987 2012-03-22 Richard Guenther <rguenther@suse.de>
11989 PR tree-optimization/52548
11990 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
11991 because of clobbers.
11992 (prune_clobbered_mems): New function.
11993 (compute_antic_aux): Use it to prune ANTIC_OUT.
11994 (compute_partial_antic_aux): Use it to prune PA_IN.
11995 (compute_avail): Only insert expressions into EXP_GEN that are not
11996 invalidated when translated up to the beginning of the block.
11998 2012-03-22 Richard Guenther <rguenther@suse.de>
12000 PR tree-optimization/52638
12001 * tree-vect-stmts.c (vect_init_vector_1): New function, split
12003 (vect_init_vector): ... here. Handle scalar vector inits.
12004 (vect_get_vec_def_for_operand): Adjust.
12005 (vectorizable_load): Likewise.
12007 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
12009 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
12010 (alpha*-*-freebsd*): Ditto.
12011 (alpha*-*-netbsd*): Ditto.
12012 (alpha*-*-openbsd*): Ditto.
12013 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
12014 (DWARF2_DEBUGGING_INFO): Remove.
12015 (PREFERRED_DEBUGGING_TYPE): Remove.
12016 (ASM_FINAL_SPEC): Remove.
12017 (IDENT_ASM_OP): Remove.
12018 (ASM_OUTPUT_IDENT): Remove.
12019 (SKIP_ASM_OP): Remove.
12020 (ASM_OUTPUT_SKIP): Remove.
12021 (ALIGN_ASM_OP): Remove.
12022 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
12023 (ASM_OUTPUT_CASE_LABEL): Remove.
12024 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
12025 (COMMON_ASM_OP): Remove.
12026 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
12027 (ASCII_DATA_ASM_OP): Remove.
12028 (READONLY_DATA_SECTION_ASM_OP): Remove.
12029 (INIT_SECTION_ASM_OP): Remove.
12030 (FINI_SECTION_ASM_OP): Remove.
12031 (ASM_SECTION_START_OP): Remove.
12032 (ASM_OUTPUT_SECTION_START_FILE): Remove.
12033 (TARGET_ASM_NAMED_SECTION): Remove.
12034 (TARGET_ASM_SELECT_SECTION): Remove.
12035 (MAKE_DECL_ONE_ONLY): Remove.
12036 (TYPE_ASM_OP): Remove.
12037 (SIZE_ASM_OP): Remove.
12038 (ASM_WEAKEN_LABEL): Remove.
12039 (TYPE_OPERAND_FMT): Remove.
12040 (ASM_DECLARE_RESULT): Remove.
12041 (ASM_DECLARE_OBJECT_NAME): Remove.
12042 (ASM_FINISH_DECLARE_OBJECT): Remove.
12043 (ELF_ASCII_ESCAPES): Remove.
12044 (ELF_STRING_LIMIT): Remove.
12045 (STRING_ASM_OP): Remove.
12046 (ASM_OUTPUT_EXTERNAL): Remove.
12047 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
12048 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
12050 (ASM_DECLARE_FUNCTION_NAME): Ditto.
12051 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
12052 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
12053 (ASM_OUTPUT_SKIP): Ditto.
12054 (READONLY_DATA_SECTION_ASM_OP): Remove.
12055 (USER_LABEL_PREFIX): Remove.
12056 (ASM_OUTPUT_ASCII): Remove.
12057 (ASM_OUTPUT_CASE_LABEL): Remove.
12058 (NO_DOLLAR_IN_LABEL): Undefine.
12060 2012-03-22 Richard Guenther <rguenther@suse.de>
12062 PR tree-optimization/52459
12063 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
12064 PHI insertion for calls.
12066 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
12068 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
12069 find_sets_in_insn, canonicalize_insn): Split out from ...
12070 (cse_insn): ... here.
12071 (invalidate_from_clobbers): Take an insn instead of the pattern.
12073 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
12076 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
12077 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
12078 * config/sh/sh.md (sindf2, cosdf2): Remove.
12080 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
12083 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
12084 prologue for unwinder and profiler.
12086 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
12088 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
12089 Introduce emul_name to select the right linker emulation for
12090 powerpc64-*-freebsd*.
12091 * configure: Regenerate.
12092 * config.gcc: Add bits to support powerpc64-*-freebsd*.
12093 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
12094 * config/rs6000/freebsd64.h: New file.
12095 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
12097 (rs6000_savres_strategy): Likewise.
12098 (rs6000_savres_routine_name): Likewise.
12099 (rs6000_elf_file_end): Likewise.
12100 * config/rs6000/t-freebsd64: New file.
12101 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
12102 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
12104 * config/rs6000/freebsd64.h: Remove duplicated entries from last
12106 * config/rs6000/t-freebsd64: Likewise.
12108 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
12110 PR rtl-optimization/52543
12112 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
12113 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
12114 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
12115 (avr_load_libgcc_p): Restrict to __flash loads.
12116 (avr_out_lpm): Only handle 1-byte loads from __flash.
12117 (avr_load_lpm): New function.
12118 (avr_find_unused_d_reg): Remove.
12119 (avr_out_lpm_no_lpmx): Remove.
12120 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
12121 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
12122 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
12123 (load_<mode>, load_<mode>_clobber): New insns.
12124 (mov<mode>): For multi-byte move from non-generic
12125 16-bit address spaces: Expand to load_<mode> resp.
12126 load_<mode>_clobber.
12127 (load<mode>_libgcc): Remove expander.
12128 (split-lpmx): Remove split.
12130 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
12132 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
12133 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
12134 All callers changed.
12135 (Fixed_core_reg): New feature.
12136 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
12138 * neon-testgen.ml: Handle Fixed_core_reg.
12140 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
12142 * config/arm/arm.c (thumb2_reorg): Add complete support
12143 for 16-bit instructions.
12144 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
12146 2012-03-21 Richard Guenther <rguenther@suse.de>
12148 PR tree-optimizer/52636
12149 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
12150 to the appropriate type.
12152 2012-03-21 Richard Guenther <rguenther@suse.de>
12154 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
12156 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
12157 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
12158 * passes.c (init_optimization_passes): Remove pass_init_function,
12159 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
12160 * tree-pass.h (pass_init_function): Remove.
12161 (pass_jump): Remove.
12162 (pass_initial_value_sets): Remove.
12163 (pass_unshare_all_rtl): Remove.
12164 * integrate.c (pass_initial_value_sets): Remove.
12165 * emit-rtl.c (pass_unshare_all_rtl): Remove.
12166 * tree.h (init_function_for_compilation): Remove.
12167 * function.c (init_function_for_compilation): Remove.
12168 (pass_init_function): Remove.
12169 * cfgcleanup.c (rest_of_handle_jump): Remove.
12170 (pass_jump): Remove.
12172 2012-03-20 Jason Merrill <jason@redhat.com>
12174 * tree-streamer-in.c (streamer_alloc_tree): Call
12175 ggc_alloc_zone_cleared_tree_node instead of
12176 ggc_alloc_zone_cleared_tree_node_stat.
12178 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
12180 * doc/extend.texi (Template Instantiation): Remove anachronisms.
12182 2012-03-20 Jakub Jelinek <jakub@redhat.com>
12185 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
12186 (ix86_expand_vec_perm_const_1): Call it.
12188 * config/i386/i386.c (vselect_insn): New variable.
12189 (init_vselect_insn): New function.
12190 (expand_vselect, expand_vselect_insn): Add testing_p argument.
12191 Call init_vselect_insn if vselect_insn is NULL. Adjust
12192 PATTERN (vselect_insn), instead of creating a new insn each time,
12193 only emit a copy of it if not testing and recog has been successful.
12194 (expand_vec_perm_pshufb, expand_vec_perm_1,
12195 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
12199 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
12200 ("enabled" attribute): Handle avx2 and noavx2 isas.
12201 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
12203 (vec_dup<mode>): Add avx2 =x,x alternative.
12204 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
12205 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
12206 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
12207 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
12209 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
12210 if possible, handle also V8SFmode.
12212 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
12214 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
12215 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
12216 reg_or_zero_operand predicate.
12217 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
12219 2012-03-20 Jakub Jelinek <jakub@redhat.com>
12221 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
12222 If operand isn't UNSPEC, return 0.
12224 2012-03-20 Richard Guenther <rguenther@suse.de>
12226 * tree-pass.h (pass_rtl_eh): Remove.
12227 * except.c (gate_handle_eh): Likewise.
12228 (rest_of_handle_eh): Likewise.
12229 (pass_rtl_eh): Likewise.
12230 (finish_eh_generation): Export.
12231 * except.h (finish_eh_generation): Declare.
12232 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
12233 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
12234 after expanding stack alignment. Instead of compacting blocks
12237 2012-03-20 Richard Guenther <rguenther@suse.de>
12239 * stor-layout.c (finish_bitfield_representative): Fallback
12240 to conservative maximum size if the padding up to the next
12241 field cannot be computed as a constant.
12242 (finish_bitfield_layout): If we cannot compute the distance
12243 between the start of the bitfield representative and the
12244 bitfield member start a new representative.
12245 * expr.c (get_bit_range): The distance between the start of
12246 the bitfield representative and the bitfield member is zero
12247 if the field offsets are not constants.
12249 2012-03-20 Tristan Gingold <gingold@adacore.com>
12251 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
12252 convert in lowercase.
12253 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
12254 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
12255 * stor-layout.c (sizetype_tab): Adjust.
12256 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
12257 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
12258 instead of type_kind_last.
12259 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
12260 instead of size_int_kind.
12261 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
12262 * doc/tm.texi: Regenerate.
12263 * defaults.h (SIZETYPE): Provide a default value.
12264 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
12265 (SIZETYPE): Define.
12267 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
12269 * config/sh/sh.md: Use braced string notation where applicable.
12271 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12273 * config/i386/i386.md (allocate_stack): Simplify.
12275 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12277 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
12278 copy_to_mode_reg (Pmode, ...).
12279 (expand_builtin_frame_address): Ditto.
12280 * expr.c (emit_block_move_via_libcall): Ditto.
12281 (set_storage_via_libcall): Ditto.
12283 * config/i386/i386.c (ix86_expand_movmem): Ditto.
12284 (ix86_expand_setmem): Ditto.
12285 (ix86_trampoline_init): DItto.
12286 * config/i386/i386.md (cmpstrnsi): Ditto.
12288 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
12290 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
12291 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
12292 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
12293 (SH Options): Likewise.
12295 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12297 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
12298 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
12299 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
12300 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
12301 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
12304 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12306 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
12307 * config/i386/i386.c (ix86_decompose_address): Use
12308 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
12309 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
12310 thread pointer to a register.
12313 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
12315 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
12316 if Pmode != word_mode.
12317 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
12318 Pmode == SImode for TARGET_X32.
12320 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
12321 (tls_initial_exec_x32): Likewise.
12323 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
12326 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
12327 DISP_ADDR_OFFSET): New macros.
12328 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
12329 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
12330 (sh_legitimize_address): Add QImode displacement handling.
12331 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
12333 (sh_secondary_reload): Add QImode displacement handling.
12334 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
12335 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
12336 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
12337 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
12338 to register operands only.
12339 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
12340 (extendqihi2): Change insn to expander.
12341 (*extendqihi2_compact_reg): New insn.
12342 (movqi_i, movqi): Replace with ...
12343 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
12344 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
12345 Add new peepholes for QImode displacement addressing.
12347 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
12350 * doc/invoke.texi: Document -Wuseless-cast.
12352 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
12354 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
12355 * tree.h (handled_component_p): Reorder cases.
12356 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
12357 not initialize unsignedp.
12358 (loc_list_from_tree): Likewise.
12359 (fortran_common): Likewise.
12360 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
12362 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12364 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
12365 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
12366 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
12367 (ix86_split_long_move): Ditto.
12368 (legitimize_tls_address): Use ix86_gen_sub3.
12369 (construct_plt_address): Assert that Pmode == DImode.
12371 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
12373 * config/i386/i386.md: Remove empty predicates and/or constraints.
12374 * config/i386/sync.md: Ditto.
12375 * config/i386/sse.md: Ditto.
12376 * config/i386/mmx.md: Ditto.
12377 * config/i386/pentium.md: Ditto.
12378 * config/i386/athlon.md: Ditto.
12380 2012-03-16 Richard Guenther <rguenther@suse.de>
12382 PR tree-optimization/52603
12383 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
12387 2012-03-14 Richard Guenther <rguenther@suse.de>
12389 PR tree-optimization/52571
12390 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12391 flag_section_anchors check ...
12392 (vect_can_force_dr_alignment_p): ... here.
12394 2012-03-16 Martin Jambor <mjambor@suse.cz>
12396 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
12397 memory through MEM_REFs by calling extract_bit_field.
12399 2012-03-16 Richard Guenther <rguenther@suse.de>
12401 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
12402 and REFERENCE_TYPE interpretations.
12403 (can_native_interpret_type_p): New function.
12404 (fold_ternary_loc): Use native encode/interpret to fold
12405 BIT_FIELD_REFs of constants.
12407 2012-03-16 Richard Guenther <rguenther@suse.de>
12409 PR middle-end/52584
12410 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
12411 of vector constants and constructors.
12413 2012-03-16 Richard Guenther <rguenther@suse.de>
12415 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12416 VIEW_CONVERT_EXPR to convert constants.
12417 (vect_is_simple_use): Treat all constants as vec_constant_def.
12419 2012-03-16 Richard Guenther <rguenther@suse.de>
12420 Kai Tietz <ktietz@redhat.com>
12422 PR middle-end/48814
12423 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
12424 side-effects completely in the pre-queue and use a temporary
12427 2012-03-16 Richard Guenther <rguenther@suse.de>
12429 * stor-layout.c (finish_bitfield_representative): Fall back
12430 to the conservative maximum size if we cannot compute the
12431 size of the tail padding.
12433 2012-03-16 Tristan Gingold <gingold@adacore.com>
12435 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
12436 __CRTL_VER and __VMS_VER.
12437 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
12438 and vms_c_get_vms_ver.
12439 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
12441 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
12442 (VMS_DEFAULT_VMS_VER): Define.
12443 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
12444 (VMS_DEFAULT_VMS_VER): Define.
12446 2012-03-16 Richard Guenther <rguenther@suse.de>
12448 * tree-vect-loop.c (get_initial_def_for_induction): Use
12449 build_constructor directly.
12450 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12451 build_vector_from_val.
12452 * tree.c (build_vector_from_val): Avoid creating a constructor
12453 first when we want a constant vector.
12455 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12457 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
12459 2012-03-16 Richard Guenther <rguenther@suse.de>
12461 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
12462 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
12463 (struct tree_vector): Remove elements member, add variable size
12465 (build_vector_stat): Declare.
12466 (build_vector): Define in terms of build_vector_stat.
12467 * tree.c (build_vector): Rename to ...
12468 (build_vector_stat): ... this. Take array of trees as parameter.
12469 (build_vector_from_ctor): Adjust.
12470 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
12471 initializer_zerop): Adjust.
12472 * cfgexpand.c (expand_debug_expr): Likewise.
12473 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
12474 const_vector_from_tree): Likewise.
12475 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
12476 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
12477 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
12478 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
12479 (lto_input_ts_vector_tree_pointers): Adjust.
12480 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
12481 (write_ts_vector_tree_pointers): Adjust.
12482 * varasm.c (const_hash_1, compare_constant, copy_constant,
12483 output_constant): Adjust.
12484 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
12485 * print-tree.c (print_node): Adjust.
12486 * tree-pretty-print.c (dump_generic_node): Adjust.
12487 * tree-vect-generic.c (uniform_vector_p, vector_element,
12488 lower_vec_perm): Adjust.
12489 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
12490 * tree-vect-slp.c (vect_get_constant_vectors,
12491 vect_transform_slp_perm_load): Adjust.
12492 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
12493 * expmed.c (make_tree): Adjust.
12494 * config/i386/i386.c (ix86_expand_builtin): Adjust.
12495 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
12496 and implementation.
12497 (sparc_fold_builtin): Adjust.
12499 2012-03-16 Tristan Gingold <gingold@adacore.com>
12501 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
12502 * config/vms/vms-stdint.h: New file.
12504 2012-03-16 Tristan Gingold <gingold@adacore.com>
12506 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
12507 (ia64-hp-*vms*): Replaced by ...
12508 (*-*-*vms*): ... This new entry.
12510 2012-03-15 Jakub Jelinek <jakub@redhat.com>
12513 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
12514 (ix86_expand_vec_perm_const_1): Use it.
12517 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
12518 (avx2_permv4df): Remove.
12519 (avx2_permv4di): Macroize into...
12520 (avx2_perm<mode>): ... this using VI8F_256 iterator.
12521 (avx2_permv4di_1): Macroize into...
12522 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
12524 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
12526 * combine.c (apply_distributive_law): Do not distribute SUBREG.
12528 2012-03-15 Ira Rosen <irar@il.ibm.com>
12529 Ulrich Weigand <ulrich.weigand@linaro.org>
12531 * tree-vect-patterns.c (widened_name_p): Rename to ...
12532 (type_conversion_p): ... this. Add new argument to determine
12533 if it's a promotion or demotion operation. Check for
12534 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
12535 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
12537 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
12538 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
12540 (vect_recog_mixed_size_cond_pattern): Likewise and allow
12541 non-constant then and else clauses.
12543 2012-03-15 Ira Rosen <irar@il.ibm.com>
12544 Ulrich Weigand <ulrich.weigand@linaro.org>
12546 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
12547 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
12548 vect_pattern_recog.
12549 * tree-vect-patterns.c (widened_name_p): Pass basic block
12550 info to vect_is_simple_use.
12551 (vect_recog_dot_prod_pattern): Fail for basic blocks.
12552 (vect_recog_widen_sum_pattern): Likewise.
12553 (vect_handle_widen_op_by_const): Support basic blocks.
12554 (vect_operation_fits_smaller_type,
12555 vect_recog_over_widening_pattern): Likewise.
12556 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
12557 Update call to vect_is_simple_use.
12558 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
12560 (check_bool_pattern): Add an argument, update call to
12561 vect_is_simple_use and the recursive calls.
12562 (vect_recog_bool_pattern): Update relevant function calls.
12564 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
12565 (vect_pattern_recog_1): Check for reduction only in loops.
12566 (vect_pattern_recog): Add new argument. Support basic blocks.
12567 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
12568 info to vect_is_simple_use_1.
12569 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
12570 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
12572 2012-03-15 Jakub Jelinek <jakub@redhat.com>
12573 Andrew Pinski <apinski@cavium.com>
12575 PR middle-end/52592
12576 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
12577 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
12578 calls instead of __builtin_ir{int,ound}*.
12580 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12582 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
12585 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12587 * config.gcc (target_type_format_char): New. Document it. Set it for
12589 * configure.ac (gnu_unique_option): Use target_type_format_char
12590 in test. Comment rationale.
12591 * configure: Regenerate .
12593 2012-03-15 Jakub Jelinek <jakub@redhat.com>
12595 PR tree-optimization/52267
12596 * tree-vrp.c (masked_increment): New function.
12597 (register_edge_assert_for_2): Derive ASSERT_EXPRs
12598 from (X & CST1) cmp CST2 tests.
12600 2012-03-15 Richard Guenther <rguenther@suse.de>
12602 PR middle-end/52580
12603 * tree-data-ref.c (subscript_dependence_tester_1): Check
12604 all dimensions for non-conflicting access functions.
12606 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12609 * doc/invoke.texi [C++ Language Options]: Document
12610 -ftemplate-backtrace-limit.
12612 2012-03-15 Tristan Gingold <gingold@adacore.com>
12614 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
12615 before a parameter.
12617 2012-03-15 Tristan Gingold <gingold@adacore.com>
12619 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
12620 use DW_OP_call_frame_cfa.
12622 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
12625 * config/i386/i386-opts.h (pmode): New.
12627 * config/i386/i386.c (ix86_option_override_internal): Properly
12628 check and set ix86_pmode.
12630 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
12632 * config/i386/i386.opt (maddress-mode=): New.
12634 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
12636 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12638 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
12639 (dwarf2out_do_cfi_asm): Likewise.
12640 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
12642 (add_data_member_location_attribute): Likewise.
12643 (gen_array_type_die): Likewise.
12644 (gen_subprogram_die): Likewise.
12645 (gen_producer_string): Likewise.
12646 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
12647 Remove MIPS_DEBUGGING_INFO handling.
12648 (sdb_debug_hooks): Likewise.
12649 (sdbout_begin_block): Likewise.
12650 (sdbout_end_block): Likewise.
12651 (sdbout_begin_prologue): Likewise.
12652 (sdbout_start_source_file): Likewise.
12653 (sdbout_end_source_file): Likewise.
12654 (sdbout_init): Likewise.
12655 * system.h (MIPS_DEBUGGING_INFO): Poison.
12657 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12659 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
12660 (alpha_file_start) [MS_STAMP]: Remove.
12662 * config/alpha/elf.h (TARGET_GAS): Remove.
12663 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
12664 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
12665 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
12666 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
12667 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
12668 (alpha*-*-freebsd*): Likewise.
12669 (alpha*-*-netbsd*): Likewise.
12670 (alpha*-*-openbsd*): Likewise.
12671 (alpha*-*-*): Remove target_cpu_default2.
12672 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
12674 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
12675 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
12676 * config/alpha/alpha.c (print_operand): Always assume
12677 TARGET_AS_SLASH_BEFORE_SUFFIX.
12678 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
12679 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
12680 ("*builtin_setjmp_receiver_er_1"): Remove.
12681 * config/alpha/alpha.opt (malpha-as): Remove.
12683 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
12685 Remove DEC Unix reference.
12687 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
12688 (EXTENDED_COFF): Remove.
12689 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
12690 (EXTENDED_COFF): Don't undef.
12691 * config/alpha/alpha.c (alpha_file_start): Always assume
12693 Don't set targetm.asm_file_start_file_directive.
12694 [!OBJECT_FORMAT_ELF]: Remove.
12695 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12697 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
12698 (DBX_DEBUGGING_INFO): Remove.
12699 (MIPS_DEBUGGING_INFO): Remove.
12700 (PREFERRED_DEBUGGING_TYPE): Remove.
12701 (DBX_OUTPUT_SOURCE_LINE): Remove.
12702 (SDB_OUTPUT_SOURCE_LINE): Remove.
12703 (DBX_CONTIN_LENGTH): Remove.
12704 (NO_DBX_FUNCTION_END): Remove.
12705 (ASM_STABS_OP): Remove.
12706 (ASM_STABN_OP): Remove.
12707 (ASM_STABD_OP): Remove.
12708 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
12709 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
12710 (PUT_SDB_DEF): Remove.
12711 (PUT_SDB_PLAIN_DEF): Remove.
12712 (PUT_SDB_TYPE): Remove.
12713 (sdb_label_count): Remove.
12714 (PUT_SDB_BLOCK_START): Remove.
12715 (PUT_SDB_BLOCK_END): Remove.
12716 (PUT_SDB_FUNCTION_START): Remove.
12717 (PUT_SDB_FUNCTION_END): Remove.
12718 (PUT_SDB_EPILOGUE_END): Remove.
12719 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
12720 (MIPS_DEBUGGING_INFO): Don't undef.
12721 (DBX_DEBUGGING_INFO): Don't undef.
12722 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
12723 (MIPS_DEBUGGING_INFO): Don't undef.
12724 (DBX_DEBUGGING_INFO): Don't undef.
12725 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
12726 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
12728 (alpha_start_function): Likewise.
12729 (sdb_label_count): Remove.
12730 (alpha_output_filename): Remove DBX_DEBUG handling.
12731 (alpha_file_start): Likewise.
12733 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12735 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
12736 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
12737 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
12739 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
12740 (ld_tls_support): Remove Solaris 8 references.
12741 (lwp_dir, lwp_spec): Remove support for alternate thread library.
12742 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
12743 * configure: Regenerate.
12744 * config.in: Regenerate.
12746 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
12747 * config/i386/sol2.h: Remove Solaris 8 references.
12749 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
12750 (i?86-*-solaris2.9): ... this.
12751 Remove Solaris 8 references.
12752 (Specific, *-*-solaris2*): Document Solaris 8 removal.
12753 Remove Solaris 8 references.
12755 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12757 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
12758 (mips-sgi-irix6.5*): Remove.
12759 * config.host (mips-sgi-irix*): Remove.
12760 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
12761 (set_have_as_tls): Remove *-*-irix6*.
12762 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
12763 * configure: Regenerate.
12765 * config/mips/iris6.h: Remove.
12766 * config/mips/iris6.opt: Remove.
12767 * config/mips/t-irix6: Remove.
12769 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
12770 (TARGET_IRIX6): Remove.
12771 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
12772 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
12773 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
12775 (mips_file_start): Likewise.
12776 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
12778 * config/mips/driver-native.c [__sgi__]: Remove.
12779 (host_detect_local_cpu) [__sgi__]: Remove.
12781 * config/mips/gnu-user.h: Remove iris5.h reference.
12783 * config/mips/mips-modes.def: Remove IRIX 6 reference.
12784 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
12785 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
12788 * gcc.c (main): Move asm_debug initialization ...
12789 (asm_debug): ... here.
12791 * ginclude/stddef.h (__STDDEF_H__): Don't define.
12793 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
12794 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
12795 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12796 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12797 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
12798 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
12800 * doc/tm.texi: Regenerate.
12802 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
12804 (MIPS Options, -march): Remove IRIX reference.
12805 * doc/install.texi (Binaries, SGI IRIX): Remove.
12806 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
12808 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
12810 2012-03-14 Martin Jambor <mjambor@suse.cz>
12812 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
12813 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
12814 (expand_expr_real_1): Do not handle misalignment if modifier is
12817 2012-03-14 Richard Guenther <rguenther@suse.de>
12819 PR middle-end/52584
12820 * tree-vect-generic.c (type_for_widest_vector_mode): Take
12821 element type instead of mode, use build_vector_type_for_mode
12822 instead of the langhook, build a vector of proper signedness.
12823 (expand_vector_operations_1): Adjust.
12825 2012-03-14 Richard Guenther <rguenther@suse.de>
12827 PR middle-end/52582
12828 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
12829 a cgraph node for a FUNCTION_DECL that comes from a constructor.
12830 (gimple_get_virt_method_for_binfo): Likewise.
12832 2012-03-14 Richard Guenther <rguenther@suse.de>
12834 PR tree-optimization/52571
12835 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12836 flag_section_anchors check ...
12837 (vect_can_force_dr_alignment_p): ... here. Do not re-align
12838 DECL_COMMON variables.
12840 2012-03-14 Richard Guenther <rguenther@suse.de>
12842 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
12843 * stor-layout.c (start_bitfield_representative): New function.
12844 (finish_bitfield_representative): Likewise.
12845 (finish_bitfield_layout): Likewise.
12846 (finish_record_layout): Call finish_bitfield_layout.
12847 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
12848 for QUAL_UNION_TYPE fields.
12849 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
12850 Stream DECL_BIT_FIELD_REPRESENTATIVE.
12851 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
12853 PR middle-end/52080
12854 PR middle-end/52097
12855 PR middle-end/48124
12856 * expr.c (get_bit_range): Unconditionally extract bitrange
12857 from DECL_BIT_FIELD_REPRESENTATIVE.
12858 (expand_assignment): Adjust call to get_bit_range.
12860 2012-03-14 Richard Guenther <rguenther@suse.de>
12862 PR middle-end/52578
12863 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
12864 the outermost conversion is a sign-change only.
12865 (fold_binary_loc): Disregard widening and sign-changing
12866 conversions when we determine if two variables are equal
12868 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
12869 (T1)x if the outermost conversion is a sign-change only.
12871 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
12874 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
12876 * config/i386/predicates.md (constant_call_address_operand): Declare
12877 as special predicate. Update all uses.
12879 2012-03-13 Jakub Jelinek <jakub@redhat.com>
12882 * c-parser.c (c_parser_postfix_expression)
12883 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
12885 * config/i386/smmintrin.h: Avoid /* within a comment.
12886 * config/i386/nmmintrin.h: Likewise.
12888 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12890 * config/i386/i386.md (xbegin): Remove constraint from expander.
12892 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12894 * config/i386/predicates.md (constant_call_address_operand): Declare
12895 as special predicate. Update all uses.
12896 * config/i386/i386.md: Remove mode from constant_call_address_operand
12898 * config/i386/i386.c (ix86_output_call_insn): Call
12899 constant_call_address_operand with VOIDmode.
12901 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12903 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
12904 AND zero extended address correctly.
12906 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12908 * config/i386/predicates.md (tls_symbolic_operand): Declare as
12910 (tls_modbase_operand): Ditto.
12911 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
12912 tls_modbase_operand predicates.
12914 2012-03-13 Martin Jambor <mjambor@suse.cz>
12916 * expr.c (expand_assignment): Handle misaligned scalar writes to
12917 memory through top-level MEM_REFs by calling store_bit_field.
12919 2012-03-13 Richard Guenther <rguenther@suse.de>
12921 PR middle-end/52134
12922 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
12923 if Y is a constant multiple of 1 << CST.
12925 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
12928 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
12929 offset (size) to a value the insns can deal with.
12930 (expand_epilogue): Ditto.
12932 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
12934 * config/arm/neon.ml (ops): Fixup expected instructions for
12935 unsigned vector compares.
12937 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12939 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
12940 addresses only when %reg is not in word mode.
12942 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12944 * config/microblaze/microblaze.md: Fix typo.
12945 * tree-if-conv.c: Likewise.
12946 * tree-vect-patterns.c: Likewise.
12948 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12950 * config.gcc (extra_passes): Remove.
12951 * configure.ac (extra_passes): Don't substitute.
12952 * configure: Regenerate.
12953 * Makefile.in (EXTRA_PASSES): Remove.
12954 (GCC_PASSES): Remove $(EXTRA_PASSES).
12955 (MOSTLYCLEANFILES): Likewise.
12956 (native): Likewise.
12957 (install-common): Likewise.
12959 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12961 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
12962 * config/i386/i386.c (ix86_decompose_address): Use
12963 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
12964 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
12965 thread pointer to a register.
12967 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
12969 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
12970 on tls_symbolic_operand.
12971 (tls_global_dynamic_64_<mode>): Likewise.
12973 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
12976 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
12977 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
12979 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
12982 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
12983 type from reg_class_t to enum reg_class.
12984 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
12986 2012-03-12 Andrew Pinski <apinski@cavium.com>
12988 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
12989 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
12990 (value_replacement): Likewise.
12991 (empty_block_p): Check also if the PHIs for the block are empty.
12993 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
12996 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
12997 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
12998 r184615 from 2012-02-28.
13000 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
13002 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
13003 (ix86_gen_tls_local_dynamic_base_64): Likewise.
13004 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
13005 and ix86_gen_tls_local_dynamic_base_64.
13006 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
13007 ix86_gen_tls_local_dynamic_base_64.
13009 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
13010 (*tls_global_dynamic_64_<mode>): This.
13011 (tls_global_dynamic_64): Renamed to ...
13012 (tls_global_dynamic_64_<mode>): This.
13013 (*tls_local_dynamic_base_64): Renamed to ...
13014 (*tls_local_dynamic_base_64_<mode>): This.
13015 (tls_local_dynamic_base_64): Renamed to ...
13016 (tls_local_dynamic_base_64_<mode>): This.
13018 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
13020 * config/i386/i386.c (ix86_option_override_internal): Properly
13021 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
13022 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
13023 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
13024 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
13026 * config/i386/sse.md (sse3_monitor64): Renamed to ...
13027 (sse3_monitor64_<mode>): This.
13029 2012-03-12 Tristan Gingold <gingold@adacore.com>
13031 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
13032 (ia64_function_arg_advance): Ditto.
13034 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13036 * config.gcc (mips*-*-openbsd*): Remove.
13037 * config/mips/openbsd.h: Remove.
13038 * config/mips/sdb.h: Remove.
13040 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
13041 * config/mips/mips.c (sdb_label_count): Remove.
13042 (mips_debugger_offset): Remove #if 0 code.
13043 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
13044 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
13046 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13048 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
13049 binutils reference.
13050 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
13051 Update binutils references.
13052 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
13053 Update binutils reference.
13054 Update Sun as/GNU ld caveat.
13055 Document binutils largefile requirement for LTO plugin.
13056 Remove reference to alternate libpthread.
13058 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13060 * config.gcc (alpha*-dec-osf5.1*): Remove.
13061 * config.host (alpha*-dec-osf*): Remove.
13062 * configure.ac (*-*-osf*): Remove.
13063 (alpha*-dec-osf*): Remove.
13064 * configure: Regenerate.
13066 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
13067 config/alpha/va_list.h, config/alpha/x-osf: Remove.
13069 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
13070 * config/alpha/alpha.c (struct machine_function): Update comment.
13071 (alpha_start_function): Remove Tru64 UNIX as handling for
13073 * config/alpha/alpha.md ("exception_receiver"): Remove
13074 TARGET_LD_BUGGY_LDGP.
13075 ("*exception_receiver_2"): Likewise.
13076 * except.c (finish_eh_generation): Remove Tru64 reference.
13077 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
13078 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
13079 * target.def (handle_pragma_extern_prefix): Remove.
13081 * Makefile.in (mips-tfile.o-warn): Remove.
13082 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
13083 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
13084 * mips-tdump.c, mips-tfile.c: Remove.
13086 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
13088 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
13089 (Specific, alpha*-dec-osf5.1): Note removal.
13090 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
13092 * doc/tm.texi: Regenerate.
13093 * doc/trouble.texi (Cross-Compiler Problems): Remove.
13095 2012-03-12 Richard Guenther <rguenther@suse.de>
13097 * config/arm/arm.c (neon_dereference_pointer): Do not call
13098 covert during RTL expansion.
13100 2012-03-12 Tristan Gingold <gingold@adacore.com>
13102 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
13103 Options. Mention -mpointer-size.
13105 2012-03-12 Richard Guenther <rguenther@suse.de>
13107 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
13108 build_nonstandard_integer_type.
13110 2012-03-12 Richard Guenther <rguenther@suse.de>
13112 * tree.c (signed_or_unsigned_type_for): Use
13113 build_nonstandard_integer_type.
13114 (signed_type_for): Adjust documentation.
13115 (unsigned_type_for): Likewise.
13116 * tree-pretty-print.c (dump_generic_node): Use standard names
13117 for non-standard integer types if available.
13119 2012-03-12 Tristan Gingold <gingold@adacore.com>
13121 * config/vms/vms.opt: Add vms-opts.h header.
13122 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
13124 (-mvms-return-codes): Document.
13125 (-mpointer-size): New option.
13126 (vms_pointer_size): Add enumeration.
13127 * config/vms/vms-opts.h: New file.
13128 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
13129 __INITIAL_POINTER_SIZE.
13130 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
13131 (C_COMMON_OVERRIDE_OPTIONS): Define.
13132 (DWARF2_ADDR_SIZE): Define.
13133 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
13134 * config/vms/vms-protos.h (vms_c_common_override_options):
13136 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
13137 if -mno-pointer-size.
13138 (vms_c_common_override_options): New function.
13139 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
13140 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
13141 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
13142 and flag_vms_pointer_size.
13143 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
13144 * config.gcc (*-*-*vms*): Define xm_file.
13145 (alpha*-dec-*vms*): Do not define xm_file.
13146 (alpha64-dec-*vms*): Remove.
13147 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
13150 2012-03-12 Jakub Jelinek <jakub@redhat.com>
13152 PR tree-optimization/51721
13153 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
13154 if (int) unsvar cmp CST.
13156 2012-03-12 Richard Guenther <rguenther@suse.de>
13158 * tree-sra.c (create_access_replacement): Only rename the replacement
13159 if we can rewrite it into SSA form. Properly mark register typed
13160 replacements that we cannot rewrite with TREE_ADDRESSABLE.
13161 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
13162 for aggregate or BLKmode results.
13164 2012-03-12 Jakub Jelinek <jakub@redhat.com>
13166 PR tree-optimization/52533
13167 * tree-vrp.c (register_edge_assert_for_2): Use double_int
13168 type for mask, only handle shifts by non-zero in-range
13169 shift count, for LE_EXPR and GT_EXPR if new_val is
13170 maximum, don't add the assertion.
13172 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
13174 * doc/invoke.texi: Document -mrtm option.
13175 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
13176 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
13177 (ix86_handle_option): Handle OPT_mrtm.
13178 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
13180 (x86_64-*-*): Ditto.
13181 * i386-builtin-types.def (INT_FTYPE_VOID): New.
13182 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13184 (ix86_target_string): Define -mrtm option.
13186 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
13188 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
13189 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
13190 IX86_BUILTIN_XTEST.
13191 (bdesc_special_args): Ditto.
13192 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
13193 (ix86_expand_special_args_builtin): Handle new built-in type.
13194 (ix86_expand_builtin): Handle XABORT instruction.
13195 * config/i386/i386.h (TARGET_RTM): New.
13196 * config/i386/i386.md (UNSPECV_XBEGIN): New.
13197 (UNSPECV_XEND): Ditto.
13198 (UNSPECV_XABORT): Ditto.
13199 (UNSPECV_XTEST): Ditto.
13206 * config/i386/i386.opt (mrtm): New.
13207 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
13208 * config/i386/rtmintrin.h: New header.
13209 * config/i386/xtestintrin.h: Ditto.
13211 2012-03-12 Tristan Gingold <gingold@adacore.com>
13213 * ginclude/stddef.h: Adjust previous patch.
13214 Use __VMS__ instead of VMS.
13216 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
13218 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
13219 Also convert sequences with CC setting arithmetic instruction.
13221 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
13223 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
13224 from C Language Options to Preprocessor Options.
13225 (C Dialect Options): Move -no-integrated-cpp documentation
13227 (Preprocessor Options): ...to here. Rewrite the description
13228 so it makes more sense, and remove discussion of merging front ends.
13230 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13232 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
13234 (ix86_expand_setmem): Likewise.
13236 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
13238 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
13241 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13243 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
13244 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
13246 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13248 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
13250 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13252 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
13255 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13256 Uros Bizjak <ubizjak@gmail.com>
13258 * config/i386/predicates.md (call_insn_operand): Allow
13259 constant_call_address_operand in Pmode only.
13260 (sibcall_insn_operand): Ditto.
13261 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
13262 (*call_vzeroupper): Ditto.
13264 (*sibcall_vzeroupper): Ditto.
13265 (*call_value): Ditto.
13266 (*call_value_vzeroupper): Ditto.
13267 (*sibcall_value): Ditto.
13268 (*sibcall_value_vzeroupper): Ditto.
13269 (*indirect_jump): Ditto.
13270 (*tablejump_1): Ditto.
13271 (indirect_jump): Convert memory address to word mode for TARGET_X32.
13272 (tablejump): Ditto.
13273 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
13276 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
13279 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
13280 Use movrt_negc instead of negc pattern for non-SH2A.
13281 (*movnegt): Remove.
13282 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
13284 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
13286 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
13287 if Pmode != word_mode.
13288 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
13289 Pmode == SImode for TARGET_X32.
13291 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
13292 (tls_initial_exec_x32): Likewise.
13294 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
13296 PR rtl-optimization/52528
13297 * combine.c (can_combine_p): Add setting of subst_low_luid
13298 before call to expand_field_assignment().
13300 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
13302 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
13303 and related program names.
13305 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
13307 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
13309 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
13312 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
13313 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
13314 to set code to 'q'.
13315 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
13316 (*movdi_internal_rex64): Use %E operand modifier for lea.
13317 (*movsi_internal): Ditto.
13319 (*lea<mode>_2): Ditto.
13320 (*lea_{3,4,5,6}_zext): Ditto.
13321 (*tls_global_dynamic_32_gnu): Ditto.
13322 (*tls_global_dynamic_64): Ditto.
13323 (*tls_dynamic_gnu2_lea_32): Ditto.
13324 (*tls_dynamic_gnu2_lea_64): Ditto.
13325 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
13327 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13329 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
13330 redefine to be NULL if the current bit-size is different from the
13331 configured bit-size.
13333 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
13334 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
13335 set the default tuning. Add asserts to make sure the cpu and tune
13336 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
13337 test whether the index is set, instead of > 0.
13338 (rs6000_file_start): Do not reset the default cpu if the current
13339 bit-size is different from the configured bit-size.
13341 2012-03-09 Tristan Gingold <gingold@adacore.com>
13343 * config/vms/vms-crtlmap.map: Add comments.
13344 Add entries needed to build Ada RTS.
13346 2012-03-09 Tristan Gingold <gingold@adacore.com>
13348 * ginclude/stddef.h: Do not define __size_t on VMS.
13350 2012-03-09 Tristan Gingold <gingold@adacore.com>
13352 * c-tree.h (c_default_pointer_mode): New variable.
13353 * c-decl.c (c_default_pointer_mode): New variable.
13354 (c_build_pointer_type): New function.
13355 (grokdeclarator): Call c_build_pointer_type instead
13356 of build_pointer_type.
13358 * config/vms/vms-c.c: Include c-tree.h
13359 (saved_pointer_mode): New variable.
13360 (handle_pragma_pointer_size): New function.
13361 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
13362 (vms_c_register_pragma): Register __pointer_size and
13363 __required_pointer_size pragmas.
13365 2012-03-09 Tristan Gingold <gingold@adacore.com>
13367 * config/vms/vms-c.c (vms_construct_include_filename): New function.
13368 (vms_c_register_includes): Reference it.
13370 2012-03-09 Andrew Pinski <apinski@cavium.com>
13372 PR middle-end/51988
13373 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
13374 print_generic_expr.
13375 (tree_ssa_phiopt_worker): Go through all the PHIs for
13376 value_replacement instead of just the singleton one.
13377 (value_replacement): Change return type to int. Return 0 instead of
13379 Allow the middle basic block to contain more than just the defining
13381 Handle non empty middle basic blocks.
13382 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
13384 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
13386 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
13387 array reference and component reference.
13388 (analyze_scalar_evolution_for_address_of): New.
13390 2012-03-08 Jie Zhang <jzhang918@gmail.com>
13393 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
13394 (hwloop_pattern_reg): Fix set but not used warning.
13395 (bfin_reorg_loops): Remove unused parameter.
13396 (bfin_reorg): Update use of bfin_reorg_loops.
13398 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
13400 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
13401 with integer parameters in registers.
13402 (gen_push): Push register in word_mode instead of Pmode.
13403 (ix86_emit_save_regs): Likewise.
13404 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
13405 (gen_pop): Pop register in word_mode instead of Pmode.
13406 (ix86_emit_restore_regs_using_pop): Likewise.
13407 (ix86_expand_prologue): Replace Pmode with word_mode for push
13408 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
13409 restore RAX and R10 in word_mode.
13410 (ix86_emit_restore_regs_using_mov): Restore integer registers
13412 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
13414 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
13415 (ix86_split_long_move): Likewise.
13417 * config/i386/i386.md (W): New.
13418 (*push<mode>2_prologue): Replace :P with :W.
13419 (*pop<mode>1): Likewise.
13420 (*pop<mode>1_epilogue): Likewise.
13421 (push/pop peephole2): Use word_mode scratch registers.
13423 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
13425 * config/i386/predicates.md (indirect_branch_operand): Simplify.
13427 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
13429 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
13430 for constants in [-63,63].
13432 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
13436 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
13438 * config/i386/i386.c (ix86_print_operand_address): Only handle
13439 zero-extended DImode addresses.
13441 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13443 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
13444 * configure: Regenerate.
13446 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
13449 * config/avr/avr.c (avr_mem_clobber): New static function.
13450 (avr_expand_delay_cycles): Add memory clobber operand to
13451 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
13452 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
13453 (enable_interrupt, disable_interrupt): New expander.
13454 (nopv, sleep, wdr): New expanders.
13455 (delay_cycles_1): Add memory clobber.
13456 (delay_cycles_2): Add memory clobber.
13457 (delay_cycles_3): Add memory clobber.
13458 (delay_cycles_4): Add memory clobber.
13459 (cli_sei): New insn from former "enable_interrupt",
13460 "disable_interrupt" with memory clobber.
13461 (*wdt): New insn from former "wdt" with memory clobber.
13462 (*nopv): Similar, but for "nopv".
13463 (*sleep): Similar, but for "sleep".
13465 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
13466 Kaz Kojima <kkojima@gcc.gnu.org>
13469 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
13470 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
13471 (SUBTARGET_OVERRIDE_OPTIONS): Define.
13473 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
13475 * config/i386/predicates.md (x86_64_zext_general_operand): New.
13476 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
13477 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
13479 2012-03-07 Walter Lee <walt@tilera.com>
13481 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
13482 REG_CFA_* notes for the stack pointer.
13483 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
13484 EH_RETURN_STACKADJ_RTX.
13485 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
13486 generate REG_CFA_* notes for the stack pointer.
13487 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
13488 by EH_RETURN_STACKADJ_RTX.
13490 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13492 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
13493 when __AVR_3_BYTE_PC__ is defined.
13495 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
13497 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
13498 (ix86_print_operand): Handle '^'.
13499 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
13500 using P mode iterator. Add %^ to asm template to conditionally emit
13502 (*rep_movdi_rex64): Ditto.
13503 (*strsetdi_rex_1): Ditto.
13504 (*rep_stosdi_rex64): Ditto.
13505 (*strmov{si,hi,qi}_1): Add %^ to asm template to
13506 conditionally emit addr32 prefix.
13507 (*rep_mov{si,qi}): Ditto.
13508 (*strset{si,hi,qi}): Ditto.
13509 (*rep_stos{si,qi}): Ditto.
13510 (*cmpstrnqi_nz_1): Ditto.
13511 (*cmpstrnqi_1): Ditto.
13512 (*strlenqi_1): Ditto.
13514 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
13516 * config/i386/i386.c (function_value_64): Return pointers in
13517 word_mode instead of Pmode.
13518 (ix86_promote_function_mode): Likewise.
13520 2012-03-07 Richard Guenther <rguenther@suse.de>
13522 * coverage.c (get_gcov_type): Use type_for_mode.
13523 (get_gcov_unsigned_t): Likewise.
13524 * expr.c (store_constructor): Use type_for_mode.
13525 (try_casesi): Likewise.
13526 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
13527 (add_standard_iv_candidates): Use standard type trees.
13528 * dojump.c (do_jump): Remove dead code.
13530 2012-03-07 Richard Guenther <rguenther@suse.de>
13532 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
13534 2012-03-07 Richard Guenther <rguenther@suse.de>
13536 * convert.c (strip_float_extensions): Move ...
13537 * tree.c (strip_float_extensions): ... here.
13539 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13542 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
13544 2012-03-07 Richard Guenther <rguenther@suse.de>
13546 * omp-low.c (extract_omp_for_data): Use signed_type_for.
13547 (expand_omp_for_generic): Likewise.
13548 (expand_omp_for_static_nochunk): Likewise.
13549 (expand_omp_for_static_chunk): Likewise.
13550 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
13551 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
13552 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13553 Use unsigned_type_for.
13554 (vect_create_cond_for_align_checks): Use signed_type_for.
13556 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
13558 PR rtl-optimization/52203
13559 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
13560 all callers to pass NULL except ...
13561 (reset_sched_cycles_in_current_ebb): ... here, save the value
13562 in new variable 'empty'. Increase issue_rate only for
13565 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
13568 * Makefile.in: Let install-gcc-ar depend on installdirs,
13569 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
13570 Don't double canonicalize if cross-compiling.
13572 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13575 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
13576 to: RAMPZ, RAMPY, RAMPX, RAMPD.
13577 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
13579 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13582 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
13584 * config/avr/avr.md (xload_8): Adjust insn length.
13586 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13589 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
13590 if RAMPZ affects reading from RAM.
13592 2012-03-07 Richard Guenther <rguenther@suse.de>
13596 * doc/invoke.texi (Precompiled Headers): Remove sentence that
13597 suggests you can include PCHs from inside another header.
13599 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
13601 PR middle-end/52515
13602 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
13604 2012-03-07 Kai Tietz <ktietz@redhat.com>
13606 * doc/invoke.texi (fwritable-relocated-rdata): Document
13607 new Cygwin/MinGW target option.
13608 * config/i386/winnt.c (i386_pe_unique_section): Ignore
13609 reloc if flag -fwritable-relocated-rdata is not set.
13610 (i386_pe_section_type_flags): Likewise.
13611 * config/i386/cygming.opt (fwritable-relocated-rdata):
13612 Add new flag variable flag_writable_rel_rdata.
13614 2012-03-07 Richard Guenther <rguenther@suse.de>
13616 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
13617 precision against gimple constraints.
13619 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
13621 PR middle-end/52372
13622 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
13624 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
13625 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
13627 (init_emit_regs): Move associated initialization to...
13628 (init_emit_once): ...here.
13630 2012-03-06 Richard Henderson <rth@redhat.com>
13632 * config/m68k/m68k.h (ISA_HAS_TAS): New.
13633 * config/m68k/sync.md (atomic_test_and_set): Use it.
13634 (atomic_test_and_set_1): Likewise.
13636 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13639 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
13640 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
13641 (vector_ltgt<mode>): Likewise.
13642 (vector_ordered<mode>): Likewise.
13643 (vector_unordered<mode>): Likewise.
13644 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
13646 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
13648 * trans-mem.c: New typedef for tm_region_p.
13649 Define vector types for tm_region_p.
13650 (tm_region_init): Replace region_worklist to a vector called
13653 2012-03-06 Richard Guenther <rguenther@suse.de>
13655 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
13656 MEM_REF with constant pointer operand.
13658 2012-03-06 Richard Guenther <rguenther@suse.de>
13660 PR middle-end/52493
13661 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
13663 2012-03-06 Tristan Gingold <gingold@adacore.com>
13665 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
13666 (external_model_kind): Improve documentation.
13667 (vms_pragma_extern_model): Handle relaxed_redef.
13668 (vms_c_register_pragma): Allow expansion for nomember_alignment.
13670 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
13672 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
13673 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
13674 Some more notes on EIND usage and reorder EIND subsection.
13676 2012-03-06 Tristan Gingold <gingold@adacore.com>
13678 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
13679 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
13681 2012-03-06 Tristan Gingold <gingold@adacore.com>
13683 * config/vms/t-vmsnative (version): Define.
13684 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
13686 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
13688 PR rtl-optimization/52250
13689 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
13690 to put note list into. Unconditionally call move_bb_info.
13691 (move_bb_info): Do not assert the blocks being in the same region,
13692 just drop the note list if they are not.
13694 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
13697 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
13698 and use unified expansion logic.
13699 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
13700 closer to the existing movt insn.
13701 (negc): Rename insn to *negc. Add new expander.
13702 (movnegt): Use xor pattern for T bit negation. Reserve helper
13703 constant for negc pattern.
13704 (*movnegt): New insn and splitter.
13706 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
13708 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
13711 2012-03-05 Richard Henderson <rth@redhat.com>
13713 * genemit.c (main): Include "target.h" in insn-emit.c.
13714 * Makefile.in (insn-emit.o): Depend on TARGET_H.
13715 * config/sh/sync.md (atomic_test_and_set): Reference
13716 targetm.atomic_test_and_set_trueval instead of
13717 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
13719 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
13721 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
13724 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
13726 * langhooks.c (add_builtin_type): New function.
13727 * langhooks.h (add_builtin_type): Export it.
13728 * config/mep/mep.c (mep_init_builtins): Use it.
13729 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
13731 2012-03-05 Jakub Jelinek <jakub@redhat.com>
13734 * tree.h (BLOCK_SAME_RANGE): Define.
13735 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
13736 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
13737 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
13738 isn't equal to supercontext fragment's fragment chain.
13739 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
13741 (blocks_nreverse_all): Likewise.
13742 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
13743 BLOCK_SUPERCONTEXT to supercontext fragment instead of
13744 supercontext fragment's fragment origin.
13745 * dwarf2out.c (add_high_low_attributes): If stmt has the same
13746 range as its parent (or parents thereof etc.), use the parent's
13747 DW_AT_ranges value instead of creating a new .debug_ranges range.
13749 2012-03-05 Richard Henderson <rth@redhat.com>
13752 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
13753 * omp-low.c (expand_omp_atomic): Assume anything aligned to
13754 BIGGEST_ALIGNMENT is aligned.
13756 2012-03-05 Richard Henderson <rth@redhat.com>
13758 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
13759 * config/sh/sh.c: ... here.
13761 2012-03-05 Richard Henderson <rth@redhat.com>
13764 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
13765 instead of calling negqi2 directly.
13767 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
13769 PR middle-end/52463
13770 * trans-mem.c (tm_region_init): Use last_basic_block.
13772 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
13774 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
13775 * config/sh/sync.md (atomic_test_and_set): New expander.
13776 (tasb, atomic_test_and_set_soft): New insns.
13777 * config/sh/sh.opt (menable-tas): New option.
13778 * doc/invoke.texi (SH Options): Document it.
13780 2012-03-05 Richard Guenther <rguenther@suse.de>
13782 * cfgloop.c (verify_loop_structure): Verify dominators before
13784 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
13785 dominators from here.
13786 * graphite-scop-detection.c (create_sese_edges): Likewise.
13787 * loop-doloop.c (doloop_optimize_loops): Likewise.
13788 * loop-init.c (loop_optimizer_init): Likewise.
13789 * loop-unroll.c (unroll_and_peel_loops): Likewise.
13790 * loop-unswitch.c (unswitch_loops): Likewise.
13791 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
13792 * tree-parloops.c (parallelize_loops): Likewise. Verify
13793 only when checking is enabled.
13794 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
13796 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
13798 * genautomata.c (parse_automata_opt): New static function.
13799 (initiate_automaton_gen): Remove all option handling code. Remove
13800 argc argument. All callers changed.
13801 (main): Call init_rtx_reader_args_cb with the new function as argument.
13803 2012-03-05 Richard Guenther <rguenther@suse.de>
13805 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
13806 * tree-if-conv.c (combine_blocks): Free post-dominator info
13808 * tree-parloops.c (create_parallel_loop): Free and re-compute
13809 dominator info after breaking it.
13811 2012-03-05 Richard Guenther <rguenther@suse.de>
13813 PR middle-end/52353
13814 * optabs.h (trapv_unoptab_p): New function.
13815 (trapv_binoptab_p): Likewise.
13816 * optabs.c (expand_binop): Use emit_libcall_block_1 with
13817 a proper equiv_may_trap argument.
13818 (expand_unop): Likewise.
13819 (emit_libcall_block_1): Take extra argument whether the
13820 instruction may trap. Renamed from ...
13821 (emit_libcall_block): ... this. New wrapper.
13823 2012-03-05 Jakub Jelinek <jakub@redhat.com>
13825 PR tree-optimization/51721
13826 * tree-vrp.c (register_edge_assert_for_2): If comparing
13827 lhs of right shift by constant with an integer constant,
13828 add ASSERT_EXPRs for the rhs1 of the right shift.
13830 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
13832 2012-03-05 Richard Guenther <rguenther@suse.de>
13834 * tree.c (integer_zerop): Handle VECTOR_CSTs.
13835 (integer_onep): Likewise.
13836 (integer_all_onesp): Likewise.
13838 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
13840 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
13842 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
13844 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
13845 instead of TARGET_64BIT.
13847 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
13849 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
13852 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
13854 * config/i386/i386.c (ix86_print_operand_address): Only handle
13855 zero-extended DImode addresses.
13857 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
13859 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
13860 taken and cputaken as bool.
13862 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
13864 * config/i386/constraints.md (Ya): New internal constraint.
13865 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
13866 (*zero_extendsidi2_rex64): Add x,x alternative.
13867 (*zero_extendsidi2): Ditto. Add o,0 alternative.
13868 Remove flags reg clobber. Adjust corresponding splits.
13869 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
13870 zero_extendqisi2 expanders using SWI12 mode iterator.
13871 (zero_extend<mode>si2_and): Macroize insn from
13872 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
13874 (*zero_extend<mode>si2): Macroize insn from
13875 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
13876 (*zero_extend*2_movzbl_and): Remove insn patterns.
13877 (zero_extendqihi2_and): Merge corresponding splitter.
13878 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
13879 (*zero_extend*2_movzbl_and): Remove insn patterns.
13880 (*anddi_1): Split TYPE_IMOVX instructions.
13881 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
13883 (and->zext splitter): Add splitter pattern.
13884 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
13886 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
13888 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
13890 (Debugging Options): Likewise.
13891 (Optimize Options): Likewise.
13892 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
13893 with other architectures. Use official processor names with correct
13894 spelling/capitalization. Fix formatting and grammar issues.
13895 (i386 and x86-64 Windows Options): Similar cleanup here.
13897 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
13899 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
13901 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
13903 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
13904 DBX_REGISTER_NUMBER.
13906 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
13908 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
13909 operand is CONST_INT. Take COSTS_N_INSNS into account.
13910 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
13913 2012-03-02 Richard Henderson <rth@redhat.com>
13915 * optabs.c (expand_atomic_test_and_set): Honor
13916 atomic_test_and_set_trueval even when atomic_test_and_set
13917 optab is not in use.
13919 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
13923 * config/sh/sh.c (sh_register_move_cost): Increase cost between
13924 GENERAL_REGS and FP_REGS for SImode.
13926 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
13929 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
13930 (absdi2): New expander.
13931 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
13933 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
13935 * config/sh/sync.md (atomic_exchange<mode>): New expander.
13936 (atomic_exchange<mode>_soft): New insn.
13938 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
13940 * config/sh/sync.md: Update copyright notice dates.
13941 (atomic_compare_and_swap<mode>): Use SImode for return value instead
13943 (atomic_compare_and_swap<mode>_soft): Likewise.
13945 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
13948 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
13949 * config/sh/sh.c: Update copyright notice dates.
13950 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
13951 alignment for TARGET_HARD_SH4.
13952 (sh_option_override): Reduce default function alignment. Set
13953 loop alignment to 4 bytes when not optimizing for size.
13955 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
13957 PR middle-end/50335
13958 * doc/invoke.texi (floop-flatten): Remove.
13959 * toplev.c (process_options): Remove references to flag_loop_flatten.
13960 * tree-ssa-loop.c (gate_graphite_transform): Same.
13961 * common.opt (floop-flatten): Obsolete.
13962 * graphite-poly.c (apply_poly_transforms): Remove reference to
13964 * Makefile.in (graphite-flattening.o): Remove.
13965 * graphite-flattening.c: Remove.
13967 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
13969 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
13970 having mode compatible with the mode of previous compare. Substitute
13971 compare mode of previous compare with the mode, compatible
13972 with eliminated and previous compare.
13974 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
13976 * config/rs6000/dfp.md (floatdidd2): New define_insn.
13978 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
13980 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
13981 compatible with CCGOCmode and CCGCmode.
13983 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
13985 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
13987 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13989 * config/arm/arm.c (arm_sat_operator_match): New function.
13990 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
13991 * config/arm/arm.md ("insn" attribute): Add "sat" value.
13992 ("SAT", "SATrev"): New code iterators.
13993 ("SATlo", "SAThi"): New code iterator attributes.
13994 ("*satsi_<SAT:code>"): New pattern.
13995 ("*satsi_<SAT:code>_shift"): Likewise.
13996 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
13997 and "shift" attributes.
13998 ("arm_usatsihi"): Add "insn" attribute.
13999 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
14000 by powers of two. Do not allow shift by 32.
14002 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
14005 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
14006 to pass the argument in the register of "natural" mode.
14008 2012-03-02 Richard Guenther <rguenther@suse.de>
14010 PR tree-optimization/52406
14011 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
14012 (struct indices): Add unconstrained_base member.
14013 (struct dr_alias): Remove unused vops member.
14014 (DR_UNCONSTRAINED_BASE): New define.
14015 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
14016 add indices to allow their disambiguation. Make DR_BASE_OBJECT
14017 be an artificial access that covers the whole indexed object,
14018 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
14019 plain decl base-objects to their MEM_REF variant.
14020 (dr_may_alias_p): When the base-object of either data reference
14021 has unknown size use only points-to information.
14022 (compute_affine_dependence): Make dumps easier to read and
14024 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
14025 DR_REF when looking for packed references.
14026 (vect_supportable_dr_alignment): Likewise.
14028 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
14030 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
14031 Improve conditions for peepholes of loads followed by commutative
14033 * config/arm/ldmstm.md: Regenerated.
14035 2012-03-02 Richard Guenther <rguenther@suse.de>
14037 * BASE-VER: Set to 4.8.0.
14039 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
14041 * config.gcc (obsolete): Add all ARM targets using the FPA.
14042 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
14043 * doc/install.texi: Avoid references to obsolete ARM ports.
14045 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
14047 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
14049 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
14050 Joern Rennecke <joern.rennecke@embecosm.com>
14052 * doc/extend.texi: Expand and update information on interrupt
14053 attribute for Epiphany.
14055 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
14057 * config/sh/sh-protos.h: Update copyright notice dates.
14058 * config/sh/sh.h: Likewise.
14059 * config/sh/sh.md: Likewise.
14060 * config/sh/constraints.md: Likewise.
14061 * config/sh/predicates.md: Likewise.
14063 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
14065 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
14066 * config/sh/sh.c (tertiary_reload_operand): Likewise.
14068 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
14070 * config/sh/constraints.md: Fix comment typo.
14072 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14075 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
14076 unsigned HOST_WIDE_INT.
14077 (zvdep_imm64): Likewise.
14078 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
14079 (vdepi_and): Likewise.
14080 Likewise for unamed 64-bit patterns.
14081 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
14083 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
14086 PR rtl-optimization/52417
14087 * cselib.c (cselib_any_perm_equivs): New variable.
14088 (cselib_reset_table): Check that it's not set when not
14089 preserving constants.
14090 (cselib_add_permanent_equiv): Set it.
14091 (cselib_have_permanent_equivalences): New.
14092 (cselib_init, cselib_finish): Reset it.
14093 * cselib.h (cselib_have_permanent_equivalences): Declare.
14094 * alias.c (get_addr): Restore earlier behavior when there
14095 aren't permanent equivalences.
14097 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
14099 * config/mn10300/mn10300-modes.def: Fix copyright notice.
14100 * config/v850/v850-modes.def: Fix copyright notice.
14102 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
14104 * doc/extend.texi (AVR Built-in Functions): Document
14105 __builtin_avr_flash_segment.
14107 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
14108 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
14109 (*split.flash_segment): New insn-and-split.
14110 * config/avr/avr.c (avr_init_builtins): Add local variables:
14111 const_memx_void_node, const_memx_ptr_type_node,
14112 char_ftype_const_memx_ptr.
14114 2012-03-01 Jakub Jelinek <jakub@redhat.com>
14116 PR tree-optimization/52445
14117 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
14118 add ssa_name_ver, offset and size fields and change store field
14120 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
14121 (add_or_mark_expr): Likewise. Only consider previous stores
14122 with the same size and offset.
14123 (nt_init_block): Only look at gimple_assign_single_p stmts,
14124 doesn't look at rhs2.
14126 2012-03-01 Richard Guenther <rguenther@suse.de>
14128 PR middle-end/52443
14129 * tree-cfg.c (verify_gimple_assign_unary): Allow any
14130 conversions from integral types to pointer types.
14132 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
14134 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
14135 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
14136 unintentionally removed in r184616.
14138 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14140 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
14143 2012-02-29 Jakub Jelinek <jakub@redhat.com>
14144 Uros Bizjak <ubizjak@gmail.com>
14147 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
14148 alternatives, add "e" constraint to the new last alternative
14149 and ! to last 3 alternatives.
14151 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
14153 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
14154 DW_AT_artificial attributes at the end of the processing.
14155 (gen_array_type_die): Likewise.
14156 (gen_enumeration_type_die): Likewise.
14157 (gen_struct_or_union_type_die): Likewise.
14158 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
14161 2012-02-29 Jakub Jelinek <jakub@redhat.com>
14163 PR middle-end/52419
14164 * expr.c (expand_assignment): If doing misaligned store that doesn't
14165 cover all mode bits, perform a RMW cycle.
14167 PR tree-optimization/52429
14168 * tree-parloops.c (separate_decls_in_region_debug): Return early
14169 if var is LABEL_DECL.
14171 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14173 PR tree-optimization/52424
14174 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
14175 calling dom_thread_across_edge.
14177 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14179 * config/avr/avr.c: Move definition of TARGET macros to end of file.
14181 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14183 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
14184 * config/avr/avr.c (avr_output_bld): Remove unused function.
14185 (avr_out_sbxx_branch): Use "%T" to print bit position.
14187 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14189 * config/avr/avr.md: Untabify.
14191 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14193 * config/avr/avr.md (eqne): New code iterator.
14194 (*dec-and-branchsi): Use it in text peephole's condition.
14195 (*dec-and-branchhi): Ditto.
14196 (*dec-and-branchqi): Ditto.
14198 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14201 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
14202 the device does not have the skip-bug.
14204 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
14206 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
14207 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
14208 -mpretend-cmove): New.
14210 2012-02-29 Jakub Jelinek <jakub@redhat.com>
14213 * df.h (struct df_d): Adjust comment that hard_regs_live_count
14214 doesn't count DEBUG_INSN refs.
14215 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
14216 for DEBUG_INSN refs.
14218 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14222 2012-02-20 Richard Guenther <rguenther@suse.de>
14223 PR tree-optimization/52298
14224 * tree-vect-stmts.c (vectorizable_load): Properly use
14225 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
14227 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
14229 PR middle-end/51752
14230 * gimple.h (gimple_in_transaction): New.
14231 (gimple_set_in_transaction): New.
14232 (struct gimple_statement_base): Add in_transaction field.
14233 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
14235 (tree_ssa_lim_initialize): Compute transaction bits.
14236 * tree.h (compute_transaction_bits): Protoize.
14237 * trans-mem.c (tm_region_init): Use the heap to store BB
14239 (compute_transaction_bits): New.
14241 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14243 * gcc.c (display_help): Document --help=common and sort entries
14246 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14248 * doc/install.texi: Document check-$LANG specific shortcuts
14250 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14253 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
14255 * config/arm/arm_neon.h: Regenerate.
14256 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
14257 (neon_vcgeu): New insn.
14258 (neon_vcgtu): Likewise.
14259 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
14260 (ops): Unsigned comparison intrinsics call a different builtin.
14262 2012-02-28 Richard Guenther <rguenther@suse.de>
14265 * config/i386/i386.c (ix86_expand_vector_set): Fix element
14266 ordering for the VEC_CONCAT for two element vectors for
14267 V2SFmode, V2SImode and V2DImode.
14269 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
14272 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
14273 detecting big-endian triplets.
14275 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
14277 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
14278 mode if there is no type information available.
14280 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
14282 PR tree-optimization/53207
14283 * doc/invoke.texi: Document as experimental and relying on graphite.
14285 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14287 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
14288 of initializer to changes from r184614.
14290 2012-02-28 Richard Guenther <rguenther@suse.de>
14292 PR tree-optimization/52395
14293 * tree-sra.c (build_ref_for_offset): Also look at the base
14294 TYPE_ALIGN when figuring out the alignment of the replacement.
14296 2012-02-28 Richard Guenther <rguenther@suse.de>
14298 PR tree-optimization/52402
14299 * ipa-prop.c (ipa_modify_call_arguments): Properly use
14300 mis-aligned types when creating the accesses at the call site.
14302 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14304 * config/avr/builtins.def: New file.
14305 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
14306 * config/avr/avr.c (enum avr_builtin_id): Use it.
14307 (avr_init_builtins): Use it. And use avr_bdesc.
14308 (bdesc_1arg): Remove.
14309 (bdesc_2arg): Remove.
14310 (bdesc_3arg): Remove.
14311 (struct avr_builtin_description): Add field n_args.
14312 (avr_bdesc): New static variable using builtins.def.
14313 (avr_expand_builtin): Use it.
14314 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
14315 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
14316 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
14318 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14321 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
14322 match only one single hard register with respective hard reg rtx.
14323 (movmemx_<mode>): Ditto.
14324 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
14325 insn anatomy of movmem[x]_<mode>.
14326 (avr_out_movmem): Same for printing assembler and operand usage.
14328 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14332 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
14333 address spaces located outside of device flash.
14335 * config/avr/avr.h (base_arch_s): Remove field n_segments.
14336 (mcu_type_s): Add field n_flash.
14337 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
14338 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
14339 (AVR_MCU): Add N_FLASH argument.
14340 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
14341 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
14342 macro __FLASH<n> if that address space makes sense for the device.
14343 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
14344 outside of target flash.
14345 (avr_asm_named_section): Ditto.
14346 (avr_asm_select_section): Ditto.
14347 (avr_addr_space_convert): Ditto.
14348 (avr_emit_movmemhi): Ditto.
14349 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
14350 address space is outside of device flash.
14351 (avr_insert_attributes): Ditto.
14352 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
14353 avr_current_arch->n_segments.
14355 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
14358 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
14359 (*movabs<mode>_2): Likewise.
14361 2012-02-27 Jakub Jelinek <jakub@redhat.com>
14364 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
14365 s_register_operand in the test instead of REG_P. Don't call
14366 gen_reg_rtx if it won't be used.
14368 PR tree-optimization/52376
14369 * ipa-split.c (split_function): Ignore CLOBBER stmts.
14371 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
14373 * ifcvt.c (noce_get_condition): Check condition variable is not
14374 small_register_classes_for_mode_p before accepting.
14376 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
14378 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
14380 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14383 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14384 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
14386 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
14388 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
14390 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
14392 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
14394 * config/sh/predicates.md: Remove blank lines.
14395 * config/sh/sh.c: Fix typos in comments.
14396 * config/sh/constraints.md: Likewise.
14397 * config/sh/sh.md: Remove blank lines.
14398 Fix typos in comments. Use ;; as comment characters.
14400 2012-02-26 Walter Lee <walt@tilera.com>
14402 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
14403 (replace_mov_pcrel_step2): Ditto.
14405 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
14408 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
14409 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
14410 and locs that reference values newer than the non-canonical value
14411 at hand. Return the canonical value as a worst case.
14412 (memrefs_conflict_p): Walk canonical value's locs.
14415 * cselib.c (preserve_only_constants): Rename to...
14416 (preserve_constants_and_equivs): ... this. Split out...
14417 (invariant_or_equiv_p): ... this. Preserve plus expressions
14418 of other preserved expressions too.
14419 (cselib_reset_table): Adjust.
14420 * var-tracking.c (reverse_op): Use canonical value to build
14423 2012-02-23 Kai Tietz <ktietz@redhat.com>
14425 * config/i386/i386.c (ix86_delegitimize_address): Handle
14426 UNSPEC_PCREL plus displacement.
14428 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
14431 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
14432 to test for unusedness in st X addressing.
14434 2012-02-24 Richard Guenther <rguenther@suse.de>
14436 PR middle-end/52361
14437 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
14438 (is_gimple_reg_type): Move inline ...
14439 * gimple.h (is_gimple_reg_type): ... here.
14441 2012-02-24 Richard Guenther <rguenther@suse.de>
14443 PR middle-end/52361
14444 * passes.c (execute_function_todo): When verifying SSA form
14445 verify gimple form first.
14446 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
14448 2012-02-24 Richard Guenther <rguenther@suse.de>
14450 PR middle-end/52355
14451 * fold-const.c (fold_addr_of_array_ref_difference): New function.
14452 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
14454 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14456 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
14458 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14460 * tree-phinodes.c (make_phi_node): Mark static.
14461 * tree-flow.h (make_phi_node): Remove extern decl.
14462 * doc/gimple.texi (make_phi_node): Remove documentation.
14464 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14466 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
14467 * tree-ssa-sccvn.c (print_scc): Ditto.
14469 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14471 * doc/passes.texi (Full redundancy elimination): Fix typo.
14473 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14475 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
14477 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
14480 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
14482 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
14485 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
14487 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
14489 * config/avr/avr.md (code_stdname): Add ior, xor.
14490 (xior): New code iterator.
14491 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
14492 (*<code_stdname><mode>qi.byte1-3): Ditto.
14494 2012-02-23 Jakub Jelinek <jakub@redhat.com>
14496 PR tree-optimization/52019
14497 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
14500 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14502 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
14503 HAVE_INITFINI_ARRAY to work around namespace pollution in
14504 certain versions of newlib system headers.
14505 * config.in: Regenerate.
14506 * configure: Regenerate.
14507 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
14508 instead of HAVE_INITFINI_ARRAY.
14510 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
14513 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
14514 is not offsettable memory reference.
14516 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
14519 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
14520 setting avr_need_clear_bss_p for __gnu_lto* symbols.
14522 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
14524 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
14525 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
14527 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14529 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
14530 library on Solaris 8 even without TLS support.
14531 * configure: Regenerate.
14533 2012-02-22 Richard Guenther <rguenther@suse.de>
14535 PR middle-end/52329
14536 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
14537 for GIMPLE_DEBUG stmts.
14539 2012-02-22 Martin Jambor <mjambor@suse.cz>
14541 PR middle-end/51782
14542 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
14543 according to the base object.
14545 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
14547 PR rtl-optimization/50063
14548 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
14549 and 2 (8-bit SP) in operand 2.
14550 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
14551 setup to use movhi_sp_r instead of vanilla move to write SP.
14552 Adjust REG_CFA notes to superseed unspec.
14553 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
14555 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
14556 known to be off) only with TARGET_NO_INTERRUPTS. Never use
14557 irq_state 1 (IRQ known to be on) here.
14559 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
14561 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
14563 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
14564 assign_hard_reg): Likewise.
14566 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
14568 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
14570 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
14572 * config/avr/avr.md
14573 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
14574 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
14576 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
14578 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
14579 prototype from here to...
14580 * config/avr/avr.h: ...here.
14582 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
14585 * thumb2.md (thumb2_shiftsi3_short): Split register and
14586 immediate shifts. For register shifts tie operands 0 and 1.
14587 (peephole2 for above): Check that register-controlled shifts
14588 have suitably tied operands.
14590 2012-02-21 Quentin Neill <quentin.neill@amd.com>
14593 * config/i386/bdver1.md (bdver1_call, bdver1_push,
14594 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
14595 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
14596 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
14597 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
14598 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
14599 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
14600 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
14601 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
14602 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
14603 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
14604 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
14605 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
14606 bdver1_ssevector_avx256_unaligned_load,
14607 bdver1_ssevector_sse128_unaligned_load,
14608 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
14609 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
14610 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
14611 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
14612 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
14613 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
14614 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
14615 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
14616 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
14617 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
14618 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
14619 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
14620 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
14621 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
14622 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
14623 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
14624 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
14625 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
14626 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
14627 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
14628 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
14629 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
14630 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
14631 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
14632 bdver1_ssediv_double_load, bdver1_ssediv_double,
14633 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
14634 Add "bdver2" attribute.
14636 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14638 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
14639 default if possible and not specified otherwise.
14641 2012-02-21 Richard Guenther <rguenther@suse.de>
14643 PR middle-end/52314
14644 * gimplify.c (create_tmp_from_val): Use the main variant type
14645 for the type of the temporary we create.
14647 2012-02-21 Richard Guenther <rguenther@suse.de>
14649 PR tree-optimization/52324
14650 * gimplify.c (gimplify_expr): When re-gimplifying expressions
14651 do not gimplify a MEM_REF address operand if it is already
14654 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14656 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
14657 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
14659 2012-02-21 Richard Guenther <rguenther@suse.de>
14661 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
14662 nested_in_vect_loop.
14664 2012-02-21 Jakub Jelinek <jakub@redhat.com>
14666 PR tree-optimization/52318
14667 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
14668 vdef also to non-pure/const call stmts in the sequence.
14670 2012-02-21 Tristan Gingold <gingold@adacore.com>
14672 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
14674 2012-02-20 David S. Miller <davem@davemloft.net>
14676 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
14677 don't use the "rd %pc" instruction on v9 for PIC register loads.
14679 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
14681 PR middle-end/52141
14682 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
14683 in a transaction safe function.
14685 2012-02-20 Kai Tietz <ktietz@redhat.com>
14688 * stor-layout.c (place_field): Handle desired_align for
14691 2012-02-20 Richard Guenther <rguenther@suse.de>
14693 PR tree-optimization/52298
14694 * tree-vect-stmts.c (vectorizable_store): Properly use
14695 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
14697 (vectorizable_load): Likewise.
14698 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
14699 Access DR_STEP after ensuring it is not NULL.
14701 2012-02-20 Jakub Jelinek <jakub@redhat.com>
14703 PR tree-optimization/52286
14704 * fold-const.c (fold_binary_loc): For (X & C1) | C2
14705 optimization use double_int_to_tree instead of build_int_cst_wide,
14706 rewrite to use double_int vars.
14708 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14711 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
14713 Remove -e 0 from $gcc_cv_ld invocation.
14714 Only use __GLIBC_PREREQ if defined.
14715 Enable on Solaris since Solaris 8 patch.
14716 (gcc_SUN_LD_VERSION): New macro.
14717 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
14718 gcc_SUN_LD_VERSION for version number format.
14719 * configure: Regenerate.
14720 * varasm.c (get_elf_initfini_array_priority_section): Set
14721 SECTION_NOTYPE for non-default priority.
14722 Use get_section instead of get_unnamed_section to emit
14723 .init_array/.fini_array with default priority.
14725 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
14727 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
14728 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
14729 (mips_start_unique_function, mips_output_mips16_rdhwr)
14730 (mips_code_end): New functions.
14731 (TARGET_ASM_CODE_END): Define.
14733 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
14735 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
14736 to stubs with non-sibling calls.
14738 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
14740 * doc/invoke.texi (-fira-* options): Copy-edit.
14741 (ira-* parameters): Copy-edit.
14743 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
14745 * doc/invoke.texi: Minor copy-edits to bring into conformance with
14746 GCC coding conventions.
14748 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
14750 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
14751 when used as adjectives.
14753 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
14755 * doc/invoke.texi: Clean up "that"/"which" confusion.
14757 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
14759 * system.h: Poison SMALL_REGISTER_CLASSES
14760 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
14761 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
14763 2012-02-16 Jakub Jelinek <jakub@redhat.com>
14765 PR tree-optimization/52285
14766 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
14767 when deciding if a call is a tail call or tail recursion.
14769 2012-02-16 Kai Tietz <ktietz@redhat.com>
14771 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14772 interger-constant displacement for UNSPEC_PCREL.
14774 2012-02-16 Jakub Jelinek <jakub@redhat.com>
14776 PR rtl-optimization/52208
14777 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
14778 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
14780 PR tree-optimization/52255
14781 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
14782 loop->header has virtual PHI, but exit_e->dest doesn't, add
14783 virtual PHI to exit_e->dest and adjust all uses after the loop.
14786 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
14787 children with clone_tree_hash, not after it.
14789 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
14791 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
14792 extended identifiers.
14794 2012-02-16 Jakub Jelinek <jakub@redhat.com>
14796 PR middle-end/51929
14797 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
14798 a same_body_alias, also test whether e->callee isn't a former
14799 or current clone of the decl this is a same body alias of.
14801 PR translation/52264
14802 * cgraphunit.c (verify_cgraph_node): Fix a typo.
14804 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
14806 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
14808 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14811 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
14812 force_reg instead of copy_to_reg for better optimization. Force
14813 non-register or memory operands into a register.
14815 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
14817 * extend.texi: Reserve upper bits of memory model for future use.
14819 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
14820 Anatoly Sokolov <aesok@post.ru>
14821 Eric Weddington <eric.weddington@atmel.com>
14824 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
14825 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
14826 Rewrite initializers for .macro.
14827 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
14828 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
14829 atxmega32d4, atxmega32x1.
14830 avrxmega4: atxmega64a3, atxmega64d3.
14831 avrxmega5: atxmega64a1, atxmega64a1u.
14832 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
14833 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
14834 avrxmega7: atxmega128a1, atxmega128a1u.
14835 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
14836 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
14837 (struct base_arch_s): Rename reserved to xmega_p.
14838 Rename reserved2 to have_rampd.
14839 (AVR_XMEGA): New define.
14840 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
14841 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
14842 * config/avr/predicates.md (io_address_operand): Take into
14843 account SFR offset.
14844 (low_io_address_operand): Ditto.
14845 (high_io_address_operand): Ditto.
14846 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
14847 (enabled, movhi_sp_r): Use them.
14848 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
14849 cpp_define_formatted to built-in define __AVR_ARCH__.
14850 (__AVR_XMEGA__): New built-in define.
14851 (__AVR_HAVE_RAMPD__): New built-in define.
14852 (__AVR_HAVE_RAMPX__): New built-in define.
14853 (__AVR_HAVE_RAMPY__): New built-in define.
14854 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
14856 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
14857 (avr_option_override): Initialize them.
14858 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
14859 (avr_init_expanders): Initialize them. No more block several calls.
14860 (emit_push_sfr): New static function.
14861 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
14863 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
14864 (avr_print_operand): Print addreeses as symbols for
14865 RAMPX, RAMPY, RAMPD, CCP.
14866 (output_movhi): Handle AVR_XMEGA when writing to SP.
14867 (avr_out_movhi_mr_r_xmega): New static function.
14868 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
14869 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
14870 __RAMPD__, __CCP__ as needed.
14872 * config/avr/multilib.h: Regenerate.
14873 * config/avr/t-multilib: Regenerate.
14874 * config/avr/avr-tables.opt: Regenerate.
14876 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
14878 PR tree-optimization/50561
14879 * graphite-flattening.c (lst_project_loop): Do not
14880 remove old scattering dimensions after flattening.
14881 (lst_do_flatten): Likewise.
14883 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
14885 * doc/extend.texi (AVR Built-in Functions): Remove doc for
14886 __builtin_avr_map8, __builtin_avr_map16.
14887 Document __builtin_avr_insert_bits.
14889 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
14890 (insert_bits): New insn.
14891 (adjust_len.map_bits): Rename to insert_bits.
14892 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
14893 * avr-protos.h (avr_out_map_bits): Remove.
14894 (avr_out_insert_bits, avr_has_nibble_0xf): New.
14895 * config/avr/constraints.md (Cxf,C0f): New.
14896 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
14897 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
14898 New built-in define __BUILTIN_AVR_INSERT_BITS.
14899 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
14900 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
14901 (avr_move_bits): Rewrite.
14902 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
14904 (avr_map_op_t): New typedef.
14905 (avr_map_op): New static variable.
14906 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
14907 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
14908 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
14909 (bdesc_3arg, avr_expand_triop_builtin): New.
14910 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
14911 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
14912 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
14913 (avr_map_equal_p, avr_map_sig_p): Remove.
14914 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
14915 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14916 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
14917 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14918 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
14919 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14921 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
14923 * config/c6x/c6x.md (reserve_cycles): New attribute.
14924 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
14925 don't reserve functional units after the branch occurs.
14927 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
14929 PR middle-end/52142
14930 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
14931 functions into non-tm_pure functions.
14933 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
14936 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
14937 (iterative_hash_canonical_type): Likewise.
14938 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
14941 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
14943 * haifa-sched.c (prune_ready_list): Ensure that if there is a
14944 sched-group insn, it either remains alone or the entire list is pruned.
14946 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
14948 * doc/install.texi (Prerequisites): Fix grammar.
14949 (Configuration): Likewise.
14951 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
14953 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
14954 MPC as part of GCC before describing configuring with --with-gmp etc.
14955 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
14956 sources are present.
14958 2012-02-14 Jakub Jelinek <jakub@redhat.com>
14961 * dwarf2out.c (clone_tree_hash): New function.
14962 (copy_decls_walk): Use it instead of clone_tree.
14964 2012-02-14 Richard Guenther <rguenther@suse.de>
14966 PR tree-optimization/52244
14967 PR tree-optimization/51528
14968 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
14969 replacements for integral types.
14971 2012-02-14 Walter Lee <walt@tilera.com>
14973 * config.gcc: Handle tilegx and tilepro.
14974 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
14975 tilegx and tilepro.
14976 Add HAVE_AS_TLS check for tilegx and tilepro.
14977 * configure: Regenerate.
14978 * doc/contrib.texi: Add Mat Hostetter and self.
14979 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
14980 Document instruction intrinsics and network accessing intrinsics.
14981 (TILEPro Built-in Functions): New node. Document instruction
14982 intrinsics and network accessing intrinsics.
14983 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
14984 (Specific, tilepro-*-linux*): Likewise.
14985 * doc/invoke.texi (TILE-Gx Options): New section.
14986 (TILEPro Options): New section.
14987 * doc/md.texi (TILE-Gx): New section.
14988 (TILEPro): New section.
14989 * common/config/tilegx/tilegx-common.c: New file.
14990 * common/config/tilepro/tilepro-common.c: New file.
14991 * config/tilegx/constraints.md: New file.
14992 * config/tilegx/linux.h: New file.
14993 * config/tilegx/mul-tables.c: New file.
14994 * config/tilegx/predicates.md: New file.
14995 * config/tilegx/sync.md: New file.
14996 * config/tilegx/t-tilegx: New file.
14997 * config/tilegx/tilegx-builtins.h: New file.
14998 * config/tilegx/tilegx-c.c: New file.
14999 * config/tilegx/tilegx-generic.md: New file.
15000 * config/tilegx/tilegx-modes.def: New file.
15001 * config/tilegx/tilegx-multiply.h: New file.
15002 * config/tilegx/tilegx-protos.h: New file.
15003 * config/tilegx/tilegx.c: New file.
15004 * config/tilegx/tilegx.h: New file.
15005 * config/tilegx/tilegx.md: New file.
15006 * config/tilegx/tilegx.opt: New file.
15007 * config/tilepro/constraints.md: New file.
15008 * config/tilepro/gen-mul-tables.cc: New file.
15009 * config/tilepro/linux.h: New file.
15010 * config/tilepro/mul-tables.c: New file.
15011 * config/tilepro/predicates.md: New file.
15012 * config/tilepro/t-tilepro: New file.
15013 * config/tilepro/tilepro-builtins.h: New file.
15014 * config/tilepro/tilepro-c.c: New file.
15015 * config/tilepro/tilepro-generic.md: New file.
15016 * config/tilepro/tilepro-modes.def: New file.
15017 * config/tilepro/tilepro-multiply.h: New file.
15018 * config/tilepro/tilepro-protos.h: New file.
15019 * config/tilepro/tilepro.c: New file.
15020 * config/tilepro/tilepro.h: New file.
15021 * config/tilepro/tilepro.md: New file.
15022 * config/tilepro/tilepro.opt: New file.
15024 2012-02-14 Jakub Jelinek <jakub@redhat.com>
15026 PR tree-optimization/52210
15027 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
15028 vect_model_simple_cost with two entry vect_def_type array instead
15029 of an address of dt.
15031 2012-02-14 Richard Guenther <rguenther@suse.de>
15034 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
15035 Do not stream DECL_QUALIFIER.
15036 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
15037 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
15038 (find_decls_types_r): Do not walk DECL_QUALIFIER.
15040 2012-02-14 Jakub Jelinek <jakub@redhat.com>
15043 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
15046 2012-02-13 Jakub Jelinek <jakub@redhat.com>
15049 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
15050 * cselib.c (cselib_subst_to_values_from_insn): New function.
15051 * sched-deps.c (add_insn_mem_dependence,
15052 sched_analyze_1, sched_analyze_2): Use it.
15054 2012-02-13 Jan Hubicka <jh@suse.cz>
15056 PR middle-end/52214
15057 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
15059 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
15061 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
15062 (GTM_SELF_SPECS): Define if not already defined.
15063 (driver_self_specs): Add GTM_SELF_SPECS.
15064 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
15065 (GTM_SELF_SPECS): Define.
15066 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
15067 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
15069 2012-02-13 Jakub Jelinek <jakub@redhat.com>
15071 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
15074 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
15076 PR middle-end/52230
15077 * omp-low.c (expand_omp_for): If a static schedule without chunk size
15078 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
15080 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
15083 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
15085 2012-02-13 Richard Guenther <rguenther@suse.de>
15087 PR translation/52211
15088 * passes.c (enable_disable_pass): Fix typo.
15090 2012-02-13 Jakub Jelinek <jakub@redhat.com>
15092 PR middle-end/52209
15093 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
15094 XOR for reduce_bit_field if type is unsigned.
15096 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
15098 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
15099 disallow changes from SFmode to mode with different size in FP regs.
15101 2012-02-12 Robert Millan <rmh@gnu.org>
15102 Gerald Pfeifer <gerald@pfeifer.com>
15104 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
15107 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
15109 PR rtl-optimization/52175
15110 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
15111 to frame-related instructions.
15113 2012-02-10 Jason Merrill <jason@redhat.com>
15116 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
15117 (demangle_new_symbols): Fill it.
15118 (scan_linker_output): Walk it.
15119 (start_tweaking): Split out from scan_linker_output.
15120 (maybe_tweak): Update sym->chosen.
15121 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
15123 2012-02-11 Jakub Jelinek <jakub@redhat.com>
15126 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
15128 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
15130 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
15131 having the same mode as previous compare.
15133 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
15135 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
15136 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
15137 (nonlocal_goto_internal): Likewise.
15138 (nonlocal_goto): Emit a use and an indirect jump directly.
15140 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
15143 * doc/extend.texi : Update comments for __atomic_compare_exchange and
15144 __atomic_{is,always}_lock_free.
15146 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
15149 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
15150 negative constant address for TARGET_X32.
15152 2012-02-10 Richard Henderson <rth@redhat.com>
15154 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
15155 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
15156 for GIMPLE_TRANSACTION. Tidy if's into a switch.
15158 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15159 Ira Rosen <irar@il.ibm.com>
15161 PR tree-optimization/50031
15162 * targhooks.c (default_builtin_vectorization_cost): Handle
15163 vec_promote_demote.
15164 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
15165 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
15166 all types of reduction and pattern statements.
15167 (vect_estimate_min_profitable_iters): Likewise.
15168 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
15169 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
15170 for explicit realigns.
15171 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
15172 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
15173 vec_promote_demote.
15174 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
15175 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
15176 vec_perm for VSX and handle vec_promote_demote.
15178 2012-02-10 Jakub Jelinek <jakub@redhat.com>
15180 PR middle-end/52177
15181 * builtins.c (fold_builtin_atomic_always_lock_free,
15182 expand_builtin_atomic_always_lock_free,
15183 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
15184 Return and/or test boolean_true_node/boolean_false_node instead of
15185 integer_one_node/integer_zero_node.
15187 2012-02-10 Jan Hubicka <jh@suse.cz>
15189 PR middle-end/48600
15190 * predict.c (predict_paths_for_bb): Prevent looping.
15191 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
15193 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
15195 * config/arm/arm.c (output_move_double): In one case properly
15196 count number of instructions that will be emitted.
15198 2012-02-10 Richard Guenther <rguenther@suse.de>
15200 PR translation/52193
15201 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
15203 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
15205 PR middle-end/52140
15206 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
15208 2012-02-09 Jakub Jelinek <jakub@redhat.com>
15211 * var-tracking.c (emit_note_insn_var_location): If
15212 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
15213 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
15214 non-NOTE_DURING_CALL_P insn.
15216 2012-02-09 Bin Cheng <bin.cheng@arm.com>
15218 PR middle-end/51867
15219 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
15221 2012-02-08 Magnus Granberg <zorry@gentoo.org>
15224 * gcc.c (switch_matches) Support switches with separated form,
15227 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
15229 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
15231 (RAMPZ_ADDR): Ditto.
15232 * config/avr/avr.c (avr_addr_t): New typedef.
15233 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
15234 (avr_init_expanders): Initialize it.
15235 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
15237 (expand_epilogue): Ditto.
15238 (avr_print_operand): Ditto.
15239 (avr_file_start): Ditto.
15240 (avr_emit_movmemhi): Ditto.
15242 2012-02-08 Richard Guenther <rguenther@suse.de>
15244 PR tree-optimization/46886
15245 * tree-flow.h (do_while_loop_p): Declare.
15246 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
15247 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
15249 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
15251 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
15252 always succeed for integers larger than a native word.
15254 2012-02-08 Richard Guenther <rguenther@suse.de>
15256 PR rtl-optimization/52170
15257 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
15258 properly handle integer vector modes.
15260 2012-02-08 Jakub Jelinek <jakub@redhat.com>
15262 PR gcov-profile/52150
15263 * coverage.c: Include target.h.
15264 (build_var): Call targetm.strip_name_encoding on the assembler name.
15265 Change one _ into . or $ if the target allows it.
15266 * Makefile.in (coverage.o): Depend on $(TARGET_H).
15268 PR rtl-optimization/52139
15269 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
15270 is a BARRIER after emit_insn_after_noloc, move BB_END
15271 to the last non-BARRIER insn before it.
15273 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
15275 PR middle-end/24306
15276 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
15277 (mips_gimplify_va_arg_expr): Call it instead of
15278 std_gimplify_va_arg_expr.
15280 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15282 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
15283 message for -mno-pointers-to-nested-function.
15285 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
15287 PR middle-end/51994
15288 * expr.c (get_inner_reference): If there is an offset, add a negative
15289 bit position to it (if any).
15291 2012-02-07 Jakub Jelinek <jakub@redhat.com>
15293 PR rtl-optimization/52060
15294 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
15295 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
15296 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
15297 and/or i0src_copy2 when needed.
15299 2012-02-07 Jakub Jelinek <jakub@redhat.com>
15301 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
15302 or LTOPLUGINSONAME if have_c.
15304 * config/freebsd-spec.h: Add comment about what macros can be defined
15306 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
15307 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
15310 2012-02-07 Richard Guenther <rguenther@suse.de>
15312 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
15313 newline in -alias dumps.
15315 2012-02-07 Kai Tietz <ktietz@redhat.com>
15316 Dave Korn <dave.korn.cygwin@gmail.com>
15319 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
15320 Take care that typinfo gets dllexport-attribute.
15322 2012-02-07 Jakub Jelinek <jakub@redhat.com>
15324 PR middle-end/52074
15325 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
15326 if modifier < EXPAND_SUM call force_operand on the result.
15328 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
15330 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
15331 adding __forwarder_dst__ prefix if a forwarder_section attribute is
15333 (epiphany_function_type): Replace types for specific interrupts with
15334 EPIPHANY_FUNCTION_INTERRUPT.
15335 (EPIPHANY_INTERRUPT_P): Update.
15336 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
15337 New static function.
15338 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
15339 <disinterrupt>: Affects type identity.
15340 (epiphany_handle_interrupt_attribute): Handle variable number of
15342 (epiphany_compute_function_type): Update for new
15343 epiphany_function_type definition.
15344 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
15345 handlers with a longcall forwarder.
15346 (epiphany_start_function): Handle multiple interrupt arguments and/or
15347 forwarder_section attribute.
15349 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
15352 2012-02-07 Alan Modra <amodra@gmail.com>
15355 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
15358 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15360 PR tree-optimization/50969
15361 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
15362 use vec_perm rather than vector_stmt.
15363 (vect_model_load_cost): Likewise.
15364 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
15365 vec_perm to be the same as other vector statements.
15366 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
15367 cost of vec_perm for TARGET_VSX.
15369 2012-02-06 Richard Guenther <rguenther@suse.de>
15371 PR tree-optimization/52115
15372 * tree-sra.c (access_has_replacements_p): New function.
15373 (sra_modify_assign): Use it to decide whether a use is uninitialized.
15375 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
15377 PR middle-end/52047
15378 * trans-mem.c (expand_call_tm): Add an assertion.
15379 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
15382 2012-02-06 Richard Guenther <rguenther@suse.de>
15384 PR tree-optimization/50955
15385 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
15386 raise cost of expressions that replace an address with an
15387 expression based on a different pointer.
15389 2012-02-06 Jakub Jelinek <jakub@redhat.com>
15392 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
15393 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
15395 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
15398 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
15399 -Weffc++ and specify guidelines come from second edition.
15401 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
15403 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
15404 (sibcall_value_multiple_internal, call_split, call_internal_direct)
15405 (call_direct_split, call_value_split, call_value_internal_direct)
15406 (call_value_direct_split, call_value_multiple_split): Use jal and
15407 jal_macro attributes.
15409 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
15411 * reload1.c (reload_regs_reach_end_p): Replace with...
15412 (reload_reg_rtx_reaches_end_p): ...this function.
15413 (new_spill_reg_store): Update commentary.
15414 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
15415 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
15416 before setting new_spill_reg_store.
15417 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
15418 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
15419 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
15420 for non-spill reload registers.
15422 2012-02-05 Ira Rosen <irar@il.ibm.com>
15424 PR tree-optimization/52091
15425 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
15426 (vect_is_simple_use_1): Likewise.
15427 * tree-vect-loop.c (vectorizable_reduction): Update calls
15428 to vect_is_simple_use_1 and vect_is_simple_use.
15429 (vectorizable_live_operation): Likewise.
15430 * tree-vect-patterns.c (widened_name_p,
15431 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
15432 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
15433 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
15434 vectorizable_shift,vectorizable_operation, vectorizable_store,
15435 vectorizable_load): Likewise.
15436 (vect_is_simple_cond): Add an argument, pass it to
15437 vect_is_simple_use_1.
15438 (vectorizable_condition): Update calls to vect_is_simple_cond,
15439 vect_is_simple_use.
15440 (vect_is_simple_use): Add an argument, the statement in which
15441 OPERAND is used. Check that if OPERAND's def stmt is a double
15442 reduction phi node, the use is a phi node too.
15443 (vect_is_simple_use_1): Add an argument, pass it to
15444 vect_is_simple_use.
15445 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
15446 to vect_is_simple_use.
15448 2012-02-04 Jakub Jelinek <jakub@redhat.com>
15450 PR rtl-optimization/52095
15451 * modulo-sched.c (dump_insn_locator): New function.
15452 (loop_canon_p, sms_schedule): Use it.
15454 PR rtl-optimization/52113
15455 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
15456 even for decomposable shift/zext insns.
15458 2012-02-03 Jakub Jelinek <jakub@redhat.com>
15459 Zdenek Dvorak <ook@ucw.cz>
15461 PR rtl-optimization/52092
15462 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
15463 on get_iv_value result.
15465 2012-02-02 Andrew Pinski <apinski@cavium.com>
15467 PR middle-end/47982
15468 PR middle-end/43967
15469 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
15471 2012-02-02 Jakub Jelinek <jakub@redhat.com>
15473 PR middle-end/48071
15474 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
15476 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
15478 PR rtl-optimization/49800
15479 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
15480 (sched_finish): Call regstat_free_n_sets_and_refs.
15482 2012-02-02 Jia Liu <proljc@gmail.com>
15484 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
15487 2012-02-02 Jan Hubicka <jh@suse.cz>
15488 Tom de Vries <tom@codesourcery.com>
15490 PR middle-end/51998
15491 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
15492 * varpool.c (varpool_analyze_pending_decls): Likewise.
15494 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
15495 Jayant R Sonar <jayant.sonar@kpitcummins.com>
15497 * config.gcc: Add cr16-* support.
15499 * doc/extend.texi: Document cr16 extensions.
15500 * doc/install.texi: Document cr16 install.
15501 * doc/invoke.texi: Document cr16 options.
15502 * doc/md.texi: Document cr16 constraints.
15504 * common/config/cr16/cr16-common.c: New file.
15505 * config/cr16/cr16.c: New file.
15506 * config/cr16/cr16.h: New file.
15507 * config/cr16/cr16.md: New file.
15508 * config/cr16/cr16.opt: New file.
15509 * config/cr16/cr16-protos.h: New file.
15510 * config/cr16/predicates.md: New file.
15511 * config/cr16/constraints.md: New file.
15512 * config/cr16/t-cr16: New file.
15514 2012-02-02 Jakub Jelinek <jakub@redhat.com>
15517 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
15518 that operands[2] is either immediate, or q_regs_operand.
15520 PR tree-optimization/52073
15521 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
15522 a pattern stmt for pattern uses, ignore uses outside of the loop.
15524 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
15526 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
15527 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
15528 (OUT_AS1, OUT_AS2): Remove.
15530 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
15532 PR rtl-optimization/51374
15533 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
15534 to cross other volatile_refs_p insns.
15536 2012-02-01 Richard Guenther <rguenther@suse.de>
15538 * doc/invoke.texi (fno-inline): Clarify documentation.
15539 (finline-small-functions): Likewise.
15540 (finline-functions): Likewise.
15541 * common.opt (finline): Adjust comment and documentation.
15542 (finline-small-functions): Clarify documentation.
15543 (finline-functions): Likewise.
15544 (finline-functions-called-once): Likewise.
15546 2012-02-01 Tristan Gingold <gingold@adacore.com>
15548 * c-typeck.c (composite_type): Keep mode for pointers.
15550 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
15552 * function.h (regno_reg_rtx): Adjust comment.
15553 * reginfo.c (init_reg_modes_target): Only use the previous mode
15554 if it fits within one register. Remove MIPS comment.
15556 2012-01-31 Jakub Jelinek <jakub@redhat.com>
15559 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
15561 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15563 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
15564 to srak instruction.
15566 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
15568 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
15570 2012-01-31 Jakub Jelinek <jakub@redhat.com>
15575 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
15577 2012-01-31 Richard Guenther <rguenther@suse.de>
15579 PR tree-optimization/51528
15580 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
15583 2012-01-31 Jakub Jelinek <jakub@redhat.com>
15588 * ree.c (add_removable_extension): Change def_map argument
15589 to unsigned *, store in def_map 1 + offset into *insn_list vector
15590 instead of pointers into the vector.
15591 (find_removable_extensions): Adjust caller.
15593 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
15595 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
15596 Transform all "* quoted-c-code" to { c-code }.
15597 Remove redundant test for "optimize" in combine patterns.
15598 Move (include "avr-dimode.md") to end of file.
15600 2012-01-30 Bin Cheng <bin.cheng@arm.com>
15603 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15604 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
15606 2012-01-30 Richard Guenther <rguenther@suse.de>
15608 PR tree-optimization/52028
15609 * tree-loop-distribution.c (ldist_gen): Properly update
15612 2012-01-30 Jakub Jelinek <jakub@redhat.com>
15615 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
15616 set_cur_line_info_table if not emitting debug info.
15618 PR tree-optimization/52046
15619 * tree-vect-patterns.c (check_bool_pattern): Give up if
15620 a comparison could throw.
15623 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
15625 2012-01-30 Richard Guenther <rguenther@suse.de>
15627 PR tree-optimization/52045
15628 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
15629 SSA form if cfgcleanup did anything.
15631 2012-01-30 Richard Guenther <rguenther@suse.de>
15633 PR tree-optimization/52045
15634 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
15635 before computing final todo.
15637 2012-01-30 Richard Guenther <rguenther@suse.de>
15639 PR tree-optimization/51528
15640 * tree-sra.c (sra_modify_assign): Re-factor in preparation
15643 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
15645 * df-problems.c (df_kill_notes): Check that the use refers
15646 to the note under examination.
15648 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
15651 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
15652 parameter and use short-lived pseudos.
15653 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
15654 (sparc_expand_vector_init): Const-ify local variables and adjust
15655 calls to above functions.
15657 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
15659 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
15661 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
15663 * doc/invoke.texi: Make usage of "compile time" and
15664 "run time"/"runtime" consistent throughout the file.
15666 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
15668 * config/alpha/alpha.c (alpha_option_override): Default to
15669 full IEEE compliance mode for Go language.
15671 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
15673 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
15674 (LINK_SSP_SPEC): Define.
15676 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15679 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
15682 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
15684 * doc/invoke.texi: Correct hyphenation of "floating point",
15685 "double precision", and related terminology throughout the file.
15687 2012-01-28 Jakub Jelinek <jakub@redhat.com>
15690 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
15691 arm_general_register_operand predicate for operand 2 instead of
15694 2012-01-27 Ian Lance Taylor <iant@google.com>
15697 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
15698 * builtins.c (expand_builtin_init_trampoline): Add onstack
15699 parameter. Change caller.
15700 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
15701 * tree.c (build_common_builtin_nodes): Declare
15702 __builtin_init_heap_trampoline.
15704 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
15706 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
15707 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
15708 * config/avr/avr.c: Ditto.
15709 (avr_regnames): Remove because unused.
15710 * config/avr/avr.md (*cpse.ne): New peephole.
15711 (*cpse.eq): New peephole from former cpse peepholes.
15713 2012-01-27 Michael Eager <eager@eagercon.com>
15715 * config/microblaze.c (microblaze_emit_compare): Correct
15716 test after pcmp instruction.
15718 2012-01-27 Richard Guenther <rguenther@suse.de>
15720 PR tree-optimization/52020
15721 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
15723 2012-01-27 Richard Guenther <rguenther@suse.de>
15725 * ipa-pure-const.c (check_stmt): Clobbers do not make a
15726 function non-const/pure.
15728 2012-01-27 Richard Guenther <rguenther@suse.de>
15730 PR tree-optimization/50444
15731 * tree-sra.c (build_ref_for_offset): Properly adjust the
15732 MEM_REF type for unaligned accesses.
15734 2012-01-27 Richard Guenther <rguenther@suse.de>
15736 PR tree-optimization/50444
15737 * expr.c (mem_ref_refers_to_non_mem_p): New function.
15738 (expand_assignment): Use it. Properly handle misaligned
15739 bases when expanding stores to component references.
15740 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
15741 refactor that case.
15743 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
15745 PR middle-end/51389
15746 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
15747 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
15748 * tree-data-ref.c (find_data_references_in_loop): Make static.
15749 (compute_all_dependences): Change return type to bool. Bail out
15750 for too many datarefs in a loop. Move the hunk resetting the data
15751 dependences vector from ...
15752 (compute_data_dependences_for_loop): ... here. Account for
15753 compute_all_dependences returning false.
15754 (compute_data_dependences_for_bb): Likewise.
15755 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
15756 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
15758 2012-01-27 Richard Guenther <rguenther@suse.de>
15760 PR middle-end/51959
15761 * expr.c (store_field): Use the alias-set of the scratch memory
15764 2012-01-27 Tom de Vries <tom@codesourcery.com>
15766 PR tree-optimization/51990
15767 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15769 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
15771 2012-01-27 Jakub Jelinek <jakub@redhat.com>
15774 * var-tracking.c (reverse_op): Don't add any reverse operation
15775 if V already has any constant locations.
15777 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
15779 * doc/invoke.texi: Correct usage of "command line" (noun)
15780 vs "command-line" (adjective) throughout.
15782 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
15784 * doc/invoke.texi (Language Independent Options): Move
15785 -Wcoverage-mismatch blurb from here....
15786 (Warning Options): ...to here.
15788 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
15790 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15791 Set rs6000_always_hint to false for 476.
15793 2012-01-27 Matthias Klose <doko@ubuntu.com>
15795 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
15797 * incpath.c (add_standard_paths): Likewise.
15799 2012-01-27 Richard Henderson <rth@redhat.com>
15801 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15802 * config/m68k/sync.md (atomic_test_and_set): Rename from
15803 sync_test_and_setqi and adjust the operands.
15804 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
15805 and unconditionally enable.
15807 2012-01-27 Richard Henderson <rth@redhat.com>
15809 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15810 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
15811 (ldstub): Rename from ldstubqi.
15812 (ldstub<I24MODE>): Remove.
15814 2012-01-27 Richard Henderson <rth@redhat.com>
15816 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15817 * c-cppbuiltin.c (cpp_atomic_builtins): Define
15818 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
15819 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
15820 * doc/tm.texi: Rebuild.
15822 2012-01-27 Richard Henderson <rth@redhat.com>
15824 * optabs.c (gen_atomic_test_and_set): Remove default.
15825 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
15827 2012-01-26 Jakub Jelinek <jakub@redhat.com>
15829 PR rtl-optimization/51978
15830 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
15831 (combine_reaching_defs): Likewise.
15832 (struct re_info): Remove.
15833 (add_removable_extension): Remove x and data arguments,
15834 add insn, insn_list and def_map. Use the arguments directly
15835 instead of using struct re_info.
15836 (find_removable_extensions): Don't call add_removable_extension
15837 through note_stores, instead just call it with single_set
15838 result if non-NULL.
15839 (find_and_remove_re): Pass curr_cand->expr instead of
15840 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
15842 2012-01-26 Michael Matz <matz@suse.de>
15844 PR tree-optimization/46590
15845 * cfgexpand.c: Revert last change (r183305).
15846 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
15848 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
15849 checking for emptiness.
15851 2012-01-26 Jakub Jelinek <jakub@redhat.com>
15853 PR middle-end/51895
15854 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
15855 non-addressable non-BLKmode base correctly.
15857 2012-01-26 Michael Matz <matz@suse.de>
15859 PR tree-optimization/48794
15860 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
15861 regions referenced from RESX/EH_DISPATCH.
15863 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15865 * config/s390/s390.h: Make BRANCH_COST an option.
15866 * config/s390/s390.opt: New option -mbranch-cost.
15868 2012-01-26 Richard Henderson <rth@redhat.com>
15870 Revert 2012-01-24 change:
15871 * trans-mem.c (requires_barrier): Do not instrument thread local
15872 variables and emit save/restore for them.
15874 2012-01-25 Jakub Jelinek <jakub@redhat.com>
15876 PR middle-end/51986
15877 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
15880 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
15882 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
15885 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
15888 Rename __pgm to __flash.
15889 Rename __pgm1 to __flash1.
15890 Rename __pgm2 to __flash2.
15891 Rename __pgm3 to __flash3.
15892 Rename __pgm4 to __flash4.
15893 Rename __pgm5 to __flash5.
15894 Rename __pgmx to __memx.
15895 * doc/extend.texi (AVR Named Address Spaces)
15896 Rename address space names as indicated above.
15897 * config/avr/avr.c (avr_addrspace): Ditto.
15899 * config/avr/avr-protos.h
15900 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
15901 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
15902 * config/avr/predicates.md: Ditto.
15903 * config/avr/avr.c Ditto, and
15904 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
15905 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
15907 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
15908 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
15909 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
15910 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
15911 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
15912 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
15913 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
15914 * config/avr/avr.c: Ditto.
15915 * config/avr/avr.md: Ditto.
15917 2012-01-25 Jason Merrill <jason@redhat.com>
15920 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
15922 2012-01-25 Jakub Jelinek <jakub@redhat.com>
15924 PR tree-optimization/51987
15925 * tree-data-ref.c (get_references_in_stmt): Handle references in
15926 non-volatile GIMPLE_ASM.
15928 2012-01-25 Richard Guenther <rguenther@suse.de>
15930 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
15931 bases are dereferenced.
15933 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
15935 PR rtl-optimization/48374
15936 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
15938 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
15940 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
15941 compute_data_dependences_for_loop returns false.
15942 * tree-parloops.c (loop_parallel_p): Likewise.
15944 2012-01-25 Richard Guenther <rguenther@suse.de>
15946 * tree.h (get_pointer_alignment_1): Declare.
15947 * builtins.c (get_pointer_alignment_1): New function.
15948 (get_pointer_alignment): Use it.
15950 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15952 PR rtl-optimization/48308
15953 * combine.c (enum undo_kind): Add UNDO_LINKS.
15954 (struct undo): Add member l to other_contents and where.
15955 (do_SUBST_LINK): New.
15957 (try_combine): Handle LOG_LINKS for the dummy i1 case.
15958 (undo_all): Handle UNDO_LINKS.
15960 2012-01-25 Richard Henderson <rth@redhat.com>
15962 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
15965 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
15967 * optabs.c (gen_atomic_test_and_set): Use each argument.
15969 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
15971 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
15972 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
15973 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
15974 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
15975 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
15976 TARGET_PAIRED_SINGLE_FLOAT.
15978 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
15980 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15981 (in_struct, return_val): Remove MEM documentation.
15982 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
15983 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15984 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
15986 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15987 * cfgexpand.c (add_alias_set_conflicts): Likewise.
15988 * expr.c (store_field): Likewise.
15989 * function.c (assign_stack_temp_for_type): Likewise.
15990 * ifcvt.c (noce_try_cmove_arith): Likewise.
15991 * reload1.c (reload): Likewise.
15992 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
15993 (alpha_set_memflags): Likewise.
15994 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
15996 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
15998 * rtl.h (true_dependence, canon_true_dependence): Remove varies
16000 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
16001 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
16002 (true_dependence_1, true_dependence, canon_true_dependence): Remove
16004 * cselib.c (cselib_rtx_varies_p): Delete.
16005 (cselib_invalidate_mem): Update call to canon_true_dependence.
16006 * dse.c (record_store, check_mem_read_rtx): Likewise.
16007 (scan_reads_nospill): Likewise.
16008 * cse.c (check_dependence): Likewise.
16009 (cse_rtx_varies_p): Delete.
16010 * expr.c (safe_from_p): Update call to true_dependence.
16011 * ira.c (validate_equiv_mem_from_store): Likewise.
16012 (memref_referenced_p): Likewise.
16013 * postreload-gcse.c (find_mem_conflicts): Likewise.
16014 * sched-deps.c (sched_analyze_2): Likewise.
16015 * store-motion.c (load_kills_store): Likewise.
16016 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
16017 * gcse.c (mems_conflict_for_gcse_p): Likewise.
16018 (compute_transp): Update call to canon_true_dependence.
16020 2012-01-25 Richard Henderson <rth@redhat.com>
16022 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
16023 (maybe_emit_atomic_test_and_set): New.
16024 (expand_sync_lock_test_and_set): Use it.
16025 (expand_atomic_test_and_set): Likewise.
16026 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
16027 the implementation; clarify implementation defined details.
16028 * doc/md.texi (atomic_test_and_set): Document.
16030 2012-01-25 Richard Henderson <rth@redhat.com>
16032 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
16034 2012-01-25 Richard Henderson <rth@redhat.com>
16037 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
16038 to effect no-op split.
16040 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
16043 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
16044 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
16045 (BT_FN_VOID_PTR_INT_SIZE): New.
16046 (BT_FN_UINT_UINT_VAR): Remove.
16047 (BT_FN_UINT32_UINT32_VAR): New.
16048 (BT_FN_DOUBLE_VPTR): Remove.
16049 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
16051 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
16052 (_ITM_changeTransactionMode): Same.
16053 (_ITM_memmoveRtWt): Change return type to void.
16054 (_ITM_memcpyRtWt): Same.
16055 (_ITM_memsetW): Same.
16056 (_ITM_RaRD): Change types to double.
16061 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
16063 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
16064 Patrick Marlier <patrick.marlier@gmail.com>
16066 * trans-mem.c (requires_barrier): Do not instrument thread local
16067 variables and emit save/restore for them.
16069 2012-01-24 Jason Merrill <jason@redhat.com>
16072 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
16073 output static aliases.
16075 2012-01-24 Jakub Jelinek <jakub@redhat.com>
16078 * common.opt (-pie, -shared, pie, shared): Change from Common to
16080 * gcc.c (display_help): Display help for -pie and -shared.
16082 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
16085 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
16086 Remove note on size/offset limitation.
16087 (AVR Variable Attributes): Add example how to read data located
16088 with progmem. Refer to named address spaces.
16089 * doc/invoke.texi (AVR Options): Fix typo.
16091 2012-01-24 Richard Guenther <rguenther@suse.de>
16093 Forward-port to trunk
16094 2010-09-21 Jakub Jelinek <jakub@redhat.com>
16096 PR middle-end/45678
16097 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
16098 op0 isn't sufficiently aligned and there is movmisalignM
16099 insn for mode, use it to load op0 into a temporary register.
16101 2012-01-24 Jakub Jelinek <jakub@redhat.com>
16104 * target.def (const_not_ok_for_debug_p): New hook.
16105 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
16107 * doc/tm.texi: Regenerated.
16108 * dwarf2out.c (const_ok_for_output_1): If
16109 targetm.const_not_ok_for_debug_p returns true, fail.
16110 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
16112 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
16114 2012-01-23 Kai Tietz <ktietz@redhat.com>
16117 * config/i386/predicates.md (symbolic_operand): Allow
16118 UNSPEC_PCREL as PIC expression for lea.
16119 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
16120 * config/i386/i386.c (ix86_delegitimize_address): Handle
16121 UNSPEC_PCREL for none-MEM, too.
16123 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
16125 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
16126 (ipa_tm_create_version_alias): Same.
16128 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
16131 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
16132 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
16134 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
16135 Patrick Marlier <patrick.marlier@gmail.com>
16136 Iain Sandoe <developer@sandoe-acoustics.co.uk>
16139 * lto-wrapper.c (run_gcc): Pass the LTO section name to
16140 simple_object_start_read.
16142 2012-01-23 Richard Guenther <rguenther@suse.de>
16145 PR tree-optimization/51895
16146 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
16147 parameter decomposition into BLKmode components.
16149 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
16151 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
16152 fake variables for restrict-qualified pointers whose pointed-to type
16153 contains a placeholder.
16155 2012-01-23 Richard Guenther <rguenther@suse.de>
16157 PR tree-optimization/51949
16158 * ipa-split.c (execute_split_functions): Do not split malloc functions.
16160 2012-01-23 Jakub Jelinek <jakub@redhat.com>
16162 PR rtl-optimization/51933
16163 * ree.c (transform_ifelse): Return true right away if dstreg is
16164 already wider or equal to cand->mode.
16165 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
16166 (make_defs_and_copies_lists): Remove defs_list and copies_list
16167 arguments, add state argument, just truncate state->work_list
16168 instead of always allocating and freeing the vector. Assert that
16169 get_defs succeeds instead of returning 2. Changed return type to bool.
16170 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
16171 have ext_src_mode, see if it has been modified already with the
16172 right kind of extension and has been extended before from the
16173 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
16174 just return true. Remember the original mode in state->modified array.
16175 (combine_reaching_defs): Add state argument. Don't allocate and
16176 free here def_list, copied_list and vec vectors, instead just
16177 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
16178 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
16179 Add state variable, clear vectors in it, initialize state.modified
16180 if needed. Free all the vectors at the end and state.modified too.
16181 Don't skip a candidate if the extension expression has been modified.
16183 2012-01-22 Douglas B Rupp <rupp@gnat.com>
16186 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
16187 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
16188 (extra_options) interix.opt -> i386/interix.opt"
16189 (extra_objs):Add winnt-stubs.o
16190 * configure.ac: Add interix to target_os .comm on PE check.
16191 * configure: Regenerate.
16192 * config/interix3.h: Delete and move bits to..
16193 * config/interix.h: Delete and move bits to..
16194 * config/i386/i386-interix3.h: Delete and move bits to..
16195 * config/i386/i386-interix.h: ..here.
16196 (TARGET_CPU_DEFAULT): Remove redefinition.
16197 (TARGET_ASM_CONSTRUCTOR): Undefine.
16198 (SUBTARGET_SWITCHES): Define for ms-bitfields.
16199 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
16200 (PTRDIFF_TYPE): Define.
16201 (LONG_DOUBLE_TYPE_SIZE): Define.
16202 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
16203 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
16204 (TARGET_SECTION_TYPE_FLAGS): Define.
16205 (ASM_DECLARE_FUNCTION_NAME): Define.
16206 (ASM_OUTPUT_EXTERNAL): Define.
16207 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
16208 (ASM_OUTPUT_ALIGNED_BSS): Define.
16209 (PCC_BITFIELD_TYPE_MATTERS): Define.
16210 (USE_CONST_SECTION): Define.
16211 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
16212 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16213 (SUPPORTS_ONE_ONLY): Remove.
16214 (I386_PE_STRIP_ENCODING): Define.
16215 * config/interix.opt: Delete and move bits to..
16216 * config/i386/interix.opt: ..here. New.
16217 (mpe-aligned-commons): Add.
16218 * config/i386/t-interix: Add copyright header.
16219 (winnt-stubs.o): Add rule.
16221 2012-01-22 Jason Merrill <jason@redhat.com>
16224 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
16225 for extra name aliases.
16227 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
16229 PR rtl-optimization/51924
16230 * ree.c (combine_set_extension): Improve debugging message.
16231 (combine_reaching_defs): Likewise.
16232 (get_defs): Rename confusingly named variable.
16233 (find_and_remove_re): Skip a candidate if the extension expression has
16236 2012-01-21 Robert Millan <rmh@gnu.org>
16237 Gerald Pfeifer <gerald@pfeifer.com>
16239 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
16240 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
16242 2012-01-20 Jakub Jelinek <jakub@redhat.com>
16244 PR tree-optimization/51914
16245 * tree-vect-stmts.c (vectorizable_conversion): For
16246 cvt_type && modifier == WIDEN, put temporary with cvt_type
16247 at the beginning of vec_dsts and set vec_dest to temporary
16250 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
16252 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
16254 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
16256 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
16257 * config/rs6000/rs6000.c: Likewise.
16259 2012-01-20 Jakub Jelinek <jakub@redhat.com>
16262 * config/arm/arm.c (arm_count_output_move_double_insns): Call
16263 output_move_double on a copy of operands array.
16265 2012-01-20 Cary Coutant <ccoutant@google.com>
16266 Dodji Seketeli <dodji@redhat.com>
16269 * dwarf2out.c (copy_declaration_context): Return ref to parent
16270 of declaration DIE, if necessary.
16271 (remove_child_or_replace_with_skeleton): Add new parameter; update
16272 caller. Place skeleton DIE under parent DIE of original declaration.
16273 Move call to copy_declaration_context to here ...
16274 (break_out_comdat_types): ... from here.
16276 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16278 PR rtl-optimization/51856
16279 * reload.c (find_reloads_subreg_address): Set the address_reloaded
16282 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16285 * config/arm/arm.c (arm_print_operand): Correct output of alignment
16286 hints for neon loads and stores.
16288 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
16292 * doc/extend.texi (Named Address Spaces): Split into subsections.
16293 (AVR Named Address Spaces): New subsection.
16294 (M32C Named Address Spaces): New subsection.
16295 (RL78 Named Address Spaces): New subsection.
16296 (SPU Named Address Spaces): New subsection.
16297 (Variable Attributes): New anchor "AVR Variable Attributes".
16298 (AVR Variable Attributes): Rewrite and avoid wording
16299 "address space" in this context.
16300 * doc/invoke.texi (AVR Options): Rewrite and add documentation
16301 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
16302 (AVR Built-in Macros): New subsubsection therein.
16303 * doc/md.texi (AVR constraints): Remove "C04", "R".
16305 2012-01-20 Richard Guenther <rguenther@suse.de>
16307 PR tree-optimization/51903
16308 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
16309 when removing stmts.
16311 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16314 * config/arm/arm.c (arm_load_pic_register): Use
16315 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
16316 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
16317 (arm_pic_static_addr): Likewise.
16318 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
16319 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
16320 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
16321 (pic_load_addr_unified): New.
16323 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
16326 * function.c (instantiate_virtual_regs_in_insn): Use
16327 delete_insn_and_edges when removing a wrong asm insn.
16329 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
16331 PR rtl-optimization/40761
16332 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
16333 Add new member loop_num.
16334 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
16335 (ira_build): Remove the parameter.
16337 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
16338 (ira.c): Do not build CFG loops for one region allocation. Remove
16339 argument from ira_build call.
16341 * ira-build.c (init_loop_tree_node): New function.
16342 (create_loop_tree_nodes): Use it. Separate the case when CFG
16343 loops are not built.
16344 (more_one_region_p): Check current_loops.
16345 (finish_loop_tree_nodes): Separate the case when CFG loops are not
16347 (add_loop_to_tree): Process loop equal to NULL too.
16348 (form_loop_tree): Separate the case when CFG loops are not built.
16349 Use explicitly number for the root.
16350 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
16352 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
16353 instead of loop->num.
16354 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
16355 (mark_all_loops_for_removal): Ditto.
16356 (remove_unnecessary_regions): Separate the case when CFG loops
16358 (ira_build): Remove the parameter. Use explicit number of regions
16359 when CFG loops are not built.
16361 * ira-color.c (print_loop_title): Separate the case for the root node.
16362 Use loop_num instead of loop->num.
16363 (move_spill_restore): Use loop_num instead of loop->num.
16365 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
16366 (change_loop): Ditto.
16367 (change_loop): Use loop_num instead of loop->num.
16369 * ira-lives.c (process_bb_node_lives): Ditto.
16371 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
16373 * ira-conflicts.c (print_allocno_conflicts): Ditto.
16375 2012-01-19 Jakub Jelinek <jakub@redhat.com>
16377 PR libmudflap/40778
16378 * tree-mudflap.c (mf_artificial): New function.
16379 (execute_mudflap_function_ops, execute_mudflap_function_decls,
16380 mx_register_decls, mudflap_enqueue_decl): Use it.
16383 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
16384 numbers in the insn pattern.
16386 2012-01-19 Michael Matz <matz@suse.de>
16388 PR tree-optimization/46590
16389 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
16390 use it in remembering which conflicts we already created.
16391 (add_scope_conflicts): Adjust call to above, (de)allocate helper
16394 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
16397 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
16398 (merge_and_complain): Same.
16400 2012-01-19 Jakub Jelinek <jakub@redhat.com>
16403 * config/initfini-array.h: Guard content of the header
16404 with #ifdef HAVE_INITFINI_ARRAY.
16405 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
16406 Add initfini-array.h to tm_file here.
16407 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
16408 * config.gcc: Don't add initfini-array.h to tm_file here.
16409 * configure: Regenerated.
16411 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
16413 PR rtl-optimization/51505
16414 * df-problems.c (df_kill_notes): New parameter live. Update comment.
16415 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
16416 (df_note_bb_compute): Update the call to df_kill_notes.
16418 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
16420 * trans-mem.c (requires_barrier): Remove call to is_global_var.
16422 2012-01-18 Richard Guenther <rguenther@suse.de>
16424 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
16425 of conversions to void *.
16427 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16428 Richard Sandiford <rdsandiford@googlemail.com>
16430 PR middle-end/50325
16431 PR middle-end/51192
16432 * optabs.h (simplify_expand_binop): Declare.
16433 * optabs.c (simplify_expand_binop): Make global.
16434 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
16435 endian targets if the source cannot be exactly covered by word
16438 2012-01-17 Jakub Jelinek <jakub@redhat.com>
16441 * hard-reg-set.h (struct hard_reg_set_container): New type.
16442 * target.h (struct hard_reg_set_container): Forward declare.
16443 * target.def (set_up_by_prologue): New target hook.
16444 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
16445 * doc/tm.texi: Regenerated.
16446 * function.c (thread_prologue_and_epilogue_insns): Change
16447 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
16448 Call targetm.set_up_by_prologue on it.
16449 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
16450 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
16452 2012-01-17 Nick Clifton <nickc@redhat.com>
16454 * config/rx/rx.c (rx_can_use_simple_return): New function.
16455 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
16456 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
16458 2012-01-17 Richard Guenther <rguenther@suse.de>
16460 PR middle-end/51782
16461 * expr.c (expand_assignment): Take address-space information
16462 from the address operand of MEM_REF and TARGET_MEM_REF.
16463 (expand_expr_real_1): Likewise.
16465 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16467 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
16468 reload dump is requested.
16470 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
16473 * trans-mem.c (requires_barrier): Call may_be_aliased.
16475 2012-01-17 Jakub Jelinek <jakub@redhat.com>
16477 PR tree-optimization/51877
16478 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
16479 call arguments and fndecls compare equal, instead return false if they
16480 don't. Return true only if lhs1 and lhs2 are either both NULL, or
16481 both SSA_NAMEs that are valueized the same, or they satisfy
16484 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16486 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
16488 * configure: Regenerate.
16490 2012-01-16 Jan Hubicka <jh@suse.cz>
16494 * convert.c (convert_to_integer): Use fold_convert for
16495 converting an INTEGER_CST to integer type.
16497 2012-01-16 Jason Merrill <jason@redhat.com>
16500 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
16502 2012-01-16 Jakub Jelinek <jakub@redhat.com>
16505 * config/s390/s390.c (s390_chunkify_start): Don't skip
16506 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
16507 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
16508 If insn is followed by NOTE_INSN_VAR_LOCATION or
16509 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
16510 Don't use location of note insns.
16512 PR tree-optimization/51865
16513 * tree-inline.c (tree_function_versioning): Call remap_decl
16514 on DECL_RESULT whenever it has VOID_TYPE_P type.
16516 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
16518 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
16519 for calls to locally-binding MIPS16 functions if only the return
16520 type uses float regs.
16522 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
16523 Richard Sandiford <rdsandiford@googlemail.com>
16525 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
16526 (SYMBOL_32_HIGH): Likewise.
16527 (mips_output_tls_reloc_directive): Declare.
16528 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
16529 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
16530 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
16531 (mips_lo_relocs, mips_hi_relocs): Make extern.
16532 (mips16_stub_function): Move up file.
16533 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
16534 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
16535 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
16536 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
16537 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
16538 (mips_get_tp): Add MIPS16 support.
16539 (mips_legitimize_tls_address): Remove MIPS16 sorry().
16540 Generalize DTPREL and TPREL handling.
16541 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
16542 Add MIPS16 TLS support.
16543 (mips_output_tls_reloc_directive): New function.
16544 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
16545 * config/mips/predicates.md (symbolic_operand_with_high)
16546 (tls_reloc_operand): New predicates.
16547 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
16548 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
16549 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
16550 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
16551 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
16552 (*tls_get_tp_mips16_call_<mode>): Likewise.
16554 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
16556 PR rtl-optimization/51821
16557 * recog.c (peep2_find_free_register): Determine clobbered registers
16560 2012-01-14 Denis Chertykov <chertykov@gmail.com>
16563 * config/avr/avr-protos.h: Revert change of 2012-01-09.
16564 * config/avr/avr.c: Likewise.
16565 * config/avr/avr.h: Likewise.
16567 2012-01-13 Ian Lance Taylor <iant@google.com>
16570 * tree.h (TYPE_QUALS): Add cast to int.
16571 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
16573 2012-01-13 Ian Lance Taylor <iant@google.com>
16575 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
16576 comparing param_index to VEC_length result.
16578 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
16580 * c-decl.c: Do not include tree-mudflap.h
16581 * tree-optimize.c: Likewise.
16582 * Makefile.in: Update dependencies.
16584 2012-01-13 Richard Guenther <rguenther@suse.de>
16587 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
16588 variable-sized result always use RSO.
16590 2012-01-12 DJ Delorie <dj@redhat.com>
16592 * cfgexpand.c (convert_debug_memory_address): Allow any valid
16593 pointer type, not just the default pointer type.
16595 2012-01-09 Richard Henderson <rth@redhat.com>
16596 Denis Chertykov <chertykov@gmail.com>
16599 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
16600 * config/avr/avr.c (avr_can_eliminate): Simplify.
16601 (avr_initial_elimination_offset): Likewise.
16602 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
16603 (expand_epilogue): Likewise.
16604 (avr_legitimize_address): Gut.
16605 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
16606 (avr_hard_regno_nregs): New.
16607 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
16608 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
16609 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
16610 add soft frame pointer.
16611 (CALL_USED_REGISTERS): Likewise.
16612 (REG_CLASS_CONTENTS): Likewise.
16613 (REGISTER_NAMES): Likewise.
16614 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
16615 (HARD_FRAME_POINTER_REGNUM): New.
16616 (FRAME_POINTER_REGNUM): Use soft frame pointer.
16617 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
16618 remove the HARD_FRAME_POINTER self-elimination.
16620 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
16623 * config/avr/avr.c (avr_encode_section_info): Test for absence of
16624 DECL_EXTERNAL when checking for initializers of progmem variables.
16626 2012-01-12 Ira Rosen <irar@il.ibm.com>
16628 PR tree-optimization/51799
16629 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
16630 that the last operation is a type demotion.
16632 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
16634 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
16635 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
16637 2012-01-11 Jakub Jelinek <jakub@redhat.com>
16640 * combine.c (distribute_notes): If i3 is a noreturn call,
16641 allow old_size to be equal to args_size and make sure the
16642 noreturn call gets REG_ARGS_SIZE note.
16643 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
16644 on noreturn calls even when the delta is 0.
16646 2012-01-11 Nathan Sidwell <nathan@acm.org>
16648 * gcov.c (STRING_SIZE): Remove.
16649 (generate_results): Erase annotations for source files with no
16650 coverage information.
16652 (output_lines): Use it.
16654 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
16656 * gimple.h (gimplify_body): Remove first argument.
16657 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
16658 pointer set here, instead just pass DATA to walk_tree.
16659 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
16660 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
16661 (unvisit_body): Likewise, but with unmark_visited.
16662 (gimplify_body): Remove BODY_P argument and adjust.
16663 (gimplify_function_tree): Adjust call to gimplify_body.
16664 * omp-low.c (finalize_task_copyfn): Likewise.
16666 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
16668 * tree.h (build_function_decl_skip_args): Add boolean parameter.
16669 (build_function_type_skip_args): Delete.
16670 * tree.c (build_function_type_skip_args): Make static and add
16671 SKIP_RETURN parameter. Fix thinko in the handling of variants.
16672 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
16673 pass it to build_function_type_skip_args.
16674 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
16675 (tree_function_versioning): Likewise.
16676 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
16677 build_function_decl_skip_args.
16678 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
16679 and pass it to build_function_decl_skip_args/tree_function_versioning.
16680 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
16681 * ipa-inline-transform.c (save_inline_function_body): Likewise.
16682 * trans-mem.c (ipa_tm_create_version): Likewise.
16683 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
16684 * tree-inline.c (declare_return_variable): Remove always-true test.
16685 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
16686 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
16687 * ipa-split.c (split_function): Skip the return value for the split
16688 part if it doesn't return.
16690 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16692 PR tree-optimization/49642
16693 * ipa-split.c (forbidden_dominators): New variable.
16694 (check_forbidden_calls): New function.
16695 (dominated_by_forbidden): Likewise.
16696 (consider_split): Check for forbidden dominators.
16697 (execute_split_functions): Initialize and free forbidden
16698 dominators info; call check_forbidden_calls.
16700 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
16702 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
16704 2012-01-11 Nick Clifton <nickc@redhat.com>
16706 * config/rx/rx.md (return): Define pattern.
16708 2012-01-11 Richard Guenther <rguenther@suse.de>
16710 * doc/extend.texi (malloc attribute): Adjust according to
16713 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
16714 Patrick Marlier <patrick.marlier@gmail.com>
16716 PR middle-end/51516
16717 * trans-mem.c (get_cg_data): Traverse aliases if requested.
16718 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
16719 (ipa_tm_note_irrevocable): Same.
16720 (ipa_tm_scan_irr_block): Same.
16721 (ipa_tm_decrement_clone_counts): Same.
16722 (ipa_tm_scan_irr_function): Same.
16723 (ipa_tm_create_version_alias): Same.
16724 (ipa_tm_create_version): Same.
16725 (ipa_tm_transform_calls_redirect): Same.
16726 (ipa_tm_transform_calls): Same.
16727 (ipa_tm_transform_transaction): Same.
16728 (ipa_tm_execute): Same.
16730 2012-01-10 Richard Guenther <rguenther@suse.de>
16732 PR middle-end/51806
16733 * opts.c (common_handle_option): Handle -Werror.
16735 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
16737 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
16740 2012-01-10 Jason Merrill <jason@redhat.com>
16742 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
16745 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16747 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
16748 supports R_386_TLS_GD_PLT reloc.
16749 (gcc_cv_as_ix86_tlsldmplt): Check if linker
16750 supports R_386_TLS_LDM_PLT reloc.
16751 * configure: Regenerate.
16752 * config.in: Regenerate.
16754 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
16757 Extend __pgmx semantics to linearize memory.
16758 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
16759 determine if code comes inline or from libgcc.
16760 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
16761 (movmem_qi, movmem_qi): Set constraint #2 to "n".
16762 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
16763 (movmemx_qi, movmemx_hi): New insns.
16764 (xload_<mode>_libgcc): Rewrite to new insn condition.
16765 (xload_<mode>): Remove insns.
16766 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
16767 cases that don't satisfy avr_xload_libgcc_p().
16768 (avr_addr_space_convert): Allow converting in any direction.
16769 (avr_addr_space_subset_p): Return always true.
16770 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
16771 (avr_emit_movmemhi): Ditto.
16772 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
16773 (avr_out_movmem): Ditto.
16774 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
16775 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
16776 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
16777 (avr_encode_section_info): Encode 'progmem' in symbol flags.
16778 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
16780 2012-01-10 Richard Guenther <rguenther@suse.de>
16782 PR tree-optimization/50913
16783 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
16784 Require data-refs to be representable by Graphite with respect
16787 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
16789 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
16790 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
16792 2012-01-10 Tom de Vries <tom@codesourcery.com>
16794 PR rtl-optimization/51271
16795 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
16796 handling annulled branch.
16798 2012-01-10 Richard Henderson <rth@redhat.com>
16800 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
16801 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
16802 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
16803 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
16804 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
16805 arm_expand_vec_perm_const): New.
16806 * config/arm/arm-protos.h: Update.
16807 * config/arm/neon.md (UNSPEC_VCONCAT): New.
16808 (*neon_vswp<VDQX>): New.
16809 (neon_vcombine<VDX>): Use neon_split_vcombine.
16810 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
16811 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
16812 (vec_perm<VE>): New.
16814 2012-01-10 Richard Henderson <rth@redhat.com>
16816 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
16817 use it if reload_completed.
16818 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
16819 arm_output_asm_insn, arm_process_output_memory_barrier,
16820 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
16821 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
16822 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
16823 arm_process_output_sync_insn, arm_output_sync_insn,
16824 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
16825 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
16826 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
16827 (emit_unlikely_jump): New.
16828 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
16829 (arm_split_atomic_op): New.
16830 * config/arm/arm-protos.h: Update.
16831 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
16832 (struct arm_sync_generator): Remove.
16833 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
16834 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
16835 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
16836 (VUNSPEC_LL, VUNSPEC_SC): New.
16837 (sync_result, sync_memory, sync_required_value, sync_new_value,
16838 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
16839 (attr length): Don't use arm_sync_loop_insns.
16840 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
16841 (movsfcc, movdfcc): Likewise.
16842 * config/arm/constraints.md (Ua): New.
16843 * config/arm/prediates.md (mem_noofs_operand): New.
16844 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
16845 (sync_clobber, sync_t2_reqd): Remove.
16846 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
16847 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
16848 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
16849 (arm_sync_compare_and_swap<SIDI>): Remove.
16850 (arm_sync_compare_and_swap<NARROW>): Remove.
16851 (arm_sync_lock_test_and_set<SIDI>): Remove.
16852 (arm_sync_lock_test_and_set<NARROW>): Remove.
16853 (arm_sync_new_<syncop><SIDI>): Remove.
16854 (arm_sync_new_<syncop><NARROW>): Remove.
16855 (arm_sync_new_nand<SIDI>): Remove.
16856 (arm_sync_new_nand<NARROW>): Remove.
16857 (arm_sync_old_<syncop><SIDI>): Remove.
16858 (arm_sync_old_<syncop><NARROW>): Remove.
16859 (arm_sync_old_nand<SIDI>): Remove.
16860 (arm_sync_old_nand<NARROW>): Remove.
16861 (*memory_barrier): Merge arm_output_memory_barrier.
16862 (atomic_compare_and_swap<QHSD>): New.
16863 (atomic_compare_and_swap<NARROW>_1): New.
16864 (atomic_compare_and_swap<SIDI>_1): New.
16865 (atomic_exchange<QHSD>): New.
16866 (cas_cmp_operand, cas_cmp_str): New.
16867 (atomic_op_operand, atomic_op_str): New.
16868 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
16869 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
16870 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
16871 (arm_load_exclusive<NARROW>): New.
16872 (arm_load_exclusivesi, arm_load_exclusivedi): New.
16873 (arm_store_exclusive<QHSD>): New.
16875 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16877 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
16878 reload patterns if -mvsx-scalar-memory.
16880 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
16881 generated, even -mno-vsx-scalar-double was used.
16882 (vsx_xscvdpsp_scalar): Likewise.
16883 (vsx_xscvspdp_scalar2): Likewise.
16885 2012-01-09 Tom de Vries <tom@codesourcery.com>
16886 Andrew Pinski <apinski@cavium.com>
16889 * reorg.c (fill_slots_from_thread): Don't speculate
16890 frame-related insns.
16892 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
16894 * sched-int.h (bb_note): Move to...
16895 * basic-block.h: ...here.
16896 * haifa-sched.c (bb_note): Move to...
16897 * cfgrtl.c: ...here.
16898 * function.c (next_block_for_reg): New function.
16899 (move_insn_for_shrink_wrap): Likewise.
16900 (prepare_shrink_wrap): Rewrite to use the above.
16902 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
16904 * gimple.c (is_gimple_non_addressable): Remove.
16905 * gimple.h: Remove is_gimple_non_addressable.
16906 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
16907 is_gimple_non_addressable.
16908 * trans-mem.c (expand_assign_tm): Same.
16910 2012-01-09 Richard Guenther <rguenther@suse.de>
16912 PR tree-optimization/51775
16913 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
16914 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
16916 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
16918 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
16920 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
16922 2012-01-09 Richard Guenther <rguenther@suse.de>
16924 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
16926 2012-01-08 Jan Hubicka <jh@suse.cz>
16928 PR tree-optimize/51680
16929 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
16930 on when known_vals needs to be computed; cleanup.
16932 2012-01-08 Jan Hubicka <jh@suse.cz>
16934 PR tree-optimize/51694
16935 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
16937 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16939 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
16940 for -std=c++98 and -std=c++11 too.
16942 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
16944 * cfgloop.c (cancel_loop): Add free() of bbs array.
16946 2012-01-07 Jan Hubicka <jh@suse.cz>
16948 PR tree-optimization/51600
16949 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
16950 that benefits small functions.
16952 2012-01-07 Jan Hubicka <jh@suse.cz>
16954 * ipa-inline.c (want_inline_small_function_p): Fix formating.
16956 2012-01-07 Jan Hubicka <jh@suse.cz>
16958 PR tree-optimization/51680
16959 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
16960 whose inlining reduce unit size.
16962 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
16965 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
16966 Add canonical node to containing_mem chain after the non-canonical
16967 one, even if there weren't any locs to propagate.
16968 (remove_useless_values): Keep only canonical values.
16969 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
16970 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
16971 canonicalize mem_chain elements that are not discarded.
16973 2012-01-06 Jakub Jelinek <jakub@redhat.com>
16976 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
16977 before emitting functions.
16979 PR gcov-profile/50127
16980 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
16981 clear_aux_for_blocks.
16983 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
16986 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
16988 2012-01-06 Arnaud Charlet <charlet@adacore.com>
16990 * c-decl.c (ext_block): Moved up.
16991 (collect_all_refs, for_each_global_decl): Take ext_block into account.
16993 2012-01-06 Han Shen <shenhan@google.com>
16995 Translate built-in include paths for sysroot.
16996 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
16997 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
16999 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
17000 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
17002 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
17003 control whether sysroot should be prepended to gxx include dir.
17005 * configure: Regenerate.
17007 2012-01-06 Torvald Riegel <triegel@redhat.com>
17009 PR rtl-optimization/51771
17010 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
17011 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
17013 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
17015 PR tree-optimization/51315
17016 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
17017 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
17019 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
17022 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
17023 for shrp pattern. Correctly handle and fixup shift variable.
17024 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
17026 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17029 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
17030 note when !ACCUMULATE_OUTGOING_ARGS.
17032 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
17034 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
17036 (extract_range_from_unary_expr_1): Avoid useless computations.
17038 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17040 PR rtl-optimization/51767
17041 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
17042 of jump_block and add an extra edge for degenerated asm gotos.
17044 PR middle-end/51768
17045 * stmt.c (check_unique_operand_names): Don't ICE during error
17046 reporting if i is from labels chain.
17048 PR middle-end/44777
17049 * profile.c (branch_prob): Split bbs that have exit edge
17050 and need a fake entry edge too.
17052 2012-01-05 Jan Hubicka <jh@suse.cz>
17054 PR middle-end/49710
17055 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
17058 2012-01-05 Richard Guenther <rguenther@suse.de>
17061 * tree-streamer-out.c (write_ts_optimization): New function.
17062 (streamer_write_tree_body): Call it.
17063 * tree-streamer-in.c (lto_input_ts_optimization): New function.
17064 (streamer_read_tree_body): Call it.
17065 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
17067 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17069 PR middle-end/51761
17070 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
17071 * gimplify.c (gimplify_cleanup_point_expr): Save and set
17072 in_cleanup_point_expr before gimplify_stmt call and restore it
17074 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
17075 in_cleanup_point_expr is false.
17077 2012-01-05 Richard Guenther <rguenther@suse.de>
17079 PR middle-end/51764
17080 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
17082 * toplev.c (process_options): Reject combining mudflap and LTO.
17083 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
17085 2012-01-05 Richard Guenther <rguenther@suse.de>
17087 PR tree-optimization/51760
17088 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
17090 (bit_value_unop): Handle UNDEFINED operands.
17091 (bit_value_binop): Likewise.
17093 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
17095 * config/avr/avr.c (avr_replace_prefix): Remove.
17096 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
17097 (avr_asm_function_rodata_section): Ditto.
17098 (avr_asm_select_section): Ditto.
17100 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17102 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
17105 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17108 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
17109 calls that have any non-fake successor edges.
17112 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
17114 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
17116 PR tree-optimization/51624
17117 * tree-sra.c (build_ref_for_model): When replicating a chain of
17118 COMPONENT_REFs, stop as soon as the offset would become negative.
17120 2012-01-04 Jakub Jelinek <jakub@redhat.com>
17123 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
17124 in .debug_loc on the floor.
17126 2012-01-04 Andrew Pinski <apinski@cavium.com>
17128 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
17130 2012-01-04 Andrew Pinski <apinski@cavium.com>
17131 Adam Nemet <anemet@caviumnetworks.com>
17133 * config/mips/mips.md (size): Add SI and DI.
17134 (SIZE): New mode attribute.
17135 (U): New code attribute.
17136 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
17137 (mips_lbux_<mode>): Delete.
17138 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
17139 (mips_lhx): Use gen_mips_lhx_extsi.
17140 (mips_lhx_<mode>): Delete.
17141 (mips_lwx): Delete.
17142 (mips_l<size>x): New expand.
17143 (mips_lwx_<mode>): Delete.
17144 (mips_l<GPR:size>x_<P:mode>): New pattern.
17145 (*mips_lw<u>x_<P:mode>_ext): Likewise.
17146 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
17147 * config/mips/mips.c (mips_lx_address_p): New function.
17148 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
17149 (dsp64): New availability predicate.
17150 (mips_builtins): Add an entry for __builtin_mips_ldx.
17151 * config/mips/mips.h (ISA_HAS_LBX): New define.
17152 (ISA_HAS_LBUX): Likewise.
17153 (ISA_HAS_LHX): Likewise.
17154 (ISA_HAS_LHUX): Likewise.
17155 (ISA_HAS_LWX): Likewise.
17156 (ISA_HAS_LWUX): Likewise.
17157 (ISA_HAS_LDX): Likewise.
17158 * doc/extend.texi (__builtin_mips_ldx): Document.
17160 2012-01-04 Tristan Gingold <gingold@adacore.com>
17162 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
17163 when long pointers are used.
17164 * config.build (*-*-*vms*): Handle all OpenVMS targets.
17165 (alpha64-dec-*vms*, alpha*-dec-*vms*)
17166 (ia64-hp-*vms*): Remove.
17167 * config/vms/xm-vms64.h: Delete.
17169 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
17171 PR middle-end/51472
17172 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
17174 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
17176 * opts.c (finish_options): Remove duplicate sorry.
17178 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
17180 PR middle-end/51696
17181 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
17184 2012-01-04 Richard Guenther <rguenther@suse.de>
17186 PR middle-end/51750
17187 * tree.c (size_low_cst): New function.
17188 * tree.h (size_low_cst): Declare.
17189 * fold-const.c (fold_comparison): Use it to extract the low
17190 part of the POINTER_PLUS_EXPR offset.
17192 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
17194 Fix clearing ZERO_REG
17195 * config/avr/avr.md (cc): Add alternative "ldi".
17196 (movqi_insn): Use it in cc attribute.
17197 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
17198 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
17199 (output_reload_insisf): Use ZERO_REG to pre-clear register.
17201 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17203 * configure: Regenerate.
17205 2012-01-04 Richard Guenther <rguenther@suse.de>
17207 PR tree-optimization/49651
17208 * tree-ssa-structalias.c (type_can_have_subvars): New function.
17209 (var_can_have_subvars): Use it.
17210 (get_constraint_for_1): Only consider subfields if there can be any.
17212 2012-01-03 Jakub Jelinek <jakub@redhat.com>
17215 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
17216 to its new canonical_cselib_val and the cselib_val was in
17217 first_containing_mem chain, but the canonical_cselib_val was not,
17218 add the latter into the chain.
17219 (cselib_invalidate_mem): Compare canonical_cselib_val of
17220 addr_list chain elt with v.
17223 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
17224 dwarf2out_undef): Allocate e.info using ggc_strdup instead
17226 (output_macinfo_op): Don't ggc_strdup fd->filename.
17227 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
17228 then ggc_strdup it. Don't free inc->info or cur->info.
17229 (output_macinfo): Don't free ref->info or file->info.
17231 2012-01-03 Ira Rosen <irar@il.ibm.com>
17233 PR tree-optimization/51269
17234 * tree-vect-loop-manip.c (set_prologue_iterations): Make
17235 first_niters a pointer.
17236 (slpeel_tree_peel_loop_to_edge): Likewise.
17237 (vect_do_peeling_for_loop_bound): Update call to
17238 slpeel_tree_peel_loop_to_edge.
17239 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
17240 here. Remove it from the parameters list.
17241 (vect_do_peeling_for_alignment): Update calls and compute
17242 wide_prolog_niters.
17244 2012-01-03 Richard Guenther <rguenther@suse.de>
17246 PR tree-optimization/51070
17247 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
17248 Properly handle calls.
17250 2012-01-03 Richard Guenther <rguenther@suse.de>
17252 PR tree-optimization/51692
17253 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
17254 the LHS of allocation stmts.
17256 2012-01-03 Olivier Hainque <hainque@adacore.com>
17258 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
17260 2012-01-03 Olivier Hainque <hainque@adacore.com>
17262 * collect2.c (main): In AIX specific computations for vector
17263 insertions, use CONST_CAST2 to cast from char ** to const char **.
17265 2012-01-03 Richard Guenther <rguenther@suse.de>
17268 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
17269 the context of a limbo DIE when it does not already exist.
17271 2012-01-03 Jakub Jelinek <jakub@redhat.com>
17273 PR tree-optimization/51719
17274 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
17275 but direct call is, clear direct call's lhs and don't add fallthrough
17276 edge from dcall_bb to join_bb and PHIs.
17278 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17280 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
17281 the instructions emitted by the pattern.
17282 ("*TDC_insn_<mode>"): Add comment.
17284 2012-01-03 Richard Guenther <rguenther@suse.de>
17286 PR middle-end/51730
17287 * fold-const.c (fold_comparison): Properly canonicalize
17288 tree offset and HOST_WIDE_INT bit position.
17290 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
17292 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
17293 operands for extzv pattern.
17295 2012-01-02 Jakub Jelinek <jakub@redhat.com>
17298 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
17301 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
17303 * doc/invoke.texi (-flto and related options): Copy-edit.
17305 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17307 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
17309 2012-01-02 Jakub Jelinek <jakub@redhat.com>
17311 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
17314 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17316 * expr.h (move_by_pieces_ninsns): Declare.
17317 * expr.c (move_by_pieces_ninsns): Make external.
17318 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
17319 (mips_store_by_pieces_p): Likewise.
17320 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
17321 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
17322 * config/mips/mips.c (mips_move_by_pieces_p): New function.
17323 (mips_store_by_pieces_p): Likewise.
17325 2012-01-02 Jakub Jelinek <jakub@redhat.com>
17327 * passes.c (register_one_dump_file): Free full_name.
17329 * reload1.c (reload): Don't allocate reg_max_ref_width here.
17330 (calculate_elim_costs_all_insns): Free offsets_at and
17331 offsets_known_at at the end and clear the pointers.
17333 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17335 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
17336 this option introduced in r180739.
17338 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17341 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
17342 (tmake_file target=avr): Add avr/t-multilib.
17344 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
17345 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
17346 * config/avr/genmultilib.awk: New file.
17347 * config/avr/t-multilib: New auto-generated file.
17348 * config/avr/multilib.h: New auto-generated file.
17349 * config/avr/t-avr (AVR_MCUS): New variable.
17350 (genopt.sh): Use it.
17351 (s-mlib): Depend on t-multilib.
17352 (t-multilib, multilib.h): New dependencies.
17353 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
17354 (MULTILIB_OPTIONS): Remove.
17355 (MULTILIB_MATCHES): Remove.
17356 (MULTILIB_DIRNAMES): Remove.
17357 (MULTILIB_EXCEPTIONS): Remove:
17358 * config/avr/genopt.sh: Don't use hard coded file name;
17359 pass AVR_MCUS from t-avr instead.
17361 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17363 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
17365 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17367 Implement light-weight DImode support.
17368 * config/avr/avr-dimode.md: New file.
17369 * config/avr/avr.md: Include it.
17370 (adjust_len): Add plus64, compare64.
17371 (HIDI): Remove code iterator.
17372 (code_stdname): New code attribute.
17373 (rotx, rotsmode): Remove DI.
17374 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
17376 * config/avr/avr-protos.h (avr_have_dimode): New.
17377 (avr_out_plus64, avr_out_compare64): New.
17378 * config/avr/avr.c (avr_out_compare): Handle DImode.
17379 (avr_have_dimode): New variable definition and initialization.
17380 (avr_out_compare64, avr_out_plus64): New functions.
17381 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
17382 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
17383 (avr_compare_pattern): Skip DImode comparisons.
17385 2012-01-02 Revital Eres <revital.eres@linaro.org>
17387 * ddg.c (def_has_ccmode_p): New function.
17388 (add_cross_iteration_register_deps,
17389 create_ddg_dep_from_intra_loop_link): Call it.
17391 2012-01-02 Richard Guenther <rguenther@suse.de>
17394 * invoke.texi (fassociative-math): Remove spurious paranthesis.
17396 2012-01-01 Jakub Jelinek <jakub@redhat.com>
17398 * gcc.c (process_command): Update copyright notice dates.
17399 * gcov.c (print_version): Likewise.
17400 * gcov-dump.c (print_version): Likewise.
17401 * mips-tfile.c (main): Likewise.
17402 * mips-tdump.c (main): Likewise.
17404 2012-01-01 Ira Rosen <irar@il.ibm.com>
17406 PR tree-optimization/51704
17407 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
17408 a use is inside the basic block or loop before accessing its vect info.
17410 2012-01-01 Jan Hubicka <jhjh@suse.cz>
17412 PR rtl-optimization/51069
17413 * cfgloopmanip.c (remove_path): Removing path making irreducible
17414 region unconditional makes BB part of the region.
17416 2012-01-01 Jakub Jelinek <jakub@redhat.com>
17418 PR tree-optimization/51683
17419 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
17420 calls with side-effects.
17421 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
17423 Copyright (C) 2012 Free Software Foundation, Inc.
17425 Copying and distribution of this file, with or without modification,
17426 are permitted in any medium without royalty provided the copyright
17427 notice and this notice are preserved.