1 2012-12-20 Thomas Schwinge <thomas@codesourcery.com>
4 * configure.ac <PLUGIN_LD_SUFFIX>: Use POSIX shell syntax.
5 * configure: Regenerate.
7 2012-12-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10 * config/arm/arm.c (arm_canonicalize_comparison): Remove
11 op0_preserve_value check for zero_extend to and transformation.
13 2012-12-20 Teresa Johnson <tejohnson@google.com>
14 Jakub Jelinek <jakub@redhat.com>
17 * gcov-io.c (gcov_read_summary): Use __builtin_popcount instead
18 of __builtin_popcountll when building libgcov.a, otherwise use
20 (gcov_histo_index): When not building libgcov.a, use floor_log2
21 instead of __builtin_clzll.
23 2012-12-20 Richard Biener <rguenther@suse.de>
26 * cfghooks.c (merge_blocks): Properly handle merging of
29 2012-12-20 Roland Stigge <stigge@debian.org>
30 Matthias Klose <doko@ubuntu.com>
32 * config/rs6000/t-spe (MULTIARCH_DIRNAME): Remove.
33 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Define name for
36 2012-12-19 Matthias Klose <doko@ubuntu.com>
38 * config/i386/t-kfreebsd (MULTIARCH_DIRNAME): Add comma to
39 separate arguments in make function.
41 2012-12-19 Uros Bizjak <ubizjak@gmail.com>
42 Yuri Rumyantsev <ysrumyan@gmail.com>
44 * config/i386/i386.h (enum ix86_tune_indices): Add
45 X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE.
46 (TARGET_AVOID_MEM_OPND_FOR_CMOVE): New define.
47 * config/i386/i386.c (initial_ix86_tune_features)
48 <X86TUNE_AVOID_MEM_OPND_FOR_CMOVE>: Initialize.
49 * config/i386/i386.md (splitters to avoid cmove memory operands): New.
50 (peephole2s to avoid cmove memory operands): New.
52 2012-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
54 * config/arm/arm.md (f_minmaxs, f_minmaxd): New types.
55 * config/arm/vfp.md (smax<mode>3): New pattern.
56 (smin<mode>3): Likewise.
58 2012-12-19 Richard Biener <rguenther@suse.de>
60 * targhooks.h (default_canonicalize_comparison): Fix prototype.
61 * targhooks.c (default_canonicalize_comparison): Define.
63 2012-12-19 Richard Biener <rguenther@suse.de>
65 PR tree-optimization/55736
66 PR tree-optimization/55703
67 * gimplify.c (prune_expr_location): New function.
68 (unshare_expr_without_location): Likewise.
69 * tree.h (unshare_expr_without_location): Declare.
70 * ipa-prop.c (prune_expression_for_jf): Remove.
71 (prune_expression_for_jf_1): Likewise.
72 (ipa_set_jf_constant): Use unshare_expr_without_location.
73 (ipa_set_jf_arith_pass_through): Likewise.
74 (determine_known_aggregate_parts): Likewise.
75 * tree-switch-conversion.c (build_constructors): Use
76 unshare_expr_without_location on all constructor elements.
78 2012-12-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
80 * target.def: Define canonicalize_comparison hook.
81 * targhooks.h (default_canonicalize_comparison): New prototype.
82 * targhooks.c (default_canonicalize_comparison): New function.
83 * doc/tm.texi: Add documentation for the new target hook.
84 * doc/tm.texi.in: Likewise.
85 * combine.c (try_combine): Adjust to use the target hook.
86 * config/alpha/alpha.h (CANONICALIZE_COMPARISON): Remove macro
88 * config/alpha/alpha.c (alpha_canonicalize_comparison): New function.
89 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
90 * config/arm/arm-protos.h (arm_canonicalize_comparison): Remove
92 * config/arm/arm.c (arm_canonicalize_comparison): Add new parameter.
93 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
94 * config/arm/arm.h (CANONICALIZE_COMPARISON): Remove macro definition.
95 * config/s390/s390-protos.h (s390_canonicalize_comparison): Remove
97 * config/s390/s390.c (s390_canonicalize_comparison): Add new parameter.
98 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
99 * config/s390/s390.h (CANONICALIZE_COMPARISON): Remove macro definition.
100 * config/sh/sh-protos.h (sh_canonicalize_comparison): Remove prototype.
101 * config/sh/sh.c (sh_canonicalize_comparison): Add new prototype. New
102 function overloading the old one.
103 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
104 * config/sh/sh.h (CANONICALIZE_COMPARISON): Remove macro definition.
105 * config/spu/spu.c (spu_canonicalize_comparison): New function.
106 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
107 * config/spu/spu.h (CANONICALIZE_COMPARISON): Remove macro definition.
109 2012-12-19 Jakub Jelinek <jakub@redhat.com>
112 * dwarf2out.c (mem_loc_descriptor): Ignore CLOBBER.
113 * valtrack.c (gen_lowpart_for_debug): New function.
114 (propagate_for_debug): Temporarily set rtl_hooks.gen_lowpart_no_emit
115 to gen_lowpart_for_debug.
117 2012-12-18 Jan Hubicka <jh@suse.cz>
119 PR tree-optimization/55683
120 * ipa-prop.c (try_make_edge_direct_virtual_call): Look into constants
123 2012-12-19 Terry Guo <terry.guo@arm.com>
125 * config/arm/arm.c (thumb_find_work_register): Check argument
126 register number based on current PCS.
128 2012-12-18 Jakub Jelinek <jakub@redhat.com>
131 * sbitmap.c (bitmap_and, bitmap_xor, bitmap_ior): Return whether
132 dst sbitmap changed even if it doesn't have popcount.
134 2012-12-18 James Greenhalgh <james.greenhalgh@arm.com>
136 * config/aarch64/aarch64.md (insv_imm<mode>): Add modes
139 2012-12-18 James Greenhalgh <james.greenhalgh@arm.com>
141 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
142 Remove unused variables.
143 (aarch64_split_compare_and_swap): Likewise.
145 2012-12-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
147 * config/arm/driver-arm.c (arm_cpu_table): Add Cortex-A7.
149 2012-12-18 Aldy Hernandez <aldyh@redhat.com>
152 * doc/install.texi (Tools/packages necessary for building GCC):
153 Suggest --disable-stage1-checking for older GCC's.
155 2012-12-18 Aldy Hernandez <aldyh@redhat.com>
158 * tree-ssa-coalesce.c (struct ssa_name_var_hash): Remove "union"
159 from template parameter.
161 2012-12-18 Richard Biener <rguenther@suse.de>
164 * cfgloopmanip.c (fix_loop_structure): Re-discover latch
165 edges first and mark loops for removal if no latch edges remain.
166 Properly re-create LOOPS_HAVE_FALLTHRU_PREHEADERS.
167 * loop-init.c (loop_optimizer_finalize): Set
168 LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
170 2012-12-18 Richard Biener <rguenther@suse.de>
172 PR tree-optimization/55555
173 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Properly
174 analyze evolution of the index for the loop it is used in.
175 * tree-scalar-evolution.c (instantiate_scev_name): Take
176 inner loop we will be creating a chrec for. Generalize
177 fix for PR40281 and prune invalid SCEVs.
178 (instantiate_scev_poly): Likewise - pass down inner loop
179 we will be creating a chrec for.
180 (instantiate_scev_binary): Take and pass through inner loop.
181 (instantiate_array_ref): Likewise.
182 (instantiate_scev_convert): Likewise.
183 (instantiate_scev_not): Likewise.
184 (instantiate_scev_3): Likewise.
185 (instantiate_scev_2): Likewise.
186 (instantiate_scev_1): Likewise.
187 (instantiate_scev_r): Likewise.
188 (resolve_mixers): Adjust.
189 (instantiate_scev): Likewise.
191 2012-12-18 Jakub Jelinek <jakub@redhat.com>
194 * rtlhooks-def.h (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Define to
195 gen_lowpart_if_possible.
196 (gen_lowpart_no_emit_general): Remove prototype.
197 * rtlhooks.c (gen_lowpart_no_emit_general): Removed.
198 * simplify-rtx.c (simplify_unary_operation_1,
199 simplify_binary_operation_1): Continue simplifying if
200 rtl_hooks.gen_lowpart_no_emit returns NULL_RTX.
201 * dwarf2out.c (mem_loc_descriptor) <case TRUNCATE>: Handle
202 truncation like lowpart SUBREG.
204 2012-12-17 Gerald Pfeifer <gerald@pfeifer.com>
206 * doc/contrib.texi (Contributors): Update Kaveh Ghazi's entry;
207 remove broken link to Rutgers University.
209 2012-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
211 * varasm.c (pending_assemble_externals_processed): Guard
212 with ASM_OUTPUT_EXTERNAL.
214 2012-12-17 Andrew Stubbs <ams@codesourcery.com>
215 Ulrich Weigand <ulrich.weigand@linaro.org>
217 * config/arm/arm.md (zero_extend<mode>di2): Add extra alternatives
219 Add alternative for one-instruction extend-in-place.
220 (extend<mode>di2): Likewise.
221 Add constraints for Thumb-mode memory loads.
222 Prevent extend splitters doing NEON alternatives.
223 * config/arm/iterators.md (qhs_extenddi_cstr, qhs_zextenddi_cstr):
224 Adjust constraints to add new alternatives.
225 * config/arm/neon.md: Add splitters for zero- and sign-extend.
227 2012-12-17 Greta Yorsh <Greta.Yorsh@arm.com>
229 * config/arm/arm.md (type): Add "simple_alu_shift" to attribute "type".
230 (core_cycles): Update for simple_alu_shift.
231 (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Use simple_alu_shift
232 instead of a CPU-speicific condition for "type" attribute.
233 (thumb1_zero_extendqisi2_v6,arm_zero_extendqisi2_v6): Likewise.
234 (thumb1_extendhisi2,arm_extendhisi2_v6,arm_extendqisi_v6): Likewise.
235 (thumb1_extendqisi2): Likewise.
236 * config/arm/thumb2.md (thumb2_extendqisi_v6): Likewise.
237 (thumb2_zero_extendhisi2_v6,thumb2_zero_extendqisi2_v6) Likewise.
238 * config/arm/arm1020e.md (alu_shift_op): Use simple_alu_shift.
239 * config/arm/arm1026ejs.md (alu_shift_op): Likewise.
240 * config/arm/arm1136jfs.md (11_alu_shift_op): Likewise.
241 * config/arm/arm926ejs.md (9_alu_op): Likewise.
242 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Likewise.
243 * config/arm/cortex-a5.md (cortex_a5_alu_shift): Likewise.
244 * config/arm/cortex-a8.md (cortex_a8_alu_shift,cortex_a8_mov): Likewise.
245 * config/arm/cortex-a9.md (cortex_a9_dp,cortex_a9_dp_shift): Likewise.
246 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
247 * config/arm/cortex-r4.md (cortex_r4_alu_shift): Likewise.
248 * config/arm/fa526.md (526_alu_shift_op): Likewise.
249 * config/arm/fa606te.md (fa606te_core): Likewise.
250 * config/arm/fa626te.md (626te_alu_shift_op): Likewise.
251 * config/arm/fa726te.md (726te_alu_shift_op): Likewise.
252 * config/arm/fmp626.md (mp626_alu_shift_op): Likewise.
254 2012-12-17 Richard Biener <rguenther@suse.de>
257 * alias.c (ao_ref_from_mem): More appropriately constrain the
258 base object we feed to the tree oracle. Remove dead code.
260 2012-12-17 James Greenhalgh <james.greenhalgh@arm.com>
261 Tejas Belagod <tejas.belagod@arm.com>
263 * config/aarch64/aarch64.c
264 (aarch64_autovectorize_vector_sizes): New.
265 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
267 2012-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
270 Forward port from 4.7 branch:
271 2012-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
274 * varasm.c (process_pending_assemble_externals): Set
275 pending_assemble_externals_processed true.
276 (assemble_external): Call assemble_external_real if the pending
277 assemble externals have been processed.
279 2012-12-16 Eric Botcazou <ebotcazou@adacore.com>
280 Tomash Brechko <tomash.brechko@gmail.com>
283 * config/sparc/sparc.c (sparc_emit_membar_for_model): Fix reversed
284 handling of before and after cases.
285 * config/sparc/sync.md (atomic_store): Fix pasto.
287 2012-12-16 Eric Botcazou <ebotcazou@adacore.com>
289 PR rtl-optimization/55630
290 * expr.c (expand_assignment): Do not call copy_blkmode_to_reg to move
291 BLKmode return values to the return register.
293 2012-12-15 Alexandre Oliva <aoliva@redhat.com>
296 * expr.c (mem_ref_refers_to_non_mem_p): Factor out
297 implementation into...
298 (addr_expr_of_non_mem_decl_p_1): ... this new function.
299 (addr_expr_of_non_mem_decl_p): New.
300 * tree.h (addr_expr_of_non_mem_decl_p): Declare.
301 * tree-mudflap.c (mf_xform_derefs_1): Don't change MEM_REFs
302 and TARGET_MEM_REFs that have an ADDR_EXPR of a non-mem DECL
305 2012-12-14 Yvan Roux <yvan.roux@linaro.org>
307 * optabs.c (expand_atomic_store): Elide redundant model test.
309 2012-12-14 Teresa Johnson <tejohnson@google.com>
311 PR gcov-profile/55674
312 * lto-cgraph.c (merge_profile_summaries): Set min correctly the
313 first time we merge into a histogram entry.
315 2012-12-14 Richard Biener <rguenther@suse.de>
317 PR tree-optimization/55684
318 * tree-ssa-loop-ivcanon.c (remove_redundant_iv_tests): Handle
319 gracefully the case where we cannot compute the number of
320 iterations at an exit.
322 2012-12-14 Richard Biener <rguenther@suse.de>
324 PR tree-optimization/55687
325 * tree-chrec.h (no_evolution_in_loop_p): Properly use
326 tree_contains_chrecs.
328 2012-12-13 Richard Henderson <rth@redhat.com>
331 * optabs.c (expand_atomic_load): Emit acquire barrier after the load.
333 2012-12-13 Richard Henderson <rth@redhat.com>
335 * config/alpha/alpha.c (alpha_pad_function_end): Consider barriers
336 when looking for NOTE_INSN_CALL_ARG_LOCATION.
338 2012-12-13 Richard Biener <rguenther@suse.de>
341 * varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7
344 2012-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
346 * config/arm/unspecs.md: Add copyright notice.
348 2012-12-13 Jakub Jelinek <jakub@redhat.com>
350 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Avoid
351 -Wsign-compare warning.
353 2012-12-13 Richard Biener <rguenther@suse.de>
356 * tree-streamer.c (record_common_node): Check that we are not
357 recursively pre-loading nodes we want to skip. Handle
358 char_type_node appearing as part of va_list_type_node.
360 2012-12-13 Jakub Jelinek <jakub@redhat.com>
362 PR gcov-profile/55650
363 * coverage.c (coverage_obj_init): Return false if no functions
366 2012-12-13 Steven Bosscher <steven@gcc.gnu.org>
368 * bitmap.c (struct bitmap_descriptor): Remove forward declaration.
369 (struct bitmap_head_def): Remove desc pointer. Add descriptor_id
370 field. Reorder fields for pointer alignment.
371 * bitmap.c: Include vec.h.
372 (struct bitmap_descriptor): Rename to bitmap_descriptor_d.
373 (bitmap_descriptor): New typedef, pointer to bitmap_descriptor_d.
374 Update all struct bitmap_descriptor references.
375 (next_bitmap_desc_id): New running index for bitmap desciptors.
376 (bitmap_descriptors): Vec of all bitmap descriptors by descriptor id.
377 (hash_descriptor, eq_descriptor): Update for struct bitmap_descriptor
379 (bitmap_descriptor): Rename function to get_bitmap_descriptor.
380 Stuff newly allocated bitmap descriptor into bitmap_descriptors.
381 Set the bitmap descriptor id.
382 (bitmap_register): Lookup bitmap desciptor and store its ID in
384 (register_overhead): Likewise.
385 (bitmap_find_bit): Lookup descriptor by id in bitmap_descriptors.
386 (print_statistics): Update for struct bitmap_descriptor change.
388 * Makefile.in: Fix bitmap.o dependencies.
390 2012-12-13 Richard Biener <rguenther@suse.de>
392 * tree-ssa-pre.c (get_representative_for): Adjust dumping.
393 Mark created SSA names for release.
394 (eliminate_bb): Insert only when expr is not NULL.
396 2012-12-12 Jakub Jelinek <jakub@redhat.com>
399 * tree-inline.c (remap_decls): Change nonlocalized_list
400 to pointer to pointer to vector from pointer to vector.
401 (remap_block): Pass address of BLOCK_NONLOCALIZED_VARS.
404 * builtin-attrs.def (ATTR_TMPURE_NOTHROW_LEAF_LIST,
405 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): New.
406 * asan.c (ATTR_TMPURE_NOTHROW_LEAF_LIST,
407 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): Define.
408 * sanitizer.def: Make __asan_report_* and __asan_handle_no_return
411 2012-12-12 Steve Ellcey <sellcey@mips.com>
413 * config/mips/mips.c (mips_option_override): Set
414 mips_dbx_regno entries to IGNORED_DWARF_REGNUM by default.
416 2012-12-12 Steven Bosscher <steven@gcc.gnu.org>
418 * graph.c: Include sbitmap.h and cfgloop.h.
419 (draw_cfg_nodes_no_loops): New function to dump basic blocks in
420 topological order if the function does not have a loop tree.
421 Handle unreachable blocks also.
422 (draw_cfg_nodes_for_loop): New function to dump basic blocks in
423 one loop tree node as a named cluster of nodes.
424 (draw_cfg_nodes): New function to draw all CFG nodes.
425 (draw_cfg_edges): New function to draw all CFG edges.
426 (print_graph_cfg): Simplify using the new functions.
427 * Makefile.in (graph.o): Fix dependencies.
429 2012-12-12 Steven Bosscher <steven@gcc.gnu.org>
431 * dumpfile.h (enum tree_dump_index): Remove TDI_vcg.
432 * dumpfile.c (dump_files[]): Remove entry for TDI_vcg.
433 * tree-cfg.c (gimple_cfg2vcg): Remove.
434 (build_gimple_cfg): Don't call it.
435 * doc/invoke.texi (-fdump-tree-vcg): Remove documentation.
436 Correct GraphViz documentation, it does handle multiple functions
439 2012-12-12 Zdenek Dvorak <ook@ucw.cz>
441 PR tree-optimization/55481
442 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall
443 back to general rewriting if we cannot leave an original biv
446 2012-12-12 Jakub Jelinek <jakub@redhat.com>
450 2012-12-11 Jakub Jelinek <jakub@redhat.com>
453 * var-tracking.c (emit_note_insn_var_location): If insn is followed
454 by BARRIER, put note after the BARRIER.
455 (next_non_note_insn_var_location): Skip over BARRIERs.
456 (emit_notes_in_bb): If call is followed by BARRIER, put note after
459 2012-12-06 Jakub Jelinek <jakub@redhat.com>
462 * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb):
463 Clear BLOCK_FOR_INSN on notes emitted in between basic blocks,
464 don't adjust BB_END when inserting note after BB_END of some bb.
466 2012-12-12 Steven Bosscher <steven@gcc.gnu.org>
467 Jakub Jelinek <jakub@redhat.com>
470 * varasm.c (pending_assemble_externals_set): New pointer set.
471 (process_pending_assemble_externals): Destroy the pointer set.
472 (assemble_external): See if decl is in pending_assemble_externals_set,
473 and add it to pending_assemble_externals if necessary.
474 (init_varasm_once): Allocate pending_assemble_externals_set.
476 2012-12-12 Jakub Jelinek <jakub@redhat.com>
479 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
480 Ignore bounds on which bound += double_int_one overflowed.
482 2012-12-11 Eric Botcazou <ebotcazou@adacore.com>
485 * config/sparc/sparc.md (tldo_stb_sp32): Fix pasto.
486 (tldo_stb_sp64): Likewise.
487 (tldo_sth_sp32): Likewise.
488 (tldo_sth_sp64): Likewise.
489 (tldo_stw_sp32): Likewise.
490 (tldo_stw_sp64): Likewise.
491 (tldo_stx_sp64): Likewise.
493 2012-12-11 Jakub Jelinek <jakub@redhat.com>
495 PR rtl-optimization/55193
496 * lra-constraints.c (loc_equivalence_callback): New function.
497 (lra_constraints): Call simplify_replace_fn_rtx instead of
498 loc_equivalence_change_p on DEBUG_INSNs.
500 2012-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
503 * config/arm/thumb2.md (*thumb2_abssi2):
504 Set ce_count attribute to 2.
505 (*thumb2_neg_abssi2): Likewise.
507 2012-12-11 Jakub Jelinek <jakub@redhat.com>
509 * varasm.c (get_variable_section): Don't return lcomm_section
510 for asan_protect_global decls.
511 * asan.c (asan_protect_global): Only avoid public common variables.
512 Don't call get_variable_section here.
516 * var-tracking.c (emit_note_insn_var_location): If insn is followed
517 by BARRIER, put note after the BARRIER.
518 (next_non_note_insn_var_location): Skip over BARRIERs.
519 (emit_notes_in_bb): If call is followed by BARRIER, put note after
522 * sanitizer.def: Add comment about importance of ordering of
523 BUILT_IN_ASAN_REPORT* builtins.
524 * cfgcleanup.c (old_insns_match_p): Don't cross-jump __asan_report_*
527 * sanitizer.def (BUILT_IN_ASAN_HANDLE_NO_RETURN): New builtin.
528 * asan.c (instrument_builtin_call): Change is_gimple_builtin_call
529 gcc_assert to gcc_checking_assert.
530 (maybe_instrument_call): Imit __builtin___asan_handle_no_return ()
531 before noreturn calls other than __builtin_trap () and
532 __builtin_unreachable ().
534 2012-12-11 Richard Biener <rguenther@suse.de>
537 * doc/install.texi (Tools/packages necessary for building GCC):
538 State ISO C++98 host compiler requirement. Increment minimum
539 GCC version required for building all languages for a cross-compiler
542 2012-12-11 Richard Biener <rguenther@suse.de>
544 PR tree-optimization/55079
545 * tree-vrp.c (extract_range_from_binary_expr_1): Handle MAX/MIN_EXPR
547 (register_edge_assert_for_2): Register asserts for post-in/decrement
549 (check_array_ref): Dump what expression we emit array bound
551 (search_for_addr_array): Likewise.
553 2012-12-11 Eric Botcazou <ebotcazou@adacore.com>
555 * tree-ssa-loop-ivopts.c (prepare_decl_rtl) <ADDR_EXPR>: Generate RTL
556 only for a DECL which HAS_RTL_P.
558 2012-12-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
560 * config/s390/predicates.md ("execute_operation"): New predicate.
561 * config/s390/s390.md ("*execute_rl", "*execute"): Use the new
564 2012-12-10 Xinliang David Li <davidxl@google.com>
566 * config/i386/i386.c: Enable push/pop in pro/epilogue for modern CPUs.
568 2012-12-10 Steve Ellcey <sellcey@mips.com>
570 * config/mips/gnu-user.h (NO_SHARED_SPECS): Add space before option.
572 2012-12-10 Steve Ellcey <sellcey@mips.com>
575 * rtl.h (IGNORED_DWARF_REGNUM): New.
576 * dwarf2out.c (reg_loc_descriptor): Check for IGNORED_DWARF_REGNUM.
577 (mem_loc_descriptor): Ditto.
578 * config/mips/mips.h (ALL_COP_REG_FIRST): New.
579 (ALL_COP_REG_LAST): New.
580 (ALL_COP_REG_NUM): Redefine using above macros.
581 * config/mips/mips.c (mips_option_override): Set mips_dbx_regno
582 coprocessor entries to IGNORED_DWARF_REGNUM.
584 2012-12-10 H.J. Lu <hongjiu.lu@intel.com>
587 * lto-symtab.c (lto_symtab_merge_decls_1): Don't record the
589 * lto.c (lto_register_var_decl_in_symtab): Don't record static
591 (lto_main): Record the global variables if WPA isn't enabled.
593 2012-12-10 Richard Biener <rguenther@suse.de>
595 PR tree-optimization/55107
596 * tree-ssa-pre.c (struct pre_stats): Remove constified field.
597 (bitmap_set_replace_value): Add gcc_unreachable.
598 (do_regular_insertion): Re-write all_same handling. Insert
599 an assignment instead of a PHI in this case.
600 (eliminate_bb): Record availability also for SSA names defined
602 (do_pre): Do not record constified events.
603 (execute_fre): Likewise.
605 2012-12-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
607 * config/spu/spu.md: Replace "operands" with "operands != NULL" in
610 2012-12-10 Jakub Jelinek <jakub@redhat.com>
612 * asan.c (asan_init_shadow_ptr_types): Move earlier in the file.
613 Call initialize_sanitizer_builtins at the end.
614 (asan_pp_string): Use TREE_TYPE (shadow_ptr_types[0])
615 as character type instead of char_type_node.
616 (asan_emit_stack_protection): Call asan_init_shadow_ptr_types
617 if shadow_ptr_types isn't initialized.
618 (asan_protect_global): Return true for STRING_CSTs except those
619 created by asan_pp_string.
620 (count_string_csts, add_string_csts): New functions.
621 (struct asan_add_string_csts_data): New type.
622 (asan_finish_file): Clear flag_asan at the beginning, restore at the
623 end. Traverse constant_pool_htab () to look for protected
624 STRING_CSTs. Don't call initialize_sanitizer_builtins,
625 instead call asan_init_shadow_ptr_types if shadow_ptr_types isn't
627 (asan_instrument): Don't call initialize_sanitizer_builtins.
628 * varasm.c (output_constant_def_contents): If STRING_CST should be
629 asan protected, align it sufficiently and emit padding after it.
630 (categorize_decl_for_section): If flag_asan, don't put STRING_CSTs
631 that should be asan protected into mergeable sections. For
632 -fmerge-all-constants, ignore it for -fmudflap or if decl is
635 2012-12-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
637 * config/arm/neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm,
639 (type features): Add Requires_arch type constructor.
640 (ops): Define Vrintn, Vrinta, Vrintp, Vrintm, Vrintz features.
641 * config/arm/neon-docgen.ml (intrinsic_groups): Define Vrintn,
642 Vrinta, Vrintp, Vrintm, Vrintz, Vrintx.
643 * config/arm/neon-testgen.ml (effective_target): Define check for
645 * config/arm/neon-gen.ml (print_feature_test_start): Handle
647 (print_feature_test_end): Likewise.
648 Add 2012 to Copyright notice.
649 * doc/arm-neon-intrinsics.texi: Regenerate.
650 * config/arm/arm_neon.h: Regenerate.
652 2012-12-10 Kai Tietz <ktietz@redhat.com>
654 * stmt.c (expand_sjlj_dispatch_table): Fix off by one.
657 * stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.
658 (expand_case): Likewise.
661 * print-tree.c (print_node): Cast from pointer via uintptr_t.
663 2012-12-10 Jakub Jelinek <jakub@redhat.com>
665 * asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs
666 accesses as reads/writes to their DECL_BIT_FIELD_REPRESENTATIVE.
668 2012-12-08 Eric Botcazou <ebotcazou@adacore.com>
670 * lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of
671 variables in the global constant pool.
673 2012-12-08 Steven Bosscher <steven@gcc.gnu.org>
675 PR rtl-optimization/55158
676 * sched-rgn.c (bb_state_array, bb_state): Add some explaining
677 comment, and initialize to NULL explicitly.
678 (realloc_bb_state_array): New function.
679 (free_bb_state_array): New function.
680 (schedule_region): Call realloc_bb_state_array after schedule_block.
681 (sched_rgn_init): Use realloc_bb_state_array to initialize bb_state.
682 (sched_rgn_finish): Use free_bb_state_array to free it.
684 2012-12-08 Eric Botcazou <ebotcazou@adacore.com>
686 * tree-ssa-loop-im.c (for_each_index) <CONST_DECL>: New case.
688 2012-12-07 Sriraman Tallan <tmsriram@google.com>
690 * toplev.c (process_options): Do not warn when -ffunction-sections
691 and -fprofile are used together.
693 2012-12-07 Steven Bosscher <steven@gcc.gnu.org>
695 * ree.c (struct ext_cand): Remove GTY markers.
697 2012-12-07 Vladimir Makarov <vmakarov@redhat.com>
699 PR rtl-optimization/55141
700 * lra-constraints.c (lra_constraints): Use biggest mode for
701 df_set_regs_ever_live.
703 2012-12-07 Jan Hubicka <jh@suse.cz>
705 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND
707 (try_unroll_loop_completely) Update.
709 2012-12-07 Jakub Jelinek <jakub@redhat.com>
712 * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
713 for -g for any kind of debug info.
715 2012-12-07 Richard Biener <rguenther@suse.de>
717 PR tree-optimization/54886
718 * graphite-sese-to-poly.c (build_loop_iteration_domains): Properly
721 2012-12-07 Martin Jambor <mjambor@suse.cz>
724 * ipa-inline-transform.c (inline_call): Turn #if 0 to
725 #ifdef ENABLE_CHECKING.
726 * ipa-prop.c (try_make_edge_direct_simple_call): Use
727 ipa_value_from_jfunc.
728 (try_make_edge_direct_virtual_call): Likewise.
729 (update_indirect_edges_after_inlining): Lookup new_root_info and pass
730 it to the functions above.
732 2012-12-07 Martin Jambor <mjambor@suse.cz>
734 PR tree-optimization/55590
735 * tree-sra.c (build_ref_for_offset): Use get_object_alignment_1 to
738 2012-12-06 Uros Bizjak <ubizjak@gmail.com>
739 H.J. Lu <hongjiu.lu@intel.com>
742 * config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode,
743 before using it as insn or call equivalent.
745 2012-12-06 Peter Bergner <bergner@vnet.ibm.com>
747 * config/rs6000/sysv4.h (TARGET_ASAN_SHADOW_OFFSET): Define.
748 * config/rs6000/rs6000.c (rs6000_asan_shadow_offset): New function.
749 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Disable if using ASAN.
751 2012-12-06 Jakub Jelinek <jakub@redhat.com>
754 * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
755 if -g and emitting DWARF2+.
757 2012-12-06 Pat Haugen <pthaugen@us.ibm.com>
759 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
760 default loop peeling limits.
762 2012-12-06 Jason Merrill <jason@redhat.com>
766 * tree.c (build_array_type_1): Re-layout if we found it in the
769 2012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
772 * config/darwin.h (LINK_COMMAND_SPEC_A): Remove static libasan support.
774 2012-12-06 Jakub Jelinek <jakub@redhat.com>
777 * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb):
778 Clear BLOCK_FOR_INSN on notes emitted in between basic blocks,
779 don't adjust BB_END when inserting note after BB_END of some bb.
782 * fold-const.c (fold_binary_loc) <associate>: Don't introduce
783 TREE_OVERFLOW through reassociation. If type doesn't have defined
784 overflow, but one or both of the operands do, use the wrapping type
785 for reassociation and only convert to type at the end.
787 2012-12-06 Richard Biener <rguenther@suse.de>
789 * gimple-fold.c (fold_stmt_1): Remove code handling folding stmts away.
791 2012-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
793 * doc/sourcebuild.texi: Document arm_v8_neon_ok.
795 2012-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
797 * config/arm/arm.c (neon_itype): Define NEON_RINT enum element.
798 (neon_builtin_data): Register vrintn, vrinta, vrintp, vrintm,
799 vrintz, vrintx neon builtins.
800 (arm_init_neon_builtins): Handle NEON_RINT.
801 (arm_expand_neon_builtin): Likewise.
802 * config/arm/unspecs.md: New file.
803 * config/arm/arm.md ("unspec"): Move to unspecs.md.
804 * config/arm/iterators.md (NEON_VRINT): New int iterator.
805 (nvrint_variant): New int attribute.
807 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): New pattern.
808 ("unspec"): Move to unspecs.md.
809 * config/arm/iwmmxt2.md ("unspec"): Move to unspecs.md.
811 2012-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
813 * config/pa/pa.md: Use "const_int 0" instead of match_test to simplify
814 opaque cond in all call insns.
816 2012-12-05 Steven Bosscher <steven@gcc.gnu.org>
818 PR rtl-optimization/55604
819 * lra-lives.c (lra_create_live_ranges): If there are no referenced
820 pseudos left, do not compute live ranges.
822 2012-12-05 Steven Bosscher <steven@gcc.gnu.org>
824 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation.
825 * doc/tm.texi: Regenerate.
826 * regs.h (REG_LIVE_LENGTH): Update comments to not refer to no longer
827 existing files global.c and local-alloc.c.
828 * regmove.c (copy_src_to_dest): Likewise.
829 * function.h (struct rtl_data): Likewise.
830 * ira-color.c (allocno_priority_compare_func): Likewise.
831 * regstat.c (regstat_compute_ri): Likewise.
832 * config/epiphany/epiphany.h, config/vax/vax.h, config/cris/cris.h,
833 config/h8300/h8300.h, config/alpha/alpha.h, config/sparc/sparc.h,
834 config/rs6000/rs6000.h, config/pdp11/pdp11.h, config/pa/pa.h,
835 config/v850/v850.h, config/mn10300/mn10300.h, config/m32r/m32r.h,
836 config/i386/i386.h, config/mcore/mcore.h, config/sh/sh.h,
837 config/arm/arm.h (REGNO_OK_FOR_BASE_P): Likewise.
839 2012-12-05 Aldy Hernandez <aldyh@redhat.com>
842 * config/t-darwin (darwin-c.o): Depend on $(CPP_INTERNAL_H).
843 * config/darwin-c.c (darwin_cpp_builtins): Only set __OBJC2__ when
845 Include libcpp/internal.h.
847 2012-12-05 Michael Eager <eager@eagercon.com>
849 PR rtl-optimization/54739
850 * config/microblaze/microblaze.md: (anddi3, iordi3, xordi3): Delete
853 2012-12-05 James Greenhalgh <james.greenhalgh@arm.com>
855 * config/aarch64/aarch64-simd-builtins.def: Add new builtins.
856 * config/aarch64/aarch64-simd.md (simd_type): Add uzp.
857 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): New.
858 * config/aarch64/aarch64.c (aarch64_evpc_trn): New.
859 (aarch64_evpc_uzp): Likewise.
860 (aarch64_evpc_zip): Likewise.
861 (aarch64_expand_vec_perm_const_1): Check for trn, zip, uzp patterns.
862 * config/aarch64/iterators.md (unspec): Add neccessary unspecs.
864 (perm_insn): Likewise.
865 (perm_hilo): Likewise.
867 2012-12-05 James Greenhalgh <james.greenhalgh@arm.com>
869 * config/aarch64/aarch64-protos.h
870 (aarch64_split_combinev16qi): New.
871 (aarch64_expand_vec_perm): Likewise.
872 (aarch64_expand_vec_perm_const): Likewise.
873 * config/aarch64/aarch64-simd.md (vec_perm_const<mode>): New.
874 (vec_perm<mode>): Likewise.
875 (aarch64_tbl1<mode>): Likewise.
876 (aarch64_tbl2v16qi): Likewise.
877 (aarch64_combinev16qi): New.
878 * config/aarch64/aarch64.c
879 (aarch64_vectorize_vec_perm_const_ok): New.
880 (aarch64_split_combinev16qi): Likewise.
881 (MAX_VECT_LEN): Define.
882 (expand_vec_perm_d): New.
883 (aarch64_expand_vec_perm_1): Likewise.
884 (aarch64_expand_vec_perm): Likewise.
885 (aarch64_evpc_tbl): Likewise.
886 (aarch64_expand_vec_perm_const_1): Likewise.
887 (aarch64_expand_vec_perm_const): Likewise.
888 (aarch64_vectorize_vec_perm_const_ok): Likewise.
889 (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Likewise.
890 * config/aarch64/iterators.md
891 (unspec): Add UNSPEC_TBL, UNSPEC_CONCAT.
892 (V_cmp_result): Add mapping for V2DF.
894 2012-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
896 * config/aarch64/aarch64.c (aarch64_simd_mangle_map_entry): New
898 (aarch64_simd_mangle_map): New table.
899 (aarch64_mangle_type): Locate and return the mangled name for
900 a given AdvSIMD vector type.
902 2012-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
904 * config/aarch64/aarch64.c (aarch64_mangle_type): New function.
905 (TARGET_MANGLE_TYPE): Define.
907 2012-12-05 James Greenhalgh <james.greenhalgh@arm.com>
909 * config/aarch64/aarch64-builtins.c
910 (aarch64_builtin_vectorized_function): New.
911 * config/aarch64/aarch64-protos.h
912 (aarch64_builtin_vectorized_function): Declare.
913 * config/aarch64/aarch64-simd-builtins.def (frintz, frintp): Add.
914 (frintm, frinti, frintx, frinta, fcvtzs, fcvtzu): Likewise.
915 (fcvtas, fcvtau, fcvtps, fcvtpu, fcvtms, fcvtmu): Likewise.
916 * config/aarch64/aarch64-simd.md
917 (aarch64_frint_<frint_suffix><mode>): New.
918 (<frint_pattern><mode>2): Likewise.
919 (aarch64_fcvt<frint_suffix><su><mode>): Likewise.
920 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Likewise.
921 * config/aarch64/aarch64.c (TARGET_VECTORIZE_BUILTINS): Define.
922 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
923 * config/aarch64/aarch64.md
924 (btrunc<mode>2, ceil<mode>2, floor<mode>2)
925 (round<mode>2, rint<mode>2, nearbyint<mode>2): Consolidate as...
926 (<frint_pattern><mode>2): ...this.
927 (lceil<su_optab><mode><mode>2, lfloor<su_optab><mode><mode>2)
928 (lround<su_optab><mode><mode>2)
929 (lrint<su_optab><mode><mode>2): Consolidate as...
930 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): ... this.
931 * config/aarch64/iterators.md (fcvt_target): New.
932 (FCVT_TARGET): Likewise.
935 (frint_pattern): Likewise.
936 (frint_suffix): Likewise.
937 (fcvt_pattern): Likewise.
939 2012-12-05 Steven Bosscher <steven@gcc.gnu.org>
941 * passes.c (pass_init_dump_file): Only open a clean graph dump file if
942 the dump was not already initialized.
945 2012-12-03 Steven Bosscher <steven@gcc.gnu.org>
946 * passes.c (finish_optimization_passes): Don't finish graph dumps here.
947 (pass_fini_dump_file): Wrap in TV_DUMP. Finish graph dumps.
948 (execute_one_pass): Don't set up graph dumps here.
950 2012-12-05 Richard Biener <rguenther@suse.de>
953 * gimple-streamer-in.c (input_gimple_stmt): Fixup ARRAY_REFs as well.
955 2012-12-04 Ian Lance Taylor <iant@google.com>
957 * godump.c (find_dummy_types): Output a dummy type if we couldn't
958 output the real type.
960 2012-12-04 Steven Bosscher <steven@gcc.gnu.org>
962 * rtl.h (print_insn_with_notes): Remove prototype.
963 (rtl_dump_bb_for_graph): New prototype.
964 * sched-vis.c (print_insn_with_notes): Make static again. Fix
966 (rtl_dump_bb_for_graph): New function.
967 * cfghooks.h (struct cfg_hooks) <dump_bb_for_graph>: New hook.
968 (dump_bb_for_graph): New prototype.
969 * cfghooks.c (dump_bb_for_graph): New function.
970 * tree-cfg.c (gimple_cfg_hooks): Register gimple_dump_bb_for_graph
971 as dump_bb_for_graph hook implementation for GIMPLE.
972 * cfgrtl.c (rtl_cfg_hooks): Likewise for rtl_dump_bb_for_graph.
973 (cfg_layout_rtl_cfg_hooks): Likewise.
974 * graph.c (draw_cfg_node): Don't include sbitmap.h, rtl.h, tree.h,
975 gimple.h, and gimple-pretty-print.h.
976 (draw_cfg_node, draw_cfg_node_succ_edges): Use the uniqe function
977 definition number instead of the function declaration UID.
978 (print_graph_cfg): Take a struct function instead of a tree.
979 Use the dump_bb_for_graph hook to dump the basic block content.
980 * graph.h (print_graph_cfg): Update prototype.
981 * passes.c (execute_function_dump): Update print_graph_cfg call.
982 * Makefile.in (graph.o): Fixup dependencies.
984 2012-12-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
986 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Set
989 2012-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
991 * config/s390/s390.c (s390_select_ccmode): Enable using CC of
992 x + imm for higher immediates on z9-109 upwards.
994 2012-12-04 Richard Earnshaw <rearnsha@arm.com>
996 * arm.opt (cirrus-fix-invalid-insns): Delete option.
997 * invoke.texi (cirrus-fix-invalid-insns): Remove documentation.
999 2012-12-04 Jakub Jelinek <jakub@redhat.com>
1001 * tsan.c (instrument_expr): If expr_ptr isn't a gimple val, first
1002 store it into a SSA_NAME.
1005 * Makefile.in (tsan.o): Depend on tree-ssa-propagate.h.
1006 * sanitizer.def: Add __tsan_atomic* builtins.
1007 * asan.c (initialize_sanitizer_builtins): Adjust to also
1008 initialize __tsan_atomic* builtins.
1009 * tsan.c: Include tree-ssa-propagate.h.
1010 (enum tsan_atomic_action): New enum.
1011 (tsan_atomic_table): New table.
1012 (instrument_builtin_call): New function.
1013 (instrument_gimple): Take pointer to gimple_stmt_iterator
1014 instead of gimple_stmt_iterator. Call instrument_builtin_call
1015 on builtin call stmts.
1016 (instrument_memory_accesses): Adjust instrument_gimple caller.
1017 * builtin-types.def (BT_FN_BOOL_VPTR_PTR_I1_INT_INT,
1018 BT_FN_BOOL_VPTR_PTR_I2_INT_INT, BT_FN_BOOL_VPTR_PTR_I4_INT_INT,
1019 BT_FN_BOOL_VPTR_PTR_I8_INT_INT, BT_FN_BOOL_VPTR_PTR_I16_INT_INT): New.
1021 2012-12-04 Tejas Belagod <tejas.belagod@arm.com>
1023 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment,
1024 aarch64_simd_vector_alignment_reachable): New.
1025 (TARGET_VECTOR_ALIGNMENT, TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE):
1028 2012-12-04 Richard Biener <rguenther@suse.de>
1030 PR tree-optimization/55124
1031 * tree-ssa-pre.c (find_or_generate_expression): Instead of
1032 ICEing when we are not able to generate an expression defer it
1033 by signalling failure. Fix possible wrong-code issue by
1034 not picking random REFERENCE expressions as fallback.
1035 (create_component_ref_by_pieces_1): Adjust. Add failure paths.
1036 (create_expression_by_pieces): Likewise.
1037 (insert_into_preds_of_block): When expression generation failed
1038 for one edge make sure to not insert a PHI node.
1040 2012-12-03 Eric Botcazou <ebotcazou@adacore.com>
1042 * config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch
1043 area if the function allocates dynamic stack space.
1044 (ia64_initial_elimination_offset): Adjust offsets to above change.
1046 2012-12-03 Steven Bosscher <steven@gcc.gnu.org>
1048 * gcse.c (struct reg_use): Remove unused struct.
1049 (gcse_emit_move_after): Do not create REG_EQUAL notes that reference
1050 the SET_DEST of the instruction the note would be attached to.
1051 * cse.c (cse_main): Add the DF_NOTE problem.
1053 2012-12-03 Jakub Jelinek <jakub@redhat.com>
1055 * sanitizer.def: Add Address Sanitizer builtins.
1056 Rename BUILT_IN_TSAN_READ_* to BUILT_IN_TSAN_READ* and
1057 BUILT_IN_TSAN_WRITE_* to BUILT_IN_TSAN_WRITE*.
1058 * Makefile.in (asan.o): Depend on langhooks.h.
1059 (tsan.o): Depend on asan.h.
1060 * asan.h (initialize_sanitizer_builtins): New prototype.
1061 * asan.c: Include langhooks.h.
1062 (report_error_func): Use builtin_decl_implicit of corresponding
1063 BUILT_IN_ASAN_REPORT_{LOAD,STORE}*.
1064 (asan_init_func): Removed.
1065 (initialize_sanitizer_builtins): New function.
1066 (asan_finish_file): Call it. Use builtin_decl_implicit
1067 on BUILT_IN_ASAN_{INIT,{,UN}REGISTER_GLOBALS}.
1068 (asan_instrument): Call initialize_sanitizer_builtins.
1069 * builtins.def (DEF_SANITIZER_BUILTIN): Change condition to
1070 (flag_asan || flag_tsan).
1071 * tsan.c: Include asan.h and tsan.h.
1072 (get_memory_access_decl): Rename BUILT_IN_TSAN_{READ,WRITE}_*
1073 to BUILT_IN_TSAN_{READ,WRITE}*.
1074 (tsan_pass): Call initialize_sanitizer_builtins.
1075 (tsan_gate, tsan_gate_O0): Don't check if
1076 builtin_decl_implicit_p (BUILT_IN_TSAN_INIT) is true.
1077 (tsan_finish_file): Call initialize_sanitizer_builtins.
1078 * builtin-types.def (BT_FN_VOID_PTR_PTRMODE): New fn type.
1080 2012-12-03 Aldy Hernandez <aldyh@redhat.com>
1083 * trans-mem.c (get_tm_region_blocks): Exclude uninstrumented
1084 blocks from vector if requested.
1085 (collect_bb2reg): Pass new argument to get_tm_region_blocks.
1086 (get_bb_regions_instrumented): Add INCLUDE_UNINSTRUMENTED_P
1087 argument, and pass it to expand_regions.
1088 (execute_tm_mark): Pass new argument to get_bb_regions_instrumented.
1089 (execute_tm_edges): Same.
1091 2012-12-03 Jakub Jelinek <jakub@redhat.com>
1093 * asan.c (instrument_mem_region_access): Don't instrument
1094 if base doesn't have pointer type or len integral type.
1095 Add cast if len doesn't have size_t compatible type.
1096 (instrument_builtin_call): Don't instrument BUILT_IN_ATOMIC_LOAD,
1097 BUILT_IN_ATOMIC_TEST_AND_SET, BUILT_IN_ATOMIC_CLEAR,
1098 BUILT_IN_ATOMIC_EXCHANGE, BUILT_IN_ATOMIC_COMPARE_EXCHANGE
1099 and BUILT_IN_ATOMIC_STORE.
1101 * asan.c (instrument_assignment): Instrument lhs only
1102 for gimple_store_p and rhs1 only for gimple_assign_load_p.
1104 2012-12-03 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1106 * Makefile.in: Add target mddump, build/genmddump.o. Extend
1107 genprogrtl with mddump.
1110 2012-12-03 Steven Bosscher <steven@gcc.gnu.org>
1112 * rtl.h (print_insn_with_notes): Prototype.
1113 * sched-vis.c (print_insn_with_notes): Export it.
1115 * gimple-pretty-print.h (gimple_dump_bb_for_graph): Prototype.
1116 * gimple-pretty-print.c (print_gimple_expr): Flush the buffer.
1117 (pp_gimple_stmt_1): Don't do it here.
1118 (gimple_dump_bb_for_graph): New function.
1119 * tree-pretty-print.c (print_generic_expr): Flush the buffer here.
1120 (dump_generic_node): Don't flush the buffer here.
1122 * graph.h (print_rtl_graph_with_bb): Rename to print_graph_cfg.
1123 * graph.c: Include gimple.h, dumpfile.h, and gimple-pretty-print.h.
1124 (draw_cfg_node): Handle GIMPLE basic blocks also.
1125 (print_rtl_graph_with_bb): Rename to print_graph_cfg.
1126 * passes.c (finish_optimization_passes): Don't finish graph dumps here.
1127 (execute_function_dump): Use print_graph_cfg. Enable dumping the CFG
1129 (pass_init_dump_file): Wrap in TV_DUMP. Set up CFG graph dumps.
1130 (pass_fini_dump_file): Wrap in TV_DUMP. Finish graph dumps.
1131 (execute_one_pass): Don't set up graph dumps here.
1133 2012-12-03 Eric Botcazou <ebotcazou@adacore.com>
1135 * tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag
1136 in the non-always executed case.
1138 2012-12-03 Sofiane Naci <sofiane.naci@arm.com>
1140 * config/aarch64/aarch64.c (aarch64_build_constant): Update prototype.
1141 Call emit_move_insn instead of printing movi/movn/movz instructions.
1142 Call gen_insv_immdi instead of printing movk instruction.
1143 (aarch64_add_constant): Update prototype.
1144 Generate RTL instead of printing add/sub instructions.
1145 (aarch64_output_mi_thunk): Update calls to aarch64_build_constant
1146 and aarch64_add_constant.
1148 2012-12-03 Kai Tietz <ktietz@redhat.com>
1151 * ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.
1154 * tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.
1157 * pointer-set.c (hash1): Cast from pointer via uintptr_t.
1159 2012-12-02 Marek Polacek <polacek@redhat.com>
1162 * cprop.c (bypass_block): Determine number of latches. Return
1163 when there is more than one latch edge.
1165 2012-12-02 Teresa Johnson <tejohnson@google.com>
1167 PR gcov-profile/55551
1168 * lto-cgraph.c (merge_profile_summaries): Handle scaled histogram
1169 entries that map to the same index.
1171 2012-12-02 Steven Bosscher <steven@gcc.gnu.org>
1173 * optabs.c (add_equal_note): Do not create self-referencing REG_EQUAL
1175 * fwprop.c (forward_propagate_and_simplify): Likewise.
1177 2012-12-02 Steven Bosscher <steven@gcc.gnu.org>
1179 * function.h (struct rtl_data): Remove epilogue_delay_list.
1180 * reorg.c (find_end_label): Simplify always-true test.
1181 (optimize_skip): Likewise.
1182 * final.c (leaf_function_p): Don't loop over epilogue_delay_list.
1183 (leaf_renumber_regs): Likewise.
1184 * varasm.c (mark_constant_pool): Likewise.
1185 * except.c (set_nothrow_function_flags): Likewise.
1186 * cfgrtl.c (print_rtl_with_bb): Likewise.
1188 2012-12-02 Hans-Peter Nilsson <hp@bitrange.com>
1190 * config/mmix/mmix.c (mmix_function_value): Set the mode of the
1191 returned PARALLEL to that of the return-value, not VOIDmode.
1193 2012-12-02 Sandra Loosemore <sandra@codesourcery.com>
1195 * doc/extend.texi: Various corrections to punctuation and grammar
1196 throughout the file. Use consistent terminology and proper names.
1197 Correct some minor markup issues.
1199 2010-12-01 Xinliang David Li <davidxl@google.com>
1201 * config/i386/i386.c: Allow sign extend instructions (cltd etc)
1204 2012-12-02 Steven Bosscher <steven@gcc.gnu.org>
1206 * reorg.c: Remove an obsolete comment.
1207 * config/pa/pa.md: Add back the HP-PA comment here, with details.
1209 2012-11-30 Eric Botcazou <ebotcazou@adacore.com>
1211 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
1212 Deal with degenerate cases where the bitsize isn't positive.
1215 2012-11-30 David Edelsohn <dje.gcc@gmail.com>
1217 * xcoffout.c (xcoff_tls_data_section_name): Define.
1218 * xcoffout.h (xcoff_tls_data_section_name): Declare.
1219 * config/rs6000/rs6000.c (tls_data_section): Define.
1220 (TARGET_USE_BLOCKS_FOR_DECL_P): Define.
1221 (rs6000_legitimize_tls_address_aix): New function.
1222 (rs6000_legitimize_tls_address): Use new function for AIX.
1223 (rs6000_cannot_force_const_mem): No sum in TLS TOC symbols.
1224 Allow TLS symbol in constant pool other than ELF.
1225 (rs6000_legitimate_address_p): Allow TLS symbol other than ELF.
1226 (rs6000_assemble_visibility): Do not emit anything on AIX.
1227 (output_toc): Handle alias of TLS general-dynamic symbols.
1228 Emit TLS decorations on symbols.
1229 (rs6000_use_blocks_for_decl_p): New function.
1230 (rs6000_xcoff_output_tls_section_asm_op): New function.
1231 (rs6000_xcoff_asm_init_sections): Initialize tls_data_section.
1232 (rs6000_xcoff_select_section): Choose tls_data_section for
1233 thread-local storage.
1234 (rs6000_xcoff_file_start): Generate xcoff_tls_data_section_name.
1235 (rs6000_legitimate_constant_p): Allow TLS symbol other than ELF.
1236 * config/rs6000/rs6000.md (tls_tls_): Restrict to ELF.
1237 (tls_get_tpointer): New.
1238 (tle_get_tpointer_internal): New.
1239 (tls_get_addr<mode>): New.
1240 (tls_get_addr_internal<mode>): New.
1241 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Define.
1243 2012-11-30 Teresa Johnson <tejohnson@google.com>
1245 * lto-cgraph.c (output_profile_summary): Stream out sum_all
1247 (input_profile_summary): Stream in sum_all and histogram.
1248 (merge_profile_summaries): Merge sum_all and histogram, and
1250 (input_symtab): Call compute_working_sets after merging summaries.
1251 * gcov-io.c (gcov_histo_index): Make extern for compiler.
1252 * gcov-io.h (gcov_histo_index): Ditto.
1253 * profile.c (compute_working_sets): Remove static keyword.
1254 * profile.h (compute_working_sets): Ditto.
1255 * Makefile.in (lto-cgraph.o): Depend on profile.h.
1257 2012-11-30 Martin Jambor <mjambor@suse.cz>
1260 PR tree-optimization/55415
1261 PR tree-optimization/54386
1263 * ipa-prop.c (ipa_modify_call_arguments): Be optimistic when
1264 get_pointer_alignment_1 returns false and the base was not a
1266 * tree-sra.c (access_precludes_ipa_sra_p): New parameter req_align,
1267 added check for required alignment. Update the user.
1269 2012-11-30 Ramana Radhakrishnan <Ramana.Radhakrishnan@arm.com>
1270 Greta Yorsh <Greta.Yorsh@arm.com>
1272 * config/arm/arm.md (type): Subdivide "alu" into "alu_reg"
1273 and "simple_alu_imm".
1274 (core_cycles): Use new names.
1275 (arm_addsi3): Set type of patterns to use to alu_reg and simple_alu_imm.
1276 (addsi3_compare0, addsi3_compare0_scratch): Likewise.
1277 (addsi3_compare_op1, addsi3_compare_op2, compare_addsi2_op0): Likewise.
1278 (compare_addsi2_op1, arm_subsi3_insn, subsi3_compare0): Likewise.
1279 (subsi3_compare, arm_decscc,arm_andsi3_insn): Likewise.
1280 (thumb1_andsi3_insn, andsi3_compare0_scratch): Likewise.
1281 (zeroextractsi_compare0_scratch,iorsi3_insn,iorsi3_compare0): Likewise.
1282 (iorsi3_compare0_scratch, arm_xorsi3, thumb1_xorsi3_insn): Likewise.
1283 (xorsi3_compare0, xorsi3_compare0_scratch): Likewise.
1284 (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Likewise.
1285 (thumb1_zero_extendqisi2_v, arm_zero_extendqisi2_v6): Likewise.
1286 (thumb1_extendhisi2, arm_extendqisi_v6): Likewise.
1287 (thumb1_extendqisi2, arm_movsi_insn): Likewise.
1288 (movsi_compare0, movhi_insn_arch4, movhi_bytes): Likewise.
1289 (arm_movqi_insn, thumb1_movqi_insn, arm_cmpsi_insn): Likewise.
1290 (movsicc_insn, if_plus_move, if_move_plus): Likewise.
1291 * config/arm/neon.md (neon_mov<mode>/VDX): Likewise.
1292 (neon_mov<mode>/VQXMOV): Likewise.
1293 * config/arm/arm1020e.md (1020alu_op): Likewise.
1294 * config/arm/fmp626.md (mp626_alu_op): Likewise.
1295 * config/arm/fa726te.md (726te_alu_op): Likewise.
1296 * config/arm/fa626te.md (626te_alu_op): Likewise.
1297 * config/arm/fa606te.md (606te_alu_op): Likewise.
1298 * config/arm/fa526.md (526_alu_op): Likewise.
1299 * config/arm/cortex-r4.md (cortex_r4_alu, cortex_r4_mov): Likewise.
1300 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
1301 * config/arm/cortex-a9.md (cprtex_a9_dp): Likewise.
1302 * config/arm/cortex-a8.md (cortex_a8_alu, cortex_a8_mov): Likewise.
1303 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
1304 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
1305 * config/arm/arm926ejs.md (9_alu_op): Likewise.
1306 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
1307 * config/arm/arm1026ejs.md (alu_op): Likewise.
1309 2012-11-30 Richard Biener <rguenther@suse.de>
1311 * tree-ssa-pre.c (get_expr_value_id): Do not allocate value-ids here.
1313 2012-11-30 Richard Biener <rguenther@suse.de>
1315 * tree-ssa-sccvn.c (run_scc_vn): Remove iteration propagating
1318 2012-11-30 Steven Bosscher <steven@gcc.gnu.org>
1320 * coretypes.h (struct pretty_print_info): Make a coretype.
1321 (typedef pretty_printer): Likewise.
1322 * pretty-print.h (typedef pretty_printer): Not needed here anymore.
1323 * pretty-print.c (pp_write_text_as_dot_label_to_stream): New function.
1324 * rtl.h (str_pattern_slim): New prototype.
1325 (print_value, print_pattern, print_insn): Adjust prototypes to take
1326 a pretty-printer rather than a char buffer.
1327 * sched-vis.c (safe_concat): Remove.
1328 (print_exp): Print into a pretty-printer.
1329 (print_value): Likewise.
1330 (print_pattern): Likewise.
1331 (print_insn): Likewise.
1332 (print_insn_with_notes): New static function.
1333 (init_rtl_slim_pretty_print): New function.
1334 (dump_value_slim): Simplify. Print into and flush a pretty-printer.
1335 (dump_insn_slim): Likewise.
1336 (dump_rtl_slim): Likewise.
1337 (str_pattern_slim): New function.
1338 * haifa-sched.c (model_recompute): Use str_pattern_slim instead of
1340 (model_record_pressures): Likewise.
1341 (schedule_insn): Likewise.
1342 * sel-sched-dump.c (dump_insn_rtx_1): Likewise.
1343 (sel_prepare_string_for_dot_label): Refer to graph.c CFG dumper code.
1344 * graph.c: Include pretty-print.h.
1345 (init_graph_slim_pretty_print): New function.
1346 (print_escaped_line): Removed here, and reincarnated as
1347 pp_write_text_as_dot_label_to_stream.
1348 (draw_cfg_node): Print into a pretty printer.
1349 (draw_cfg_node_succ_edges): Likewise.
1350 (print_rtl_graph_with_bb): Likewise.
1351 * Makefile.in (graph.o): Fix dependencies.
1352 (tree-optimize.o, toplev.o, sched-vis.o): Likewise.
1354 2012-11-30 Jakub Jelinek <jakub@redhat.com>
1356 * tsan.c (is_load_of_const_p): Removed.
1357 (instrument_expr): Use result of get_inner_reference
1358 instead of get_base_address, avoid some unnecessary tests,
1359 use !pt_solution_includes and !may_be_aliased tests to
1360 check whether base might escape current function.
1362 2012-11-30 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1364 * gensupport.c (maybe_eval_c_test): Remove not-null check for expr.
1365 * read-rtl.c (apply_iterators): Initialize condition with "" instead
1368 2012-11-30 Kai Tietz <ktietz@redhat.com>
1370 * config/i386/host-mingw32.c (va_granularity): Make none-const.
1371 (mingw32_gt_pch_alloc_granularity): Return OS' allocation granularity.
1372 (mingw32_gt_pch_use_address): Retry mapping of used address
1373 as multiple instances might interfer.
1375 * config/i386/mingw32.h (SHARED_LIBGCC_SPEC): Synchronize with
1378 2012-11-29 Eric Botcazou <ebotcazou@adacore.com>
1381 * calls.c (emit_library_call_value_1): Mark as no-nonlocal if no-throw.
1383 2012-11-29 Vladimir Makarov <vmakarov@redhat.com>
1386 * lra-int.h (lra_new_regno_start): New external.
1387 * lra.c (lra_new_regno_start): New global.
1388 (lra): Set up lra_new_regno_start.
1389 * lra-constraints.c (match_reload): Sync values only for original
1392 2012-11-29 Kai Tietz <ktietz@redhat.com>
1395 * prefix.c (lookup_key): Replace xmalloc/xrealloc
1396 use by XNEWVEC/XRESIZEVEC.
1398 2012-11-29 Richard Earnshaw <rearnsha@arm.com>
1401 * config/arm/neon.md (neon_vtrn<mode>_internal): Split into expand
1402 and insn patterns. Re-order insn arguments to tie inputs to outputs.
1403 (neon_vzip<mode>_internal): Likewise.
1404 (neon_vuzp<mode>_internal): Likewise.
1406 2012-11-29 Marc Glisse <marc.glisse@inria.fr>
1409 * fold-const.c (fold): Replace a CONSTRUCTOR with a VECTOR_CST.
1411 2012-11-29 Richard Biener <rguenther@suse.de>
1413 * tree-ssa-pre.c (get_expr_value_id): Do not add expr
1414 to the set of value expressions here.
1415 (add_to_exp_gen, make_values_for_phi): Fold into ...
1416 (compute_avail): ... here, and avoid useless work. Dump
1417 avail sets in processing order.
1418 (do_pre): Do not dump avail sets here.
1420 2012-11-29 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1423 * config/arm/arm.md (thumb2_pool_range, pool_range): Add comment on
1425 (thumb1_extendhisi2): Reduce Thumb pool range.
1426 (arm_movdi): Likewise.
1427 (thumb1_movdi_insn): Likewise.
1428 (thumb1_movsi_insn): Likewise.
1429 (pic_load_addr_unified): Likewise.
1430 (pic_load_addr_32bit): Likewise.
1431 (pic_load_addr_thumb1): Likewise.
1432 (thumb1_movhf): Likewise.
1433 (arm_movsf_soft_insn): Likewise.
1434 (thumb1_movsf_soft_insn): Likewise.
1435 (movdf_soft_insn): Likewise.
1436 (thumb1_movdf_soft_insn): Likewise.
1437 * config/arm/neon.md (*neon_mov<mode>): Likewise.
1438 (*neon_mov<mode>): Likwise.
1439 * config/arm/thumb2.md: (*thumb2_movsi_insn): Likewise.
1440 (*thumb2_movhi_insn): Likewise.
1441 (*thumb2_extendqisi_v6): Likewise.
1442 (*thumb2_zero_extendqisi_v6): Likewise.
1443 (*thumb2_zero_extendqisi2_v6): Likewise.
1444 * config/arm/vfp.md: (*thumb2_movsi_vfp): Likewise.
1445 (*movdi_vfp): Likewise.
1446 (*movdi_vfp_cortexa8): Likewise.
1447 (*thumb2_movsf_vfp): Likewise.
1448 (*thumb2_movdf_vfp): Likewise.
1450 2012-11-29 Kai Tietz <ktietz@redhat.com>
1453 * config/i386/i386.c (get_scratch_register_on_entry): Handle
1454 thiscall-convention.
1455 (split_stack_prologue_scratch_regno): Likewise.
1456 (ix86_static_chain): Likewise.
1457 (x86_output_mi_thunk): Likewise.
1459 2012-11-29 Marek Polacek <polacek@redhat.com>
1461 * cprop.c (bypass_block): Improve debug message.
1463 2012-11-29 Oleg Raikhman <oleg@adapteva.com>
1465 * config/epiphany/epiphany.h (FIXED_REGISTERS, CALL_USED_REGISTERS):
1466 Make r40..r43 call-used.
1467 (REG_ALLOC_ORDER): Sort r40..r43 into the call-used registers.
1469 2012-11-29 Joern Rennecke <joern.rennecke@embecosm.com>
1471 * config/epiphany/predicates.md (addsub_operator): New predicate.
1472 * config/epiphany/epiphany-sched.md (sched_use_fpu): New attribute.
1473 * config/epiphany/epiphany.md (isub_i+1): New peephole2.
1474 * config/epiphany/epiphany-protos.h (get_attr_sched_use_fpu): Declare.
1476 * config/epiphany/epiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define.
1477 (EXTRA_SPECS, DRIVER_SELF_SPECS): Likewise.
1478 * config/epiphany/t-epiphany (SPECS): Set.
1481 * config/epiphany/epiphany.md (isub_i+1): Work around generator bug.
1483 * config/epiphany/epiphany.c (epiphany_adjust_cost): Use
1484 reg_overlap_mentioned_p.
1486 2012-11-28 Jakub Jelinek <jakub@redhat.com>
1492 * cselib.c (cselib_process_insn): If cselib_preserve_constants,
1493 don't reset table and exit early on volatile insns and setjmp.
1494 Reset table afterwards on setjmp.
1496 2012-11-28 Andrew Pinski <apinski@cavium.com>
1499 * Makefile.in (${QMTEST_DIR}/context): Use xg++ instead of g++.
1501 2012-11-28 Richard Sandiford <rdsandiford@googlemail.com>
1503 PR rtl-optimization/55052
1504 * simplify-rtx.c (simplify_subreg): Restore SCALAR_INT_MODE_P check.
1506 2012-11-28 David Edelsohn <dje.gcc@gmail.com>
1508 * target.def (use_blocks_for_decl_p): New hook.
1509 * varasm.c (use_blocks_for_decl_p): Apply hook as final condition.
1510 * doc/tm.texi.in (USE_BLOCKS_FOR_DECL_P): New description.
1511 * doc/tm.texi: Regenerated.
1513 2012-11-28 Richard Sandiford <rdsandiford@googlemail.com>
1516 * expmed.c (simple_mem_bitfield_p): New function, extracted from
1517 store_bit_field_1 and extract_bit_field_1. Use GET_MODE_ALIGNMENT
1518 rather than bitsize when checking the alignment.
1519 (store_bit_field_1, extract_bit_field_1): Call it.
1520 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
1521 Don't limit ALIGN_. Assume that memory is mapped in chunks of at
1522 least word size, regardless of BIGGEST_ALIGNMENT.
1523 (bit_field_mode_iterator::get_mode): Use GET_MODE_ALIGNMENT rather
1524 than unit when checking the alignment.
1525 (get_best_mode): Use GET_MODE_ALIGNMENT.
1527 2012-11-28 Vladimir Makarov <vmakarov@redhat.com>
1529 PR rtl-optimization/55512
1530 * lra-assigns.c (assign_by_spills): Assigned arbitrary hard regs
1531 to failed reload pseudos instead of changing asm pattern.
1532 * lra-constraints.c (MAX_CONSTRAINT_ITERATION_NUMBER): Increase value.
1534 2012-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1537 * dse.c (rest_of_handle_dse): Remove superfluous clearing.
1539 2012-11-28 Joern Rennecke <joern.rennecke@embecosm.com>
1541 * config/epiphany/predicates.md (move_double_src_operand):
1542 Check that misaligned addresses are offsettable.
1543 (move_dest_operand): Likewise.
1544 * config/epiphany/epiphany.c (REG_OK_FOR_BASE_P): Don't force a
1545 misaligned stack address to reg+index.
1547 * config/epiphany/epiphany.opt (mfp-iarith): New option.
1548 * config/epiphany/epiphgany.md (addsi3): Check for TARGET_FP_IARITH.
1549 (subsi3, iadd, isub): Rename to ..
1550 (subsi3_i, iadd_i, isub_i): .. This.
1551 (subsi3, iadd, isub): New define_expands.
1553 * config/epiphany/epiphgany.md (attribute type): Add v2fp.
1554 (attribute fp_mode): Test for v2fp.
1555 (<float_operation:insn_opname>v2sf3_i): Change type to v2fp.
1556 * config/epiphany/epiphany-sched.md (fp_arith_nearest,
1557 fp_arith_trunc): Combine to ..
1558 (fp_arith): .. this.
1559 (v2fp_arith): New insn reservation.
1561 * config/epiphany/epiphgany.md (maddsi_combine): Fix output pattern.
1563 2012-11-28 Oleg Raikhman <oleg@adapteva.com>
1565 * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
1567 2012-11-28 Joern Rennecke <joern.rennecke@embecosm.com>
1569 * config/epiphany/epiphany.h (HARD_REGNO_RENAME_OK): Define.
1570 * config/epiphany/epiphany-protos.h (epiphany_regno_rename_ok):
1572 * config/epiphany/epiphany.c (epiphany_regno_rename_ok): New function.
1574 * config/epiphany/epiphany.md (mov<mode>, *mov<mode>_insn): Check
1575 for misaligned memory operands.
1576 * config/epiphany/predicates.md (misaligned_operand): New predicate.
1578 * config/epiphany/epiphany.opt (-may-round-for-trunc): New option.
1579 * config/epiphany/epiphany.md (*fix_truncsfsi2_i): Take it
1582 2012-11-28 Richard Biener <rguenther@suse.de>
1584 PR tree-optimization/54547
1585 * tree-vrp.c (set_and_canonicalize_value_range): Handle
1586 1-bit anti-ranges explicitely.
1587 (extract_range_from_assert): Properly canonicalize all
1590 2012-11-28 Eric Botcazou <ebotcazou@adacore.com>
1592 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not clear TREE_OVERFLOW
1593 on overflowed zeroes, except in one specific case.
1595 2012-11-28 Marc Glisse <marc.glisse@inria.fr>
1598 * fold-const.c (fold_ternary_loc) [BIT_FIELD_REF]: Handle
1599 CONSTRUCTOR with vector elements.
1600 * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle CONSTRUCTOR
1603 2012-11-28 Richard Biener <rguenther@suse.de>
1606 * gimple.h (gimplify_self_mod_expr): Declare.
1607 * gimplify.c (gimplify_self_mod_expr): Export. Take a different
1608 type for performing the arithmetic in.
1609 (gimplify_expr): Adjust.
1610 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Strip
1611 sign conversions we can re-apply after adjusting the IV.
1613 2012-11-28 Steven Bosscher <steven@gcc.gnu.org>
1615 PR rtl-optimization/55006
1616 * loop-unroll.c (struct iv_to_split): Add new 'orig_var' member.
1617 (analyze_iv_to_split_insn): Record it.
1618 (maybe_strip_eq_note_for_split_iv): New function to remove REG_EQUAL
1619 notes that refer to IVs that are being split.
1620 (apply_opt_in_copies): Use maybe_strip_eq_note_for_split_iv. Twice.
1621 Use FOR_BB_INSNS_SAFE.
1623 2012-11-27 Steven Bosscher <steven@gcc.gnu.org>
1625 * rtl.h (debug_bb_n_slim, debug_bb_slim, debug_insn_slim): Remove
1627 (debug_rtl_slim): Rename to dump_rtl_slim.
1628 (print_value_slim): Rename to dump_value_slim.
1629 * ira.c (ira_update_equiv_info_by_shuffle_insn): Update
1630 print_value_slim user.
1631 * lra.c (lra_process_new_insns): Use dump_insn_slim to dump single
1632 insns. Use dump_rtl_slim for insn chains.
1633 * lra-constraints.c (get_reload_reg): Update print_value_slim user.
1634 (process_addr_reg): Likewise.
1635 (equiv_address_substitution): Likewise.
1636 (inherit_reload_reg): Likewise. Use dump_insn_slim to dump single
1638 (check_and_process_move): Likewise.
1639 (lra_constraints): Likewise.
1640 (split_reg): Likewise.
1641 (update_ebb_live_info): Likewise.
1642 (remove_inheritance_pseudos): Likewise.
1643 * sched-vis.c: Don't include sched-int.h.
1644 Remove #ifdef INSN_SCHEDULING tests.
1645 (print_value_slim): Rename to dump_value_slim. Simplify a few
1646 cases using GET_RTX_NAME.
1647 (print_pattern): Do not handle UNSPEC and UNSPECV here, explain why.
1648 (print_insn): Reorganize code to be independent of INSN_SCHEDULING.
1649 Always print CALL_INSN patterns. Harmonize INSN_UID dumping template.
1650 Handle NOTE_INSN_CALL_ARG_LOCATION.
1651 (dump_rtl_slim): Copied from debug_rtl_slim.
1652 (debug_rtl_slim): Wrapper around dump_rtl_slim to stderr.
1653 * haifa-sched.c (schedule_insn): Update print_insn user.
1655 2012-11-27 Vladimir Makarov <vmakarov@redhat.com>
1657 PR rtl-optimization/55458
1658 * lra-assigns.c: Include rtl-error.h.
1659 (assign_by_spills): Report about asm impossible constraints.
1660 * Makefile.in (lra-assigns.c): Add $(RTL_ERROR_H).
1662 2012-11-27 Paolo Bonzini <pbonzini@redhat.com>
1664 PR rtl-optimization/55489
1665 * gcse.c (compute_transp): Precompute a canonical version
1666 of XEXP (x, 0), and pass it to canon_true_dependence.
1668 * alias.c (init_alias_analysis): Fix allocation of reg_known_value.
1670 2012-11-27 Diego Novillo <dnovillo@google.com>
1672 * vec.h: Replace 'class vec' with 'struct vec' everywhere.
1673 (ggc_internal_cleared_alloc_stat): Remove.
1674 (va_gc::reserve): Add PASS_MEM_STAT to ggc_realloc_stat call.
1675 (va_stack::reserve): Add PASS_MEM_STAT to va_heap::reserve call.
1676 (vec<T, A, vl_embed>::copy): Replace ALONE_MEM_STAT_DECL with
1677 ALONE_CXX_MEM_STAT_INFO.
1678 (vec_safe_reserve): Replace MEM_STAT_DECL with CXX_MEM_STAT_INFO.
1679 (vec_safe_reserve_exact): Likewise.
1680 (vec_alloc): Likewise.
1681 (vec_safe_grow): Likewise.
1682 (vec_safe_grow_cleared): Likewise.
1683 (vec_safe_push): Likewise.
1684 (vec_safe_insert): Likewise.
1685 (vec_safe_splice): Likewise.
1686 (vec_alloc): Likewise.
1687 (vec_check_alloc): Likewise.
1689 2012-11-27 Marc Glisse <marc.glisse@inria.fr>
1691 * tree-cfg.c (verify_gimple_comparison): Verify that vector
1692 comparison returns a vector.
1694 2012-11-27 Meador Inge <meadori@codesourcery.com>
1696 * collect2.c (main): Call find_file_set_debug.
1697 (find_a_find, add_prefix, prefix_from_env, prefix_from_string):
1699 * file-find.c (New file): ... here and ...
1700 * file-find.h (New file): ... here.
1701 * gcc-ar.c (standard_exec_prefix): New variable.
1702 (standard_libexec_prefix): Ditto.
1703 (tooldir_base_prefix) Ditto.
1704 (self_exec_prefix): Ditto.
1705 (self_libexec_prefix): Ditto.
1706 (self_tooldir_prefix): Ditto.
1707 (target_version): Ditto.
1709 (target_path): Ditto.
1710 (setup_prefixes): New function.
1711 (main): Rework how wrapped programs are found.
1712 * Makefile.in (OBJS-libcommon-target): Add file-find.o.
1713 (AR_OBJS): New variable.
1714 (gcc-ar$(exeext)): Add dependency on $(AR_OBJS).
1715 (gcc-nm$(exeext)): Ditto.
1716 (gcc-ranlib(exeext)): Ditto.
1717 (COLLECT2_OBJS): Add file-find.o.
1718 (collect2.o): Add file-find.h prerequisite.
1719 (file-find.o): New rule.
1721 2010-11-27 Dehao Chen <dehao@google.com>
1723 * ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.
1724 * emit-rtl.c (last_location): Remove unused variable.
1726 2012-11-27 Uros Bizjak <ubizjak@gmail.com>
1728 * config/i386/i386.md
1729 (*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Remove
1732 2012-11-27 Dehao Chen <dehao@google.com>
1734 * cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly.
1735 (cfg_layout_merge_blocks): Likewise.
1737 2012-11-27 Jakub Jelinek <jakub@redhat.com>
1739 * passes.c (init_optimization_passes): Add pass_asan and pass_tsan
1740 to -Og optimization passes.
1742 2012-11-27 H.J. Lu <hongjiu.lu@intel.com>
1743 Markus Trippelsdorf <markus@trippelsdorf.de>
1746 * lto-opts.c (lto_write_options): Also handle
1747 OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and
1748 OPT_SPECIAL_program_name.
1751 * lto-wrapper.c (merge_and_complain): Handle
1752 OPT_SPECIAL_unknown, OPT_SPECIAL_ignore,
1753 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
1755 2012-11-27 Jakub Jelinek <jakub@redhat.com>
1758 * function.c (instantiate_virtual_regs_in_insn): Don't delete invalid
1759 asm gotos, instead just clear their template and inputs.
1761 PR tree-optimization/55110
1762 * tree-vect-loop.c (vectorizable_reduction): Don't assert
1763 that STMT_VINFO_RELATED_STMT of orig_stmt is stmt.
1765 2012-11-27 Richard Biener <rguenther@suse.de>
1767 * gimple-fold.c (fold_stmt_1): Remove unnecessary code.
1769 2012-11-27 Bin Cheng <bin.cheng@arm.com>
1771 * config/arm/arm.c (thumb1_reorg): New function.
1772 (arm_reorg): Call thumb1_reorg.
1773 (thumb1_final_prescan_insn): Record src operand in thumb1_cc_op0.
1774 * config/arm/arm.md : Remove peephole2 patterns which rewrite move
1775 into subtract of ZERO.
1777 2012-11-27 Richard Biener <rguenther@suse.de>
1780 * gimple-fold.c (gimplify_and_update_call_from_tree): Replace
1781 stmt with a NOP instead of removing it.
1783 2012-11-27 Steven Bosscher <steven@gcc.gnu.org>
1785 * loop-invariant.c (check_invariant_table_size): Take sizeof of
1788 * reorg.c (resource_conflicts_p): Use hard_reg_set_intersect_p.
1789 (rare_destination): Remove.
1790 (mostly_true_jump): Simplify. Base result on REG_BR_PROP notes if
1791 available, otherwise assume branches are not taken.
1792 (fill_eager_delay_slots): Update mostly_true_jump call.
1793 (relax_delay_slots): Likewise.
1795 2012-11-26 Eric Botcazou <ebotcazou@adacore.com>
1797 * reorg.c (redundant_insn): Do not handle DEBUG_INSNs.
1799 2012-11-26 Vladimir Makarov <vmakarov@redhat.com>
1802 * lra-constraints.c (in_class_p): Check reg class contents too.
1804 2012-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1806 * config/aarch64/aarch64-builtins.c (aarch64_builtin_decls): New.
1807 (aarch64_init_simd_builtins): Store declaration after builtin
1809 (aarch64_builtin_decl): New.
1810 * config/aarch64/aarch64-protos.h (aarch64_builtin_decl): New.
1811 * config/aarch64/aarch64.c (TARGET_BUILTIN_DECL): Define.
1813 2012-11-26 Steven Bosscher <steven@gcc.gnu.org>
1815 * doc/invoke.texi: Remove -dv documentation. Fix up graph dump related
1816 documentation. Document the '-graph' dump option. Complete the '-slim'
1817 dump option documentation.
1819 * common.opt (Variable graph_dump_format): Remove.
1820 * flag-types.h (enum graph_dump_types): Remove.
1821 * flags.h (dump_for_graph): Remove.
1822 * opts.c (decode_d_option): Remove -dv handling.
1823 * sched-int.h (print_insn, print_pattern, print_value): Move prototypes
1825 * rtl.h: ...to here. Add note that these functions ought to be in
1827 * sched-vis.c (print_insn): Add detailed dump for insn notes.
1828 * print-rtl.c (dump_for_graph): Remove.
1829 (print_rtx): Remove dump_for_graph related code.
1830 * graph.c: Almost complete re-write to dump DOT (GraphViz) dumps
1831 instead of VCG dumps.
1832 * graph.h (print_rtl_graph_with_bb): Update prototype.
1833 * passes.c (finish_optimization_passes): Fix profile dump finishing.
1834 Unconditionally loop over graph dumps to finalize.
1835 (execute_function_dump): Split code to dump graphs to separate block.
1836 (execute_one_pass): Don't set TDF_GRAPH here, let the dump option
1837 decoders do their job.
1839 * ddg.c (vcg_print_ddg): Make it a DEBUG_FUNCTION.
1840 * toplev.c: Don't include graph.h.
1841 * tree-optimize.c: Don't include graph.h.
1843 2012-11-26 Marek Polacek <polacek@redhat.com>
1845 * cprop.c (hash_set): Remove variable. Use regno variable directly.
1847 2012-11-26 Eric Botcazou <ebotcazou@adacore.com>
1849 * tree.h (DECL_RESTRICTED_P): Delete.
1850 (DECL_READ_P): Add comment.
1851 (DECL_NONSHAREABLE): Likewise.
1852 (TYPE_NO_FORCE_BLK): Fix comment.
1853 (struct tree_decl_common): Remove decl_restricted_flag, add decl_flag_3.
1854 * tree-emutls.c (new_emutls_decl): Do not deal with DECL_RESTRICTED_P.
1855 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1856 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1858 * alias.c (nonoverlapping_component_refs_p): Fix thinko.
1860 2012-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1862 * doc/sourcebuild.texi: Document arm_v8_vfp_ok.
1864 2012-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1866 * config/arm/arm.h (TARGET_FPU_ARMV8): New macro.
1867 * config/arm/arm.md (UNSPEC_VRINTZ, UNSPEC_VRINTP, UNSPEC_VRINTM)
1868 (UNSPEC_VRINTR, UNSPEC_VRINTX, UNSPEC_VRINTA): New unspecs.
1869 (f_rints, f_rintd): New types.
1870 * config/arm/iterators.md (VRINT): New int iterator.
1871 (F_fma_type): Remove.
1872 (vfp_type): New mode attribute.
1873 (vfp_double_cond): Likewise.
1874 (vrint_pattern, vrint_variant, vrint_predicable): New int attribute.
1875 * config/arm/vfp.md (fma<SDF:mode>4): Use vfp_type iterator
1876 instead of F_fma_type.
1877 (*fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4): Likewise.
1878 (<vrint_pattern><SDF:mode>2): New pattern.
1880 2012-11-26 Eric Botcazou <ebotcazou@adacore.com>
1882 * fold-const.c (const_binop): Adjust comment.
1883 (extract_muldiv_1): Likewise.
1884 (fold_comparison): Likewise.
1885 * stor-layout.c (place_field): Fix typo.
1886 * tree.c (double_int_fits_to_tree_p): Remove obsolete comment.
1887 (force_fit_type_double): Likewise. Fix long line.
1889 2012-11-26 Greta Yorsh <Greta.Yorsh@arm.com>
1891 * config/arm/arm.h (TARGET_LDRD): Reject Thumb1 targets.
1893 2012-11-26 Matthias Klose <doko@ubuntu.com>
1895 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix unbalanced
1898 2012-11-26 Jakub Jelinek <jakub@redhat.com>
1900 PR tree-optimization/54471
1901 * tree-vrp.c (extract_range_from_binary_expr_1): For MULT_EXPR,
1902 don't canonicalize range if min2 is zero.
1904 2012-11-26 Hans-Peter Nilsson <hp@bitrange.com>
1907 * builtins.c (expand_builtin_setjmp_receiver): Update comment
1908 regarding purpose of blockage.
1909 * emit-rtl.c [!HAVE_blockage] (gen_blockage): Similarly for
1911 * rtlanal.c (volatile_insn_p): Ditto.
1912 * doc/md.texi (blockage): Update similarly. Change wording to
1913 require one of two forms, rather than implying a wider choice.
1914 * cse.c (cse_insn): Where checking for blocking insns, use
1915 volatile_insn_p instead of manual check for volatile ASM.
1916 * dse.c (scan_insn): Ditto.
1917 * cselib.c (cselib_process_insn): Ditto.
1919 2012-11-25 Uros Bizjak <ubizjak@gmail.com>
1921 * config/i386/sse.md (<sse>_loadu<ssemodesuffix><avxsizesuffix>):
1922 Do not depend on TARGET_SSE_TYPELESS_STORES.
1923 (<sse2>_loaddqu<avxsizesuffix>): Ditto.
1924 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Fix handling of
1925 TARGET_SSE_TYPELESS_STORES.
1926 (<sse2>_storedqu<avxsizesuffix>): Ditto.
1928 2012-11-25 Steven Bosscher <steven@gcc.gnu.org>
1930 * doc/tm.texi.in (DELAY_SLOTS_FOR_EPILOGUE): Remove documentation.
1931 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
1932 * doc/tm.texi: Regenerate.
1933 * reorg.c (fill_simple_delay_slots): Remove code conditional on
1934 DELAY_SLOTS_FOR_EPILOGUE being defined.
1935 (make_return_insns, dbr_schedule): Likewise.
1936 * system.h (DELAY_SLOTS_FOR_EPILOGUE): Poison.
1937 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
1939 2012-11-24 Jack Howarth <howarth@bromo.med.uc.edu>
1941 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fsanitize=address.
1943 2012-11-24 Matthias Klose <doko@ubuntu.com>
1945 * configure.ac (multiarch): Use $enableval instead of $withval.
1946 * configure: Regenerate.
1947 * config/i386/t-kfreebsd (MULTILIB_OSDIRNAMES): Filter out x32.
1948 * gcc/config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use
1949 x86_64-linux-gnux32 as multiarch name for x32.
1951 2012-11-23 Tobias Burnus <burnus@net-b.de>
1953 * doc/invoke.texi (-fsanitize=address): Remove obsolete remark.
1955 2012-11-23 Jakub Jelinek <jakub@redhat.com>
1958 * Makefile.in (gimple-low.o): Depend on langhooks.h.
1959 * gimple-low.c: Include langhooks.c.
1960 (block_may_fallthru): Handle TARGET_EXPR and ERROR_MARK,
1961 by default call lang_hooks.block_may_fallthru.
1962 * langhooks.h (struct lang_hooks): Add block_may_fallthru langhook.
1963 * langhooks-def.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define.
1964 (LANG_HOOKS_INITIALIZER): Use it.
1966 2012-11-23 Jan Hubicka <jh@suse.cz>
1968 * i386-c.c (ix86_target_macros_internal): Update handling of core
1970 * i386.c (DUMMY_STRINGOP_ALGS): Update
1972 (core_cost): Copy from generic64_cost; fix stringop descriptors.
1973 (m_CORE2_32, m_CORE2_64, m_COREI7_32, m_COREI7_64, m_CORE2I7_32,
1974 m_CORE2I7_64): Remove.
1975 (m_CORE2, m_COREI7, m_CORE2I7): Update.
1976 (initial_ix86_tune_features): Update.
1977 (processor_target): Update.
1978 (ix86_option_override_internal): Update.
1979 (ix86_option_override_internal): Remove PROCESSOR_CORE2_64,
1980 PROCESSOR_COREI7_64 special cases.
1981 (decide_alg): Add noalign parameter; set it.
1982 (ix86_expand_movmem, ix86_expand_setmem): Update noalign handling.
1983 (ix86_issue_rate): Update.
1984 (ia32_multipass_dfa_lookahead): Update.
1985 (ix86_sched_init_global): Update.
1986 (get_builtin_code_for_version): Update.
1987 * i386.h (stringop_strategy): Add noalign flag.
1988 (TARGET_CORE2_32, TARGET_CORE2_64, TARGET_COREI7_32, TARGET_COREI7_64):
1990 (TARGET_CORE2, TARGET_COREI7): New.
1991 (enum processor_type): Remove PROCESSOR_CORE2_32, PROCESSOR_CORE2_64,
1992 PROCESSOR_COREI7_32, PROCESSOR_COREI7_64; add PROCESSOR_CORE2,
1995 2012-11-23 Eric Botcazou <ebotcazou@adacore.com>
1997 PR rtl-optimization/55388
1998 * alias.c (nonoverlapping_component_refs_p): Handle bitfields.
1999 * emit-rtl.c (adjust_address_1): Deal with VOIDmode early.
2000 * expmed.c (store_bit_field): Turn the call to adjust_address
2001 into a call to adjust_bitfield_address_size.
2003 2012-11-23 Vladimir Makarov <vmakarov@redhat.com>
2005 * lra.c (lra): Move init_reg_info and expand_reg_info calls before
2006 init_insn_recog_data.
2008 2012-11-23 Jakub Jelinek <jakub@redhat.com>
2010 * tsan.c: Fix up comment formatting.
2011 (instrument_gimple): Ignore gimple_clobber_p stmts.
2012 (pass_tsan, pass_tsan_O0): Remove TODO_update_address_taken
2013 from todo_flags_finish.
2016 * asan.c (gate_asan): Don't instrument functions with
2017 no_address_safety_analysis attribute.
2018 (gate_asan_O0): Use !optimize && gate_asan ().
2019 * doc/extend.texi (no_address_safety_analysis): Document new
2022 2012-11-22 Teresa Johnson <tejohnson@google.com>
2023 Jan Hubicka <jh@suse.cz>
2025 * predict.c (maybe_hot_count_p): Use threshold from profiled working
2026 set instead of hard limit.
2027 (cgraph_maybe_hot_edge_p): Invoke maybe_hot_count_p() instead of
2028 directly checking limit.
2029 * params.def (HOT_BB_COUNT_FRACTION): Remove.
2030 (HOT_BB_COUNT_WS_PERMILLE): New parameter.
2031 * doc/invoke.texi (hot-bb-count-fraction): Remove.
2032 (hot-bb-count-ws-permille): Document.
2034 2012-11-22 Vladimir Makarov <vmakarov@redhat.com>
2037 * lra.c: Move #include "hard-reg-set.h" before #include "rtl.h".
2038 (new_insn_reg): Update biggest_mode.
2039 (collect_non_operand_hard_regs): Check eliminable regs too.
2040 (initialize_lra_reg_info_element): Initialize biggest_mode.
2041 (add_regs_to_insn_regno_info): Ignore non-allocatable
2042 non-eliminable hard regs.
2043 (lra.c): Move setting lra_no_alloc_regs before
2044 init_insn_recog_data.
2045 * lra-constraints.c (simplify_operand_subreg): Add a comment.
2046 (lra_constraints): Ignore equivalent memory of
2047 regs occuring in paradoxical subregs.
2048 * lra-lives.c (lra_create_live_ranges): Add a comment.
2050 2012-11-22 Dmitry Vyukov <dvyukov@google.com>
2051 Wei Mi <wmi@google.com>
2053 * builtins.def (DEF_SANITIZER_BUILTIN): Define tsan builtins.
2054 * sanitizer.def: Ditto.
2055 * Makefile.in (tsan.o): Add tsan.o target.
2056 (BUILTINS_DEF): Add sanitizer.def.
2057 * passes.c (init_optimization_passes): Add tsan passes.
2058 * tree-pass.h (register_pass_info): Ditto.
2059 * toplev.c (compile_file): Ditto.
2060 * doc/invoke.texi: Document tsan related options.
2061 * gcc.c (LINK_COMMAND_SPEC): Add LIBTSAN_SPEC in link command if
2063 * tsan.c: New file about tsan.
2065 * common.opt: Add -fsanitize=thread.
2067 2012-11-22 Uros Bizjak <ubizjak@gmail.com>
2069 * doc/md.texi (RTL Templates Transformation): Use @pxref for
2070 cross-reference in parentheses.
2072 2012-11-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
2074 * doc/md.texi (AArch64 family): Remove Utf.
2076 2012-11-22 Uros Bizjak <ubizjak@gmail.com>
2078 * config/i386/i386.md (*jcc<mode>_0_i387): Macroize insn
2079 from *fp_jcc_3_387 using X87MODEF mode iterator.
2080 (*jcc<mode>_0_r_i387): New.
2081 (*jccxf_i387): Ditto.
2082 (*jccxf_r_i387): Ditto.
2083 (*jcc<mode>_i387): Macroize insn from *fp_jcc_1_387 using
2084 MODEF mode iterator.
2085 (*jcc<mode>_r_i387): Macroize insn from *fp_jcc_1r_387 using
2086 MODEF mode iterator.
2087 (*jccu<mode>_i387): Macroize insn from *fp_jcc_2_387 using
2088 X87MODEF mode iterator.
2089 (*jccu<mode>_r_i387): Macroize insn from *fp_jcc_2r_387 using
2090 X87MODEF mode iterator.
2091 (*jcc{,u}<mode>_i387 splitters): Macroize splitters using
2092 X87MODEF mode iterator.
2093 (*jcc<X87MODEF:mode>_<SWI24:mode>_i387): Macroize insn
2094 from *fp_jcc_4_<mode>_387 using X87MODEF mode iterator.
2095 (*jcc<X87MODEF:mode>_<SWI24:mode>_r_i387): New.
2096 (*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Macroize
2097 splitters using X87MODEF and SWI24 mode iterators.
2099 2012-11-22 Uros Bizjak <ubizjak@gmail.com>
2101 * config/i386/i386.md (FPCMP): New mode iterator.
2102 (unord): New mode attribute.
2103 (*cmp<mode>_0_i387): Macroize insn from *cmpfp_0
2104 using X87MODEF mode iterator.
2105 (*cmp<mode>_0_cc_i387): Macroize insn from *cmpfp_0_cc using
2106 X87MODEF mode iterator.
2107 (*cmpxf_i387): Rename from *cmpfp_xf.
2108 (*cmpxf_cc_i387): Rename from *cmpfp_xf_cc.
2109 (*cmp<mode>_i387): Rename from *cmpfp_<mode>.
2110 (*cmp<mode>_cc_i387): Rename from *cmpfp_<mode>_cc.
2111 (*cmpu<mode>_i387): Macroize insn from *cmpfp_u using X87MODEF
2113 (*cmpu<mode>_cc_i387): Macroize insn from *cmpfp_u_cc using X87MODEF
2115 (*cmp<X87MODEF:mode>_<SWI24:mode>_i387): Macroize_insn from
2116 *cmpfp_<mode> using X87MODEF mode iterator.
2117 (*cmp<X87MODEF:mode>_<SWI24:mode>_cc_i387): Macroize_insn from
2118 *cmpfp_<mode>_cc using X87MODEF mode iterator.
2119 (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Macroize insn from
2120 *cmpfp_i{,u}_mixed using FPCMP and MODEF mode iterators.
2121 (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Macroize insn from
2122 *cmpfp_i{,u}_sse using FPCMP and MODEF mode iterators.
2123 (*cmpi<CCFPCMP:unord><X87MODEF:mode>_i387): Macroize insn from
2124 *cmpfp_i{,u}_387 using FPCMP and X87MODEF mode iterators.
2126 2012-11-22 Ian Bolton <ian.bolton@arm.com>
2128 * config/aarch64/aarch64.md (bswaphi2): New pattern.
2130 2012-11-22 H.J. Lu <hongjiu.lu@intel.com>
2133 * gcc.c (LINK_COMMAND_SPEC): Issue an error for -static with
2136 2012-11-22 H.J. Lu <hongjiu.lu@intel.com>
2138 * gcc.c (ADD_STATIC_LIBASAN_LIBS): New macro. Defined
2139 with STATIC_LIBASAN_LIBS.
2140 (LIBASAN_SPEC): Add STATIC_LIBASAN_LIBS.
2141 * config/gnu-user.h (STATIC_LIBASAN_LIBS): New macro.
2143 2012-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2145 * config/arm/arm.md (*arm_abssi2): Define predicable attribute.
2146 (*arm_neg_abssi2): Likewise.
2147 * config/arm/thumb2.md (*thumb2_abssi2): Likewise.
2148 (*thumb2_neg_abssi2): Likewise.
2150 2012-11-22 Jakub Jelinek <jakub@redhat.com>
2152 * ree.c (struct ext_modified): Add ATTRIBUTE_PACKED.
2154 2012-11-22 Georg-Johann Lay <avr@gjlay.de>
2156 Adjust decimal point of signed accum mode to GCC default.
2159 * config/avr/avr-modes.def (HA, SA, DA): Remove mode adjustments.
2160 (TA): Move decimal point one bit to the right.
2161 * config/avr/avr.c (avr_out_fract): Rewrite.
2163 2012-11-21 Matthias Klose <doko@ubuntu.com>
2165 * config/alpha/t-linux: New file; define MULTIARCH_DIRNAME.
2166 * config.gcc <alpha*-*-linux*> (tmake_file): Include alpha/t-linux.
2168 2012-11-21 Matthias Klose <doko@ubuntu.com>
2170 * config/m68k/t-linux: Define MULTIARCH_DIRNAME.
2172 2012-11-21 Matthias Klose <doko@ubuntu.com>
2174 * config/ia64/t-linux: New file; define MULTIARCH_DIRNAME.
2175 * config.gcc <ia64*-*-linux*> (tmake_file): Include ia64/t-linux.
2177 2012-11-21 Vladimir Makarov <vmakarov@redhat.com>
2179 PR rtl-optimization/55414
2180 * lra-constraints.c (Index): New function.
2181 (lra_constraints): Check dead equiv init insns.
2183 2012-11-21 Richard Henderson <rth@redhat.com>
2185 * config/alpha/alpha.md (extvmisaligndi): Rename from extv; update
2186 mode of operand 1; remove ancient extract_bit_field workaround.
2187 (insvmisaligndi): Rename from insv and update similarly.
2188 (extzvmisaligndi): Rename from extzv and update similarly; split out...
2189 (extzvdi): New expander.
2191 2012-11-21 H.J. Lu <hongjiu.lu@intel.com>
2193 * doc/cpp.texi: Document __SANITIZE_ADDRESS__.
2195 2012-11-21 H.J. Lu <hongjiu.lu@intel.com>
2198 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2199 Define __SANITIZE_ADDRESS__ for flag_asan.
2201 2012-11-21 Wei Mi <wmi@google.com>
2203 * common.opt: Change faddress-sanitizer to fsanitize=address.
2204 * toplev.c (process_options): Likewise.
2205 * gcc.c (LINK_COMMAND_SPEC): Likewise.
2206 * testsuite/lib/asan-dg.exp
2207 (check_effective_target_faddress_sanitizer): Likewise.
2208 (asan_init): Likewise.
2209 * doc/invoke.texi (-fsanitize=address): Document.
2211 2012-11-21 Martin Jambor <mjambor@suse.cz>
2213 * ipa-prop.h (struct ipa_node_params): Rename clone_for_all_contexts to
2214 do_clone_for_all_contexts. Update all uses. New flag
2215 is_all_contexts_clone.
2216 * ipa-cp.c (cgraph_edge_brings_value_p): Also consider the case when cs
2217 leads to the clone for all contexts.
2218 (perhaps_add_new_callers): Likewise.
2219 (decide_whether_version_node): Remove bogus !plats->aggs test. Set
2220 is_all_contexts_clone when cloning for all contexts.
2222 2012-11-21 Martin Jambor <mjambor@suse.cz>
2224 PR tree-optimization/55260
2225 * ipa-cp.c (intersect_aggregates_with_edge): New function.
2226 (find_aggregate_values_for_callers_subset): Part moved to the function
2228 (cgraph_edge_brings_all_agg_vals_for_node): Reimplemented using
2229 intersect_aggregates_with_edge.
2231 2012-11-21 Matthias Klose <doko@ubuntu.com>
2233 * config/s390/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
2235 2012-11-21 Teresa Johnson <tejohnson@google.com>
2237 PR gcov-profile/55417
2238 * profile.c (compute_working_sets): Check index first
2239 to avoid out-of-bounds array access.
2241 2012-11-21 Matthias Klose <doko@ubuntu.com>
2243 * config/aarch64/t-aarch64-linux: Define MULTIARCH_DIRNAME for
2246 2012-11-21 Uros Bizjak <ubizjak@gmail.com>
2248 * config/i386/i386.md
2249 (*float<SWI48x:mode><MODEF:mode>2_mixed_with_temp): Use SWI48 mode
2250 iterator instead of SWI48x. Update insn constraint.
2251 (*float<SWI48x:mode><MODEF:mode>2_mixed_interunit): Ditto.
2252 (*float<SWI48x:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
2253 (*float<SWI48x:mode><MODEF:mode>2_sse_with_temp): Ditto.
2254 (*float<SWI48x:mode><MODEF:mode>2_sse_interunit): Ditto.
2255 (*float<SWI48x:mode><MODEF:mode>2_sse_nointerunit): Ditto.
2256 (*float<SWI48x:mode><MODEF:mode>2 splitters): Ditto.
2257 (lrint<MODEF:mode><SWI48x:mode>2): Ditto.
2259 2012-11-21 Marcus Shawcroft <marcus.shawcroft@arm.com>
2261 * Makefile.in (gengtype-lex.o): Add dependency on $(BCONFIG_H).
2263 2012-11-21 Bin Cheng <bin.cheng@arm.com>
2265 * config/arm/arm-cores.def (cortex-m1, cortex-m0)
2266 (cortex-m0plus): Use v6m.
2267 * config/arm/arm-protos.h (tune_params): Add
2268 logical_op_non_short_circuit.
2269 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2270 (arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune)
2271 (arm_cortex_tune, arm_cortex_a15_tune, arm_cortex_a5_tune)
2272 (arm_cortex_a9_tune, arm_fa726te_tune): Set
2273 logical_op_non_short_circuit field.
2274 (arm_v6m_tune): New tune_params struct.
2275 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
2277 2012-11-20 Matthias Klose <doko@ubuntu.com>
2279 * configure.ac: Substitute `with_cpu'.
2280 * configure: Regenerate.
2281 * Makefile.in: Define `with_cpu'.
2282 * config/rs6000/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
2283 * config/rs6000/t-linux: New file; define MULTIARCH_DIRNAME.
2284 * config/rs6000/t-fprules (SOFT_FLOAT_CPUS): New macro. Add e300c2
2286 (MULTILIB_MATCHES_FLOAT): Define in terms of SOFT_FLOAT_CPUS.
2287 * config/rs6000/t-spe: Define MULTIARCH_DIRNAME.
2288 * config.gcc <powerpc-*-linux* | powerpc64-*-linux*> (tmake_file):
2289 Include rs6000/t-linux for 32bit non-biarch configurations.
2291 2012-11-20 Matthias Klose <doko@ubuntu.com>
2293 * doc/install.texi: Move multiarch paragraph out of multilib
2296 2012-11-20 Matthias Klose <doko@ubuntu.com>
2298 * config/arm/t-linux-eabi: Define MULTIARCH_DIRNAME for linux target.
2300 2012-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2302 * stor-layout.c (bit_field_mode_iterator::next_mode): Fix signedness.
2304 2012-11-20 Vladimir Makarov <vmakarov@redhat.com>
2306 PR rtl-optimization/55396
2307 * lra-constraints.c (get_reload_reg): Change class if it is
2308 different from reg class.
2310 2012-11-20 Jakub Jelinek <jakub@redhat.com>
2312 * vec.h (class vec_prefix): Change into struct.
2313 Rename field alloc_PRIVATE_ back to alloc_.
2314 Rename field num_PRIVATE_ to num_.
2316 (class vec<T, A, vl_embed>): Rename field pfx_PRIVATE_ to vecpfx_.
2317 Rename field data_PRIVATE_ to vecdata_.
2319 (class vec<T, A, vl_ptr>): Make every field public.
2320 Rename field vec_PRIVATE_ back to vec_.
2323 2012-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2327 * expmed.c (store_bit_field_1): Use adjust_bitfield_address_size
2328 rather than adjust_bitfield_address to change the mode of a reference.
2329 (extract_bit_field_1): Likewise.
2331 2012-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2333 * config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment
2334 explaining the register ordering preferences.
2336 2012-11-20 Aldy Hernandez <aldyh@redhat.com>
2338 PR tree-optimization/55350
2339 * gimple-ssa-strength-reduction.c (replace_dependent): Handle
2340 POINTER_PLUS_EXPR correctly.
2342 2012-11-20 Uros Bizjak <ubizjak@gmail.com>
2344 * config/i386/i386.md (fix_trunc<MODEF:mode><SWI48:mode>_sse): Macroize
2345 insn from fix_trunc<mode>{si,di}_sse using SWI48 mode iterator.
2346 (peephole2 to avoid vector decoded forms): Macroize peephole2
2347 using MODEF mode iterator. Use SWI48 mode iterator instead of SWI48x.
2349 2012-11-20 Uros Bizjak <ubizjak@gmail.com>
2352 * config/i386/i386.md
2353 (peephole2 to shorten x87->SSE reload sequences): Remove peephole2.
2354 * config/i386/i386.h (enum ix86_tune_indices)
2355 <IX86_TUNE_SHORTEN_X87_SSE>: Remove.
2356 (TARGET_SHORTEN_X87_SSE): Remove.
2357 * config/i386/i386.c (initial_ix86_tune_features): Update.
2359 2012-11-20 Vladimir Makarov <vmakarov@redhat.com>
2362 * lra-constraints.c (process_alt_operands): Discourage reloads
2363 through secondary memory.
2365 2012-11-20 David Edelsohn <dje.gcc@gmail.com>
2367 * config/rs6000/rs6000.md (largetoc_low): Revert.
2368 (largetoc_low_aix<mode>): New.
2370 2012-11-20 Diego Novillo <dnovillo@google.com>
2371 Jakub Jelinek <jakub@redhat.com>
2373 * vec.h (struct vnull): Declare.
2375 * vec.c (vNULL): Define.
2376 * bb-reorder.c: Replace all vec<T, A>() initializers with vNULL.
2377 * cfgexpand.c: Likewise.
2378 * cfgloop.c: Likewise.
2379 * cfgloopanal.c: Likewise.
2380 * cfgloopmanip.c: Likewise.
2381 * cgraph.c: Likewise.
2382 * config/c6x/c6x.c: Likewise.
2383 * config/i386/i386.c: Likewise.
2384 * df-core.c: Likewise.
2385 * dominance.c: Likewise.
2386 * dwarf2out.c: Likewise.
2387 * except.c: Likewise.
2388 * function.c: Likewise.
2390 * genautomata.c: Likewise.
2391 * graphds.c: Likewise.
2392 * graphite-scop-detection.c: Likewise.
2393 * graphite.c: Likewise.
2394 * haifa-sched.c: Likewise.
2395 * ifcvt.c: Likewise.
2396 * ipa-cp.c: Likewise.
2397 * ipa-inline-analysis.c: Likewise.
2398 * ipa-inline-transform.c: Likewise.
2399 * ipa-inline.c: Likewise.
2400 * ipa-prop.c: Likewise.
2401 * ipa-split.c: Likewise.
2402 * ipa-utils.c: Likewise.
2403 * ira-build.c: Likewise.
2404 * lto-cgraph.c: Likewise.
2405 * lto-streamer-in.c: Likewise.
2406 * lto-symtab.c: Likewise.
2407 * opts-global.c: Likewise.
2408 * passes.c: Likewise.
2410 * sched-deps.c: Likewise.
2411 * sel-sched-ir.c: Likewise.
2412 * sel-sched-ir.h: Likewise.
2413 * sel-sched.c: Likewise.
2414 * stor-layout.c: Likewise.
2415 * trans-mem.c: Likewise.
2416 * tree-call-cdce.c: Likewise.
2417 * tree-cfg.c: Likewise.
2418 * tree-data-ref.c: Likewise.
2419 * tree-diagnostic.c: Likewise.
2420 * tree-eh.c: Likewise.
2421 * tree-loop-distribution.c: Likewise.
2422 * tree-predcom.c: Likewise.
2423 * tree-ssa-loop-im.c: Likewise.
2424 * tree-ssa-loop-ivcanon.c: Likewise.
2425 * tree-ssa-loop-manip.c: Likewise.
2426 * tree-ssa-loop-niter.c: Likewise.
2427 * tree-ssa-loop-prefetch.c: Likewise.
2428 * tree-ssa-math-opts.c: Likewise.
2429 * tree-ssa-phiopt.c: Likewise.
2430 * tree-ssa-pre.c: Likewise.
2431 * tree-ssa-propagate.c: Likewise.
2432 * tree-ssa-reassoc.c: Likewise.
2433 * tree-ssa-sccvn.c: Likewise.
2434 * tree-ssa-structalias.c: Likewise.
2435 * tree-ssa-threadedge.c: Likewise.
2436 * tree-ssa-uninit.c: Likewise.
2437 * tree-stdarg.c: Likewise.
2438 * tree-switch-conversion.c: Likewise.
2439 * tree-vect-data-refs.c: Likewise.
2440 * tree-vect-loop.c: Likewise.
2441 * tree-vect-slp.c: Likewise.
2442 * tree-vect-stmts.c: Likewise.
2443 * value-prof.c: Likewise.
2444 * varasm.c: Likewise.
2446 2012-11-20 Diego Novillo <dnovillo@google.com>
2448 * Makefile.in (tlink.o): Add dependency on VEC_H.
2450 2012-11-20 Diego Novillo <dnovillo@google.com>
2453 * vec.h (class vec_prefix): Make every field public.
2454 Rename field alloc_ to alloc_PRIVATE_.
2455 Rename field num_ to num_PRIVATE_.
2457 (class vec<T, A, vl_embed>): Make every field public.
2458 Rename field pfx_ to pfx_PRIVATE_.
2459 Rename field data_ to data_PRIVATE_.
2461 (class vec<T, A, vl_ptr>): Make every field public.
2462 Rename field vec_ to vec_PRIVATE_.
2465 2012-11-20 Kai Tietz <ktietz@redhat.com>
2468 * i386.c (ix86_mangle_decl_assembler_name): Use
2469 SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME if defined.
2470 * cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Rename
2471 to SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME.
2473 2012-11-20 Uros Bizjak <ubizjak@gmail.com>
2475 * config/i386/i386.c (ix86_expand_call): Emit CLOBBERs in VOIDmode.
2477 2012-11-20 Nick Clifton <nickc@redhat.com>
2479 * config/v850/v850.c (F): New function. Mark the given insn as
2480 being frame related.
2481 (v850_all_frame_related): New function. Mark the given push insn
2482 as being frame related.
2483 (v850_pass_by_reference): When using the RH850 ABI do not pass
2484 arguments by reference.
2485 (v850_strict_argument_naming): Delete function.
2486 (v850_function_arg): Use word alignment with the RH850 ABI.
2487 (v850_arg_partial_bytes): Likewise.
2488 (v850_function_arg_advance): Likewise.
2489 (v850_print_operand): Handle CONST_INT and CONST_DOUBLE.
2490 (compute_register_save_size): Use df_regs_ever_live_p.
2491 (increment_stack): Mark prologue adjustments as being frame related.
2492 (expand_prologue): Handle pretend args. Mark insns generated as
2493 being frame related.
2494 (expand_epilogue): Likewise.
2495 (v850_return_in_memory): When using the RH850 ABI return
2496 aggregates in memory.
2497 (v850_setup_incoming_varargs): Delete function.
2498 (v850_option_override): New function.
2499 (TARGET_DEBUG_UNWIND_INFO): Delete definition.
2500 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2501 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
2502 (TARGET_OPTION_OVERRIDE): Define.
2503 * config/v850/v850.h (ASM_SPEC): Pass 8byte-align and gcc-abi
2504 options on to assembler.
2505 (LINK_SPEC): Likewise.
2506 (TARGET_CPU_CPP_BUILTINS): Define __V850_8BYTE_ALIGN__ and
2508 (STACK_BOUNDARY): Set to BIGGEST_ALIGNMENT.
2509 (FUNCTION_BOUNDARY): With the RH850 ABI always 32-bit alignment.
2510 (BIGGEST_ALIGNMENT): With -8byte-align set to 64-bits.
2511 (BIGGEST_FIELD_ALIGNMENT): Likewise.
2512 (enum reg_class): Swap EVEN_REGS and GENERAL_REGS.
2513 (REG_CLASS_NAMES): Likewise.
2514 (REG_CLASS_CONTENTS): Likewise.
2515 (struct cum_arg): Delete anonymous_args field.
2516 (INIT_CUMULATIVE_ARGS): Update.
2517 (PREFERRED_DEBUG): Set to DWARF2_DEBUG.
2518 (DWARF2_FRAME_INFO): Define.
2519 (DWARF2_UNWIND_INFO): Define.
2520 (INCOMING_RETURN_ADDR_RTX): Define.
2521 (DWARF_FRAME_RETURN_COLUMN): Define.
2522 (TARGET_USE_FPU): Define.
2523 * config/v850/v850.md: Replace TARGET_V850E2V3 in floating point
2524 insns with TARGET_USE_FPU.
2525 (fixuns_truncsfsi2): New pattern.
2526 (fixuns_truncdfsi2): New pattern.
2527 (fix_truncsfdi2): New pattern.
2528 (fixuns_truncsfdi2): New pattern.
2529 (fix_truncdfdi2): New pattern.
2530 (fixuns_truncdfdi2): New pattern.
2531 (unsfloatsisf2): New pattern.
2532 (unsfloatsidf2): New pattern.
2533 (floatdisf2): New pattern.
2534 (unsfloatdisf2): New pattern.
2535 (floatdidf2): New pattern.
2536 (unsfloatdidf2): New pattern.
2537 (fnmasf4): Fix RTl description.
2538 (fnmssf4): Likewise.
2539 * config/v850/v850.opt (mrelax): New option.
2540 (mlong-jumps): Likewise.
2541 (msoft-float): Likewise.
2542 (mhard-float): Likewise.
2543 (mrh850-abi): Likewise.
2544 (mgcc-abi): Likewise.
2545 (m8byte-align): Likewise.
2546 * config/v850/t-v850 (MULTILIB_OPTIONS): Update multilib options.
2547 (MULTILIB_DIRNAMES): Likewise.
2549 2012-11-20 Nick Clifton <nickc@redhat.com>
2551 * config/rx/rx.c (rx_function_arg_boundary): When using the RX ABI
2552 align stack arguments to their natural alignment.
2553 (rx_narrow_volatile_bitfield): New function. Allows narrow
2555 (rx_ok_to_inline): New function. Do not inline functions with
2556 local variables into a naked caller.
2557 (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2558 (TARGET_CAN_INLINE_P): Define.
2559 * config/rx/rx.c (TARGET_CPU_CPP_BUILTINS): Define __RX_ABI__ or
2561 (ASM_SPEC): Pass -mgcc-abi on to the assembler.
2562 (STRICT_ALIGNMENT): Set to false.
2563 (CTORS_SECTION_ASM_OP): Add executable attribute.
2564 (DTORS_SECTION_ASM_OP): Add executable attribute.
2565 (INIT_ARRAY_SECTION_ASM_OP): Add executable attribute.
2566 (FINI_ARRAY_SECTION_ASM_OP): Add executable attribute.
2567 * config/rx/rx.md (subdi3): Don't allow MEMs as the third operand,
2568 as it causes too much reload pressure.
2569 * config/rx/rx.opt (mgcc-abi): New option.
2570 (mrx-abi): New option.
2571 * config/rx/t-rx (MULTILIB_OPTIONS): Show how to add an ABI multilib.
2572 (MULTILIB_DIRNAMES): Likewise.
2574 2012-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2575 Tejas Belagod <tejas.belagod@arm.com>
2577 * config/aarch64/aarch64-builtins.c
2578 (aarch64_simd_builtin_type_bits): Rename to...
2579 (aarch64_simd_builtin_type_mode): ...this, make sequential.
2580 (aarch64_simd_builtin_datum): Refactor members.
2581 (VAR1, VAR2, ..., VAR12): Update accordingly.
2582 (aarch64_simd_builtin_data): Include from aarch64-simd-builtins.def.
2583 (aarch64_builtins): Update accordingly.
2584 (init_aarch64_simd_builtins): Refactor, rename to...
2585 (aarch64_init_simd_builtins): ...this.
2586 (aarch64_simd_builtin_compare): Remove.
2587 (locate_simd_builtin_icode): Likewise.
2588 * config/aarch64/aarch64-protos.h (aarch64_init_builtins): New.
2589 (aarch64_expand_builtin): New.
2590 * config/aarch64/aarch64-simd-builtins.def: New file.
2591 * config/aarch64/aarch64.c (aarch64_init_builtins):
2592 Move to aarch64-builtins.c.
2593 (aarch64_expand_builtin): Likewise.
2594 * config/aarch64/aarch64.h
2595 (aarch64_builtins): Move to aarch64-builtins.c.
2597 2012-11-20 Martin Jambor <mjambor@suse.cz>
2599 PR tree-optimization/55260
2600 * ipa-cp.c (find_aggregate_values_for_callers_subset): Rename info to
2601 dest_info, use caller_info instead of info when determining whether
2604 2012-11-20 Andrey Turetskiy <andrey.turetskiy@gmail.com>
2606 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3): Merge
2607 *avx2_pmulhrswv16hi3 and *ssse3_pmulhrswv8hi3 into one pattern.
2609 2012-11-20 Sofiane Naci <sofiane.naci@arm.com>
2611 * config/aarch64/aarch64.md
2612 (define_attr "sync_*"): Remove.
2613 (define_attr "length"): Update.
2615 * config/aarch64/aarch64-protos.h
2616 (aarch64_expand_compare_and_swap): Add function prototype.
2617 (aarch64_split_compare_and_swap): Likewise.
2618 (aarch64_split_atomic_op): Likewise.
2619 (aarch64_expand_sync): Remove function prototype.
2620 (aarch64_output_sync_insn): Likewise.
2621 (aarch64_output_sync_lock_release): Likewise.
2622 (aarch64_sync_loop_insns): Likewise.
2623 (struct aarch64_sync_generator): Remove.
2624 (enum aarch64_sync_generator_tag): Likewise.
2625 * config/aarch64/aarch64.c
2626 (aarch64_legitimize_sync_memory): Remove function.
2627 (aarch64_emit): Likewise.
2628 (aarch64_insn_count): Likewise.
2629 (aarch64_output_asm_insn): Likewise.
2630 (aarch64_load_store_suffix): Likewise.
2631 (aarch64_output_sync_load): Likewise.
2632 (aarch64_output_sync_store): Likewise.
2633 (aarch64_output_op2): Likewise.
2634 (aarch64_output_op3): Likewise.
2635 (aarch64_output_sync_loop): Likewise.
2636 (aarch64_get_sync_operand): Likewise.
2637 (aarch64_process_output_sync_insn): Likewise.
2638 (aarch64_output_sync_insn): Likewise.
2639 (aarch64_output_sync_lock_release): Likewise.
2640 (aarch64_sync_loop_insns): Likewise.
2641 (aarch64_call_generator): Likewise.
2642 (aarch64_expand_sync): Likewise.
2643 (* emit_f): Remove variable.
2644 (aarch64_insn_count): Likewise.
2645 (FETCH_SYNC_OPERAND): Likewise.
2646 (aarch64_emit_load_exclusive): New function.
2647 (aarch64_emit_store_exclusive): Likewise.
2648 (aarch64_emit_unlikely_jump): Likewise.
2649 (aarch64_expand_compare_and_swap): Likewise.
2650 (aarch64_split_compare_and_swap): Likewise.
2651 (aarch64_split_atomic_op): Likewise.
2652 * config/aarch64/iterators.md
2653 (atomic_sfx): New mode attribute.
2654 (atomic_optab): New code attribute.
2655 (atomic_op_operand): Likewise.
2656 (atomic_op_str): Likewise.
2657 (syncop): Rename to atomic_op.
2658 * config/aarch64/sync.md: Delete.
2659 * config/aarch64/atomics.md: New file.
2661 2012-11-20 Jakub Jelinek <jakub@redhat.com>
2664 * builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note
2665 on the trap insn for !ACCUMULATE_OUTGOING_ARGS.
2666 * cfgcleanup.c (outgoing_edges_match): Don't look at debug insns
2667 on the first old_insns_match_p call. For !ACCUMULATE_OUTGOING_ARGS
2668 fail if the last real insn doesn't have REG_ARGS_SIZE note.
2670 PR rtl-optimization/54921
2671 * cselib.h (fp_setter_insn): New prototype.
2672 * cselib.c (fp_setter_insn): New function.
2673 (cselib_process_insn): If frame_pointer_needed,
2674 call cselib_invalidate_rtx (stack_pointer_rtx) after
2675 processing a frame pointer setter.
2676 * var-tracking.c (fp_setter): Removed.
2677 (vt_initialize): Use fp_setter_insn instead of fp_setter.
2679 2012-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
2681 * config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move
2682 constraints so that the traditional floating point loads, stores,
2683 and moves are done first, then the VSX loads, stores, and moves,
2684 and finally the GPR loads, stores, and moves so that reload
2685 chooses FPRs over GPRs, and uses the traditional load/store
2686 instructions which provide an offset.
2687 (movdf_hardfloat64): Likewise.
2689 2012-11-19 Richard Sandiford <rdsandiford@googlemail.com>
2692 * simplify-rtx.c (simplify_subreg): Return null for invalid offsets.
2694 2012-11-19 Aldy Hernandez <aldyh@redhat.com>
2696 * trans-mem.c (execute_tm_mark): Release bb_regions.
2698 2012-11-19 Aldy Hernandez <aldyh@redhat.com>
2700 * trans-mem (collect_bb2reg): Stop scanning at irrevocable blocks.
2701 (get_bb_regions_instrumented): Add new traverse_clone argument and
2703 (expand_regions_1): Same.
2704 (expand_region): Same.
2705 (execute_tm_mark): Pass new argument to expand_regions.
2706 (expand_block_edges): Pass new argument to get_bb_regions_instrumented.
2708 2012-11-19 Sofiane Naci <sofiane.naci@arm.com>
2710 * config/aarch64/aarch64.c
2711 (aarch64_output_mi_thunk): Refactor to generate RTL patterns.
2713 2012-11-19 Mans Rullgard <mans@mansr.com>
2716 * config/rs6000/rs6000.c (rs6000_stack_info): Always set vrsave_mask
2717 for TARGET_ALTIVEC_ABI. Zero vrsave_save_offset if
2718 !TARGET_ALTIVEC_VRSAVE.
2719 (rs6000_emit_prologue): For SAVE_INLINE_VLRs, check vrsave_size
2722 2012-11-19 David Edelsohn <dje.gcc@gmail.com>
2725 * system.h (vec_free): Undef.
2727 2012-11-19 Jakub Jelinek <jakub@redhat.com>
2730 * tree-ssa-coalesce.c (coalesce_ssa_name): Remove static
2731 keyword from ssa_name_hash var.
2733 2012-11-19 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2734 Kirill Yukhin <kirill.yukhin@intel.com>
2735 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2737 * doc/md.texi: Document define_subst.
2738 * gensupport.c (MAX_OPERANDS): New define.
2739 (operand_data): New.
2740 (match_operand_entries_in_pattern): New.
2741 (used_operands_numbers): New.
2744 (define_subst_queue): New.
2745 (define_subst_tail): New.
2746 (define_subst_attr_queue): New.
2747 (define_subst_attr_tail): New.
2748 (has_subst_attribute): New.
2749 (subst_pattern_match): New.
2750 (get_alternatives_number): New.
2751 (alter_output_for_subst_insn): New.
2752 (alter_attrs_for_subst_insn): New.
2753 (process_substs_on_one_elem): New.
2755 (process_define_subst): New.
2756 (duplicate_alternatives): New.
2757 (duplicate_each_alternative): New.
2758 (constraints_handler_t): New typedef.
2759 (alter_constraints): New.
2760 (adjust_operands_numbers): New.
2761 (replace_duplicating_operands_in_pattern): New.
2762 (remove_from_queue): New.
2763 (process_rtx): Handle define_subst and define_subst_attr.
2764 (change_subst_attribute): New.
2765 (alter_predicate_for_insn): Fix formatting.
2766 (alter_attrs_for_insn): Likewise.
2767 (alter_output_for_insn): Likewise.
2768 (mark_operands_from_match_dup): New.
2769 (mark_operands_used_in_match_dup): New.
2770 (find_first_unused_number_of_operand): New.
2771 (renumerate_operands_in_pattern): New.
2772 (generate_match_dup): New.
2773 (check_define_attr_duplicates): New.
2774 (init_rtx_reader_args_cb): Add checking for duplicated attrs and
2775 processing of define_subst.
2776 (read_md_rtx): Handle define_subst.
2777 * read-rtl.c (struct subst_attr_to_iter_mapping): New.
2778 (substs): New global.
2779 (apply_subst_iterator): New.
2780 (bind_subst_iter_and_attr): New.
2781 (find_subst_iter_by_attr): New.
2782 (map_attr_string): Handle subst-iterators.
2783 (add_condition_to_rtx): Handle define_subst.
2784 (apply_iterators): Likewise.
2785 (initialize_iterators): Likewise.
2786 (add_define_attr_for_define_subst): New.
2787 (add_define_subst_attr): New.
2788 (read_subst_mapping): New.
2789 (read_rtx): Handle define_subst_attr.
2790 (read_rtx_code): Add subst-attributes recognition during reading of
2792 * rtl.def (DEFINE_EXPAND): Add vector of attributes.
2793 (DEFINE_SUBST): New.
2794 (DEFINE_SUBST_ATTR): New.
2796 2012-11-19 Tom de Vries <tom@codesourcery.com>
2798 PR rtl-optimization/55315
2800 * rtlanal.c (nonzero_address_p): Don't assume a nonzero address plus a
2801 const is a nonzero address.
2803 2012-11-18 Sandra Loosemore <sandra@codesourcery.com>
2805 * doc/extend.texi: Use @smallexample consistently. Add @noindent
2806 when continuing a sentence or paragraph past an example. Change
2807 tabs to spaces in examples.
2809 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2811 * doc/md.texi (extv@var{m}, extvmisalign@var{m}, extzv@var{m})
2812 (extzvmisalign@var{m}, insv@var{m}, insvmisalign@var{m}): Document.
2813 (insv, extv, extzv): Deprecate.
2814 * optabs.def (insv_optab, extv_optab, extzv_optab)
2815 (insvmisalign_optab, extvmisalign_optab, extzvmisalign_optab):
2817 * optabs.c (get_optab_extraction_insn): New function.
2818 (get_extraction_insn): Use it.
2819 * config/mips/mips.md (extv): Split into...
2820 (extvmisalign<mode>, extv<mode>): ...these new patterns. Rename
2821 existing extv<mode> pattern to...
2822 (*extv<mode>): ...this.
2823 (extzv): Split into...
2824 (extzvmisalign<mode>, extzv<mode>): ...these new patterns. Rename
2825 existing extzv<mode> pattern to...
2826 (*extzv<mode>): ...this.
2827 (insv): Split into...
2828 (insvmisalign<mode>, insv<mode>): ...these new patterns. Rename
2829 existing insv<mode> pattern to...
2830 (*insv<mode>): ...this. Use const_int_operand rather than
2832 * config/mips/mips.c (mips_block_move_straight): Use set_mem_size
2833 to set the size of BLKmode accesses.
2834 (mips_get_unaligned_mem): Require OP0 to be a BLKmode memory,
2835 turning it from an "rtx *" to an rtx.
2836 (mips_expand_ext_as_unaligned_load): Simplify for new optab
2837 interface. Update call to mips_get_unaligned_mem.
2838 (mips_expand_ins_as_unaligned_store): Update call to
2839 mips_get_unaligned_mem.
2841 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2843 * Makefile.in (recog.o): Add insn-codes.h.
2844 * expr.h (extraction_pattern): Move to optabs.h.
2845 (mode_for_extraction): Delete.
2846 * optabs.h (extraction_insn): New structure.
2847 (extraction_pattern): Moved from expr.h.
2848 (get_best_reg_extraction_insn, get_best_mem_extraction_insn): Declare.
2849 * optabs.c (HAVE_insv, CODE_FOR_insv, HAVE_extv, CODE_FOR_extv)
2850 (HAVE_extzv, CODE_FOR_extzv): Provide defaults.
2851 (extraction_type): New enum.
2852 (get_traditional_extraction_insn, get_extraction_insn)
2853 (get_best_reg_extraction_insn, get_best_mem_extraction_insn):
2855 * combine.c (make_extraction): Use get_best_reg_extraction_insn
2856 instead of mode_for_extraction.
2857 * expmed.c (HAVE_insv, CODE_FOR_insv, gen_insv, HAVE_extv)
2858 (CODE_FOR_extv, gen_extv, HAVE_extzv, CODE_FOR_extzv, gen_extzv):
2859 Remove fallback definitions.
2860 (mode_for_extraction): Delete.
2861 (adjust_bit_field_mem_for_reg): New function.
2862 (store_bit_field_using_insv): Replace OP_MODE parameter with
2863 an extraction_insn. Pass struct_mode to narrow_bit_field_mem.
2864 (extract_bit_field_using_extv): Likewise EXT_MODE.
2865 (store_bit_field_1): Use get_best_reg_extraction_insn and
2866 get_best_mem_extraction_insn instead of mode_for_extraction.
2867 Use adjust_bit_field_mem_for_reg when forcing memory to a
2868 register and doing a register insertion. Update calls to
2869 store_bit_field_using_insv.
2870 (extract_bit_field_1): Likewise extractions and calls to
2871 extract_bit_field_using_extv.
2872 (store_Bit_field): When narrowing to a bitregion, don't use the
2873 insv mode as a limit.
2874 * recog.c: (HAVE_extv, CODE_FOR_extv, HAVE_extzv, CODE_FOR_extzv):
2876 (simplify_while_replacing): Use insn_data instead of
2877 mode_for_extraction.
2879 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2881 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
2882 Set up a default value of bitregion_end_.
2883 (bit_field_mode_iterator::next_mode): Always apply bitregion_end_
2884 check. Include SLOW_UNALIGNED_ACCESS in the alignment check.
2885 (get_best_mode): Ignore modes that are wider than the alignment.
2887 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2889 * machmode.h (bit_field_mode_iterator): New class.
2890 (get_best_mode): Change final parameter to bool.
2891 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator)
2892 (bit_field_mode_iterator::next_mode): New functions, split out from...
2893 (get_best_mode): ...here. Change final parameter to bool.
2894 Use bit_field_mode_iterator.
2896 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2898 * expmed.c (narrow_bit_field_mem): New function.
2899 (store_bit_field_using_insv, store_bit_field_1, store_fixed_bit_field)
2900 (extract_bit_field_1): Use it.
2902 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2904 * expr.h (adjust_address_1): Add a size parameter.
2905 (adjust_address, adjust_address_nv, adjust_bitfield_address)
2906 (adjust_bitfield_address_nv): Adjust accordingly.
2907 (adjust_bitfield_address_size): Define.
2908 * emit-rtl.c (adjust_address_1): Add a size parameter.
2909 Use it to set the size if MODE has no size. Check whether
2910 the size matches before returning the original memref.
2911 Require the size to be known for adjust_object.
2912 (adjust_automodify_address_1, widen_memory_access): Update calls
2913 to adjust_address_1.
2915 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2917 * combine.c (make_extraction): Handle TRUNCATEd INNERs.
2919 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2921 * expr.c (expand_assignment): Don't set MEM_KEEP_ALIAS_SET_P here.
2922 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle DECL_BIT_FIELDs,
2923 using their size instead of the COMPONENT_REF's.
2925 2012-11-17 Matthias Klose <doko@ubuntu.com>
2927 * config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
2929 2012-11-17 Diego Novillo <dnovillo@google.com>
2931 VEC API overhaul (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2933 * vec.c (register_overhead): Convert it into
2934 member function of vec_prefix.
2935 (release_overhead): Likewise.
2936 (calculate_allocation): Likewise.
2937 (vec_heap_free): Remove.
2938 (vec_gc_o_reserve_1): Remove.
2939 (vec_heap_o_reserve_1): Remove.
2940 (vec_stack_o_reserve_1): Remove.
2941 (vec_stack_o_reserve_exact): Remove.
2942 (register_stack_vec): New.
2943 (stack_vec_register_index): New.
2944 (unregister_stack_vec): New.
2945 (vec_assert_fail): Remove.
2946 * vec.h: Conditionally include ggc.h. Document conditional hackery.
2947 Update top-level documentation.
2948 (ALONE_VEC_CHECK_INFO): Remove.
2949 (VEC_CHECK_INFO): Remove.
2950 (ALONE_VEC_CHECK_DECL): Remove.
2951 (VEC_CHECK_DECL): Remove.
2952 (ALONE_VEC_CHECK_PASS): Remove.
2953 (VEC_CHECK_PASS): Remove.
2954 (VEC_ASSERT): Remove.
2955 (vec_prefix): Add friends va_gc, va_gc_atomic, va_heap and va_stack.
2956 Mark fields alloc_ and num_ as protected.
2957 (struct vec_t): Remove. Remove all function members.
2958 (struct vl_embed): Declare.
2959 (struct vl_ptr): Declare.
2961 (reserve_exact): Remove.
2963 (safe_splice): Remove.
2964 (safe_push): Remove.
2965 (safe_grow): Remove.
2966 (safe_grow_cleared): Remove.
2967 (safe_insert): Remove.
2968 (DEF_VEC_I): Remove.
2969 (DEF_VEC_ALLOC_I): Remove.
2970 (DEF_VEC_P): Remove.
2971 (DEF_VEC_ALLOC_P): Remove.
2972 (DEF_VEC_O): Remove.
2973 (DEF_VEC_ALLOC_O): Remove.
2974 (DEF_VEC_ALLOC_P_STACK): Remove.
2975 (DEF_VEC_ALLOC_O_STACK): Remove.
2976 (DEF_VEC_ALLOC_I_STACK): Remove.
2977 (DEF_VEC_A): Remove.
2978 (DEF_VEC_ALLOC_A): Remove.
2979 (vec_stack_p_reserve_exact_1): Remove.
2980 (vec_stack_o_reserve): Remove.
2981 (vec_stack_o_reserve_exact): Remove.
2982 (VEC_length): Remove.
2983 (VEC_empty): Remove.
2984 (VEC_address): Remove.
2985 (vec_address): Remove.
2987 (VEC_index): Remove.
2988 (VEC_iterate): Remove.
2989 (VEC_embedded_size): Remove.
2990 (VEC_embedded_init): Remove.
2993 (VEC_space): Remove.
2994 (VEC_reserve): Remove.
2995 (VEC_reserve_exact): Remove.
2996 (VEC_splice): Remove.
2997 (VEC_safe_splice): Remove.
2998 (VEC_quick_push): Remove.
2999 (VEC_safe_push): Remove.
3001 (VEC_truncate): Remove.
3002 (VEC_safe_grow): Remove.
3003 (VEC_replace): Remove.
3004 (VEC_quick_insert): Remove.
3005 (VEC_safe_insert): Remove.
3006 (VEC_ordered_remove): Remove.
3007 (VEC_unordered_remove): Remove.
3008 (VEC_block_remove): Remove.
3009 (VEC_lower_bound): Remove.
3010 (VEC_alloc): Remove.
3011 (VEC_qsort): Remove.
3014 (va_heap::default_layout): New typedef to vl_ptr.
3015 (va_heap::reserve): New.
3016 (va_heap::release): New.
3018 (va_gc::default_layout): New typedef to vl_embed.
3019 (va_gc::reserve): New.
3020 (va_gc::release): New.
3021 (va_gc_atomic): Declare. Inherit from va_gc.
3022 (va_stack): Declare.
3023 (va_stack::default_layout): New typedef to vl_ptr.
3024 (va_stack::alloc): New.
3025 (va_stack::reserve): New.
3026 (va_stack::release): New.
3027 (register_stack_vec): Declare.
3028 (stack_vec_register_index): Declare.
3029 (unregister_stack_vec): Declare.
3031 (vec<T, A = va_heap, L = typename A::default_layout>): Declare
3033 (vec<T, A, vl_embed>): Partial specialization for embedded
3035 (vec<T, A, vl_embed>::allocated): New.
3036 (vec<T, A, vl_embed>::length): New.
3037 (vec<T, A, vl_embed>::is_empty): New.
3038 (vec<T, A, vl_embed>::address): New.
3039 (vec<T, A, vl_embed>::operator[]): New.
3040 (vec<T, A, vl_embed>::last New.
3041 (vec<T, A, vl_embed>::space): New.
3042 (vec<T, A, vl_embed>::iterate): New.
3043 (vec<T, A, vl_embed>::iterate): New.
3044 (vec<T, A, vl_embed>::copy): New.
3045 (vec<T, A, vl_embed>::splice): New.
3046 (vec<T, A, vl_embed>::quick_push New.
3047 (vec<T, A, vl_embed>::pop New.
3048 (vec<T, A, vl_embed>::truncate): New.
3049 (vec<T, A, vl_embed>::quick_insert): New.
3050 (vec<T, A, vl_embed>::ordered_remove): New.
3051 (vec<T, A, vl_embed>::unordered_remove): New.
3052 (vec<T, A, vl_embed>::block_remove): New.
3053 (vec<T, A, vl_embed>::qsort): New.
3054 (vec<T, A, vl_embed>::lower_bound): New.
3055 (vec<T, A, vl_embed>::embedded_size): New.
3056 (vec<T, A, vl_embed>::embedded_init): New.
3057 (vec<T, A, vl_embed>::quick_grow): New.
3058 (vec<T, A, vl_embed>::quick_grow_cleared): New.
3059 (vec_safe_space): New.
3060 (vec_safe_length): New.
3061 (vec_safe_address): New.
3062 (vec_safe_is_empty): New.
3063 (vec_safe_reserve): New.
3064 (vec_safe_reserve_exact): New.
3067 (vec_safe_grow): New.
3068 (vec_safe_grow_cleared): New.
3069 (vec_safe_iterate): New.
3070 (vec_safe_push): New.
3071 (vec_safe_insert): New.
3072 (vec_safe_truncate): New.
3073 (vec_safe_copy): New.
3074 (vec_safe_splice): New.
3076 (vec<T, A, vl_ptr>): New partial specialization for the space
3078 (vec<T, A, vl_ptr>::exists): New.
3079 (vec<T, A, vl_ptr>::is_empty): New.
3080 (vec<T, A, vl_ptr>::length): New.
3081 (vec<T, A, vl_ptr>::address): New.
3082 (vec<T, A, vl_ptr>::operator[]): New.
3083 (vec<T, A, vl_ptr>::operator!=): New.
3084 (vec<T, A, vl_ptr>::operator==): New.
3085 (vec<T, A, vl_ptr>::last): New.
3086 (vec<T, A, vl_ptr>::space): New.
3087 (vec<T, A, vl_ptr>::iterate): New.
3088 (vec<T, A, vl_ptr>::copy): New.
3089 (vec<T, A, vl_ptr>::reserve): New.
3090 (vec<T, A, vl_ptr>::reserve_exact): New.
3091 (vec<T, A, vl_ptr>::splice): New.
3092 (vec<T, A, vl_ptr>::safe_splice): New.
3093 (vec<T, A, vl_ptr>::quick_push): New.
3094 (vec<T, A, vl_ptr>::safe_push): New.
3095 (vec<T, A, vl_ptr>::pop): New.
3096 (vec<T, A, vl_ptr>::truncate): New.
3097 (vec<T, A, vl_ptr>::safe_grow): New.
3098 (vec<T, A, vl_ptr>::safe_grow_cleared): New.
3099 (vec<T, A, vl_ptr>::quick_grow): New.
3100 (vec<T, A, vl_ptr>::quick_grow_cleared): New.
3101 (vec<T, A, vl_ptr>::quick_insert): New.
3102 (vec<T, A, vl_ptr>::safe_insert): New.
3103 (vec<T, A, vl_ptr>::ordered_remove): New.
3104 (vec<T, A, vl_ptr>::unordered_remove): New.
3105 (vec<T, A, vl_ptr>::block_remove): New.
3106 (vec<T, A, vl_ptr>::qsort): New.
3107 (vec<T, A, vl_ptr>::lower_bound): New.
3108 (vec_stack_alloc): Define.
3109 (FOR_EACH_VEC_SAFE_ELT): Define.
3110 * vecir.h: Remove. Update all users.
3111 * vecprim.h: Remove. Update all users.
3112 Move uchar to coretypes.h.
3114 * Makefile.in (VEC_H): Add $(GGC_H).
3115 Remove vecir.h and vecprim.h dependencies everywhere.
3117 2012-11-16 Diego Novillo <dnovillo@google.com>
3119 * gengtype-lex.l (VEC): Remove.
3120 Add characters in the set [\!\>\.-].
3121 * gengtype-parse.c (token_names): Remove "VEC".
3122 (require_template_declaration): Remove handling of VEC_TOKEN.
3124 Call create_user_defined_type when parsing GTY((user)).
3125 * gengtype-state.c (type_lineloc): handle TYPE_UNDEFINED.
3126 (write_state_undefined_type): New.
3127 (write_state_type): Call write_state_undefined_type for TYPE_UNDEFINED.
3128 (read_state_type): Call read_state_undefined_type for TYPE_UNDEFINED.
3129 * gengtype.c (dbgprint_count_type_at): Handle TYPE_UNDEFINED.
3130 (create_user_defined_type): Make extern.
3131 (type_for_name): Factor out of resolve_typedef.
3132 (create_undefined_type): New
3133 (resolve_typedef): Call it when we cannot find a previous
3134 typedef and the type is not a template.
3135 (find_structure): Accept TYPE_UNDEFINED.
3136 (set_gc_used_type): Add argument ALLOWED_UNDEFINED_TYPES,
3138 Emit an error for TYPE_UNDEFINED unless LEVEL is GC_UNUSED or
3139 ALLOWED_UNDEFINED_TYPES is set.
3140 Set ALLOWED_UNDEFINED_TYPES to true for TYPE_USER_STRUCT.
3141 (filter_type_name): Accept templates with more than one argument.
3142 (output_mangled_typename): Handle TYPE_UNDEFINED
3143 (walk_type): Likewise.
3144 (write_types_process_field): Likewise.
3145 (write_func_for_structure): If CHAIN_NEXT is set, ORIG_S
3146 should not be a user-defined type.
3147 (write_types_local_user_process_field): Handle TYPE_ARRAY,
3148 TYPE_NONE and TYPE_UNDEFINED.
3149 (write_types_local_process_field): Likewise.
3150 (contains_scalar_p): Return 0 for TYPE_USER_STRUCT.
3151 (write_root): Reject user-defined types that are not pointers.
3152 Handle TYPE_NONE, TYPE_UNDEFINED, TYPE_UNION, TYPE_LANG_STRUCT
3153 and TYPE_PARAM_STRUCT.
3154 (output_typename): Handle TYPE_NONE, TYPE_UNDEFINED, and TYPE_ARRAY.
3155 (dump_typekind): Handle TYPE_UNDEFINED.
3156 * gengtype.h (enum typekind): Add TYPE_UNDEFINED.
3157 (create_user_defined_type): Declare.
3158 (enum gty_token): Remove VEC_TOKEN.
3160 2012-11-16 Diego Novillo <dnovillo@google.com>
3162 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
3164 * coretypes.h (uchar): Define.
3165 * alias.c: Use new vec API in vec.h.
3167 * attribs.c: Likewise.
3168 * basic-block.h: Likewise.
3169 * bb-reorder.c: Likewise.
3170 * builtins.c: Likewise.
3171 * calls.c: Likewise.
3173 * cfganal.c: Likewise.
3174 * cfgcleanup.c: Likewise.
3175 * cfgexpand.c: Likewise.
3176 * cfghooks.c: Likewise.
3177 * cfghooks.h: Likewise.
3178 * cfgloop.c: Likewise.
3179 * cfgloop.h: Likewise.
3180 * cfgloopanal.c: Likewise.
3181 * cfgloopmanip.c: Likewise.
3182 * cfgrtl.c: Likewise.
3183 * cgraph.c: Likewise.
3184 * cgraph.h: Likewise.
3185 * cgraphclones.c: Likewise.
3186 * cgraphunit.c: Likewise.
3187 * combine.c: Likewise.
3188 * compare-elim.c: Likewise.
3189 * coverage.c: Likewise.
3190 * cprop.c: Likewise.
3191 * data-streamer.h: Likewise.
3192 * dbxout.c: Likewise.
3194 * df-core.c: Likewise.
3195 * df-problems.c: Likewise.
3196 * df-scan.c: Likewise.
3197 * dominance.c: Likewise.
3198 * domwalk.c: Likewise.
3199 * domwalk.h: Likewise.
3201 * dwarf2cfi.c: Likewise.
3202 * dwarf2out.c: Likewise.
3203 * dwarf2out.h: Likewise.
3204 * emit-rtl.c: Likewise.
3205 * except.c: Likewise.
3206 * except.h: Likewise.
3209 * final.c: Likewise.
3210 * fold-const.c: Likewise.
3211 * function.c: Likewise.
3212 * function.h: Likewise.
3213 * fwprop.c: Likewise.
3216 * genattr.c: Likewise.
3217 * genattrtab.c: Likewise.
3218 * genautomata.c: Likewise.
3219 * genextract.c: Likewise.
3220 * genopinit.c: Likewise
3221 * ggc-common.c: Likewise.
3223 * gimple-low.c: Likewise.
3224 * gimple-ssa-strength-reduction.c: Likewise.
3225 * gimple-streamer-in.c: Likewise.
3226 * gimple.c: Likewise.
3227 * gimple.h: Likewise.
3228 * gimplify.c: Likewise.
3229 * graph.c: Likewise.
3230 * graphds.c: Likewise.
3231 * graphds.h: Likewise.
3232 * graphite-blocking.c: Likewise.
3233 * graphite-clast-to-gimple.c: Likewise.
3234 * graphite-dependences.c: Likewise.
3235 * graphite-interchange.c: Likewise.
3236 * graphite-optimize-isl.c: Likewise.
3237 * graphite-poly.c: Likewise.
3238 * graphite-poly.h: Likewise.
3239 * graphite-scop-detection.c: Likewise.
3240 * graphite-scop-detection.h: Likewise.
3241 * graphite-sese-to-poly.c: Likewise.
3242 * graphite.c: Likewise.
3243 * godump.c: Likewise.
3244 * haifa-sched.c: Likewise.
3245 * hw-doloop.c: Likewise.
3246 * hw-doloop.h: Likewise.
3247 * ifcvt.c: Likewise.
3248 * insn-addr.h: Likewise.
3249 * ipa-cp.c: Likewise.
3250 * ipa-inline-analysis.c: Likewise.
3251 * ipa-inline-transform.c: Likewise.
3252 * ipa-inline.c: Likewise.
3253 * ipa-inline.h: Likewise.
3254 * ipa-prop.c: Likewise.
3255 * ipa-prop.h: Likewise.
3256 * ipa-pure-const.c: Likewise.
3257 * ipa-ref-inline.h: Likewise.
3258 * ipa-ref.c: Likewise.
3259 * ipa-ref.h: Likewise.
3260 * ipa-reference.c: Likewise.
3261 * ipa-split.c: Likewise.
3262 * ipa-utils.c: Likewise.
3263 * ipa-utils.h: Likewise.
3265 * ira-build.c: Likewise.
3266 * ira-color.c: Likewise.
3267 * ira-emit.c: Likewise.
3268 * ira-int.h: Likewise.
3270 * loop-invariant.c: Likewise.
3271 * loop-unroll.c: Likewise.
3272 * lower-subreg.c: Likewise.
3273 * lra-lives.c: Likewise.
3275 * lto-cgraph.c: Likewise.
3276 * lto-section-out.c: Likewise.
3277 * lto-streamer-in.c: Likewise.
3278 * lto-streamer-out.c: Likewise.
3279 * lto-streamer.h: Likewise.
3280 * lto-symtab.c: Likewise.
3282 * modulo-sched.c: Likewise.
3283 * omp-low.c: Likewise.
3284 * opts-common.c: Likewise.
3285 * opts-global.c: Likewise.
3288 * passes.c: Likewise.
3289 * predict.c: Likewise.
3290 * print-tree.c: Likewise.
3291 * profile.c: Likewise.
3292 * profile.h: Likewise.
3293 * read-rtl.c: Likewise.
3295 * reg-stack.c: Likewise.
3296 * regrename.c: Likewise.
3297 * regrename.h: Likewise.
3298 * reload.c: Likewise.
3299 * reload.h: Likewise.
3300 * reload1.c: Likewise.
3302 * sched-deps.c: Likewise.
3303 * sched-int.h: Likewise.
3304 * sdbout.c: Likewise.
3305 * sel-sched-dump.c: Likewise.
3306 * sel-sched-ir.c: Likewise.
3307 * sel-sched-ir.h: Likewise.
3308 * sel-sched.c: Likewise.
3311 * statistics.h: Likewise.
3313 * stor-layout.c: Likewise.
3314 * store-motion.c: Likewise.
3315 * tlink.c: Likewise.
3316 * toplev.c: Likewise.
3317 * trans-mem.c: Likewise.
3318 * tree-browser.c: Likewise.
3319 * tree-call-cdce.c: Likewise.
3320 * tree-cfg.c: Likewise.
3321 * tree-cfgcleanup.c: Likewise.
3322 * tree-chrec.c: Likewise.
3323 * tree-chrec.h: Likewise.
3324 * tree-complex.c: Likewise.
3325 * tree-data-ref.c: Likewise.
3326 * tree-data-ref.h: Likewise.
3327 * tree-dfa.c: Likewise.
3328 * tree-diagnostic.c: Likewise.
3329 * tree-dump.c: Likewise.
3330 * tree-eh.c: Likewise.
3331 * tree-emutls.c: Likewise.
3332 * tree-flow.h: Likewise.
3333 * tree-if-conv.c: Likewise.
3334 * tree-inline.c: Likewise.
3335 * tree-inline.h: Likewise.
3336 * tree-into-ssa.c: Likewise.
3337 * tree-iterator.c: Likewise.
3338 * tree-loop-distribution.c: Likewise.
3339 * tree-mudflap.c: Likewise.
3340 * tree-optimize.c: Likewise.
3341 * tree-outof-ssa.c: Likewise.
3342 * tree-parloops.c: Likewise.
3343 * tree-phinodes.c: Likewise.
3344 * tree-predcom.c: Likewise.
3345 * tree-pretty-print.c: Likewise.
3346 * tree-scalar-evolution.c: Likewise.
3347 * tree-sra.c: Likewise.
3348 * tree-ssa-address.c: Likewise.
3349 * tree-ssa-alias.c: Likewise.
3350 * tree-ssa-ccp.c: Likewise.
3351 * tree-ssa-coalesce.c: Likewise.
3352 * tree-ssa-dce.c: Likewise.
3353 * tree-ssa-dom.c: Likewise.
3354 * tree-ssa-forwprop.c: Likewise.
3355 * tree-ssa-live.c: Likewise.
3356 * tree-ssa-live.h: Likewise.
3357 * tree-ssa-loop-im.c: Likewise.
3358 * tree-ssa-loop-ivcanon.c: Likewise.
3359 * tree-ssa-loop-ivopts.c: Likewise.
3360 * tree-ssa-loop-manip.c: Likewise.
3361 * tree-ssa-loop-niter.c: Likewise.
3362 * tree-ssa-loop-prefetch.c: Likewise.
3363 * tree-ssa-math-opts.c: Likewise.
3364 * tree-ssa-operands.c: Likewise.
3365 * tree-ssa-phiopt.c: Likewise.
3366 * tree-ssa-phiprop.c: Likewise.
3367 * tree-ssa-pre.c: Likewise.
3368 * tree-ssa-propagate.c: Likewise.
3369 * tree-ssa-reassoc.c: Likewise.
3370 * tree-ssa-sccvn.c: Likewise.
3371 * tree-ssa-sccvn.h: Likewise.
3372 * tree-ssa-strlen.c: Likewise.
3373 * tree-ssa-structalias.c: Likewise.
3374 * tree-ssa-tail-merge.c: Likewise.
3375 * tree-ssa-threadedge.c: Likewise.
3376 * tree-ssa-threadupdate.c: Likewise.
3377 * tree-ssa-uncprop.c: Likewise.
3378 * tree-ssa-uninit.c: Likewise.
3379 * tree-ssa.c: Likewise.
3380 * tree-ssanames.c: Likewise.
3381 * tree-stdarg.c: Likewise.
3382 * tree-streamer-in.c: Likewise.
3383 * tree-streamer-out.c: Likewise.
3384 * tree-streamer.c: Likewise.
3385 * tree-streamer.h: Likewise.
3386 * tree-switch-conversion.c: Likewise.
3387 * tree-vect-data-refs.c: Likewise.
3388 * tree-vect-generic.c: Likewise.
3389 * tree-vect-loop-manip.c: Likewise.
3390 * tree-vect-loop.c: Likewise.
3391 * tree-vect-patterns.c: Likewise.
3392 * tree-vect-slp.c: Likewise.
3393 * tree-vect-stmts.c: Likewise.
3394 * tree-vectorizer.c: Likewise.
3395 * tree-vectorizer.h: Likewise.
3396 * tree-vrp.c: Likewise.
3399 * value-prof.c: Likewise.
3400 * value-prof.h: Likewise.
3401 * var-tracking.c: Likewise.
3402 * varasm.c: Likewise.
3403 * varpool.c: Likewise.
3404 * vmsdbgout.c: Likewise.
3405 * config/bfin/bfin.c: Likewise.
3406 * config/c6x/c6x.c: Likewise.
3407 * config/darwin.c: Likewise.
3408 * config/i386/i386.c: Likewise.
3409 * config/ia64/ia64.c: Likewise.
3410 * config/mep/mep.c: Likewise.
3411 * config/mips/mips.c: Likewise.
3412 * config/pa/pa.c: Likewise.
3413 * config/rs6000/rs6000-c.c: Likewise.
3414 * config/rs6000/rs6000.c: Likewise.
3415 * config/rx/rx.c: Likewise.
3416 * config/spu/spu-c.c: Likewise.
3417 * config/vms/vms.c: Likewise.
3418 * config/vxworks.c: Likewise.
3419 * config/epiphany/resolve-sw-modes.c: Likewise.
3421 2012-11-17 Jakub Jelinek <jakub@redhat.com>
3423 PR tree-optimization/55236
3424 * fold-const.c (make_range_step) <case NEGATE_EXPR>: For -fwrapv
3425 and signed ARG0_TYPE, force low and high to be non-NULL.
3427 2012-11-17 H.J. Lu <hongjiu.lu@intel.com>
3429 * common.opt (static-libasan): New option.
3430 * gcc.c (LIBASAN_SPEC): New macro.
3431 (LINK_COMMAND_SPEC): Replace -lasan with LIBASAN_SPEC.
3432 * doc/invoke.texi: Document -static-libasan.
3434 2012-11-17 Vladimir Makarov <vmakarov@redhat.com>
3436 PR rtl-optimization/55342
3437 * lra-assigns.c (spill_for): Try to allocate other reload pseudos
3438 before and after spilling.
3440 2012-11-16 Sandra Loosemore <sandra@codesourcery.com>
3442 * doc/extend.texi: Various copy-edits to comply with GCC coding
3443 standards for spelling, terminology, and markup, including use of
3444 American spelling, correct use of terms like "back end" and
3445 "run time", use correct name for GCC, use "@:" markup.
3447 2012-11-16 Jakub Jelinek <jakub@redhat.com>
3449 PR tree-optimization/55329
3450 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Never clear
3451 bits in needed_eh_cleanup while iterating over the bitmap.
3452 Look through all forwarder blocks at once.
3454 2012-11-16 Jan Hubicka <jh@suse.cz>
3456 * params.def (max-peeled-insns, max-completely-peeled-insns): Reduce
3459 2012-11-16 Simon Baldwin <simonb@google.com>
3461 * doc/cppopts.texi: Document -f[no-]canonical-system-headers.
3462 * doc/install.texi: Document --enable-canonical-system-headers.
3464 2012-11-16 Vladimir Makarov <vmakarov@redhat.com>
3466 PR rtl-optimization/55330
3467 * lra-constraints.c (MAX_INHERITANCE_PASSES): New macro.
3468 (lra_inheritance, lra_undo_inheritance): Use it to limit number of
3471 2012-11-16 Matthias Klose <doko@ubuntu.com>
3473 * config/pa/t-linux: New file; define MULTIARCH_DIRNAME.
3474 * config.gcc <hppa*64*-*-linux*, hppa*-*-linux*> (tmake_file):
3477 2012-11-16 Jakub Jelinek <jakub@redhat.com>
3480 * config/i386/i386.md (mov<mode>cc): Use comparison_operator
3481 instead of ordered_comparison_operator resp.
3482 ix86_fp_comparison_operator predicates.
3483 * config/i386/i386.c (ix86_expand_fp_movcc): Reject TImode
3484 or for -m32 DImode comparisons.
3486 2012-11-16 Jan Hubicka <jh@suse.cz>
3488 PR tree-optimization/54717
3489 * tree-ssa-pre.c (do_partial_partial_insertion): Consider also edges
3492 2012-11-16 Uros Bizjak <ubizjak@gmail.com>
3494 * config/i386/i386-protos.h (ix86_emit_mode_set): Add third argument.
3495 * config/i386/i386.h (EMIT_MODE_SET): Update.
3496 * config/i386/i386.c (ix86_avx_emit_vzeroupper): New function.
3497 (ix86_emit_mode_set) <AVX_U128>: Call ix86_avx_emit_vzeroupper.
3499 2012-11-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3502 * doc/extend.texi: Add details about bdver3.
3503 * doc/invoke.texi: Add details about bdver3.
3504 * config.gcc (i[34567]86-*-linux* | ...): Add bdver3.
3505 (case ${target}): Add bdver3.
3506 * config/i386/i386.h (TARGET_BDVER3): New definition.
3507 * config/i386/i386.md (define_attr "cpu"): Add bdver3.
3508 * config/i386/sse.md (sseshuf, sseshuf1): New type attributes.
3509 * config/i386/athlon.md: Handle sseshuf attribute.
3510 * config/i386/atom.md: Likewise.
3511 * config/i386/ppro.md: Likewise.
3512 * config/i386/bdver1.md: Likewise.
3513 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver3.
3514 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3515 bdver3 def_and_undef
3516 * config/i386/driver-i386.c (host_detect_local_cpu): Let
3517 -march=native recognize bdver3 processors.
3518 * config/i386/i386.c (struct processor_costs bdver3_cost): New.
3519 (m_BDVER3): New definition.
3520 (m_AMD_MULTIPLE): Includes m_BDVER3.
3521 (initial_ix86_tune_features): Add bdver3 tune.
3522 (processor_target_table): Add bdver3 entry.
3523 (static const char *const cpu_names): Add bdver3 entry.
3524 (software_prefetching_beneficial_p): Add bdver3.
3525 (ix86_option_override_internal): Add bdver3 instruction sets.
3526 (ix86_option_override_internal): Remove XSAVEOPT for bdver1 and bdver2.
3527 (ix86_issue_rate): Add bdver3.
3528 (ix86_adjust_cost): Add bdver3.
3529 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver3.
3530 (enum processor_type): Add PROCESSOR_BDVER3.
3531 * config/i386/bdver3.md: New file describing bdver3 pipelines.
3533 2012-11-15 David S. Miller <davem@davemloft.net>
3535 * expmed.c (expand_shift_1): Don't strip non-integral SUBREGs.
3537 * configure.ac: Add check for assembler SPARC4 instruction support.
3538 * configure: Rebuild.
3539 * config.in: Add HAVE_AS_SPARC4 section.
3540 * config/sparc/sparc.opt (mcbcond): New option.
3541 * doc/invoke.texi: Document it.
3542 * config/sparc/constraints.md: New constraint 'A' for 5-bit signed
3544 * doc/md.texi: Document it.
3545 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_CBCOND.
3546 (sparc_option_override): Likewise.
3547 (emit_cbcond_insn): New function.
3548 (emit_conditional_branch_insn): Call it.
3549 (emit_cbcond_nop): New function.
3550 (output_ubranch): Use cbcond, remove label arg.
3551 (output_cbcond): New function.
3552 * config/sparc/sparc-protos.h (output_ubranch): Update.
3553 (output_cbcond): Declare it.
3554 (emit_cbcond_nop): Likewise.
3555 * config/sparc/sparc.md (type attribute): New types 'cbcond'
3557 (emit_cbcond_nop): New attribute.
3558 (length attribute): Handle cbcond and uncond_cbcond.
3559 (in_call_delay attribute): Reject cbcond and uncond_cbcond.
3560 (in_branch_delay attribute): Likewise.
3561 (in_uncond_branch_delay attribute): Likewise.
3562 (in_annul_branch_delay attribute): Likewise.
3563 (*cbcond_sp32, *cbcond_sp64): New insn patterns.
3564 (jump): Rewrite into an expander.
3565 (*jump_ubranch, *jump_cbcond): New patterns.
3566 * config/sparc/niagara4.md: Match 'cbcond' in 'n4_cti'.
3567 * config/sparc/sparc.h (AS_NIAGARA4_FLAG): New macro, use it
3568 when target default is niagara4.
3569 (SPARC_SIMM5_P): Define.
3570 * config/sparc/sol2.h (AS_SPARC64_FLAG): Adjust.
3571 (AS_SPARC32_FLAG): Define.
3572 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Use
3573 AS_NIAGARA4_FLAG as needed.
3575 2012-11-15 Steve Ellcey <sellcey@mips.com>
3577 * expr.c (expand_cond_expr_using_cmove): Use promoted mode for temp.
3579 2012-11-15 Tom de Vries <tom@codesourcery.com>
3581 PR tree-optimization/54619
3582 * tree-ssa-loop-ivopts.c (get_use_type): New function.
3583 (get_computation_at): Use get_use_type.
3584 (get_computation_cost_at): Declare and set mem_mode. Use mem_mode.
3586 2012-11-15 Jakub Jelinek <jakub@redhat.com>
3588 * asan.c (report_error_func): Set DECL_IGNORED_P, don't touch
3589 DECL_ASSEMBLER_NAME.
3590 (asan_init_func): Likewise.
3591 (asan_finish_file): Use void * instead of __asan_global * as type of
3592 __asan_{,un}register_globals. Set DECL_IGNORED_P on the decls.
3594 2012-11-15 Matthias Klose <doko@ubuntu.com>
3596 * Makefile.in (if_multiarch): Don't use a GNU make 3.81 feature.
3598 2012-11-14 Jan Hubicka <jh@suse.cz>
3601 * gcov-io.c (gcov_read_summary): Fix array bound check.
3603 2012-11-14 Sterling Augustine <saugustine@google.com>
3606 * dwarf2out.c (index_address_table_entry): Check a node's refcount.
3608 2012-11-14 Jan Hubicka <jh@suse.cz>
3611 * ipa-inline.c (edge_badness): Improve dumping; fix overflow.
3613 2012-11-14 Matthias Klose <doko@ubuntu.com>
3615 * config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
3616 * config/sparc/t-linux: New file; define MULTIARCH_DIRNAME.
3617 * config.gcc <sparc-*-linux*> (tmake_file): Include sparc/t-linux
3618 for 32bit non-biarch configurations.
3620 2012-11-14 Matthias Klose <doko@ubuntu.com>
3622 * doc/invoke.texi: Document -print-multiarch.
3623 * doc/install.texi: Document --enable-multiarch.
3624 * doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME.
3625 * configure.ac: Add --enable-multiarch option.
3626 * configure: Regenerate.
3627 * Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib.
3628 enable_multiarch, with_float: New macros.
3629 if_multiarch: New macro, define in terms of enable_multiarch.
3630 * genmultilib: Add new argument for the multiarch name.
3631 * gcc.c (multiarch_dir): Define.
3632 (for_each_path): Search for multiarch suffixes.
3633 (driver_handle_option): Handle multiarch option.
3634 (do_spec_1): Pass -imultiarch if defined.
3635 (main): Print multiarch.
3636 (set_multilib_dir): Separate multilib and multiarch names
3637 from multilib_select.
3638 (print_multilib_info): Ignore multiarch names in multilib_select.
3639 * incpath.c (add_standard_paths): Search the multiarch include dirs.
3640 * cppdefault.h (default_include): Document multiarch in multilib
3642 * cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an
3643 include directory for multiarch directories.
3644 * common.opt: New options --print-multiarch and -imultilib.
3645 * config.gcc <i[34567]86-*-linux* | x86_64-*-linux*> (tmake_file):
3646 Include i386/t-linux.
3647 <i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu> (tmake_file):
3648 Include i386/t-kfreebsd.
3649 <i[34567]86-*-gnu*> (tmake_file): Include i386/t-gnu.
3650 * config/i386/t-linux64: Add multiarch names in
3651 MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME.
3652 * config/i386/t-gnu: New file.
3653 * config/i386/t-kfreebsd: Likewise.
3654 * config/i386/t-linux: Likewise.
3656 2012-11-14 Jan Hubicka <jh@suse.cz>
3658 * tree.c (set_call_expr_flags): New function.
3659 (local_define_builtin): Use it.
3660 * tree.h (set_call_expr_flags): Declare.
3662 2012-11-14 Uros Bizjak <ubizjak@gmail.com>
3663 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
3666 * config/i386/i386.c (gate_insert_vzeroupper): New function.
3667 (rest_of_handle_insert_vzeroupper): Ditto.
3668 (struct rtl_opt_pass pass_insert_vzeroupper): New.
3669 (ix86_option_override): Register vzeroupper insertion pass here.
3670 (ix86_check_avx256_register): Handle SUBREGs properly.
3671 (ix86_init_machine_status): Remove optimize_mode_switching[AVX_U128]
3674 2012-11-14 David Edelsohn <dje.gcc@gmail.com>
3676 * configure.ac (HAVE_LD_LARGE_TOC): Add AIX test.
3677 * configure: Regenerated.
3678 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Warn if
3679 other toc options used with cmodel. Disable TARGET_NO_FP_IN_TOC
3680 and TARGET_NO_SUM_IN_TOC if not CMODEL_SMALL. CMODEL_MEDIUM means
3681 CMODEL_LARGE on AIX.
3682 (ASM_SPEC): -mvsx implies -mpwr6. Add -many.
3683 (ASM_DEFAULT_SPEC): Use -mpwr4.
3684 (TARGET_CMODEL): Define.
3685 (SET_CMODEL): Define.
3686 * config/rs6000/rs6000.md (largetoc_high_aix<mode>): New.
3687 (largetoc_high_plus_aix<mode>): New.
3688 (largetoc_low<mode>): Change to mode iterator. Test TARGET_TOC
3689 instead of TARGET_ELF.
3690 (tocref): Remove TARGET_ELF test.
3691 * config/rs6000/rs6000.c (output_toc): Use [TE] for large TOC
3693 * config/rs6000/aix64.opt (mcmodel): New.
3695 2012-11-14 Andreas Tobler <andreast@fgznet.ch>
3697 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard
3698 variables with ASM_OUTPUT_TYPE_DIRECTIVE and
3699 HAVE_GNU_INDIRECT_FUNCTION where needed.
3701 2012-11-13 Ian Lance Taylor <iant@google.com>
3703 * common.opt (fPIC, fPIE, fpic, fpie): Create a Negative loop such
3704 that any of these options disables the others.
3706 2012-11-13 Sriraman Tallam <tmsriram@google.com>
3708 * cgraph.c (insert_new_cgraph_node_version): Use cgraph_get_node
3709 instead of cgraph_get_create_node.
3710 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Move
3711 ifunc not supported code to the end.
3713 2012-11-13 Martin Jambor <mjambor@suse.cz>
3715 PR tree-optimization/55253
3716 * ipa-cp.c (merge_aggregate_lattices): Propagate aggs_contain_variable
3719 2012-11-13 Eric Botcazou <ebotcazou@adacore.com>
3720 H.J. Lu <hongjiu.lu@intel.com>
3723 * config/i386/i386.c (legitimize_pic_address): Properly handle
3725 (ix86_print_operand_address): Set code to 'k' when forcing
3726 addr32 prefix. For x32, zero-extend negative displacement if
3729 2012-11-13 Uros Bizjak <ubizjak@gmail.com>
3732 * mode-switching.c (create_pre_exit): Set return_copy to last_insn if
3733 copy_start is not a function return regno. Skip debug instructions
3734 in instruction scan loop.
3736 2012-11-13 Andrew Stubbs <ams@codesourcery.com>
3737 Ulrich Weigand <ulrich.weigand@linaro.org>
3739 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Fix comment.
3740 * config/arm/arm.md (opt, opt_enabled): New attributes.
3741 (enabled): Use opt_enabled.
3742 (ashldi3, ashrdi3, lshrdi3): Add TARGET_NEON case.
3743 (ashldi3): Allow general operands for TARGET_NEON case.
3744 * config/arm/iterators.md (rshifts): New code iterator.
3745 (shift, shifttype): New code attributes.
3746 * config/arm/neon.md (UNSPEC_LOAD_COUNT): New unspec type.
3747 (neon_load_count, ashldi3_neon_noclobber, ashldi3_neon,
3748 signed_shift_di3_neon, unsigned_shift_di3_neon,
3749 ashrdi3_neon_imm_noclobber, lshrdi3_neon_imm_noclobber,
3750 <shift>di3_neon): New patterns.
3752 2012-11-13 Jakub Jelinek <jakub@redhat.com>
3754 * Makefile.in (asan.o): Depend on $(TM_P_H).
3756 PR tree-optimization/55281
3757 * tree-vect-generic.c (expand_vector_condition): Accept any
3758 is_gimple_val rather than just SSA_NAME if not COMPARISON_CLASS_P.
3759 * fold-const.c (fold_ternary_loc): Fold VEC_COND_EXPR if arg0 is
3760 either integer_all_onesp or integer_zerop.
3761 * tree-vect-stmts.c (vectorizable_condition): Build the condition
3762 using corresponding vector integer type instead of vectype.
3764 PR rtl-optimization/54127
3765 * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting
3766 asm goto labels from BB_HEAD (e->dest) to target bb, decrement
3767 LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of
3768 BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or
3769 REG_LABEL_TARGET and REG_LABEL_OPERAND.
3771 2012-11-12 Jakub Jelinek <jakub@redhat.com>
3773 * asan.c (instrument_builtin_call) <case BUILT_IN_BCOPY>: Fix up
3776 2012-11-13 Hans-Peter Nilsson <hp@axis.com>
3779 * config/cris/cris.c (cris_asm_output_mi_thunk): Call
3780 final_start_function and final_end_function.
3782 2012-11-12 David Edelsohn <dje.gcc@gmail.com>
3784 * asan.c: Include tm_p.h.
3786 2012-11-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3789 * config/pa/pa.md (attr type): Add sibcall and sh_func_adrs insn types.
3790 (in_branch_delay): Don't allow sibcall or sh_func_adrs insns.
3791 (in_nullified_branch_delay): Likewise.
3792 (in_call_delay): Likewise.
3793 Define delay for sibcall insns. Adjust Z3 and Z4 insn reservations for
3794 new types. Add opaque cond to mark all calls, sibcalls, dyncalls and
3795 the $$sh_func_adrs call as variable. Update type of sibcalls and
3796 $$sh_func_adrs call.
3797 * config/pa/pa.c (pa_adjust_insn_length): Revise to return updated
3798 length instead of adjustment. Handle negative and undefined call
3799 adjustments for insn_default_length. Remove adjustment for millicode
3800 insn with unfilled delay slot.
3801 (pa_output_millicode_call): Update for revised millicode length.
3802 * config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH.
3804 2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
3806 * tree-ssa-ccp.c (dump_lattice_value) <CONSTANT>: Fix duplication.
3808 2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
3810 * common.opt (fvar-tracking-uninit): Document.
3811 * toplev.c (process_options): Fix handling of flag_var_tracking_uninit.
3812 * config/darwin.c (darwin_override_options): Likewise.
3814 2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
3816 * sched-vis.c (print_pattern): Handle NULL patterns.
3818 2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
3819 Jakub Jelinek <jakub@redhat.com>
3821 PR rtl-optimization/51447
3822 * df-scan.c (df_get_entry_block_def_set): Add global regs to the set.
3823 * df-problems.c (df_lr_local_compute): Make global regs always live.
3824 * dce.c (deletable_insn_p): Make insns setting a global reg
3825 inherently necessary.
3827 2012-11-12 Ian Bolton <ian.bolton@arm.com>
3829 * config/aarch64/aarch64.md (cmov<mode>_insn): Emit CSINC when
3830 one of the alternatives is constant 1.
3831 * config/aarch64/constraints.md: New constraint.
3832 * config/aarch64/predicates.md: Rename predicate
3833 aarch64_reg_zero_or_m1 to aarch64_reg_zero_or_m1_or_1.
3835 2012-11-12 Ian Bolton <ian.bolton@arm.com>
3837 * config/aarch64/aarch64.md (*compare_neg<mode>): New pattern.
3839 2012-11-12 Tobias Burnus <burnus@net-b.de>
3841 * doc/invoke.texi: Move -faddress-sanitizer from Optimization
3842 Options to Debugging Options.
3844 2012-11-12 Jakub Jelinek <jakub@redhat.com>
3846 * asan.c: Formatting cleanups.
3848 2012-11-12 Wei Mi <wmi@google.com>
3850 * gcc.c (LINK_COMMAND_SPEC): Add -lasan to link command if
3851 -faddress-sanitizer is on.
3853 2012-11-12 Dodji Seketeli <dodji@redhat.com>
3855 * gimple.h (is_gimple_builtin_call): Declare ...
3856 * gimple.c (is_gimple_builtin_call): ... new public function.
3857 * asan.c (insert_if_then_before_iter, instrument_mem_region_access,
3858 instrument_strlen_call, maybe_instrument_builtin_call,
3859 instrument_call): New static functions.
3860 (create_cond_insert_point): Renamed
3861 create_cond_insert_point_before_iter into this. Add a new
3862 parameter to decide whether to insert the condition before or
3863 after the statement iterator.
3864 (build_check_stmt): Adjust for the new create_cond_insert_point.
3865 Add a new parameter to decide whether to add the instrumentation
3866 code before or after the statement iterator.
3867 (instrument_assignment): Factorize from ...
3868 (transform_statements): ... here. Use maybe_instrument_call to
3869 instrument builtin function calls as well.
3870 (instrument_derefs): Adjust for the new parameter of
3871 build_check_stmt. Fix detection of bit-field access.
3873 2012-11-12 Dodji Seketeli <dodji@redhat.com>
3875 * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
3876 (build_check_stmt): ... here.
3878 2012-11-12 Dodji Seketeli <dodji@redhat.com>
3880 * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
3881 (build_check_stmt): ... here.
3883 2012-11-12 Dodji Seketeli <dodji@redhat.com>
3885 * asan.c (build_check_stmt): Accept the memory access to be
3886 represented by an SSA_NAME.
3888 2012-11-12 Jakub Jelinek <jakub@redhat.com>
3889 Wei Mi <wmi@google.com>
3891 * varasm.c: Include asan.h.
3892 (assemble_noswitch_variable): Grow size by asan_red_zone_size
3893 if decl is asan protected.
3894 (place_block_symbol): Likewise.
3895 (assemble_variable): If decl is asan protected, increase
3896 DECL_ALIGN if needed, and for decls emitted using
3897 assemble_variable_contents append padding zeros after it.
3898 * Makefile.in (varasm.o): Depend on asan.h.
3899 * asan.c: Include output.h.
3900 (asan_pp, asan_pp_initialized, asan_ctor_statements): New variables.
3901 (asan_pp_initialize, asan_pp_string): New functions.
3902 (asan_emit_stack_protection): Use asan_pp{,_initialized}
3903 instead of local pp{,_initialized} vars, use asan_pp_initialize
3904 and asan_pp_string helpers.
3905 (asan_needs_local_alias, asan_protect_global,
3906 asan_global_struct, asan_add_global): New functions.
3907 (asan_finish_file): Protect global vars that can be protected. Use
3908 asan_ctor_statements instead of ctor_statements
3909 * asan.h (asan_protect_global): New prototype.
3910 (asan_red_zone_size): New inline function.
3912 2012-11-12 Jakub Jelinek <jakub@redhat.com>
3914 * Makefile.in (asan.o): Depend on $(EXPR_H) $(OPTABS_H).
3915 (cfgexpand.o): Depend on asan.h.
3916 * asan.c: Include expr.h and optabs.h.
3917 (asan_shadow_set): New variable.
3918 (asan_shadow_cst, asan_emit_stack_protection): New functions.
3919 (asan_init_shadow_ptr_types): Initialize also asan_shadow_set.
3920 * cfgexpand.c: Include asan.h. Define HOST_WIDE_INT heap vector.
3921 (partition_stack_vars): If i is large alignment and j small
3922 alignment or vice versa, break out of the loop instead of continue,
3923 and put the test earlier. If flag_asan, break out of the loop
3924 if for small alignment size is different.
3925 (struct stack_vars_data): New type.
3926 (expand_stack_vars): Add DATA argument. Change PRED type to
3927 function taking size_t argument instead of tree. Adjust pred
3928 calls. Fill DATA in and add needed padding in between variables
3929 if -faddress-sanitizer.
3930 (defer_stack_allocation): Defer everything for flag_asan.
3931 (stack_protect_decl_phase_1, stack_protect_decl_phase_2): Take
3932 size_t index into stack_vars array instead of the decl directly.
3933 (asan_decl_phase_3): New function.
3934 (expand_used_vars): Return var destruction sequence. Adjust
3935 expand_stack_vars calls, add another one for flag_asan. Call
3936 asan_emit_stack_protection if expand_stack_vars added anything
3938 (expand_gimple_basic_block): Add disable_tail_calls argument.
3939 (gimple_expand_cfg): Pass true to it if expand_used_vars returned
3940 non-NULL. Emit the sequence returned by expand_used_vars after
3942 * asan.h (asan_emit_stack_protection): New prototype.
3943 (asan_shadow_set): New decl.
3944 (ASAN_RED_ZONE_SIZE, ASAN_STACK_MAGIC_LEFT, ASAN_STACK_MAGIC_MIDDLE,
3945 ASAN_STACK_MAGIC_RIGHT, ASAN_STACK_FRAME_MAGIC): Define.
3946 (asan_protect_stack_decl): New inline.
3947 * toplev.c (process_options): Also disable -faddress-sanitizer on
3948 !FRAME_GROWS_DOWNWARDS targets.
3950 2012-11-12 Jakub Jelinek <jakub@redhat.com>
3952 * asan.c (build_check_stmt): Rename join_bb variable to else_bb.
3953 (gate_asan_O0): New function.
3954 (pass_asan_O0): New variable.
3955 * passes.c (init_optimization_passes): Add pass_asan_O0.
3956 * tree-pass.h (pass_asan_O0): New declaration.
3958 2012-11-12 Jakub Jelinek <jakub@redhat.com>
3959 Xinliang David Li <davidxl@google.com>
3960 Dodji Seketeli <dodji@redhat.com>
3962 * Makefile.in (GTFILES): Add $(srcdir)/asan.c.
3963 (asan.o): Update the dependencies of asan.o.
3964 * asan.c (tm.h, tree.h, tm_p.h, basic-block.h, flags.h
3965 function.h, tree-inline.h, tree-dump.h, diagnostic.h, demangle.h,
3966 langhooks.h, ggc.h, cgraph.h, gimple.h): Remove these unused but
3968 (shadow_ptr_types): New variable.
3969 (report_error_func): Change is_store argument to bool, don't append
3970 newline to function name.
3971 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Define.
3972 (build_check_stmt): Change is_store argument to bool. Emit GIMPLE
3973 directly instead of creating trees and gimplifying them. Mark
3974 the error reporting function as very unlikely.
3975 (instrument_derefs): Change is_store argument to bool. Use
3976 int_size_in_bytes to compute size_in_bytes, simplify size check.
3977 Use build_fold_addr_expr instead of build_addr.
3978 (transform_statements): Adjust instrument_derefs caller.
3979 Use gimple_assign_single_p as stmt test. Don't look at MEM refs
3981 (asan_init_shadow_ptr_types): New function.
3982 (asan_instrument): Don't push/pop gimplify context.
3983 Call asan_init_shadow_ptr_types if not yet initialized.
3984 * asan.h (ASAN_SHADOW_SHIFT): Adjust comment.
3986 2012-11-12 Jakub Jelinek <jakub@redhat.com>
3988 * toplev.c (process_options): Warn and turn off
3989 -faddress-sanitizer if not supported by target.
3990 * asan.c: Include target.h.
3991 (asan_scale, asan_offset_log_32, asan_offset_log_64,
3992 asan_offset_log): Removed.
3993 (build_check_stmt): Use ASAN_SHADOW_SHIFT and
3994 targetm.asan_shadow_offset ().
3995 (asan_instrument): Don't initialize asan_offset_log.
3996 * asan.h (ASAN_SHADOW_SHIFT): Define.
3997 * target.def (TARGET_ASAN_SHADOW_OFFSET): New hook.
3998 * doc/tm.texi.in (TARGET_ASAN_SHADOW_OFFSET): Add it.
3999 * doc/tm.texi: Regenerated.
4000 * Makefile.in (asan.o): Depend on $(TARGET_H).
4001 * config/i386/i386.c (ix86_asan_shadow_offset): New function.
4002 (TARGET_ASAN_SHADOW_OFFSET): Define.
4004 2012-11-12 Wei Mi <wmi@google.com>
4005 Diego Novillo <dnovillo@google.com>
4006 Dodji Seketeli <dodji@redhat.com>
4008 * Makefile.in: Add asan.c and its dependencies.
4009 * common.opt: Add -faddress-sanitizer option.
4010 * doc/invoke.texi: Document the new flag.
4011 * passes.c: Add the asan pass.
4012 * toplev.c (compile_file): Call asan_finish_file.
4015 * tree-pass.h: Declare pass_asan.
4017 2012-11-12 Tobias Burnus <burnus@net-b.de>
4019 * diagnostic.c (diagnostic_append_note): Also call va_end when
4020 inhibit_notes_p is true.
4022 2012-11-12 Bin Cheng <bin.cheng@arm.com>
4024 * gcse.c (struct bb_data): Add new fields, old_pressure, live_in
4026 (get_regno_pressure_class): Add prototype.
4027 (update_bb_reg_pressure): New.
4028 (should_hoist_expr_to_dom): Add new parameter from.
4029 Monitor the change of reg pressure and use it to drive hoisting.
4030 (hoist_code): Update LIVE and reg pressure information.
4031 (calculate_bb_reg_pressure): Initialize live_in and backup.
4033 2012-11-12 Oleg Endo <olegendo@gcc.gnu.org>
4035 * doc/md.texi (Standard Pattern Names For Generation): Fix swapped
4036 sine and cosine operands in the sincos description.
4038 2012-11-12 Oleg Endo <olegendo@gcc.gnu.org>
4041 * config/sh/sh.md (sincossf3): Fix swapped sin and cos operands.
4043 2012-11-11 H.J. Lu <hongjiu.lu@intel.com>
4045 * config/i386/i386.md (*movti_internal_rex64): Remove "!" from
4048 2012-11-11 Eric Botcazou <ebotcazou@adacore.com>
4050 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak.
4051 * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto.
4053 2012-11-11 Eric Botcazou <ebotcazou@adacore.com>
4054 H.J. Lu <hongjiu.lu@intel.com>
4056 PR rtl-optimization/55247
4058 * emit-rtl.c (adjust_address_1): If POINTERS_EXTEND_UNSIGNED > 0,
4060 * recog.c (offsettable_address_addr_space_p): Likewise.
4062 2012-11-11 Steven Bosscher <steven@gcc.gnu.org>
4065 * postreload.c (rest_of_handle_postreload): With non-call exceptions,
4066 if edges are purged call cleanup_cfg to remove unreachable blocks.
4068 2012-11-11 Sandra Loosemore <sandra@codesourcery.com>
4070 * doc/extend.texi: Copy-edit to use "built-in function" instead
4071 of "builtin", per GCC coding standards. Also use consistent
4072 capitalization in titles of sections describing built-in functions.
4074 2012-11-11 Martin Jambor <mjambor@suse.cz>
4076 PR tree-optimization/55238
4077 * ipa-cp.c (agg_pass_through_permissible_p): New function.
4078 (propagate_aggs_accross_jump_function): Use it.
4079 (find_aggregate_values_for_callers_subset): Likewise and relax an
4082 2012-11-10 Uros Bizjak <ubizjak@gmail.com>
4085 * config/i386/i386.c (check_avx256_stores): Remove.
4086 (ix86_check_avx256_register): New.
4087 (ix86_avx_u128_mode_needed): Use ix86_check_avx256_register.
4088 Check the whole RTX for 256bit registers using for_each_rtx.
4089 (ix86_check_avx_stores): New.
4090 (ix86_avx_u128_mode_after): Change mode of CALL RTX to AVX_U128_CLEAN
4091 if there are no 256bit registers used in the function return register.
4092 (ix86_avx_u128_mode_entry): Use ix86_check_avx256_register.
4093 (ix86_avx_u128_mode_exit): Ditto.
4095 2012-11-10 Jan Hubicka <jh@suse.cz>
4098 * ipa-inline.c (want_inline_small_function_p): Take aray index hint.
4099 (edge_badness): Likewise.
4100 * ipa-inline.h (inline_hints_vals): Add array_index and comments.
4101 (inline_summary): Add ARRAY_INDEX.
4102 * ipa-inline-analysis.c (dump_inline_hints): Dump array_index hint.
4103 (reset_inline_summary): Handle array_index hint.
4104 (inline_node_duplication_hook): Likewise.
4105 (dump_inline_summary): Likewise.
4106 (array_index_predicate): New function.
4107 (estimate_function_body_sizes): Use it.
4108 (estimate_node_size_and_time): Use array_index hint.
4109 (inline_merge_summary, inline_read_section): Likewise.
4111 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
4113 * doc/extend.texi: Copy-edit to use "bit-field" consistently
4114 instead of "bitfield" or "bit field".
4116 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
4118 * doc/extend.texi: Copy-edit to fix incorrect hyphenation phrases
4119 involving "bit", "byte", "word", "precision", and "floating"
4122 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
4124 * doc/extend.texi: Copy-edit to fix incorrect uses of "which"
4125 and "that" throughout the file.
4127 2012-11-10 Andrew Pinski <apinski@cavium.com>
4130 * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new"
4132 * configure: Regenerate.
4134 2012-11-10 Eric Botcazou <ebotcazou@adacore.com>
4136 * expr.c (store_field): Remove TYPE parameter. Remove block of code
4137 dealing with BLKmode in registers. Reimplement this support using
4138 pseudo-registers and bit-field techniques.
4139 (store_constructor_field): Remove TYPE parameter and adjust calls to
4141 (expand_assignment): Adjust calls to store_field. Add comment.
4142 (store_expr): Add comment.
4143 (store_constructor): Adjust calls to store_constructor_field.
4144 (expand_expr_real_2): Adjust call to store_field.
4146 2012-11-10 Vladimir Makarov <vmakarov@redhat.com>
4147 Uros Bizjak <ubizjak@gmail.com>
4150 * config/i386/i386.md (*movti_internal_rex64): Add "!" to riF->o
4153 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4156 * doc/invoke.texi: Document f[no-]ext-numeric-literals flag.
4158 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
4160 * doc/install.texi (sparc64-x-solaris2): Mention MPC as well.
4162 2012-11-09 Richard Henderson <rth@redhat.com>
4164 * config/i386/i386.c (ix86_lra_p): Remove.
4165 (TARGET_LRA_P): Use hook_bool_void_true.
4167 2012-11-09 Jason Merrill <jason@redhat.com>
4169 * attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST.
4171 2012-11-09 Vladimir Makarov <vmakarov@redhat.com>
4173 PR tree-optimization/55154
4174 * lra-int.h (LRA_LOSER_COST_FACTOR, LRA_MAX_REJECT): New macros.
4175 * lra.c (setup_operand_alternative): Use them.
4176 * lra-constraints.c (LOSER_COST_FACTOR, MAX_OVERALL_COST_BOUND):
4178 (process_alt_operands): Use LRA_LOSER_COST_FACTOR and LRA_MAX_REJECT.
4179 Accumulate reject instead of setting for non-const.
4180 (curr_insn_transform): Initialize best_losers and best_overall by
4183 2012-11-09 Christian Bruel <christian.bruel@st.com>
4185 * config/sh/sh.c (sh_can_use_simple_return_p): Enable with
4186 -freorder-blocks-and-partition.
4188 2012-11-09 Kenneth Zadeck <zadeck@naturalbridge.com>
4190 * rtl.h (CONST_SCALAR_INT_P): New macro.
4191 * cfgexpand.c (expand_debug_locations): Changed to use
4192 CONST_SCALAR_INT_P macro.
4193 * combine.c (try_combine, subst, make_extraction,
4194 gen_lowpart_for_combine): Ditto.
4195 * cselib.c (entry_and_rtx_equal_p, rtx_equal_for_cselib_1): Ditto.
4196 * dwarf2out.c (loc_descriptor): Ditto.
4197 * emit-rtl.c (gen_lowpart_common): Ditto.
4198 * ira-costs.c (record_reg_classes, record_address_regs): Ditto.
4199 * ira-lives.c (single_reg_class): Ditto.
4200 * recog.c (simplify_while_replacing, asm_operand_ok,
4201 constrain_operands): Ditto.
4202 * reload.c (find_reloads): Ditto.
4203 * simplify-rtx.c (simplify_unary_operation_1,
4204 simplify_const_unary_operation, simplify_binary_operation_1,
4205 simplify_const_binary_operation, simplify_relational_operation_1,
4206 simplify_subreg): Ditto.
4208 2012-11-09 Steven Bosscher <steven@gcc.gnu.org>
4211 * postreload.c (reload_cse_simplify): Return a bool indicating
4212 whether the CFG was changed.
4213 (reload_cse_regs_1): Traverse the CFG instead of the insns chain.
4214 Cleanup the CFG if edges may have been removed.
4215 (reload_cse_regs): Update.
4217 2012-11-09 Andrey Belevantsev <abel@ispras.ru>
4219 PR rtl-optimization/54472
4220 * sel-sched-ir.c (has_dependence_note_reg_set): Handle implicit sets.
4221 (has_dependence_note_reg_clobber, has_dependence_note_reg_use):
4224 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
4226 * config/i386/i386.c (release_scratch_register_on_entry): Also adjust
4229 2012-11-08 Christian Bruel <christian.bruel@st.com>
4231 * tree-ssa-tail-merge.c (replace_block_by): Update bb2 profile count.
4232 Do not reset dead bb1->frequency.
4234 2012-11-08 Steven Bosscher <steven@gcc.gnu.org>
4236 PR tree-optimization/55191
4237 * cfganal.c (connect_infinite_loops_to_exit): Call dfs_deadend here.
4238 (flow_dfs_compute_reverse_execute): Don't call it here.
4240 2012-11-08 Jakub Jelinek <jakub@redhat.com>
4243 * dwarf2out.c (gen_compile_unit_die): Don't call gen_producer_string
4244 here, instead add "" if producer_string is NULL.
4245 (dwarf2out_finish): Call gen_producer_string here, unconditionally
4246 decrease refcount of the old indirect string and set val_str to
4247 find_AT_string result.
4250 * cgraphunit.c (assemble_thunk): Don't call source_line debug hook
4251 here, instead call insn_locations_{init,finalize} and initialize
4254 2012-11-08 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4257 * gcc.c (process_command): Use save_switch for synthesized
4258 -fcompare-debug=* option; mark the switch as known.
4260 2012-11-08 Jakub Jelinek <jakub@redhat.com>
4263 * config/rs6000/rs6000.c (legitimate_indirect_address_p): Remove
4266 2012-11-08 Bernd Schmidt <bernds@codesourcery.com>
4268 PR rtl-optimization/54850
4269 * sched-deps.c (find_inc): Add all dependencies from the inc_insn
4272 2012-11-08 Jan Hubicka <jh@suse.cz>
4275 * ipa-inline.c (big_speedup_p): New function.
4276 (want_inline_small_function_p): Use it.
4277 (edge_badness): Dump it.
4278 * params.def (inline-min-speedup): New parameter.
4279 * doc/invoke.texi (inline-min-speedup): Document.
4281 2012-11-08 Martin Jambor <mjambor@suse.cz>
4283 * ipa-prop.c (determine_known_aggregate_parts): Skip writes to
4284 different declarations when tracking writes to a declaration.
4286 2012-11-07 David S. Miller <davem@davemloft.net>
4288 * config/sparc/constraints.md ("U"): Document, in detail,
4289 which this constraint is necessary.
4291 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
4294 * expr.c (store_expr): Do not call emit_block_move for
4297 2012-11-07 Eric Botcazou <ebotcazou@adacore.com>
4300 * fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if
4301 the argument is itself a conditional expression.
4303 2012-11-07 Vladimir Makarov <vmakarov@redhat.com>
4305 PR rtl-optimization/55122
4306 * lra-constraints.c (match_reload): Sync values for dead input pseudos.
4308 2012-11-07 Richard Henderson <rth@redhat.com>
4310 * trans-mem.c (pass_ipa_tm): Don't use TODO_update_ssa.
4312 2012-11-07 Peter Bergner <bergner@vnet.ibm.com>
4314 * doc/invoke.texi (-mcpu=power8): Document.
4315 * config.in (HAVE_AS_POWER8): New.
4316 * config.gcc: Add cpu_type power8.
4317 * configure.ac: (HAVE_AS_POWER8): Check for assembler support for
4318 the POWER8 instructions.
4319 * configure: Regenerate.
4320 * config/rs6000/rs6000.h: (ASM_CPU_POWER8_SPEC): Define.
4321 (ASM_CPU_SPEC): Pass %(asm_cpu_power8) for -mcpu=power8.
4322 (EXTRA_SPECS): Add asm_cpu_power8 spec string.
4323 * config/rs6000/rs6000-cpus.def (processor_target_table): Alias
4325 * config/rs6000/rs6000-tables.opt: Regenerate.
4326 * config/rs6000/driver-rs6000.c (ASM_CPU_SPEC): For -mcpu=power8,
4327 pass %(asm_cpu_power8)/-mpwr8.
4328 * config/rs6000/aix53.h: Likewise.
4329 * config/rs6000/aix61.h: Likewise.
4331 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
4334 * config/i386/i386.c (ix86_function_ok_for_sibcall): Put back exception
4335 to make a sibcall if one of the functions has void return type.
4337 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4340 * doc/invoke.texi (Wformat): Update.
4342 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4344 * optc-gen.awk: Factor code out to...
4345 * opt-functions.awk (lang_enabled_by): ... this new function.
4347 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4350 * common.opt (Wswitch,Wswitch-default,Wswitch-enum): Move to c.opt.
4352 2012-11-07 Yufeng Zhang <yufeng.zhang@arm.com>
4354 * config/aarch64/aarch64.c (aarch64_expand_prologue): Add the missing
4355 argument 'Pmode' to the 'plus_constant' call.
4357 2012-11-07 Martin Jambor <mjambor@suse.cz>
4359 PR tree-optimization/53787
4360 * ipa-cp.c (ipcp_value_source): New field offset.
4361 (ipcp_agg_lattice): New type.
4362 (ipcp_param_lattices): Likewise, move virt_call from ipcp_lattice here.
4363 (ipcp_agg_lattice_pool): New variable.
4364 (ipa_get_parm_lattices): New function.
4365 (ipa_get_lattice): Turned into ipa_get_scalar_lat, use the above.
4366 Adjusted all callers.
4367 (print_lattice): New function.
4368 (print_all_lattices): Use the above, also print aggregate lattices.
4369 (set_agg_lats_to_bottom): New function.
4370 (set_agg_lats_contain_variable): Likewise.
4371 (set_all_contains_variable): Likewise.
4372 (initialize_node_lattices): Also handle aggregate lattices, set
4373 virt_call in ipcp_param_lattices.
4374 (add_value_source): Handle offsets.
4375 (add_value_to_lattice): Likewise.
4376 (add_scalar_value_to_lattice): New function.
4377 (propagate_vals_accross_pass_through): Use add_scalar_value_to_lattice.
4378 (propagate_vals_accross_ancestor): Likewise.
4379 (propagate_accross_jump_function): Renamed to
4380 propagate_scalar_accross_jump_function, use
4381 add_scalar_value_to_lattice.
4382 (set_check_aggs_by_ref): New function.
4383 (merge_agg_lats_step): Likewise.
4384 (set_chain_of_aglats_contains_variable): Likewise.
4385 (merge_aggregate_lattices): Likewise.
4386 (propagate_constants_accross_call): Also handle aggregate lattices.
4387 (hint_time_bonus): New function.
4388 (context_independent_aggregate_values): Likewise.
4389 (gather_context_independent_values): Also handle agggregate values.
4390 (agg_jmp_p_vec_for_t_vec): New function.
4391 (estimate_local_effects): Also handle agggregate values.
4392 (add_all_node_vals_to_toposort): Likewise.
4393 (ipcp_propagate_stage): Use struct ipcp_param_lattices.
4394 (get_clone_agg_value): New function.
4395 (cgraph_edge_brings_value_p): Also handle agggregate values.
4396 (create_specialized_node): Likewise.
4397 (find_more_values_for_callers_subset): Rename to
4398 find_more_scalar_values_for_callers_subset. Modify dump.
4399 (copy_plats_to_inter): New function.
4400 (intersect_with_plats): Likewise.
4401 (agg_replacements_to_vector): Likewise.
4402 (intersect_with_agg_replacements): Likewise.
4403 (find_aggregate_values_for_callers_subset): Likewise.
4404 (known_aggs_to_agg_replacement_list): Likewise.
4405 (cgraph_edge_brings_all_scalars_for_node): Likewise.
4406 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4407 (perhaps_add_new_callers): Old functionality moved to
4408 cgraph_edge_brings_all_scalars_for_node, call it and
4409 cgraph_edge_brings_all_agg_vals_for_node.
4410 (ipcp_val_in_agg_replacements_p): New function.
4411 (decide_about_value): New function.
4412 (decide_whether_version_node): A lot of functionality moved to
4413 decide_about_value. Also handle agggregate values.
4414 (ipcp_driver): Also allocate ipcp_agg_lattice_pool.
4415 (pass_ipa_cp): Fill in new entries.
4416 * ipa-prop.c (ipa_node_agg_replacements): New variable.
4417 (free_parms_ainfo): New function.
4418 (ipa_analyze_node): Use free_parms_ainfo to free stuff.
4419 (ipa_find_agg_cst_for_param): Do not rely on offset ordering.
4420 (ipa_set_node_agg_value_chain): New function.
4421 (ipa_node_removal_hook): Also handle ipa_node_agg_replacements.
4422 (ipa_node_duplication_hook): Likewise.
4423 (ipa_free_all_structures_after_ipa_cp): Also free ipcp_agg_lattice_pool.
4424 (ipa_free_all_structures_after_iinln): Likewise.
4425 (ipa_dump_agg_replacement_values): New function.
4426 (write_agg_replacement_chain): Likewise.
4427 (read_agg_replacement_chain): Likewise.
4428 (ipa_prop_write_all_agg_replacement): Likewise.
4429 (read_replacements_section): Likewise.
4430 (ipa_prop_read_all_agg_replacement): Likewise.
4431 (adjust_agg_replacement_values): Likewise.
4432 (ipcp_transform_function): Likewise.
4433 * ipa-prop.h: Also define heap vector of ipa_agg_jf_item_t and of
4434 ipa_agg_jump_function_t.
4435 (ipa_node_params): Make lattices an array of ipcp_param_lattices.
4436 (ipa_agg_replacement_value): New type and its vector.
4437 (ipa_set_node_agg_value_chain) Declare.
4438 (ipa_node_agg_replacements): Likewise.
4439 (ipa_get_agg_replacements_for_node): New function.
4440 (ipcp_agg_lattice_pool): Declare.
4441 (ipa_dump_agg_replacement_values): Likewise.
4442 (ipa_prop_write_all_agg_replacement): Likewise.
4443 (ipa_prop_read_all_agg_replacement): Likewise.
4444 (ipcp_transform_function): Likewise.
4445 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time): Pass around
4446 known aggregates and hints.
4447 * ipa-inline.h: include ipa-prop.h.
4448 (estimate_ipcp_clone_size_and_time): Adjust declaration.
4449 * lto-streamer.h (lto_section_type): New item
4450 LTO_section_ipcp_transform.
4451 * lto-section-in.c (lto_section_name): New element ipcp_trans.
4452 * params.def (PARAM_IPA_CP_LOOP_HINT_BONUS): New parameter.
4453 * Makefile.in (IPA_INLINE_H): New. Use everywhee instead of
4456 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
4458 * config/i386/i386.c (enum upper_128bits_state): Remove.
4459 (check_avx256_store): Use bool pointer argument.
4460 (ix86_avx_u128_mode_needed): Use note_stores also for CALL insns.
4461 * config/i386/predicates.md (vzeroupper_operation): Use match_test.
4463 2012-11-07 Yufeng Zhang <yufeng.zhang@arm.com>
4465 * config/aarch64/aarch64.c (aarch64_expand_prologue): For the
4466 load-pair with writeback instruction, replace
4467 aarch64_set_frame_expr with add_reg_note (REG_CFA_ADJUST_CFA);
4468 add new local variable 'cfa_reg' and use it.
4470 2012-11-07 Kaz Kojima <kkojima@gcc.gnu.org>
4473 * mode-switching.c (create_pre_exit): Set short_block if there
4476 2012-11-07 Martin Jambor <mjambor@suse.cz>
4478 * lto-cgraph.c: Include tree-pass.h.
4479 (lto_output_node): Stream node->ipa_transforms_to_apply.
4480 (input_node): Likewise.
4481 * tree-pass.h (passes_by_id): Declare.
4482 (passes_by_id_size): Likewise.
4483 * Makefile.in (lto-cgraph.o): Add TREE_PASS_H to dependencies.
4485 2012-11-07 Jan Hubicka <jh@suse.cz>
4487 * ipa-inline-analysis.c (true_predicate, single_cond_predicate,
4488 reset_inline_edge_summary): Fix formatting.
4489 (account_size_time): Bump up the limit on number of size/time
4491 (estimate_function_body_sizes): Work in reverse postorder.
4493 2012-11-07 David S. Miller <davem@davemloft.net>
4497 * config/sparc/constraints.md ("U"): Delete.
4498 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
4499 * config/sparc/sync.md: Likewise.
4500 And revert parts of:
4501 * doc/md.texi: Sync sparc constraint documentation with reality.
4503 2012-11-07 Jakub Jelinek <jakub@redhat.com>
4505 * config/i386/i386.c (ix86_avx_u128_mode_after): Don't
4506 look for reg in CALL operand.
4509 * tree-flow.h (propagate_threaded_block_debug_into): New prototype.
4510 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): No
4512 * tree-ssa-loop-ch.c (copy_loop_headers): Use it.
4514 2012-11-06 Sterling Augustine <saugustine@google.com>
4516 * dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF.
4518 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
4519 Richard Henderson <rth@redhat.com>
4521 * cfg-flags.def (TM_UNINSTRUMENTED, TM_ABORT): New.
4522 * trans-mem.c (PROB_VERY_LIKELY, PROB_UNLIKELY, PROB_LIKELY): New.
4523 (struct tm_region): Add tm_state, restart_block,
4524 original_transaction_was_outer.
4525 (tm_region_init_0): Initialize them.
4526 (collect_bb2reg, get_bb_regions_instrumented): New.
4527 (tm_log_emit_save_or_restores): Merge into ...
4528 (expand_transaction): ... here.
4529 (generate_tm_state, propagate_tm_flags_out): New.
4530 (execute_tm_mark): Avoid processing blocks more than once.
4531 (split_bb_make_tm_edge): Split out from ...
4532 (make_tm_edge): ... here. And merge the rest into ...
4533 (expand_block_edges): ... here.
4534 (execute_tm_edges): Avoid processing blocks more than once.
4535 (ipa_uninstrument_transaction): New.
4536 (ipa_tm_scan_calls_transaction): Use it. Rebuild cgraph and ssa.
4537 (ipa_tm_execute): Init and free original_copy_tables.
4538 * trans-mem.h (PR_MULTIWAYCODE): New.
4539 * tree-cfg.c (make_edges): Use EDGE_TM_ABORT.
4541 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
4543 * cfghooks.c (copy_bbs): Handle a null loop_father.
4545 * cgraph.c (cgraph_debug_gimple_stmt): Handle a null
4546 current_function_decl.
4548 2012-11-06 Richard Henderson <rth@redhat.com>
4550 * tree-ssa-tail-merge.c (find_duplicate): Do not consider
4551 is_tm_ending_fndecl calls as mergable.
4553 2012-11-06 Sterling Augustine <saugustine@google.com>
4554 Cary Coutant <ccoutant@google.com>
4556 * common.opt (gno-split-dwarf, gsplit-dwarf): New switches.
4557 * doc/invoke.texi (Debugging Options): Document them.
4558 * gcc.c (replace_extension_spec_func): New function.
4559 (ASM_FINAL_SPEC): Adjust.
4560 (static_spec_functions): Add new field for replace-extension.
4561 (check_live_switch): Adjust comment. Add case for 'g'.
4562 * opts.c (finish_options): Set x_debug_generate_pub_sections based on
4563 x_dwarf_split_debug_info.
4564 (common_handle_option): Add case for OPT_gsplit_dwarf.
4565 * dwarf2out.h (addr_table_entry_struct): Add forward declaration.
4566 (dw_val_struct): Add val_entry pointer.
4567 * dwarf2out.c (debug_skeleton_info_section,
4568 debug_skeleton_abbrev_section, debug_addr_section,
4569 debug_skeleton_line_section, debug_str_offsets_section): New globals.
4570 (NOT_INDEXED, NO_INDEX_ASSIGNED): New defines.
4571 (indirect_string_node): New field index.
4572 (ate_kind): New enum with fields ate_kind_rtc, ate_kind_rtx_dtprel,
4574 (addr_table_entry): New structure and type.
4575 (dw_loc_list_struct): Add field begin_entry.
4576 (new_loc_desc): Initialize val_entry.
4577 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
4578 Add cases for DW_OP_GNU_addr_index and DW_OP_const_index.
4579 (build_cfa_loc): Initialize val_entry.
4580 (AT_index, add_addr_table_entry, remove_addr_table_entry,
4581 add_AT_lbl_id): New functions.
4582 (add_AT_addr, add_AT_range_list): New parameter force_direct.
4583 (output_die_abbrevs): New function.
4584 (add_ranges_by_labels): New parameter force_direct.
4585 (output_line_info): New parameter prologue_only.
4586 (dtprel_bool): New enum with dtprel_false and dtprel_true.
4587 (dw_addr_op, new_addr_loc_descr): New functions.
4588 (DEBUG_DWO_INFO_SECTION, DEBUG_DWO_ABBREV_SECTION,
4589 DEBUG_ADDR_SECTION, DEBUG_NORM_MACINFO_SECTION,
4590 DEBUG_DWO_MACINFO_SECTION, DEBUG_MACINFO_SECTION,
4591 DEBUG_NORM_MACRO_SECTION, DEBUG_DWO_MACRO_SECTION,
4592 DEBUG_MACRO_SECTION, DEBUG_DWO_LINE_SECTION,
4593 DEBUG_DWO_LOC_SECTION, DEBUG_NORM_STR_OFFSETS_SECTION,
4594 DEBUG_DWO_STR_OFFSETS_SECTION, DEBUG_STR_OFFSETS_SECTION,
4595 DEBUG_DWO_STR_SECTION, DEBUG_NORM_STR_SECTION, DEBUG_STR_SECTION,
4596 DEBUG_MACRO_SECTION_FLAGS, DEBUG_SKELETON_LINE_SECTION_LABEL,
4597 DEBUG_SKELETON_INFO_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL
4598 DEBUG_SKELETON_ABBREV_SECTION_LABEL): New macros.
4599 (DEBUG_STR_SECTION_FLAGS): Adjust.
4600 (TEXT_SECTION_LABEL, COLD_TEXT_SECTION_LABEL,
4601 DEBUG_LINE_SECTION_LABEL, DEBUG_INFO_SECTION_LABEL,
4602 DEBUG_ABBREV_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL,
4603 DEBUG_LOC_SECTION_LABEL, DEBUG_RANGES_SECTION_LABEL,
4604 DEBUG_MACINFO_SECTION_LABEL, DEBUG_MACRO_SECTION_LABEL): Adjust
4606 (debug_skeleton_abbrev_section_label, debug_addr_section_label,
4607 debug_skeleton_line_section_label, debug_skeleton_info_section_label):
4608 New global variables.
4609 (add_AT_flag, add_AT_int, add_AT_unsigned, add_AT_double, add_AT_vec,
4610 add_AT_data8): Initialize val_entry.
4611 (add_AT_low_high_pc): New parameter force_direct. Handle
4612 dwarf_split_debug_info.
4613 (set_indirect_string, find_AT_string_form): New functions.
4614 (AT_string_form): Adjust to call find_AT_string_from.
4615 (add_AT_die_ref, add_AT_fde_ref, add_AT_loc, add_AT_list):
4616 Initialize val_entry.
4617 (addr_index_table): New global variable.
4618 (addr_table_entry_do_hash, addr_table_entry_eq, add_addr_table_entry,
4619 init_addr_table_entry, remove_addr_table_entry, index_addr_table_entry,
4620 remove_loc_list_addr_table_entries): New functions.
4621 (add_AT_addr, add_AT_lbl_id, add_AT_range_list): New parameter
4622 force_direct. Handle dwarf_split_debug_info.
4623 (add_AT_file, add_AT_vms_delta, add_AT_lineptr, add_AT_macptr,
4624 add_AT_offset): Initialize val_entry.
4625 (UNRELOCATED_OFFSET, RELOCATED_OFFSET): New defines.
4626 (size_of_die): Handle dwarf_split_debug_info.
4627 (size_of_aranges, value_format): Call AT_class. Check AT_index.
4628 (output_die_abbrevs): New function.
4629 (output_abbrev_section): Call output_die_abbrevs.
4630 (new_loc_list): Initialize begin_entry.
4631 (output_loc_list): Handle dwarf_split_debug_info.
4632 (output_range_list_offset, output_loc_list_offset,
4633 output_attr_index_or_value, ): New functions.
4634 (output_die): Fix call to dw2_asm_output_data. Call
4635 output_attr_index_or_value and output_range_list_offset.
4636 Adjust logic around dw_val_class_str.
4637 (add_top_lebel_skeleton_die_attrs, get_skeleton_type_unit,
4638 output_skeleton_debug_sections): New functions.
4639 (output_comdat_type_unit, output_pubname, output_aranges): Handle
4640 dwarf_split_debug_info.
4641 (add_ranges_by_labels): New parameter force_direct.
4642 (mem_loc_descriptor, loc_descr): Call new_addr_loc_descr.
4643 (loc_list_from_tree, add_const_value_attribtue): Use dtprel_bools in
4644 place of generic integer.
4645 (dwarf2out_vms_debug_main_pointer, gen_entry_point_die, gen_label_die,
4646 gen_call_site_die, gen_subprogram_die, gen_variable_die,
4647 add_high_low_attributes): Adjust calls to add_AT_lbl_id.
4648 (output_macinfo_op): Adjust indirect_string_logic.
4649 (save_macinfo_strings): New function.
4650 (output_macinfo): Adjust.
4651 (dwarf2out_init): Handle dwarf_split_debug_info.
4652 (index_string, output_index_string_offset, output_index_string): New
4654 (output_indirect_string): Adjust.
4655 (output_indirect_strings, output_addr_table_entry, output_addr_table):
4657 (resolve_addr_in_expr, hash_loc_operands): Handle DW_OP_GNU_addr_index
4658 and DW_OP_GNU_const_index. Handle dwarf_split_debug_info. Call
4659 remove_loc_list_addr_table_entries and remove_addr_table_entry.
4660 (index_location_lists): New function.
4661 (dwarf2out_finish): Handle dwarf_split_debug_info. New variable
4662 main_comp_unit_die. Adjust calls to add_AT_low_high_pc,
4663 add_ranges_by_labels, add_AT_addr, and add_AT_lineptr. Call
4664 save_macinfo_strings and output_indirect_strings.
4666 2012-11-06 Gerald Pfeifer <gerald@pfeifer.com>
4668 * config/i386/i386.c (make_dispatcher_decl): Guard with
4669 ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION.
4671 2012-11-06 Jan Hubicka <jh@suse.cz>
4673 * ipa-inline-analysis.c (estimate_function_body_sizes,
4674 inline_update_overall_summary): Cap time calculations.
4676 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
4678 * config/i386/i386.c (ix86_init_machine_status): Do not
4679 explicitly clear tls_descriptor_call_expanded_p again.
4681 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
4683 * config/i386/sse.md
4684 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
4685 as read and written by the instruction.
4687 2012-11-06 Alexandre Oliva <aoliva@redhat.com>
4690 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
4691 Use a stack vector before allocating a pointer set.
4693 2012-11-06 Martin Jambor <mjambor@suse.cz>
4695 * ipa-prop.c (ipa_get_param_decl_index_1): New function.
4696 (ipa_get_param_decl_index): Just call ipa_get_param_decl_index_1.
4697 (ipa_populate_param_decls): Accept descriptors parameter rather
4698 than the whole info.
4699 (load_from_unmodified_param): Likewise.
4700 (ipa_load_from_parm_agg_1): Likewise.
4701 (ipa_load_from_parm_agg): Extract descriptors from info.
4702 (compute_complex_assign_jump_func): Likewise.
4703 (ipa_analyze_indirect_call_uses): Likewise.
4705 2012-11-06 Jan Hubicka <jh@suse.cz>
4707 * ipa-inline.c (compute_uninlined_call_time): Return gcov_type.
4708 (compute_inlined_call_time): Watch overflows.
4709 (relative_time_benefit): Compute in gcov_type.
4711 2012-11-06 Jan Hubicka <jh@suse.cz>
4713 * cfgloopanal.c (get_loop_hot_path): New function.
4714 * tree-ssa-lop-ivcanon.c (struct loop_size): Add CONSTANT_IV,
4715 NUM_NON_PURE_CALLS_ON_HOT_PATH, NUM_PURE_CALLS_ON_HOT_PATH,
4716 NUM_BRANCHES_ON_HOT_PATH.
4717 (tree_estimate_loop_size): Compute the new values.
4718 (try_unroll_loop_completely): Disable unrolling of loops with only
4719 calls or too many branches.
4720 (tree_unroll_loops_completely): Deal also with outer loops of hot loops.
4721 * cfgloop.h (get_loop_hot_path): Declare.
4722 * params.def (PARAM_MAX_PEEL_BRANCHES): New parameters.
4723 * invoke.texi (max-peel-branches): Document.
4725 2012-11-06 Jan Hubicka <jh@suse.cz>
4727 * ipa-pure-const.c (check_stmt): Fix debug info formatting.
4729 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
4731 * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
4732 (ix86_instantiate_decls): New function.
4733 (ix86_expand_builtin) <case IX86_BUILTIN_LDMXCSR>: Use SLOT_TEMP
4734 stack slot instead of SLOT_VIRTUAL.
4735 <case IX86_BUILTIN_STMXCSR>: Ditto.
4736 (assign_386_stack_local): Do not assert when virtual slot is valid.
4737 * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL.
4738 * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot.
4739 (truncxf<mode>2): Ditto.
4740 (floatunssi<mode>2): Ditto.
4741 (isinf<mode>2): Ditto.
4742 * config/i386/sync.md (atomic_load<mode>): Ditto.
4743 (atomic_store<mode>): Ditto.
4745 2012-11-06 Jan Hubicka <jh@suse.cz>
4747 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound,
4748 vect_do_peeling_for_alignment): Fix loop bound computation.
4749 * tree-vect-loop.c (vect_transform_loop): Maintain loop bounds.
4751 2012-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4754 * config/sh/sh.c (and_xor_ior_costs, addsubcosts): Double the costs for
4755 ops larger than SImode.
4756 * config/sh/sh.md (rotcl, *rotcl): New insns and splits.
4757 (ashldi3_k): Convert to insn_and_split and use new rotcl insn.
4759 2012-11-06 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4762 * config/i386/i386-protos.h (emit_i387_cw_initialization): Delete.
4763 (emit_vzero): Add prototype.
4764 (ix86_mode_entry): Likewise.
4765 (ix86_mode_exit): Likewise.
4766 (ix86_emit_mode_set): Likewise.
4768 * config/i386/i386.c (typedef struct block_info_def): Delete.
4769 (define BLOCK_INFO): Delete.
4770 (check_avx256_stores): Add checking for MEM_P.
4771 (move_or_delete_vzeroupper_2): Delete.
4772 (move_or_delete_vzeroupper_1): Delete.
4773 (move_or_delete_vzeroupper): Delete.
4774 (ix86_maybe_emit_epilogue_vzeroupper): Delete.
4775 (function_pass_avx256_p): Delete.
4776 (ix86_function_ok_for_sibcall): Remove sibcall disabling.
4777 (nit_cumulative_args): Remove initialization of of avx256 fields of
4779 (ix86_emit_restore_sse_regs_using_mov): Remove vzeroupper generation.
4780 (ix86_expand_epilogue): Likewise.
4781 (ix86_avx_u128_mode_needed): New.
4782 (ix86_i387_mode_needed): Rename from ix86_mode_needed.
4783 (ix86_mode_needed): New.
4784 (ix86_avx_u128_mode_after): New.
4785 (ix86_mode_after): New.
4786 (ix86_avx_u128_mode_entry): New.
4787 (ix86_mode_entry): New.
4788 (ix86_avx_u128_mode_exit): New.
4789 (ix86_mode_exit): New.
4790 (ix86_emit_mode_set): New.
4791 (ix86_expand_call): Delete vzeroupper generation.
4792 (ix86_split_call_vzeroupper): Delete.
4793 (ix86_init_machine_status): Initialize optimize_mode_switching.
4794 (ix86_expand_special_args_builtin): Change.
4795 (ix86_reorg): Delete a call of move_or_delete_vzeroupper.
4797 * config/i386/i386.h (VALID_AVX256_REG_OR_OI_MODE): New.
4799 (avx_u128_state): New.
4800 (NUM_MODES_FOR_MODE_SWITCHING): Added AVX_U128_ANY.
4804 (EMIT_MODE_SET): Change.
4805 (machine_function): Delete avx256 fields.
4807 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): Delete.
4808 (define_insn_and_split "*call_vzeroupper"): Delete.
4809 (define_insn_and_split "*call_rex64_ms_sysv_vzeroupper"): Delete.
4810 (define_insn_and_split "*sibcall_vzeroupper"): Delete.
4811 (define_insn_and_split "*call_pop_vzeroupper"): Delete.
4812 (define_insn_and_split "*sibcall_pop_vzeroupper"): Delete.
4813 (define_insn_and_split "*call_value_vzeroupper"): Delete.
4814 (define_insn_and_split "*sibcall_value_vzeroupper"): Delete.
4815 (define_insn_and_split "*call_value_rex64_ms_sysv_vzeroupper"): Delete.
4816 (define_insn_and_split "*call_value_pop_vzeroupper"): Delete.
4817 (define_insn_and_split "*sibcall_value_pop_vzeroupper"): Delete.
4818 (define_expand "return"): Remove vzeroupper emitting.
4819 (define_expand "simple_return"): Delete.
4821 * config/i386/predicates.md (vzeroupper_operation): New.
4823 * config/i386/sse.md (avx_vzeroupper): Change.
4825 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
4826 Kaz Kojima <kkojima@gcc.gnu.org>
4829 * mode-switching.c (create_pre_exit): Set return_copy to
4830 last_insn when copy_start is a pseudo reg.
4832 2012-11-06 Andrey Turetskiy <andrey.turetskiy@gmail.com>
4834 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_avx2_umulhrswv16hi3
4835 to CODE_FOR_avx2_pmulhrswv16hi3.
4836 * config/i386/predicates.md (const1_operand): Extend for vectors.
4837 * config/i386/sse.md (ssse3_avx2): Extend.
4838 (ssedoublemode): Ditto.
4839 (<sse2_avx2>_uavg<mode>3): Merge avx2_uavgv32qi3, sse2_uavgv16qi3,
4840 avx2_uavgv16hi3 and sse2_uavgv8hi3 into one.
4841 (*<sse2_avx2>_uavg<mode>3): Merge *avx2_uavgv32qi3, *sse2_uavgv16qi3,
4842 *avx2_uavgv16hi3 and *sse2_uavgv8hi3 into one.
4844 (<ssse3_avx2>_pmulhrsw<mode>3): Merge avx2_umulhrswv16hi3,
4845 ssse3_pmulhrswv8hi3 and ssse3_pmulhrswv4hi3 into one.
4846 (*avx2_pmulhrswv16hi3): Replace const_vector with const1_operand
4848 (*ssse3_pmulhrswv8hi3): Ditto.
4849 (*ssse3_pmulhrswv4hi3): Ditto.
4851 2012-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
4853 * config/epiphany/epiphany.c (epiphany_address_cost):
4856 2012-11-05 Sriraman Tallam <tmsriram@google.com>
4858 * doc/tm.texi.in (TARGET_OPTION_FUNCTION_VERSIONS): New hook
4860 * (TARGET_COMPARE_VERSION_PRIORITY): New hook description.
4861 * (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New hook description.
4862 * (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New hook description.
4863 * doc/tm.texi: Regenerate.
4864 * target.def (compare_version_priority): New target hook.
4865 * (generate_version_dispatcher_body): New target hook.
4866 * (get_function_versions_dispatcher): New target hook.
4867 * (function_versions): New target hook.
4868 * cgraph.c (cgraph_fnver_htab): New htab.
4869 (cgraph_fn_ver_htab_hash): New function.
4870 (cgraph_fn_ver_htab_eq): New function.
4871 (version_info_node): New pointer.
4872 (insert_new_cgraph_node_version): New function.
4873 (get_cgraph_node_version): New function.
4874 (delete_function_version): New function.
4875 (record_function_versions): New function.
4876 * cgraph.h (cgraph_node): New bitfield dispatcher_function.
4877 (cgraph_function_version_info): New struct.
4878 (get_cgraph_node_version): New function.
4879 (insert_new_cgraph_node_version): New function.
4880 (record_function_versions): New function.
4881 (delete_function_version): New function.
4882 (init_lowered_empty_function): Expose function.
4883 * tree.h (DECL_FUNCTION_VERSIONED): New macro.
4884 (tree_function_decl): New bit-field versioned_function.
4885 * cgraphunit.c (cgraph_analyze_function): Generate body of multiversion
4886 function dispatcher.
4887 (cgraph_analyze_functions): Analyze dispatcher function.
4888 (init_lowered_empty_function): Make non-static. New parameter in_ssa.
4889 (assemble_thunk): Add parameter to call to init_lowered_empty_function.
4890 * config/i386/i386.c (add_condition_to_bb): New function.
4891 (get_builtin_code_for_version): New function.
4892 (ix86_compare_version_priority): New function.
4893 (feature_compare): New function.
4894 (dispatch_function_versions): New function.
4895 (ix86_function_versions): New function.
4896 (attr_strcmp): New function.
4897 (ix86_mangle_function_version_assembler_name): New function.
4898 (ix86_mangle_decl_assembler_name): New function.
4899 (make_name): New function.
4900 (make_dispatcher_decl): New function.
4901 (is_function_default_version): New function.
4902 (ix86_get_function_versions_dispatcher): New function.
4903 (make_attribute): New function.
4904 (make_resolver_func): New function.
4905 (ix86_generate_version_dispatcher_body): New function.
4906 (fold_builtin_cpu): Return integer for cpu builtins.
4907 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): New macro.
4908 (TARGET_COMPARE_VERSION_PRIORITY): New macro.
4909 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New macro.
4910 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New macro.
4911 (TARGET_OPTION_FUNCTION_VERSIONS): New macro.
4913 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
4915 * recog.c (extract_insn): Enabled alternative defaults to 1.
4917 2012-11-05 H.J. Lu <hongjiu.lu@intel.com>
4919 * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with
4922 2012-11-05 Eric Botcazou <ebotcazou@adacore.com>
4924 PR tree-optimization/54986
4925 * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op
4926 conversions on entry but add them back on exit if needed.
4928 2012-11-05 Andreas Schwab <schwab@linux-m68k.org>
4930 * final.c (final_scan_insn) [HAVE_cc0]: Handle all comparison
4931 codes in non-jump and cmove insn.
4933 2012-11-05 Uros Bizjak <ubizjak@gmail.com>
4934 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4936 * mode-switching.c (create_pre_exit): Force late switching if
4937 __builtin_{apply,return} emitted a load that require mode,
4938 other than MODE_EXIT.
4940 2012-11-05 Richard Sandiford <rdsandiford@googlemail.com>
4943 * config/i386/i386.c (ix86_address_subreg_operand): Remove stack
4945 (print_reg): Use true_regnum rather than REGNO.
4946 (ix86_print_operand_address): Remove SUBREG handling.
4948 2012-11-05 Jan Hubicka <jh@suse.cz>
4950 * tree-ssa-loop-niter.c (finite_loop_p): Revamp to be just wrapper of
4951 max_loop_iterations.
4953 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
4955 * reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
4956 with a return instruction.
4958 2012-11-05 Vladimir Makarov <vmakarov@redhat.com>
4960 PR rtl-optimization/55151
4961 * lra-constraints.c (process_alt_operands): Permit putting reg
4962 value into memory. Increase reject for this case.
4964 2012-11-05 Dehao Chen <dehao@google.com>
4966 * final.c (reemit_insn_block_notes): Do not change scope if insn
4967 location is UNKNOWN_LOCATION.
4969 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
4971 * doc/md.texi (Defining Attributes): Document that we are defining
4972 HAVE_ATTR_name macros as 1 for defined attributes, and as 0
4973 for undefined special attributes.
4974 * final.c (asm_insn_count, align_fuzz): Always define.
4975 (insn_current_reference_address): Likewise.
4976 (init_insn_lengths): Use if (HAVE_ATTR_length) instead of
4977 #ifdef HAVE_ATTR_length.
4978 (get_attr_length_1, shorten_branches, final): Likewise.
4979 (final_scan_insn, output_asm_name): Likewise.
4980 * genattr.c (gen_attr): Define HAVE_ATTR_name macros for
4981 defined attributes as 1.
4982 Remove ancient get_attr_alternative compatibility code.
4983 For special purpose attributes not provided, define HAVE_ATTR_name
4985 In case no length attribute is given, provide stub definitions
4986 for insn_*_length* functions, and also include insn-addr.h.
4987 In case no enabled attribute is given, provide stub definition.
4988 * genattrtab.c (write_length_unit_log): Always write a definition.
4989 * hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions.
4990 * hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare.
4991 * lra-int.h (struct lra_insn_recog_data): Make member
4992 alternative_enabled_p unconditional.
4993 * lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of
4994 #ifdef HAVE_ATTR_length.
4995 (lra_set_insn_recog_data): Likewise. Make initialization of
4996 alternative_enabled_p unconditional.
4997 (lra_update_insn_recog_data): Use #if instead of #ifdef for
4999 * recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define.
5000 (extract_insn): Check HAVE_ATTR_enabled.
5001 (gate_handle_split_before_regstack): Use #if instead of
5002 #if defined for HAVE_ATTR_length.
5004 2012-11-05 Jan Hubicka <jh@suse.cz>
5006 * ipa-inline.c (compute_uninlined_call_time,
5007 compute_inlined_call_time): New functions.
5008 (RELATIVE_TIME_BENEFIT_RANGE): New macro.
5009 (relative_time_benefit): Rewrite.
5010 (edge_badness): Rewrite path with guessed profile and estimated profile.
5011 * ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module):
5013 (struct inline_summary): Add GROWTH filed.
5014 * ipa-inline-analysis.c (dump_inline_hints): Update.
5015 (reset_inline_summary): Update.
5016 (dump_inline_summary): Update.
5017 (will_be_nonconstant_predicate): Cleanup to use gimple_store_p and
5018 gimple_assign_load_p predicates.
5019 (estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint.
5020 (simple_edge_hints): New function.
5021 (do_estimate_edge_time): Return time of invocation of callee rather
5022 than the time scaled by edge frequency; update hints code.
5023 (do_estimate_edge_hints): Update.
5024 (do_estimate_growth): Cleanup.
5026 2012-11-05 Jakub Jelinek <jakub@redhat.com>
5029 * dwarf2out.c (value_format) <case dw_val_class_high_pc>: Handle
5030 also DWARF2_ADDR_SIZE 1 and 2.
5032 2012-11-05 Jan Hubicka <jh@suse.cz>
5034 * tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
5035 (maybe_lower_iteration_bound): Initialize not_executed_last_iteration to NULL
5036 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
5037 just_once_each_iteration_p; record estimated bound when loop has only one
5038 likely exit; test just_once_each_iteration_p before IV canon itself.
5040 2012-11-05 Jan Hubicka <jh@suse.cz>
5042 * ipa-inline.c (leaf_node_p): Rename to ...
5043 (num_calls) ... this one.
5044 (want_early_inline_function_p): Allow smal growth on non-leafs.
5046 2012-11-05 Jakub Jelinek <jakub@redhat.com>
5049 * var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE
5051 (vt_initialize): Look for fp_setter in any bb, not just successor of
5054 2012-11-05 Oleg Endo <olegendo@gcc.gnu.org>
5056 * config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro.
5057 (TARGET_SUPERSCALAR): Add TARGET_SH2A.
5058 (CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
5060 (TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
5062 * config/sh/sh.c (sh_trampoline_init): Likewise.
5064 2012-11-05 David Edelsohn <dje.gcc@gmail.com>
5066 * system.h (loc_t): Poison.
5068 2012-11-05 Marc Glisse <marc.glisse@inria.fr>
5070 * fold-const.c (fold_unary_loc): Disable conversion optimization
5073 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
5075 * configure: Regenerate.
5077 2012-11-04 Eric Botcazou <ebotcazou@adacore.com>
5079 * combine.c: Adjust toplevel comment.
5080 (make_extraction): Adjust head comment and move up canonicalization.
5082 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
5083 Jakub Jelinek <jakub@redhat.com>
5086 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps
5087 for dropped IV sets.
5089 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
5092 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
5093 New, rewritten from debug stmt copying code...
5094 (thread_around_empty_block): ... removed from here.
5095 (thread_across_edge): Call propagate_threaded_block_debug_into.
5097 2012-11-04 Dehao Chen <dehao@google.com>
5099 * expr.c (expand_expr_real_1): Change to not using input_location.
5101 2012-11-03 Jan Hubicka <jh@suse.cz>
5103 * invoke.texi (profile-use): update documentation.
5104 * opts.c (common_handle_option): Enable tree-vectorize
5105 and tree-loop-distribute-patterns.
5106 * tree-loop-distribution.c (tree_loop_distribution): Skip loops
5108 * config/i386/i386.c (ix86_option_override_internal): Enabe
5109 prefetch_lop_arrays for profile-use.
5111 2012-11-03 Robert Mason <rbmj@verizon.net>
5113 * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks)
5115 2012-11-03 Sandra Loosemore <sandra@codesourcery.com>
5117 * doc/extend.texi: Copy-edit to use present tense except when
5118 explicitly describing future or past behavior.
5120 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
5122 * config/sh/sh.c (output_movedouble, output_far_jump,
5123 output_ieee_ccmpeq): Use multi-line strings for asm.
5124 (find_regmode_weight): Wrap lines.
5125 (sh_optimize_target_register_callee_saved): Remove commented out
5127 (emit_load_ptr): Remove prototype.
5129 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
5132 * config/sh/sh.md (*cbranch_t): Allow splitting after reload.
5133 Allow going beyond current basic block before reload when looking for
5135 * config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels.
5137 2012-11-02 Jan Hubicka <jh@suse.cz>
5139 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
5140 missing sign to unsigned.
5142 2012-11-02 Andrew Pinski <apinski@cavium.com>
5145 * simplify-rtx.c (simplify_relational_operation_1): Don't simplify
5146 (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not
5149 2012-11-02 Jan Hubicka <jh@suse.cz>
5151 * tree-ssa-loop-niter.c (double_int_cmp, bound_index,
5152 discover_iteration_bound_by_body_walk): New functions.
5153 (discover_iteration_bound_by_body_walk): Use it.
5155 2012-11-02 Jan Hubicka <jh@suse.cz>
5157 * predict.c (predict_loops): Predict also exits not dominating latch.
5159 2012-11-02 Jan Hubicka <jh@suse.cz>
5161 * predict.c (predict_loops): Do not predict infinite loops.
5163 2012-11-02 Jan Hubicka <jh@suse.cz>
5166 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
5167 MAX field if NITER was folded to contant.
5168 (record_estimate): Sanity check.
5169 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New
5171 (remove_redundant_iv_test): New function.
5172 (loops_to_unloop, loops_to_unloop_nunroll): New static vars.
5173 (unloop_loops): Break out from ...
5174 (try_unroll_loop_completely): ... here; Pass in MAXITER; use
5175 remove_exits_and_undefined_stmts; do not unloop.
5176 (canonicalize_loop_induction_variables): Compute MAXITER;
5177 use remove_redundant_iv_test; remove loop_close_ssa_invalidated
5178 and irred_invalidated arguments.
5179 (canonicalize_induction_variables): Compute fresh bound estimates;
5180 unloop; walk from innermost.
5181 (tree_unroll_loops_completely): Likewise.
5183 2012-11-02 Vladimir Makarov <vmakarov@redhat.com>
5186 * lra-constraints.c (debug_loc_equivalence_change_p): Rename to
5187 loc_equivalence_change_p.
5188 (lra_constraints): Check equiv_insn_bitmap for debug insn. Call
5189 loc_equivalence_change_p for non-transformed insn.
5191 2012-11-02 Eric Botcazou <ebotcazou@adacore.com>
5193 * cfg-flags.def (ABNORMAL_CALL): Fix comment.
5195 (SIBCALL): Likewise.
5196 * cfgrtl.c (rtl_verify_flow_info_1): Adjust error messages.
5197 Deal with EDGE_SIBCALL and fix the EDGE_ABNORMAL check.
5199 2012-11-02 Jakub Jelinek <jakub@redhat.com>
5202 * config/i386/i386.md (bswapdi2): Limit to TARGET_64BIT.
5203 (*bswapdi2_doubleword): Removed.
5205 2012-11-02 Gerald Pfeifer <gerald@pfeifer.com>
5207 * doc/install.texi (Specific): Remove moxie web reference.
5209 2012-11-01 Marc Glisse <marc.glisse@inria.fr>
5212 * tree-vect-generic.c (expand_vector_condition): New function.
5213 (expand_vector_operations_1): Call it.
5215 2012-11-01 Steve Ellcey <sellcey@mips.com>
5217 * target-globals.c (save_target_globals): Save lra_int struct.
5219 2012-11-01 Gerald Pfeifer <gerald@pfeifer.com>
5221 * doc/standards.texi (Standards): Adjust reference to Go specification.
5223 2012-11-01 Lawrence Crowl <crowl@google.com>
5225 * ebitmap.h: Remove unused.
5226 * ebitmap.c: Remove unused.
5227 * Makefile.in: Remove ebitmap.h and ebitmap.c.
5228 * sbitmap.h (SBITMAP_SIZE_BYTES): Move to source file.
5229 (SET_BIT_WITH_POPCOUNT): Remove unused.
5230 (RESET_BIT_WITH_POPCOUNT): Remove unused.
5231 (bitmap_copy_n): Remove unused.
5232 (bitmap_range_empty_p): Remove unused.
5233 (sbitmap_popcount): Remove unused.
5234 (sbitmap_verify_popcount): Make private to source file.
5235 * sbitmap.c (SBITMAP_SIZE_BYTES): Move here from header.
5236 (bitmap_copy_n): Remove unused.
5237 (bitmap_range_empty_p): Remove unused.
5238 (sbitmap_popcount): Remove unused.
5239 (sbitmap_verify_popcount): Make private to source file.
5241 2012-11-01 Lawrence Crowl <crowl@google.com>
5243 * sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add
5244 unused parameter to match bitmap iterator. Update callers.
5245 (sbitmap_iter_cond): Rename bmp_iter_set. Update callers.
5246 (sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to
5247 match bitmap iterator. Update callers.
5248 (EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused.
5249 (EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and
5250 adjust to be identical to the definition in bitmap.h. Conditionalize
5251 the definition based on not having been defined. Update callers.
5252 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition
5253 based on not having been defined. (To match the above.)
5255 2012-11-01 Lawrence Crowl <crowl@google.com>
5257 * sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter
5258 type. Update callers to match.
5259 (SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update
5261 (SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount,
5262 normalizing parameter type. Update callers to match.
5263 (RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type.
5264 Update callers to match.
5265 (RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount,
5266 normalizing parameter type. Update callers to match.
5267 * basic-block.h (sbitmap_intersection_of_succs): Rename
5268 bitmap_intersection_of_succs. Update callers to match.
5269 * basic-block.h (sbitmap_intersection_of_preds): Rename
5270 bitmap_intersection_of_preds. Update callers to match.
5271 * basic-block.h (sbitmap_union_of_succs): Rename
5272 bitmap_union_of_succs. Update callers to match.
5273 * basic-block.h (sbitmap_union_of_preds): Rename
5274 bitmap_union_of_preds. Update callers to match.
5276 2012-11-01 Vladimir Makarov <vmakarov@redhat.com>
5279 * lra-constraints.c (lra_constraints): Check only pseudos with
5280 equivalences. Add insns with equivalence pseudos.
5282 2012-11-01 Sharad Singhai <singhai@google.com>
5285 * dumpfile.h (struct dump_file_info): Fix order of flags.
5287 2012-11-01 Jan Hubicka <jh@suse.cz>
5290 * ipa-inline-transform.c (inline_call): Silence an sanity check until
5291 ipa-cp issue if fixed.
5293 2012-11-01 Sharad Singhai <singhai@google.com>
5295 * doc/invoke.texi: Update -fopt-info documentation.
5296 * dumpfile.c: Move dump_flags here from passes.c.
5297 Rename opt_info_options to optinfo_verbosity_options.
5298 Add optgroup_options.
5299 (dump_files): Add field for optinfo_flags in the static initializer.
5300 (dump_register): Handle additional parameter for optgroup_flags.
5301 (opt_info_enable_passes): Renamed opt_info_enable_all. Handle
5302 optgroup_flags. Fix documentation.
5303 (opt_info_switch_p_1): Handle optgroup options.
5304 (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files.
5305 * dumpfile.h (dump_register): Additional argument for optgroup_flags.
5306 All callers updated.
5307 (struct dump_file_info): Add field for optgroup_flags.
5308 Define OPTGROUP_* flags.
5309 * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags.
5310 All opt_pass static initializers updated.
5311 * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all'
5312 instead of 'optall'.
5313 (handle_common_deferred_options): Fix typo in error message.
5314 * passes.c (register_one_dump_file): Add argument for optgroup_flags.
5315 Turn on OPTGROUP_IPA for IPA passes.
5316 Move dump_flags from here to dumpfile.c.
5317 * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to
5320 2012-11-01 Joern Rennecke <joern.rennecke@embecosm.com>
5323 * config/sh/sh.md (doloop_end): Use emit_jump_insn.
5325 2012-10-31 Jakub Jelinek <jakub@redhat.com>
5327 PR tree-optimization/53708
5328 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
5329 user-supplied alignment when used with an explicit section name.
5331 2012-10-31 Dehao Chen <dehao@google.com>
5333 * tree-eh.c (do_return_redirection): Set location for jump statement.
5334 (do_goto_redirection): Likewise.
5335 (frob_into_branch_around): Likewise.
5336 (lower_try_finally_nofallthru): Likewise.
5337 (lower_try_finally_copy): Likewise.
5338 (lower_try_finally_switch): Likewise.
5339 * expr.c (store_expr): Use current insn location instead of expr
5341 (expand_expr_real): Likewise.
5342 (expand_expr_real_1): Likewise.
5344 2012-10-31 Easwaran Raman <eraman@google.com>
5348 * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note
5349 only if it doesn't already exist.
5350 * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL.
5351 (emit_case_dispatch_table): Handle the case where STMT_BB is NULL.
5352 (expand_sjlj_dispatch_table): Pass BB containing before_case
5353 to emit_case_dispatch_table.
5355 2012-10-31 Lawrence Crowl <crowl@google.com>
5358 (is_a <T> (U*)): New. Test for is-a relationship.
5359 (as_a <T> (U*)): New. Treat as a derived type.
5360 (dyn_cast <T> (U*)): New. Conditionally cast based on is_a.
5361 * cgraph.h (varpool_node): Rename to varpool_node_for_decl.
5362 Adjust callers to match.
5363 (is_a_helper <cgraph_node>::test (symtab_node_def *)): New.
5364 (is_a_helper <varpool_node>::test (symtab_node_def *)): New.
5365 (symtab_node_def::try_function): New. Change most calls to
5366 symtab_function_p with calls to dyn_cast <cgraph_node> (p).
5367 (symtab_node_def::try_variable): New. Change most calls to
5368 symtab_variable_p with calls to dyn_cast <varpool_node> (p).
5369 (symtab_function_p): Remove. Change callers to use
5370 is_a <cgraph_node> (p) instead.
5371 (symtab_variable_p): Remove. Change callers to use
5372 is_a <varpool_node> (p) instead.
5373 * cgraph.c (cgraph_node_for_asm): Remove redundant call to
5374 symtab_node_for_asm.
5375 * cgraphunit.c (symbol_finalized_and_needed): New.
5376 (symbol_finalized): New.
5377 (cgraph_analyze_functions): Split complicated conditionals out into
5378 above new functions.
5379 * Makefile.in (CGRAPH_H): Add is-a.h as used by cgraph.h.
5381 2012-10-31 Steven Bosscher <steven@gcc.gnu.org>
5382 Jakub Jelinek <jakub@redhat.com>
5384 PR tree-optimization/55018
5385 * basic-block.h (dfs_find_deadend): New prototype.
5386 * cfganal.c (dfs_find_deadend): No longer static. Use bitmap
5387 instead of sbitmap for visited.
5388 (flow_dfs_compute_reverse_execute): Use dfs_find_deadend here, too.
5389 * dominance.c (calc_dfs_tree): If saw_unconnected, traverse from
5390 dfs_find_deadend of unconnected b instead of b directly.
5392 2012-10-31 Eric Botcazou <ebotcazou@adacore.com>
5394 * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
5395 special register pushes before frame probing and allocation.
5397 2012-10-31 Vladimir Makarov <vmakarov@redhat.com>
5400 * lra-constraints.c (lra_constraints): Update debug insn info
5401 after equivalence change.
5403 2012-10-31 Jan Hubicka <jh@suse.cz>
5405 * ipa-inline.c (ipa_inline): Avoid infinite loop on inlining
5406 empty virtual functions calling themselves.
5408 2012-10-31 Tom Tromey <tromey@redhat.com>
5411 * doc/gcc.texi: Add @direntry for gcov.
5413 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
5415 * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len.
5417 2012-10-31 Jakub Jelinek <jakub@redhat.com>
5419 PR tree-optimization/19105
5420 PR tree-optimization/21643
5421 PR tree-optimization/46309
5422 * tree-ssa-reassoc.c (init_range_entry): Add STMT argument
5423 and use it if EXP is NULL.
5424 (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL.
5425 (optimize_range_tests): Likewise.
5426 (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops,
5427 maybe_optimize_range_tests): New functions.
5428 (reassociate_bb): Call maybe_optimize_range_tests if last
5429 stmt of bb is GIMPLE_COND that hasn't been visited yet.
5431 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5433 * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename
5435 (insvsi_internal, insvdi_internal, extvsi_internal)
5436 (extvdi_internal): ...this.
5437 (insv, extv): Update accordingly.
5439 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5441 * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume
5442 that zero_extracts of const_ints are doing word-sized extractions.
5444 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5446 * combine.c (make_extraction): Remove dead wanted_inner_mode-
5447 and pos_rtx-related code.
5449 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5451 * expmed.c (store_bit_field_1): Move generation of MEM insvs
5453 (extract_bit_field_1): Likewise extvs and extzvs.
5455 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5457 * expmed.c (store_bit_field_using_insv): New function,
5459 (store_bit_field_1): ...here.
5460 (extract_bit_field_using_extv): New function, split out from...
5461 (extract_bit_field_1): ...here.
5463 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5465 * expmed.c (store_bit_field_1): Use OP_MODE to check whether an
5466 insv pattern is available. Remove redundant checks for OP_MODE
5467 being MAX_MACHINE_MODE.
5468 (extract_bit_field_1): Remove redundant checks for EXT_MODE being
5471 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5473 * expmed.c (store_bit_field_1): Remove test for BLKmode values.
5475 2012-10-31 Ralf Corsépius <ralf.corsepius@rtems.org>,
5476 Joel Sherrill <joel.sherrill@oarcorp.com>
5478 * config/sparc/t-rtems: New (Custom multilibs).
5479 * config/sparc/t-rtems-64: New (Custom multilibs).
5480 * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
5481 (sparc-*-rtems*): Add sparc/t-rtems.
5483 2012-10-31 Alan Modra <amodra@gmail.com>
5485 * config/rs6000/rs6000.c (legitimize_reload_address): Remove code
5486 handling non-aligned ld/std.
5487 * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'.
5488 * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise.
5489 * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise.
5490 * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'.
5492 2012-10-31 Alan Modra <amodra@gmail.com>
5494 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX.
5496 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
5498 * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to
5502 * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of
5503 last two parameters.
5505 2012-10-30 Alexandre Oliva <aoliva@redhat.com>
5509 * valtrack.c (dead_debug_promote_uses): Assert-check that
5510 global used bit was clear and initialize entry unconditionally.
5512 2012-10-30 Eric Botcazou <ebotcazou@adacore.com>
5514 * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
5516 (hash_rtx): Likewise.
5518 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
5520 PR rtl-optimization/55093
5521 * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress
5522 check for ARG_POINTER_REGNUM.
5524 2012-10-30 Steve Ellcey <sellcey@mips.com>
5526 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order
5528 (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs.
5529 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order.
5530 (MULTILIB_DIRNAMES): Ditto.
5531 (MULTILIB_EXCEPTIONS): New.
5533 2012-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
5535 * lra-constraints.c (check_secondary_memory_needed_p):
5536 Add ATTRIBUTE_UNUSED to parameters.
5538 2012-10-30 Richard Sandiford <rdsandiford@googlemail.com>
5540 * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition.
5541 * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition.
5542 * expr.c (SLOW_UNALIGNED_ACCESS): Likewise.
5543 * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise.
5544 (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here.
5546 2012-10-30 Jan Hubicka <jh@suse.cz>
5548 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup.
5550 2012-10-30 Jan Hubicka <jh@suse.cz>
5552 * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter
5553 EVERY_ITERATION with implicit value of true.
5554 (record_estimate): Check dominance relationship of the basic block
5555 we are estimating on instead of relying on UPPER to be false.
5556 (struct ilb_data): Drop RELIABLE.
5557 (idx_infer_loop_bounds): Update.
5558 (infer_loop_bounds_from_ref): Drop parameter RELIABLE.
5559 (infer_loop_bounds_from_array): Drop parameter RELIABLE.
5560 (infer_loop_bounds_from_undefined): Update comments and handling
5562 (estimate_numbers_of_iterations_loop): Record all bounds.
5564 2012-10-30 Richard Sandiford <r.sandiford@uk.ibm.com>
5566 * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
5567 rather than gen_rtx_SUBREG.
5569 2012-10-30 Richard Biener <rguenther@suse.de>
5571 * gimple.h (gimple_store_p): New predicate.
5572 (gimple_assign_load_p): Likewise.
5573 * tree-inline.c (estimate_num_insns): Use it.
5575 2012-10-30 Marc Glisse <marc.glisse@inria.fr>
5577 * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors.
5578 (fold_binary_loc): Call it for VEC_COND_EXPR.
5580 2012-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5581 Tejas Belagod <tejas.belagod@arm.com>
5583 * config/aarch64/aarch64-simd.md
5584 (aarch64_simd_bsl<mode>_internal): New pattern.
5585 (aarch64_simd_bsl<mode>): Likewise.
5586 (aarch64_vcond_internal<mode>): Likewise.
5587 (vcondu<mode><mode>): Likewise.
5588 (vcond<mode><mode>): Likewise.
5589 * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants.
5591 2012-10-30 Richard Biener <rguenther@suse.de>
5593 PR tree-optimization/55111
5594 * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt.
5596 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
5599 * config/sh/iterators.md (SIDI): New mode iterator.
5600 * config/sh/sh.md (negdi2): Use parallel around operation and T_REG
5601 clobber in expander.
5602 (*negdi2): Mark output operand as early clobbered. Add T_REG clobber.
5603 Split after reload. Simplify split code.
5604 (abssi2, absdi2): Fold expanders into abs<mode>2.
5605 (*abssi2, *absdi2): Fold into *abs<mode>2 insn_and_split. Split insns
5607 (*negabssi2, *negabsdi2): Fold into *negabs<mode>2. Add T_REG clobber.
5608 Split insns before reload.
5609 (negsi_cond): Reformat. Use emit_move_insn instead of gen_movesi.
5610 (negdi_cond): Reformat. Use emit_move_insn instead of a pair
5611 of gen_movsi. Split insn before reload.
5613 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
5616 * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero.
5617 (*tst<mode>_t_zero): New insns.
5618 * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes.
5620 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
5622 * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca.
5624 2012-10-30 Jakub Jelinek <jakub@redhat.com>
5627 * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New.
5628 * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after
5629 even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE.
5630 * dce.c (word_dce_process_block, dce_process_block): Pass
5631 DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore
5632 not going to be eliminated.
5634 2012-10-29 Lawrence Crowl <crowl@google.com>
5636 * sbitmap.h (sbitmap_copy): Rename bitmap_copy.
5637 (sbitmap_copy_n): Rename bitmap_copy_n.
5638 (sbitmap_equal): Rename bitmap_equal_p.
5639 (sbitmap_empty_p): Rename bitmap_empty_p.
5640 (sbitmap_range_empty_p): Rename bitmap_range_empty_p.
5641 (sbitmap_zero): Rename bitmap_clear.
5642 (sbitmap_ones): Rename bitmap_ones.
5643 (sbitmap_vector_zero): Rename bitmap_vector_clear.
5644 (sbitmap_vector_ones): Rename bitmap_vector_ones.
5645 (sbitmap_not): Rename bitmap_not.
5646 (sbitmap_a_and_b_cg): Commented out.
5647 (sbitmap_a_and_b): Rename bitmap_and. Add bool return.
5648 (sbitmap_difference): Rename bitmap_and_compl.
5649 (sbitmap_a_or_b_cg): Commented out.
5650 (sbitmap_a_or_b): Rename bitmap_xor. Add bool return.
5651 (sbitmap_a_xor_b_cg): Commented out.
5652 (sbitmap_a_xor_b): Rename bitmap_xor. Add bool return.
5653 (sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or.
5654 (sbitmap_a_and_b_or_c): Commented out.
5655 (sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and.
5656 (sbitmap_a_or_b_and_c): Commented out.
5657 (sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl.
5658 (sbitmap_union_of_diff): Commented out.
5659 (dump_sbitmap): Rename dump_bitmap.
5660 (dump_sbitmap_file): Rename dump_bitmap_file.
5661 (debug_sbitmap): Rename debug_bitmap.
5662 (dump_sbitmap_vector): Rename dump_bitmap_vector.
5663 (sbitmap_first_set_bit): Rename bitmap_first_set_bit.
5664 (sbitmap_last_set_bit): Rename bitmap_last_set_bit.
5665 (sbitmap_a_subset_b_p): Rename bitmap_subset_p.
5666 (sbitmap_any_common_bits): Rename bitmap_intersect_p.
5667 (#define sbitmap_free): Reimplement as inline function.
5668 (#define sbitmap_vector_free): Reimplement as inline function.
5669 * bitmap.h (#define bitmap_zero): Remove as redundant.
5670 (#define bitmap_empty_p): Reimplement as inline function.
5671 (#define dump_bitmap): Reimplement as inline function.
5673 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5676 * doc/invoke.texi (Warning Options): Document -Wno-return-local-addr.
5678 2012-10-29 H.J. Lu <hongjiu.lu@intel.com>
5680 * lra-assigns.c: Remove trailing white spaces.
5681 * lra-coalesce.c: Likewise.
5682 * lra-constraints.c: Likewise.
5683 * lra-eliminations.c: Likewise.
5684 * lra-int.h: Likewise.
5685 * lra-spills.c: Likewise.
5688 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5691 * tree.h (FUNCTION_POINTER_TYPE_P): New.
5693 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5696 * valtrack.c (dead_debug_insert_temp): Defer rescan of
5697 newly-emitted debug insn.
5699 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5702 * tree-ssa-threadedge.c (thread_around_empty_block): Copy
5703 debug temps from predecessor before threading.
5705 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5709 * valtrack.c (dead_debug_global_find): Accept NULL dtemp.
5710 (dead_debug_global_insert): Return new entry.
5711 (dead_debug_global_replace_temp): Return early if REG is no
5712 longer in place, or if dtemp was already substituted.
5713 (dead_debug_promote_uses): Insert for all defs and replace all
5715 (dead_debug_local_finish): Release used after promotion.
5716 (dead_debug_insert_temp): Stop if dtemp is NULL.
5718 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5721 * loop-unroll.c (loop_exit_at_end_p): Skip debug insns.
5723 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5726 * config/i386/i386.c (add_parameter_dependencies): Stop
5727 backward scan at the insn before the incoming head.
5728 (ix86_dependencies_evaluation_hook): Skip debug insns. Stop
5729 if first_arg is head.
5731 2012-10-29 Andrew Pinski <apinski@cavium.com>
5733 * config/aarch64/aarch64-protos.h (aarch64_load_tp): New proto.
5734 * config/aarch64/aarch64.c (aarch64_load_tp): Export.
5735 (aarch64_init_builtins): Don't add __builtin_thread_pointer builtin.
5736 * config/aarch64/aarch64.h (aarch64_builtins): Delete
5737 AARCH64_BUILTIN_THREAD_POINTER.
5738 * config/aarch64/aarch64.md (get_thread_pointerdi): New pattern.
5740 2012-10-29 Marc Glisse <marc.glisse@inria.fr>
5743 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
5746 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
5748 * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP.
5750 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
5752 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
5753 for all addresses, zero-extended with AND.
5755 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
5758 * rtlanal.c (strip_address_mutation): Add SUBREG case.
5760 2012-10-29 Jan Hubicka <jh@suse.cz>
5762 * ipa-inline.c (want_inline_function_called_once_p): Rename to ...
5763 (want_inline_function_to_all_callers_p): check also functions with
5765 (ipa_inline): Handle inlining for size into multiple callers.
5767 2012-10-29 Richard Guenther <rguenther@suse.de>
5770 * tracer.c (tracer): Fixup loop structure.
5771 * cfgloopmanip.c (force_single_succ_latches): Add assert.
5772 (fix_loop_structure): Re-compute loop latches and disambiguate
5773 loops with multiple latches if required.
5775 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
5777 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
5778 to check SImode equivalent of address, zero-extended with AND RTX.
5779 * config/i386/i386.md (ashift to lea splitter): Split to SImode mult.
5780 (simple lea to add/shift peephole2s): Remove peephole2s that operate
5781 on subregs of DImode operations.
5783 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
5785 PR rtl-optimization/55106
5786 * lra-constraints.c (skip_usage_debug_insns): New function.
5787 (check_secondary_memory_needed_p): Ditto.
5788 (inherit_reload_reg): Use the new functions. Improve debug output.
5790 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5792 * doc/cpp.texi (Search Path): Fix outdated C++ path.
5794 2012-10-28 Jan Hubicka <jh@suse.cz>
5796 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
5797 &this->field expressions.
5799 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
5801 * rtl.h (struct rtx_def): Add a comment for member unchanging.
5802 * lra-int.h (LRA_TEMP_CLOBBER_P): New macro.
5803 (lra_hard_reg_substitution): Rename to lra_final_code_change.
5804 * lra-constraints.c (match_reload): Mark temporary clobbers.
5805 * lra-spill.c (lra_hard_reg_substitution): Rename to
5806 lra_final_code_change. Remove temporary clobbers.
5807 * lra.c (lra): Rename to lra_final_code_change.
5809 2012-10-28 Jan Hubicka <jh@suse.cz>
5811 * ipa-inline.c (edge_badness): Fix overflow.
5812 (inline_small_functions): Initialize SCCs correctly.
5813 (do_estimate_edge_time, do_estimate_edge_hints): Skip self
5814 recursive functions in SCC hints.
5816 2012-10-28 Steven Bosscher <steven@gcc.gnu.org>
5818 PR rtl-optimization/38711
5819 * ira.c (ira): Remove DF_LIVE if the problem is in the stack.
5820 (do_reload): Add it back at the end for -O2 and higher.
5822 * function.c (thread_prologue_and_epilogue_insns): Use
5823 REG_SET_TO_HARD_REG_SET instead of CLEAR_HARD_REG_SET and
5824 reg_set_to_hard_reg_set.
5826 2012-10-28 Jan Hubicka <jh@suse.cz>
5828 * ipa-inline.c (edge_badness): Reduce precision; use scc hints.
5829 (inline_small_functions): Fix dumps; update all callees after inlining.
5830 * ipa-inline.h (INLINE_HINT_in_scc, INLINE_HINT_same_scc): New
5832 (inline summary): Add SCC_NO.
5833 * ipa-inline-analysis.c (dump_inline_hints): Dump SCC hints.
5834 (reset_inline_summary): Reset scc_no.
5835 (estimate_node_size_and_time): Set in_scc hint.
5836 (do_estimate_edge_time): Add same_scc hint.
5837 (do_estimate_edge_hints): Likewise.
5839 2012-10-28 Andreas Schwab <schwab@linux-m68k.org>
5841 * doc/cppopts.texi: Fix use of @item vs. @itemx inside @table.
5842 * doc/extend.texi: Likewise.
5843 * doc/generic.texi: Likewise.
5844 * doc/invoke.texi: Likewise.
5845 * doc/md.texi: Likewise.
5846 * doc/sourcebuild.texi: Likewise.
5848 * doc/tm.texi.in (Misc): Add newline before @end.
5849 * doc/tm.texi: Update.
5851 2012-10-27 Joern Rennecke <joern.rennecke@embecosm.com>
5853 * lra-assigns.c (find_hard_regno_for): Fix use of WORDS_BIG_ENDIAN.
5855 2012-10-27 Georg-Johann Lay <avr@gjlay.de>
5858 * config/avr/avr.c (avr_out_lpm): Remove unused regno_dest.
5860 2012-10-27 Oleg Endo <olegendo@gcc.gnu.org>
5863 * config/sh/sh.c (sh1_builtin_p): Comment out unused function.
5865 2012-10-27 Uros Bizjak <ubizjak@gmail.com>
5867 * config/i386/i386.md (*lea<mode>): Remove unneeded temporary.
5869 2012-10-26 David S. Miller <davem@davemloft.net>
5871 * config/sparc/constraints.md: Update unused letter list, move
5872 "w" near other memory constraints. Remove no longer relevant
5874 * doc/md.texi: Sync sparc constraint documentation with reality.
5876 2012-10-26 DJ Delorie <dj@redhat.com>
5878 * config/rl78/rl78.c (rl78_as_legitimate_address): Do not allow
5879 reg+addend addresses for the _far namespace.
5881 2012-10-26 Segher Boessenkool <segher@kernel.crashing.org>
5883 * config/rs6000/sync.md (ATOMIC): Correct DI condition.
5885 2012-10-26 Jakub Jelinek <jakub@redhat.com>
5888 * cfgexpand.c (expand_debug_expr): Expand &MEM_REF[&var, n]
5889 as DEBUG_IMPLICIT_PTR + n if &var expands to DEBUG_IMPLICIT_PTR.
5890 * tree-sra.c (create_access_replacement): Allow also MEM_REFs
5891 with ADDR_EXPR first operand in DECL_DEBUG_EXPR expressions.
5892 * var-tracking.c (track_expr_p): Handle MEM_REFs in DECL_DEBUG_EXPR
5894 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5896 2012-10-26 Jeff Law <law@redhat.com>
5898 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Use last stmt.
5900 2012-10-26 Gunther Nikl <gnikl@users.sourceforge.net>
5902 * common/config/m68k/m68k-common.c (m68k_handle_option): Set
5903 gcc_options fields of opts_set for -m68020-40 and -m68020-60.
5905 2012-10-26 Teresa Johnson <tejohnson@google.com>
5907 * ree.c (add_removable_extension): Remove unnecessary
5908 mode check with other extension.
5909 * testsuite/gcc.c-torture/execute/20111227-2.c: New test.
5910 * testsuite/gcc.c-torture/execute/20111227-3.c: Ditto.
5912 2012-10-26 Jan Hubicka <jh@suse.cz>
5914 * ipa-inline-transform.c (inline_call): Only account size changes
5917 2012-10-26 Martin Jambor <mjambor@suse.cz>
5920 * tree-sra.c (struct access): New flag grp_to_be_debug_replaced.
5921 (dump_access): Dump the new flag.
5922 (analyze_access_subtree): Set the new flag when appropriate.
5923 (create_access_replacement): Handle debug replacements differently.
5924 (generate_subtree_copies): Handle the grp_to_be_debug_replaced flag.
5925 (init_subtree_with_zero): Likewise.
5926 (sra_modify_expr): Likewise.
5927 (load_assign_lhs_subreplacements): Likewise.
5928 (sra_modify_assign): Likewise.
5930 2012-10-23 Yuri Rumyantsev <ysrumyan@gmail.com>
5932 * config/i386/i386.c (insn_is_function_arg) : Add check on CALL
5934 (ix86_dependencies_evaluation_hook): Insert dependencies in all
5935 predecessors of call block for non-trivial region avoiding creation
5936 of loop-carried dependency to avoid cross-block motion of HW registers.
5938 2012-10-26 Richard Biener <rguenther@suse.de>
5941 * tree-optimize.c (execute_fixup_cfg): Insert __builtin_unreachable
5942 at the end of blocks with no successors.
5944 2012-10-26 Alexander Ivchenko <alexander.ivchenko@intel.com>
5945 Uros Bizjak <ubizjak@gmail.com>
5947 * common/config/i386/i386-common.c
5948 (OPTION_MASK_ISA_FXSR_SET): New.
5949 (OPTION_MASK_ISA_XSAVE_SET): Likewise.
5950 (OPTION_MASK_ISA_XSAVEOPT_SET): Likewise.
5951 (ix86_handle_option): Handle mfxsr, mxsave, mxsaveopt options.
5952 * config.gcc (i[34567]86-*-*): Add fxsrintrin.h,
5953 xsaveintrin.h, xsaveoptintrin.h.
5954 (x86_64-*-*): Likewise.
5955 * config/i386/fxsrintrin.h: New header.
5956 * config/i386/xsaveintrin.h: Likewise.
5957 * config/i386/xsaveoptintrin.h: Likewise.
5958 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5959 FXSR/XSAVE/XSAVEOPT support.
5960 * config/i386/i386-builtin-types.def
5961 (VOID_FTYPE_PVOID_INT64): New function type.
5962 * config/i386/i386-c.c: Define __FXSR__, __XSAVE__
5963 and __XSAVEOPT__ if needed.
5964 * config/i386/i386.c (ix86_target_string): Define -mfxsr,
5965 -mxsave and -mxsaveopt options.
5967 (PTA_XSAVE): Likewise.
5968 (PTA_XSAVEOPT): Likewise.
5969 (ix86_option_override_internal): Handle new option.
5970 (processor_alias_table): Added PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT.
5971 (ix86_valid_target_attribute_inner_p): Add OPT_mfxsr,
5972 OPT_mxsave, OPT_mxsaveopt.
5973 (ix86_builtins): Add IX86_BUILTIN_FXSAVE, IX86_BUILTIN_FXRSTOR,
5974 IX86_BUILTIN_FXSAVE64, IX86_BUILTIN_XSAVE, IX86_BUILTIN_XSAVE64,
5975 IX86_BUILTIN_XRSTOR, IX86_BUILTIN_XRSTOR64, IX86_BUILTIN_XSAVEOPT,
5976 IX86_BUILTIN_XSAVEOPT64.
5977 (ix86_expand_builtin): Handle these built-ins.
5978 * config/i386/i386.h (TARGET_FXSR): New.
5979 (TARGET_XSAVE): Likewise.
5980 (TARGET_XSAVEOPT): Likewise.
5981 * config/i386/i386.md (ANY_XSAVE): New int iterator.
5982 (ANY_XSAVE64): Likewise.
5983 (xsave): New int attribute.
5984 (fxsave): New instruction.
5985 (fxsave64): Likewise.
5986 (fxrstor): Likewise.
5987 (fxrstor64): Likewise.
5988 (<xsave>): Likewise.
5989 (<xsave>_rex64): Likewise.
5991 (xrstor_rex64): Likewise.
5992 (xrstor64): Likewise.
5993 * config/i386/i386.opt (mfxsr): New.
5995 (mxsaveopt): Likewise.
5996 * config/i386/x86intrin.h: Include
5997 xsaveintrin.h, fxsrintrin.h, xsaveoptintrin.h.
5999 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
6001 * config/avr/t-rtems: Revert previous commit.
6003 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6006 * Makefile.in (rtlanal.o): Add dependency on addresses.h.
6007 * rtl.h (address_info): New structure.
6008 (strip_address_mutations, decompose_address, decompose_lea_address)
6009 (decompose_mem_address, update_address, get_index_scale)
6010 (get_index_code): Declare.
6011 * rtlanal.c: Include addresses.h.
6012 (strip_address_mutations, must_be_base_p, must_be_index_p)
6013 (set_address_segment, set_address_base, set_address_index)
6014 (set_address_disp, decompose_incdec_address, decompose_automod_address)
6015 (extract_plus_operands, baseness, decompose_normal_address)
6016 (decompose_address, decompose_lea_address, decompose_mem_address)
6017 (update_address, get_index_scale, get_index_code): New functions.
6018 * lra-constraints.c (strip_subreg): New function.
6019 (address, extract_loc_address_regs, extract_address_regs)
6020 (get_index_scale): Delete.
6021 (process_addr_reg): Apply strip_subreg to the location.
6022 (uses_hard_regs_p): Use decompose_mem_address.
6023 (valid_address_p, base_plus_disp_to_reg, can_add_disp_p)
6024 (equiv_address_substitution): Take an address_info rather
6025 than an address. Remove other arguments. Avoid using Pmode.
6026 (process_address): Use decompose_mem_address and decompose_lea_address.
6027 Update calls to above functions.
6029 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6031 * lra-constraints.c (process_address): Tighten arguments to
6032 base_reg_class. Use simplify_gen_binary to generate PLUS rtxes.
6034 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6036 * lra-constraints.c (get_index_scale, can_add_disp_p): New functions.
6037 (equiv_address_substitution): Use them.
6039 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6041 * lra-constraints.c (valid_address_p): New function, split out from...
6042 (process_address): ...here.
6044 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6046 * lra-constraints.c (process_address): Describe the kinds of address
6049 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
6051 * lra-int.h (lra_assert): Redefine it gcc_checking_assert.
6052 * lra-constraints.c (check_and_process_move): Remove #if
6053 ENABLE_ASSERT_CHECKING.
6055 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
6057 * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
6059 * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
6061 2012-10-25 David S. Miller <davem@davemloft.net>
6063 * config/sparc/constraints.md ("U"): Delete.
6064 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
6065 * config/sparc/sync.md: Likewise.
6067 2012-10-25 Lawrence Crowl <crowl@google.com>
6069 * hash-table.h: Add usage documentation.
6070 (template struct typed_free_remove): Clarify documentation.
6071 Rename template parameter.
6072 (struct typed_noop_remove): Likewise.
6073 (descriptor concept): Change typedef T to value_type.
6074 Add typedef compare_type. Use more precise template parameter name,
6075 Descriptor instead of Descr. Update users to match.
6076 (struct hash_table): Change 'find' parameters to use compare_type
6077 instead of the value type.
6079 2012-10-25 Jan Hubicka <jh@suse.cz>
6081 * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned
6082 to direct call update the summary.
6083 * ipa-inline-transform.c (inline_call): Sanity check that summaries
6084 match the predicted effect; fix updating of summary after edge
6086 * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try
6087 to update the summary and recompute it instead.
6088 (estimate_function_body_sizes): Fix self size estimation; double
6089 check that it agrees with inline_update_overall_summary.
6090 (estimate_edge_size_and_time): Handle devirtualizaiton costs.
6091 (estimate_edge_devirt_benefit): Update to be called from
6092 estimate_edge_size_and_time.
6093 (estimate_calls_size_and_time): Update.
6094 (estimate_node_size_and_time): Watch overflows.
6095 (inline_merge_summary): Likewise.
6096 * ipa-prob.c: Include ipa-inline.h
6097 (ipa_make_edge_direct_to_target): After redirection update the summary.
6099 2012-10-25 Cary Coutant <ccoutant@google.com>
6102 * dwarf2out.c (prune_unused_types_prune): Check whether DIE is
6103 already a declaration.
6105 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
6107 * lra-assigns.c (assign_by_spills): Add non-reload pseudos
6108 assigned to hard register to changed_pseudo_bitmap.
6110 2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
6112 * config.gcc (microblaze*-*-rtems*): New target.
6113 * config/microblaze/rtems.h: New.
6114 * config/microblaze/t-rtems: New.
6116 2012-10-25 Jan Hubicka <jh@suse.cz>
6118 PR tree-optimize/54980
6119 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo.
6120 (loop_edge_to_cancel): Be sure that the edge is from an conditional
6121 so we can cancel it.
6123 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
6126 * tree.c (signed_or_unsigned_type_for): Handle vectors.
6128 2012-10-25 Jan Hubicka <jh@suse.cz>
6130 * ipa-inline.c (recursive_inlining): Redirect to master
6131 clone before testing profitability.
6133 2012-10-25 Richard Biener <rguenther@suse.de>
6135 PR tree-optimization/54902
6136 * tree-ssa-pre.c (fini_eliminate): Return TODO.
6138 (execute_fre): Likewise.
6139 * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
6140 blocks before computing dominators.
6142 2012-10-25 Richard Sandiford <rdsandiford@googlemail.com>
6144 * expr.c (emit_block_move_via_loop): Use simplify_gen_binary
6145 rather than gen_rtx_PLUS.
6147 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6151 * ira.c (setup_reg_renumber): Fix assert.
6152 * ira-emit.c (emit_move_list): Update equivalences only for LRA.
6154 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6157 * lra.c: Rename loc to sloc and loc_t to sloc_t.
6159 2012-10-24 Sharad Singhai <singhai@google.com>
6161 * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
6162 instead of dump_kind_p.
6164 2012-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6167 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc):
6168 Use diagnostic_append_note.
6169 * diagnostic.c (diagnostic_build_prefix): Make diagnostic const.
6170 (default_diagnostic_finalizer): Do not destroy prefix here.
6171 (diagnostic_report_diagnostic): Destroy it here.
6172 (diagnostic_append_note): New.
6173 * diagnostic.h (diagnostic_append_note): Declare.
6175 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6177 PR rtl-optimization/55055
6178 * lra-spills.c (alter_subregs): New function.
6179 (lra_hard_reg_substitution): Use it.
6181 2012-10-24 Sharad Singhai <singhai@google.com>
6183 * dumpfile.c (dump_enabled_p): Make it inline and move the definition
6185 (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p.
6186 Make alt_dump_file extern.
6187 * dumpfile.h (dump_enabled_p): Move inline definition here.
6188 (dump_kind_p): Delete declaration.
6189 Add extern declaration of alt_dump_file.
6190 * toplev.c: Move dump_file and dump_file_name to dumpfile.c.
6191 * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with
6193 * tree-vectorizer.c: Likewise.
6194 * tree-vect-loop.c: Likewise.
6195 * tree-vect-data-refs.c: Likewise.
6196 * tree-vect-patterns.c: Likewise.
6197 * tree-vect-stmts.c: Likewise.
6198 * tree-vect-slp.c: Likewise.
6200 2012-10-24 Richard Sandiford <rdsandiford@googlemail.com>
6202 * expmed.c (lowpart_bit_field_p): Add missing == 0 check.
6204 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6207 * lra-constraints.c (extract_loc_address_regs): Pass top_p for
6208 ZERO_EXTEND operand.
6210 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6213 * lra-constraints.c (update_ebb_live_info): Skip
6214 non-NOTE_INSN_BASIC_BLOCK notes.
6216 2012-10-24 Jakub Jelinek <jakub@redhat.com>
6218 PR rtl-optimization/55010
6219 * cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
6220 before passing it to simplify_relational_operation.
6223 * gimple.h (is_gimple_sizepos): New inline function.
6224 * gimplify.c (gimplify_one_sizepos): Use it. Remove useless
6225 final assignment to expr variable.
6226 * tree.c (RETURN_TRUE_IF_VAR): Return true also if
6227 !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
6228 into a local temporary.
6230 2012-10-23 David S. Miller <davem@davemloft.net>
6232 * config/sparc/constraints.md ("T", "W"): Change
6233 definitions to use define_memory_constraint. Do not match 'reg'.
6234 * config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM
6235 handling code, update comment.
6237 2012-10-23 Ian Lance Taylor <iant@google.com>
6239 * doc/extend.texi (Extended Asm): The '+' constraint does not
6242 2012-10-23 Jeff Law <law@redhat.com>
6244 * tree-ssa-threadedge.c (thread_across_edge): Remove unused
6245 parameter in call to cond_arg_set_in_bb.
6247 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused
6250 PR tree-optimization/54985
6251 * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
6252 from thread_across_edge.
6253 (thread_across_edge): Use it in all cases where we might thread
6256 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
6258 * lra-constraints.c (update_ebb_live_info): Process empty blocks.
6260 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
6262 * expmed.c (store_split_bit_field): Update the calls to
6263 extract_fixed_bit_field. In the big-endian case, always
6264 use the mode of OP0 to count the number of significant bits.
6265 (extract_bit_field_1): Remove unit, offset, bitpos and
6266 byte_offset from the outermost scope. Express conditions in terms
6267 of bitnum rather than offset, bitpos and byte_offset. Move the
6268 computation of MODE1 to the block that needs it. Use MODE unless
6269 the TMODE-based mode_for_size calculation succeeds. Split the
6270 plain move cases into two, one for memory accesses and one for
6271 register accesses. Generalize the memory case, freeing it from
6272 the old register-based endian checks. Move the INT_MODE calculation
6273 above the code that needs it. Use simplify_gen_subreg to handle
6274 multiword OP0s. If the field still spans several words, pass it
6275 directly to extract_split_bit_field. Assume after that point
6276 that both targets and register sources fit within a word.
6277 Replace x-prefixed variables with non-prefixed forms.
6278 Compute the bitpos for ext(z)v register operands directly in the
6279 chosen unit size, rather than going through an intermediate
6280 BITS_PER_WORD unit size. Simplify the containment check
6281 used when forcing OP0 into a register. Update the call to
6282 extract_fixed_bit_field.
6283 (extract_fixed_bit_field): Replace the bitpos and offset parameters
6284 with a single bitnum parameter, of the same form as extract_bit_field.
6285 Assume that OP0 contains the full field. Simplify the memory offset
6286 calculation and containment check for volatile bitfields. Make the
6287 offset explicit when volatile bitfields force a misaligned access.
6288 Remove WARNED and fix long lines. Assert that the processed OP0
6289 has an integral mode.
6290 (store_split_bit_field): Update the call to store_fixed_bit_field.
6292 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
6294 * expmed.c (lowpart_bit_field_p): New function.
6295 (store_bit_field_1): Remove unit, offset, bitpos and byte_offset
6296 from the outermost scope. Express conditions in terms of bitnum
6297 rather than offset, bitpos and byte_offset. Split the plain move
6298 cases into two, one for memory accesses and one for register accesses.
6299 Allow simplify_gen_subreg to fail rather than calling validate_subreg.
6300 Move the handling of multiword OP0s after the code that coerces VALUE
6301 to an integer mode. Use simplify_gen_subreg for this case and assert
6302 that it succeeds. If the field still spans several words, pass it
6303 directly to store_split_bit_field. Assume after that point that
6304 both sources and register targets fit within a word. Replace
6305 x-prefixed variables with non-prefixed forms. Compute the bitpos
6306 for insv register operands directly in the chosen unit size, rather
6307 than going through an intermediate BITS_PER_WORD unit size.
6308 Update the call to store_fixed_bit_field.
6309 (store_fixed_bit_field): Replace the bitpos and offset parameters
6310 with a single bitnum parameter, of the same form as store_bit_field.
6311 Assume that OP0 contains the full field. Simplify the memory offset
6312 calculation. Assert that the processed OP0 has an integral mode.
6313 (store_split_bit_field): Update the call to store_fixed_bit_field.
6315 2012-10-23 Paul Koning <ni1d@arrl.net>
6318 * dwarf2out.c (prune_unused_types_prune): If pruning a class and
6319 not all its children were marked, add DW_AT_declaration flag.
6321 2012-10-23 Ian Bolton <ian.bolton@arm.com>
6322 James Greenhalgh <james.greenhalgh@arm.com>
6323 Jim MacArthur <jim.macarthur@arm.com>
6324 Marcus Shawcroft <marcus.shawcroft@arm.com>
6325 Nigel Stephens <nigel.stephens@arm.com>
6326 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6327 Richard Earnshaw <rearnsha@arm.com>
6328 Sofiane Naci <sofiane.naci@arm.com>
6329 Stephen Thomas <stephen.thomas@arm.com>
6330 Tejas Belagod <tejas.belagod@arm.com>
6331 Yufeng Zhang <yufeng.zhang@arm.com>
6333 * config.gcc: Add AArch64.
6334 * configure.ac: Add AArch64 TLS support detection.
6335 * configure: Regenerate.
6337 2012-10-23 Ian Bolton <ian.bolton@arm.com>
6338 James Greenhalgh <james.greenhalgh@arm.com>
6339 Jim MacArthur <jim.macarthur@arm.com>
6340 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
6341 Marcus Shawcroft <marcus.shawcroft@arm.com>
6342 Nigel Stephens <nigel.stephens@arm.com>
6343 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6344 Richard Earnshaw <rearnsha@arm.com>
6345 Sofiane Naci <sofiane.naci@arm.com>
6346 Stephen Thomas <stephen.thomas@arm.com>
6347 Tejas Belagod <tejas.belagod@arm.com>
6348 Yufeng Zhang <yufeng.zhang@arm.com>
6350 * doc/invoke.texi (AArch64 Options): New.
6351 * doc/md.texi (Machine Constraints): Add AArch64.
6353 2012-10-23 Ian Bolton <ian.bolton@arm.com>
6354 James Greenhalgh <james.greenhalgh@arm.com>
6355 Jim MacArthur <jim.macarthur@arm.com>
6356 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
6357 Marcus Shawcroft <marcus.shawcroft@arm.com>
6358 Nigel Stephens <nigel.stephens@arm.com>
6359 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6360 Richard Earnshaw <rearnsha@arm.com>
6361 Sofiane Naci <sofiane.naci@arm.com>
6362 Stephen Thomas <stephen.thomas@arm.com>
6363 Tejas Belagod <tejas.belagod@arm.com>
6364 Yufeng Zhang <yufeng.zhang@arm.com>
6366 * common/config/aarch64/aarch64-common.c: New file.
6367 * config/aarch64/aarch64-arches.def: New file.
6368 * config/aarch64/aarch64-builtins.c: New file.
6369 * config/aarch64/aarch64-cores.def: New file.
6370 * config/aarch64/aarch64-elf-raw.h: New file.
6371 * config/aarch64/aarch64-elf.h: New file.
6372 * config/aarch64/aarch64-generic.md: New file.
6373 * config/aarch64/aarch64-linux.h: New file.
6374 * config/aarch64/aarch64-modes.def: New file.
6375 * config/aarch64/aarch64-option-extensions.def: New file.
6376 * config/aarch64/aarch64-opts.h: New file.
6377 * config/aarch64/aarch64-protos.h: New file.
6378 * config/aarch64/aarch64-simd.md: New file.
6379 * config/aarch64/aarch64-tune.md: New file.
6380 * config/aarch64/aarch64.c: New file.
6381 * config/aarch64/aarch64.h: New file.
6382 * config/aarch64/aarch64.md: New file.
6383 * config/aarch64/aarch64.opt: New file.
6384 * config/aarch64/arm_neon.h: New file.
6385 * config/aarch64/constraints.md: New file.
6386 * config/aarch64/gentune.sh: New file.
6387 * config/aarch64/iterators.md: New file.
6388 * config/aarch64/large.md: New file.
6389 * config/aarch64/predicates.md: New file.
6390 * config/aarch64/small.md: New file.
6391 * config/aarch64/sync.md: New file.
6392 * config/aarch64/t-aarch64-linux: New file.
6393 * config/aarch64/t-aarch64: New file.
6395 2012-10-23 Michael Matz <matz@suse.de>
6397 * tree-ssa-operands.h (struct def_optype_d, def_optype_p): Remove.
6398 (ssa_operands.free_defs): Remove.
6399 (DEF_OP_PTR, DEF_OP): Remove.
6400 (struct ssa_operand_iterator_d): Remove 'defs', add 'flags' members,
6401 rename 'phi_stmt' to 'stmt', 'phi_i' to 'i' and 'num_phi' to 'numops'.
6402 * gimple.h (gimple_statement_with_ops.def_ops): Remove.
6403 (gimple_def_ops, gimple_set_def_ops): Remove.
6404 (gimple_vdef_op): Don't take const gimple, adjust.
6405 (gimple_asm_input_op, gimple_asm_input_op_ptr,
6406 gimple_asm_set_input_op, gimple_asm_output_op,
6407 gimple_asm_output_op_ptr, gimple_asm_set_output_op): Adjust asserts,
6408 and rewrite to move def operands to front.
6409 (gimple_asm_clobber_op, gimple_asm_set_clobber_op,
6410 gimple_asm_label_op, gimple_asm_set_label_op): Correct asserts.
6411 * tree-ssa-operands.c (build_defs): Remove.
6412 (init_ssa_operands): Don't initialize it.
6413 (fini_ssa_operands): Don't free it.
6414 (cleanup_build_arrays): Don't truncate it.
6415 (finalize_ssa_stmt_operands): Don't assert on it.
6416 (alloc_def, add_def_op, append_def): Remove.
6417 (finalize_ssa_defs): Remove building of def_ops list.
6418 (finalize_ssa_uses): Don't mark for SSA renaming here, ...
6419 (add_stmt_operand): ... but here, don't call append_def.
6420 (get_indirect_ref_operands): Remove recurse_on_base argument.
6421 (get_expr_operands): Adjust call to get_indirect_ref_operands.
6422 (verify_ssa_operands): Don't check def operands.
6423 (free_stmt_operands): Don't free def operands.
6424 * gimple.c (gimple_copy): Don't clear def operands.
6425 * tree-flow-inline.h (op_iter_next_use): Adjust to explicitely
6427 (op_iter_next_tree, op_iter_next_def): Ditto.
6428 (clear_and_done_ssa_iter): Clear new fields.
6429 (op_iter_init): Adjust to setup new iterator structure.
6430 (op_iter_init_phiuse): Adjust.
6432 2012-10-23 Greta Yorsh <Greta.Yorsh@arm.com>
6434 * config/arm/arm.c (offset_ok_for_ldrd_strd): Return false for Thumb1.
6436 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
6438 * dbxout.c (dbxout_symbol_location): Pass new argument to alter_subreg.
6439 * dwarf2out.c: Include ira.h and lra.h.
6440 (based_loc_descr, compute_frame_pointer_to_fb_displacement): Use
6441 lra_eliminate_regs for LRA instead of eliminate_regs.
6442 * expr.c (emit_move_insn_1): Pass an additional argument to
6443 emit_move_via_integer. Use emit_move_via_integer for LRA only if
6444 the insn is recognized.
6445 * emit-rtl.c (gen_rtx_REG): Add lra_in_progress.
6446 (validate_subreg): Don't check offset for LRA and floating point modes.
6447 * final.c (final_scan_insn, cleanup_subreg_operands): Pass new
6448 argument to alter_subreg.
6449 (walk_alter_subreg, output_operand): Ditto.
6450 (alter_subreg): Add new argument.
6451 * gcse.c (calculate_bb_reg_pressure): Add parameter to
6452 ira_setup_eliminable_regset call.
6453 * ira.c: Include lra.h.
6454 (ira_init_once, ira_init, ira_finish_once): Call lra_start_once,
6455 lra_init, lra_finish_once in anyway.
6456 (ira_setup_eliminable_regset): Add parameter. Remove need_fp.
6457 Call lra_init_elimination and mark HARD_FRAME_POINTER_REGNUM as
6458 living forever if frame_pointer_needed.
6459 (setup_reg_class_relations): Set up ira_reg_class_subset.
6460 (ira_reg_equiv_invariant_p, ira_reg_equiv_const): Remove.
6461 (find_reg_equiv_invariant_const): Ditto.
6462 (setup_reg_renumber): Use ira_equiv_no_lvalue_p instead of
6463 ira_reg_equiv_invariant_p. Skip caps for LRA.
6464 (setup_reg_equiv_init, ira_update_equiv_info_by_shuffle_insn): New
6466 (ira_reg_equiv_len, ira_reg_equiv): New externals.
6467 (ira_reg_equiv): New.
6468 (ira_expand_reg_equiv, init_reg_equiv, finish_reg_equiv): New
6470 (no_equiv, update_equiv_regs): Use ira_reg_equiv instead of
6472 (setup_reg_equiv): New function.
6473 (ira_use_lra_p): New global.
6474 (ira): Set up lra_simple_p and ira_conflicts_p. Set up and
6475 restore flag_caller_saves and flag_ira_region. Move
6476 initialization of ira_obstack and ira_bitmap_obstack upper. Call
6477 init_reg_equiv, setup_reg_equiv, and setup_reg_equiv_init instead
6478 of initialization of ira_reg_equiv_len, ira_reg_equiv_invariant_p,
6479 and ira_reg_equiv_const. Call ira_setup_eliminable_regset with a
6480 new argument. Don't flatten IRA IRA for LRA. Don't reassign
6481 conflict allocnos for LRA. Call finish_reg_equiv.
6482 (do_reload): Prepare code for LRA call. Call LRA.
6483 * ira.h (ira_use_lra_p): New external.
6484 (struct target_ira): Add members x_ira_class_subset_p
6485 x_ira_reg_class_subset, and x_ira_reg_classes_intersect_p.
6486 (ira_class_subset_p, ira_reg_class_subset): New macros.
6487 (ira_reg_classes_intersect_p): New macro.
6488 (struct ira_reg_equiv): New.
6489 (ira_setup_eliminable_regset): Add an argument.
6490 (ira_expand_reg_equiv, ira_update_equiv_info_by_shuffle_insn): New
6492 * ira-color.c (color_pass, move_spill_restore, coalesce_allocnos):
6493 Use ira_equiv_no_lvalue_p.
6494 (coalesce_spill_slots, ira_sort_regnos_for_alter_reg): Ditto.
6495 * ira-emit.c (ira_create_new_reg): Call ira_expand_reg_equiv.
6496 (generate_edge_moves, change_loop) Use ira_equiv_no_lvalue_p.
6497 (emit_move_list): Simplify code. Call
6498 ira_update_equiv_info_by_shuffle_insn. Use ira_reg_equiv instead
6499 of ira_reg_equiv_invariant_p and ira_reg_equiv_const. Change assert.
6500 * ira-int.h (struct target_ira_int): Remove x_ira_class_subset_p
6501 and x_ira_reg_classes_intersect_p.
6502 (ira_class_subset_p, ira_reg_classes_intersect_p): Remove.
6503 (ira_reg_equiv_len, ira_reg_equiv_invariant_p): Ditto.
6504 (ira_reg_equiv_const): Ditto.
6505 (ira_equiv_no_lvalue_p): New function.
6506 * jump.c (true_regnum): Always use hard_regno for subreg_get_info
6507 when lra is in progress.
6508 * haifa-sched.c (sched_init): Pass new argument to
6509 ira_setup_eliminable_regset.
6510 * loop-invariant.c (calculate_loop_reg_pressure): Pass new
6511 argument to ira_setup_eliminable_regset.
6515 * lra-assigns.c: Ditto.
6516 * lra-constraints.c: Ditto.
6517 * lra-coalesce.c: Ditto.
6518 * lra-eliminations.c: Ditto.
6519 * lra-lives.c: Ditto.
6520 * lra-spills.c: Ditto.
6521 * Makefile.in (LRA_INT_H): New.
6522 (OBJS): Add lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o,
6523 lra-eliminations.o, lra-lives.o, and lra-spills.o.
6524 (dwarf2out.o): Add dependence on ira.h and lra.h.
6525 (ira.o): Add dependence on lra.h.
6526 (lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o): New entries.
6527 (lra-eliminations.o, lra-lives.o, lra-spills.o): Ditto.
6528 * output.h (alter_subreg): Add new argument.
6529 * rtlanal.c (simplify_subreg_regno): Permit mode changes for LRA.
6530 Permit ARG_POINTER_REGNUM and STACK_POINTER_REGNUM for LRA.
6531 * recog.c (general_operand, register_operand): Accept paradoxical
6532 FLOAT_MODE subregs for LRA.
6533 (scratch_operand): Accept pseudos for LRA.
6534 * rtl.h (lra_in_progress): New external.
6535 (debug_bb_n_slim, debug_bb_slim, print_value_slim): New prototypes.
6536 (debug_rtl_slim, debug_insn_slim): Ditto.
6537 * sdbout.c (sdbout_symbol): Pass new argument to alter_subreg.
6538 * sched-vis.c (print_value_slim): New.
6539 * target.def (lra_p): New hook.
6540 (register_priority): Ditto.
6541 (different_addr_displacement_p): Ditto.
6542 (spill_class): Ditto.
6543 * target-globals.h (this_target_lra_int): New external.
6544 (target_globals): New member lra_int.
6545 (restore_target_globals): Restore this_target_lra_int.
6546 * target-globals.c: Include lra-int.h.
6547 (default_target_globals): Add &default_target_lra_int.
6548 * targhooks.c (default_lra_p): New function.
6549 (default_register_priority): Ditto.
6550 (default_different_addr_displacement_p): Ditto.
6551 * targhooks.h (default_lra_p): Declare.
6552 (default_register_priority): Ditto.
6553 (default_different_addr_displacement_p): Ditto.
6554 * timevar.def (TV_LRA, TV_LRA_ELIMINATE, TV_LRA_INHERITANCE): New.
6555 (TV_LRA_CREATE_LIVE_RANGES, TV_LRA_ASSIGN, TV_LRA_COALESCE): New.
6556 * config/arm/arm.c (load_multiple_sequence): Pass new argument to
6558 (store_multiple_sequence): Ditto.
6559 * config/i386/i386.h (enum ix86_tune_indices): Add
6560 X86_TUNE_GENERAL_REGS_SSE_SPILL.
6561 (TARGET_GENERAL_REGS_SSE_SPILL): New macro.
6562 * config/i386/i386.c (initial_ix86_tune_features): Set up
6563 X86_TUNE_GENERAL_REGS_SSE_SPILL for m_COREI7 and m_CORE2I7.
6564 (ix86_lra_p, ix86_register_priority): New functions.
6565 (ix86_secondary_reload): Add NON_Q_REGS, SIREG, DIREG.
6566 (inline_secondary_memory_needed): Change assert.
6567 (ix86_spill_class): New function.
6568 (TARGET_LRA_P, TARGET_REGISTER_BANK, TARGET_SPILL_CLASS): New macros.
6569 * config/m68k/m68k.c (emit_move_sequence): Pass new argument to
6571 * config/m32r/m32r.c (gen_split_move_double): Ditto.
6572 * config/pa/pa.c (pa_emit_move_sequence): Ditto.
6573 * config/sh/sh.md: Ditto.
6574 * config/v850/v850.c (v850_reorg): Ditto.
6575 * config/xtensa/xtensa.c (fixup_subreg_mem): Ditto.
6576 * doc/md.texi: Add new interpretation of hint * for LRA.
6577 * doc/passes.texi: Describe LRA pass.
6578 * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_PRIORITY,
6579 TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, and TARGET_SPILL_CLASS.
6580 * doc/tm.texi: Update.
6582 2012-10-23 Jan Hubicka <jh@suse.cz>
6584 * loop-unroll.c (decide_peel_simple): Simple peeling makes sense even
6585 with simple loops; bound number of branches only when FDO is not
6587 (decide_unroll_stupid): Mention that num_loop_branches heuristics
6590 2012-10-23 Nick Clifton <nickc@redhat.com>
6593 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress
6594 compile time warning about pointer printing.
6596 2012-10-23 Joseph Myers <joseph@codesourcery.com>
6598 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
6599 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Use
6600 glibc-c.o in c_target_objs and cxx_target_objs. Use t-glibc in
6601 tmake_file. Set target_has_targetcm.
6602 (tilegx-*-linux*, tilepro-*-linux*): Append to c_target_objs and
6603 cxx_target_objs rather than overriding previous value.
6604 * config/glibc-c.c, config/t-glibc: New.
6605 * doc/tm.texi.in (TARGET_C_PREINCLUDE): New @hook.
6606 * doc/tm.texi: Regenerate.
6607 * hooks.c (hook_constcharptr_void_null): New.
6608 * hooks.h (hook_constcharptr_void_null): Declare.
6610 2012-10-23 Eric Botcazou <ebotcazou@adacore.com>
6612 * config/mips/linux-common.h (STACK_CHECK_STATIC_BUILTIN): Define.
6613 (STACK_CHECK_PROTECT): Likewise.
6614 * config/mips/mips.h (MIPS_PROLOGUE_TEMP2_REGNUM): Likewise.
6615 (MIPS_PROLOGUE_TEMP2): Likewise.
6616 * config/mips/mips-protos.h (mips_output_probe_stack_range): Declare.
6617 * config/mips/mips.c: Include common/common-target.h.
6618 (mips_emit_probe_stack_range): New function.
6619 (mips_output_probe_stack_range): Likewise.
6620 (mips_expand_prologue): Invoke mips_emit_probe_stack_range if static
6621 builtin stack checking is enabled.
6622 * config/mips/mips.md (UNSPEC_PROBE_STACK_RANGE): New constant.
6623 (probe_stack_range_<P:mode>): New insn.
6625 2012-10-23 Marc Glisse <marc.glisse@inria.fr>
6627 * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors.
6628 * fold-const.c (fold_relational_const): Handle VECTOR_CST.
6629 * doc/generic.texi (VEC_COND_EXPR): Document current policy.
6631 2012-10-23 Jan Hubicka <jh@suse.cz>
6634 * tree-ssa-loop-niter.c (record_estimate): Do not try to lower
6635 the bound of non-is_exit statements.
6636 (maybe_lower_iteration_bound): Do it here.
6637 (estimate_numbers_of_iterations_loop): Call it.
6639 2012-10-23 Jan Hubicka <jh@suse.cz>
6642 * cfgloopmanip.c (fix_bb_placements): Add loop_closed_ssa_invalidated;
6643 track basic blocks that moved out of their loops.
6645 (remove_path): Update.
6646 (fix_loop_placements): Update.
6647 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add
6648 loop_closed_ssa_invalidated parameter; pass it around.
6649 (canonicalize_loop_induction_variables): Update loop closed
6651 (tree_unroll_loops_completely): Likewise; do irred update out of
6652 the outer loop; verify that SSA form is closed.
6653 * cfgloop.h (unrloop): Update.
6655 2012-10-23 Terry Guo <terry.guo@arm.com>
6658 * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
6661 2012-10-23 Hans-Peter Nilsson <hp@bitrange.com>
6665 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
6666 expand_builtin_setjmp_receiver.
6667 (expand_label): Adjust, call expand_builtin_setjmp_receiver
6668 with NULL for the label parameter.
6669 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
6670 the frame-pointer. Adjust comments.
6671 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
6672 only if LABEL is non-NULL.
6674 2012-10-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6676 PR tree-optimization/55008
6677 * gimple-ssa-strength-reduction.c (find_basis_for_candidate):
6678 Don't allow a candidate to be a basis for itself under another
6681 2012-10-22 Sharad Singhai <singhai@google.com>
6683 * dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update
6685 (dump_enabled_p): A new function to check if any of the dump files
6687 (dump_kind_p): Remove check for current_function_decl. Add check for
6688 dumpfile and alt_dump_file.
6689 * dumpfile.h: Add declaration of dump_enabled_p.
6691 2012-10-22 Richard Biener <rguenther@suse.de>
6694 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove
6697 2012-10-22 Uros Bizjak <ubizjak@gmail.com>
6699 * config/i386/i386.c (memory_address_length): Assert that non-null
6700 base or index RTXes are registers. Do not check for REG RTXes.
6701 Determine addr32 prefix using SImode_address_operand or
6702 from original base and index RTXes. Simplify code.
6704 2012-10-22 Richard Biener <rguenther@suse.de>
6706 PR tree-optimization/55011
6707 * tree-vrp.c (update_value_range): For invalid lattice transitions
6710 2012-10-22 Julian Brown <julian@codesourcery.com>
6712 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
6713 VFP D registers in big-endian mode.
6715 2012-10-22 Georg-Johann Lay <avr@gjlay.de>
6717 * doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
6718 Note __AVR_<device>__ is not defined for cores.
6719 Don't point to --help=target.
6721 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
6722 Greta Yorsh <Greta.Yorsh@arm.com>
6724 * config/arm/arm.c (thumb2_emit_ldrd_pop): New function.
6725 (arm_expand_epilogue): Use the new function.
6727 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
6728 Greta Yorsh <Greta.Yorsh@arm.com>
6730 * config/arm/arm.c (thumb2_emit_strd_push): New function.
6731 (arm_expand_prologue): Use the new function.
6733 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
6734 Greta Yorsh <Greta.Yorsh@arm.com>
6736 * config/arm/arm-protos.h (offset_ok_for_ldrd_strd): New declaration.
6737 (operands_ok_ldrd_strd): Likewise.
6738 * config/arm/arm.c (offset_ok_for_ldrd_strd): New function.
6739 (operands_ok_ldrd_strd): Likewise.
6740 * config/arm/arm.md (thumb2_ldrd, thumb2_ldrd_base): New patterns.
6741 (thumb2_ldrd_base_neg): Likewise.
6742 (thumb2_strd, thumb2_strd_base, thumb_strd_base_neg): Likewise.
6743 * predicates.md (ldrd_strd_offset_operand): New predicate.
6744 * config/arm/constraints.md (Do): New constraint.
6746 2012-10-22 Hans-Peter Nilsson <hp@bitrange.com>
6748 * config/mmix/mmix.md ("nonlocal_goto_receiver"): Refer to the
6749 frame-pointer as an operand.
6750 ("*nonlocal_goto_receiver_expanded"): Ditto. Use
6751 mmix_output_register_setting instead of naked output_asm_insn for
6752 the offset from the frame-pointer to the saved rO.
6753 * config/mmix/mmix.c (mmix_output_register_setting): Emit NEGU for
6755 * config/mmix/predicates.md ("frame_pointer_operand"): New.
6756 * config/mmix/constraints.md ("Yf"): New.
6758 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
6759 expand_builtin_setjmp_receiver.
6760 (expand_label): Adjust, call expand_builtin_setjmp_receiver
6761 with NULL for the label parameter.
6762 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
6763 the frame-pointer. Adjust comments.
6764 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
6765 only if LABEL is non-NULL.
6767 2012-10-21 Uros Bizjak <ubizjak@gmail.com>
6769 * config/i386/i386-protos.h (memory_address_length): Add new bool
6770 argument. Update all uses.
6771 * config/i386/i386.c (memory_address_length): If not LEA insn, then
6772 add length of addr32 prefix based on mode of base or index register.
6773 (ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
6774 addresses here. Update call to memory_address_length.
6775 (ix86_print_address_operand): Use SImode_address_operand predicate.
6776 * config/i386/predicates.md (SImode_address_operand): New.
6777 * config/i386/i386.md (lea<mode>): Use SImode_address_operand
6778 to calculate "mode" attribute. Use SImode_address_operand predicate
6779 instead of open-coding accepted RTX codes.
6781 2012-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
6783 * rtl.def (ADDR_DIFF_VEC): Fix comment typo.
6785 2012-10-21 Eric Botcazou <ebotcazou@adacore.com>
6787 PR rtl-optimization/44194
6788 * calls.c (expand_call): Allow sibling calls in the PARALLEL case.
6790 2012-10-21 Tobias Burnus <burnus@net-b.de>
6793 * Makefile.in (TARGET_SYSTEM_ROOT_DEFINE): New.
6795 2012-10-21 Chung-Lin Tang <cltang@codesourcery.com>
6797 * config/xtensa/xtensa.c (xtensa_expand_builtin): Remove unused 'arg'
6800 2012-10-20 Eric Botcazou <ebotcazou@adacore.com>
6802 PR rtl-optimization/54315
6803 * calls.c (expand_call): Don't deal specifically with BLKmode values
6804 returned in naked registers.
6805 * expr.h (copy_blkmode_from_reg): Adjust prototype.
6806 * expr.c (copy_blkmode_from_reg): Rename first parameter into
6807 TARGET and make it required. Assert that SRCREG hasn't BLKmode.
6808 Add a couple of short-circuits for common cases and be prepared
6809 for sub-word registers.
6810 (expand_assignment): Call copy_blkmode_from_reg for BLKmode values
6811 returned in naked registers.
6812 (store_expr): Likewise.
6813 (store_field): Likewise.
6815 2012-10-20 Jan Hubicka <jh@suse.cz>
6817 * loop-unroll.c (decide_unroll_constant_iterations): Don't
6818 perform unrolling for loops with low iterations bounds or estimates.
6820 2012-10-20 Jan Hubicka <jh@suse.cz>
6822 * loop-iv.c (iv_number_of_iterations): Record the upper bound
6823 only if there are no further conditions on it.
6825 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6829 * opts.c (finish_options): Remove explicit handling from here.
6831 2012-10-20 Joern Rennecke <joern.rennecke@embecosm.com>
6832 Richard Sandiford <rdsandiford@googlemail.com>
6834 * emit-rtl.c (copy_delay_slot_insn): New function.
6835 * emit-rtl.h (copy_delay_slot_insn): Declare.
6836 * reorg.c: Include "emit-rtl.h".
6837 (steal_delay_list_from_target): Use copy_delay_slot_insn.
6838 (fill_slots_from_thread, fill_simple_delay_slots): Likewise.
6840 * final.c (shorten_branches): When optimizing, start with small
6841 length and increase from there, and don't decrease lengths.
6843 2012-10-19 Jan Hubicka <jh@suse.cz>
6845 * builtins.def (BUILT_IN_UNREACHABLE): Make
6846 ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST.
6847 * builtin-attrs.def (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
6849 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
6850 Dominique Dhumieres <dominiq@lps.ens.fr>
6852 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume
6853 OPTION_MASK_STRICT_ALIGN is defined.
6854 (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined,
6855 define this to 0 for the 3 ports that use it.
6857 * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do
6858 check for ports not having -mstrict-align here, move test to
6860 (MASK_STRICT_ALIGN): Likewise.
6861 (rs6000_debug_reg_global): Print out correct target flag words if
6864 2012-10-19 Marek Polacek <polacek@redhat.com>
6867 * fold-const.c (fold_sign_changed_comparison): Punt if folding
6868 pointer/non-pointer comparison.
6870 2012-10-19 Greta Yorsh <Greta.Yorsh@arm.com>
6872 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6873 new effective target keyword arm_prefer_ldrd_strd.
6875 2012-10-19 Richard Guenther <rguenther@suse.de>
6877 PR tree-optimization/54981
6878 * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p):
6879 Do not consider debug stmts as uses.
6881 2012-10-19 Richard Biener <rguenther@suse.de>
6883 PR tree-optimization/54976
6884 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6885 Robustify against odd inner_mode inputs.
6887 2012-10-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6890 * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
6891 sure the mode is correct when falling through from above cases.
6893 2012-10-19 Bin Cheng <bin.cheng@arm.com>
6895 * common.opt (flag_ira_hoist_pressure): New.
6896 * doc/invoke.texi (-fira-hoist-pressure): Describe.
6897 * ira-costs.c (ira_set_pseudo_classes): New parameter.
6898 * ira.h: Update copyright dates.
6899 (ira_set_pseudo_classes): Update prototype.
6900 * haifa-sched.c (sched_init): Update call.
6901 * ira.c (ira): Update call.
6902 * regmove.c: Update copyright dates.
6903 (regmove_optimize): Update call.
6904 * loop-invariant.c: Update copyright dates.
6905 (move_loop_invariants): Update call.
6906 * gcse.c: (struct bb_data): New structure.
6907 (BB_DATA): New macro.
6908 (curr_bb, curr_reg_pressure): New static variables.
6909 (should_hoist_expr_to_dom): Rename from hoist_expr_reaches_here_p.
6910 Change parameter expr_index to expr.
6911 New parameters pressure_class, nregs and hoisted_bbs.
6912 Use reg pressure to determine the distance expr can be hoisted.
6913 (hoist_code): Use reg pressure to direct the hoist process.
6914 (get_regno_pressure_class, get_pressure_class_and_nregs)
6915 (change_pressure, calculate_bb_reg_pressure): New.
6916 (one_code_hoisting_pass): Calculate register pressure. Allocate
6919 2012-10-19 Bin Cheng <bin.cheng@arm.com>
6921 * gcse.c: Update copyright dates.
6922 (hoist_expr_reaches_here_p): Change parameter type from char *
6925 2012-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
6928 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
6929 "arm*-*-rtemseabi*" to "arm*-*-rtems*".
6931 2012-10-19 Alan Modra <amodra@gmail.com>
6933 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
6934 (HAVE_LD_LARGE_TOC): Likewise.
6935 * configure: Regenerate.
6937 2012-10-19 Alan Modra <amodra@gmail.com>
6939 * config/rs6000/predicates.md (splat_input_operand): Don't call
6940 input_operand for MEMs. Instead check for volatile and call
6941 memory_address_addr_space_p with modified mode.
6943 2012-10-18 Uros Bizjak <ubizjak@gmail.com>
6945 * config/i386/i386.md (rdpmc): Remove expander.
6948 (rdpmc): Rename from *rdpmc.
6949 (rdpmc_rex64): Rename from *rdpmc_rex64.
6950 (rdtsc): Rename from *rdtsc.
6951 (rdtsc_rex64): Rename from *rdtsc_rex64.
6952 (rdtscp): Rename from *rdtscp.
6953 (rdtscp_rex64): Rename from *rdtscp_rex64.
6955 * config/i386/i386.c (struct builtin_description bdesc_special_args)
6956 <IX86_BUILTIN_RDTSC>: Use CODE_FOR_NOTHING.
6957 <IX86_BUILTIN_RDTSCP>: Ditto.
6958 (struct builtin_description bdesc__args) <IX86_BUILTIN_RDPMC>: Ditto.
6959 (ix86_expand_builtin) <IX86_BUILTIN_{RDPMC,RDTSC,RDTSCP}>: Handle here.
6961 2012-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6963 * config/sh/sh.c: Fix comment to silence warning.
6965 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6966 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6967 Sameera Deshpande <sameera.deshpande@arm.com>
6969 * config/arm/cortex-a15-neon.md: New file.
6970 * config/arm/cortex-a15.md (cortex_a15_call): Adjust reservation.
6971 (cortex_a15_load1): Likewise.
6972 (cortex_a15_load3): Likewise.
6973 (cortex_a15_store1): Likewise.
6974 (cortex_a15_store3): Likewise.
6975 (cortex-a15-neon.md): Include.
6977 2012-10-18 Segher Boessenkool <segher@kernel.crashing.org>
6979 * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Add mode.
6980 (altivec_vsumsws_nomode): Delete.
6981 (reduc_splus_<mode>, reduc_uplus_<mode>): Call gen_altivec_vsumsws
6982 instead of gen_altivec_vsumsws_nomode.
6983 (altivec_lvlx, altivec_lvlxl, altivec_lvrx, altivec_lvrxl): Add mode.
6984 * config/rs6000/rs6000.md (probe_stack): Rename to...
6985 (probe_stack_<mode>): ... this. Add mode. Change pattern to
6986 use std instead of stw when appropriate.
6987 (probe_stack): New expander.
6988 (move_from_CR_ov_bit): Add mode.
6989 (splitter for compare_plus_ne0_<mode>, splitter for
6990 compare_plus_ne0_<mode>_1): Remove constraints.
6991 * config/rs6000/sync.md (loadsync): Rename to...
6992 (loadsync_<mode>): ... this. Add mode.
6993 (atomic_load<mode>): Adjust.
6995 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6997 * loop-invariant.c: Include target.h.
6998 (check_dependency): Return false for an uninitialized argument register
6999 that is likely to be spilled.
7000 * Makefile.in (loop-invariant.o): Add $(TARGET_H).
7002 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
7004 * except.c (sjlj_emit_function_enter): Remove unused variable.
7006 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7007 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7009 * config/arm/arm.c (neon_builtin_data): Add vfma and vfms builtins.
7010 * config/arm/neon-docgen.ml (intrinsic_groups): Add
7011 fused-multiply-* groups.
7012 * config/neon-gen.ml (print_feature_test_start): New function.
7013 (print_feature_test_end): Likewise.
7014 (print_variant): Print feature test macros.
7015 * config/arm/neon-testgen.ml (emit_prologue): Allow different
7016 tests to require different effective targets.
7017 (effective_target): New function.
7018 (test_intrinsic): Specify correct effective targets.
7019 * config/arm/neon.md (fma<VCVTF:mode>4_intrinsic): New pattern.
7020 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
7021 (neon_vfma<VCVFT:mode>): New expand.
7022 (neon_vfms<VCVFT:mode>): Likewise.
7023 * config/neon.ml (opcode): Add Vfma and Vfms.
7024 (features): Add Requires_feature.
7025 (ops): Add VFMA and VFMS intrinsics.
7026 * config/arm/arm_neon.h: Regenerate.
7027 * doc/arm-neon-intrinsics.texi: Likewise.
7029 2012-10-18 Richard Guenther <rguenther@suse.de>
7031 * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst.
7032 * lto-streamer-in.c (lto_input_tree): Use it.
7033 * lto-streamer-out.c (lto_output_tree): Likewise, for
7034 !TREE_OVERFLOW integer constants only.
7035 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function.
7036 (unpack_value_fields): Call it.
7037 (streamer_read_integer_cst): Simplify.
7038 * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function.
7039 (streamer_pack_tree_bitfields): Call it.
7040 (streamer_write_integer_cst): Adjust.
7042 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7043 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7045 * config.gcc: Add support for ARMv8 for arm*-*-* targets.
7046 * config/arm/arm-arches.def: Add armv8-a
7047 * config/arm/arm-fpus.def: Add fp-armv8, neon-fp-armv8,
7048 crypto-neon-fp-armv8. Add crypto field.
7049 * config/arm/arm-tables.opt: Regenerate.
7050 * config/arm/arm.c (FL_FOR_ARCH8A): Likewise.
7051 (arm_arch8): New global variable.
7052 (ARM_FPU): Add crypto parameter.
7053 (arm_option_override): Set arm_arch8, update comments.
7054 * config/arm/arm.h (TARGET_CRYPTO): New macro.
7055 (arm_fpu_desc): Add crypto field.
7056 (base_architecture): Add ARMv8 entry.
7057 (arm_arch8): New variable declaration.
7058 * config/arm/bpabi.h: ARMv8 supports BE8.
7059 * doc/invoke.texi: Document ARMv8 options.
7061 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
7064 * trans-mem.c (diagnose_tm_1_op): Allow volatiles inside relaxed
7067 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
7069 PR rtl-optimization/54900
7070 * ifcvt.c (noce_can_store_speculate_p): Call
7071 memory_must_be_modified_in_insn_p.
7072 * alias.c (memory_must_be_modified_in_insn_p): New.
7073 (set_dest_equal_p): New.
7074 * rtl.h (memory_must_be_modified_in_p): Protoize.
7076 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7078 * config/rs6000/rs6000.opt (rs6000_isa_flags): New flag word to
7079 replace target_flags that gives us 63 possible switches.
7080 (x_rs6000_isa_flags): Save area for rs6000_isa_flags.
7081 (x_rs6000_isa_flags_explicit): Save area for rs6000_isa_flags_explicit.
7082 (rs6000_target_flags_explicit): Delete in favor of
7083 x_rs6000_isa_flags_explicit.
7084 (-mpowerpc64): Change all switches that used to be in target_flags
7085 to now be in rs6000_isa_flags. In using rs6000_isa_flags, the
7086 options machinary will generate names of the form OPITON_<xxx>
7087 instead of TARGET_<xxx> and OPTION_MASK_<xxx> instead of MASK_<xxx>.
7088 (-mpowerpc-gpopt): Likewise.
7089 (-mpowerpc-gfxopt): Likewise.
7090 (-mmfcrf): Likewise.
7091 (-mpopcntb): Likewise.
7092 (-mfprnd): Likewise.
7094 (-mmfpgpr): Likewise.
7095 (-maltivec): Likewise.
7096 (-mhard-dfp): Likewise.
7097 (-mmulhw): Likewise.
7098 (-mdlmzb): Likewise.
7099 (-mmultiple): Likewise.
7100 (-mstring): Likewise.
7101 (-msoft-float): Likewise.
7102 (-mhard-float): Likewise.
7103 (-mpopcntd): Likewise.
7105 (-mno-update): Likewise.
7106 (-mupdate): Likewise.
7107 (-mrecip-precision): Likewise.
7108 (-mminimal-toc): Likewise.
7110 * config/rs6000/aix64.opt (-maix64): Likewise.
7111 (-maix32): Likewise.
7112 * config/rs6000/sysv4.opt (-mstrict-align): Likewise.
7113 (-mrelocatable): Likewise.
7114 (-mlittle-endian): Likewise.
7115 (-mlittle): Likewise.
7116 (-mbig-endian): LIkewise.
7121 * config/rs6000/darwin.opt (-m64): Likewise.
7124 * config/rs6000/rs6000-cpus.def (ISA_2_1_MASKS): Move the various
7125 masks used in rs6000.c here, since they are more logically in this
7126 file. Convert from being enums to just #defines, since the types
7127 of these masks is now HOST_WIDE_INT instead of int. For
7128 POWERPC_MASKS, add MASK_SOFT_FLOAT, since the only use case or'ed
7129 in the mask. Change the use in rs6000.c not to do the OR of
7131 (ISA_2_1_MASKS): Likewise.
7132 (ISA_2_2_MASKS): Likewise.
7133 (ISA_2_4_MASKS): Likewise.
7134 (ISA_2_5_MASKS_EMBEDDED): Likewise.
7135 (ISA_2_5_MASKS_SERVER): Likewise.
7136 (POWERPC_7400_MASK): Likewise.
7137 (POWERPC_MASKS): Likewise.
7138 * config/rs6000/rs6000.c (ISA_2_1_MASKS): Likewise.
7139 (ISA_2_1_MASKS): Likewise.
7140 (ISA_2_2_MASKS): Likewise.
7141 (ISA_2_4_MASKS): Likewise.
7142 (ISA_2_5_MASKS_EMBEDDED): Likewise.
7143 (ISA_2_5_MASKS_SERVER): Likewise.
7144 (POWERPC_7400_MASK): Likewise.
7145 (POWERPC_MASKS): Likewise.
7146 (rs6000_option_override_internal): Likewise.
7148 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Change
7149 all uses of target_flags to rs6000_isa_flags. Change all uses of
7150 target_flags_explicit to rs6000_isa_flags_explicit. Change the
7151 use of MASK_<xxx> to OPTION_MASK_<xxx> that options.h defines when
7152 we use a secondary flags word. Save/restore/print the new flags
7153 word when switching contexts with different target attributes.
7154 (rs6000_option_override_internal): Likewise.
7155 (rs6000_darwin_file_start): Likewise.
7156 (rs6000_opt_masks): Likewise.
7157 (rs6000_inner_target_options): Likewise.
7158 (rs6000_pragma_target_parse): Likewise.
7159 (rs6000_set_current_function): Likewise.
7160 (rs6000_function_specific_save): Likewise.
7161 (rs6000_function_specific_restore): Likewise.
7162 (rs6000_function_specific_print): Likewise.
7163 (rs6000_can_inline_p): Likewise.
7164 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
7165 (rs6000_cpu_cpp_builtins): Likewise.
7166 * common/config/rs6000/rs6000-driver.c (rs6000_handle_option):
7169 * config/rs6000/rs6000.h (MASK_ALTIVEC): In moving to using
7170 Var(...) for all of the isa switches, the options machinery now
7171 uses OPTION_MASK_<xxx> instead of MASK_<xxx> for the mask name.
7172 Use #define to map the old name into the new name. For switches
7173 that are defined in aix64.opt, sysv4.opt, and darwin.opt, only do
7174 the definition if those switches were defined.
7175 (MASK_ALTIVEC): Likewise.
7176 (MASK_CMPB): Likewise.
7177 (MASK_DFP): Likewise.
7178 (MASK_DLMZB): Likewise.
7179 (MASK_EABI): Likewise.
7180 (MASK_FPRND): Likewise.
7181 (MASK_HARD_FLOAT): Likewise.
7182 (MASK_ISEL): Likewise.
7183 (MASK_MFCRF): Likewise.
7184 (MASK_MFPGPR): Likewise.
7185 (MASK_MULHW): Likewise.
7186 (MASK_MULTIPLE): Likewise.
7187 (MASK_NO_UPDATE): Likewise.
7188 (MASK_POPCNTB): Likewise.
7189 (MASK_POPCNTD): Likewise.
7190 (MASK_PPC_GFXOPT): Likewise.
7191 (MASK_PPC_GPOPT): Likewise.
7192 (MASK_RECIP_PRECISION): Likewise.
7193 (MASK_SOFT_FLOAT): Likewise.
7194 (MASK_STRICT_ALIGN): Likewise.
7195 (MASK_STRING): Likewise.
7196 (MASK_UPDATE): Likewise.
7197 (MASK_VSX): Likewise.
7198 (MASK_POWERPC64): Likewise.
7199 (MASK_64BIT): Likewise.
7200 (MASK_RELOCATABLE): Likewise.
7201 (MASK_LITTLE_ENDIAN): Likewise.
7202 (MASK_MINIMAL_TOC): Likewise.
7203 (MASK_REGNAMES): Likewise.
7204 (MASK_PROTOTYPE): Likewise.
7205 (rs6000_isa_flags_explicit): Define in terms of the
7206 global_options_set structure.
7208 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS):
7209 Change use of target_flags to rs6000_isa_flags, target_flags_explicit
7210 to rs6000_isa_flags_explicit, and MASK_<xxx> to OPTION_MASK_<xxx>.
7211 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7212 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7213 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7214 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7215 * config/rs6000/freebsd64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
7216 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7217 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
7218 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
7219 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7220 (OPTION_LITTLE_ENDIAN): Likewise.
7221 (OPTION_RELOCATABLE): Likewise.
7222 (OPTION_EABI): Likewise.
7223 (OPTION_PROTOTYPE): Likewise.
7224 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
7225 * config/rs6000/option-defaults.h (OPTION_MASK_64BIT): Likewise.
7226 (OPT_ARCH32): Likewise.
7227 (OPT_ARCH64): Likewise.
7228 * config/rs6000/sysv4.h (TARGET_TOC): Likewise.
7229 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7230 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7231 (TARGET_OS_SYSV_CPP_BUILTINS): Likewise.
7233 * config/rs6000/t-rs6000 (rs6000.o): Add rs6000-cpus.def as a
7236 2012-10-17 Jan Hubicka <jh@suse.cz>
7238 * cfgloopmanip.c (copy_loop_info): New function.
7239 (duplicate_loop): Use it.
7240 (loop_version): Use it.
7241 * loop-unswitch.c (unswitch_loop): Use it.
7242 * cfgloop.h (copy_loop_info): Declare.
7244 2012-10-17 Jan Hubicka <jh@suse.cz>
7246 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add edge_to_cancel
7247 parameter and use it to estimate code optimized out in the final
7249 (loop_edge_to_cancel): New function.
7250 (try_unroll_loop_completely): New IRRED_IVALIDATED parameter;
7251 handle unrolling loops with bounds given via max_loop_iteratins;
7252 handle unrolling non-inner loops when code size shrinks;
7253 tidy dump output; when the last iteration loop still stays
7254 as loop in the CFG forcongly redirect the latch to
7255 __builtin_unreachable.
7256 (canonicalize_loop_induction_variables): Add irred_invlaidated
7257 parameter; record niter bound derrived; dump
7258 max_loop_iterations bounds; call try_unroll_loop_completely
7259 even if no niter bound is given.
7260 (canonicalize_induction_variables): Handle irred_invalidated.
7261 (tree_unroll_loops_completely): Handle non-innermost loops;
7262 handle irred_invalidated.
7263 * cfgloop.h (unlop): Declare.
7264 * cfgloopmanip.c (unloop): Export.
7265 * tree.c (build_common_builtin_nodes): Build BULTIN_UNREACHABLE.
7267 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7269 * opth-gen.awk (TARGET_* generation): Always generate TARGET_<xxx>
7270 for Mask options, whether they use Var(...) or not.
7272 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): Use
7273 TARGET_<xxx> instead of OPTION_<xxx>.
7274 * config/i386/i386.h (TARGET_64BIT): Likewise.
7275 (TARGET_MMX): Likewise.
7276 (TARGET_3DNOW): Likewise.
7277 (TARGET_3DNOW_A): Likewise.
7278 (TARGET_SSE): Likewise.
7279 (TARGET_SSE2): Likewise.
7280 (TARGET_SSE3): Likewise.
7281 (TARGET_SSSE3): Likewise.
7282 (TARGET_SSE4_1): Likewise.
7283 (TARGET_SSE4_2): Likewise.
7284 (TARGET_AVX): Likewise.
7285 (TARGET_AVX2): Likewise.
7286 (TARGET_FMA): Likewise.
7287 (TARGET_SSE4A): Likewise.
7288 (TARGET_FMA4): Likewise.
7289 (TARGET_XOP): Likewise.
7290 (TARGET_LWP): Likewise.
7291 (TARGET_ROUND): Likewise.
7292 (TARGET_ABM): Likewise.
7293 (TARGET_BMI): Likewise.
7294 (TARGET_BMI2): Likewise.
7295 (TARGET_LZCNT): Likewise.
7296 (TARGET_TBM): Likewise.
7297 (TARGET_POPCNT): Likewise.
7298 (TARGET_SAHF): Likewise.
7299 (TARGET_MOVBE): Likewise.
7300 (TARGET_CRC32): Likewise.
7301 (TARGET_AES): Likewise.
7302 (TARGET_PCLMUL): Likewise.
7303 (TARGET_CMPXCHG16B): Likewise.
7304 (TARGET_FSGSBASE): Likewise.
7305 (TARGET_RDRND): Likewise.
7306 (TARGET_F16C): Likewise.
7307 (TARGET_RTM): Likewise.
7308 (TARGET_HLE): Likewise.
7309 (TARGET_RDSEED): Likewise.
7310 (TARGET_PRFCHW): Likewise.
7311 (TARGET_ADX): Likewise.
7312 (TARGET_64BIT): Likewise.
7313 (TARGET_MMX): Likewise.
7314 (TARGET_3DNOW): Likewise.
7315 (TARGET_3DNOW_A): Likewise.
7316 (TARGET_SSE): Likewise.
7317 (TARGET_SSE2): Likewise.
7318 (TARGET_SSE3): Likewise.
7319 (TARGET_SSSE3): Likewise.
7320 (TARGET_SSE4_1): Likewise.
7321 (TARGET_SSE4_2): Likewise.
7322 (TARGET_AVX): Likewise.
7323 (TARGET_AVX2): Likewise.
7324 (TARGET_FMA): Likewise.
7325 (TARGET_SSE4A): Likewise.
7326 (TARGET_FMA4): Likewise.
7327 (TARGET_XOP): Likewise.
7328 (TARGET_LWP): Likewise.
7329 (TARGET_ROUND): Likewise.
7330 (TARGET_ABM): Likewise.
7331 (TARGET_BMI): Likewise.
7332 (TARGET_BMI2): Likewise.
7333 (TARGET_LZCNT): Likewise.
7334 (TARGET_TBM): Likewise.
7335 (TARGET_POPCNT): Likewise.
7336 (TARGET_SAHF): Likewise.
7337 (TARGET_MOVBE): Likewise.
7338 (TARGET_CRC32): Likewise.
7339 (TARGET_AES): Likewise.
7340 (TARGET_PCLMUL): Likewise.
7341 (TARGET_CMPXCHG16B): Likewise.
7342 (TARGET_FSGSBASE): Likewise.
7343 (TARGET_RDRND): Likewise.
7344 (TARGET_F16C): Likewise.
7345 (TARGET_RTM): Likewise.
7346 (TARGET_HLE): Likewise.
7347 (TARGET_RDSEED): Likewise.
7348 (TARGET_PRFCHW): Likewise.
7349 (TARGET_ADX): Likewise.
7350 (TARGET_LP64): Likewise.
7351 (TARGET_X32): Likewise.
7352 (TARGET_ISA_ROUND): Likewise.
7353 * config/i386/darwin.h (TARGET_64BIT): Likewise.
7355 * doc/options.texi (Mask): Update documentation to specify only
7356 TARGET_<xxx> is generated.
7358 2012-10-17 Greta Yorsh <Greta.Yorsh@arm.com>
7360 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): Rename this...
7361 (UNSPEC_REGISTER_USE): ... to this.
7362 (prologue_use): Rename this...
7363 (force_register_use): ... to this and update output assembly.
7364 (epilogue) Rename gen_prologue_use to gen_force_register_use.
7365 * config/arm/arm.c (arm_expand_prologue): Likewise.
7366 (thumb1_expand_epilogue): Likewise.
7367 (arm_expand_epilogue): Likewise.
7368 (arm_expand_epilogue): Likewise.
7370 2012-10-17 Georg-Johann Lay <avr@gjlay.de>
7372 * config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype.
7373 * config/avr/avr.c (avr_extra_arch_macro): Remove variable.
7374 (avr_option_override): Remove setting of avr_extra_arch_macro.
7375 * config/avr/avr-c.c (avr_extra_arch_macro): Replace with
7376 avr_current_device->macro.
7378 2012-10-17 Richard Biener <rguenther@suse.de>
7380 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
7381 Do not write TREE_CHAIN of PARM_DECLs.
7382 (write_ts_decl_non_common_tree_pointers): Instead stream
7383 the DECL_ARGUMENTS chain.
7384 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7385 Do not read TREE_CHAIN of PARM_DECLs.
7386 (lto_input_ts_decl_non_common_tree_pointes): Instead read
7387 the DECL_ARGUMENTS as chain.
7389 2012-10-17 Steven Bosscher <steven@gcc.gnu.org>
7391 * config/iq2000/iq2000.h (call_used_regs): Remove definition.
7393 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
7395 PR rtl-optimization/54870
7396 * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
7397 * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
7398 SSA_NAME pointer that points to a partition if there is at least
7399 one variable with it set in the partition.
7400 * dse.c (local_variable_can_escape): New predicate.
7401 (can_escape): Call it.
7402 * gimplify.c (mark_addressable): If this is a partitioned decl, also
7403 mark the SSA_NAME pointer that points to a partition.
7405 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
7407 * df-problems.c (df_kill_notes): Split up in two functions.
7408 (df_remove_dead_and_unused_notes): New function, first half of
7409 df_kill notes to remove all REG_DEAD and REG_UNUSED notes.
7410 (df_remove_dead_eq_notes): New function, second half of df_kill_notes
7411 to remove REG_EQUAL and REG_EQUIV notes referring to dead registers.
7412 (df_note_bb_compute): Call df_remove_dead_and_unused_notes instead
7413 of df_kill_notes. Call df_remove_dead_eq_notes after processing insn.
7415 * web.c (web): Re-add DF_RD_PRUNE_DEAD_DEFS;
7417 2012-10-16 Ian Lance Taylor <iant@google.com>
7419 * doc/extend.texi (Return Address): Change
7420 __builtin_extract_return_address to
7421 __builtin_extract_return_addr.
7423 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
7425 * rtl.h (get_call_rtx_from): New prototype.
7426 * rtlanal.c (get_call_rtx_from): New function.
7427 * calls.c (emit_call_1): Use it.
7428 * dse.c (scan_insn): Likewise
7429 * dwarf2out.c (dwarf2out_var_location): Likewise.
7430 * sched-deps.c (call_may_noreturn_p): Likewise.
7431 * var-tracking.c (prepare_call_arguments): Likewise.
7432 * config/sh/sh.c (sh_adjust_cost): Likewise.
7434 2012-10-16 Tom de Vries <tom@codesourcery.com>
7436 * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces)
7437 (store_by_pieces_1): Don't enter loop when no more data is left.
7439 2012-10-16 Joern Rennecke <joern.rennecke@embecosm.com>
7441 * loop-doloop.c (doloop_modify): Pass doloop_end pattern to
7443 (doloop_optimize): Pass flag to indicate if loop is entered at top
7445 * config/arm/thumb2.md (doloop_end): Accept extra operand.
7446 * config/bfin/bfin.md (doloop_end): Likewise.
7447 * config/c6x/c6x.md (doloop_end): Likewise.
7448 * config/ia64/ia64.md (doloop_end): Likewise.
7449 * config/mep/mep.md (doloop_begin, doloop_end): Likewise.
7450 * config/rs6000/rs6000.md (doloop_end): Likewise.
7451 * config/s390/s390.md (doloop_end): Likewise.
7452 * config/sh/sh.md (doloop_end): Likewise.
7453 * config/spu/spu.md (doloop_end): Likewise.
7454 * config/tilegx/tilegx.md (doloop_end): Likewise.
7455 * config/tilepro/tilepro.md (doloop_end): Likewise.
7456 * doc/md.texi (doloop_end): Document new operand.
7457 * basic-block.h (contains_no_active_insn_p): Declare.
7458 * cfgrtl.c (contains_no_active_insn_p): New function, factored
7460 (forwarder_block_p): ... here.
7462 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7466 * doc/options.texi (EnabledBy): Document new form.
7467 * optc-gen.awk: Handle new form of EnabledBy.
7468 * common.opt (Wunused-but-set-parameter): Use EnabledBy.
7469 (Wunused-parameter): Likewise.
7470 * opts.c (finish_options): Do not handle them explicitly.
7471 * opt-functions.awk (search_var_name): New.
7473 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7477 * optc-gen.awk: Handle new form of LangEnabledBy.
7478 * opts.c (set_Wstrict_aliasing): Declare here. Make static.
7479 * common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init.
7480 * doc/options.texi (LangEnabledBy): Document new form.
7481 * flags.h (set_Wstrict_aliasing): Do not declare.
7483 2012-10-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7485 * reload.c (find_reloads_subreg_address): Remove FORCE_REPLACE
7486 parameter. Always replace normal subreg with memory reference
7487 whenever possible. Return NULL otherwise.
7488 (find_reloads_toplev): Always call find_reloads_subreg_address
7489 for subregs of registers equivalent to a memory location.
7490 Only recurse further if find_reloads_subreg_address fails.
7491 (find_reloads_address_1): Only call find_reloads_subreg_address
7492 for subregs of registers equivalent to a memory location.
7493 Properly handle failure of find_reloads_subreg_address.
7495 2012-10-16 Jakub Jelinek <jakub@redhat.com>
7498 * rtl.h: Document jump flag on VALUE.
7499 * cselib.h (cselib_set_value_sp_based,
7500 cselib_sp_based_value_p): New prototypes.
7501 * alias.c (find_base_term): For cselib_sp_based_value_p
7502 return static_reg_base_value[STACK_POINTER_REGNUM].
7503 * cselib.c (SP_BASED_VALUE_P): Define.
7504 (cselib_set_value_sp_based, cselib_sp_based_value_p): New functions.
7505 * var-tracking.c (add_stores): Call cselib_set_value_sp_based
7506 for not yet preserved VALUEs of sp on sp assignments if
7507 hard_frame_pointer_adjustment != -1.
7508 (vt_initialize): When setting hard_frame_pointer_adjustment,
7509 disassociate sp from its previous value and call
7510 cselib_set_value_sp_based on a new VALUE created for sp.
7512 PR tree-optimization/54889
7513 * tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if
7514 ARRAY_REF newref doesn't have compatible type with vectype element
7515 type, use vectype element type for MEM_REF.
7517 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
7519 * combine.c (record_dead_and_set_regs): Iterate over hard register set
7520 with a hard_reg_set_iterator.
7521 * cse.c (invalidate_for_call): Likewise.
7522 * gcse.c (compute_hash_table_work): Likewise.
7523 * loop-iv.c (simplify_using_initial_values): Likewise.
7524 * postreload-gcse.c (record_opr_changes): Likewise.
7525 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
7526 * var-tracking.c (dataflow_set_clear_at_call): Likewise.
7528 2012-10-15 Easwaran Raman <eraman@google.com>
7530 * optabs.c (emit_cmp_and_jump_insn_1): Add a new parameter to
7531 specificy the probability of taking the jump.
7532 (emit_cmp_and_jump_insns): Likewise.
7533 (expand_compare_and_swap_loop): Make the jump predicted not taken.
7534 * dojump.c (do_compare_rtx_and_jump): Remove the code attaching
7535 REG_BR_PROB note and pass probability to emit_cmp_and_jump_insns.
7536 * cfgbuild.c (compute_outgoing_frequencies): Do not guess outgoing
7537 probabilities for branches with more than two successors.
7538 * expr.c (emit_block_move_via_loop): Predict the loop backedge loop
7540 (try_casesi): Pass the probability of jumping to the default label.
7541 (try_tablejump): Likewise.
7542 (do_tablejump): Likewise.
7543 * expr.h (try_tablejump): Add a new parameter.
7544 (try_casesi): Likewise.
7545 (emit_cmp_and_jump_insns): Add probability as default parameter with a
7546 default value of -1.
7547 * except.c (sjlj_emit_function_enter): Pass probability to
7548 emit_cmp_and_jump_insns.
7549 * stmt.c (case_node): Add new fields PROB and SUBTREE_PROB.
7550 (do_jump_if_equal): Pass probability for REG_BR_PROB note.
7551 (add_case_node): Pass estimated probability of jumping to the case
7553 (emit_case_decision_tree): Pass default_prob to emit_case_nodes.
7554 (get_outgoing_edge_probs): New function.
7555 (conditional_probability): Likewise.
7556 (reset_out_edges_aux): Likewise.
7557 (compute_cases_per_edge): Likewise.
7558 (emit_case_dispatch_table): Update probabilities of edges coming out
7559 of the switch statement.
7560 (expand_case): Compute and propagate default edge probability to
7561 emit_case_dispatch_table.
7562 (expand_sjlj_dispatch_table): Update calls to add_case_node and
7563 emit_case_dispatch_table.
7564 (balance_case_nodes): Update subtree_prob values.
7565 (emit_case_nodes): Compute edge probabilities and add pass them to
7566 emit_cmp_and_jump_insns.
7568 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
7571 * config/sh/sh-protos.h (set_of_reg): New struct.
7572 (sh_find_set_of_reg, sh_is_logical_t_store_expr,
7573 sh_try_omit_signzero_extend): Declare...
7574 * config/sh/sh.c (sh_find_set_of_reg, sh_is_logical_t_store_expr,
7575 sh_try_omit_signzero_extend): ...these new functions.
7576 * config/sh/sh.md (*logical_op_t): New insn_and_split.
7577 (*zero_extend<mode>si2_compact): Use sh_try_omit_signzero_extend
7579 (*extend<mode>si2_compact_reg): Convert to insn_and_split.
7580 Use sh_try_omit_signzero_extend in splitter.
7581 (*mov<mode>_reg_reg): Disallow t_reg_operand as operand 1.
7582 (*cbranch_t): Rewrite combine part in splitter using new
7583 sh_find_set_of_reg function.
7585 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
7588 * config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when
7589 hitting a call insn if GBR is marked as call used.
7590 * config/sh/iterators.md (QIHISIDI): New mode iterator.
7591 * config/sh/predicates.md (gbr_address_mem): New predicate.
7592 * config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New
7593 insn_and_split. Use QIHISIDI instead of QIHISI in unnamed GBR
7596 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
7598 * config/sh/sh.c: Update function attribute comments.
7599 * doc/extend.texi (function_vector): Rephrase SH2A specific part.
7600 (nosave_low_regs, renesas, trapa_handler): Document SH specific
7602 (sp_switch, trap_exit): Add to index.
7604 2012-10-15 Matthias Klose <doko@ubuntu.com>
7606 * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
7607 * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.
7609 2012-10-15 Uros Bizjak <ubizjak@gmail.com>
7611 * config/i386/sse.md (UNSPEC_MOVU): Remove.
7612 (UNSPEC_LOADU): New.
7613 (UNSPEC_STOREU): Ditto.
7614 (<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
7615 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
7616 (<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
7617 (<sse2>_movdqu<avxsizesuffix>): Split to ...
7618 (<sse2>_loaddqu<avxsizesuffix>): ... this and ...
7619 (<sse2>_storedqu<avxsizesuffix>): ... this.
7620 (*sse4_2_pcmpestr_unaligned): Update.
7621 (*sse4_2_pcmpistr_unaligned): Ditto.
7623 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
7624 gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
7625 gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
7626 (ix86_expand_vector_move_misalign): Use gen_sse_loadups or
7627 gen_sse2_load{dqu,upd} to load from unaligned memory and
7628 gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
7630 (struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
7631 Use CODE_FOR_sse_loadups.
7632 <IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
7633 <IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
7634 <IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
7635 <IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
7636 <IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
7637 <IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
7638 <IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
7639 <IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
7640 <IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
7641 <IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
7642 <IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.
7644 2012-10-15 Dodji Seketeli <dodji@redhat.com>
7646 * alias.c: Cleanup comments.
7648 2012-10-15 Marc Glisse <marc.glisse@inria.fr>
7650 PR tree-optimization/54915
7651 * tree-ssa-forwprop.c (simplify_vector_constructor): Check
7654 2012-10-15 Richard Biener <rguenther@suse.de>
7656 * data-streamer.h (bp_pack_string_with_length): New function.
7657 (bp_pack_string): Likewise.
7658 (bp_unpack_indexed_string): Likewise.
7659 (bp_unpack_string): Likewise.
7660 * data-streamer-out.c (bp_pack_string_with_length): Likewise.
7661 (bp_pack_string): Likewise.
7662 * data-streamer-in.c (bp_unpack_indexed_string): Likewise.
7663 (bp_unpack_string): Likewise.
7664 * tree-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
7665 Pack TRANSLATION_UNIT_LANGUAGE here, not ...
7666 (write_ts_translation_unit_decl_tree_pointers): ... here. Remove.
7667 (streamer_pack_tree_bitfields): Adjust.
7668 (streamer_write_tree_body): Likewise.
7669 * tree-streamer-in.c (unpack_ts_translation_unit_decl_value_fields):
7670 Unpack TRANSLATION_UNIT_LANGUAGE here, not ...
7671 (lto_input_ts_translation_unit_decl_tree_pointers): ... here. Remove.
7672 (unpack_value_fields): Adjust.
7673 (streamer_read_tree_body): Likewise.
7675 2012-10-15 J"orn Rennecke <joern.rennecke@arc.com>
7677 * genoutput.c (process_template): Process '*' in '@' alternatives.
7678 * doc/md.texi (node Output Statement): Provide example for the above.
7680 2012-10-15 Richard Guenther <rguenther@suse.de>
7682 PR tree-optimization/54920
7683 * tree-ssa-pre.c (create_expression_by_pieces): Properly
7684 allocate temporary storage for all NARY elements.
7686 2012-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
7688 * web.c (union_match_dups): Properly handle OP_INOUT match_dups.
7690 2012-10-15 Eric Botcazou <ebotcazou@adacore.com>
7692 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Do not unnecessarily
7693 copy the object in the MEM_P case.
7695 2012-10-15 Richard Guenther <rguenther@suse.de>
7697 * tree-streamer-out.c (streamer_pack_tree_bitfields): Back
7698 BINFO_BASE_ACCESSES and CONSTRUCTOR lengths here.
7699 (streamer_write_chain): Write TREE_CHAIN as null-terminated list.
7700 (write_ts_exp_tree_pointers): Adjust.
7701 (write_ts_binfo_tree_pointers): Likewise.
7702 (write_ts_constructor_tree_pointers): Likewise.
7703 * tree-streamer-in.c (streamer_read_chain): Read TREE_CHAIN as
7704 null-terminated list.
7705 (unpack_value_fields): Unpack BINFO_BASE_ACCESSES and
7706 CONSTRUCTOR lengths and materialize the arrays.
7707 (lto_input_ts_exp_tree_pointers): Adjust.
7708 (lto_input_ts_binfo_tree_pointers): Likewise.
7709 (lto_input_ts_constructor_tree_pointers): Likewise.
7711 2012-10-14 Hans-Peter Nilsson <hp@bitrange.com>
7713 * config/mmix/mmix.c (mmix_opposite_regno): Handle the
7714 return-value register too.
7716 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
7718 PR rtl-optimization/38711
7719 * df.h (df_get_live_out, df_get_live_in): Make static inline functions.
7720 * df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h.
7721 * ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of
7723 * ira-build.c (create_bb_allocnos): Likewise.
7724 (create_loop_allocnos): Likewise, and use df_get_live_in instead of
7726 * ira-emit.c (generate_edge_moves): Likewise.
7727 (add_ranges_and_copies): Likewise.
7728 * ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of
7729 DF_LR_OUT, and df_get_live_in instead of DF_LR_IN.
7730 * ira.c (mark_elimination): Update DF_LR and DF_LIVE.
7731 (build_insn_chain): Use df_get_live_out instead of DF_LR_OUT.
7732 (do_reload): Remove the DF_LIVE problem for -O1.
7734 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
7736 PR rtl-optimization/54919
7737 * loop-unroll.c (struct var_to_expand): Remove accum_pos field.
7738 (analyze_insn_to_expand_var): Do not record accum_pos.
7739 (expand_var_during_unrolling): Use validate_replace_rtx_group to
7740 perform replacement of all references to SET_DEST (set) with the
7741 new register, including references in REG_EQUAL notes.
7742 (insert_var_expansion_initialization): Insert initializatio insns
7743 at the bottom of the pre-header of the loop.
7745 2012-10-14 Jan Hubicka <jh@suse.cz>
7747 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
7748 predict loops with multiple exits realistically.
7749 * cfgloopanal.c (single_likely_exit): New function.
7751 2012-10-14 Uros Bizjak <ubizjak@gmail.com>
7753 * config/alpha/alpha.md: Remove empty predicates and/or constraints.
7754 * config/alpha/sync.md: Ditto.
7756 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
7758 * config/alpha/alpha.md (I24MODE): New mode iterator.
7759 (any_divmod): New code iterator.
7760 (<code>si3): Macroize expander from {div,mod,udiv,umod}si3 using
7761 any_divmod code iterator.
7762 (<code>si3): Macroize expander from {div,mod,udiv,umod}di3 using
7763 any_divmod code iterator.
7764 (extendqi<mode>2): Macroize insn from extendqi{hi,si}2 using
7765 I24MODE mode iterator.
7766 (unaligned_store<mode>): Macroize expander from unaligned_store{qi,hi}
7767 using I12MODE mode iterator.
7768 (mov<mode>): Macroize expander from mov{qi,hi} using
7769 I12MODE mode iterator.
7771 2012-10-13 Eric Botcazou <ebotcazou@adacore.com>
7773 PR rtl-optimization/54871
7774 * loop-iv.c (simplify_using_initial_values): When scanning previous
7775 basic blocks, prune the recorded conditions if the current insn was
7776 not used to make a replacement.
7778 * loop-unroll.c (decide_unroll_constant_iterations): Clean up message.
7779 (unroll_loop_constant_iterations): Clarify head comment.
7780 (decide_unroll_runtime_iterations): Clean up message.
7781 (unroll_loop_runtime_iterations): Clarify head comment.
7782 (decide_peel_simple): Clean up message.
7783 (peel_loop_simple): Clarify head comment.
7784 (decide_unroll_stupid): Clean up message.
7785 (unroll_loop_stupid): Clarify head comment.
7787 2012-10-13 Andreas Schwab <schwab@linux-m68k.org>
7789 PR gcov-profile/44728
7790 * gcov.c (create_file_names): When stripping extension only look
7793 2012-10-13 Jan Hubicka <jh@suse.cz>
7795 * loop-iv.c (determine_max_iter): Fix handling of AND.
7796 (iv_number_of_iterations): Record upper bounds as unsigned
7799 2012-10-13 Steven Bosscher <steven@gcc.gnu.org>
7801 * ira.c (ira): Set current_loops to &ira_loops before recording
7802 loop exits. Release recorded exits and loops early.
7804 2012-10-13 Chung-Lin Tang <cltang@codesourcery.com>
7806 * builtins.c (expand_builtin_set_thread_pointer): Use
7807 create_input_operand() instead of create_fixed_operand().
7809 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
7811 * config/alpha/alpha.md (FMODE): New mode iterator.
7812 (modesuffix): Handle SF and DF modes.
7813 (opmode): New mode attribute.
7814 (abs<mode>2): Macroize insn from abs{sf,df}2 using FMODE mode iterator.
7815 (*nabs<mode>2): Macroize insn from *nabs{sf,df}2 using
7816 FMODE mode iterator.
7817 (neg<mode>2): Macroize insn from neg{sf,df}2 using FMODE mode iterator.
7818 (copysign<mode>3): Macroize insn from copysign{sf,df}3 using
7819 FMODE mode iterator.
7820 (*ncopysign<mode>3): Macroize insn from *ncopysign{sf,df}3 using
7821 FMODE mode iterator.
7822 (*add<mode>3_ieee): Macroize insn from *add{sf,df}_ieee using
7823 FMODE mode iterator.
7824 (add<mode>3): Macroize insn from add{sf,df}3 using FMODE mode iterator.
7825 (*sub<mode>3_ieee): Macroize insn from *sub{sf,df}3_ieee using
7826 FMODE mode iterator.
7827 (sub<mode>3): Macroize insn from sub{sf,df}3 using FMODE mode iterator.
7828 (*mul<mode>3_ieee): Macroize insn from *mul{sf,df}3_ieee using
7829 FMODE mode iterator.
7830 (mul<mode>3): Macroize insn from mul{sf,df}3 using FMODE mode iterator.
7831 (*div<mode>3_ieee): Macroize insn from *div{sf,df}3_ieee using
7832 FMODE mode iterator.
7833 (div<mode>3): Macroize insn from div{sf,df}3 using FMODE mode iterator.
7834 (*sqrt<mode>2_ieee): Macroize insn from *sqrt{sf,df}2_ieee using
7835 FMODE mode iterator.
7836 (sqrt<mode>2): Macroize insn from sqrt{sf,df}2
7837 using FMODE mode iterator.
7838 (*mov<mode>cc_internal): Macroize insn from *mov{sf,df}cc_internal
7839 using FMODE mode iterator.
7840 (mov<mode>cc): Macroize expander from mov{sf,df}cc
7841 using FMODE mode iterator.
7843 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
7846 * config/sh/sh.md: Correct define_delay for return insns.
7847 (*movsi_pop): Delete.
7849 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
7852 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped
7854 * config/sh/predicates.md (fpul_operand): Add comment.
7855 (fpul_fsca_operand, fsca_scale_factor): New predicates.
7856 * config/sh/sh.md (fsca): Move below sincossf3 expander. Convert to
7857 insn_and_split. Use fpul_fsca_operand and fsca_scale_factor
7858 predicates. Simplify fpul operand in splitter.
7860 2012-10-12 Jan Hubicka <jh@suse.cz>
7862 * tree-ssa-threadupdate.c (def_split_header_continue_p): Do not
7865 2012-10-12 Jan Hubicka <jh@suse.cz>
7867 * web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.
7869 2012-10-12 Aaron Gray <aaronngray.lists@gmail.com>
7870 Diego Novillo <dnovillo@google.com>
7872 * gengtype-lex.l: Support for C++ single line comments.
7873 Support for classes.
7874 (CXX_KEYWORD): New. Support C++ keywords inline, public,
7875 protected, private, template, operator, friend, &, ~.
7876 (TYPEDEF): New. Support typedef.
7877 * gengtype-parser.c: updated 'token_names[]'
7878 (direct_declarator): Add support for parsing functions and ctors.
7880 2012-10-12 Diego Novillo <dnovillo@google.com>
7882 * doc/gty.texi: Document C++ limitations in gengtype.
7883 * gengtype-lex.l (CID): Rename from ID.
7884 (ID): Include scoping '::' as part of the identifier name.
7885 * gengtype-parse.c (token_names): Update.
7886 (token_value_format): Update.
7887 (consume_until_eos): Rename from consume_until_semi.
7888 Remove unused argument IMMEDIATE. Update all callers.
7889 Also consider '}' as a finalizer.
7890 (consume_until_comma_or_eos): Rename from
7891 consume_until_comma_or_semi.
7892 Remove unused argument IMMEDIATE. Update all callers.
7893 Also consider '}' as a finalizer.
7894 (direct_declarator): Add documentation on ctor support.
7895 Add argument IN_STRUCT.
7896 If the token following ID is a '(', consider ID a
7897 function and return NULL.
7898 If the token following '(' is not a '*', and IN_STRUCT is true,
7899 conclude that this is a ctor and return NULL.
7900 If the token is IGNORABLE_CXX_KEYWORD, return NULL.
7901 (inner_declarator): Add argument IN_STRUCT.
7903 (declarator): Add argument IN_STRUCT with default value false.
7905 (type): Document argument NESTED.
7906 Skip over C++ inheritance specifiers.
7907 If a token TYPEDEF is found, emit an error.
7908 If an enum is found inside a class/structure, emit an error.
7909 (typedefs, structures, param_structs, variables): Initialize.
7910 (new_structure): Do not complain about duplicate
7911 structures if S has a line location set.
7912 * gengtype-state.c (write_state_type): Remove default handler.
7913 Add handler for TYPE_NONE.
7914 (read_state_scalar_char_type):
7915 * gengtype.c: Fix spacing.
7916 * gengtype.h (enum gty_token): Add name. Add token
7917 IGNORABLE_CXX_KEYWORD.
7919 2012-10-12 Chung-Lin Tang <cltang@codesourcery.com>
7921 * config/arm/arm.md (get_thread_pointersi): Moved to place with
7922 other TLS related patterns.
7924 2012-10-12 Richard Biener <rguenther@suse.de>
7926 * tree-streamer-out.c (pack_ts_target_option): Rename from ...
7927 (write_ts_target_option): ... this.
7928 (pack_ts_optimization): Rename from ...
7929 (write_ts_optimization): ... this.
7930 (streamer_pack_tree_bitfields): Pack them in the bitfield section ...
7931 (streamer_write_tree_body): ... not here.
7932 * tree-streamer-in.c (unpack_ts_target_option): Rename from ...
7933 (lto_input_ts_target_option): ... this.
7934 (unpack_ts_optimization): Rename from ...
7935 (lto_input_ts_optimization): ... this.
7936 (unpack_value_fields): Unpack them from the bitfield section ...
7937 (streamer_read_tree_body): ... not from here.
7939 2012-10-12 Uros Bizjak <ubizjak@gmail.com>
7941 * config/alpha/alpha.md (vecmodesuffix): New mode attribute.
7942 (modesuffix): Handle V8QI and V4HI modes.
7943 (any_maxmin): New code iterator.
7944 (maxmin): New code attribute.
7945 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{qi,hi}3
7946 using any_maxmin code iterator and I12MODE mode iterator.
7947 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{v8qi,v4hi}3
7948 using any_maxmin code iterator and VEC12 mode iterator.
7950 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
7952 * optabs.c (vector_compare_rtx): Change prototype.
7953 (expand_vec_cond_expr): Handle VEC_COND_EXPR whose first operand
7954 is not a comparison.
7955 * gimplify.c (gimplify_expr): Handle VEC_COND_EXPR.
7957 2012-10-12 Richard Biener <rguenther@suse.de>
7959 PR tree-optimization/54894
7960 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
7961 Handle over-aligned scalar types properly.
7963 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
7966 * config/sh/sh.c (bdesc): Remove thread pointer built-ins.
7967 * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode
7970 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
7973 * config/sh/sh.md (negsi_cond, negdi_cond, stack_protect_test): Remove
7974 get_t_reg_rtx when invoking gen_branch_true or gen_branch_false.
7975 (*zero_extend<mode>si2_compact): Convert to insn_and_split. Convert
7976 zero extensions of T bit stores to reg moves in splitter. Remove
7977 obsolete unnamed peephole2 that caught zero extensions after negc T bit
7979 (*branch_true_eq, *branch_false_ne): Delete.
7980 (branch_true, branch_false): Convert insn to expander. Move actual
7982 (*cbranch_t): ...this new insn_and_split. Try to find preceding
7983 redundant T bit stores and tests and combine them with the conditional
7984 branch if possible in the splitter.
7985 (movrt_xor, *movt_movrt): New insn_and_split.
7986 * config/sh/predicates.md (cbranch_treg_value): New predicate.
7987 * config/sh/sh-protos.h (sh_eval_treg_value): Forward declare...
7988 * config/sh/sh.c (sh_eval_treg_value): ...this new function.
7989 (expand_cbranchsi4, expand_cbranchdi4): Remove get_t_reg_rtx
7990 when invoking gen_branch_true or gen_branch_false.
7992 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
7994 * config/alpha/alpha.md (IMODE): New mode iterator.
7997 (modesuffix): Handle QI and HI modes.
7998 (zero_extendqi<mode>2): Macroize insn from zero_extendqi{hi,si,di}2
7999 using I248MODE mode iterator.
8000 (zero_extendhi<mode>2): Macroize insn from zero_extendhi{si,di}2
8001 using I48MODE mode iterator.
8002 (andnot<mode>3): Macroize insn from andnot{si,di}3 using
8003 I48MODE mode iterator.
8004 (ins<modesuffix>l_const): Macroize insn from ins{b,w,l}l_const
8005 using I248MODE mode iterator.
8006 (ins<modesuffix>l): Macroize insn from ins{b,w,l}l
8007 using I248MODE mode iterator.
8008 (*mov<mode>cc_internal): Macroize insn from
8009 *mov{qi,hi,si,di}cc_internal using IMODE mode iterator.
8010 (*mov<mode>cc_lbc): Macroize insn from
8011 *mov{qi,hi,si,di}cc_lbc using IMODE mode iterator.
8012 (*mov<mode>cc_lbs): Macroize insn from
8013 *mov{qi,hi,si,di}cc_lbs using IMODE mode iterator.
8014 (mov<mode>cc): Macroize expander from mov{si,di}cc
8015 using I48MODE mode iterator.
8017 2012-10-11 Steven Bosscher <steven@gcc.gnu.org>
8019 * ira-build.c (ira_loop_tree_body_rev_postorder): New function.
8020 (ira_traverse_loop_tree): Traverse a loop's basic blocks in
8021 reverse post-order of the reversed control-flow direction.
8022 * ira-conflicts.c (ira_build_conflicts): Pass add_copies as
8023 the pre-order function to ira_traverse_loop_tree to preserve
8024 the existing semantics.
8026 * ira-lives.c (remove_some_program_points_and_update_live_ranges):
8027 Squeeze out live range chain elements if their program points are
8030 2012-10-11 Jakub Jelinek <jakub@redhat.com>
8032 * tree.def (REDUC_PLUS_EXPR): Fix up comment.
8034 * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR,
8035 REDUC_MAX_EXPR and REDUC_PLUS_EXPR.
8037 2012-10-11 James Lemke <jwlemke@codesourcery.com>
8039 * config/rs6000/predicates.md (zero_fp_constant): Fix comment.
8040 * config/rs6000/rs6000.md (return_pred): Fix null return.
8041 * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation.
8042 (print_operand): Make FALLTHRU obvious.
8043 (output_cbranch): Correct comment.
8045 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
8047 * config/alpha/alpha.md (DWI): New mode attribute.
8048 (*sadd<modesuffix>): Macroize insn from *saddl and *saddq using
8049 I48MODE mode iterator.
8050 (addv<mode>3): Macroize insn from addvsi3 and addvdi3 using
8051 I48MODE mode iterator.
8052 (neg<mode>2): Macroize insn from negsi2 and negdi2 using
8053 I48MODE mode iterator.
8054 (negv<mode>2): Macroize insn from negvsi2 and negvdi2 using
8055 I48MODE mode iterator.
8056 (sub<mode>3): Macroize insn from subsi3 and subdi3 using
8057 I48MODE mode iterator.
8058 (*ssub<modesuffix>): Macroize insn from *ssubl and *ssubq using
8059 I48MODE mode iterator.
8060 (subv<mode>3): Macroize insn from subvsi3 and subvdi3 using
8061 I48MODE mode iterator.
8062 (mul<mode>3): Macroize insn from mulsi3 and muldi3 using
8063 I48MODE mode iterator.
8064 (mulv<mode>3): Macroize insn from mulvsi3 and mulvdi3 using
8065 I48MODE mode iterator.
8066 (*iornot<mode>3): Macroize insn from *iornotsi3 and *iornotdi3 using
8067 I48MODE mode iterator.
8068 (*xornot<mode>3): Macroize insn from *xornotsi3 and *xornotdi3 using
8069 I48MODE mode iterator.
8071 2012-10-11 Jason Merrill <jason@redhat.com>
8073 * configure.ac (gcc_cv_as_aix_ref): Fix typo.
8074 * configure: Regenerate.
8076 2012-10-11 Chung-Lin Tang <cltang@codesourcery.com>
8078 * builtins.c (expand_builtin_thread_pointer): New.
8079 (expand_builtin_set_thread_pointer): New.
8080 (expand_builtin): Add BUILT_IN_THREAD_POINTER,
8081 BUILT_IN_SET_THREAD_POINTER expand cases.
8082 * builtins.def (BUILT_IN_THREAD_POINTER):
8083 New __builtin_thread_pointer builtin.
8084 (BUILT_IN_SET_THREAD_POINTER):
8085 New __builtin_set_thread_pointer builtin.
8086 * optabs.def (get_thread_pointer,set_thread_pointer):
8088 * doc/md.texi (Standard Names): Document get_thread_pointer and
8089 set_thread_pointer patterns.
8090 * config/alpha/alpha.md (get_thread_pointerdi): Rename from load_tp.
8091 (set_thread_pointerdi): Rename from set_tp.
8092 * config/alpha/alpha.c (alpha_legitimize_address_1): Change
8093 gen_load_tp calls to gen_get_thread_pointerdi.
8094 (alpha_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
8095 ALPHA_BUILTIN_SET_THREAD_POINTER.
8096 (code_for_builtin): Remove CODE_FOR_load_tp, CODE_FOR_set_tp.
8097 (alpha_init_builtins): Remove __builtin_thread_pointer,
8098 __builtin_set_thread_pointer machine-specific builtins.
8099 (alpha_expand_builtin_thread_pointer): Add hook function for
8100 TARGET_EXPAND_BUILTIN_THREAD_POINTER.
8101 (alpha_expand_builtin_set_thread_pointer): Add hook function for
8102 TARGET_EXPAND_BUILTIN_SET_THREAD_POINTER.
8103 (alpha_fold_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
8104 ALPHA_BUILTIN_SET_THREAD_POINTER cases.
8105 * config/arm/arm.md (get_thread_pointersi): New pattern.
8106 * config/arm/arm-protos.h (arm_load_tp): Add extern declaration.
8107 * config/arm/arm.c (arm_load_tp): Remove static.
8108 (arm_builtins): Remove ARM_BUILTIN_THREAD_POINTER.
8109 (arm_init_tls_builtins): Remove function.
8110 (arm_init_builtins): Remove call to arm_init_tls_builtins().
8111 (arm_expand_builtin): Remove ARM_BUILTIN_THREAD_POINTER case.
8112 * config/mips/mips.md (get_thread_pointer<mode>): New pattern.
8113 * config/mips/mips-protos.h (mips_expand_thread_pointer):
8114 Add extern declaration.
8115 * config/mips/mips.c (mips_expand_thread_pointer):
8116 Renamed from mips_get_tp.
8117 (mips_get_tp): New stub calling mips_expand_thread_pointer.
8118 * config/s390/s390.c (s390_builtin,code_for_builtin_64,
8119 code_for_builtin_31,s390_init_builtins,s390_expand_builtin): Remove.
8120 * config/s390/s390.md (get_tp_64,get_tp_31,set_tp_64,set_tp_31):
8122 (get_thread_pointer<mode>,set_thread_pointer<mode>):
8123 New, adapted from removed patterns.
8124 * config/xtensa/xtensa.md (get_thread_pointersi):
8125 Renamed from load_tp.
8126 (set_thread_pointersi): Renamed from set_tp.
8127 * config/xtensa/xtensa.c (xtensa_legitimize_tls_address):
8128 Change gen_load_tp calls to gen_get_thread_pointersi.
8129 (xtensa_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER and
8130 XTENSA_BUILTIN_SET_THREAD_POINTER.
8131 (xtensa_init_builtins): Remove __builtin_thread_pointer,
8132 __builtin_set_thread_pointer machine-specific builtins.
8133 (xtensa_fold_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
8134 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
8135 (xtensa_expand_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
8136 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
8138 2012-10-11 Marc Glisse <marc.glisse@inria.fr>
8140 * doc/extend.texi (Vector Extensions): C++ improvements.
8141 * doc/generic.texi (LSHIFT_EXPR, RSHIFT_EXPR): Mixed vector-scalar.
8142 (LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, NE_EXPR): Specify
8144 (VEC_COND_EXPR): Document it.
8146 2012-10-11 Terry Guo <terry.guo@arm.com>
8148 * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
8150 * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
8153 2012-10-11 Hans-Peter Nilsson <hp@bitrange.com>
8156 * configure.ac (out-of-tree linker .hidden support) Set to "no"
8157 for mmix-knuth-mmixware.
8158 * configure: Regenerate.
8160 * configure.ac (gcc_cv_as_comdat_group_group): Default to no.
8161 * configure: Regenerate.
8163 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Allow a single
8164 character to quote the VERSION= contents. Sanity-check contents.
8165 * configure.ac ("what linker to use" ld version extraction): Ditto.
8166 * configure: Regenerate.
8168 2012-10-10 Segher Boessenkool <segher@kernel.crashing.org>
8170 * config/rs6000/rs6000.h (PRINT_OPERAND_PUNCT_VALID_P): Delete '.'.
8172 2012-10-10 Jakub Jelinek <jakub@redhat.com>
8174 PR tree-optimization/54877
8175 * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
8176 use make_ssa_name instead of copy_ssa_name.
8178 2012-10-10 Richard Biener <rguenther@suse.de>
8180 * lto-streamer-in.c (lto_input_location_bitpack): Rename to ...
8181 (lto_input_location): ... this. Kill original.
8182 (input_eh_region): Adjust.
8183 (input_struct_function_base): Likewise.
8184 (lto_read_tree): Likewise.
8185 * lto-streamer-out.c (lto_output_location_bitpack): Rename to ...
8186 (lto_output_location): ... this. Kill original.
8187 (lto_write_tree): Adjust.
8188 (output_eh_region): Likewise.
8189 (output_struct_function_base): Likewise.
8190 * lto-streamer.c (lto_streamer_hooks_init): Initialize location hooks.
8191 * lto-streamer.h (lto_input_location): Adjust prototype.
8192 (lto_output_location): Likewise.
8193 * streamer-hooks.h (struct streamer_hooks): Adjust prototype
8194 of input_location and output_location hooks.
8195 (stream_input_location): New define.
8196 (stream_output_location): Likewise.
8197 * tree-streamer-in.c (unpack_ts_block_value_fields): Adjust.
8198 (unpack_value_fields): Likewise.
8199 (streamer_read_tree_bitfields): Likewise.
8200 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
8201 (lto_input_ts_exp_tree_pointers): Likewise.
8202 (lto_input_ts_block_tree_pointers): Likewise.
8203 * tree-streamer-out.c (pack_ts_block_value_fields): Adjust.
8204 (streamer_pack_tree_bitfields): Likewise.
8205 (write_ts_decl_minimal_tree_pointers): Likewise.
8206 (write_ts_exp_tree_pointers): Likewise.
8207 (write_ts_block_tree_pointers): Likewise.
8208 * gimple-streamer-in.c (input_phi): Adjust.
8209 (input_gimple_stmt): Likewise.
8210 * gimple-streamer-out.c (output_phi): Adjust.
8211 (output_gimple_stmt): Likewise.
8212 * tree-streamer.h (streamer_read_tree_bitfields): Adjust prototype.
8213 (streamer_pack_tree_bitfields): Likewise.
8215 2012-10-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8217 * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Fix signed
8218 vs. unsigned warnings by using enum type for function code.
8219 (paired_expand_builtin): Likewise.
8220 (spe_expand_builtin): Likewise.
8222 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Change
8223 builtin mask, target flags masks type to HOST_WIDE_INT in
8224 preparation for growing the number of ISA switches from 31 to 63.
8226 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Make mask type
8229 * config/rs6000/rs6000.c (struct builtin_description): Make
8230 builtin mask field HOST_WIDE_INT. Make target flags field
8231 HOST_WIDE_INT in preparation for growing the # of ISA switches.
8232 (struct rs6000_builtin_info_type): Likewise.
8233 (struct rs6000_ptt): Likewise.
8234 (rs6000_builtin_mask_calculate): Likewise.
8235 (rs6000_invalid_builtin): Likewise.
8236 (rs6000_builtin_decl): Likewise.
8237 (rs6000_common_init_builtins): Likewise.
8238 (rs6000_darwin_file_start): Likewise.
8239 (rs6000_final_prescan_insn): Likewise.
8240 (rs6000_inner_target_options): Likewise.
8241 (build_target_option_node): Likewise.
8242 (rs6000_function_specific_print): Likewise.
8243 (DEBUG_FMT_W): New format for printing HOST_WIDE_INT in hex.
8245 * config/rs6000/rs6000-protos.h (rs6000_builtin_mask_calculate):
8246 Make target flags, builtin masks arguments/return values
8247 HOST_WIDE_INT in preparation for growing the number of ISA from 31
8249 (rs6000_target_modify_macros): Likewise.
8250 (rs6000_target_modify_macros_ptr): Likewise.
8252 * config/rs6000/rs6000.c (DEBUG_FMT_ID): Move "-32s" to a separate
8253 define and change DEBUG_FMT_<x> to use it.
8254 (DEBUG_FMT_D): Likewise.
8255 (DEBUG_FMT_S): Likewise.
8256 (DEBUG_FMT_X): Delete, no longer used.
8257 (DEBUG_FMT_W): Likewise.
8258 (DEBUG_FMT_WX): New debug format for printing options in a
8260 (rs6000_debug_reg_global): If -mdebug=reg, print all of the
8261 options in target_flags and target_flags_explicit. Print the
8262 default options for -mcpu=<xxx>, -mtune=<xxx>, and the default
8263 options. Adjust printing out the builtin options.
8264 (rs6000_option_override_internal): Change printing the builtin
8265 options to use rs6000_print_builtin_options.
8266 (rs6000_function_specific_print): Change to use
8267 rs6000_print_isa_options to print ISA flags.
8268 (rs6000_print_options_internal): New function for expanded
8269 -mdebug=reg option printing to print both the ISA options, and the
8270 builtins that are enabled.
8271 (rs6000_print_isa_options): New function to print the ISA options.
8272 (rs6000_print_builtin_options): New function to print the builtin
8275 2012-10-10 Jakub Jelinek <jakub@redhat.com>
8278 * config/i386/bdver1.md (bdver1-mult): Remove.
8281 * combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH
8282 instead of '2' resp. 'c' for GET_RTX_CLASS comparisons.
8285 * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of
8286 INTVAL of second argument with precision resp. op_precision.
8288 2012-10-10 Dodji Seketeli <dodji@redhat.com>
8290 PR middle-end/54860 - Make sure attributes hash table is created
8291 * attribs.c (register_scoped_attributes): Ensure the attribute
8292 hash table is created.
8294 2012-10-10 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8297 * config/i386/bdver1.md (bdver1_int): Automaton has been
8298 split to reduce state transitions.
8300 2012-10-10 Richard Biener <rguenther@suse.de>
8303 * ipa-prop.c (prune_expression_for_jf_1): New function.
8304 (prune_expression_for_jf): Clear EXPR_LOCATION for all
8305 sub-expressions as well.
8307 2012-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8309 * config.gcc: Enable zEC12 for with-arch and with-tune
8311 * common/config/s390/s390-common.c (processor_flags_table): Add
8313 * config/s390/2827.md: New file.
8314 * config/s390/s390-opts.h (enum processor_type): Add
8315 PROCESSOR_2827_ZEC12.
8316 * config/s390/s390.h (enum processor_flags): Add PF_ZEC12.
8317 (TARGET_CPU_ZEC12, TARGET_ZEC12): New macro definitions.
8318 * config/s390/s390.c (zEC12_cost): New definition.
8319 (s390_option_override): Set costs for zEC12.
8320 Set parameter defaults for zEC12.
8321 (legitimate_reload_fp_constant_p): Adjust comment.
8322 (preferred_la_operand_p): Adjust comment.
8323 (s390_expand_insv): Generate insv pattern without CC clobber for zEC12.
8324 (s390_adjust_priority): Add zEC12 check.
8325 (s390_issue_rate): Return 2 for zEC12.
8326 (s390_reorg): Enable code optimizations for zEC12.
8327 (s390_sched_reorder): Reorder insns according to OOO attributes.
8328 (s390_get_sched_attrmask): New function.
8329 (s390_sched_score): New function.
8330 (s390_sched_variable_issue): Update s390_sched_state.
8331 (s390_sched_init): Reset s390_sched_state.
8332 (s390_loop_unroll_adjust): Enable for zEC12.
8333 * config/s390/s390.opt: Add zEC12 processor type value.
8334 * config/s390/s390.md: Enable mnemonic attribute.
8335 (attr cpu, cpu_facility): Add zEC12.
8337 ("*insv<mode>_zEC12", "*insv<mode>_zEC12_noshift")
8338 ("*load_and_trap<mode>"): New insn definition.
8339 ("*cmp_and_trap_unsigned_int<mode>"): Add clt and clgt.
8341 2012-10-09 David S. Miller <davem@davemloft.net>
8343 * config/sparc/sparc.md (type attribute): Add new types 'visl'
8344 (VIS logical operation), 'vismv' (VIS move), and 'pdistn'. Rename
8345 'fgm_pdist' to 'pdist'.
8346 (*movsi_insn): Use vismv and visl.
8347 (*movdi_insn_sp64): Likewise.
8348 (*movsf_insn): Likewise.
8349 (*movdf_insn_sp64): Likewise.
8350 (*mov<VM32:mode>_insn): Likewise, use 'fsrc2s' instead of 'fsrc1s'.
8351 (*mov<VM64:mode>_insn_sp64): Likewise, use 'fsrc2s'
8352 instead of 'fsrc1s'.
8353 (*mov<VM64:mode>_insn_sp32): Likewise, use 'fsrc2s'
8354 instead of 'fsrc1s'.
8355 (VIS logical instructions): Mark as visl.
8356 (pdist_vis): Use 'pdist'.
8357 (pditsn<mode>_vis): Use 'pdistn'.
8358 * config/sparc/ultra1_2.md: Adjust for new VIS attribute types.
8359 * config/sparc/ultra3.md: Likewise.
8360 * config/sparc/niagara.md: Likewise.
8361 * config/sparc/niagara2.md: Likewise.
8362 * config/sparc/niagara4.md: Add cpu units "n4_slot2" and
8363 "n4_load_store" for special store scheduling. Use them in load
8364 and store reservations. Integer divide and multiply can only
8365 issue in slot-1. Represent 1-cycle VIS moves and 3-cycle VIS
8368 2012-10-10 Dehao Chen <dehao@google.com>
8370 * tree-eh.c (lower_try_finally_onedest): Set correct location for
8372 * gimplify.c (gimplify_expr): Set correct location for TRY stmt.
8374 2012-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8377 * config/sh/sh.md (extv, extzv): Check that operands[3] is zero,
8378 regardless of the endianness.
8380 2012-10-09 Lawrence Crowl <crowl@google.com>
8382 * Makefile.in (fold-const.o): Add depencence on hash-table.h.
8385 * fold-const.c (fold_checksum_tree): Change to new
8386 type-safe hash table.
8387 * (print_fold_checksum): Likewise.
8388 * cfg.c (var bb_original): Likewise.
8389 * (var bb_copy): Likewise.
8390 * (var loop_copy): Likewise.
8391 * hash-table.h (template hash_table): Constify parameters for find...
8392 and remove_elt... member functions.
8393 (hash_table::empty) Correct size expression.
8394 (hash_table::clear_slot) Correct deleted entry assignment.
8395 * dse.c (var rtx_group_table): Change to new type-safe hash table.
8397 2012-10-09 Steven Bosscher <steven@gcc.gnu.org>
8399 * basic-block. (profile_record): New struct, moved from passes.c.
8400 * cfghooks.h (struct cfg_hooks) <account_profile_record>: New hook.
8401 (account_profile_record): New prototype.
8402 * cfghooks.c (account_profile_record): New function.
8403 * tree-cfg.c (gimple_account_profile_record): New function
8404 (gimple_cfg_hooks): Add it.
8405 * cfgrtl.c (rtl_account_profile_record): New function
8406 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it.
8407 * passes.c (check_profile_consistency): Simplify. Move IR-dependent
8408 code around using cfghooks machinery.
8410 2012-10-09 Oleg Endo <olegendo@gcc.gnu.org>
8413 * doc/extend.texi (Target Builtins): Add SH built-in section.
8414 Document __builtin_thread_pointer and __builtin_set_thread_pointer.
8416 2012-10-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8419 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
8420 Perform non constant step prefetching in inner loop, only
8421 when it is invariant in the entire loop nest.
8422 * tree-ssa-loop-prefetch.c (dump_mem_details): New function to dump
8423 base, step and delta values of memeory reference analysed for
8425 * tree-ssa-loop-prefetch.c (dump_mem_ref): Call dump_mem_details
8426 to print base, step and delta values of memory reference.
8427 * cfgloop.h (loop_outermost): New function that returns outermost
8428 loop for a given loop in a loop nest.
8430 2012-10-09 Richard Guenther <rguenther@suse.de>
8433 * cfgexpand.c (expand_debug_source_expr): Move checking
8434 code conditional on a found decl_debug_args vector.
8436 2012-10-09 Richard Guenther <rguenther@suse.de>
8438 * tree-streamer.c (streamer_tree_cache_get): Move ...
8439 * tree-streamer.h (streamer_tree_cache_get): ... here as inline.
8441 2012-10-09 Jan Hubicka <jh@suse.cz>
8443 * loop-unroll.c (unroll_loop_constant_iterations): Add
8444 update of loop->nb_iterations_upper_bound I missed in my previous
8445 commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide
8447 (decide_unroll_runtime_iterations): Avoid overflow.
8448 (unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of
8449 FLOOR_DIV_EXPR to update iteration bounds.
8450 (decide_peel_simple): Avoid integer overflow when deciding
8451 on number of peelings.
8452 (decide_unroll_stupid): Likewise.
8454 2012-10-09 Tobias Burnus <burnus@net-b.de>
8456 * lto-cgraph.c (input_node_opt_summary): Remove unused code.
8457 * lto-opts.c (append_to_collect_gcc_options): Fix condition.
8458 * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string
8459 which is passed to fprintf.
8461 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
8464 * tree.h: Add EXPR_LOC_OR_LOC.
8466 2012-10-09 Nick Clifton <nickc@redhat.com>
8468 PR rtl-optimization/54739
8469 * config/mcore/mcore.md: (anddi3, iordi3, xordi3): Delete patterns.
8472 * config/mcore/mcore.c (mcore_output_movedouble): Fix typo.
8474 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
8477 * fold-const.c (fold_binary_loc): Use build_zero_cst instead of
8478 build_int_cst for a potential vector.
8480 2012-10-08 Uros Bizjak <ubizjak@gmail.com>
8482 * config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes.
8483 (atom_sse_5): Ditto.
8485 2012-10-08 Marc Glisse <marc.glisse@inria.fr>
8488 * config/i386/i386.md (type attribute): Add sseadd1.
8489 (unit attribute): Add support for sseadd1.
8490 (memory attribute): Likewise.
8491 * config/i386/athlon.md: Likewise.
8492 * config/i386/core2.md: Likewise.
8493 * config/i386/atom.md: Likewise.
8494 * config/i386/ppro.md: Likewise.
8495 * config/i386/bdver1.md: Likewise.
8496 * config/i386/sse.md (sse3_h<plusminus_insn>v2df3): Split into...
8497 (sse3_haddv2df3): ... expander.
8498 (*sse3_haddv2df3): ... define_insn. Accept permuted operands.
8499 (sse3_hsubv2df3): ... define_insn.
8500 (*sse3_haddv2df3_low): New define_insn.
8501 (*sse3_hsubv2df3_low): New define_insn.
8503 2012-10-08 Jan Hubicka <jh@suse.cz>
8505 * loop-unswitch.c (unswitch_single_loop): Use
8506 estimated_loop_iterations_int to prevent unswitching when loop
8507 is known to not roll.
8508 * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault
8509 when SCEV is not initialized.
8510 (max_loop_iterations): Likewise.
8511 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use
8512 estimated_loop_iterations_int to prevent unswithcing when
8513 loop is known to not roll.
8514 * tree-scalar-evolution.c (scev_initialized_p): New function.
8515 * tree-scalar-evolution.h (scev_initialized_p): Likewise.
8516 * loop-unroll.c (decide_peel_once_rolling): Use
8517 max_loop_iterations_int.
8518 (unroll_loop_constant_iterations): Update
8519 nb_iterations_upper_bound and nb_iterations_estimate.
8520 (decide_unroll_runtime_iterations): Use
8521 estimated_loop_iterations or max_loop_iterations;
8522 (unroll_loop_runtime_iterations): fix profile updating.
8523 (decide_peel_simple): Use estimated_loop_iterations
8524 and max_loop_iterations.
8525 (decide_unroll_stupid): Use estimated_loop_iterations
8526 ad max_loop_iterations.
8527 * loop-doloop.c (doloop_modify): Use max_loop_iterations_int.
8528 (doloop_optimize): Likewise.
8529 * loop-iv.c (iv_number_of_iterations): Use record_niter_bound.
8530 (find_simple_exit): Likewise.
8531 * cfgloop.h (struct niter_desc): Remove niter_max.
8533 2012-10-08 Marek Polacek <polacek@redhat.com>
8536 * var-tracking.c (vt_add_function_parameter): Use condition instead
8539 2012-10-08 Dehao Chen <dehao@google.com>
8541 * predict.c (predict_loops): Predict for short-circuit conditions.
8542 (predict_extra_loop_exits): New Function.
8544 2012-10-08 Steven Bosscher <steven@gcc.gnu.org>
8546 * bitmap.h (bitmap_and_into): Update prototype.
8547 * bitmap.c (bitmap_and_into): Return true if the target bitmap
8548 changed, false otherwise.
8550 * df.h (df_dump_insn_problem_function): New function type.
8551 (struct df_problem): Add two functions, to dump just before and
8553 (DF_RD_PRUNE_DEAD_DEFS): New changable flag.
8554 (df_dump_insn_top, df_dump_insn_bottom): New prototypes.
8555 * df-core (df_dump_region): Use dump_bb.
8556 (df_dump_bb_problem_data): New function.
8557 (df_dump_top, df_dump_bottom): Rewrite using df_dump_bb_problem_data.
8558 (df_dump_insn_problem_data): New function.
8559 (df_dump_insn_top, df_dump_insn_bottom): New functions.
8560 * df-scan.c (problem_SCAN): Add NULL fields for new members.
8561 * df-problems.c (df_rd_local_compute): Ignore hard registers if
8562 DF_NO_HARD_REGS is in effect.
8563 (df_rd_transfer_function): If DF_RD_PRUNE_DEAD_DEFS is in effect,
8564 prune reaching defs using the LR problem.
8565 (df_rd_start_dump): Fix dumping of DEFs map.
8566 (df_rd_dump_defs_set): New function.
8567 (df_rd_top_dump, df_rd_bottom_dump): Use it.
8568 (problem_RD): Add NULL fields for new members.
8569 (problem_LR, problem_LIVE): Likewise.
8570 (df_chain_bb_dump): New function.
8571 (df_chain_top_dump): Dump only for artificial DEFs and USEs,
8572 using df_chain_bb_dump.
8573 (df_chain_bottom_dump): Likewise.
8574 (df_chain_insn_top_dump, df_chain_insn_bottom_dump): New functions.
8575 (problem_CHAIN): Add them as new members.
8576 (problem_WORD_LR, problem_NOTE): Add NULL fields for new members.
8577 (problem_MD): Likewise.
8578 * cfgrtl.c (rtl_dump_bb): Use df_dump_insn_top and df_dump_insn_bottom.
8579 (print_rtl_with_bb): Likewise.
8581 * dce.c (init_dce): Use DF_RD_PRUNE_DEAD_DEFS.
8582 * loop-invariant.c (find_defs): Likewise.
8583 * loop-iv.c (iv_analysis_loop_init): Likewise.
8584 * ree.c (find_and_remove_re): Likewise.
8585 * web.c (web_main): Likewise.
8587 2012-10-08 Jason Merrill <jason@redhat.com>
8589 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
8590 ASM_WEAKEN_DECL with #if RS6000_WEAK.
8592 2012-10-08 Richard Guenther <rguenther@suse.de>
8594 PR tree-optimization/54825
8595 * tree-ssa-sccvn.c (vn_nary_length_from_stmt): Handle BIT_FIELD_REF.
8596 (init_vn_nary_op_from_stmt): Likewise.
8597 * tree-ssa-pre.c (compute_avail): Use vn_nary_op_lookup_stmt.
8598 * tree-ssa-sccvn.h (sizeof_vn_nary_op): Avoid overflow.
8600 2012-10-08 Richard Guenther <rguenther@suse.de>
8602 * tree-ssa-pre.c (postorder_num): New global.
8603 (compute_antic): Initialize all blocks and adjust for
8605 (my_rev_post_order_compute): Remove.
8606 (init_pre): Use inverted_post_order_compute.
8608 2012-10-08 Bernd Schmidt <bernds@codesourcery.com>
8610 * sched-int.h (schedule_block): Adjust declaration.
8611 * sched-rgn.c (bb_state_array, bb_state): New static variables.
8612 (sched_rgn_init): Initialize them.
8613 (sched_rgn_free): Free them.
8614 (schedule_region): Save scheduling state for future blocks, and
8615 pass such state to schedule_block.
8616 * params.def (PARAM_SCHED_STATE_EDGE_PROB_CUTOFF): New.
8617 * doc/invoke.texi (--param): Document it.
8618 * haifa-sched.c (schedule_block): New arg init_state. Use it to
8619 initialize state if nonnull. All callers changed.
8620 Call advance_one_cycle after scheduling.
8622 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
8625 * doc/invoke.texi (AVR Options): Remove -mshort-calls.
8626 * config/avr/avr.opt (-mshort-calls): Remove option.
8627 * config/avr/avr.h (AVR_HAVE_JMP_CALL): Don't depend on
8630 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
8633 * config/sh/sh.md (one_cmplsi2): Make insn_and_split. Add manual
8634 combine matching for an insn sequence where a ge:SI pattern
8637 2012-10-08 Dodji Seketeli <dodji@redhat.com>
8639 PR c++/53528 C++11 attribute support
8640 * plugin.h (register_scoped_attributes): Declare new function.
8641 * tree.h (enu attribute_flags::ATTR_FLAG_CXX_11): New flag.
8642 (lookup_scoped_attribute_spec, cxx_11_attribute_p)
8643 (get_attribute_name, get_attribute_namespace): Declare new functions.
8644 (struct attribute_spec): Remove const qualifier from the members.
8645 * tree.c (comp_type_attributes, private_lookup_attribute)
8646 (lookup_ident_attribute, remove_attribute, merge_attribute)
8647 (attribute_hash_list, attribute_list_contained): Use
8649 * attribs.c (decl_attributes): Don't crash on error_mark_node.
8650 Forbid c++11 attributes appertaining to type-specifiers.
8651 (attribute_hash): Remove global variable.
8652 (attributes_table): New global variable.
8653 (find_attribute_namespace, register_scoped_attribute): New static
8655 (register_scoped_attributes, lookup_scoped_attribute_spec)
8656 (cxx11_attribute_p, get_attribute_name, get_attribute_namespace):
8657 New public functions.
8658 (init_attributes): Register all the GNU attributes into the "gnu"
8660 (register_attribute): Use register_scoped_attribute to register
8661 the attribute into the "gnu" namespace.
8662 (lookup_attribute_spec): Use lookup_scoped_attribute_spec to
8663 lookup the attribute in the "gnu" namespace.
8664 (decl_attributes): Use new get_attribute_namespace and
8665 lookup_scoped_attribute_spec to consider attribute namespaces when
8666 looking up attributes. When operating in c++-11 mode, pass flag
8667 ATTR_FLAG_CXX11 to the spec handler.
8669 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
8672 * config/avr/avr.md (*add<mode>3, add<mode>3, addpsi3): Make
8673 constraint alternative "r,0,r" slighly more expensive.
8674 (sub<mode>3, andqi3, andhi3, andpsi3, andsi3): Ditto.
8675 (iorqi3, iorhi3, iorpsi3, iorsi3): Ditto.
8676 (xorhi3, xorpsi3, xorsi3): Ditto.
8678 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
8681 * config/sh/sh.md (*mov<mode>_gbr_load, *mov<mode>_gbr_store): New
8682 insns and accompanying unnamed splits.
8683 * config/sh/predicates.md (general_movsrc_operand,
8684 general_movdst_operand): Reject GBR addresses.
8685 * config/sh/sh-protos.h (sh_find_equiv_gbr_addr): New declaration.
8686 * config/sh/sh.c (sh_address_cost, sh_legitimate_address_p,
8687 sh_secondary_reload): Handle GBR addresses.
8688 (base_reg_disp): New class.
8689 (sh_find_base_reg_disp, sh_find_equiv_gbr_addr): New functions.
8691 2012-10-08 Hans-Peter Nilsson <hp@bitrange.com>
8693 * config/mmix/mmix.c (mmix_output_octa): Don't assume
8694 HOST_WIDEST_INT_PRINT_HEX starts with "0x". Instead use
8695 HOST_WIDE_INT_PRINT_HEX_PURE, falling back to
8696 HOST_WIDEST_INT_PRINT_UNSIGNED.
8698 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
8700 * machmode.h (GET_MODE_UNIT_PRECISION): New macro.
8701 * simplify-rtx.c (simplify_truncation): New function,
8702 extracted from simplify_subreg and (in small part) from
8703 simplify_unary_operation_1.
8704 (simplify_unary_operation_1) <TRUNCATE>: Use it. Remove sign bit
8705 test for !TRULY_NOOP_TRUNCATION_MODES_P.
8706 (simplify_subreg): Use simplify_truncate for lowpart subregs
8707 where both the inner and outer modes are scalar integers.
8708 * config/mips/mips.c (mips_truncated_op_cost): New function.
8709 (mips_rtx_costs): Adjust test for BADDU.
8710 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
8712 2012-10-07 Jan Hubicka <jh@suse.cz>
8714 * ipa-inline-analysis.c (do_estimate_edge_time): Return actual
8715 time spent by the inlined sequence.
8716 (do_estimate_edge_growth): Rename to ...
8717 (do_estimate_edge_time): ... this one; return size of inlined sequence.
8718 * ipa-inline.h (do_estimate_edge_size): New.
8719 (do_estimate_edge_growth): Remove.
8720 (estimate_edge_size): New function.
8721 (estimate_edge_growth): Use it.
8723 2012-10-07 Jan Hubicka <jh@suse.cz>
8725 * lto-cgraph.c (lto_symtab_encoder_new): New parameter FOR_INPUT.
8726 (lto_symtab_encoder_delete): Update.
8727 (lto_symtab_encoder_encode): Update.
8728 (compute_ltrans_boundary): Update.
8729 (input_symtab): Update.
8730 * lto-streamer.h (lto_symtab_encoder_new): Update.
8732 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
8734 * config/mips/mips-protos.h (mips_split_type): New enum.
8735 (mips_split_64bit_move_p, mips_split_doubleword_move): Delete.
8736 (mips_split_move_p, mips_split_move, mips_split_move_insn_p)
8737 (mips_split_move_insn): Declare.
8738 * config/mips/mips.c (mips_tuning_info): New variable.
8739 (mips_load_store_insns): Use mips_split_move_insn_p instead of
8740 mips_split_64bit_move_p.
8741 (mips_emit_move_or_split, mips_mult_move_p): New functions.
8742 (mips_split_64bit_move_p): Rename to...
8743 (mips_split_move_p): ...this and take a mips_split_type argument.
8744 Generalize to all moves. Call mips_mult_move_p.
8745 (mips_split_doubleword_move): Rename to...
8746 (mips_split_move): ...this and take a mips_split_type argument.
8747 Assert that mips_split_move_p holds.
8748 (mips_insn_split_type, mips_split_move_insn_p, mips_split_move_insn):
8750 (mips_output_move): Use mips_split_move_p instead of
8751 mips_split_64bit_move_p. Handle MULT $0, $0 moves.
8752 (mips_save_reg): Use mips_emit_move_or_split.
8753 (mips_sim_reset): Assign to curr_state. Call targetm.sched.init
8755 (mips_sim_init): Call targetm.sched.init_dfa_pre_cycle_insn and
8756 targetm.sched.init_dfa_post_cycle_insn, if defined.
8757 (mips_sim_next_cycle): Assign to curr_state. Use advance_state
8758 instead of state_transition.
8759 (mips_sim_issue_insn): Assign to curr_state. Use
8760 targetm.sched.variable_issue to see how many more insns can be issued.
8761 (mips_seq_time, mips_mult_zero_zero_cost)
8762 (mips_set_fast_mult_zero_zero_p, mips_set_tuning_info)
8763 (mips_expand_to_rtl_hook): New functions.
8764 (TARGET_EXPAND_TO_RTL_HOOK): Define.
8765 * config/mips/mips.md (move_type): Add imul.
8766 (type): Map imul move_types to imul.
8767 (*movdi_32bit, *movti): Add imul alternatives.
8768 Use mips_split_move_insn_p and mips_split_move_insn instead of
8769 mips_split_64bit_move_p and mips_split_doubleword_move in move
8772 2012-10-06 Segher Boessenkool <segher@kernel.crashing.org>
8774 * config/rs6000/rs6000.c (print_operand) ['A']: Delete.
8776 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
8779 * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define
8780 __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS.
8781 * ginclude/stdint-gcc.h: In C++11 unconditionally define
8782 limit and constant macros.
8784 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
8787 * ginclude/stddef.h: In C++11 mode declare nullptr_t in the global
8790 2012-10-06 Jan Hubicka <jh@suse.cz>
8794 * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack.
8796 2012-10-06 Dehao Chen <dehao@google.com>
8799 * gimple-low.c (lower_stmt): Set the block for call args.
8801 2012-10-06 Jan Hubicka <jh@suse.cz>
8803 * doc/invoke.texi (-fprofile-report): Document.
8804 * common.opt (-fprofile-report): New option.
8805 * toplev.c (finalize): Call dump_profile_report.
8806 * toplev.h (profile_report): Declare.
8807 * passes.c (profile_record): New static var.
8808 (check_profile_consistency): New function.
8809 (dump_profile_record): New function.
8810 (execute_one_ipa_transform_pass): Call check_profile_consistency.
8811 (execute_one_pass): Likewise.
8813 2012-10-06 Jan Hubicka <jh@suse.cz>
8816 * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution,
8817 lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove.
8818 * lto-symtab.c (lto_symtab_register_decl): Remove.
8820 2012-10-06 Andreas Schwab <schwab@linux-m68k.org>
8822 PR rtl-optimization/54739
8823 * config/m68k/m68k.md (anddi3, iordi3, xordi3, one_cmpldi2): Remove.
8825 2012-10-06 Oleg Endo <olegendo@gcc.gnu.org>
8828 * config/sh/sh.md (define_constants): Add UNSPECV_GBR.
8829 (get_thread_pointer, set_thread_pointer): New expanders.
8830 (load_gbr): Rename to store_gbr. Remove GBR_REG use.
8831 (store_gbr): New insn.
8832 * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of
8833 gen_load_gbr in TLS_MODEL_LOCAL_EXEC case.
8834 (sh1_builtin_p): New function.
8835 (signature_args): Add SH_BLTIN_VP.
8836 (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer.
8838 2012-10-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8840 PR rtl-optimization/54739
8841 * config/pa/pa.md: Remove DImode and, not and, ior and xor patterns
8842 for 32-bit targets. Adjust expanders.
8844 * config/pa/pa.md: Adjust unamed HImode add insn pattern.
8846 2012-10-05 Oleg Endo <olegendo@gcc.gnu.org>
8848 * config/sh/sh.c (builtin_description): Add is_enabled member.
8849 (shmedia_builtin_p): New function.
8850 (bdesc): Use shmedia_builtin_p for existing built-ins.
8851 (sh_media_init_builtins, sh_init_builtins): Merge into single function
8852 sh_init_builtins. Add is_enabled checking. Move variable declarations
8853 to where they are actually used.
8854 (sh_media_builtin_decl, sh_builtin_decl): Merge into single function
8855 sh_builtin_decl. Add is_enabled checking.
8856 (sh_expand_builtin): Move variable declarations to where they are
8859 2012-10-05 Jakub Jelinek <jakub@redhat.com>
8861 * tree-inline.c (expand_call_inline): Move VAR_DECLs with
8862 PARM_DECL origins from remapped DECL_INITIAL's BLOCK_VARS
8863 into id->block's BLOCK_VARS.
8866 * ipa-split.c (split_function): Add debug args and debug source
8867 and normal stmts for args_to_skip which are gimple regs.
8868 * tree-inline.c (copy_debug_stmt): When inlining, adjust source
8869 debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL.
8871 2012-10-05 Georg-Johann Lay <avr@gjlay.de>
8873 * config/avr/avr.md: Fix indentations of insn C snippets.
8875 2012-10-05 Richard Guenther <rguenther@suse.de>
8878 * tree-ssa-live.c (clear_unused_block_pointer_1): Look at
8879 DECL_DEBUG_EXPR again.
8881 2012-10-05 Jan Hubicka <jh@suse.cz>
8882 Jakub Jelinek <jakub@redhat.com>
8884 PR tree-optimization/33763
8885 * tree-inline.c (expand_call_inline): Silently ignore always_inline
8886 attribute for redefined extern inline functions.
8888 2012-10-04 Jan Hubicka <jh@suse.cz>
8890 * tree-vectorizer.h (vect_estimate_min_profitable_iters): Remove.
8891 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Declare here.
8892 (vect_analyze_loop_operations): Use loop count estimate to rule out
8893 unprofitable vectorization.
8894 (vect_estimate_min_profitable_iters): Return
8895 ret_min_profitable_estimate.
8897 2012-10-05 Jakub Jelinek <jakub@redhat.com>
8899 PR tree-optimization/54810
8900 * tree-vrp.c (register_edge_assert_for_2): Handle
8901 NAME = (unsigned) NAME2; if (NAME cmp CST) for
8902 narrowing casts to unsigned integral type like
8903 NAME = NAME2 & CST2; if (NAME cmp CST) where CST2
8904 is the max value of the unsigned integral type.
8906 2012-10-04 Jeff Law <law@redhat.com>
8909 * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case.
8911 2012-10-04 Jason Merrill <jason@redhat.com>
8913 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
8914 ASM_WEAKEN_DECL with #if RS6000_WEAK.
8916 2012-10-04 Basile Starynkevitch <basile@starynkevitch.net>
8918 * gengtype.c (walk_type): Emit mark_hook when inside a
8919 struct of a union member.
8921 2012-10-04 Georg-Johann Lay <avr@gjlay.de>
8923 * config/avr/predicates.md (flash_operand): New predicate.
8924 * config/avr/avr.md (reload_in<mode>): Use it in operand 1 instead
8927 2012-10-04 Tobias Burnus <burnus@net-b.de>
8929 * gcc.c (record_temp_file, add_sysrooted_prefix, process_command,
8930 do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks.
8931 (do_spec_1): Ditto, fix out-of-bound access.
8932 * opts.c (common_handle_option): Plug memleak.
8934 2012-10-04 Jason Merrill <jason@redhat.com>
8936 * config/darwin.c (darwin_assemble_visibility): Treat
8937 VISIBILITY_INTERNAL as hidden.
8939 * config/darwin-c.c (find_subframework_file): Add missing const.
8940 (framework_construct_pathname): Likewise.
8942 2012-10-04 Florian Weimer <fweimer@redhat.com>
8944 * doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma
8947 2012-10-04 Richard Guenther <rguenther@suse.de>
8950 * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
8951 cleaning up the CFG.
8953 2012-10-04 Richard Guenther <rguenther@suse.de>
8956 * tree-streamer-out.c (write_ts_block_tree_pointers): For
8957 inlined functions outer scopes write the ultimate origin
8958 as BLOCK_ABSTRACT_ORIGIN and BLOCK_SOURCE_LOCATION.
8959 Do not stream the fragment chains.
8960 * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Likewise.
8961 * dwarf2out.c (gen_subprogram_die): Handle NULL DECL_INITIAL.
8962 (dwarf2out_decl): Always output DECL_ABSTRACT function decls.
8964 2012-10-04 Arnaud Charlet <charlet@adacore.com>
8966 * dumpfile.h, dumpfile.c: Remove TDI_ada.
8968 2012-10-04 Yuri Rumyantsev <ysrumyan@gmail.com>
8970 * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add
8971 check on reload_completed since it can be invoked before
8972 register allocation phase in pre-reload schedule.
8973 (ia32_multipass_dfa_lookahead) : Do not use dfa_lookahead for
8974 pre-reload schedule to save compile time.
8975 (ix86_sched_reorder) : Do not perform ready list reordering for
8976 pre-reload schedule to save compile time.
8977 (insn_is_function_arg) : New function. Returns true if lhs of insn is
8978 HW function argument register.
8979 (add_parameter_dependencies) : New function. Add output dependencies
8980 for chain of function adjacent arguments if only there is a move to
8981 likely spilled HW registers. Return first argument if at least one
8982 dependence was added or NULL otherwise.
8983 (avoid_func_arg_motion) : New function. Add output or anti dependency
8984 from insn to first_arg to restrict code motion.
8985 (add_dependee_for_func_arg) : New function. Avoid cross block motion of
8986 function argument through adding dependency from the first non-jump
8988 (ix86_dependencies_evaluation_hook) : New function. Hook for
8989 pre-reload schedule: avoid motion of function arguments passed in
8990 likely spilled HW registers.
8991 (ix86_adjust_priority) : New function. Hook for pre-reload schedule:
8992 set priority of moves from likely spilled HW registers to maximum to
8993 schedule them as soon as possible.
8994 (ix86_sched_init_global): Do not perform multipass scheduling for
8995 pre-reload schedule to save compile time.
8997 2012-10-04 Uros Bizjak <ubizjak@gmail.com>
8999 * configure.ac (noexception_flags): Add -fasynchronous-unwind-tables.
9000 * configure: Regenerate.
9002 2012-10-04 Kaz Kojima <kkojima@gcc.gnu.org>
9004 * config/sh/sh.c (sh_can_use_simple_return_p): Return false for
9005 SHmedia and SHcompact using call cookie.
9006 * config/sh/sh.md (epilogue): Emit non-inlined return insns for
9007 SHmedia and SHcompact using call cookie.
9009 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
9012 * config/sh/sh.md (*mov_t_msb_neg): New insn and two accompanying
9013 unnamed split patterns.
9015 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
9018 * config/sh/sh.c (parse_validate_atomic_model_option): Handle name
9019 strings in sh_atomic_model.
9020 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation
9022 * config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function.
9023 Add __SH1__ and __SH2__ defines. Add __SH_ATOMIC_MODEL_*__ define.
9024 * config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name
9026 (sh_cpu_cpp_builtins): Declare new function.
9028 2012-10-03 Dehao Chen <dehao@google.com>
9031 * tree-cfg.c (move_block_to_fn): Update lexical block for phi_args.
9033 2012-10-03 Vladimir Makarov <vmakarov@redhat.com>
9035 * reginfo.c (max_regno_since_last_resize): New.
9036 (reg_preferred_class, reg_alternate_class): Add assert.
9037 (allocate_reg_info): Initialize allocated reg info.
9038 (resize_reg_info): Make bigger reg_info and initialize new memory.
9039 (reginfo_init): Initialize max_regno_since_last_resize.
9040 (setup_reg_classes): Change assert.
9042 2012-10-03 Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
9044 * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
9045 in SSE and YMM state support check for -march=native.
9047 2012-10-03 Nick Clifton <nickc@redhat.com>
9049 * config/rx/rx.c (struct decl_chain): New local structure.
9050 (warned_decls): New local variable. Contains a stack of decls for
9051 which warnings have been issued.
9052 (add_warned_decl): Adds a decl to the stack.
9053 (already_warned): Returns true if a given decl is on the stack.
9054 (rx_set_current_function): Issue a warning if multiple fast
9055 interrupt handlers are defined.
9056 * config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option.
9057 * doc/invoke.texi: Document the option.
9059 2012-10-03 Mark Kettenis <kettenis@openbsd.org>
9061 * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
9062 default_use_cxa_atexit to yes.
9064 2012-10-03 Jakub Jelinek <jakub@redhat.com>
9066 PR rtl-optimization/54792
9067 * sched-deps.c (find_modifiable_mems): Scan also TAIL insn.
9069 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
9072 * doc/invoke.texi: Document -mprefer-avx128.
9074 2012-10-02 Andrew Pinski <apinski@cavium.com>
9076 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
9077 Don't optimize a truncate of a mem if it is a vector mode.
9079 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
9082 * Makefile.in (VALTRACK_H): Add hash-table.h.
9083 * valtrack.h: Include hash-table.h.
9084 (struct dead_debug_global_entry): New.
9085 (struct dead_debug_hash_descr): New.
9086 (struct dead_debug_global): New.
9087 (struct dead_debug): Rename to...
9088 (struct dead_debug_local): ... this. Adjust all uses.
9089 (dead_debug_global_init, dead_debug_global_finish): New.
9090 (dead_debug_init): Rename to...
9091 (dead_debug_local_init): ... this. Adjust all callers.
9092 (dead_debug_finish): Rename to...
9093 (dead_debug_local_finish): ... this. Adjust all callers.
9094 * valtrack.c (dead_debug_global_init): New.
9095 (dead_debug_init): Rename to...
9096 (dead_debug_local_init): ... this. Take global parameter.
9097 Save it and initialize used bitmap from it.
9098 (dead_debug_global_find, dead_debug_global_insert): New.
9099 (dead_debug_global_replace_temp): New.
9100 (dead_debug_promote_uses): New.
9101 (dead_debug_finish): Rename to...
9102 (dead_debug_local_finish): ... this. Promote remaining uses.
9103 (dead_debug_global_finish): New.
9104 (dead_debug_add): Try to replace global temps first.
9105 (dead_debug_insert_temp): Support global replacements.
9106 * dce.c (word_dce_process_block, dce_process_block): Add
9107 global_debug parameter. Pass it on.
9108 (fast_dce): Initialize, pass on and finalize global_debug.
9109 * df-problems.c (df_set_unused_notes_for_mw): Adjusted.
9110 (df_create_unused_notes, df_note_bb_compute): Likewise.
9111 (df_note_compute): Justify local-only dead debug analysis.
9113 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
9116 * dwarf2out.c (value_format): Use block4 for dw_val_class_loc
9119 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
9122 * var-tracking.c (vt_add_function_parameter): Bail if
9125 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
9128 * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
9129 (XSTATE_FP): Likewise.
9130 (XSTATE_SSE): Likewise.
9131 (XSTATE_YMM): Likewise.
9132 (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
9133 SSE and YMM states aren't supported.
9135 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9137 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
9138 (*baddu_si): ...this new pattern.
9140 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9142 * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs.
9143 (ira_useful_class_mode_regs): New macro.
9144 * ira.c (clarify_prohibited_class_mode_regs): Set up
9145 ira_useful_class_mode_regs.
9146 * ira-color.c (setup_profitable_hard_regs): Use it to initialise
9147 profitable_hard_regs.
9149 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9151 * ira.h (target_ira): Add x_ira_class_singleton.
9152 (ira_class_singleton): New macro.
9153 * ira.c (setup_prohibited_class_mode_regs): Set up ira_class_singleton.
9154 * ira-build.c (update_conflict_hard_reg_costs): Use
9155 ira_class_singleton to check for classes with a single
9156 allocatable register.
9157 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Likewise.
9158 (single_reg_class): Likewise. When more than one class is specified,
9159 check whether they have the same singleton register.
9160 (process_single_reg_class_operands): Require single_reg_class
9161 to return NO_REGS or a class with a single allocatable register.
9162 Obtain that register from ira_class_singleton.
9164 2012-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9166 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9167 -mcpu=<xxx> is not specified and the compiler is not configured
9168 using --with-cpu=<xxx>, use the bits from the TARGET_DEFAULT to
9169 set the initial options.
9171 2012-10-02 Sharad Singhai <singhai@google.com>
9174 * tree-vect-stmts.c (vectorizable_operation): Add missing return.
9176 2012-10-02 David Edelsohn <dje.gcc@gmail.com>
9178 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9179 set TARGET_ALTIVEC_VRSAVE for TARGET_ELF.
9180 (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE.
9182 2012-10-02 Jakub Jelinek <jakub@redhat.com>
9184 PR tree-optimization/54713
9185 * expr.c (categorize_ctor_elements_1): Don't assume purpose is
9187 * tree-cfg.c (verify_gimple_assign_single): Add verification of
9188 vector CONSTRUCTORs.
9189 * tree-ssa-sccvn.c (vn_reference_lookup_3): For VECTOR_TYPE
9190 CONSTRUCTORs, don't do anything if element type is VECTOR_TYPE,
9191 and don't check index.
9192 * tree-vect-slp.c (vect_get_constant_vectors): VIEW_CONVERT_EXPR ctor
9193 elements first if their type isn't compatible with vector element type.
9195 2012-10-02 Eric Botcazou <ebotcazou@adacore.com>
9197 * tree.h (DECL_NONLOCAL_FRAME): New macro.
9198 * tree-nested.c (get_frame_type): Set DECL_NONLOCAL_FRAME.
9199 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream in
9200 DECL_NONLOCAL_FRAME flag.
9201 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream out
9202 DECL_NONLOCAL_FRAME flag.
9204 2012-10-02 Marc Glisse <marc.glisse@inria.fr>
9206 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
9207 boolean_type_node for vectors.
9209 2012-10-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9211 * config/rs6000/rs6000.c (toplevel): Include dumpfile.h.
9212 (rs6000_density_test): Rework to accommodate 09-30 change by
9215 * config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency.
9217 2012-10-01 Dehao Chen <dehao@google.com>
9220 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use
9221 LOCATION_LOCUS to compare with UNKNOWN_LOCATION.
9222 (slpeel_tree_peel_loop_to_edge): Likewise.
9223 * tree-vectorizer.c (vectorize_loops): Likewise.
9225 2012-10-01 Andrew MacLeod <amacleod@redhat.com>
9228 * optabs.c (expand_atomic_fetch_op_no_fallback): New. Factored code
9229 from expand_atomic_fetch_op.
9230 (expand_atomic_fetch_op): Try atomic_{add|sub} operations in terms of
9231 the other one if direct opcode fails.
9233 2012-10-01 Uros Bizjak <ubizjak@gmail.com>
9235 PR rtl-optimization/54457
9236 * simplify-rtx.c (simplify_subreg):
9237 Simplify (subreg:M (op:N ((x:N) (y:N)), 0)
9238 to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where
9239 the outer subreg is effectively a truncation to the original mode M.
9241 2012-10-01 Richard Guenther <rguenther@suse.de>
9243 * builtins.def (ATTR_MATHFN_FPROUNDING): Do not use no-vops
9244 with -frounding-math.
9245 * builtin-attrs.def (ATTR_PURE_NOTHROW_NOVOPS_LIST): Remove.
9246 (ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST): Likewise.
9248 2012-10-01 Eric Botcazou <ebotcazou@adacore.com>
9250 * tree.h (copy_mem_ref_info): Delete.
9251 * tree-ssa-address.c (copy_mem_ref_info): Likewise.
9252 (maybe_fold_tmr): Copy flags manually.
9253 * tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite.
9255 2012-10-01 Marc Glisse <marc.glisse@inria.fr>
9257 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9258 Detect the identity.
9259 <VEC_CONCAT>: Handle VEC_SELECTs from the same vector.
9261 2012-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9264 * config/sh/sh.opt (matomic-model): New option.
9265 (msoft-atomic): Mark as deprecated and alias to
9266 matomic-model=soft-gusa.
9267 (mhard-atomic): Delete.
9268 * config/sh/predicates.md (gbr_displacement): New predicate.
9269 * config/sh/sh-protos.h (sh_atomic_model): New struct.
9270 (selected_atomic_model): New declaration.
9271 (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT, TARGET_ATOMIC_SOFT_GUSA,
9272 TARGET_ATOMIC_HARD_LLCS, TARGET_ATOMIC_SOFT_TCB,
9273 TARGET_ATOMIC_SOFT_TCB_GBR_OFFSET_RTX, TARGET_ATOMIC_SOFT_IMASK):
9275 * config/sh/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Adapt setting to
9276 default atomic model.
9277 * config/sh/sh.c (selected_atomic_model_): New global variable.
9278 (selected_atomic_model, parse_validate_atomic_model_option): New
9280 (sh_option_override): Replace atomic selection checks with call to
9281 parse_validate_atomic_model_option.
9282 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
9283 UNSUPPORTED_HARD_ATOMIC_CPU): Delete.
9284 (DRIVER_SELF_SPECS): Remove atomic checks.
9285 config/sh/sync.md: Update documentation comments.
9286 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
9287 atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
9288 atomic_<fetchop_name>_fetch<mode>, atomic_nand_fetch<mode>): Use
9289 TARGET_ATOMIC_ANY as condition. Add TARGET_ATOMIC_STRICT check for
9290 SH4A case. Handle new TARGET_ATOMIC_SOFT_TCB and
9291 TARGET_ATOMIC_SOFT_IMASK cases.
9292 (atomic_test_and_set): Handle new TARGET_ATOMIC_SOFT_TCB and
9293 TARGET_ATOMIC_SOFT_IMASK cases.
9294 (atomic_compare_and_swapsi_hard, atomic_exchangesi_hard,
9295 atomic_fetch_<fetchop_name>si_hard, atomic_fetch_nandsi_hard,
9296 atomic_<fetchop_name>_fetchsi_hard, atomic_nand_fetchsi_hard):
9297 Add TARGET_ATOMIC_STRICT check.
9298 (atomic_compare_and_swap<mode>_hard, atomic_exchange<mode>_hard,
9299 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nand<mode>_hard,
9300 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetch<mode>_hard,
9301 atomic_test_and_set_hard): Use TARGET_ATOMIC_HARD_LLCS condition.
9302 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
9303 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
9304 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
9305 atomic_test_and_set_soft): Append _gusa to the insn names and use
9306 TARGET_ATOMIC_SOFT_GUSA as condition.
9307 (atomic_compare_and_swap<mode>_soft_tcb,
9308 atomic_exchange<mode>_soft_tcb,
9309 atomic_fetch_<fetchop_name><mode>_soft_tcb,
9310 atomic_fetch_nand<mode>_soft_tcb,
9311 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
9312 atomic_nand_fetch<mode>_soft_tcb, atomic_test_and_set_soft_tcb):
9314 (atomic_compare_and_swap<mode>_soft_imask,
9315 atomic_exchange<mode>_soft_imask,
9316 atomic_fetch_<fetchop_name><mode>_soft_imask,
9317 atomic_fetch_nand<mode>_soft_imask,
9318 atomic_<fetchop_name>_fetch<mode>_soft_imask,
9319 atomic_nand_fetch<mode>_soft_imask, atomic_test_and_set_soft_imask):
9321 * doc/invoke.texi (SH Options): Document new matomic-model option.
9322 Remove msoft-atomic and mhard-atomic options.
9324 2012-10-01 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9327 * config/s390/s390.c (s390_option_override): Add missing break.
9329 2012-09-30 Sharad Singhai <singhai@google.com>
9331 * dumpfile.c: New file with parts moved from tree-dump.c.
9332 (pflags): New variable.
9334 (alt_dump_file): Ditto.
9335 (dump_files): Update to include additional fields.
9336 (struct dump_option_value_info): Add additional entries.
9337 (get_dump_file_name): Use command line filename if available.
9338 (dump_open_alternate_stream): New function.
9340 (dump_gimple_stmt): Ditto.
9341 (dump_gimple_stmt_loc): Ditto.
9342 (dump_generic_expr): Ditto.
9343 (dump_generic_expr_loc): Ditto.
9344 (dump_printf): Ditto.
9345 (dump_printf_loc): Ditto.
9346 (dump_start): Ditto.
9347 (dump_finish): Ditto.
9348 (dump_begin): Ditto.
9349 (dump_enabled_p): Return true if either of the dump types is enabled.
9350 (dump_initialized_p): Return true if either type of dump is
9352 (dump_end): Do not close standard streams.
9353 (dump_enable_all): Handle filenames for regular dumps.
9354 (dump_switch_p_1): Handle command-line dump filenames.
9355 (opt_info_enable_all): New function.
9356 (opt_info_switch_p_1): Ditto.
9357 (opt_info_switch_p): Ditto.
9358 (dump_kind_p): Ditto.
9359 (dump_basic_block): Ditto.
9360 (dump_combine_total_stats): Ditto.
9361 (dump_remap_tree_vectorizer_verbose): Ditto.
9362 * gimple-pretty-print.h: Rename dump_gimple_stmt to
9363 pp_gimple_stmt_1. All callers updated.
9365 2012-09-30 Sharad Singhai <singhai@google.com>
9367 * doc/invoke.texi: Add documentation for the new -fopt-info option.
9368 * tree-dump.c: Move general dump file related functionality into
9369 dumpfile.c. Remove unneeded headers.
9370 * tree-dump.h: Move function declarations into dumpfile.h.
9371 * dumpfile.h: Include "line-map.h". Add defines for MSG flags.
9372 (struct dump_file_info): Move here from tree-dump.c. Rename flags
9373 to pflags, state to pstate, stream to pstream, filename to
9374 pfilename. All callers updated. Add alt_flags, alt_state,
9375 alt_filenmae, alt_stream.
9376 * tree-vectorizer.c: Include "dumpfile.h". Remove vect_dump.
9377 (vect_set_dump_settings): Remove.
9378 (vect_print_dump_info): Ditto.
9379 * tree-vectorizer.h: Remove declaration of vect_dump and
9380 vect_print_dump_info.
9381 * tree-vect-loop.c: Include "dumpfile.h". Use new dump style.
9382 * tree-vect-data-refs.c: Ditto.
9383 * tree-vect-stmts.c: Ditto.
9384 * tree-vect-slp.c: Ditto.
9385 * tree-vect-patterns.c: Ditto.
9386 * tree-vect-loop-manip.c: Ditto.
9387 * opts.c (vect_set_verbosity_level): Remove.
9388 (common_handle_option): Handle -fopt-info flag. Deprecate
9389 -ftree-vectorizer-verbose.
9390 * tree-parloops.c (gather_scalar_reductions): Remove reference to
9392 * flag-types.h: Remove vect_verbosity_levels.
9393 * common.opt: Add -fopt-info. Deprecate -ftree-vectorizer-verbose.
9394 * opts-global.c (dump_remap_tree_vectorizer_verbose): New function.
9395 (handle_common_deferred_options): Handle -fopt-info and
9396 -ftree-vectorizer-verbose.
9397 * Makefile.in: Add dumpfile.o.
9398 (tree-dump.o): Update dependencies.
9399 (tree-vect-loop.o): Ditto.
9400 (tree-vect-loop-manip.o): Ditto.
9401 (tree-vect-slp.o): Ditto.
9402 (tree-vect-stmts.o): Ditto.
9403 (tree-vectorizer.o): Ditto.
9405 * passes.c (finish_optimization_passes): Instead of using
9406 dump_begin/dump_end, use dump_start/dump_finish. Do not use dump_file.
9407 (pass_init_dump_file): Ditto.
9409 2012-09-30 Joern Rennecke <joern.rennecke@embecosm.com>
9411 PR rtl-optimization/38449:
9412 * hooks.c (hook_bool_const_rtx_const_rtx_true): New function.
9413 * hooks.h (hook_bool_const_rtx_const_rtx_true): Declare.
9414 * target.def: Merge in definitions and documentation for
9415 TARGET_CAN_FOLLOW_JUMP.
9416 * doc/tm.texi.in: Add documentation locations for the above.
9417 * doc/tm.texi: Regenerate.
9418 * reorg.c (follow_jumps): New parameters jump and crossing.
9419 Changed all callers.
9421 2012-09-30 Eric Botcazou <ebotcazou@adacore.com>
9423 * reorg.c (relax_delay_slots): Use delay_insn consistently.
9425 * config/sparc/sparc.c (gen_stack_pointer_dec): Delete.
9426 (sparc_expand_epilogue): Use gen_stack_pointer_inc and adjust.
9427 (sparc_flat_expand_epilogue): Likewise.
9428 (emit_and_preserve): Likewise.
9429 (sparc_fold_builtin): Fix thinko in latest change.
9431 2012-09-30 Andreas Schwab <schwab@linux-m68k.org>
9433 * config/m68k/m68k.md: Add names to bitfield insert and extract
9435 (*insv_8_16_reg): Remove constraints and conditions that assume
9436 that operand 0 could be a MEM.
9437 (*extzv_8_16_reg, *extv_8_16_reg): Likewise, for operand 1.
9439 2012-09-30 Jan Hubicka <jh@suse.cz>
9441 * cfgloop.c (scale_loop_profile): Move to...
9442 * cfgloopmanip.c (scale_loop_profile): .. here; use
9443 scale_loop_frequencies.
9444 (loopify): Use RDIV.
9446 2012-09-28 Jan Hubicka <jh@suse.cz>
9448 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Update profile.
9450 2012-09-28 Jan Hubicka <jh@suse.cz>
9452 * function.c (dup_block_and_redirect): Update profile.
9454 2012-09-29 Andreas Tobler <andreast@fgznet.ch>
9456 * config.gcc: Replace 'host' with 'target' when configuring for
9457 powerpc64*-*-freebsd.
9459 2012-09-29 Marc Glisse <marc.glisse@inria.fr>
9461 * tree.c (truth_type_for): New function.
9462 * tree.h (truth_type_for): Declare.
9463 * gimple-fold.c (and_comparisons_1): Call it.
9464 (or_comparisons_1): Likewise.
9465 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
9466 boolean_type_node for vectors.
9468 2012-09-28 Jan Hubicka <jh@suse.cz>
9470 * basic-block.h (RDIV): Define.
9471 (EDGE_FREQUENCY): Simplify.
9472 (check_probability, combine_probabilities, apply_probability,
9473 inverse_probability): New.
9474 * cfgloop.c (scale_loop_profile): New function.
9475 * cfgloop.h (scale_loop_profile): Declare.
9476 (slpeel_add_loop_guard): Add probability parameter.
9477 (set_prologue_iterations): Add probability parameter.
9478 (slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters;
9479 update probabilities correctly.
9480 (vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New.
9482 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
9485 * sched-deps.c (parse_add_or_inc): Remove MINUS handling. Take
9486 STACK_GROWS_DOWNWARD into account.
9488 2012-09-28 Jakub Jelinek <jakub@redhat.com>
9491 * config/i386/predicates.md (nonimmediate_or_const_vector_operand):
9493 * config/i386/i386.c (ix86_expand_vector_logical_operator): New
9495 * config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New
9497 * config/i386/sse.md (<code><mode>3 VI logic): Use it.
9499 PR tree-optimization/54713
9500 * fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR
9501 has vector elements.
9502 (fold_ternary_loc) <case BIT_FIELD_REF>: Likewise.
9503 * tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts
9504 indexes. Use BIT_FIELD_REF if CONSTRUCTOR has vector elements.
9505 (lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes.
9507 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
9509 * config/avr/avr.md (adjust_len): Add lpm.
9510 (reload_in<mode>): Use avr_out_lpm for output. Use "lpm" for
9512 * config/avr/avr-protos.h (avr_out_lpm): New prototype.
9513 * config/avr/avr.c (avr_out_lpm): Make global.
9514 (adjust_insn_length): Handle ADJUST_LEN_LPM.
9516 2012-09-28 Richard Guenther <rguenther@suse.de>
9519 * lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global.
9520 (lto_output_tree_ref): Handle references to them.
9521 (output_function): Do not output function arguments again.
9522 * lto-streamer-in.c (input_function): Do not input arguments
9523 again, nor overwrite them.
9525 2012-09-28 Richard Guenther <rguenther@suse.de>
9527 * cgraph.h (symtab_node_base): Re-order and pack fields.
9529 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
9531 * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
9533 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
9535 PR rtl-optimization/52543
9536 * config/avr/avr.c (avr_mode_dependent_address_p): Return true for
9537 all non-generic address spaces.
9538 (TARGET_SECONDARY_RELOAD): New hook define to...
9539 (avr_secondary_reload): ...this new static function.
9540 * config/avr/avr.md (reload_in<mode>): New insns.
9542 Undo r185605 (mostly):
9543 * config/avr/avr-protos.h (avr_load_lpm): Remove.
9544 * config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash
9546 (avr_out_lpm): Also handle loads > 1 byte.
9547 (avr_load_lpm): Remove.
9548 (avr_find_unused_d_reg): New static function.
9549 (avr_out_lpm_no_lpmx): New static function.
9550 (adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM.
9551 * config/avr/avr.md (unspec): Remove UNSPEC_LPM.
9552 (load_<mode>_libgcc): Use MEM instead of UNSPEC_LPM.
9553 (load_<mode>, load_<mode>_clobber): Remove.
9554 (mov<mode>): For multi-byte move from non-generic
9555 16-bit address spaces: Expand to *mov<mode> again.
9556 (load<mode>_libgcc): New expander.
9557 (split-lpmx): Remove split.
9559 2012-09-27 Dehao Chen <dehao@google.com>
9561 * tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION.
9562 (extern void protected_set_expr_location): Likewise.
9563 (function_args_iter_next): Likewise.
9564 (inlined_function_outer_scope_p): Likewise.
9565 * input.h (IS_UNKNOWN_LOCATION): Likewise.
9566 * fold-const.c (expr_location_or): Likewise.
9567 * lto-cgraph.c (output_node_opt_summary): Likewise.
9568 * dwarf2out.c (add_src_coords_attributes): Likewise.
9569 * tree-eh.c (lower_try_finally_dup_block): Likewise.
9570 * profile.c (branch_prob):
9571 * cfgexpand.c (expand_gimple_cond): Likewise.
9572 (expand_gimple_basic_block): Likewise.
9573 (construct_exit_block): Likewise.
9574 (gimple_expand_cfg): Likewise.
9575 * cfgcleanup.c (try_forward_edges): Likewise.
9576 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9577 (dump_scope_block): Likewise.
9578 * ipa-prop.c (ipa_write_jump_function): Likewise.
9579 * rtl.h (extern void rtl_check_failed_flag): Likewise.
9580 * gimple.h (gimple_set_location): Likewise.
9581 (gimple_has_location): Likewise.
9582 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
9583 (force_nonfallthru_and_redirect): Likewise.
9584 (fixup_reorder_chain): Likewise.
9585 (cfg_layout_merge_blocks): Likewise.
9587 2012-09-27 Meador Inge <meadori@codesourcery.com>
9589 * gcc-ar.c (main): Handle the returning of the sub-process error
9592 2012-09-27 Ulrich Weigand <ulrich.weigand@linaro.org>
9594 * lower-subreg.c (enum classify_move_insn): Rename
9595 SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE.
9596 (find_decomposable_subregs): Update.
9597 (decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter.
9598 Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE
9599 if that parameter is true.
9600 (rest_of_handle_lower_subreg): Call decompose_multiword_subregs
9601 with DECOMPOSE_COPIES false.
9602 (rest_of_handle_lower_subreg2): Call decompose_multiword_subregs
9603 with DECOMPOSE_COPIES true.
9605 2012-09-27 Marek Polacek <polacek@redhat.com>
9607 * doc/gcov.texi (Gcov Data Files): Fix a typo.
9609 2012-09-27 Jakub Jelinek <jakub@redhat.com>
9612 * simplify-rtx.c (simplify_binary_operation_1): Perform
9613 (x - (x & y)) -> (x & ~y) optimization only for integral modes.
9615 2012-09-27 Marc Glisse <marc.glisse@inria.fr>
9619 * doc/extend.texi (Vector Extensions): C++ improvements.
9620 Power of 2 size requirement.
9622 2012-09-27 Richard Guenther <rguenther@suse.de>
9625 * lto-symtab.c (resolution_guessed_p): Remove.
9626 (set_resolution_guessed): Likewise.
9627 (lto_symtab_register_decl): Remove assert.
9628 (lto_symtab_resolve_symbols): Do not alter symbol resolutions
9629 and return the prevailing symbol, checking for multiple prevailing
9631 (lto_symtab_merge_decls_1): Use the result from
9632 lto_symtab_resolve_symbols. Do not alter symbol resolutions.
9634 2012-09-26 Steve Ellcey <sellcey@mips.com>
9637 * doc/install.texi: Fix example.
9639 2012-09-26 Dehao Chen <dehao@google.com>
9641 * tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void)
9642 for function parameter.
9643 (remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL.
9645 2012-09-26 Oleg Endo <olegendo@gcc.gnu.org>
9647 * doc/extend.texi (bswap Builtins): Change signed types to unsigned
9650 2012-09-26 Ian Lance Taylor <iant@google.com>
9652 * diagnostic.c (bt_callback): Cast pc when calling fprintf.
9654 2012-09-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9656 PR tree-optimization/54674
9657 * gimple-ssa-strength-reduction.c (analyze_increments): Don't
9658 introduce a multiplication with a pointer operand.
9660 2012-09-26 Georg-Johann Lay <avr@gjlay.de>
9663 * doc/tm.texi.in (TARGET_MODE_DEPENDENT_ADDRESS_P): Document new
9664 parameter addrspace.
9665 * doc/tm.texi: Regenerate.
9666 * target.def (mode_dependent_address_p): Add addr_space_t parameter.
9667 * targhooks.h (default_mode_dependent_address_p): Ditto.
9668 * targhooks.c (default_mode_dependent_address_p): Ditto.
9669 * expr.c (convert_move): Pass address space to
9670 mode_dependent_address_p.
9671 * combine.c (combine_simplify_rtx): Ditto.
9672 (make_extraction): Ditto.
9673 (simplify_shift_const_1): Ditto.
9674 (gen_lowpart_for_combine): Ditto.
9675 * lower-subreg.c (simple_move_operand): Ditto.
9676 * recog.c (simplify_while_replacing): Ditto.
9677 (offsettable_address_addr_space_p): Ditto.
9678 (mode_dependent_address_p): Ditto.
9679 * simplify-rtx.c (simplify_unary_operation_1): Ditto.
9680 (simplify_subreg): Ditto.
9681 * config/m68k/m68k.md: Ditto.
9682 * config/vax/vax.md: Ditto.
9683 * config/vax/constraints.md (Q): Ditto.
9684 * config/vax/predicates.md (indexed_memory_operand): Ditto.
9685 * config/alpha/alpha.c (alpha_mode_dependent_address_p): Add
9686 unused addr_space_t parameter.
9687 * config/avr/avr.c (avr_mode_dependent_address_p): Ditto.
9688 * config/h8300/h8300.c (h8300_mode_dependent_address_p): Ditto.
9689 * config/m32r/m32r.c (m32r_mode_dependent_address_p): Ditto.
9690 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): Ditto.
9691 * config/rx/rx.c (rx_mode_dependent_address_p): Ditto.
9692 * config/sparc/sparc.c (sparc_mode_dependent_address_p): Ditto.
9693 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9695 * config/vax/vax.c (vax_mode_dependent_address_p): Ditto.
9696 * config/xtensa/xtensa.c (xtensa_mode_dependent_address_p): Ditto.
9698 2012-09-26 Christophe Lyon <christophe.lyon@linaro.org>
9700 * tree-ssa-math-opts.c (bswap_stats): Add found_16bit field.
9701 (execute_optimize_bswap): Add support for builtin_bswap16.
9703 2012-09-26 Richard Guenther <rguenther@suse.de>
9705 * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.
9707 2012-09-26 Ian Lance Taylor <iant@google.com>
9709 * diagnostic.c: Include "demangle.h" and "backtrace.h".
9710 (bt_stop): New static array.
9711 (bt_callback, bt_err_callback): New static functions.
9712 (diagnostic_action_after_output): Call backtrace_full for DK_ICE.
9713 * Makefile.in (BACKTRACE): New variable.
9714 (BACKTRACEINC, LIBBACKTRACE): New variables.
9715 (BACKTRACE_H): New variable.
9716 (LIBDEPS, LIBS): Add $(LIBBACKTRACE).
9717 (INCLUDES): Add $(BACKTRACEINC).
9718 (diagnostic.o): Depend upon $(DEMANGLE_H) and $(BACKTRACE_H).
9720 2012-09-25 Segher Boessenkool <segher@kernel.crashing.org>
9724 * config/rs6000/rs6000.md (ne0si): Remove unnecessary
9725 earlyclobber. Merge with...
9728 (plus_ne0si): Merge with...
9729 (plus_ne0di): ... to...
9730 (plus_ne0_<mode>): New.
9731 (compare_plus_ne0si): Merge with...
9732 (compare_plus_ne0di)... to...
9733 (compare_plus_ne0_<mode>): New.
9734 (compare_plus_ne0_<mode>_1): New.
9735 (plus_ne0si_compare): Merge with...
9736 (plus_ne0di_compare)... to...
9737 (plus_ne0_<mode>_compare): New.
9739 2012-09-25 Oleg Endo <olegendo@gcc.gnu.org>
9742 * config/sh/constraints.md (Jhb): New constraint.
9743 * config/sh/predicates.md (negt_reg_shl31_operand): New predicate.
9744 * config/sh/sh.md (rotrsi3): New expander.
9745 (rotrsi3_1, *rotrsi3_1, *rotlsi3_1): New insns.
9746 (rotlsi3, rotlhi3): Use const_int_operand predicate instead of
9747 immediate_operand and remove CONST_INT_P checks in expansion code.
9748 (*rotcr): Cleanup variable usage. Handle preceding nott insn. Add
9749 split with swapped operands.
9750 (*rotcr_neg_t, *movt_msb, *negt_msb): New insns and splits.
9752 2012-09-25 Aldy Hernandez <aldyh@redhat.com>
9755 * trans-mem.c (expand_call_tm): Handle late built built-ins.
9757 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
9760 * config/avr/avr-log.c (avr_double_int_pop_digit): Rewrite using
9761 double_int::udivmod.
9763 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
9765 * config/avr/avr.c (avr_set_current_function): Check cfun->machine
9768 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
9771 * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS
9772 for sources compiled with COMPILER.
9774 2012-09-25 Richard Guenther <rguenther@suse.de>
9777 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge
9778 cgraph nodes for builtins.
9780 2012-09-25 Jakub Jelinek <jakub@redhat.com>
9782 PR tree-optimization/54676
9783 * tree-vrp.c (set_and_canonicalize_value_range): Handle
9784 one bit precision properly.
9787 * configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og properly.
9788 * configure: Regenerated.
9790 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
9793 * config/avr/avr.c (avr_map_decompose): Use double_int::from_uhwi
9794 instead of uhwi_to_double_int.
9796 2012-09-25 Richard Guenther <rguenther@suse.de>
9798 * lto-symtab.c (lto_symtab_merge_decls_1): Properly merge
9801 2012-09-25 Richard Guenther <rguenther@suse.de>
9803 PR tree-optimization/53663
9804 * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
9805 native encode/interpret translation on VN_WALKREWRITE.
9807 2012-09-24 Dehao Chen <dehao@google.com>
9809 * tree-cfg.c (move_stmt_op): Reset the expr block only when necessary.
9810 (move_block_to_fn): Reset the edge's goto block even
9811 when the goto locus is unknown.
9813 2012-09-24 Lawrence Crowl <crowl@google.com>
9815 * double-int.h (double_int::from_pair): New.
9816 (double_int::wide_mul_with_sign): New.
9817 (double_int::sub_with_overflow): New.
9818 (double_int::neg_with_overflow): New.
9819 (double_int::divmod_with_overflow): New.
9820 (shwi_to_double_int): Remove.
9821 (uhwi_to_double_int): Remove.
9822 (double_int_to_shwi): Remove.
9823 (double_int_to_uhwi): Remove.
9824 (double_int_fits_in_uhwi_p): Remove.
9825 (double_int_fits_in_shwi_p): Remove.
9826 (double_int_fits_in_hwi_p): Remove.
9827 (double_int_mul): Remove.
9828 (double_int_mul_with_sign): Remove.
9829 (double_int_add): Remove.
9830 (double_int_sub): Remove.
9831 (double_int_neg): Remove.
9832 (double_int_div): Remove.
9833 (double_int_sdiv): Remove.
9834 (double_int_udiv): Remove.
9835 (double_int_mod): Remove.
9836 (double_int_smod): Remove.
9837 (double_int_umod): Remove.
9838 (double_int_divmod): Remove.
9839 (double_int_sdivmod): Remove.
9840 (double_int_udivmod): Remove.
9841 (double_int_multiple_of): Remove.
9842 (double_int_setbit): Remove.
9843 (double_int_ctz): Remove.
9844 (double_int_not): Remove.
9845 (double_int_ior): Remove.
9846 (double_int_and): Remove.
9847 (double_int_and_not): Remove.
9848 (double_int_xor): Remove.
9849 (double_int_lshift): Remove.
9850 (double_int_rshift): Remove.
9851 (double_int_lrotate): Remove.
9852 (double_int_rrotate): Remove.
9853 (double_int_negative_p): Remove.
9854 (double_int_cmp): Remove.
9855 (double_int_scmp): Remove.
9856 (double_int_ucmp): Remove.
9857 (double_int_max): Remove.
9858 (double_int_smax): Remove.
9859 (double_int_umax): Remove.
9860 (double_int_min): Remove.
9861 (double_int_smin): Remove.
9862 (double_int_umin): Remove.
9863 (double_int_ext): Remove.
9864 (double_int_sext): Remove.
9865 (double_int_zext): Remove.
9866 (double_int_mask): Remove.
9867 (double_int_max_value): Remove.
9868 (double_int_min_value): Remove.
9869 (double_int_zero_p): Remove.
9870 (double_int_one_p): Remove.
9871 (double_int_minus_one_p): Remove.
9872 (double_int_equal_p): Remove.
9873 (double_int_popcount): Remove.
9874 (extern add_double_with_sign): Remove.
9875 (#define add_double): Remove.
9876 (extern neg_double): Remove.
9877 (extern mul_double_with_sign): Remove.
9878 (extern mul_double_wide_with_sign): Remove.
9879 (#define mul_double): Remove.
9880 (extern lshift_double): Remove.
9881 (extern div_and_round_double): Remove.
9882 * double-int.c (add_double_with_sign): Make static.
9883 (#defined add_double): Localized from header.
9884 (neg_double): Make static.
9885 (mul_double_with_sign): Make static.
9886 (mul_double_wide_with_sign): Make static.
9887 (#defined mul_double): Localized from header.
9888 (lshift_double): Make static.
9889 (div_and_round_double): Make static.
9890 (double_int::wide_mul_with_sign): New.
9891 (double_int::sub_with_overflow): New.
9892 (double_int::neg_with_overflow): New.
9893 (double_int::divmod_with_overflow): New.
9894 * emit-rtl.c (init_emit_once): Change to new double_int API.
9895 * explow.c (plus_constant): Likewise.
9896 * expmed.c (choose_multiplier): Likewise.
9897 * fold-const.c (#define OVERFLOW_SUM_SIGN): Remove.
9898 (int_const_binop_1): Change to new double_int API.
9899 (fold_div_compare): Likewise.
9900 (maybe_canonicalize_comparison): Likewise.
9901 (pointer_may_wrap_p): Likewise.
9902 (fold_negate_const): Likewise.
9903 (fold_abs_const): Likewise.
9904 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9905 (simplify_const_binary_operation): Likewise.
9906 * tree-chrec.c (tree_fold_binomial): Likewise.
9907 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9908 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
9909 * config/avr/avr.c (avr_double_int_push_digit): Likewise.
9910 (avr_map): Likewise.
9911 (avr_map_decompose): Likewise.
9912 (avr_out_insert_bits): Likewise.
9914 2012-09-24 Janis Johnson <janisjo@codesourcery.com>
9916 * doc/sourcebuild.texi (Selectors): Document the use of target
9917 and xfail used together.
9919 2012-09-24 Richard Guenther <rguenther@suse.de>
9922 * tree-ssa-live.c (clear_unused_block_pointer_1): Do not
9923 handle DECL_DEBUG_EXPR_IS_FROM here...
9924 (clear_unused_block_pointer): ... but here when walking all
9927 2012-09-24 Richard Guenther <rguenther@suse.de>
9929 PR tree-optimization/54684
9930 * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts.
9932 2012-09-24 Marc Glisse <marc.glisse@inria.fr>
9934 * tree-ssa-forwprop.c: Include tree-ssa-propagate.h.
9935 (simplify_bitfield_ref): Handle constructors.
9936 * Makefile.in (tree-ssa-forwprop.o): Depend on tree-ssa-propagate.h.
9938 2012-09-24 Richard Guenther <rguenther@suse.de>
9940 * tree-ssa-pre.c (bitmap_find_leader, create_expression_by_pieces,
9941 find_or_generate_expression): Remove dominating stmt argument.
9942 (find_leader_in_sets, phi_translate_1, bitmap_find_leader,
9943 create_component_ref_by_pieces_1, create_component_ref_by_pieces,
9944 do_regular_insertion, do_partial_partial_insertion): Adjust.
9945 (compute_avail): Do not set uids.
9947 2012-09-24 Eric Botcazou <ebotcazou@adacore.com>
9949 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
9950 TYPE_NONALIASED_COMPONENT flag.
9951 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
9952 TYPE_NONALIASED_COMPONENT flag.
9954 2012-09-24 Jia Liu <proljc@gmail.com>
9956 * doc/lto.texi: Separate sections.
9957 * doc/plugins.texi: Likewise.
9959 2012-09-24 Richard Guenther <rguenther@suse.de>
9962 * gimple.c (gimple_copy): Properly mark the copy modified
9963 if SSA operands are present.
9965 2012-09-23 Eric Botcazou <ebotcazou@adacore.com>
9967 PR tree-optimization/54669
9968 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke
9969 maybe_clean_or_replace_eh_stmt on the modified use statements.
9971 2012-09-23 Marc Glisse <marc.glisse@inria.fr>
9973 * expr.c (do_store_flag): Remove duplicated code.
9975 2012-09-22 Segher Boessenkool <segher@kernel.crashing.org>
9977 * config/rs6000/predicates.md (altivec_register_operand,
9978 vsx_register_operand, vfloat_operand, vint_operand,
9979 vlogical_operand, gpc_reg_operand, cc_reg_operand,
9980 cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand):
9981 If op is a SUBREG, consider its SUBREG_REG instead.
9983 2012-09-22 Uros Bizjak <ubizjak@gmail.com>
9985 * optabs.c (prepare_cmp_insn): Expand comparison of the result
9986 of memcmp through generic comparison expansion code.
9988 2012-09-21 Anthony Green <green@moxielogic.com>
9990 * config/moxie/moxie.opt: Add -mno-crt0 option.
9991 * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option.
9992 * doc/invoke.texi (Option Summary): Document -mno-crt0 option.
9994 2012-09-21 Jack Howarth <howarth@bromo.med.uc.edu>
9997 * Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency.
9999 2012-09-21 Dehao Chen <dehao@google.com>
10002 * tree-eh.c (lower_try_finally_dup_block): Set the correct block for
10003 stmts in the duplicated EH block.
10005 2012-09-21 Richard Guenther <rguenther@suse.de>
10007 PR tree-optimization/54647
10008 * tree-ssa-pre.c (compute_avail): Do not put COND_EXPR
10009 or VEC_COND_EXPR into EXP_GEN again.
10011 2012-09-21 Jakub Jelinek <jakub@redhat.com>
10013 PR tree-optimization/54629
10014 * tree-loop-distribution.c (classify_partition): Free loop nest only
10015 after freeing ddr. Free ddr and loop nest also if successful.
10017 2012-09-21 Matthias Klose <doko@ubuntu.com>
10019 * config/arm/arm.c (arm_mangle_type): Don't warn anymore that
10020 4.4 has changed the `va_list' mangling.
10022 2012-09-21 Eric Botcazou <ebotcazou@adacore.com>
10024 PR rtl-optimization/54290
10025 PR rtl-optimization/54644
10026 * reload1.c (choose_reload_regs): Fix thinko in previous change.
10028 2012-09-20 Segher Boessenkool <segher@kernel.crashing.org>
10030 * config/rs6000/rs6000.md (define_split for plus_eqsi):
10031 Fix output pattern.
10033 2012-09-20 Eric Botcazou <ebotcazou@adacore.com>
10035 * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair.
10037 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
10040 * haifa-sched.c (schedule_block): Skip find_modifiable_mems if using
10041 SCHED_PRESSURE_MODEL.
10043 2012-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
10045 * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.
10047 2012-09-20 Marek Polacek <polacek@redhat.com>
10049 * tree-ssa-operands.c (get_expr_operands): Merge identical cases.
10051 2012-09-20 Marek Polacek <polacek@redhat.com>
10053 * tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's
10055 (create_edge_and_update_destination_phis): Likewise.
10057 2012-09-20 Martin Jambor <mjambor@suse.cz>
10059 * function.c (push_cfun): Check old current_function_decl matches
10060 old cfun, set new current_function_decl to the decl of the new cfun.
10061 (push_struct_function): Likewise.
10062 (pop_cfun): Likewise.
10063 (allocate_struct_function): Move call to
10064 invoke_set_current_function_hook to the end of the function.
10065 * cfgexpand.c (estimated_stack_frame_size): Do not set and restore
10066 current_function_decl.
10067 * cgraph.c (cgraph_release_function_body): Likewise.
10068 * cgraphunit.c (cgraph_process_new_functions): Likewise.
10069 (cgraph_add_new_function): Likewise.
10070 (cgraph_analyze_function): Likewise.
10071 (assemble_thunk): Set cfun to NULL at the end.
10072 (expand_function): Move call to set_cfun downwards.
10073 * gimple-low.c (record_vars_into): Only check current_function_decl
10074 before possibly doing push_cfun.
10075 * gimplify.c (gimplify_function_tree): Do not set and restore
10076 current_function_decl.
10077 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
10078 (inline_analyze_function): Likewise.
10079 * ipa-prop.c (ipa_analyze_node): Likewise.
10080 * ipa-pure-const.c (analyze_function): Likewise.
10081 * lto-streamer-in.c (lto_input_function_body): Do not set
10082 current_function_decl.
10083 * lto-streamer-out.c (output_function): Do not set and restore
10084 current_function_decl.
10085 * omp-low.c (finalize_task_copyfn): Likewise.
10086 (expand_omp_taskreg): Likewise.
10087 (create_task_copyfn): Likewise, move push_cfun up quite a bit.
10088 * passes.c (dump_passes): Do not set and restore current_function_decl.
10089 (do_per_function): Likewise.
10090 (do_per_function_toporder): Likewise.
10091 * trans-mem.c (ipa_tm_scan_irr_function): Likewise.
10092 (ipa_tm_transform_transaction): Likewise.
10093 (ipa_tm_transform_clone): Likewise.
10094 (ipa_tm_execute): Likewise.
10095 * tree-emutls.c (lower_emutls_function_body): Likewise.
10096 * tree-inline.c (initialize_cfun): Do not call pop_cfun.
10097 (tree_function_versioning): Do not call push_cfun, do not set and
10098 restore current_function_decl. Remove assert checking consistency of
10099 cfun and current_function_decl.
10100 * tree-profile.c (tree_profiling): Do not set and restore
10101 current_function_decl.
10102 * tree-sra.c (convert_callers_for_node): Do not set
10103 current_function_decl.
10104 (convert_callers): Do not restore current_function_decl.
10105 (modify_function): Do not set current_function_decl.
10106 * tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore
10107 current_function_decl.
10109 2012-09-20 Diego Novillo <dnovillo@google.com>
10112 * config/vxworks.c (vxworks_emutls_var_init): Update for new
10113 VEC_quick_push interface.
10115 2012-09-20 Richard Guenther <rguenther@suse.de>
10117 PR tree-optimization/54634
10118 * tree-data-ref.c (get_references_in_stmt): For now give
10119 up for pure functions.
10121 2012-09-20 Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
10123 * doc/lto.texi: Correct typo.
10125 2012-09-19 Dehao Chen <dehao@google.com>
10127 * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR.
10128 * config/spu/spu.c (emit_nop_for_insn): Likewise.
10129 (pad_bb): Likewise.
10130 (spu_emit_branch_hint): Likewise.
10131 (insert_hbrp_for_ilb_runout): Likewise.
10132 * config/mep/mep.c (mep_make_bundle): Likewise.
10133 (mep_bundle_insns): Likewise.
10134 * config/sh/sh.c (gen_block_redirect): Likewise.
10135 * config/c6x/c6x.c (gen_one_bundle): Likewise.
10136 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise.
10137 * config/picochip/picochip.c (picochip_reorg): Likewise.
10138 * config/arm/arm.c (require_pic_register): Likewise.
10139 * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise.
10140 * config/bfin/bfin.c (gen_one_bundle): Likewise.
10142 2012-09-19 Mark Kettenis <kettenis@openbsd.org>
10144 * config.gcc (hppa*-*-openbsd*): New target.
10145 * config/pa/pa-openbsd.h: New file.
10146 * config/pa/pa32-openbsd.h: New file.
10147 * config/host-openbsd.c: Update copyright year.
10148 (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa.
10150 2012-09-19 Martin Jambor <mjambor@suse.cz>
10152 * ipa-prop.c (prune_expression_for_jf): New function.
10153 (ipa_set_jf_constant): Use it.
10154 (ipa_set_jf_arith_pass_through): Likewise.
10155 (determine_known_aggregate_parts): Likewise.
10157 2012-09-19 Steve Ellcey <sellcey@mips.com>
10159 * config.gcc (mips*-mti-elf*): New target.
10160 * config/mips/mti-elf.h: New file.
10161 * config/mips/t-mti-elf: New file.
10163 2012-09-19 Dehao Chen <dehao@google.com>
10165 * toplev.c (general_init): Init block_locations.
10166 * tree.c (tree_set_block): New.
10167 (tree_block): Change to use LOCATION_BLOCK.
10168 * tree.h (TREE_SET_BLOCK): New.
10169 * final.c (reemit_insn_block_notes): Change to use LOCATION_BLOCK.
10170 (final_start_function): Likewise.
10171 * input.c (expand_location_1): Likewise.
10172 * input.h (LOCATION_LOCUS): New.
10173 (LOCATION_BLOCK): New.
10174 (IS_UNKNOWN_LOCATION): New.
10175 * fold-const.c (expr_location_or): Change to use new location.
10176 * reorg.c (emit_delay_sequence): Likewise.
10177 (try_merge_delay_insns): Likewise.
10178 * modulo-sched.c (dump_insn_location): Likewise.
10179 * lto-streamer-out.c (lto_output_location_bitpack): Likewise.
10180 * lto-cgraph.c (output_node_opt_summary): Likewise.
10181 * jump.c (rtx_renumbered_equal_p): Likewise.
10182 * ifcvt.c (noce_try_move): Likewise.
10183 (noce_try_store_flag): Likewise.
10184 (noce_try_store_flag_constants): Likewise.
10185 (noce_try_addcc): Likewise.
10186 (noce_try_store_flag_mask): Likewise.
10187 (noce_try_cmove): Likewise.
10188 (noce_try_cmove_arith): Likewise.
10189 (noce_try_minmax): Likewise.
10190 (noce_try_abs): Likewise.
10191 (noce_try_sign_mask): Likewise.
10192 (noce_try_bitop): Likewise.
10193 (noce_process_if_block): Likewise.
10194 (cond_move_process_if_block): Likewise.
10195 (find_cond_trap): Likewise.
10196 * ipa-prop.c (ipa_set_jf_constant): Likewise.
10197 (ipa_write_jump_function): Likewise.
10198 * dwarf2out.c (add_src_coords_attributes): Likewise.
10199 * expr.c (expand_expr_real): Likewise.
10200 * tree-parloops.c (create_loop_fn): Likewise.
10201 * recog.c (peep2_attempt): Likewise.
10202 * function.c (free_after_compilation): Likewise.
10203 (expand_function_end): Likewise.
10204 (set_insn_locations): Likewise.
10205 (thread_prologue_and_epilogue_insns): Likewise.
10206 * print-rtl.c (print_rtx): Likewise.
10207 * profile.c (branch_prob): Likewise.
10208 * trans-mem.c (ipa_tm_scan_irr_block): Likewise.
10209 * gimplify.c (gimplify_call_expr): Likewise.
10210 * except.c (duplicate_eh_regions_1): Likewise.
10211 * emit-rtl.c (try_split): Likewise.
10212 (make_insn_raw): Likewise.
10213 (make_debug_insn_raw): Likewise.
10214 (make_jump_insn_raw): Likewise.
10215 (make_call_insn_raw): Likewise.
10216 (emit_pattern_after_setloc): Likewise.
10217 (emit_pattern_after): Likewise.
10218 (emit_debug_insn_after): Likewise.
10219 (emit_pattern_before): Likewise.
10220 (emit_insn_before_setloc): Likewise.
10221 (emit_jump_insn_before): Likewise.
10222 (emit_call_insn_before_setloc): Likewise.
10223 (emit_call_insn_before): Likeise.
10224 (emit_debug_insn_before_setloc): Likewise.
10225 (emit_copy_of_insn_after): Likewise.
10226 (insn_locators_alloc): Remove.
10227 (insn_locators_finalize): Remove.
10228 (insn_locators_free): Remove.
10229 (set_curr_insn_source_location): Remove.
10230 (get_curr_insn_source_location): Remove.
10231 (set_curr_insn_block): Remove.
10232 (get_curr_insn_block): Remove.
10233 (locator_scope): Remove.
10234 (insn_scope): Change to use new location.
10235 (locator_location): Remove.
10236 (insn_line): Change to use new location.
10237 (locator_file): Remove.
10238 (insn_file): Change to use new location.
10239 (locator_eq): Remove.
10240 (insn_locations_init): New.
10241 (insn_locations_finalize): New.
10242 (set_curr_insn_location): New.
10243 (curr_insn_location): New.
10244 * cfgexpand.c (gimple_assign_rhs_to_tree): Change to use new location.
10245 (expand_gimple_cond): Likewise.
10246 (expand_call_stmt): Likewise.
10247 (expand_gimple_stmt_1): Likewise.
10248 (expand_gimple_basic_block): Likewise.
10249 (construct_exit_block): Likewise.
10250 (gimple_expand_cfg): Likewise.
10251 * cfgcleanup.c (try_forward_edges): Likewise.
10252 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10253 (dump_scope_block): Likewise.
10254 (remove_unused_locals): Likewise.
10255 * rtl.c (rtx_equal_p_cb): Likewise.
10256 (rtx_equal_p): Likewise.
10257 * rtl.h (XUINT): New.
10258 (INSN_LOCATOR): Remove.
10259 (CURR_INSN_LOCATION): Remove.
10260 (INSN_LOCATION): New.
10261 (INSN_HAS_LOCATION): New.
10262 * tree-inline.c (remap_gimple_op_r): Change to use new location.
10263 (copy_tree_body_r): Likewise.
10264 (copy_phis_for_bb): Likewise.
10265 (expand_call_inline): Likewise.
10266 * tree-streamer-in.c (lto_input_ts_exp_tree_pointers): Likewise.
10267 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
10268 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10269 * combine.c (try_combine): Likewise.
10270 * tree-outof-ssa.c (set_location_for_edge): Likewise.
10271 (insert_partition_copy_on_edge): Likewise.
10272 (insert_value_copy_on_edge): Likewise.
10273 (insert_rtx_to_part_on_edge): Likewise.
10274 (insert_part_to_rtx_on_edge): Likewise.
10275 * basic-block.h (edge_def): Remove field.
10276 * gimple.h (gimple_statement_base): Remove field.
10277 (gimple_bb): Change to use new location.
10278 (gimple_set_block): Likewise.
10279 (gimple_has_location): Likewise.
10280 * tree-cfg.c (make_cond_expr_edges): Likewise.
10281 (make_goto_expr_edges): Likewise.
10282 (gimple_can_merge_blocks_p): Likewise.
10283 (move_stmt_op): Likewise.
10284 (move_block_to_fn): Likewise.
10285 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
10286 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10287 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10288 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10289 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10290 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10291 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10292 * config/score/score.c (score_output_mi_thunk): Likewise.
10293 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10294 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10295 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
10296 (unique_locus_on_edge_between_p): Likewise.
10297 (emit_nop_for_unique_locus_between): Likewise.
10298 (force_nonfallthru_and_redirect): Likewise.
10299 (fixup_reorder_chain): Likewise.
10300 (cfg_layout_merge_blocks): Likewise.
10301 * stmt.c (emit_case_nodes): Likewise.
10303 2012-09-19 Bernd Schmidt <bernds@codesourcery.com>
10305 * dbgcnt.def (sched_breakdep): New counter.
10306 * haifa-sched.c (update_insn_after_change): New static function,
10307 broken out of haifa_change_pattern.
10308 (haifa_change_pattern): Call it.
10309 (dep_t heap vecs): Declare.
10310 (INSN_COST): Define earlier.
10311 (next_cycle_replace_deps, next_cycle_apply): New static variables.
10312 (apply_replacement): New static function.
10313 (recompute_todo_spec): New argument FOR_BACKTRACK. All callers
10314 changed. Handle DEP_REPLACE deps.
10315 (contributes_to_priority_p): False for replaceable deps.
10316 (must_restore_pattern_p, restore_pattern): New static functions.
10317 (schedule_insn): Use them. Apply replacements for broken deps.
10318 (struct haifa_saved_data): Add new fields to keep track of
10320 (save_backtrack_point): Initialize them.
10321 (undo_replacements_for_backtrack): New static function.
10322 (restore_last_backtrack_point, free_topmost_backtrack_point):
10323 Use it and keep track of replacements.
10324 (perform_replacements_new_cycle, undo_all_replacements): New static
10326 (schedule_block): Call these two as necessary. Call
10327 find_modifiable_mems.
10328 (try_ready): Tweak the assert. Check for DEP_POSTPONED.
10329 * sched-deps.c: Include "emit-rtl.h".
10330 (init_dep_1): Initialize DEP_NONREG, DEP_MULTIPLE and DEP_REPLACE.
10331 (dep_spec_p): True for DEP_REPLACE deps.
10332 (mark_as_hard): New static variable.
10333 (update_dep): Update DEP_NONREG and DEP_MULTIPLE.
10334 (add_dependence_list): New argument hard. All callers changed. Set
10335 and clear mark_as_hard around function body.
10336 (add_dependence_list_and_free): Likewise.
10337 (haifa_note_mem_dep): Set DEP_NONREG.
10338 (haifa_note_dep): Likewise if mark_as_hard is true.
10339 (sched_analyze_insn): Switch loop with if statement testing for
10341 (struct mem_inc_info): New.
10342 (attempt_change, parse_add_or_inc, find_inc, find_mem): New static
10344 (find_modifiable_mems): New function.
10345 * sched-int.h (struct dep_replacement): New.
10346 (struct _dep): Add replace, nonreg and multiple fields. Make type and
10348 (UNKNOWN_DEP_COST): Change to match the bitfield.
10349 (DEP_NONREG, DEP_MULTIPLE, DEP_REPLACE): New macros.
10350 (DEP_POSTPONED): New macro.
10351 (DEP_CANCELLED): Renumber.
10352 (find_modifiable_mems): Declare.
10353 (enum SCHED_FLAGS): Add DONT_BREAK_DEPENDENCIES.
10354 * sched-rgn.c (init_ready_list): Set TODO_SPEC here.
10355 (new_ready): Don't set HARD_DEP, use DEP_POSTPONED.
10356 (debug_dependencies): Dump DEP_NONREG and DEP_MULTIPLE.
10357 * Makefile.in (sched-deps.o): Update dependencies.
10358 * config/c6x/c6x.c (in_hwloop): New static variable.
10359 (c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES.
10360 (hwloop_optimize): Set and clear it around preliminary scheduling pass.
10362 2012-09-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10364 * config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase
10365 and __builtin_ppc_mftb.
10366 * config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function
10367 to expand an expression that calls a built-in without arguments.
10368 (rs6000_expand_builtin): Add __builtin_ppc_get_timebase and
10369 __builtin_ppc_mftb.
10370 (rs6000_init_builtins): Likewise.
10371 * config/rs6000/rs6000.md (rs6000_get_timebase): New pattern.
10372 (rs6000_get_timebase_ppc32): New pattern.
10373 (rs6000_mftb_<mode>): New pattern.
10375 * doc/extend.texi (PowerPC Built-in Functions): New section.
10376 (PowerPC AltiVec/VSX Built-in Functions): Move some built-ins
10377 unrelated to Altivec/VSX to the new section.
10379 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
10381 * rs6000.md (mac*): Remove extra spaces.
10384 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
10387 * config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate.
10388 * config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate.
10389 Handle the case where one of the operands is T_REG.
10390 Add new pattern to handle MSB extraction.
10392 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
10395 * config/sh/sh.md (*addc): Add pattern to handle one bit left shifts.
10397 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
10399 * config/sh/sh.md (prologue, epilogue): Use braced strings.
10401 2012-09-19 Eric Botcazou <ebotcazou@adacore.com>
10403 PR rtl-optimization/54290
10404 * reload1.c (choose_reload_regs): Also take into account secondary MEMs
10405 to remove address replacements for inherited reloads.
10406 (replaced_subreg): Move around.
10408 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
10410 * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT,
10411 MASK_PPC_GFXOPT, and MASK_MFCRF.
10413 2012-09-19 Richard Guenther <rguenther@suse.de>
10415 * passes.c (init_optimization_passes): For -Og move
10416 pass_object_sizes inbetween CCP and copyprop.
10418 2012-09-19 Richard Guenther <rguenther@suse.de>
10420 * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify.
10422 2012-09-19 Jan Hubicka <jh@suse.cz>
10424 * symtab.c (insert_to_assembler_name_hash): Do not insert
10426 (unlink_from_assembler_name_hash): NULL out pointers of unlinked var.
10427 (symtab_prevail_in_asm_name_hash): New.
10428 (symtab_initialize_asm_name_hash): Break out from ...
10429 (symtab_node_for_asm): ... here.
10430 (dump_symtab_base): Dump LTO file data.
10431 (verify_symtab_base): Register vars are not in symtab.
10432 * cgraph.h (symtab_initialize_asm_name_hash,
10433 symtab_prevail_in_asm_name_hash): New functions.
10434 (symtab_real_symbol_p): New inline.
10435 * lto-symtab.c: Do not include gt-lto-symtab.h.
10436 (lto_symtab_entry_def): Remove.
10437 (lto_symtab_entry_t): Remove.
10438 (lto_symtab_identifiers): Remove.
10439 (lto_symtab_free): Remove.
10440 (lto_symtab_entry_hash): Remove.
10441 (lto_symtab_entry_eq): Remove.
10442 (lto_symtab_entry_marked_p): Remove.
10443 (lto_symtab_maybe_init_hash_table): Remove.
10444 (resolution_guessed_p, set_resolution_guessed): New functions.
10445 (lto_symtab_register_decl): Only set resolution info.
10446 (lto_symtab_get, lto_symtab_get_resolution): Remove.
10447 (lto_symtab_merge): Reorg to work across symtab; do nothing if decls
10449 (lto_symtab_resolve_replaceable_p): Reorg to work on symtab.
10450 (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can
10452 (lto_symtab_resolve_symbols): Reorg to work on symtab.
10453 (lto_symtab_merge_decls_2): Likewise.
10454 (lto_symtab_merge_decls_1): Likewise; add debug dumps.
10455 (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
10456 (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
10457 (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans
10459 (lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
10460 * lto-streaer.h (lto_symtab_free): Remove.
10461 * lto-cgraph.c (add_references): Cleanup.
10462 * varpool.c (varpool_assemble_decl): Skip hard regs.
10464 2012-09-19 Richard Guenther <rguenther@suse.de>
10467 * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add.
10469 2012-09-19 Richard Guenther <rguenther@suse.de>
10472 * common.opt (optimize_debug): New variable.
10473 (Og): New optimization level.
10474 * doc/invoke.texi (Og): Document.
10475 * opts.c (maybe_default_option): Add debug parameter.
10476 (maybe_default_options): Likewise.
10477 (default_options_optimization): Handle -Og.
10478 (common_handle_option): Likewise.
10479 * passes.c (gate_all_optimizations): Do not run with -Og.
10480 (gate_all_optimizations_g): New gate, run with -Og.
10481 (pass_all_optimizations_g): New container pass, run with -Og.
10482 (init_optimization_passes): Schedule pass_all_optimizations_g
10483 alongside pass_all_optimizations.
10485 2012-09-19 Richard Guenther <rguenther@suse.de>
10487 PR tree-optimization/54132
10488 * tree-loop-distribution.c (classify_partition): Properly
10489 check dependences for memmove.
10490 * tree-data-ref.h (compute_affine_dependence): Declare.
10491 * tree-data-ref.c (compute_affine_dependence): Export.
10493 2012-09-19 Zhenqiang Chen <zhenqiang.chen@arm.com>
10495 PR middle-end/54364
10496 * bb-reorder.c (connect_better_edge_p): New added.
10497 (find_traces_1_round): When optimizing for size, ignore edge frequency
10498 and probability, and handle all in one round.
10499 (bb_to_key): Use bb->index as key when optimizing for size.
10500 (better_edge_p): The bb with smaller index is better when optimizing
10502 (connect_traces): When optimizing for size, connect block n with
10503 block n + 1; connect trace m with trace m + 1 if falling through.
10504 (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os.
10506 2012-09-19 Bin Cheng <bin.cheng@arm.com>
10508 * fold-const.c (fold_truth_andor): Remove duplicated check on
10511 2012-09-18 Eric Botcazou <ebotcazou@adacore.com>
10513 PR middle-end/54617
10514 * expr.c (store_field): Handle a PARALLEL in more cases.
10516 2012-09-18 Segher Boessenkool <segher@kernel.crashing.org>
10518 * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete.
10519 (abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
10520 nabs_nopower): Delete.
10521 (absdi2, absdi2_internal, nabsdi2): Delete.
10522 (smindi3, smaxdi3, umindi3, umaxdi3): Delete.
10524 2012-09-18 Georg-Johann Lay <avr@gjlay.de>
10526 * config/avr/avr.md: Tidy up empty "". Fix C code indentation.
10527 * config/avr/avr-fixed.md: Ditto.
10529 2012-09-18 Maciej W. Rozycki <macro@codesourcery.com>
10531 * config/rs6000/rs6000.c (print_operand) <'c'>: Remove.
10532 * config/rs6000/spe.md: Remove a leftover comment.
10534 2012-09-18 Jakub Jelinek <jakub@redhat.com>
10537 * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD
10538 AND/IOR/XOR cost calculation to MODE_INT class modes.
10540 2012-09-18 Thomas Quinot <quinot@adacore.com>
10542 * doc/invoke.texi: Document -fada-spec-parent.
10544 2012-09-18 Jakub Jelinek <jakub@redhat.com>
10546 PR tree-optimization/54610
10547 * tree-ssa-forwprop.c: Include optabs.h. Don't include
10549 (simplify_vector_constructor): Don't use vect_gen_perm_mask,
10550 instead create the mask constant here.
10551 * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H).
10552 Don't depend on $(TREE_VECTORIZER_H).
10554 2012-09-18 Florian Weimer <fweimer@redhat.com>
10556 * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.
10558 2012-09-18 Richard Guenther <rguenther@suse.de>
10560 * statistics.h (CXX_MEM_STAT_INFO): New define.
10561 * gimple.h (gimple_build_assign_with_ops_stat,
10562 gimple_build_assign_with_ops, gimple_build_assign_with_ops3):
10563 Turn into an overload of the function gimple_build_assign_with_ops.
10564 * gimple.c (gimple_build_assign_with_ops_stat): Rename to ...
10565 (gimple_build_assign_with_ops): ... this.
10566 * tree-ssa-loop-im.c (move_computations_stmt): Adjust.
10567 * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
10568 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
10569 (vect_permute_load_chain): Likewise.
10570 * tree-vect-generic.c (expand_vector_divmod): Likewise.
10571 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
10572 (vect_recog_divmod_pattern): Likewise.
10573 (vect_recog_mixed_size_cond_pattern): Likewise.
10574 (adjust_bool_pattern): Likewise.
10575 * tree-vect-slp.c (vect_create_mask_and_perm): Likewise.
10576 * tree-vect-stmts.c (vectorizable_operation): Likewise.
10577 (permute_vec_elements): Likewise.
10578 (vectorizable_load): Likewise.
10580 2012-09-17 Paul Koning <ni1d@arrl.net>
10582 * doc/invoke.text (-feliminate-unused-debug-types): Update to
10583 reflect that this is enabled by default.
10585 2012-09-17 Ben Cheng <bccheng@google.com
10587 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the
10588 dynamic linker commands for statically linked programs.
10590 2012-09-17 Ulrich Weigand <ulrich.weigand@linaro.org>
10592 * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
10594 * config/arm/arm.md ("vec_set<mode>_internal"): Support memory source
10595 operands, implemented via vld1 instruction.
10596 ("vec_extract<mode>"): Support memory destination operands, implemented
10597 via vst1 instruction.
10598 ("neon_vst1_lane<mode>"): Use UNSPEC_VST1_LANE instead of vec_select.
10599 * config/arm/predicates.md ("neon_lane_number"): Remove.
10601 2012-09-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10602 Ulrich Weigand <ulrich.weigand@linaro.org>
10604 * config/arm/arm.c (output_move_neon): Update comment.
10605 Use vld1.64/vst1.64 instead of vldm/vstm where possible.
10606 (neon_vector_mem_operand): Support double-word modes.
10607 * config/arm/neon.md (*neon_mov VD): Call output_move_neon
10608 instead of output_move_vfp. Change constraint from Uv to Un.
10610 2012-09-17 Richard Guenther <rguenther@suse.de>
10613 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
10614 FIXED_VALUE_TYPE instead of struct fixed_value.
10616 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
10618 * config/avr/avr.c (CONST_FIXED_P): Remove define.
10619 * config/avr/avr.md (add<mode>3): Use CONST_FIXED_P.
10621 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
10624 * config.gcc (tm_file,avr): Add avr/avr-arch.h.
10625 * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to
10626 compile. Don't depend on TM_H. Use CFLAGS_FOR_BUILD.
10627 * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out
10629 * config/avr/avr-arch.h: ...this new file.
10630 * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h,
10632 * comparator: Make letters smaller than digits.
10633 * config/avr/avr-devices.c: Don't include headers if used in
10634 gen-avr-mmcu-texi.c.
10635 * doc/avr-mmcu.texi: Regenerate.
10637 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
10639 * rtl.h (CONST_FIXED_P): New predicate macro.
10641 2012-09-17 Eric Botcazou <ebotcazou@adacore.com>
10643 * tree-cfgcleanup. (cleanup_control_expr_graph) <GIMPLE_COND>: Remove
10644 code doing propagation from degenerate PHI nodes.
10645 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function.
10646 (propagate_constants_for_unrolling): Likewise.
10647 (tree_unroll_loops_completely): If the current loop has been unrolled
10648 and its father isn't the entire function, propagate constants within
10649 the new basic blocks by means of propagate_constants_for_unrolling.
10651 2012-09-17 Jakub Jelinek <jakub@redhat.com>
10653 PR tree-optimization/54563
10654 * tree-ssa-math-opts.c (execute_cse_sincos): Call
10655 gimple_purge_dead_eh_edges if last call has been changed.
10657 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
10660 * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode.
10661 (avr_out_plus_1): Remove log comments from assembler output.
10663 2012-09-17 Ruben Buchatskiy <ruben@ispras.ru>
10665 * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands
10668 2012-09-16 Richard Sandiford <rdsandiford@googlemail.com>
10670 * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL
10673 2012-09-15 Tom de Vries <tom@codesourcery.com>
10675 * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of
10676 LSHIFT_EXPR with shift range. Handle more LSHIFT_EXPR cases with shift
10679 2012-09-15 Georg-Johann Lay <avr@gjlay.de>
10682 * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S,
10683 ALL124U): New mode iterators.
10684 (<code_stdname><mode>3): New insns for SS_PLUS, SS_MINUS.
10685 (<code_stdname><mode>3): New insns for US_PLUS, US_MINUS.
10686 (usneg<mode>2): New insns.
10687 (<code_stdname><mode>2): New expanders for SS_NEG, SS_ABS.
10688 (*<code_stdname><mode>2): New insns for SS_NEG, SS_ABS.
10689 * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators.
10690 (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead.
10691 (<code_stdname><mode>3): New expanders for SS_PLUS, SS_MINUS.
10692 (<code_stdname><mode>3): New expanders for US_PLUS, US_MINUS.
10693 (<code_stdname><mode>3_insn): New insns.
10694 (<code_stdname><mode>3_const_insn): New insns.
10695 * config/avr/avr.md (cc): Add: plus. Remove: out_plus,
10696 out_plus_noclobber, minus.
10697 (length): Add: plus. Remove: out_plus, out_plus_noclobber,
10698 plus64, minus, minus64.
10699 (abelian): New code_attr.
10700 (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs,
10701 us_plus, us_minus, us_neg.
10702 (*add<mode>3, add<mode>3_clobber, add<mode>3, addpsi3, sub<mode>3):
10703 Use avr_out_plus to output.
10704 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
10705 (avr_out_plus_noclobber, avr_out_minus): Remove.
10706 (avr_out_plus64, avr_out_minus64): Remove.
10707 * config/avr/avr.c (avr_out_plus_1): Add new default arguments
10708 code_sat, sign. Saturate after operation if code_sat != UNKNOWN.
10709 (avr_out_plus_symbol): New static function.
10710 (avr_out_plus): Rewrite.
10711 (adjust_insn_length): Handle: ADJUST_LEN_PLUS. Remove handling
10712 of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS,
10713 ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER.
10714 (notice_update_cc): Handle: CC_PLUS. Remove handling of: CC_MINUS,
10715 CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER
10716 (avr_out_plus_noclobber, avr_out_minus): Remove.
10717 (avr_out_plus64, avr_out_minus64): Remove.
10718 (avr_print_operand): Print raw REGNO if 'r' is used with REG.
10720 2012-09-15 Oleg Endo <olegendo@gcc.gnu.org>
10722 * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND,
10723 ZERO_EXTEND and PARALLEL cases.
10724 (sh_address_cost): Correct rtx parsing and tweak cost estimations.
10726 2012-09-14 Sandra Loosemore <sandra@codesourcery.com>
10728 * doc/tm.texi.in (Stack Arguments): Update obsolete references
10729 to current_function_outgoing_args_size.
10730 (Function Entry): Likewise for current_function_pops_args,
10731 current_function_pretend_args_size,
10732 current_function_outgoing_args_size, and
10733 current_function_epilogue_delay_list.
10734 (Misc): Fix garbled sentence referencing nonexistent
10735 current_function_leaf_function.
10736 * doc/tm.texi: Regenerated.
10738 2012-09-14 Dehao Chen <dehao@google.com>
10740 * tree-eh.c (goto_queue_node): New field.
10741 (record_in_goto_queue): New parameter.
10742 (record_in_goto_queue_label): New parameter.
10743 (lower_try_finally_dup_block): New parameter.
10744 (maybe_record_in_goto_queue): Update source location.
10745 (lower_try_finally_copy): Likewise.
10746 (honor_protect_cleanup_actions): Likewise.
10747 * gimplify.c (gimplify_expr): Reset the location to unknown.
10749 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
10751 * configure: Regenerated.
10753 2012-09-14 Walter Lee <walt@tilera.com>
10755 * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
10756 option for TILEPro and TILE-Gx.
10757 (TILE-Gx Options): Fix grammar and spellings in documentation for
10760 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
10763 * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE.
10764 (fold_binary_loc): Likewise.
10765 * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE.
10766 (or_comparisons_1): Likewise.
10768 2012-09-14 Richard Earnshaw <rearnsha@arm.com>
10771 PR rtl-optimization/54540
10772 * reload.c (find_dummy_reload): Don't use OUT as a reload reg
10773 for IN if it overlaps a fixed register.
10775 2012-09-14 Eric Botcazou <ebotcazou@adacore.com>
10777 PR rtl-optimization/44194
10778 * calls.c (expand_call): In the PARALLEL case, copy the return value
10779 into pseudos instead of spilling it onto the stack.
10780 * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and
10781 add new ADJUST_OBJECT parameter.
10782 If ADJUST_OBJECT is set, drop the underlying object if it cannot be
10783 proved that the adjusted memory access is still within its bounds.
10784 (adjust_automodify_address_1): Adjust call to adjust_address_1.
10785 (widen_memory_access): Likewise.
10786 * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead
10787 of adjust_address. Do not drop the underlying object of a MEM.
10788 (store_fixed_bit_field): Likewise.
10789 (extract_bit_field_1): Likewise. Fix oversight in recursion.
10790 (extract_fixed_bit_field): Likewise.
10791 * expr.h (adjust_address_1): Adjust prototype.
10792 (adjust_address): Adjust call to adjust_address_1.
10793 (adjust_address_nv): Likewise.
10794 (adjust_bitfield_address): New macro.
10795 (adjust_bitfield_address_nv): Likewise.
10796 * expr.c (expand_assignment): Handle a PARALLEL in more cases.
10797 (store_expr): Likewise.
10798 (store_field): Likewise.
10800 * dse.c: Fix typos in the head comment.
10802 2012-09-14 Christian Bruel <christian.bruel@st.com>
10805 * config/sh/sh-protos.h (sh_need_epilogue): Delete.
10806 (sh_can_use_simple_return_p): Declare.
10807 * config/sh/sh.c (sh_can_use_simple_return_p): Define.
10808 (sh_need_epilogue, sh_need_epilogue_known): Delete.
10809 (sh_output_function_epilogue): Remove sh_need_epilogue_known.
10810 * config/sh/sh.md (simple_return, return): Define.
10811 (epilogue): Use inline return rtl.
10812 (sh_expand_epilogue): Cleanup parameters boolean type.
10813 * config/sh/iterators.md (any_return): New iterator.
10815 2012-09-14 Christian Bruel <christian.bruel@st.com>
10817 * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
10818 * config/sh/sh.c (sequence_insn_p): Check INSNP_P for SEQUENCE.
10820 2012-09-14 Jakub Jelinek <jakub@redhat.com>
10823 * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
10824 instead of (match_dup 0) as second argument to vec_merge.
10825 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
10826 Remove third alternative.
10827 (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise. Negate
10828 operand 2 instead of operand 1, but put it as first argument of fma.
10829 * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
10830 _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
10833 2012-09-14 Richard Guenther <rguenther@suse.de>
10835 PR tree-optimization/54565
10836 * passes.c (init_optimization_passes): Adjust comments.
10837 (execute_function_todo): Do not execute execute_update_addresses_taken
10838 before processing TODO_rebuild_alias.
10839 * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken.
10841 2012-09-14 Richard Guenther <rguenther@suse.de>
10843 * tree-vrp.c (register_new_assert_for): Simplify for backward walk.
10844 (find_assert_locations_1): Walk the basic-block backwards, properly
10845 add/prune from live. Use live for asserts derived from stmts.
10847 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
10849 * tree-ssa-forwprop.c (simplify_bitfield_ref): Call
10850 get_prop_source_stmt.
10851 (simplify_permutation): Likewise.
10852 (simplify_vector_constructor): Likewise.
10854 2012-09-14 Richard Guenther <rguenther@suse.de>
10856 * builtin-types.def (BT_FN_CONST_STRING): Add.
10857 * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION,
10858 BUILT_IN_LINE): New builtins.
10859 * gimplify.c (gimplify_call_expr): Expand them.
10860 * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION,
10861 __builtin_FILE): Document.
10863 2012-09-13 Anthony Green <green@moxielogic.com>
10865 * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support.
10866 (MULTILIB_DEFAULTS): Define.
10867 (ASM_SPEC): Define.
10868 (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support.
10869 (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and
10870 __MOXIE_BIG_ENDIAN__.
10871 * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define.
10872 * config/moxie/moxie.opt: New file.
10873 * doc/invoke.texi (Moxie Options): Add section documenting -mel
10876 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
10877 Manuel López-Ibáñez <manu@gcc.gnu.org>
10880 * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++.
10882 2012-09-13 Eric Botcazou <ebotcazou@adacore.com>
10884 * config/sparc/predicates.md (input_operand): Do not consider TImode
10885 constants as 1-instruction integer constants.
10886 Use register_or_zero_operand instead of register_operand and tidy up.
10887 * config/sparc/sparc.md (movti): New expander.
10888 (movti_insn_sp64): New instruction.
10889 (movti_insn_sp64_hq): Likewise.
10890 (TImode splitters): New splitters.
10891 * config/sparc/sparc.c (sparc_expand_move) <TImode>: New case.
10892 (sparc_legitimate_address_p): Return 0 for REG+REG in TImode.
10894 * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete.
10895 (arith_4096_operand): Likewise.
10896 (zero_operand): Likewise.
10897 (fp_zero_operand): Likewise.
10898 (reg_or_0_operand): Likewise.
10900 2012-09-13 Jakub Jelinek <jakub@redhat.com>
10902 * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping.
10903 * configure: Regenerated.
10905 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
10907 * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
10908 (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
10910 (*prefetch_sse): ... this.
10911 (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
10913 (*prefetch_3dnow): ... this.
10915 2012-09-13 Steven Bosscher <steven@gcc.gnu.org>
10917 * ipa-pure-const.c (state_from_flags, local_pure_const): Use
10918 current_function_name instead of lang_hooks.decl_printable_name.
10920 * function.h (fndecl_name): New prototype.
10921 * function.c (fndecl_name): New function.
10922 * vecir.h (cgraph_node_p): New standard IR VEC type.
10923 * trans-mem.c (cgraph_node_p): No need anymore to define it here.
10924 * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype.
10925 * ipa-utils.c (ipa_get_nodes_in_cycle): New function.
10926 * ipa-reference.c: Don't include langhooks.h, and certainly not twice.
10927 Fix many formatting issues (long lines, short lines, spacing, etc.).
10928 (get_static_name): Use fndecl_name.
10929 (dump_static_vars_set_to_file): New function split out from propagate.
10930 (union_static_var_sets): New function, union two sets and collapse
10931 to all_module_statics as quickly as possible.
10932 (intersect_static_var_sets): New function, similar to above.
10933 (copy_static_var_set): Renamed from copy_global_bitmap and rewritten
10934 to allocate a copy on the same bitmap_obstack as the source set.
10935 (propagate_bits): Simplify, and clarify by using union_static_var_sets.
10936 (generate_summary): Remove bm_temp. Print UID of promotable globals.
10937 (read_write_all_from_decl): Use pass-by-reference, bless C++.
10938 (get_read_write_all_from_node): New function, split out from propagate.
10939 (propagate): Simplify and clarify with helper functions. Use
10940 ipa_get_nodes_in_cycle to walk all nodes in a reduced node.
10941 (ipa_reference_read_optimization_summary): Use fndecl_name instead of
10942 lang_hooks.decl_printable_name.
10944 * rtl.h (print_rtl_single_with_indent): New prototype.
10945 * print-rtl.c (print_rtl_single_with_indent): New function.
10946 * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks.
10947 * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement.
10948 * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump):
10949 Implement RTL specific hooks.
10950 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks.
10951 * tree-cfg.c (gimple_empty_block_p,
10952 gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks.
10953 (gimple_cfg_hooks): Register the new hooks.
10954 * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook.
10956 2012-09-13 Richard Guenther <rguenther@suse.de>
10958 * tree-ssa-sccvn.h (enum vn_kind): New.
10959 (vn_get_stmt_kind): Likewise.
10960 * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust
10961 ADDR_EXPR handling.
10962 (visit_use): Use it.
10963 * tree-ssa-pre.c (compute_avail): Likewise, simplify further.
10965 2012-09-13 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10967 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
10968 for targets bdver1, bdver2, btver1 and btver2.
10970 2012-09-13 Christophe Lyon <christophe.lyon@linaro.org>
10971 Richard Earnshaw <rearnsha@arm.com>
10973 * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm
10974 variants for rev instruction..
10975 (thumb1_rev): Delete pattern.
10976 (arm_revsh): New pattern to support builtin_bswap16.
10977 (arm_rev16, bswaphi2): Likewise.
10979 2012-09-12 Teresa Johnson <tejohnson@google.com>
10981 PR gcov-profile/54487
10982 * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
10983 test using F_SETLKW with fcntl.
10984 * configure, config.in: Regenerate.
10986 2012-09-12 Jan Hubicka <jh@suse.cz>
10989 * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride.
10990 (set_hint_predicate): New function.
10991 (reset_inline_summary): Reset loop stride.
10992 (remap_predicate_after_duplication): New function.
10993 (remap_hint_predicate_after_duplication): New function.
10994 (inline_node_duplication_hook): Update.
10995 (dump_inline_summary): Dump stride summaries.
10996 (estimate_function_body_sizes): Compute strides.
10997 (remap_hint_predicate): New function.
10998 (inline_merge_summary): Use it.
10999 (inline_read_section): Read stride.
11000 (inline_write_summary): Write stride.
11001 * ipa-inline.c (want_inline_small_function_p): Handle strides.
11002 (edge_badness): Likewise.
11003 * ipa-inline.h (inline_hints_vals): Add stride hint.
11004 (inline_summary): Update stride.
11006 2012-09-12 Uros Bizjak <ubizjak@gmail.com>
11008 * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char.
11009 * config/i386/i386.h (x86_prefetch_sse): Ditto.
11011 2012-09-12 H.J. Lu <hongjiu.lu@intel.com>
11014 * config/i386/predicates.md (x86_64_immediate_operand): Allow
11015 negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF.
11017 2012-09-12 Jan Hubicka <jh@suse.cz>
11019 * common.opt (flto-partition): Add "max".
11020 * invoke.texi (flto-partition): Document "max"
11022 2012-09-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11024 * config/i386/i386.md : Comments on fma4 instruction selection
11025 reflect requirement on register pressure based cost model.
11027 * config/i386/driver-i386.c (host_detect_local_cpu): fma4
11028 flag is set-reset as informed by the cpuid flag.
11030 * config/i386/i386.c (processor_alias_table): fma4
11031 flag is enabled for bdver2.
11033 2012-09-12 Richard Guenther <rguenther@suse.de>
11035 PR tree-optimization/54489
11036 * tree-ssa-pre.c: Include domwalk.h.
11038 (sccvn_valnum_from_value_id): New function.
11039 (debug_bitmap_sets_for): Simplify.
11040 (get_representative_for): Properly initialize the SCCVN valnum.
11041 (create_expression_by_pieces): Likewise.
11042 (insert_into_preds_of_block): Likewise.
11043 (can_PRE_operation): Remove.
11044 (make_values_for_phi): Simplify.
11045 (compute_avail): Likewise.
11046 (do_SCCVN_insertion): Remove.
11047 (eliminate_avail, eliminate_push_avail, eliminate_insert):
11049 (eliminate): Split and perform a domwalk.
11050 (eliminate_bb): Former eliminate part that is now dom-enter.
11051 (eliminate_leave_block): New function.
11052 (fini_eliminate): Likewise.
11053 (init_pre): Simplify.
11054 (fini_pre): Likewise.
11055 (execute_pre): Fold into do_pre and do_fre.
11056 (do_pre): Consume execute_pre.
11057 (do_fre): Likewise.
11058 * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency.
11060 2012-09-12 Diego Novillo <dnovillo@google.com>
11062 * vec.h: Remove compatibility notes for previous distinction
11063 between vectors of objects and vectors of pointers.
11065 2012-09-12 Christian Bruel <christian.bruel@st.com>
11067 * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
11069 2012-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11071 * rtl.h (FFS, FLOAT, ABS, PC): Don't undef.
11072 * system.h (FFS, FLOAT, ABS, PC): Undef.
11074 2012-09-12 Richard Guenther <rguenther@suse.de>
11076 PR middle-end/54553
11077 * common.opt (finline): Mark with Optimization.
11079 2012-09-12 Jakub Jelinek <jakub@redhat.com>
11081 * config.gcc: Obsolete picochip-*.
11083 2012-09-12 Nathan Froyd <froydnj@gcc.gnu.org>
11084 Hans-Peter Nilsson <hp@bitrange.com>
11086 * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete.
11087 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete.
11088 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
11089 * config/mmix/mmix-protos.h (mmix_intval): Declare.
11090 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
11091 (mmix_const_double_ok_for_letter_p): Delete.
11092 * config/mmix/constraints.md: New file.
11093 * config/mmix/mmix.md: Include it.
11094 (iordi3): Fix typo; use "I" instead of undefined "H" constraint.
11095 ("*call_real"): Update comment about not using the "p" constraint.
11096 * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use
11097 satisfies_constraint_I.
11098 (mmix_address_operand): New predicate.
11099 (mmix_symbolic_or_address_operand): Use it instead of address_operand.
11100 * config/mmix/mmix.c: #include tm-constrs.h.
11101 (mmix_intval): Delete declaration. Make non-static.
11102 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
11103 (mmix_const_double_ok_for_letter_p): Delete.
11104 (mmix_legitimate_address_p): Use satisfies_constraint_I.
11105 (mmix_print_operand_address): Likewise.
11106 (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint
11107 when matching "L" constraint.
11109 2012-09-11 Steven Bosscher <steven@gcc.gnu.org>
11111 * tree.h (expand_case): Move prototype ...
11112 * expr.h (expand_case): ...here.
11113 (expand_sjlj_dispatch_table): New prototype.
11114 * stmt.c: Include pointer-set.h instead of bitmap.h.
11115 (expand_case): Use a pointer set instead of a bitmap for
11116 already-seen labels. Fold label values here.
11117 (add_case_node): Don't fold label values here.
11118 (expand_sjlj_dispatch_table): New function.
11119 * except.c (sjlj_emit_dispatch_table): Use it.
11121 2012-09-11 Marc Glisse <marc.glisse@inria.fr>
11123 * tree-ssa-forwprop.c (simplify_vector_constructor): New function.
11124 (ssa_forward_propagate_and_combine): Call it.
11126 2012-09-11 Diego Novillo <dnovillo@google.com>
11128 * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes.
11130 2012-09-11 Dominique Dhumieres <dominiq@lps.ens.fr>
11132 * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes.
11133 (darwin_asm_dwarf_section): Likewise.
11135 2012-09-11 Martin Jambor <mjambor@suse.cz>
11137 * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun.
11138 (premark_used_types): New parameter fun, use it instead of cfun.
11139 (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun,
11140 also pass it to premark_used_types.
11142 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11144 * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line.
11146 2012-09-11 Tobias Burnus <burnus@net-b.de>
11148 * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor.
11150 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11151 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11153 * config/arm/neon.md (fma<VCVTF:mode>4): New pattern.
11154 (*fmsub<VCVTF:mode>4): Likewise.
11155 * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw): Document it.
11157 2012-09-11 Aldy Hernandez <aldyh@redhat.com>
11159 PR middle-end/54149
11160 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set
11163 2012-09-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11165 PR tree-optimization/55492
11166 * doc/invoke.texi (max-slsr-cand-scan): New description.
11167 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit
11168 the time spent searching for a basis.
11169 * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param.
11171 2012-09-11 Richard Guenther <rguenther@suse.de>
11173 * gimple.h (gimple_register_type): Remove.
11174 (print_gimple_types_stats): Adjust prototype.
11175 * lto-streamer.h (print_lto_report): Likewise.
11176 * lto-streamer.c (print_lto_report): Adjust.
11177 * gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
11178 struct type_pair_d, lookup_type_pair, struct sccs,
11179 next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
11180 gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
11181 gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
11182 visit, iterative_hash_name, struct type_hash_pair,
11183 type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
11184 gimple_type_eq, gimple_register_type_1, gimple_register_type):
11186 (print_gimple_types_stats): Adjust.
11187 (free_gimple_type_tables): Likewise.
11189 2012-09-11 Richard Guenther <rguenther@suse.de>
11191 * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes.
11192 (scopdet_basic_block_info): Likewise.
11193 (build_scops_1): Likewise.
11194 (limit_scops): Likewise.
11196 2012-09-11 Richard Guenther <rguenther@suse.de>
11198 PR middle-end/54515
11199 * gimple.c (get_base_address): Do not return NULL_TREE apart
11200 from for WITH_SIZE_EXPR.
11201 * gimple-fold.c (canonicalize_constructor_val): Do not call
11202 get_base_address when not necessary.
11204 2012-09-10 Andrew Pinski <apinski@cavium.com>
11207 * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also.
11209 2012-09-10 Maxim Kuvyrkov <maxim@codesourcery.com>
11211 * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support
11212 starting scheduling from a pre-existing state.
11214 2012-09-10 Diego Novillo <dnovillo@google.com>
11216 * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'.
11218 (vec_t::safe_push): Likewise.
11219 (vec_t::quick_insert): Likewise.
11220 (vec_t::lower_bound): Likewise.
11221 (vec_t::safe_insert): Likewise.
11222 (vec_t::replace): Change second argument to 'T &'.
11224 2012-09-10 Maciej W. Rozycki <macro@codesourcery.com>
11226 * config/rs6000/rs6000.md: Move a splitter next to its insn.
11228 2012-09-10 Oleg Endo <olegendo@gcc.gnu.org>
11231 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if
11232 dynamic shifts are available.
11233 (SHIFT_COUNT_TRUNCATED): Always define to 0. Correct comment.
11234 * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments.
11235 * config/sh/predicates.md (shift_count_operand): Allow
11236 arith_reg_operand even if TARGET_DYNSHIFT is false.
11237 * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns
11239 (ashlsi3_d_call, lshrsi3_d_call): New insns.
11241 2012-09-10 Richard Sandiford <rdsandiford@googlemail.com>
11243 * ira.c (setup_pressure_classes): Handle synonymous classes.
11245 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
11247 * tree-ssa-forwprop.c (simplify_bitfield_ref): New function.
11248 (ssa_forward_propagate_and_combine): Call it.
11250 2012-09-10 Steve Ellcey <sellcey@mips.com>
11252 * config.gcc: Add mips*-mti-linux* target
11253 Handle with_synci like other options.
11254 * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New.
11255 (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS.
11256 * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New.
11257 * config/mips/mti-linux.h: New file.
11258 * config/mips/t-mti-linux: New file.
11260 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
11262 * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR.
11264 2012-09-10 Martin Jambor <mjambor@suse.cz>
11266 * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter.
11267 * ipa-prop.c: Include params.h.
11268 (IPA_MAX_AFF_JF_ITEMS): Removed.
11269 (determine_known_aggregate_parts): Use param value of
11270 PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS.
11271 * Makefile.in (ipa-prop.o): Add PARAMS_H dependency.
11273 2012-09-10 Richard Guenther <rguenther@suse.de>
11275 PR tree-optimization/54520
11276 * tree-ssa-threadupdate.c (def_split_header_continue_p):
11277 Properly consider sub-loops.
11279 2012-09-10 Richard Henderson <rth@redhat.com>
11281 * config/alpha/predicates.md (small_symbolic_operand): Disallow
11284 2012-09-10 Georg-Johann Lay <avr@gjlay.de>
11287 * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
11289 2012-09-10 Jan Hubicka <jh@suse.cz>
11291 * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases.
11292 * symtab.c (symtab_make_decl_local): Remove user defined visibility
11293 when making symbol local.
11295 2012-09-09 Mark Kettenis <kettenis@gnu.org>
11297 * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define.
11299 2012-09-09 Jan Hubicka <jh@suse.cz>
11301 * passes.c (ipa_write_summaries_1): Set state;
11302 do not call compute_ltrans_boundary.
11303 (ipa_write_optimization_summaries): Likewise.
11304 (ipa_write_summaries): compute_ltrans_boundary here.
11305 * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
11306 (compute_ltrans_boundary): Update prototype.
11308 2012-09-09 Ulrich Drepper <drepper@gmail.com>
11310 * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for
11311 matching results of level 0 calls to __cpuid to processor
11313 * config/i386/driver-i386.c (vendor_signatures): Removed.
11314 (processor_signatures): Removed.
11315 (host_detect_local_cpu): Replace uses of now-removed SIG_*
11316 constants with the new signature_*_ebx constants.
11318 2012-09-08 Jan Hubicka <jh@suse.cz>
11320 Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
11322 * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove
11323 forward declaration.
11324 (lto_symtab_encoder_d): Forward declare.
11325 (ipa_write_optimization_summaries): Update.
11326 * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize
11327 body, initializer and in_partition.
11328 (lto_symtab_encoder_delete): Update.
11329 (lto_symtab_encoder_encode): Update.
11330 (lto_symtab_encoder_lookup): Move inline.
11331 (lto_symtab_encoder_delete_node): New function.
11332 (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body,
11333 lto_symtab_encoder_encode_initializer_p,
11334 lto_set_symtab_encoder_encode_initializer,
11335 lto_symtab_encoder_in_partition_p,
11336 lto_symtab_encoder_in_partition_p): Update.
11337 (compute_ltrans_boundary): Take encoder as an input.
11338 * passes.c (ipa_write_summaries_1): Update.
11339 (ipa_write_summaries_1): Update.
11340 (ipa_write_summaries): Update.
11341 (ipa_write_optimization_summaries): Update.
11342 * lto-streamer.c (print_lto_report): Report number of cgraph nodes.
11343 * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by
11344 num_output_symtab_nodes.
11345 (lto_encoder_entry): New structure.
11346 (struct lto_symtab_encoder_d): Reorg.
11347 (lto_symtab_encoder_delete_node): Declare.
11348 (lto_symtab_encoder_lookup): Bring inline.
11349 (compute_ltrans_boundary): Update.
11350 (lto_symtab_encoder_size): Update.
11351 (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update.
11352 (lto_symtab_encoder_deref): Update.
11354 2012-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11356 * config/pa/pa.c (hppa_rtx_costs): Update costs for large
11359 2012-09-08 Andi Kleen <ak@linux.intel.com>
11361 * lto/lto.c (do_whole_program_analysis): Fix last broken patch.
11363 2012-09-08 Andi Kleen <ak@linux.intel.com>
11365 * common.opt (-fmem-report-wpa): Add
11366 * doc/invoke.texi (-fmem-report-wpa): Document.
11367 * lto/lto.c (do_whole_program_analysis): Run mem_report
11368 when mem_report_wpa is set.
11370 2012-09-07 Anthony Green <green@moxielogic.com>
11372 * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue
11373 for functions with large static stack requirements.
11374 (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved
11375 values off of the stack.
11377 2012-09-07 Nick Clifton <nickc@redhat.com>
11379 * config/v850/v850.h (DBX_DEBUGGING_INFO): Define.
11380 (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.
11381 * config/v850/v850.c (compute_register_save_size): Always include
11383 (increment_stack): New function - emits insns to increment or
11384 decrement the stack pointer.
11385 (expand_prologue, expand_epilogue): Use it.
11386 (expand_prologue): Set the function stack size, if requested.
11387 (v850_debug_unwind_info): New function.
11388 (TARGET_DEBUG_UNWIND_INFO): Define.
11390 2012-09-07 Richard Earnshaw <rearnsha@arm.com>
11393 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
11394 Sign-extension of a zero-extended value can be simplified to
11395 just zero-extension.
11397 2012-09-07 Richard Guenther <rguenther@suse.de>
11399 PR middle-end/53667
11400 * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
11401 EAF_NOESCAPED arguments. Transitively close non-EAF_DIRECT
11402 arguments separately.
11404 2012-09-07 Steven Bosscher <steven@gcc.gnu.org>
11406 * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
11408 * graphite.c (print_global_statistics): Use EDGE_COUNT instead
11410 (print_graphite_scop_statistics): Likewise.
11411 * graphite-scop-detection.c (get_bb_type): Use single_succ_p.
11412 (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
11413 (canonicalize_loop_closed_ssa): Use single_pred_p.
11415 * alias.c (reg_seen): Make this an sbitmap.
11416 (record_set, init_alias_analysis): Update.
11418 * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
11420 2012-09-07 Tom de Vries <tom@codesourcery.com>
11422 PR tree-optimization/53986
11423 * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow
11425 (extract_range_from_binary_expr_1): Handle LSHIFT with constant
11426 range as shift amount.
11428 2012-09-07 Segher Boessenkool <segher@kernel.crashing.org>
11430 * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete.
11431 * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete.
11432 * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete.
11433 * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete.
11434 * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete.
11435 * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete.
11436 * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete.
11437 * config/rs6000/rs6000.c (print_operand) ['.']: Delete.
11438 * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete.
11439 * config/rs6000/rs6000.md (tls_gd_aix<TLSmode:tls_abi_suffix>):
11440 Replace %. with nop.
11441 (tls_gd_call_aix<TLSmode:tls_abi_suffix>): Ditto.
11442 (tls_ld_aix<TLSmode:tls_abi_suffix>): Ditto.
11443 (tls_ld_call_aix<TLSmode:tls_abi_suffix>): Ditto.
11444 (call_nonlocal_aix32): Ditto.
11445 (call_nonlocal_aix64): Ditto.
11446 (call_value_nonlocal_aix32): Ditto.
11447 (call_value_nonlocal_aix64): Ditto.
11449 2012-09-06 Andi Kleen <ak@linux.intel.com>
11451 * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar
11452 et.al. should be used.
11454 2012-09-06 Andi Kleen <ak@linux.intel.com>
11456 * lto-streamer.h (res_pair): Add.
11457 (lto_file_decl_data): Replace resolutions with respairs.
11459 * lto/lto.c (lto_resolution_read): Remove max_index. Add rp.
11460 Initialize respairs.
11461 (lto_file_finalize): Set up resolutions vector lazily from respairs.
11463 2012-09-06 Lawrence Crowl <crowl@google.com>
11465 * double-int.h (double_int::operator &=): New.
11466 (double_int::operator ^=): New.
11467 (double_int::operator |=): New.
11468 (double_int::mul_with_sign): Modify overflow parameter to bool*.
11469 (double_int::add_with_sign): New.
11470 (double_int::ule): New.
11471 (double_int::sle): New.
11472 (binary double_int::operator *): Remove parameter name.
11473 (binary double_int::operator +): Likewise.
11474 (binary double_int::operator -): Likewise.
11475 (binary double_int::operator &): Likewise.
11476 (double_int::operator |): Likewise.
11477 (double_int::operator ^): Likewise.
11478 (double_int::and_not): Likewise.
11479 (double_int::from_shwi): Tidy formatting.
11480 (double_int::from_uhwi): Likewise.
11481 (double_int::from_uhwi): Likewise.
11482 * double-int.c (double_int::mul_with_sign): Modify overflow parameter
11484 (double_int::add_with_sign): New.
11485 (double_int::ule): New.
11486 (double_int::sle): New.
11487 * builtins.c: Modify to use the new double_int interface.
11488 * cgraph.c: Likewise.
11489 * combine.c: Likewise.
11490 * dwarf2out.c: Likewise.
11491 * emit-rtl.c: Likewise.
11492 * expmed.c: Likewise.
11493 * expr.c: Likewise.
11494 * fixed-value.c: Likewise.
11495 * fold-const.c: Likewise.
11496 * gimple-fold.c: Likewise.
11497 * gimple-ssa-strength-reduction.c: Likewise.
11498 * gimplify-rtx.c: Likewise.
11499 * ipa-prop.c: Likewise.
11500 * loop-iv.c: Likewise.
11501 * optabs.c: Likewise.
11502 * stor-layout.c: Likewise.
11503 * tree-affine.c: Likewise.
11504 * tree-cfg.c: Likewise.
11505 * tree-dfa.c: Likewise.
11506 * tree-flow-inline.h: Likewise.
11507 * tree-object-size.c: Likewise.
11508 * tree-predcom.c: Likewise.
11509 * tree-pretty-print.c: Likewise.
11510 * tree-sra.c: Likewise.
11511 * tree-ssa-address.c: Likewise.
11512 * tree-ssa-alias.c: Likewise.
11513 * tree-ssa-ccp.c: Likewise.
11514 * tree-ssa-forwprop.c: Likewise.
11515 * tree-ssa-loop-ivopts.c: Likewise.
11516 * tree-ssa-loop-niter.c: Likewise.
11517 * tree-ssa-phiopt.c: Likewise.
11518 * tree-ssa-pre.c: Likewise.
11519 * tree-ssa-sccvn: Likewise.
11520 * tree-ssa-structalias.c: Likewise.
11521 * tree-ssa.c: Likewise.
11522 * tree-switch-conversion.c: Likewise.
11523 * tree-vect-loop-manip.c: Likewise.
11524 * tree-vrp.c: Likewise.
11525 * tree.h: Likewise.
11526 * tree.c: Likewise.
11527 * varasm.c: Likewise.
11529 2012-09-06 Uros Bizjak <ubizjak@gmail.com>
11531 * configure.ac (hle prefixes): Remove .code64 directive.
11532 * configure: Regenerated.
11534 2012-09-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11536 * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
11537 LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
11538 * config/arm/arm.h: Use REG_P, MEM_P consistently.
11539 * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
11541 * config/arm/neon.md: Use REG_P consistently.
11542 * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently.
11543 * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
11544 * config/arm/vec-common.md: Use REG_P consistently.
11546 2012-09-06 Richard Guenther <rguenther@suse.de>
11548 PR tree-optimization/54498
11549 * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
11550 abort when reaching an already visited region.
11551 * tree-ssa-alias.c (maybe_skip_until): Likewise. And do it.
11552 (get_continuation_for_phi_1): Likewise.
11553 (walk_non_aliased_vuses): When we translated the reference,
11554 abort when we re-visit a region.
11555 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
11557 2012-09-06 David Edelsohn <dje.gcc@gmail.com>
11559 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
11561 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
11562 arguments to TARGET_ADDRESS_COST call.
11564 2012-09-06 Richard Guenther <rguenther@suse.de>
11566 * tree.h (MOVE_NONTEMPORAL): Remove.
11567 * tree-pretty-print.c (dump_generic_node): Remove
11568 MOVE_NONTEMPORAL handling.
11569 * expr.c (expand_expr_real_1): Likewise.
11571 2012-09-06 Richard Guenther <rguenther@suse.de>
11573 * passes.c (execute_function_todo): Call compute_may_aliases
11574 only if flag_tree_pta is set.
11576 2012-09-06 Andrew Pinski <apinski@cavium.com>
11579 * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
11581 2012-09-06 Jakub Jelinek <jakub@redhat.com>
11583 PR rtl-optimization/54455
11584 * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
11585 bb ends up with asm goto referencing bb's label.
11587 2012-09-06 Chen Liqin <liqin.gcc@gmail.com>
11589 * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and
11590 score_legitimize_address function, use compiler default code instead.
11592 2012-09-05 Jan Hubicka <jh@suse.cz>
11594 * ipa-inline.c (want_inline_small_function_p): Use
11595 INLINE_HINT_loop_iterations hint.
11597 2012-09-05 Andrew Pinski <apinski@cavium.com>
11599 * optabs.c (emit_conditional_add): Correct comment about the arguments.
11600 Remove code which might swap op2 and op3 since they cannot be swapped.
11601 * doc/md.texi (add@var{mode}cc): Fix document about how the arguments
11604 2012-09-05 Oleg Endo <olegendo@gcc.gnu.org>
11606 * hooks.c (hook_int_rtx_mode_as_bool_0): New function.
11607 * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it.
11608 * output.h (default_address_cost): Add machine_mode and address space
11610 * target.def (address_cost): Likewise.
11611 * rtlanal.c (address_cost): Pass mode and address space to target hook.
11612 (default_address_cost): Add unnamed machine_mode and address space
11614 * doc/tm.texi: Regenerate.
11615 * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use
11616 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11617 * config/arm/arm.c (arm_address_cost): Add machine_mode and address
11619 * config/avr/avr.c (avr_address_cost): Likewise.
11620 * config/bfin/bfin.c (bfin_address_cost): Likewise.
11621 * config/cr16/cr16.c (cr16_address_cost): Likewise.
11622 * config/cris/cris.c (cris_address_cost): Likewise.
11623 * config/epiphany/epiphany.c (epiphany_address_cost): Likewise.
11624 * config/i386/i386.c (ix86_address_cost): Likewise.
11625 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use
11626 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11627 * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and
11628 address space arguments. Pass them on in recursive invocation.
11629 * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use
11630 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11631 * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address
11633 * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use
11634 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11635 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise.
11636 * config/mep/mep.c (mep_address_cost): Add machine_mode and address
11638 * config/microblaze/microblaze.c (microblaze_address_cost): Likewise.
11639 * config/mips/mips.c (mips_address_cost): Likewise.
11640 * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use
11641 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11642 * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and
11643 address space arguments.
11644 (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to
11645 mn10300_address_cost.
11646 * config/pa/pa.c (hppa_address_cost): Add machine_mode and address
11648 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise.
11649 (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of
11650 hook_int_rtx_bool_0.
11651 * config/rx/rx.c (rx_address_cost): Add machine_mode and address
11653 * config/s390/s390.c (s390_address_cost): Likewise.
11654 * config/score/score-protos.h (score_address_cost): Likewise.
11655 * config/score/score.c (score_address_cost): Likewise.
11656 * config/sh/sh.c (sh_address_cost): Likewise.
11657 * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use
11658 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11659 * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise.
11660 * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode
11661 and address space arguments.
11662 * config/v850/v850.c (TARGET_ADDRESS_COST): Use
11663 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11664 * config/vax/vax.c (vax_address_cost): Add machine_mode and address
11666 * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use
11667 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11669 2012-09-05 Diego Novillo <dnovillo@google.com>
11672 * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument.
11674 2012-09-05 Jakub Jelinek <jakub@redhat.com>
11676 PR middle-end/54486
11677 * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
11678 build_int_cst with size_type_node instead of size_int.
11680 2012-09-05 Uros Bizjak <ubizjak@gmail.com>
11682 * config/i386/sse.md (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>):
11683 Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}.
11684 Use nonimmediate_operand instead of
11685 nonimm_not_xmm0_operand{,_maybe_avx}.
11686 (<sse4_1_avx2>_pblendvb): Ditto.
11687 (sse4_2_pcmpestr): Ditto.
11688 (*sse4_2_pcmpestr_unaligned): Ditto.
11689 (sse4_2_pcmpistr): Ditto.
11690 (*sse4_2_pcmpistr_unaligned): Ditto.
11691 * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate.
11692 (nonimm_not_xmm0_operand): Ditto.
11693 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
11694 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
11695 * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx.
11697 2012-09-05 Eric Botcazou <ebotcazou@adacore.com>
11699 * bb-reorder.c: Clarify a few points in the head comment and fix
11700 long lines in other comments.
11701 (find_traces): Fix long line.
11702 (find_traces_1_round): Likewise.
11703 (better_edge_p): Likewise.
11704 (connect_traces): Likewise.
11705 (duplicate_computed_gotos): Likewise.
11706 (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces.
11707 (fix_up_fall_thru_edges): Fix formatting.
11709 2012-09-05 Richard Guenther <rguenther@suse.de>
11711 PR tree-optimization/46590
11712 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not
11713 update SSA form here.
11714 (canonicalize_induction_variables): Assert we do not need to
11716 (tree_unroll_loops_completely): Update SSA form here.
11717 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11718 Do not verify loop-closed SSA form if SSA form is not up-to-date.
11720 2012-09-05 Georg-Johann Lay <avr@gjlay.de>
11723 * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
11724 not configured --with-avrlibc=no.
11725 (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
11727 * config/avr/avrlibc.h: New file.
11728 * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
11729 not configured --with-avrlibc=no.
11730 * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
11732 2012-09-04 Teresa Johnson <tejohnson@google.com>
11734 * gcov-io.c (gcov_write_summary): Write out non-zero histogram
11735 entries to function summary along with an occupancy bit vector.
11736 (gcov_read_summary): Read in the histogram entries.
11737 (gcov_histo_index): New function.
11738 (void gcov_histogram_merge): Ditto.
11739 * gcov-io.h (gcov_type_unsigned): New type.
11740 (struct gcov_bucket_type): Ditto.
11741 (struct gcov_ctr_summary): Include histogram.
11742 (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
11743 (GCOV_HISTOGRAM_SIZE): New macro.
11744 (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
11745 * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
11746 (gcov_working_sets): New global variable.
11747 (compute_working_sets): New function.
11748 (find_working_set): Ditto.
11749 (get_exec_counts): Invoke compute_working_sets.
11750 * coverage.c (read_counts_file): Merge histograms, and
11751 fix bug with accessing summary info for non-summable counters.
11752 * basic-block.h (gcov_type_unsigned): New type.
11753 (struct gcov_working_set_info): Ditto.
11754 (find_working_set): Declare.
11755 * gcov-dump.c (tag_summary): Dump out histogram.
11757 2012-09-04 Diego Novillo <dnovillo@google.com>
11760 * vec.h (vec_t::embedded_init): Move default argument value
11761 to function declaration.
11763 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
11765 * bb-reorder.c (gate_handle_reorder_blocks): Move around.
11766 (rest_of_handle_reorder_blocks): Likewise.
11767 (pass_reorder_blocks): Likewise.
11768 (gate_handle_partition_blocks): Likewise.
11770 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
11772 PR rtl-optimization/54456
11773 * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
11775 2012-09-04 Diego Novillo <dnovillo@google.com>
11778 * vec.h (vec_t::alloc): Remove explicit type specification
11779 in call to reserve.
11780 (vec_t::copy): Likewise.
11781 (vec_t::reserve): Likewise.
11782 (vec_t::reserve_exact): Likewise.
11783 (vec_t::safe_splice): Likewise.
11784 (vec_t::safe_push): Likewise.
11785 (vec_t::safe_grow): Likewise.
11786 (vec_t::safe_grow_cleared): Likewise.
11787 (vec_t::safe_insert): Likewise.
11789 2012-09-04 Richard Henderson <rth@redhat.com>
11791 * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
11793 2012-09-04 Richard Guenther <rguenther@suse.de>
11795 * tree-ssa-pre.c (value_expressions): Make it a vector of
11796 bitmaps containing expression IDs.
11797 (add_to_value): Adjust.
11798 (sorted_array_from_bitmap_set): Likewise.
11799 (bitmap_set_replace_value): Likewise.
11800 (print_value_expressions): Likewise.
11801 (get_constant_for_value_id): Likewise.
11802 (get_representative_for): Likewise.
11803 (phi_translate_1): Likewise.
11804 (bitmap_find_leader): Likewise.
11805 (find_or_generate_expression): Likewise.
11806 (do_regular_insertion): Likewise.
11807 (init_pre): Likewise.
11808 (fini_pre): Likewise.
11810 2012-09-04 Diego Novillo <dnovillo@google.com>
11813 * vec.h (vec_t::copy): Add cast in call to reserve_exact.
11815 2012-09-04 Richard Guenther <rguenther@suse.de>
11817 * tree-ssa-pre.c (add_to_exp_gen): Adjust.
11818 (make_values_for_phi): Do not add to PHI_GEN for FRE.
11819 (compute_avail): Stop processing after adding all defs to
11821 (init_pre): Do not allocate not needed bitmap sets for FRE.
11823 2012-09-04 Diego Novillo <dnovillo@google.com>
11825 Rewrite VEC_* functions as member functions of vec_t.
11827 * vec.h: Update documentation.
11828 (ALONE_VEC_CHECK_INFO): Define.
11829 (ALONE_VEC_CHECK_DECL): Define.
11830 (ALONE_VEC_CHECK_PASS): Define.
11831 (struct vec_prefix): Rename field NUM to NUM_.
11832 Rename field ALLOC to ALLOC_.
11834 (struct vec_t): Rename field PREFIX to PREFIX_.
11835 Rename field VEC to VEC_.
11837 (vec_t::length): Rename from VEC_length_1. Update all users.
11838 (vec_t::empty): Rename from VEC_empty_1. Update all users.
11839 (vec_t::address): Rename from VEC_address_1. Update all users.
11840 (vec_address): New.
11841 (vec_t::last): Rename from VEC_last_1. Update all users.
11842 (vec_t::operator[]): Rename from VEC_index_1. Update all users.
11843 (vec_t::iterate): Rename from VEC_iterate_1. Update all users.
11844 (vec_t::embedded_size): Rename from VEC_embedded_size_1.
11846 (vec_t::embedded_init): Rename from VEC_embedded_init_1.
11848 (vec_t::alloc): Rename from VEC_alloc_1. Update all users.
11849 (vec_t::free): Rename from VEC_free_1. Update all users.
11850 (vec_t::copy): Rename from VEC_copy_1. Update all users.
11851 (vec_t::space): Rename from VEC_space_1. Update all users.
11852 (vec_t::reserve): Rename from VEC_reserve_1. Update all users.
11853 (vec_t::reserve_exact): Rename from VEC_reserve_exact_1.
11855 (vec_t::splice): Rename from VEC_splice_1. Update all users.
11856 (vec_t::safe_splice): Rename from VEC_safe_splice_1. Update all users.
11857 (vec_t::quick_push): Rename from VEC_quick_push_1. Update all users.
11858 (vec_t::safe_push): Rename from VEC_safe_push_1. Update all users.
11859 (vec_t::pop): Rename from VEC_pop_1. Update all users.
11860 (vec_t::truncate): Rename from VEC_truncate_1. Update all users.
11861 (vec_t::safe_grow): Rename from VEC_safe_grow_1. Update all users.
11862 (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1.
11864 (vec_t::replace): Rename from VEC_replace_1. Update all users.
11865 (vec_t::quick_insert): Rename from VEC_quick_insert_1.
11867 (vec_t::safe_insert): Rename from VEC_safe_insert_1. Update all users.
11868 (vec_t::ordered_remove): Rename from VEC_ordered_remove_1.
11870 (vec_t::unordered_remove): Rename from VEC_unordered_remove_1.
11872 (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users.
11873 (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users.
11875 2012-09-04 Steven Bosscher <steven@gcc.gnu.org>
11877 * gimple.h (gimple_build_switch): Remove.
11878 (gimple_build_switch_vec): Promote to the new gimple_build_switch.
11879 (gimple_switch_default_label): Assert the default case label is
11880 really a default case label.
11881 (gimple_switch_set_default_label): Likewise.
11882 * gimple.c (gimple_build_switch_nlabels): Make sure a default label
11883 is passed in, and simplify accordingly.
11884 (gimple_build_switch): Removed.
11885 (gimple_build_switch_vec): Rename to gimple_build_switch.
11886 * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use.
11887 * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL
11889 * stmt.c (expand_case): Simplify using the fact that every GIMPLE
11890 switch must have a default case.
11891 * tree-cfg.c (group_case_labels_stmt): Likewise.
11892 (verify_gimple_switch): Use gimple_switch_label in verifier to get
11893 the label at index 0, and verify that it is a valid default case.
11894 * except.c (sjlj_emit_dispatch_table): Rewrite construction of the
11895 switch for dispatching.
11896 * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use.
11897 (lower_eh_dispatch): Likewise.
11898 * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case
11899 label at index 0 before turning it into a default case label.
11900 * omp-low.c (expand_omp_sections): Update gimple_build_switch use.
11901 * tree-switch-conversion.c (emit_case_bit_tests): Get the default case
11902 label using gimple_switch_default_label.
11903 (collect_switch_conv_info): Likewise.
11904 (process_switch): Likewise.
11905 * doc/gimple.texi: Update documentation of gimple_build_switch.
11907 2012-09-04 Georg-Johann Lay <avr@gjlay.de>
11910 * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
11913 2012-09-04 Bin Cheng <bin.cheng@arm.com>
11916 * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
11917 of size less than 4 bytes by using macro ARM_NUM_INTS.
11918 (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
11920 2012-09-04 Richard Guenther <rguenther@suse.de>
11922 PR tree-optimization/54458
11923 * tree-ssa-threadupdate.c (thread_through_loop_header): If we
11924 turn the loop into one with multiple latches mark it so.
11926 2012-09-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11929 * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
11931 (avr_allocate_stack_slots_for_args): ...this new static function.
11933 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
11935 * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT
11937 (arm_emit_coreregs_64bit_shift): Likewise.
11939 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
11941 * config/arm/arm.c (arm_evpc_neon_vext): New function.
11942 (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext.
11944 2012-09-04 Oleg Endo <olegendo@gcc.gnu.org>
11947 * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
11948 canonicalization code into...
11949 * (sh_canonicalize_comparison): This new function.
11950 * config/sh/sh-protos.h: Declare it.
11951 * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
11952 * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
11953 always invoke expand_cbranchsi4.
11955 2012-09-03 Andi Kleen <ak@linux.intel.com>
11957 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
11958 addr_offset always.
11960 2012-09-03 Andrew Pinski <apinski@cavium.com>
11963 * tree-if-conv.c (constant_or_ssa_name): New function.
11964 (fold_build_cond_expr): New function.
11965 (predicate_scalar_phi): Use fold_build_cond_expr instead of build3.
11966 (predicate_mem_writes): Likewise.
11968 2012-09-03 Marc Glisse <marc.glisse@inria.fr>
11970 * fold-const.c (fold_ternary_loc): Constant-propagate after
11971 removing dead operands.
11973 2012-09-03 Michael Matz <matz@suse.de>
11975 PR tree-optimization/46590
11976 * tree-cfg.c (gimple_duplicate_sese_region): Don't update
11978 * tree-ssa-loop-ch.c (copy_loop_headers): ... but here.
11980 2012-09-03 Sandra Loosemore <sandra@codesourcery.com>
11982 * doc/invoke.texi: Fix numerous typos and punctuation/grammatical
11983 errors throughout the file. Re-word some awkward sentences and
11986 2012-09-03 Richard Guenther <rguenther@suse.de>
11988 PR tree-optimization/54362
11989 * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR.
11991 2012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11993 * config/s390/s390.c (s390_loadrelative_operand_p): New function.
11994 (s390_check_qrst_address, print_operand_address): Use
11995 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11996 (s390_check_symref_alignment): Accept pointer size alignment for
11998 (legitimize_pic_address): Use load relative on z10 or later.
12000 2012-09-03 Jakub Jelinek <jakub@redhat.com>
12003 * valtrack.c (dead_debug_insert_temp): Drop non-reg uses
12006 2012-09-03 Joseph Myers <joseph@codesourcery.com>
12008 * common.opt (--no-sysroot-suffix): New driver option.
12009 * doc/invoke.texi (--no-sysroot-suffix): Document.
12010 * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not
12011 needing spec processing.
12012 (main): Do not process sysroot suffixes if no_sysroot_suffix.
12014 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
12017 * common/config/sh/sh-common.c: Update copyright years.
12018 (sh_option_init_struct): Delete.
12019 (TARGET_OPTION_INIT_STRUCT): Likewise.
12021 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
12024 * config/sh/sh.md (cmpgeusi_t): Remove N alternative.
12025 Check operands[1] in split condition instead of operands[0].
12028 2012-09-02 Mark Kettenis <kettenis@openbsd.org>
12030 * config.gcc (x86_64-*-openbsd*): New target.
12031 * config.host (*-*-openbsd*): New target.
12032 * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
12033 * config/i386/openbsdelf.h: Remove some superfluous defines and
12034 group things together in a more logical fashion.
12035 (DBX_REGISTER_NUMBER): Provide a
12036 definition that works on both 32-bit and 64-bit targets.
12037 (WCHAR_TYPE_SIZE): Hardcode as 32.
12038 (NO_DOLLAR_IN_LABEL): Remove undef.
12039 (TARGET_DEFAULT): Remove.
12040 (SET_ASM_OP): Remove.
12041 (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
12042 (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
12043 (DWARF2_UNWIND_INFO): Remove define.
12044 (HAVE_ENABLE_EXECUTE_STACK): Define.
12045 * config/host-openbsd.c: New file.
12046 * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
12047 * config/x-openbsd: New file.
12049 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
12051 * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
12052 mode to sh_legitimate_index_p instead of QImode.
12054 2012-09-02 Eric Botcazou <ebotcazou@adacore.com>
12056 PR rtl-optimization/54369
12057 * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
12058 calling dbr_schedule.
12059 * config/sparc/sparc.c (sparc_reorg): Likewise.
12061 2012-09-01 Jakub Jelinek <jakub@redhat.com>
12064 * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
12065 operands[1] is CONST_INT_P, convert it to QImode before printing.
12067 2012-09-01 Andrew Pinski <apinski@cavium.com>
12069 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
12070 A truncate of a memory is just loading the low part of the memory.
12072 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
12076 * config/i386/i386.c (ix86_legitimate_combined_insn): New function.
12077 (TARGET_LEGITIMATE_COMBINED_INSN): New macro.
12079 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
12081 * target.def (legitimate_combined_insn): New target hook.
12082 * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
12083 * doc/tm.texi: Regenerated.
12084 * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
12085 to allow targets to reject combined insn.
12086 * hooks.h (hook_bool_rtx_true): New.
12087 * hooks.c (hook_bool_rtx_true): Ditto.
12089 2012-08-31 Martin Jambor <mjambor@suse.cz>
12091 * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
12092 nonconstant_names after calculate_dominance_info and
12093 loop_optimizer_init.
12095 2012-08-31 Greta Yorsh <Greta.Yorsh@arm.com>
12097 * config/arm/arm.c (arm_expand_epilogue): Remove unused variable
12100 2012-08-31 Martin Jambor <mjambor@suse.cz>
12102 PR middle-end/54409
12103 * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
12104 checking condition.
12106 2012-08-31 Martin Jambor <mjambor@suse.cz>
12108 * ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
12109 (predicate_for_phi_result): Likewise.
12110 (estimate_function_body_sizes): Use the above two functions.
12112 2012-08-31 Martin Jambor <mjambor@suse.cz>
12114 PR middle-end/54394
12115 * ipa-inline-analysis.c (estimate_function_body_sizes): Compute
12116 dominance info and loops whenever optimizing.
12118 2012-08-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12119 Richard Earnshaw <richard.earnshaw@arm.com>
12122 * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
12123 element size. Use elem_type from the formal parameter. New parameter
12125 (neon_expand_args): Adjust call to neon_dereference_pointer.
12127 2012-08-29 Steven Bosscher <steven@gcc.gnu.org>
12129 * cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
12131 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
12134 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
12135 mapping style, add ../lib/mips16.
12136 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
12137 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
12139 2012-08-29 Richard Sandiford <rdsandiford@googlemail.com>
12141 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
12144 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
12146 * config/sh/sh.opt (menable-tas): Rename to mtas.
12147 * doc/invoke.texi (SH options): Likewise.
12148 * config/sh/sync.md: Update comments.
12150 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
12152 * config/sh/iterators.md: New file.
12153 * config/sh/sync.md (I124, I12, i124suffix): Delete. Replace usage
12154 with new iterators QIHISI, QIHI, bw, bwl respectively throughout
12156 * config/sh/sh.md: Include new file iterators.md.
12157 (zero_extendhisi2, zero_extendqisi2): Fold into zero_extend<mode>si2.
12158 (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into
12159 *zero_extend<mode>si2_compact.
12160 (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into
12161 *zero_extend<mode>si2_disp_mem.
12162 (extendhisi2, extendqisi2): Fold into extend<mode>si2.
12163 (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into
12164 *extend<mode>si2_compact_reg.
12165 (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold
12166 into *extend<mode>si2_compact_mem_disp.
12167 (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into
12168 *extend<mode>si2_compact_snd.
12169 (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename
12170 to *movsi_index_disp_load, *movhi_index_disp_load,
12171 *mov<mode>_index_disp_store.
12172 (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov<mode>_reg_reg.
12173 (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into
12174 *mov<mode>_store_mem_disp04.
12175 (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into
12176 *mov<mode>_store_mem_disp12.
12177 (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into
12178 *mov<mode>_load_mem_disp04 and *mov<mode>_load_mem_disp12.
12180 2012-08-29 Martin Jambor <mjambor@suse.cz>
12182 * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not
12183 do_estimate_edge_time.
12185 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
12187 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm
12188 directives, remove #ifndef __mips16 guards.
12189 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
12190 mapping style, add ../lib/mips16.
12191 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
12192 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
12194 2012-08-28 Walter Lee <walt@tilera.com>
12195 * confg/tilegx/tilegx.md: Fix code style.
12196 (*zero_extendsidi_truncdisi): Fix typo.
12197 * config/tilegx/tilegx.c: Fix code style.
12198 (tilegx_function_profiler): Fix typo.
12200 2012-08-28 Walter Lee <walt@tilera.com>
12202 * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
12203 * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
12204 (CRT_CALL_STATIC_FUNCTION): Define.
12205 * config/tilegx/predicates.md (const_last_symbolic_operand):
12206 Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
12207 UNSPEC_HW2_LAST_PLT_PCREL.
12208 (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
12209 UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
12210 * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
12211 and renumber the constants that follow.
12212 (UNSPEC_HW1_PCREL): Ditto.
12213 (UNSPEC_HW2_LAST_PCREL): Ditto.
12214 (UNSPEC_HW0_PLT_PCREL): Define.
12215 (UNSPEC_HW1_PLT_PCREL): Define.
12216 (UNSPEC_HW1_LAST_PLT_PCREL): Define.
12217 (UNSPEC_HW2_LAST_PLT_PCREL): Define.
12218 (mov_large_pcrel_step1): Define.
12219 (mov_large_pcrel_step2): Define.
12220 (mov_large_pcrel_step3): Define.
12221 (mov_large_pcrel_step4): Define.
12222 (mov_plt_pcrel_step1): Define.
12223 (mov_plt_pcrel_step2): Define.
12224 (mov_plt_pcrel_step3): Define.
12225 (mov_plt_pcrel_step1_32bit): Define.
12226 (mov_plt_pcrel_step2_32bit): Define.
12227 (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
12228 (call_value): Ditto.
12229 * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
12230 (mcmodel): New option.
12231 (enum cmodel): Define.
12232 (CM_SMALL): Define.
12233 (CM_LARGE): Define.
12234 * config/tilegx/tilegx-opts.h: New file.
12235 * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
12237 (tilegx_compute_pcrel_plt_address): Declare.
12238 * config/tilegx/tilegx.c (tilegx_option_override): Handle
12240 (tilegx_function_ok_for_sibcall): Ditto.
12241 (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
12242 and don't declare static. Handle tilegx_cmodel.
12243 (tilegx_compute_pcrel_plt_address): Define.
12244 (tilegx_legitimize_pic_address): Rename calls to
12245 compute_pcrel_address.
12246 (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
12247 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
12248 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
12249 (load_pic_register): Rename call to compute_pcrel_address.
12250 (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
12251 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
12252 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
12254 2012-08-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12256 * sched-deps.c (add_dependence_list_and_free): Simplify.
12257 (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free
12258 lists when add_dependence_list_and_free doesn't free them.
12260 2012-08-27 Uros Bizjak <ubizjak@gmail.com>
12263 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
12264 true for TARGET_64BIT or !flag_pic.
12265 * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
12266 (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
12267 to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator.
12268 Add insn constraint. Conditionally emit xchg asm insns.
12269 (atomic_compare_and_swap<mode>): Update calls. Check only
12270 cmpxchg8b_pic_memory_operand in memory address fixup.
12271 (DCASMODE): Remove.
12272 (CASHMODE): Rename from DCASHMODE.
12273 (doublemodesuffix): Update modes.
12274 (regprefix): New mode attribute.
12276 (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
12277 <UNSPECV_CMPXCHG>: New constant.
12278 (atomic_compare_and_swap<mode>_1): Rename from
12279 atomic_compare_and_swap_single<mode>. Update calls and
12280 unspec_volatile constants.
12281 (atomic_compare_and_swap<mode>_doubleword): Rename from
12282 atomic_compare_and_swap_double<mode>. Update calls and
12283 unspec_volatile constants.
12285 2012-08-27 Walter Lee <walt@tilera.com>
12287 * doc/md.texi (TILE-Gx): Fix typo.
12289 2012-08-27 Walter Lee <walt@tilera.com>
12291 * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
12292 * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
12294 2012-08-27 Walter Lee <walt@tilera.com>
12296 * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
12297 (insn_bfins): Delete.
12299 2012-08-27 Walter Lee <walt@tilera.com>
12301 * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
12302 atomic_exchange_bare<mode>,
12303 atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
12304 * config/tilegx/tilegx-generic.md (X1_remote): New
12306 * config/tilegx/tilegx.md (type): Add X1_remove.
12307 (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
12308 insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
12309 insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
12312 2012-08-27 Andreas Schwab <schwab@linux-m68k.org>
12314 * gdbinit.in: Fix syntax of skip command.
12316 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
12318 * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
12319 SYMBOL_REF SET_SRCs.
12321 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
12323 * config/mips/mips.c (vr4130_align_insns): Don't simulate
12324 ghost instructions. Assert that the required instructions exist.
12326 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12328 * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
12330 * config/mips/mips.c (machine_function): Add next_fcc.
12331 (mips_output_move): Remove handling of fcc moves.
12332 (mips_allocate_fcc): New function.
12333 (mips_emit_compare, mips_expand_vcondv2sf): Use it.
12334 (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
12335 Remove special case for CCmode reloads.
12336 (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
12337 the result a fixed operand.
12338 * config/mips/mips.md (move_type): Remove lui_movf.
12339 (type, length): Remove references to it.
12340 (movcc, reload_incc, reload_outcc): Delete.
12342 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12344 * config/mips/mips.c (mips_has_long_branch_p): New function,
12346 (mips_expand_ghost_gp_insns): ...here. Look inside sequences.
12348 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12350 * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
12352 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12354 * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
12356 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12358 * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
12359 to the size cost of multiplication.
12361 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12363 * doc/install.texi (Specific): Clarify what needs to be added to
12366 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12368 * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
12369 and NO_DOT_IN_LABEL from here...
12370 (Label Output): ...to here.
12371 * doc/tm.texi: Regenerate.
12373 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12375 * doc/invoke.texi (C++ Dialect Options): Add missing space.
12377 2012-08-25 Eric Botcazou <ebotcazou@adacore.com>
12379 PR rtl-optimization/54088
12380 * jump.c (delete_related_insns): Robustify latest change.
12382 2012-08-25 Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
12384 * doc/extend.texi (__atomic Builtins): Remove space before comma.
12386 2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
12387 Andrew Pinski <apinski@cavium.com>
12389 * config/mips/mips.h (CASE_VECTOR_MODE): For not
12390 TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
12391 (CASE_VECTOR_SHORTEN_MODE): Likewise.
12393 2012-08-25 Uros Bizjak <ubizjak@gmail.com>
12395 * config/i386/i386.h (FP_REG_P): Remove macro.
12396 (FP_REGNO_P): Ditto.
12397 (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
12398 (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
12399 (ANY_FP_REGNO_P): Ditto.
12400 (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
12401 * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
12402 instead of FP_REGNO_P.
12403 (ix86_hard_regno_mode_ok): Ditto.
12404 * config/i386/predicates.md (fp_register_operand): Ditto.
12405 (register_and_not_fp_reg_operand): Ditto.
12406 * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
12409 * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
12411 2012-08-24 Jason Merrill <jason@redhat.com>
12413 * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
12414 on TREE_VEC or SSA_NAME.
12416 2012-08-24 Jakub Jelinek <jakub@redhat.com>
12419 * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
12420 if init is a CONSTRUCTOR.
12422 2012-08-24 Steven Bosscher <steven@gcc.gnu.org>
12424 * tree-ssa-live.c (dump_var_map): Do not dump the partition
12425 map of virtual operands.
12427 2012-08-24 Yuri Rumyantsev <ysrumyan@gmail.com>
12429 * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
12430 case for Atom processor.
12432 2012-08-24 Simon Baldwin <simonb@google.com>
12434 * dwarf2out.c (gen_producer_string): Omit command line switch if
12435 CL_NO_DWARF_RECORD flag set.
12436 * opts.h (CL_NO_DWARF_RECORD): New.
12437 * opt-functions.awk (switch_flags): Add NoDWARFRecord.
12438 * doc/options.texi: Document NoDWARFRecord option flag.
12440 2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
12443 * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
12444 frame_pointer_rtx for based_loc_descr.
12446 2012-08-24 Martin Jambor <mjambor@suse.cz>
12448 * predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl
12449 instead of current_function_decl, use profile_status_for_function and
12450 ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
12451 (maybe_hot_count_p): New parameter fun, use
12452 profile_status_for_function instead of its cfun_variant.
12453 (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
12455 (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
12456 maybe_hot_frequency_p.
12457 (probably_never_executed_bb_p): New parameter fun, use its decl
12458 instead of current_function_decl.
12459 (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
12460 (rtl_profile_for_bb): Likewise.
12461 (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
12462 probably_never_executed_bb_p.
12463 * tree-ssa-operands.c (ssa_operands_active): New operator fun. Use it
12465 (update_stmt_operands): Pass cfun as an argument of
12466 ssa_operands_active.
12467 (swap_tree_operands): Likewise.
12468 * gimple-iterator.c (update_modified_stmt): Likewise.
12469 (update_modified_stmts): Likewise.
12470 * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
12471 * tree-ssa.c (delete_tree_ssa): Likewise.
12472 * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
12473 (push_to_next_round_p): Likewise.
12474 (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
12475 * cfg.c: Inlude tree.h.
12476 (check_bb_profile): Use profile_status_for_function,
12477 EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
12478 DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
12480 (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
12481 maybe_hot_bb_p and probably_never_executed_bb_p.
12482 * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
12483 DECL_STRUCT_FUNCTION (current_function_decl) is not NULL. Pass it to
12484 dump_histograms_for_stmt.
12485 (dump_gimple_mem_ops): Pass
12486 DECL_STRUCT_FUNCTION (current_function_decl)
12487 as an argument to dump_gimple_mem_ops.
12488 * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
12489 Do not change cfun. Change and restore current_function_decl.
12490 * Makefile.in (cfg.o): Include TREE_H in dependencies.
12492 2012-08-24 Georg-Johann Lay <avr@gjlay.de>
12495 * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
12496 * avr/avr-fixed.md: New file.
12497 * avr/avr.md: Include it.
12499 (adjust_len): Add: minus, minus64, ufract, sfract.
12500 (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
12501 (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
12502 (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
12503 (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
12504 subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
12505 cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
12506 (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
12507 ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
12508 *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
12509 16-bit modes in ALL2.
12510 (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
12511 (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
12512 ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
12513 *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
12514 32-bit modes in ALL4.
12515 * avr-dimode.md (ALL8): New mode iterator.
12516 (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
12517 subdi3_const_insn, cbranchdi4, compare_di2,
12518 compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
12519 ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
12520 all 64-bit modes in ALL8.
12521 * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
12522 (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
12523 * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
12524 (avr_fixed_point_supported_p): ...this new static function.
12525 (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
12526 (avr_build_builtin_va_list): ...this new static function.
12527 (avr_adjust_type_node): New static function.
12528 (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
12529 (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
12530 pseudo instead of gen_rtx_MINUS.
12531 (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
12532 (notice_update_cc): Handle: CC_MINUS.
12533 (output_movqi): Generalize to handle respective fixed-point modes.
12534 (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
12535 (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
12536 (avr_assemble_integer): Ditto.
12537 (output_reload_in_const, output_reload_insisf): Ditto.
12538 (avr_compare_pattern): Skip all modes > 4 bytes.
12539 (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
12540 (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
12541 (avr_to_int_mode): New function.
12542 (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
12543 ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
12544 * config/avr/predicates.md (const0_operand): Allow const_fixed.
12545 (const_operand, const_or_immediate_operand): New.
12546 (nonmemory_or_const_operand): New.
12547 * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
12549 * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
12551 2012-08-23 Kenneth Zadeck <zadeck@naturalbridge.com>
12553 * alias.c (rtx_equal_for_memref_p): Convert constant cases.
12554 * combine.c (find_single_use_1, mark_used_regs_combine): Convert
12556 * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
12557 count_reg_usage): Convert constant cases.
12558 * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
12559 (cselib_subst_to_values): Convert constant cases.
12560 * df-scan.c (df_uses_record): Ditto.
12561 * dse.c (const_or_frame_p): Convert case statements to explicit
12562 if-then-else using mode classes.
12563 * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
12564 * explow.c (convert_memory_address_addr_space): Ditto.
12565 * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
12566 * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
12567 * ira.c (equiv_init_varies_p, contains_replace_regs,
12568 memref_referenced_p, rtx_moveable_p): Ditto.
12569 * jump.c (mark_jump_label_1): Remove constant cases.
12570 (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
12571 * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
12572 invariant_expr_equal_p): Convert to CASE_CONST_ANY.
12573 * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
12574 * reginfo.c (reg_scan_mark_refs): Ditto.
12575 * regrename.c (scan_rtx): Ditto.
12576 * reload1.c (eliminate_regs_1, elimination_effects,
12577 scan_paradoxical_subregs): Ditto.
12578 * reload.c (operands_match_p, subst_reg_equivs): Ditto.
12579 * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
12580 * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
12581 (reg_mentioned_p, modified_between_p, modified_in_p)
12582 (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
12583 inequality_comparisons_p, computed_jump_p_1): Ditto.
12584 * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
12585 * sched-deps.c (sched_analyze_2): Ditto.
12586 * valtrack.c (cleanup_auto_inc_dec): Ditto.
12587 * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
12588 CASE_CONST_ANY): New macros.
12590 2012-08-23 Julian Brown <julian@codesourcery.com>
12591 Sandra Loosemore <sandra@codesourcery.com>
12593 * config/mips/mips.md
12594 (UNSPEC_CASESI_DISPATCH): New.
12595 (MIPS16_T_REGNUM): New constant.
12596 (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
12598 (casesi_internal_mips16_<mode>): New.
12599 * config/mips/mips.c (mips16_split_long_branches): Adjust test
12600 to ignore casesi jump tables.
12601 * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
12603 (CASE_VECTOR_MODE): Use SImode unconditionally.
12604 (CASE_VECTOR_SHORTEN_MODE): Define.
12605 (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
12606 when necessary for MIPS16_SHORT_JUMP_TABLES.
12608 2012-08-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12610 * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
12612 2012-08-23 H.J. Lu <hongjiu.lu@intel.com>
12615 * doc/invoke.texi: Add -da and remove -dm.
12617 2012-08-23 Richard Guenther <rguenther@suse.de>
12619 * tree-vect-stmts.c (vect_finish_stmt_generation): Update
12622 2012-08-23 Jakub Jelinek <jakub@redhat.com>
12624 * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
12626 2012-08-23 Mingjie Xing <mingjie.xing@gmail.com>
12628 * doc/gty.texi: Fix typo.
12630 2012-08-23 Richard Guenther <rguenther@suse.de>
12632 * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
12633 (find_uses_to_rename_use): Likewise.
12634 (find_uses_to_rename_bb): Likewise.
12635 (find_uses_to_rename_stmt): Walk over all operands.
12637 2012-08-22 Oleg Endo <olegendo@gcc.gnu.org>
12640 * config/sh/predicates (p27_rshift_count_operand,
12641 not_p27_rshift_count_operand): New predicates.
12642 * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
12643 sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
12644 case when shift amount is 31.
12645 (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
12646 * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
12648 (ashlsi_c): Rename to shll. Adapt calls to gen_ashlsi_c throughout
12650 (lshrsi3): Remove clobber from expander. Use shift_count_operand
12651 instead of nonmemory_operand predicate for second operand. Add
12652 handling of case lshrsi3_n_clobbers_t.
12653 (lshrsi3_k): Use p27_rshift_count_operand for second operand.
12654 (lshrsi3_d): Make insn_and_split. Split dynamic shift to constant
12655 shift sequences if beneficial.
12656 (lshrsi3_n): Make insn_and_split. Split constant shift sequence to
12657 dynamic shift if beneficial.
12658 (lshrsi3_n_clobbers_t): New insn_and_split.
12659 (lshrsi3_m): Delete.
12661 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
12663 * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
12665 * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
12666 or rather a lack thereof.
12667 (init_alias_analysis): Propagate the latest information across
12668 the CFG in topological order to propagate as far as possible in
12669 each iteration. Ignore debug insns.
12671 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
12673 * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
12675 * config/i386/i386.c (flag_opts): Add -mlong-double-64.
12676 (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
12678 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
12679 TARGET_LONG_DOUBLE_64 is true.
12680 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
12681 (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
12683 * config/i386/i386.opt (mlong-double-80): New option.
12684 (mlong-double-64): Likewise.
12686 * config/i386/i386-c.c (ix86_target_macros): Define
12687 __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
12689 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
12692 * config/i386/i386.c (ix86_split_to_parts): Replace
12693 REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
12695 2012-08-22 Richard Guenther <rguenther@suse.de>
12697 * tree-vectorizer.c (vectorize_loops): Do not call
12698 mark_virtual_operands_for_renaming.
12699 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
12700 Do not update SSA form here.
12702 2012-08-22 Dodji Seketeli <dodji@redhat.com>
12704 * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
12706 2012-08-22 Richard Guenther <rguenther@suse.de>
12708 PR tree-optimization/46590
12709 * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
12710 counter output argument.
12711 (walk_non_aliased_vuses): Add alias query counter argument
12712 to the walker callback.
12713 * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
12714 output argument and count alias queries.
12715 (get_continuation_for_phi_1): Likewise.
12716 (get_continuation_for_phi): Likewise.
12717 (walk_non_aliased_vuses): Add alias query counter argument
12718 to the walker callback and allow it to abort the walk by
12720 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12721 * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
12722 counter parmeter, abort walk if that is bigger than
12723 --param sccvn-max-alias-queries-per-access.
12724 * params.def (sccvn-max-alias-queries-per-access): New param.
12725 * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
12727 2012-08-22 Richard Guenther <rguenther@suse.de>
12729 * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
12730 * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
12731 instead of gcc_assert.
12732 (mark_block_for_update): Likewise.
12733 (add_new_name_mapping): Likewise.
12734 (mark_def_sites): Likewise.
12735 (insert_phi_nodes_for): Likewise.
12736 (rewrite_debug_stmt_uses): Likewise.
12737 (rewrite_stmt): Likewise.
12738 (maybe_register_def): Likewise.
12739 (rewrite_update_phi_arguments): Likewise.
12740 (rewrite_update_enter_block): Likewise.
12741 (mark_def_interesting): Likewise.
12742 (prepare_def_site_for): Likewise.
12743 (insert_updated_phi_nodes_for): Likewise.
12745 2012-08-22 Jakub Jelinek <jakub@redhat.com>
12747 * tree-vect-loop.c (vect_transform_loop): Initialize
12748 check_profitability to false.
12750 * tree-predcom.c (try_combine_chains): Free the worklist vector
12753 2012-08-22 Marc Glisse <marc.glisse@inria.fr>
12755 PR tree-optimization/54317
12756 * tree-vrp.c (extract_range_from_binary_expr_1): Test for
12757 double_int overflow.
12760 2012-08-22 Jakub Jelinek <jakub@redhat.com>
12762 * tree-vrp.c (find_assert_locations): Skip also edges
12763 from the entry block.
12765 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
12766 free_stmt_vec_info on orig_cond after gsi_removing it.
12767 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
12768 free body_cost_vec vector.
12769 (vect_analyze_data_refs): If gather is unsuccessful,
12770 free_data_ref (dr).
12771 * tree-inline.c (tree_function_versioning): Free
12772 old_transforms_to_apply vector.
12774 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
12776 * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
12777 of this a VEC and add a bitmap obstack.
12778 (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
12780 (ssa_conflicts_delete): Free the VEC and release the obstack.
12781 (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
12782 ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
12783 (truct live_track_d): Add another bitmap obstack here.
12784 (new_live_track): Initialize it and use it for all bitmaps.
12785 (delete_live_track): Don't free the bitmaps one at a time, just
12786 release the obstack.
12787 (create_outofssa_var_map): Fix to conform to GCC code style rules.
12789 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
12791 * config/m32c/constraints.md: New file.
12792 * config/m32c/t-m32c (MD_FILES): Add constraints.
12793 * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
12794 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
12795 (m32c_reg_class_from_constraint): Delete.
12796 (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
12797 (m32c_matches_constraint_p): Declare.
12798 * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
12799 (REG_CLASS_FROM_CONSTRAINT): Delete.
12800 (CONST_OK_FOR_CONSTRAINT_P): Delete.
12801 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
12802 (EXTRA_CONSTRAINT_STR): Delete.
12803 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
12804 * config/m32c/m32c.c: Include tm-constrs.h
12805 (m32c_reg_class_from_constraint): Delete.
12806 (m32c_const_ok_for_constraint_p): Delete.
12807 (m32c_extra_constraint_p2): Rename to...
12808 (m32c_matches_constraint_p): ...this. Make it return bool. Tweak
12810 (m32c_extra_constraint_p): Delete.
12811 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
12812 (m32c_split_move): Use satisfies_constraint_Ss.
12813 * config/m32c/predicates.md (memsym_operand): Use
12814 satisfies_constraint_Si.
12815 (memimmed_operand): Use satisfies_constraint_Sp.
12816 (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
12817 (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
12818 (m32c_1mask8_operand): Use satisfies_constraint_ImB.
12819 (m32c_1mask16_operand): Use satisfies_constraint_Imw.
12821 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
12823 * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
12824 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12825 (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
12826 * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
12827 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
12828 * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
12829 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
12831 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
12833 * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
12834 cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
12835 truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
12836 ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
12837 call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
12838 sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
12839 casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
12840 sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
12841 stack_protect_set_di_media, stack_protect_test_si,
12842 stack_protect_test_si_media, stack_protect_test_di_media): Convert to
12843 multi-line asm output strings.
12844 (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
12846 (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
12847 call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
12848 bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12849 bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
12850 Use tab char instead of '\\t'.
12851 (iordi3): Use braced string.
12852 (*movsi_pop): Use tab chars instead of spaces.
12854 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
12857 * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
12860 2012-08-21 H.J. Lu <hongjiu.lu@intel.com>
12862 PR middle-end/54332
12863 * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
12864 inside the insn traversal loop.
12866 * vec.h (vec_reserve): Remove the stack allocation check.
12868 2012-08-21 Marc Glisse <marc.glisse@inria.fr>
12870 * fold-const.c (fold_ternary_loc): Detect identity permutations.
12871 Canonicalize permutations more.
12872 * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
12873 (simplify_permutation): Likewise.
12874 (ssa_forward_propagate_and_combine): Call it.
12876 2012-08-21 Richard Guenther <rguenther@suse.de>
12878 * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
12879 the affine expansion cache.
12880 * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
12882 (free_expr_hash_elt): ... this one.
12883 (record_cond): Properly free a not needed hashtable element.
12884 (lookup_avail_expr): Likewise.
12885 * tree-into-ssa.c (init_ssa_renamer): Specify a free function
12886 for the var_infos hashtable.
12887 (update_ssa): Likewise.
12889 2012-08-21 Richard Guenther <rguenther@suse.de>
12891 * alloc-pool.c (pool_alloc): Fix valgrind annotation.
12892 * tree.h: Fix typo and complete flags documentation.
12894 2012-08-21 Richard Guenther <rguenther@suse.de>
12896 * tree.h (struct tree_base): Add union to make it possible to
12897 re-use the upper 4 bytes for tree codes that do not need as
12898 many flags as others. Move visited and default_def_flag to
12899 common bits section in exchange for saturating_flag and
12900 unsigned_flag. Add SSA name version and tree vec length
12902 (struct tree_vec): Remove length field here.
12903 (struct tree_ssa_name): Remove version field here.
12905 2012-08-20 Jan Hubicka <jh@suse.cz>
12908 * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
12910 (edge_badness): Likewise.
12911 * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
12912 (inline_summary): Add loop_iterations.
12913 * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
12914 (dump_inline_hints): Dump loop_iterations.
12915 (reset_inline_summary): Free loop_iterations.
12916 (inline_node_duplication_hook): Update loop_iterations.
12917 (dump_inline_summary): Dump loop_iterations.
12918 (will_be_nonconstant_expr_predicate): New function.
12919 (estimate_function_body_sizes): Analyze loops.
12920 (estimate_node_size_and_time): Set hint loop_iterations.
12921 (inline_merge_summary): Merge loop iterations.
12922 (inline_read_section): Stream in loop_iterations.
12923 (inline_write_summary): Stream out loop_iterations.
12925 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
12928 * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
12929 (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
12930 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
12931 * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
12933 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
12936 * config/sh/sh.md (*cset_zero): New insns.
12938 2012-08-20 Mark Wielaard <mjw@redhat.com>
12940 * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
12941 * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
12942 (add_AT_low_high_pc): New function.
12943 (AT_lbl): Handle dw_val_class_high_pc.
12944 (print_die): Likewise.
12945 (attr_checksum): Likewise.
12946 (attr_checksum_ordered): Likewise.
12947 (same_dw_val_p): Likewise.
12948 (size_of_die): Likewise.
12949 (value_format): Likewise.
12950 (output_die): Likewise.
12951 (gen_subprogram_die): Use add_AT_low_high_pc.
12952 (add_high_low_attributes): Likewise.
12953 (dwarf2out_finish): Likewise.
12955 2012-08-20 Jakub Jelinek <jakub@redhat.com>
12957 PR rtl-optimization/54294
12958 * fwprop.c (all_uses_available_at): Ignore debug insns in between
12959 def_insn and target_insn when checking whether the shortcut is
12962 2012-08-20 Eric Botcazou <ebotcazou@adacore.com>
12964 * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
12966 2012-08-20 Patrick Marlier <patrick.marlier@gmail.com>
12968 PR middle-end/53992
12969 * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
12971 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
12974 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
12975 declaration and setter.
12977 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
12980 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
12982 (is_widening_mult_rhs_p): Use it.
12984 2012-08-20 Joseph Myers <joseph@codesourcery.com>
12986 * configure.ac (ffs): Check for declaration.
12987 * configure, config.in: Regenerate.
12989 2012-08-20 Richard Guenther <rguenther@suse.de>
12991 * tree-flow.h (register_new_name_mapping): Remove.
12992 * tree-into-ssa.c (register_new_name_mapping): Likewise.
12993 (add_new_name_mapping): Do not push/pop timevar here.
12994 (create_new_def_for): Instead do it here. Initialize
12995 update-ssa here, handle a NULL def.
12996 * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
12998 2012-08-20 Richard Guenther <rguenther@suse.de>
13000 PR tree-optimization/54327
13001 * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
13002 if the use is registered for SSA update.
13004 2012-08-20 Jakub Jelinek <jakub@redhat.com>
13006 PR tree-optimization/54321
13007 * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
13008 as second argument to tree_low_cst call on val2.
13010 2012-08-20 Richard Guenther <rguenther@suse.de>
13012 * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
13014 2012-08-20 Richard Guenther <rguenther@suse.de>
13017 * genoutput.c (note_constraint): Properly use CONST_CAST.
13019 2012-08-19 Nick Clifton <nickc@redhat.com>
13022 * config/arm/mmintrin.h: Remove spurious #endif.
13024 2012-08-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13026 * config/avr/avr-log.c (avr_log_vadump): Properly use
13027 int-promoted enum values.
13028 * config/avr/avr.h (struct mcu_type_s): Change `arch' from
13029 int to enum avr_arch.
13030 * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
13032 2012-08-18 Jan Hubicka <jh@suse.cz>
13035 * ipa-inline.c (want_inline_small_function_p): Bypass
13036 inline limits for hinted functions.
13037 (edge_badness): Dump hints; decrease badness for hinted funcitons.
13038 * ipa-inline.h (enum inline_hints_vals): New enum.
13039 (inline_hints): New type.
13040 (edge_growth_cache_entry): Add hints.
13041 (dump_inline_summary): Update.
13042 (dump_inline_hints): Declare.
13043 (do_estimate_edge_hints): Declare.
13044 (estimate_edge_hints): New inline function.
13045 (reset_edge_growth_cache): Update.
13046 * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
13047 * ipa-inline-analysis.c (dump_inline_hints): New function.
13048 (estimate_edge_devirt_benefit): Return true when function should be
13050 (estimate_calls_size_and_time): New hints argument; set it when
13051 devritualization happens.
13052 (estimate_node_size_and_time): New hints argument.
13053 (do_estimate_edge_time): Cache hints.
13054 (do_estimate_edge_growth): Update.
13055 (do_estimate_edge_hints): New function
13057 2012-08-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13059 PR middle-end/53823
13060 * expmed.c (expand_mult): Skip synth_mult for negative coefficients
13061 if the mode is larger than a wide int and it is too costly to multiply
13062 by a positive multiplier and negate the result.
13064 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
13066 * sparseset.c (sparseset_alloc): Use non-clearing allocation. Tell
13067 valgrind not to worry about reading from unitialized memory.
13069 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
13071 PR middle-end/54313
13072 * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
13073 freed when its obstack is release.
13075 2012-08-18 Andrew Pinski <pinskia@gmail.com>
13077 * alloc-pool.c (pool_alloc): Add valgrind markers.
13078 (pool_free): Likewise.
13080 2012-08-17 Walter Lee <walt@tilera.com>
13082 * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
13083 (FEEDBACK_ENTER): Define.
13084 (FEEDBACK_REENTER): Define.
13085 (FEEDBACK_ENTRY): Define.
13086 * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
13087 (FEEDBACK_ENTER): Define.
13088 (FEEDBACK_REENTER): Define.
13089 (FEEDBACK_ENTRY): Define.
13091 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
13092 Gary Funck <gary@intrepid.com>
13095 * config/i386/i386.c (ix86_member_type_forces_blk): New function.
13096 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
13098 * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
13100 2012-08-17 Marc Glisse <marc.glisse@inria.fr>
13102 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
13105 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
13107 * stor-layout.c (compute_record_mode): Replace
13108 MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
13109 (layout_type): Likewise.
13111 * system.h: Poison MEMBER_TYPE_FORCES_BLK.
13113 * target.def (member_type_forces_blk): New target hook.
13115 * targhooks.c (default_member_type_forces_blk): New.
13116 * targhooks.h (default_member_type_forces_blk): Likewise.
13118 * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
13119 (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
13120 * doc/tm.texi: Regenerated.
13122 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
13124 * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
13125 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
13127 * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
13128 (rs6000_member_type_forces_blk): New function.
13130 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
13132 * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
13133 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
13135 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
13137 2012-08-17 Diego Novillo <dnovillo@google.com>
13140 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
13141 * config.in: Regenerate.
13142 * configure: Regenerate.
13143 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
13145 2012-08-17 Richard Guenther <rguenther@suse.de>
13147 * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
13148 (struct bitmap_head_def): GTY skip current field.
13150 2012-08-17 Steven Bosscher <steven@gcc.gnu.org>
13152 PR middle-end/54146
13153 * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
13154 (memref_free): Don't free the bitmaps individually here.
13155 (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
13156 (analyze_memory_references): Likewise.
13157 (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
13158 (tree_ssa_lim_finalize): Release it.
13159 * dse.c (dse_bitmap_obstack): New bitmap obstack.
13160 (dse_obstack): New obstack.
13161 (get_group_info): Allocate the bitmaps on the new bitmap obstack.
13162 (dse_step0): Allocate the scratch bitmap on reg_obstack. Initialize
13163 the new bitmap obstack and normal obstack. Use XNEWVEC for bb_table.
13164 (record_store): Allocate regs_set on reg_obstack.
13165 (dse_step1): Allocate regs_live on reg_obstack.
13166 (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
13168 (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
13169 (dse_step3): Likewise.
13170 (dse_confluence_0): Likewise.
13171 (dse_confluence_n): Likewise.
13172 (dse_transfer_function): Likewise.
13173 (dse_step7): Destroy the new obstacks, and everything allocated on
13174 them, in one big sweep.
13175 (rest_of_handle_dse): Update.
13176 * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
13177 (add_stack_var_conflict): Allocate bitmaps on it.
13178 (add_scope_conflicts_1): Likewise.
13179 (add_scope_conflicts): Likewise.
13180 (update_alias_info_with_stack_vars): Likewise.
13181 (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
13182 Initialize the new bitmap obstack.
13183 (fini_vars_expansion): Release it.
13184 (estimated_stack_frame_size): Use init_vars_expansion to set things up
13185 and always clean up at the end.
13186 (expand_used_vars): Do the TREE_USED trickery here. Always call
13187 fini_vars_expansion.
13188 * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
13189 arrays of bitmap_head to avoid one indirection per bitmap access.
13190 (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
13191 make_live_on_entry): Update.
13192 * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
13193 (liveness_bitmap_obstack): New bitmap obstack.
13194 (remove_unused_locals): Use it to allocate all bitmaps on. Update
13195 for livein/liveout changes in tree-ssa-live.h.
13196 (delete_tree_live_info): Release the bitmap obstack.
13197 (loe_visit_block, live_worklist, set_var_live_on_entry,
13198 calculate_live_on_exit, dump_live_info): Update.
13199 (calculate_live_ranges): Initialize the bitmap.
13200 * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
13201 (new_temp_expr_table): Allocate bitmap on it.
13202 (make_dependent_on_partition, add_to_partition_kill_list,
13203 add_dependence, process_replaceable): Likewise.
13204 (find_replaceable_exprs): Initialize and release the new obstack here.
13205 * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
13206 for out_of_date_transfer_functions on df_bitmap_obstack.
13207 (df_live_add_problem): Likewise.
13208 (df_chain_add_problem): Likewise.
13209 (df_word_lr_add_problem): Likewise.
13211 2012-08-17 Nick Clifton <nickc@redhat.com>
13213 * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
13214 (branch_true): Likewise.
13215 (branch_false): Likewise.
13217 * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
13219 * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
13220 comparison and label.
13221 (branch_zero): Likewise.
13222 (branch_zero_inverted): Likewise.
13223 (branch_equality): Likewise.
13224 (branch_equality_inverted): Likewise.
13225 (extend-and-compare): Disable until reload issues can be resolved.
13226 * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
13228 (iq2000_function_arg_advance): Remove CONST_CAST2.
13230 * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
13233 2012-08-17 Georg-Johann Lay <avr@gjlay.de>
13235 * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
13236 gen-avr-mmcu-texi.c.
13238 2012-08-17 Richard Earnshaw <rearnsha@arm.com>
13240 * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
13241 * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
13244 2012-08-17 Richard Guenther <rguenther@suse.de>
13246 * hash-table.h (class hash_table): Use a descriptor template
13247 argument instead of decomposed element type and support functions.
13248 (struct pointer_hash): New generic typed pointer-hash.
13249 (struct typed_free_remove, struct typed_noop_remove): Generic
13250 hash_table support pieces.
13251 * coverage.c (struct counts_entry): Add hash_table support members.
13252 * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
13253 * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
13254 SSA name by SSA_NAME_VAR hash.
13255 (coalesce_ssa_name): Use it.
13256 * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
13257 (expression_to_id): Adjust.
13258 (struct expr_pred_trans_d): Add hash_table support.
13259 (phi_translate_table): Adjust.
13260 (phi_trans_lookup): Likewise.
13261 (phi_trans_add): Likewise.
13262 (do_regular_insertion): Likewise.
13263 * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
13264 (same_succ_htab): Adjust.
13265 (find_same_succ_bb): Likewise.
13266 (find_same_succ): Likewise.
13267 (update_worklist): Likewise.
13268 * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
13270 (redirection_data): Adjust.
13272 2012-08-17 Richard Guenther <rguenther@suse.de>
13274 * params.def (integer-share-limit): Decrease from 256 to 251,
13277 2012-08-17 Richard Guenther <rguenther@suse.de>
13279 * tree-sra.c (modify_function): Free redirect_callers vector.
13280 * ipa-split.c (split_function): Free args_to_pass vector.
13281 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
13282 body_cost_vec properly.
13283 (vect_enhance_data_refs_alignment): Likewise.
13284 * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
13286 (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
13287 * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
13288 (vect_analyze_slp_instance): Free everything.
13289 (destroy_bb_vec_info): Free the SLP instances.
13291 2012-08-17 Iain Sandoe <iain@codesourcery.com>
13293 * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
13296 2012-08-17 Jakub Jelinek <jakub@redhat.com>
13298 * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
13300 2012-08-16 Sandra Loosemore <sandra@codesourcery.com>
13302 * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
13303 (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
13304 (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
13305 (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
13306 (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
13308 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
13311 * config/sh/sh.md (addc): Add commutative modifier.
13312 (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
13314 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
13317 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
13318 potential T_REG clobber. Convert zero extending split to
13321 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
13324 * config/sh/sh.md (ashlsi3_d): Do not split if it would result
13325 in a T_REG clobber. Correct comment.
13326 (ashlsi3_n): Correct comment.
13328 2012-08-16 Hans-Peter Nilsson <hp@axis.com>
13330 PR middle-end/54261
13331 * optabs.c (expand_atomic_fetch_op): Save and restore code when
13332 retrying after failed attempt.
13334 2012-08-16 Yuri Rumyantsev <ysrumyan@gmail.com>
13336 * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
13337 additional argument.
13338 * config/i386/i386.md (ix86_split_lea_for_addr) : Add
13339 additional argument curr_insn.
13340 * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
13341 register first, depending on their defintion distances.
13342 (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
13344 (find_nearest_reg-def): New function. Find register with
13345 nearest definition.
13347 2012-08-16 Walter Lee <walt@tilera.com>
13349 * config.gcc (tilegx-*-linux*): Add feedback.h.
13350 (tilepro-*-linux*): Likewise.
13351 * config/tilegx/feedback.h: New file.
13352 * config/tilepro/feedback.h: New file.
13354 2012-08-16 Diego Novillo <dnovillo@google.com>
13359 * double-int.h: Move including of gmp.h ...
13360 * system.h: ... here.
13361 * realmpfr.h: Do not include gmp.h.
13362 * tree-ssa-loop-niter.c: Do not include gmp.h.
13364 2012-08-16 Segher Boessenkool <segher@kernel.crashing.org>
13366 * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
13368 2012-08-16 Richard Guenther <rguenther@suse.de>
13370 PR middle-end/54146
13371 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
13373 * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
13374 * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
13375 * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
13376 * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
13377 * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
13378 (tree_ssa_lim_finalize): Free all mem_refs.
13379 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
13380 scc when bailing out.
13381 * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
13382 * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
13383 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
13384 FOR_EACH_LOOP_BREAK.
13386 2012-08-16 Diego Novillo <dnovillo@google.com>
13389 * double-int.h: Move including of gmp.h ...
13390 * system.h: ... here.
13391 * realmpfr.h: Do not include gmp.h.
13392 * tree-ssa-loop-niter.c: Do not include gmp.h.
13394 2012-08-16 Steven Bosscher <steven@gcc.gnu.org>
13396 PR middle-end/54146
13397 * tree-flow.h (compute_global_livein): Remove prototype.
13398 * tree-into-ssa.c (compute_global_livein): Remove function.
13399 * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
13400 (find_sibling_superloop): New function.
13401 (compute_live_loop_exits): New function.
13402 (add_exit_phis_edge): Rename to add_exit_phi. Do not allow
13403 inserting a PHI in a block that is not a loop exit for VAR.
13404 Add dumping if TDF_DETAILS.
13405 (add_exit_phis_var): Rewrite.
13406 (add_exit_phis): Update.
13407 (get_loops_exits): Rewrite to return an array of per-loop exits
13408 rather than one bitmap with all loop exits.
13409 (find_uses_to_rename_bb): Ignore virtual PHI nodes.
13410 (rewrite_into_loop_closed_ssa): Update.
13412 2012-08-16 Nick Clifton <nickc@redhat.com>
13414 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
13415 before passing it to ASM_OUTPUT_LIMITED_STRING.
13417 * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
13419 * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
13420 * config/avr/avr.c (avr_legitimize_reload_address): Add casts
13421 for reload_type enums.
13422 (DEF_BUILTIN): Cast the icode to enum insn_code.
13424 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13426 * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
13428 * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
13430 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13432 * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13433 (RS6000_CALL_GLUE): Adjust for single assembler syntax.
13434 * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
13435 * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
13436 * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
13437 * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
13438 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
13439 * config/rs6000/darwin.md (whole file): Adjust to single
13441 * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13442 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
13443 * config/rs6000/dfp.md: (whole file): Adjust to single
13445 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13446 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
13447 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
13448 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
13449 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
13450 * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
13451 * config/rs6000/rs6000-tables.opt: Regenerate.
13452 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
13453 (num_insns_constant_wide): Adjust comments.
13454 (whole file): Adjust to single assembler syntax.
13455 (output_cbranch): Adjust comment.
13456 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
13457 * config/rs6000/rs6000.md: (whole file): Adjust to single
13459 * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
13460 (mold-mnemonics): Delete.
13461 * config/rs6000/spe.md: (whole file): Adjust to single
13463 * config/rs6000/sync.md: (whole file): Adjust to single
13465 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13466 (ASM_OUTPUT_REG_PUSH): Adjust.
13467 (ASM_OUTPUT_REG_POP): Adjust.
13468 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13469 * config/rs6000/vsx.md: (whole file): Adjust to single
13471 * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13472 * doc/invoke.texi: Adjust documentation to reflect the
13473 removal of -mnew-mnemonics and -mold-mnemonics.
13475 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13477 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
13478 Delete handling for -mno-powerpc and -mpowerpc.
13479 * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
13480 (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
13481 * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
13482 * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
13483 * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
13484 * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
13485 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
13486 * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
13487 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
13488 * config/rs6000/driver-rs6000.c (asm_names): Delete handling
13489 for -mcpu=common and -mpowerpc.
13490 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
13491 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
13492 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
13493 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
13494 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
13495 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
13496 Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
13497 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
13498 (rs6000_cpu_cpp_builtins): Adjust.
13499 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
13500 (rs6000_builtin_mask_calculate): Adjust.
13501 (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
13502 (rs6000_init_libfuncs): Ditto.
13503 (rs6000_output_function_prologue): Ditto.
13504 (rs6000_opt_masks): Delete MASK_POWERPC.
13505 (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
13506 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
13507 (RS6000_BTM_POWERPC): Delete.
13508 (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
13509 * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
13510 TARGET_POWERPC always on.
13511 (extendqihi2 patterns): Similar.
13512 (various unnamed subtract patterns): Similar.
13513 (bswaphi2 patterns): Similar.
13514 (divmodsi4): Similar.
13515 (udiv<GPR:mode>3): Similar.
13516 (div<GPR:mode>3 patterns): Similar.
13517 (udivmodsi4): Similar.
13518 (mulhcall): Delete.
13519 (mullcall): Delete.
13520 (divss_call): Delete.
13521 (divus_call): Delete.
13522 (quoss_call): Delete.
13523 (quous_call): Delete.
13524 (insvsi patterns): Adjust.
13525 (addsf3 patterns): Adjust.
13526 (subsf3 patterns): Adjust.
13527 (mulsf3 patterns): Adjust.
13528 (divsf3 patterns): Adjust.
13529 (*fmasf4_fpr): Adjust.
13530 (*fmssf4_fpr): Adjust.
13531 (*nfmasf4_fpr): Adjust.
13532 (*nfmssf4_fpr): Adjust.
13533 (*floatunssidf2_internal): Adjust.
13534 (fix_trunc<SFDF:mode>si2_internal): Adjust.
13535 (fctiwz_<SFDF:mode>): Adjust.
13536 (mulsidi3 patterns): Adjust.
13537 (smulsi3_highpart patterns): Adjust.
13538 (umulsi3_highpart patterns): Adjust.
13539 (fix_trunctfsi2 patterns): Adjust.
13540 (prefetch): Adjust.
13541 * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
13542 (mno-powerpc): Delete.
13543 * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
13544 (store_conditional<ATOMIC:mode>): Adjust.
13545 (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
13546 (atomic_exchange<ATOMIC:mode>): Adjust.
13547 (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
13548 (atomic_nand<ATOMIC:mode>): Adjust.
13549 (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
13550 (atomic_fetch_nand<ATOMIC:mode>): Adjust.
13551 (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
13552 (atomic_nand_fetch<ATOMIC:mode>): Adjust.
13553 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
13554 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
13555 * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
13556 * doc/invoke.texi: Adjust documentation.
13558 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13560 * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
13562 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13564 * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
13565 * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
13566 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
13567 * config/rs6000/driver-rs6000.c (asm_names): Ditto.
13569 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13572 * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
13574 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
13576 2012-08-15 Sandra Loosemore <sandra@codesourcery.com>
13577 Maxim Kuvyrkov <maxim@codesourcery.com>
13578 Julian Brown <julian@codesourcery.com>
13579 MIPS Technologies, Inc.
13581 * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
13582 (dspalusat): Add insn types.
13583 * config/mips/mips-dsp.md (add<DSPV:mode>3)
13584 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
13585 (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
13586 (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
13587 (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
13588 (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
13589 (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
13590 (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
13591 (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
13592 (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
13593 (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
13594 (mips_repl_qb, mips_repl_ph)
13595 (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
13596 (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
13597 (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
13598 (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
13599 (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
13600 (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
13601 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
13602 (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
13604 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
13606 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
13607 Set type to accext.
13608 (mips_shilo, mips_mthlip): Set type to accmod.
13609 * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
13610 (mips_adduh_r_qb): Set type to dspalusat.
13611 (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
13612 (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
13613 (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
13614 (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
13615 (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
13616 (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
13617 (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
13618 (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
13619 (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
13620 dspmac. Set accum_in attribute.
13621 (mips_subu_s_ph): Set type to dspalusat.
13622 (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
13623 Set accum_in attribute.
13624 * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
13625 * config/mips/mips.c (dspalu_bypass_table): New.
13626 (mips_dspalu_bypass_p): New.
13627 * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
13628 (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
13629 (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
13630 (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
13631 * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
13632 (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
13634 (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
13635 (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
13637 2012-08-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13639 * config/spu/spu.c: Include "cfgloop.h".
13640 (spu_machine_dependent_reorg): Call loop_optimizer_init and
13641 loop_optimizer_finalize. Use bb_loop_depth instead of loop_depth.
13642 Directly compare loop_father values where appropriate.
13643 * config/spu/t-spu-elf (spu.o): Update dependencies.
13645 2012-08-15 H.J. Lu <hongjiu.lu@intel.com>
13647 * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
13649 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13651 PR tree-optimization/54245
13652 * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
13653 (legal_cast_p): Split out logic to legal_cast_p_1.
13654 (analyze_increments): Avoid introducing multiplies in smaller types.
13656 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13658 PR tree-optimization/54240
13659 * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
13660 existence of conditional move with given mode.
13662 2012-08-15 Richard Guenther <rguenther@suse.de>
13664 * double-int.h (double_int::from_unsigned): Rename to ...
13665 (double_int::from_uhwi): ... this.
13666 (double_int::from_signed): Rename to ...
13667 (double_int::from_shwi): ... this.
13668 (double_int::to_signed): Rename to ...
13669 (double_int::to_shwi): ... this.
13670 (double_int::to_unsigned): Rename to ...
13671 (double_int::to_uhwi): ... this.
13672 (double_int::fits_unsigned): Rename to ...
13673 (double_int::fits_uhwi): ... this.
13674 (double_int::fits_signed): Rename to ...
13675 (double_int::fits_shwi): ... this.
13676 (double_int::fits): Rename to ...
13677 (double_int::fits_hwi): ... this.
13678 * double-int.c: Likewise.
13680 2012-08-15 Steven Bosscher <steven@gcc.gnu.org>
13682 * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
13683 TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
13684 TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
13685 TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
13686 (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
13687 TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
13688 * timevar.c (timevar_print): Make printing width of timevar names
13689 more flexible, but enforce maximum length.
13690 * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
13691 (pass_ipa_inline): Use TV_IPA_INLINING.
13692 * ipa-inline-analysis.c (pass_inline_parameters): Use
13693 TV_INLINE_HEURISTICS.
13694 * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
13695 (pass_tree_loop_done): Likewise.
13696 * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
13697 * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
13698 (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
13700 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13702 * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
13703 (neon_vabal<mode> VDQIW): Likewise.
13705 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13708 * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
13709 mark as predicable. Adjust asm template.
13710 (vec_setv2di_internal): Likewise.
13711 (vec_extract<mode> VD, VQ): Likewise.
13712 (vec_extractv2di): Likewise.
13713 (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
13714 (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
13715 (neon_vdup_n<mode> VX, V32): Likewise.
13716 (neon_vdup_nv2di): Likewise.
13718 2012-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
13720 * config/mips/mips.md (define_attr accum_in): New instruction
13721 attribute. Set it for imadd and fmadd patterns.
13722 * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
13723 accumulator register.
13725 2012-08-14 Diego Novillo <dnovillo@google.com>
13727 Merge from cxx-conversion branch. Configury.
13729 * configure.ac (CXX_FOR_BUILD): Define and substitute.
13730 (BUILD_CXXFLAGS): Define.
13731 Remove all handlers of ENABLE_BUILD_WITH_CXX.
13732 Force all build to be with C++.
13733 * Makefile.in (BUILD_CXXFLAGS): Use it.
13734 Remove all handlers of ENABLE_BUILD_WITH_CXX.
13735 * configure: Regenerate.
13736 * config.in: Regenerate.
13737 * doc/install.texi: Remove documentation for --enable-build-with-cxx
13738 and --enable-build-poststage1-with-cxx.
13740 2012-08-14 Diego Novillo <dnovillo@google.com>
13742 Merge from cxx-conversion branch. Re-implement VEC in C++.
13744 * vec.c (vec_heap_free): Convert into a template function.
13745 (vec_gc_o_reserve_1): Make extern.
13746 (vec_gc_p_reserve): Remove.
13747 (vec_gc_p_reserve_exact): Remove.
13748 (vec_gc_o_reserve): Remove.
13749 (vec_gc_o_reserve_exact): Remove.
13750 (vec_heap_o_reserve_1): Make extern.
13751 (vec_heap_p_reserve): Remove.
13752 (vec_heap_p_reserve_exact): Remove.
13753 (vec_heap_o_reserve): Remove.
13754 (vec_heap_o_reserve_exact): Remove.
13755 (vec_stack_p_reserve): Remove.
13756 (vec_stack_p_reserve_exact): Remove.
13757 * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
13758 VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
13759 (VEC): Define to vec_t<T>.
13760 (vec_allocation_t): Define.
13761 (struct vec_prefix): Move earlier in the file.
13762 (vec_t<T>): New template.
13763 (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
13764 DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
13765 DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
13766 DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
13767 (DEF_VEC_A): Provide template instantiations for
13768 GC/PCH markers that do not traverse the vector.
13769 (vec_stack_p_reserve): Remove.
13770 (vec_stack_p_reserve_exact): Remove.
13771 (vec_stack_p_reserve_exact_1): Remove.
13772 (vec_stack_o_reserve): Remove.
13773 (vec_stack_o_reserve_exact): Remove.
13774 (vec_stack_free): Re-write as a template function.
13775 (vec_reserve): New template function.
13776 (vec_reserve_exact): New template function.
13777 (vec_heap_free): New template function if GATHER_STATISTICS is
13778 defined. Otherwise, macro that expands to free().
13779 (VEC_length_1): New template function.
13780 (VEC_length): Call it.
13781 (VEC_empty_1): New template function.
13782 (VEC_empty): Call it.
13783 (VEC_address_1): New template function.
13784 (VEC_address): Call it.
13785 (VEC_last_1): New template function.
13786 (VEC_last): Call it. Change return type to T&.
13787 Change all users that used VEC_Os.
13788 (VEC_index_1): New template function.
13789 (VEC_index): Call it. Return a T& instead of a T*.
13790 Update all callers that were using VEC_O before.
13791 (VEC_iterate_1): New template function.
13792 (VEC_iterate): Call it.
13793 (VEC_embedded_size_1): New template function.
13794 (VEC_embedded_size): Call it.
13795 (VEC_embedded_init_1): New template function.
13796 (VEC_embedded_init): Call it.
13797 (VEC_alloc_1): New template function.
13798 (VEC_alloc): Call it. If A is 'stack', call XALLOCAVAR to
13800 (VEC_free_1): New template function.
13801 (VEC_free): Call it.
13802 (VEC_copy_1): New template function.
13803 (VEC_copy): Call it.
13804 (VEC_space_1): New template function
13805 (VEC_space): Call it.
13806 (VEC_reserve_1): New template function.
13807 (VEC_reserve): Call it.
13808 (VEC_reserve_exact_1): New template function.
13809 (VEC_reserve_exact): Call it.
13810 (VEC_splice_1): New template function.
13811 (VEC_splice): Call it.
13812 (VEC_safe_splice_1): New template function.
13813 (VEC_safe_splice): Call it.
13814 (VEC_quick_push_1): New template function. Create two overloads, one
13815 accepting T, the other accepting T *. Update all callers
13816 where T and T * are ambiguous.
13817 (VEC_quick_push): Call it.
13818 (VEC_safe_push_1): New template function. Create two overloads, one
13819 accepting T, the other accepting T *. Update all callers
13820 where T and T * are ambiguous.
13821 (VEC_safe_push): Call it.
13822 (VEC_pop_1): New template function.
13823 (VEC_pop): Call it.
13824 (VEC_truncate_1): New template function.
13825 (VEC_truncate): Call it.
13826 (VEC_safe_grow_1): New template function.
13827 (VEC_safe_grow): Call it.
13828 (VEC_safe_grow_cleared_1): New template function.
13829 (VEC_safe_grow_cleared): Call it.
13830 (VEC_replace_1): New template function.
13831 (VEC_replace): Call it. Always accept T instead of T*.
13832 Update all callers that used VEC_Os.
13833 (VEC_quick_insert_1): New template function.
13834 (VEC_quick_insert): Call it.
13835 (VEC_safe_insert_1): New template function.
13836 (VEC_safe_insert): Call it.
13837 (VEC_ordered_remove_1): New template function.
13838 (VEC_ordered_remove): Call it.
13839 (VEC_unordered_remove_1): New template function.
13840 (VEC_unordered_remove): Call it.
13841 (VEC_block_remove_1): New template function.
13842 (VEC_block_remove): Call it.
13843 (VEC_lower_bound_1): New template function.
13844 (VEC_lower_bound): Call it.
13846 (DEF_VEC_FUNC_P): Remove.
13847 (DEF_VEC_ALLOC_FUNC_P): Remove.
13848 (DEF_VEC_NONALLOC_FUNCS_P): Remove.
13849 (DEF_VEC_FUNC_O): Remove.
13850 (DEF_VEC_ALLOC_FUNC_O): Remove.
13851 (DEF_VEC_NONALLOC_FUNCS_O): Remove.
13852 (DEF_VEC_ALLOC_FUNC_I): Remove.
13853 (DEF_VEC_NONALLOC_FUNCS_I): Remove.
13854 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
13855 (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
13856 (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
13857 (vec_reserve_exact): New template function.
13859 * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
13860 * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
13861 (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
13862 (def_vec_alloc): Remove. Update all callers.
13863 * gengtype.c (filter_type_name): New.
13864 (output_mangled_typename): Call it.
13865 (write_func_for_structure): Likewise.
13866 (write_types): Likewise.
13867 (write_root): Likewise.
13868 (write_typed_alloc_def): Likewise.
13869 (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
13870 (note_def_vec_alloc): Remove.
13871 * gengtype.h (note_def_vec_alloc): Remove.
13872 (DEFVEC_ALLOC): Remove token code.
13874 * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
13875 inside the insn traversal loop.
13876 * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
13877 * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
13878 * reg-stack.c (stack): Rename to STACK_PTR. Update all users.
13879 * tree-vrp.c (stack): Rename to EQUIV_STACK. Update all users.
13881 * config/bfin/bfin.c (hwloop_optimize): Update some calls to
13882 VEC_* for vectors of non-pointers.
13883 * config/c6x/c6x.c (try_rename_operands): Likewise.
13884 (reshuffle_units): Likewise.
13885 * config/mips/mips.c (mips_multi_start): Likewise.
13886 (mips_multi_add): Likewise.
13887 (mips_multi_copy_insn): Likewise.
13888 (mips_multi_set_operand): Likewise.
13889 * hw-doloop.c (discover_loop): Likewise.
13890 (discover_loops): Likewise.
13891 (reorg_loops): Likewise.
13893 2012-08-14 Diego Novillo <dnovillo@google.com>
13895 Merge from cxx-conversion branch. C++ support in gengtype.
13897 * coretypes.h (gt_pointer_operator): Move from ...
13899 * doc/gty.texi: Document support for C++ templates and
13900 user-provided markers.
13901 * gengtype-lex.l: Update copyright year.
13902 Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
13903 * gengtype-parse.c: Update copyright year.
13904 (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
13905 (require_template_declaration): New.
13906 (typedef_name): Call it.
13907 (type): Replace IS_UNION with KIND. Replace all users.
13908 (def_vec): Remove. Update all users.
13909 * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
13910 (write_state_user_struct_type): New.
13911 (write_state_type): Call it.
13912 (read_state_user_struct_type): New.
13913 (read_state_type): Call it.
13914 * gengtype.c: Update copyright year.
13915 (dump_pair): Move declaration to the top.
13916 (dump_type): Likewise.
13917 (dump_type_list): Likewise.
13918 (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
13919 (create_user_defined_type): New.
13920 (resolve_typedef): Call it.
13921 (new_structure): Replace argument ISUNION with KIND.
13922 Change users to refer to KIND directly.
13923 Update all callers.
13924 (find_structure): Likewise.
13925 (set_gc_used_type): Handle TYPE_USER_STRUCT.
13926 (create_file): Update HDR to include new copyright year.
13927 (struct walk_type_data): Add field IN_PTR_FIELD.
13928 (output_mangled_typename): Handle TYPE_USER_STRUCT.
13929 (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
13930 Clear it afterwards.
13931 Handle TYPE_USER_STRUCT.
13932 (write_types_process_field): Handle TYPE_USER_STRUCT.
13933 (get_type_specifier): Move earlier in the file.
13934 (write_type_decl): New.
13935 (write_marker_function_name): New.
13936 (write_user_func_for_structure_ptr): New.
13937 (write_user_func_for_structure_body): New.
13938 (write_user_marking_functions): New.
13939 (write_func_for_structure): Call write_marker_function_name
13940 and write_type_decl.
13941 Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
13943 Call write_user_marking_functions on TYPE_USER_STRUCTs.
13944 (write_types_local_user_process_field): New.
13945 (write_pch_user_walking_for_structure_body): New.
13946 (write_pch_user_walking_functions): New.
13947 (write_types_local_process_field): Handle TYPE_USER_STRUCT.
13948 (write_local_func_for_structure): Do not call walk_type for
13949 TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
13950 Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
13951 (write_root): Handle TYPE_USER_STRUCT.
13952 (vec_prefix_type): Remove. Update all users.
13953 (note_def_vec): Remove. Update all users.
13954 (dump_typekind): Handle TYPE_USER_STRUCT.
13955 (dump_type): Initialize SEEN_TYPES, if needed.
13956 Handle TYPE_USER_STRUCT.
13957 (dump_everything): Do not initialize SEEN_TYPES.
13958 * gengtype.h: Update copyright year.
13959 (enum typekind): Add TYPE_USER_STRUCT.
13960 (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
13961 Convert into function.
13962 Add an overload taking const_type_p.
13963 Update all callers.
13964 (new_structure): Change second field to type enum typekind.
13966 (find_structure): Likewise.
13967 (note_def_vec): Remove.
13968 (DEFVEC_OP): Remove.
13969 (DEFVEC_I): Remove.
13970 * ggc-page.c (gt_ggc_mx): Add entry points for marking
13971 'const char *&', 'unsigned char *&' and 'unsigned char&'.
13972 * ggc-zone.c (gt_ggc_mx): Add entry points for marking
13973 'const char *&' and 'unsigned char *&'.
13974 * stringpool.c (gt_pch_nx): Add entry points for marking
13975 'const char *&', 'unsigned char *&' and 'unsigned char&'.
13976 Add an entry point for the overload taking arguments 'unsigned char
13977 *', 'gt_pointer_operator' and 'void *'.
13978 * vec.h (struct vec_prefix): Remove GTY marker.
13979 (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
13980 (gt_ggc_mx (vec_t<T> *)): New template function.
13981 (gt_pch_nx (vec_t<T> *)): New template function.
13982 (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
13984 (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
13987 * basic-block.h (struct edge_def): Mark GTY((user)).
13988 Remove all GTY markers from fields.
13989 (gt_ggc_mx): Declare.
13990 (gt_pch_nx): Declare.
13991 * tree-cfg.c (gt_ggc_mx): New.
13994 * gengtype-lex.l (USER_GTY): Add pattern for "user".
13995 * gengtype-parse.c (option): Handle USER_GTY.
13998 If the keyword 'user' is used, do not walk the fields
14000 * gengtype.h (USER_GTY): Add.
14001 * doc/gty.texi: Update.
14003 2012-08-14 Lawrence Crowl <crowl@google.com>
14005 Merge cxx-conversion branch. Implement C++ hash table.
14007 * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
14008 * hash-table.c: Likewise.
14009 * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
14010 (static htab_t same_succ_htab): Change type to hash_table;
14011 move specification of helper functions from create call to declaration.
14012 Change users to invoke member functions.
14013 (same_succ_print_traverse): Make extern ssa_.... Change callers.
14014 Remove void* casting.
14015 (same_succ_hash): Likewise.
14016 (same_succ_equal): Likewise.
14017 (same_succ_delete): Likewise.
14018 * tree-ssa-threadupdate.c: Include hash-table.h.
14019 (struct local_info): Rename to ssa_local_info_t to avoid overloading
14020 the type name local_info with the variable name local_info.
14021 (static htab_t redirection_data): Change type to hash_table.
14022 Move specification of helper functions from create call to declaration.
14023 Change users to invoke member functions.
14024 (redirection_data_hash): Make extern ssa_.... Change callers.
14025 Remove void* casting.
14026 (redirection_data_eq): Likewise.
14027 (fix_duplicate_block_edges): Likewise.
14028 (create_duplicates): Likewise.
14029 (fixup_template_block): Likewise.
14030 (redirect_edges): Likewise.
14031 (lookup_redirection_data): Change types associated with the hash table
14032 from void* to their actual type. Remove unnecessary casts.
14033 * tree-ssa-ccp.c: Include hash-table.h.
14034 (typedef gimple_htab): New. Uses hash_table. Replace specific uses
14035 of htab_t with gimple_htab. Change users to invoke member functions.
14036 Move specification of helper functions from create call to declaration.
14037 * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
14038 (hash_ssa_name_by_var): Make extern. Remove void* casting.
14039 (eq_ssa_name_by_var): Likewise.
14040 (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
14041 to hash_table. Change users to invoke member functions.
14042 Move specification of helper functions from create call to declaration.
14043 * coverage.c: Include hash-table.h instead of hashtab.h.
14044 (static htab_t counts_hash): Change type to hash_table;
14045 move specification of helper functions from create call to declaration.
14046 Change users to invoke member functions.
14047 (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
14048 of htab_... Remove void* casting.
14049 (htab_counts_entry_eq): Likewise.
14050 (htab_counts_entry_del): Likewise.
14051 * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
14052 (static htab_t expression_to_id): Change type to hash_table.
14053 Move specification of helper functions from create call to declaration.
14054 Change users to invoke member functions.
14055 (static htab_t phi_translate_table): Likewise.
14056 (pre_expr_eq): Make extern ssa_.... Change callers.
14057 Remove void* casting.
14058 (pre_expr_hash): Likewise.
14059 (expr_pred_trans_hash): Likewise.
14060 (expr_pred_trans_eq): Likewise.
14061 (alloc_expression_id): Change types associated with the hash table
14062 from void* to their actual type. Remove unnecessary casts.
14063 (lookup_expression_id): Likewise.
14064 (phi_trans_lookup): Likewise.
14065 (phi_trans_add): Likewise.
14066 * stringpool.c: Rename uses of libcpp typedef hash_table to
14068 * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
14069 Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
14071 2012-08-14 Lawrence Crowl <crowl@google.com>
14073 Merge from cxx-conversion branch. Re-write double_int in C++.
14076 (typedef double_int): Change to struct (POD).
14077 (double_int::make): New overloads for int to double-int conversion.
14078 (double_int::mask): New.
14079 (double_int::max_value): New.
14080 (double_int::min_value): New.
14081 (double_int::operator ++): New.
14082 (double_int::operator --): New.
14083 (double_int::operator *=): New.
14084 (double_int::operator +=): New.
14085 (double_int::operator -=): New.
14086 (double_int::to_signed): New.
14087 (double_int::to_unsigned): New.
14088 (double_int::fits_unsigned): New.
14089 (double_int::fits_signed): New.
14090 (double_int::fits): New.
14091 (double_int::trailing_zeros): New.
14092 (double_int::popcount): New.
14093 (double_int::multiple_of): New.
14094 (double_int::set_bit): New.
14095 (double_int::mul_with_sign): New.
14096 (double_int::operator * (binary)): New.
14097 (double_int::operator + (binary)): New.
14098 (double_int::operator - (binary)): New.
14099 (double_int::operator - (unary)): New.
14100 (double_int::operator ~ (unary)): New.
14101 (double_int::operator & (binary)): New.
14102 (double_int::operator | (binary)): New.
14103 (double_int::operator ^ (binary)): New.
14104 (double_int::and_not): New.
14105 (double_int::lshift): New.
14106 (double_int::rshift): New.
14107 (double_int::alshift): New.
14108 (double_int::arshift): New.
14109 (double_int::llshift): New.
14110 (double_int::lrshift): New.
14111 (double_int::lrotate): New.
14112 (double_int::rrotate): New.
14113 (double_int::div): New.
14114 (double_int::sdiv): New.
14115 (double_int::udiv): New.
14116 (double_int::mod): New.
14117 (double_int::smod): New.
14118 (double_int::umod): New.
14119 (double_int::divmod): New.
14120 (double_int::sdivmod): New.
14121 (double_int::udivmod): New.
14122 (double_int::ext): New.
14123 (double_int::zext): New.
14124 (double_int::sext): New.
14125 (double_int::is_zero): New.
14126 (double_int::is_one): New.
14127 (double_int::is_minus_one): New.
14128 (double_int::is_negative): New.
14129 (double_int::cmp): New.
14130 (double_int::ucmp): New.
14131 (double_int::scmp): New.
14132 (double_int::ult): New.
14133 (double_int::ugt): New.
14134 (double_int::slt): New.
14135 (double_int::sgt): New.
14136 (double_int::max): New.
14137 (double_int::smax): New.
14138 (double_int::umax): New.
14139 (double_int::min): New.
14140 (double_int::smin): New.
14141 (double_int::umin): New.
14142 (double_int::operator ==): New.
14143 (double_int::operator !=): New.
14144 (shwi_to_double_int): Change implementation to use member function.
14145 (double_int_minus_one): Likewise.
14146 (double_int_zero): Likewise.
14147 (double_int_one): Likewise.
14148 (double_int_two): Likewise.
14149 (double_int_ten): Likewise.
14150 (uhwi_to_double_int): Likewise.
14151 (double_int_to_shwi): Likewise.
14152 (double_int_to_uhwi): Likewise.
14153 (double_int_fits_in_uhwi_p): Likewise.
14154 (double_int_fits_in_shwi_p): Likewise.
14155 (double_int_fits_in_hwi_p): Likewise.
14156 (double_int_mul): Likewise.
14157 (double_int_mul_with_sign): Likewise.
14158 (double_int_add): Likewise.
14159 (double_int_sub): Likewise.
14160 (double_int_neg): Likewise.
14161 (double_int_div): Likewise.
14162 (double_int_sdiv): Likewise.
14163 (double_int_udiv): Likewise.
14164 (double_int_mod): Likewise.
14165 (double_int_smod): Likewise.
14166 (double_int_umod): Likewise.
14167 (double_int_divmod): Likewise.
14168 (double_int_sdivmod): Likewise.
14169 (double_int_udivmod): Likewise.
14170 (double_int_multiple_of): Likewise.
14171 (double_int_setbit): Likewise.
14172 (double_int_ctz): Likewise.
14173 (double_int_not): Likewise.
14174 (double_int_ior): Likewise.
14175 (double_int_and): Likewise.
14176 (double_int_and_not): Likewise.
14177 (double_int_xor): Likewise.
14178 (double_int_lshift): Likewise.
14179 (double_int_rshift): Likewise.
14180 (double_int_lrotate): Likewise.
14181 (double_int_rrotate): Likewise.
14182 (double_int_cmp): Likewise.
14183 (double_int_scmp): Likewise.
14184 (double_int_ucmp): Likewise.
14185 (double_int_max): Likewise.
14186 (double_int_smax): Likewise.
14187 (double_int_umax): Likewise.
14188 (double_int_min): Likewise.
14189 (double_int_smin): Likewise.
14190 (double_int_umin): Likewise.
14191 (double_int_ext): Likewise.
14192 (double_int_sext): Likewise.
14193 (double_int_zext): Likewise.
14194 (double_int_mask): Likewise.
14195 (double_int_max_value): Likewise.
14196 (double_int_min_value): Likewise.
14197 (double_int_zero_p): Likewise.
14198 (double_int_one_p): Likewise.
14199 (double_int_minus_one_p): Likewise.
14200 (double_int_equal_p): Likewise.
14201 (double_int_popcount): Likewise.
14203 (double_int_mask): Reuse implementation for double_int::mask.
14204 (double_int_max_value): Likewise.
14205 (double_int_min_value): Likewise.
14206 (double_int_ext): Likewise.
14207 (double_int_zext): Likewise.
14208 (double_int_sext): Likewise.
14209 (double_int_mul_with_sign): Likewise.
14210 (double_int_divmod): Likewise.
14211 (double_int_sdivmod): Likewise.
14212 (double_int_udivmod): Likewise.
14213 (double_int_div): Likewise.
14214 (double_int_sdiv): Likewise.
14215 (double_int_udiv): Likewise.
14216 (double_int_mod): Likewise.
14217 (double_int_smod): Likewise.
14218 (double_int_umod): Likewise.
14219 (double_int_multiple_of): Likewise.
14220 (double_int_lshift): Likewise.
14221 (double_int_rshift): Likewise.
14222 (double_int_lrotate): Likewise.
14223 (double_int_rrotate): Likewise.
14224 (double_int_cmp): Likewise.
14225 (double_int_ucmp): Likewise.
14226 (double_int_scmp): Likewise.
14227 (double_int_max): Likewise.
14228 (double_int_smax): Likewise.
14229 (double_int_umax): Likewise.
14230 (double_int_min): Likewise.
14231 (double_int_smin): Likewise.
14232 (double_int_umin): Likewise.
14233 (double_int_min): Likewise.
14234 (double_int_min): Likewise.
14235 (double_int_min): Likewise.
14236 (double_int_min): Likewise.
14237 (double_int_min): Likewise.
14238 (double_int_min): Likewise.
14239 (double_int::alshift): New.
14240 (double_int::arshift): New.
14241 (double_int::llshift): New.
14242 (double_int::lrshift): New.
14243 (double_int::ult): New.
14244 (double_int::ugt): New.
14245 (double_int::slt): New.
14246 (double_int::sgt): New.
14247 (double_int_setbit): Reuse implementation for double_int::set_bit,
14248 which avoids a name conflict with a macro.
14249 (double_int_double_int_ctz): Reuse implementation for
14250 double_int::trailing_zeros.
14251 (double_int_fits_in_shwi_p): Reuse implementation for
14252 double_int::fits_signed.
14253 (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
14254 (double_int_mul): Reuse implementation for binary
14255 double_int::operator *.
14256 (double_int_add): Likewise.
14257 (double_int_sub): Likewise.
14258 (double_int_neg): Reuse implementation for unary
14259 double_int::operator -.
14260 (double_int_max_value): Likewise.
14261 * fixed-value.c: Change to use member functions introduced above.
14263 2012-08-14 Lawrence Crowl <crowl@google.com>
14265 Merge cxx-conversion branch. Support tree macro calling from gdb.
14267 * tree.h (tree_check): New.
14268 (TREE_CHECK): Use inline function above instead of __extension__.
14269 (tree_not_check): New.
14270 (TREE_NOT_CHECK): Use inline function above instead of __extension__.
14271 (tree_check2): New.
14272 (TREE_CHECK2): Use inline function above instead of __extension__.
14273 (tree_not_check2): New.
14274 (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
14275 (tree_check3): New.
14276 (TREE_CHECK3): Use inline function above instead of __extension__.
14277 (tree_not_check3): New.
14278 (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
14279 (tree_check4): New.
14280 (TREE_CHECK4): Use inline function above instead of __extension__.
14281 (tree_not_check4): New.
14282 (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
14283 (tree_check5): New.
14284 (TREE_CHECK5): Use inline function above instead of __extension__.
14285 (tree_not_check5): New.
14286 (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
14287 (contains_struct_check): New.
14288 (CONTAINS_STRUCT_CHECK): Use inline function above instead of
14290 (tree_class_check): New.
14291 (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
14292 (tree_range_check): New.
14293 (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
14294 (omp_clause_subcode_check): New.
14295 (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
14297 (omp_clause_range_check): New.
14298 (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
14301 (EXPR_CHECK): Use inline function above instead of __extension__.
14302 (non_type_check): New.
14303 (NON_TYPE_CHECK): Use inline function above instead of __extension__.
14304 (tree_vec_elt_check): New.
14305 (TREE_VEC_ELT_CHECK): Use inline function above instead of
14307 (omp_clause_elt_check): New.
14308 (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
14310 (tree_operand_check): New.
14311 (TREE_OPERAND_CHECK): Use inline function above instead of
14313 (tree_operand_check_code): New.
14314 (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
14316 (TREE_CHAIN): Simplify implementation.
14317 (TREE_TYPE): Simplify implementation.
14318 (tree_operand_length): Move for compilation dependences.
14319 * gdbinit.in: (macro define __FILE__): New.
14320 (macro define __LINE__): New.
14321 (skip "tree.h"): New.
14323 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
14326 * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
14327 *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
14328 * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
14330 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
14333 * config/sh/constraints.md (Sra): New constraint.
14334 * config/sh/predicates.md (simple_mem_operand,
14335 displacement_mem_operand, zero_extend_movu_operand): New predicates.
14336 (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
14337 * config/sh/sh.md (*zero_extendqisi2_disp_mem,
14338 *zero_extendhisi2_disp_mem): Add new insns and two new related
14339 peephole2 patterns.
14341 2012-08-14 Steven Bosscher <steven@gcc.gnu.org>
14343 * graphite-scop-detection.c (create_sese_edges): Compute dominance
14344 info before trying to fix loop structure.
14345 * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
14346 * tree-cfgcleanup.c (repair_loop_structures): Likewise.
14347 * cfgloop.c (verify_loop_structure): Verify loop fathers.
14349 * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
14350 (dom_convert_dir_to_idx, compute_dom_fast_query,
14351 get_immediate_dominator, set_immediate_dominator, get_dominated_by,
14352 redirect_immediate_dominators, nearest_common_dominator,
14353 (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
14354 iterate_fix_dominators, add_to_dominance_info,
14355 delete_from_dominance_info): Likewise.
14357 2012-08-14 Richard Guenther <rguenther@suse.de>
14359 * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
14360 * gimple-pretty-print.c (dump_phi_nodes): Likewise.
14361 * gimple-streamer-out.c (output_bb): Likewise.
14362 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
14363 (rewrite_reductions_out_of_ssa): Likewise.
14364 (rewrite_commutative_reductions_out_of_ss): Likewise.
14365 * ipa-split.c (verify_non_ssa_vars): Likewise.
14366 (consider_split): Likewise.
14367 (visit_bb): Likewise.
14368 (split_function): Likewise.
14369 * lto-streamer-out.c (output_ssa_names): Likewise.
14370 * sese.c (rename_uses): Likewise.
14371 * tree-cfg.c (replace_uses_by): Likewise.
14372 (gimple_merge_blocks): Likewise.
14373 (gimple_cfg2dot): Likewise.
14374 (verify_gimple_phi): Likewise.
14375 (replace_ssa_name): Likewise.
14376 (move_block_to_fn): Likewise.
14377 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
14378 * tree-if-conv.c (if_convertible_phi_p): Likewise.
14379 (predicate_scalar_phi): Likewise.
14380 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
14381 (copy_phis_for_bb): Likewise.
14382 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
14383 (destroy_loop): Likewise.
14384 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
14385 (insert_backedge_copies): Likewise.
14386 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
14387 (gather_scalar_reductions): Likewise.
14388 (try_create_reduction_list): Likewise.
14389 * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
14391 (scev_const_prop): Likewise.
14392 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
14393 (get_default_value): Likewise.
14394 (ccp_initialize): Likewise.
14395 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
14396 * tree-ssa-copy.c (may_propagate_copy): Likewise.
14397 (init_copy_prop): Likewise.
14398 * tree-ssa-dce.c (propagate_necessity): Likewise.
14399 (remove_dead_phis): Likewise.
14400 (forward_edge_to_pdom): Likewise.
14401 (eliminate_unnecessary_stmts): Likewise.
14402 * tree-ssa-live.c (partition_view_init): Likewise.
14403 (remove_unused_locals): Likewise.
14404 (register_ssa_partition_check): Likewise.
14405 * tree-ssa-loop-im.c (movement_possibility): Likewise.
14406 (move_computations_stmt): Likewise.
14407 * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
14408 (record_invariant): Likewise.
14409 (find_interesting_uses_outside): Likewise.
14410 (determine_set_costs): Likewise.
14411 * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
14412 (find_uses_to_rename_use): Likewise.
14413 (check_loop_closed_ssa_use): Likewise.
14414 (rewrite_phi_with_iv): Likewise.
14415 (canonicalize_loop_ivs): Likewise.
14416 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
14417 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
14418 * tree-ssa-pre.c (make_values_for_phi): Likewise.
14419 (compute_avail): Likewise.
14420 (eliminate): Likewise.
14421 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
14422 * tree-ssa-reassoc.c (phi_rank): Likewise.
14423 * tree-ssa-strlen.c (strlen_enter_block): Likewise.
14424 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
14425 (ipa_pta_execute): Likewise.
14426 * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
14427 (release_last_vdef): Likewise.
14428 (same_phi_alternatives_1): Likewise.
14429 (bb_has_non_vop_phi): Likewise.
14430 (vop_phi): Likewise.
14431 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
14433 * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
14434 (execute_late_warn_uninitialized): Likewise.
14435 * tree-ssa.c (verify_ssa_name): Likewise.
14436 (verify_phi_args): Likewise.
14437 (verify_ssa): Likewise.
14438 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14439 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
14441 (slpeel_tree_peel_loop_to_edge): Likewise.
14442 (vect_can_advance_ivs_p): Likewise.
14443 (vect_update_ivs_after_vectorizer): Likewise.
14444 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
14445 * tree-vrp.c (remove_range_assertions): Likewise.
14446 * value-prof.c (gimple_divmod_values_to_profile): Likewise.
14448 2012-08-14 Richard Guenther <rguenther@suse.de>
14450 PR tree-optimization/54146
14451 * tree-ssa-pre.c (do_regular_insertion): Use a VEC
14452 indexed by pred edge index for avail.
14453 (do_partial_partial_insertion): Likewise.
14454 (insert_into_preds_of_block): Adjust.
14456 2012-08-14 Richard Guenther <rguenther@suse.de>
14458 * gimplify.c (create_tmp_from_val): Mark temporary with
14459 DECL_GIMPLE_REG_P here ...
14460 (internal_get_tmp_var): ... instead of here. If we go into
14461 SSA create an SSA name instead of a VAR_DECL.
14462 (gimplify_modify_expr): Do not create SSA names here, assert
14463 we already got them.
14464 (force_gimple_operand_1): Create an SSA name if we go into SSA.
14465 * sese.c (rename_uses): Simplify.
14467 2012-08-14 Richard Guenther <rguenther@suse.de>
14469 * tree-into-ssa.c: Include diagnostic-core.h.
14470 * Makefile.in (tree-into-ssa.o): Adjust.
14472 2012-08-14 Richard Guenther <rguenther@suse.de>
14474 * tree-into-ssa.c (update_ssa): Verify we do not rename
14475 symbols that are already partly in SSA form.
14477 2012-08-14 Jakub Jelinek <jakub@redhat.com>
14479 PR middle-end/53411
14480 PR rtl-optimization/53495
14481 * ira.c (ira): Move delete_trivially_dead_insns call before
14482 find_moveable_pseudos call.
14484 2012-08-13 Steven Bosscher <steven@gcc.gnu.org>
14486 * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
14487 of potentially huge memset overhead.
14488 (do_partial_partial_insertion): Likewise.
14489 * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
14490 * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
14491 for arrays to be filled by pre_and_rev_post_order_compute. Allocate
14492 the right number of slots, not that number plus NUM_FIXED_BLOCKS.
14493 * tree-ssa-reassoc.c (init_reassoc): Likewise.
14494 * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
14495 array used as stack.
14496 * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
14497 arrays to be filled by pre_and_rev_post_order_compute.
14498 * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
14499 array to be filled by dfs_enumerate_from.
14500 (remove_path): Likewise.
14501 (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
14502 array of loops that is filled on the next lines.
14503 * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
14504 array of basic blocks to be returned.
14505 (get_loop_body_in_dom_order): Likewise.
14506 (get_loop_body_in_bfs_order): Likewise.
14507 * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
14508 for all bitmaps used for rewriting into loop-closed SSA form.
14509 (add_exit_phis_var): Allocate the def bitmap on it. Clear the livein
14510 bitmap at the end to release a lot of memory.
14511 (add_exit_phis): Allocate the exits bitmap on the new obstack.
14512 (get_loops_exits): Allocate the exits bitmap on the new obstack.
14513 (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
14514 seen for the first time.
14515 (find_uses_to_rename): Add "???" for why the whole function must
14516 be re-scanned if changed_bbs is empty.
14517 (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
14518 Use XNEWVEC to allocate the use_blocks array. Initialize the new
14519 obstack, and free it at the end. Remove loop over all SSA names.
14520 (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
14521 * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
14522 xcalloc to allocate edge_pred and edge_flag arrays.
14524 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
14526 * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
14527 (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
14528 for different ABIs.
14529 (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
14530 (REG_CLASS_NAMES): Update.
14531 (REG_CLASS_CONTENTS): Update. Clear CLOBBERED_REGS members.
14532 * config/i386/i386.c (ix86_conditional_register_usage): Disable
14533 REX registers on 32bit targets. Handle bitmaps from
14534 CALL_USED_REGISTERS initializer. Calculate CLOBBERED_REGS register
14535 set from GENERAL_REGS also for 32bit targets. Do not change call
14536 used register set for TARGET_64BIT_MS_ABI separately.
14538 2012-08-13 Richard Guenther <rguenther@suse.de>
14540 * basic-block.h (struct basic_block): Remove loop_depth
14541 member, move flags and index members next to each other.
14542 * cfgloop.h (bb_loop_depth): New inline function.
14543 * cfghooks.c (split_block): Do not set loop_depth.
14544 (duplicate_block): Likewise.
14545 * cfgloop.c (flow_loop_nodes_find): Likewise.
14546 (flow_loops_find): Likewise.
14547 (add_bb_to_loop): Likewise.
14548 (remove_bb_from_loops): Likewise.
14549 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14550 * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
14551 * gimple-streamer-out.c (output_bb): Likewise.
14552 * bt-load.c: Include cfgloop.h.
14553 (migrate_btr_defs): Use bb_loop_depth.
14554 * cfg.c (dump_bb_info): Likewise.
14555 * final.c (compute_alignments): Likewise.
14556 * ira.c (update_equiv_regs): Likewise.
14557 * tree-ssa-copy.c (init_copy_prop): Likewise.
14558 * tree-ssa-dom.c (loop_depth_of_name): Likewise.
14559 * tree-ssa-forwprop.c: Include cfgloop.h.
14560 (forward_propagate_addr_expr): Use bb_loop_depth.
14561 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
14562 * tree-ssa-sink.c (select_best_block): Likewise.
14563 * ipa-inline-analysis.c: Include cfgloop.h.
14564 (estimate_function_body_sizes): Use bb_loop_depth.
14565 * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
14566 (ipa-inline-analysis.o): Likewise.
14567 (bt-load.o): Likewise.
14569 2012-08-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14570 Jakub Jelinek <jakub@redhat.com>
14573 * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
14574 bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
14575 * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
14576 0x80000001 %ecx flags.
14578 2012-08-13 Richard Guenther <rguenther@suse.de>
14580 * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
14581 removal and loops with multiple latches.
14583 2012-08-13 Jakub Jelinek <jakub@redhat.com>
14586 * tree.c (integer_pow2p): Avoid undefined signed overflows.
14587 * simplify-rtx.c (neg_const_int): Likewise.
14588 * expr.c (fixup_args_size_notes): Likewise.
14589 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
14590 * double-int.c (mul_double_wide_with_sign): Likewise.
14591 (double_int_mask): Likewise.
14592 * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
14594 2012-08-13 Richard Guenther <rguenther@suse.de>
14596 PR tree-optimization/54200
14597 * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
14598 PHI results to another partition if not all PHI arguments
14599 have the same partition.
14601 2012-08-12 Jan Hubicka <jh@suse.cz>
14603 * tree-pass.h (write_summary, write_optimization_summary): Remove
14604 set and vset arguments.
14605 * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
14606 (write_node_summary_p): Likewise; use the encoder.
14607 (ipa_reference_write_optimization_summary): Likewise.
14608 * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
14609 (lto_symtab_encoder_new): Initialize in_partition field.
14610 (lto_symtab_encoder_delete): Destroy in_partition field.
14611 (LCC_NOT_FOUND): Move to lto-streamer.h
14612 (lto_symtab_encoder_deref): Likewise.
14613 (lto_symtab_encoder_in_partition_p,
14614 lto_set_symtab_encoder_in_partition): New functions.
14615 (referenced_from_other_partition_p): Rewrite to use encoder.
14616 (reachable_from_other_partition_p): Likewise.
14617 (referenced_from_this_partition_p): Likewise.
14618 (reachable_from_this_partition_p): Likewise.
14619 (lto_output_node): Likewise.
14620 (lto_output_varpool_node): Likewise.
14621 (output_refs): Likewise.
14622 (compute_ltrans_boundary): Initialize in_partition fileds of
14624 (output_symtab): Likewise.
14625 (input_refs): Match the changes in output_refs.
14626 (output_cgraph_opt_summary_p): Remove set argument.
14627 (output_node_opt_summary): Replace set by encoder.
14628 (output_cgraph_opt_summary): Remove set argument; use
14630 * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
14631 arguments; use the encoder.
14632 * lto-streamer-out.c (lto_output): Remove set and vset argument; use
14634 (produce_symtab): Likewise.
14635 * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
14636 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14637 * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
14639 * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
14640 * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
14641 (ipa_write_summaries_1): Update.
14642 (ipa_write_optimization_summaries_1): Likewise.
14643 (ipa_write_optimization_summaries): Likewise.
14644 * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
14645 (lto_symtab_encoder_iterator): New type.
14646 (lto_symtab_encoder_deref): Make inline.
14647 (output_symtab, referenced_from_other_partition_p,
14648 reachable_from_other_partition_p, referenced_from_this_partition_p,
14649 reachable_from_this_partition_p): Update.
14650 (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
14651 lsei_varpool_node): New inline functions.
14652 (LCC_NOT_FOUND): New macro.
14653 (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
14654 lsei_start_in_partition, lsei_next_function_in_partition,
14655 lsei_start_function_in_partition, lsei_next_variable_in_partition,
14656 lsei_start_variable_in_partition): New inline functions.
14658 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
14660 * config/sh/sh.md (prefetch): Simplify expander. Fix condition to
14662 (*prefetch_media): Move insn below expander.
14663 (*prefetch): Fix condition to allow SH3.
14665 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
14668 * config/sh/sh.md: Add splits for inverted compare and branch
14670 (*cmpeqsi_t): New insn.
14671 (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
14672 (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in
14673 replacement insn list and not in the preparation statements.
14674 (clrt, sett): Add mt_group attribute.
14676 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
14678 PR middle-end/54193
14679 * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
14681 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
14684 * config/sh/predicates.md (mem_index_disp_operand): Check for
14685 arith_reg_operand instead of REG_P.
14687 2012-08-11 Bernd Schmidt <bernds@codesourcery.com>
14689 * reload1.c (replaced_subreg, gen_reload): Add
14690 SECONDARY_MEMORY_NEEDED ifdefs as necessary.
14692 2012-08-11 Jan Hubicka <jh@suse.cz>
14694 * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
14695 symtab_node sectoin name; it confuses plugin.
14697 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
14699 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
14700 index in the va_list_vars bitmap by num_ssa_names.
14702 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
14704 * config/i386/sse.md (xop integer multiply/add insns): Use
14705 register_operand for operand 3 predicate.
14706 (xop_phadd<u>bq): Fix vec_select selectors.
14708 2012-08-11 Martin Jambor <mjambor@suse.cz>
14711 * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
14712 * ipa-inline-analysis.c (agg_position_info): New type.
14713 (add_condition): New parameter aggpos, also store agg_contents, by_ref
14715 (dump_condition): Also dump aggregate conditions.
14716 (evaluate_conditions_for_known_args): Also handle aggregate
14717 conditions. New parameter known_aggs.
14718 (evaluate_properties_for_edge): Gather known aggregate contents.
14719 (inline_node_duplication_hook): Pass NULL known_aggs to
14720 evaluate_conditions_for_known_args.
14721 (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
14722 (unmodified_parm_or_parm_agg_item): New function.
14723 (set_cond_stmt_execution_predicate): Handle values passed in
14725 (set_switch_stmt_execution_predicate): Likewise.
14726 (will_be_nonconstant_predicate): Likewise.
14727 (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
14728 ipa_get_indirect_edge_target.
14729 (estimate_calls_size_and_time): New parameter known_aggs, pass it
14730 recrsively to itself and to estimate_edge_devirt_benefit.
14731 (estimate_node_size_and_time): New vector known_aggs, pass it o
14732 functions which need it.
14733 (remap_predicate): New parameter offset_map, use it to remap aggregate
14735 (remap_edge_summaries): New parameter offset_map, pass it recursively
14736 to itself and to remap_predicate.
14737 (inline_merge_summary): Also create and populate vector offset_map.
14738 (do_estimate_edge_time): New vector of known aggregate contents,
14739 passed to functions which need it.
14740 (inline_read_section): Stream new fields of condition.
14741 (inline_write_summary): Likewise.
14742 * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
14743 contents. Let all local callers pass NULL for known_aggs.
14745 2012-08-11 Jan Hubicka <jh@suse.cz>
14747 * lto-cgraph.c (output_cgraph): Rename to ...
14748 (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
14749 (input_cgraph): Rename to ...
14750 (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
14751 * lto-streamer-out.c (create_output_block): Do not set
14753 (produce_asm): Likewise.
14754 (lto_output_toplevel_asms): Likewise.
14755 (produce_asm_for_decls): Likewise.
14756 (lto_output): Use output_symtab.
14757 * lto-section-in.c (lto_section_name): Update.
14758 * lto-section-out.c (lto_destroy_simple_output_block): Remove
14760 * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
14761 rename LTO_section_cgraph to LTO_section_symtab_nodes.
14762 (struct lto_header): Remove section_type.
14764 2012-08-11 Jan Hubicka <jh@suse.cz>
14766 * cgraph.h (vector types for symtab_node): Add.
14767 * ipa-reference.c (ipa_reference_write_optimization_summary): Update
14768 for new symtab encoder.
14769 (ipa_reference_read_optimization_summary): Likewise.
14770 * lto-cgraph.c (output_varpool): Remove.
14771 (input_cgraph_opt_summary): Take symtab nodes vector as argument.
14772 (LTO_cgraph_tags): Rename to ...
14773 (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
14774 (lto_cgraph_encoder_new): Rename to ...
14775 (lto_symtab_encoder_new): ... this on.
14776 (lto_cgraph_encoder_encode): Rename to ...
14777 (lto_symtab_encoder_encode): ... this one.
14778 (lto_cgraph_encoder_delete): Rename to ...
14779 (lto_symtab_encoder_delete): ... this one.
14780 (lto_cgraph_encoder_deref): Rename to ...
14781 (lto_symtab_encoder_deref): ... this one.
14782 (lto_cgraph_encoder_encode_body_p): Rename to ...
14783 (lto_symtab_encoder_encode_body_p): ... this one.
14784 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
14785 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
14786 lto_varpool_encoder_deref): Remove.
14787 (lto_varpool_encoder_encode_initializer_p): Rename to ...
14788 (lto_symtab_encoder_encode_initializer_p): ... this one.
14789 (lto_set_varpool_encoder_encode_initializer): Rename to ...
14790 (lto_set_symtab_encoder_encode_initializer): ... this one.
14791 (lto_output_edge): Update.
14792 (lto_output_node): Update.
14793 (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
14794 (lto_output_ref): Drop varpool_encoder; update.
14795 (add_node_to): Update.
14796 (add_references): Update.
14797 (output_outgoing_cgraph_edges): Update.
14798 (output_refs): Update.
14799 (compute_ltrans_boundary): Update.
14800 (output_cgraph): Update; output varpools too.
14801 (input_overwrite_node): Update.
14802 (output_varpool): Remove.
14803 (input_node): Update.
14804 (input_ref): Update.
14805 (input_edge): Update.
14806 (input_cgraph_1): Update; input varpool too; unify fixup code.
14807 (input_varpool_1): Remove.
14808 (input_refs): Update.
14809 (input_cgraph): Update.
14810 (output_node_opt_summary): Update.
14811 (input_cgraph_opt_section): Update.
14812 (input_cgraph_opt_summary): Update.
14813 * ipa-pure-const.c (pure_const_write_summary): Update.
14814 (pure_const_read_summary): Update.
14815 * lto-streamer-out.c (lto_write_tree): Update.
14816 (lto_output): Likewise.
14817 (produce_symtab): Update.
14818 (produce_asm_for_decls): Update.
14819 * ipa-inline-analysis.c (inline_read_section): Update.
14820 (inline_write_summary): Update.
14821 * ipa-prop.c (ipa_write_node_info): Update.
14822 (ipa_prop_read_section): Update.
14823 * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
14824 (lto_symtab_encoder_d): ... this one; add initializer.
14825 (lto_cgraph_encoder_t): Rename to ...
14826 (lto_symtab_encoder_t): ... this one.
14827 (lto_cgraph_encoder_size): Rename to ...
14828 (lto_symtab_encoder_size): ... this one.
14829 (lto_varpool_encoder_d): ... remove.
14830 (lto_varpool_encoder_t): Remove.
14831 (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
14832 add symtab_node_encoder.
14833 (lto_file_decl_data): Likewise.
14834 (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
14835 lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
14836 lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
14837 lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
14838 lto_varpool_encoder_lookup, lto_varpool_encoder_new,
14839 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
14840 lto_varpool_encoder_encode_initializer_p): Remove.
14841 (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
14842 lto_symtab_encoder_t, lto_symtab_encoder_encode,
14843 lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
14844 lto_symtab_encoder_encode_initializer_p): New.
14846 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
14848 * config/i386/i386.md (isa): Add fma and fma4.
14849 (enabled): Handle fma and fma4.
14850 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
14851 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
14852 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
14853 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
14854 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
14855 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
14857 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
14859 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
14860 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
14861 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
14863 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
14865 * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
14866 variants of PLUS and MULT simple LEA patterns. Disable PLUS
14867 patterns for TARGET_OPT_AGU.
14869 2012-08-10 Richard Guenther <rguenther@suse.de>
14871 * Makefile.in (OBJS): Remove matrix-reorg.o.
14872 (matrix-reorg.o): Remove dependence rule.
14873 (GTFILES): Remove matrix-reorg.c.
14874 * matrix-reorg.c: Remove.
14875 * passes.c (init_optimization_passes): Do not schedule
14876 pass_ipa_matrix_reorg.
14877 * tree-pass.h (pass_ipa_matrix_reorg): Remove.
14878 * common.opt (fipa-matrix-reorg): Stub out.
14879 * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
14881 2012-08-10 Richard Guenther <rguenther@suse.de>
14883 PR middle-end/54219
14884 * fold-const.c (fold_ternary_loc): Do not reverse the mask
14885 when canonicalizing it when folding VEC_PERM_EXPR.
14887 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14889 PR middle-end/54211
14890 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
14891 Use cand_type to determine whether pointer arithmetic will be generated.
14893 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14895 * doc/sourcebuild.texi: Document long_neq_int effective target.
14897 2012-08-10 Richard Guenther <rguenther@suse.de>
14899 PR tree-optimization/54109
14900 * tree-ssa-forwprop.c
14901 (forward_propagate_addr_into_variable_array_index): Remove.
14902 (forward_propagate_addr_expr_1): Adjust.
14904 2012-08-10 Richard Guenther <rguenther@suse.de>
14906 * tree-cfg.c (dump_function_to_file): Make sure to dump
14907 anonymous SSA names when there are no local decls.
14909 2012-08-10 Steven Bosscher <steven@gcc.gnu.org>
14911 * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
14912 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
14913 (mark_phi_for_rewrite): Likewise.
14914 (compute_global_livein): Use VEC_reserve outside the innermost
14915 loop and VEC_quick_push instead of VEC_safe_push in that loop.
14916 (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
14917 of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to
14918 the correct initial size.
14920 2012-08-10 Richard Guenther <rguenther@suse.de>
14922 * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
14923 (need_creation): Remove.
14924 (get_representative_for): Use anonymous named SSA names.
14925 (create_expression_by_pieces): Likewise.
14926 (insert_into_preds_of_block): Likewise.
14927 (init_pre): Do not init removed vars.
14928 (fini_pre): Do not free need_creation.
14929 * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
14931 * tree-ssa-loop-manip.c (create_iv): Likewise.
14932 * value-prof.c (gimple_divmod_fixed_value): Likewise.
14933 (gimple_mod_pow2): Likewise.
14934 (gimple_mod_subtract): Likewise.
14935 (gimple_ic): Likewise.
14936 (gimple_stringop_fixed_value): Likewise.
14937 * tree-ssa-phiopt.c (condstoretemp): Remove.
14938 (tree_ssa_phiopt_worker): Use anonymous named SSA names.
14939 (conditional_replacement): Likewise.
14940 (abs_replacement): Likewise.
14941 (cond_store_replacement): Likewise.
14942 (cond_if_else_store_replacement_1): Likewise.
14943 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
14944 (rewrite_bittest): Likewise.
14945 * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
14946 and build anonymous SSA names.
14947 (undistribute_ops_list): Adjust.
14948 (eliminate_redundant_comparison): Use anonymous SSA names.
14949 (rewrite_expr_tree_parallel): Likewise.
14950 (get_reassoc_pow_ssa_name): Remove.
14951 (attempt_builtin_powi): Adjust.
14952 (reassociate_bb): Likewise.
14953 * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
14954 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14955 (build_arrays): Likewise.
14956 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
14957 (create_tailcall_accumulator): Likewise.
14958 * tree-vect-generic.c (expand_vector_divmod): Likewise.
14959 * tree-profile.c (gcov_type_tmp_var): Remove.
14960 (gimple_init_edge_profiler): Do not initialize it and use anonymous
14962 (gimple_gen_ic_profiler): Likewise.
14963 (tree_profiling): Adjust.
14964 * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
14965 * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
14966 (powi_as_mults_1): Likewise.
14967 (powi_as_mults): Likewise.
14968 (build_and_insert_call): Adjust.
14969 (build_and_insert_binop): Likewise.
14970 (build_and_insert_ref): Likewise.
14971 (build_and_insert_cast): Likewise.
14972 (gimple_expand_builtin_pow): Likewise.
14973 (gimple_expand_builtin_cabs): Likewise.
14974 (execute_optimize_bswap): Use anonymous SSA names.
14975 (convert_mult_to_widen): Likewise.
14976 (convert_plusminus_to_widen): Likewise.
14977 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14978 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
14979 * tree-if-conv.c (ifc_temp_var): Likewise.
14980 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
14981 * tree-parloops.c (take_address_of): Likewise.
14982 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
14983 (vect_permute_load_chain): Likewise.
14984 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
14985 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
14986 (vect_handle_widen_op_by_const): Likewise.
14987 (vect_operation_fits_smaller_type): Likewise.
14988 (vect_recog_over_widening_pattern): Likewise.
14989 * tree-vect-stmts.c (vect_init_vector): Likewise.
14990 * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
14991 (simplify_float_conversion_using_ranges): Likewise.
14993 2012-08-10 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14995 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
14996 target mask of __builtin_ia32_rdseed_di_step builtin.
14998 2012-08-10 Richard Guenther <rguenther@suse.de>
15000 PR tree-optimization/54027
15001 * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
15002 and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
15003 to handle LSHIFT_EXPR with a constant.
15005 2012-08-10 Richard Guenther <rguenther@suse.de>
15007 * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
15008 is recorded as var.
15009 (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
15010 or its SSA_NAME_VAR.
15011 (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
15012 * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
15013 SSA names by passing a type instead of a variable decl.
15014 (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
15015 (copy_ssa_name_fn): Handle anonymous SSA names.
15016 (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
15017 * tree-flow-inline.h (make_temp_ssa_name): New inline function.
15018 * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
15019 dump SSA names without a name as <anon>.
15020 * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
15021 going to expand a decl.
15022 (gimple_expand_cfg): Assign all SSA names of a partition the
15023 decl we created for its leader.
15024 * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
15025 (verify_ssa_name): Handle anonymous SSA names.
15026 (verify_def): Likewise.
15027 * tree-predcom.c (eliminate_temp_copies): Likewise.
15028 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
15029 * tree-ssa-live.c (var_map_base_init): Compute conflicts for
15030 anonymous SSA names with the same type.
15031 (mark_all_vars_used_1): Handle anonymous SSA names.
15032 (verify_live_on_entry): Likewise.
15033 * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
15034 (create_outofssa_var_map): Adjust with respect to conflicts we
15035 compute for anonymous SSA names. Do not restrict abnormal
15037 (coalesce_partitions): Do not restrict abnormal coalescing.
15038 Assert we only ever coalesce variables we computed conflicts for.
15039 * tree-ssa-ter.c (process_replaceable): Do not restrict TER
15040 of anonymous names.
15041 * expr.c (expand_expr_real_1): Handle anonymous SSA names
15042 expanded from IVOPTs by creating a raw REG here.
15043 * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
15044 (dump_function_to_file): Dump anonymous SSA names alongside
15045 with their types in the variable list.
15046 (verify_gimple_return): Guard use of SSA_NAME_VAR.
15047 * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
15048 (rewrite_into_ssa): Make SSA names anonymous.
15049 * tree-ssa-structalias.c (alias_get_name): Rewrite.
15050 * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
15052 (warn_uninitialized_phi): Likewise.
15053 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
15054 anonymous SSA names to the expander.
15055 (determine_iv_cost): Anonymous SSA names are artificial.
15056 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
15057 Handle anonymous SSA names.
15058 * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
15059 or if NULL, the type of the SSA name.
15060 * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
15061 remap names as anonymous where appropriate.
15062 (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
15063 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
15064 according to what we create conflicts for in out-of-SSA
15066 * tree-parloops.c (separate_decls_in_region_name): Handle
15067 anonymous SSA names.
15068 (add_field_for_name): Likewise.
15069 * tree.c (get_name): Handle SSA names.
15070 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
15072 * tree-vect-loop-manip.c (adjust_debug_stmts): Use
15074 * tree-sra.c (create_access_replacement): Give up generating
15075 a DECL_DEBUG_EXPR for SSA names in the memory reference.
15076 (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
15077 * tree-complex.c (get_component_ssa_name): Handle anonymous
15079 (set_component_ssa_name): Likewise.
15080 * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
15081 * tree-object-size.c (collect_object_sizes_for): Handle
15082 uninitialized SSA names properly.
15083 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
15085 * ipa-split.c (test_nonssa_use): Likewise.
15086 (consider_split): Likewise.
15087 (mark_nonssa_use): Likewise.
15089 2012-08-09 Jan Hubicka <jh@suse.cz>
15091 PR middle-end/54146
15092 * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
15093 parameter; honnor it.
15094 * ipa-inline.c (recursive_inlining): Update call
15096 (inline_small_functions): Likewise.
15097 (ipa_inline): Likewise.
15098 (inline_always_inline_functions): Likewise.
15099 (early_inline_small_functions): Likewise.
15100 (flatten_function): Do separate update of summary info.
15101 * ipa-inline.h (inline_update_overall_summary): Declare.
15102 (inline_call): Update.
15103 * ipa-inline-analysis.c (inline_merge_summary): Break out
15104 updating code to ...
15105 (inline_update_overall_summary): Likewise.
15107 2012-08-09 Richard Henderson <rth@redhat.com>
15109 * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
15111 * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
15112 performing the compare for the restart loop.
15114 2012-08-09 DJ Delorie <dj@redhat.com>
15116 * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
15117 SET before extracting SET_SRC.
15118 (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
15120 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
15123 * config/sh/sh-protos (shift_insns_rtx): Delete.
15124 (sh_ashlsi_clobbers_t_reg_p): Add.
15125 * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
15126 ext_shift_amounts): Merge arrays of ints to array of structs.
15127 Adapt usage of arrays throughout the file.
15128 (shift_insns_rtx): Delete unused function.
15129 (sh_ashlsi_clobbers_t_reg_p): New function.
15130 * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
15131 final shift sequence will clobber T_REG.
15132 (ashlsi3_n): Split only if the final shift sequence will not
15134 (ashlsi3_n_clobbers_t): New insn_and_split.
15136 2012-08-09 Steven Bosscher <steven@gcc.gnu.org>
15138 * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
15139 instead of looking at sbitmap n_bits member directly.
15140 * gcse.c (hoist_code): Likewise.
15141 * sched-rgn.c (split_edges): Likewise.
15142 * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
15143 update_ssa): Likewise.
15145 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
15147 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
15148 single unit register class for classes that contain registers form
15150 (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
15151 INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
15153 2012-08-09 Martin Jambor <mjambor@suse.cz>
15155 * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
15156 offset, updated all users. New field agg_contents.
15157 * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
15158 (ipa_pass_through_data): New field agg_preserved.
15159 (ipa_ancestor_jf_data): Likewise.
15160 (ipa_member_ptr_cst): Removed.
15161 (ipa_agg_jf_item): New type.
15162 (ipa_agg_jump_function): Likewise.
15163 (ipa_jump_func): New field agg. Removed field member_cst.
15164 (ipa_get_jf_pass_through_agg_preserved): New function.
15165 (ipa_get_jf_ancestor_agg_preserved): Likewise.
15166 (ipa_get_jf_member_ptr_pfn): Removed.
15167 (ipa_find_agg_cst_for_param): Declare.
15168 (ipa_load_from_parm_agg): Likewise.
15169 * ipa-prop.c (param_analysis_info): Fields modified and
15170 visited_statements rename to parm_modified and parm_visited_statements
15171 respectively, added fields ref_modified, ref_visited_statements,
15172 pt_modified and pt_visited_statements.
15173 (ipa_print_node_jump_functions_for_edge): Do not dump const member
15174 functions. Dump agg_preserved flags and aggregate jump functions.
15175 (ipa_set_jf_simple_pass_through): Set also agg_preserved.
15176 (ipa_set_ancestor_jf): Likewise.
15177 (ipa_set_jf_arith_pass_through): Clear agg_preserved.
15178 (ipa_set_jf_member_ptr_cst): Removed.
15179 (is_parm_modified_before_stmt): Logic reversed, renamed to
15180 parm_preserved_before_stmt_p. Cache visited bitmap only for
15181 naked DECL parameters. All callers updated.
15182 (load_from_unmodified_param): Allow NULL parms_ainfo.
15183 (parm_ref_data_preserved_p): New function.
15184 (parm_ref_data_pass_through_p): Likewise.
15185 (ipa_load_from_parm_agg_1): Likewise.
15186 (ipa_load_from_parm_agg): Likewise.
15187 (compute_complex_assign_jump_func): Check if aggregate contents are
15189 (compute_complex_ancestor_jump_func): Likewise.
15190 (compute_scalar_jump_functions): Removed.
15191 (type_like_member_ptr_p): Also check field position are known and sane.
15192 (compute_pass_through_member_ptrs): Removed.
15193 (determine_cst_member_ptr): Likewise.
15194 (ipa_known_agg_contents_list): New type.
15195 (determine_known_aggregate_parts): New function.
15196 (compute_cst_member_ptr_arguments): Removed.
15197 (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
15198 functions (scalar, aggregate and member pointer).
15199 (ipa_get_member_ptr_load_param): Incorporate into
15200 ipa_get_stmt_member_ptr_load_param, also pass back an offset.
15201 (ipa_note_param_call): Clear agg_contents.
15202 (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
15203 from aggregates. In such cases, store offset of the called field.
15204 (ipa_analyze_node): Initialize new fields of param_analysis_info.
15205 (update_jump_functions_after_inlining): Handle aggregate contents.
15206 (ipa_find_agg_cst_for_param): New function.
15207 (try_make_edge_direct_simple_call): Handle called aggregate values.
15208 (update_indirect_edges_after_inlining): Make sure aggregate preserving
15209 jump functions comply with type compatibility requirements.
15210 (ipa_edge_duplication_hook): Copy also aggregate jump functions.
15211 (ipa_write_jump_function): Stream agg_preserved flags and aggregate
15212 jump functions. Do not stream member pointer constant jump functions.
15213 (ipa_read_jump_function): Likewise.
15214 (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
15216 (ipa_read_indirect_edge_info): Likewise.
15218 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
15221 * config/sh/predicates.md (mem_index_disp_operand): New predicate.
15222 * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
15223 mem_index_disp_operand predicate.
15225 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
15228 * config/sh/sh.md: Add negc extu sequence peephole.
15229 (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
15230 (*movrt_negc): New insn.
15231 * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
15233 * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
15234 sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
15236 (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
15238 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
15241 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
15242 Use arith_reg_operand predicate instead of register_operand.
15243 * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
15244 only mem, simplify.
15246 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
15248 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
15249 (alpha_pad_function_end): ... this. Also insert NOP between
15250 sibling call and GP load.
15251 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
15253 2012-08-09 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15255 * config/i386/adxintrin.h: Remove guarding __ADX__ check.
15256 * config/i386/x86intrin.h: Likewise.
15257 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
15258 OPTION_MASK_ISA_ADX from needed options for
15259 __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
15260 (ix86_expand_builtin): Use add<mode>3_carry in expanding of
15261 IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
15263 2012-08-09 Andrey Belevantsev <abel@ispras.ru>
15265 PR rtl-optimization/53701
15266 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
15267 Process not only expr's vinsns but all old vinsns from expr's
15268 history of changes.
15269 (update_and_record_unavailable_insns): Clarify comment.
15271 2012-08-09 Bernd Schmidt <bernds@codesourcery.com>
15273 * reload.c (find_valid_class_1): New static function.
15274 (push_reload): Use it when reloading a SYMBOL_REG as the inner
15275 of a subreg. Keep better track of needed classes for the
15276 secondary memory case.
15277 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
15279 * reload1.c (replaced_subreg): New static function.
15280 (gen_reload): Use it when deciding whether to use secondary
15283 2012-08-09 Richard Guenther <rguenther@suse.de>
15285 * tree.h (SSA_VAR_P): Simplify.
15286 * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
15287 * fold-const.c (fold_comparison): Check for default def first
15288 before checking for PARM_DECL.
15289 * tree-complex.c (get_component_ssa_name): Likewise.
15290 * tree-inline.c (remap_ssa_name): Likewise.
15291 * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
15292 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
15293 (find_what_p_points_to): Likewise.
15294 * tree-ssa-operands.c (add_stmt_operand): Simplify.
15296 2012-08-08 Joseph Myers <joseph@codesourcery.com>
15298 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
15299 IOR to a constant if one operand has side effects.
15301 2012-08-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15303 * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
15304 value operand as MEM to expand_atomic_compare_and_swap.
15306 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
15307 nonimmediate_operand for old value; generate load and store if
15309 * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
15312 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
15314 PR middle-end/54146
15315 * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
15317 * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
15318 a gimple_reg if checking is enabled.
15319 (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
15320 * tree-into-ssa (compute_global_livein): Change the worklist
15321 type from an array to a VEC.
15323 2012-08-08 Richard Guenther <rguenther@suse.de>
15325 * tree-ssa-operands.h (virtual_operand_p): Declare.
15326 * tree-ssa-operands.c (virtual_operand_p): New predicate.
15327 * gimple.c (is_gimple_reg): Use virtual_operand_p.
15328 * tree-into-ssa.c (prepare_block_for_update): Likewise.
15329 * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
15331 2012-08-08 Richard Guenther <rguenther@suse.de>
15333 * tree-call-cdce.c (check_pow): Simplify.
15334 (gen_conditions_for_pow_int_base): Likewise.
15335 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
15336 virtual operands here.
15337 * tree-ssa-operands.c (get_name_decl): Remove unused function.
15338 * gimplify.c (gimple_regimplify_operands): Remove dead code.
15339 * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
15340 * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
15341 * value-prof.c (gimple_ic): Use duplicate_ssa_name.
15342 (gimple_stringop_fixed_value): Likewise.
15343 * tree.c (needs_to_live_in_memory): Remove SSA name handling.
15344 * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
15345 in the bitmap alongside shifted DECL_UIDs.
15346 (va_list_counter_struct_op): Likewise.
15347 (va_list_ptr_read): Likewise.
15348 (va_list_ptr_write): Likewise.
15349 (check_va_list_escapes): Likewise.
15350 (check_all_va_list_escapes): Likewise.
15351 (execute_optimize_stdarg): Likewise.
15352 * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
15354 2012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
15355 H.J. Lu <hongjiu.lu@intel.com>
15357 PR rtl-optimization/54157
15358 * combine.c (gen_lowpart_for_combine): Don't return identity
15359 for CONST or symbolic reference.
15361 2012-08-08 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15363 * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
15364 (OPTION_MASK_ISA_ADX_UNSET): Likewise.
15365 (ix86_handle_option): Handle madx option.
15366 * config.gcc (i[34567]86-*-*): Add adxintrin.h.
15367 (x86_64-*-*): Likewise.
15368 * config/i386/adxintrin.h: New header.
15369 * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
15371 * config/i386/i386-builtin-types.def
15372 (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
15373 (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
15374 * config/i386/i386-c.c: Define __ADX__ if needed.
15375 * config/i386/i386.c (ix86_target_string): Define -madx option.
15377 (ix86_option_override_internal): Handle new option.
15378 (ix86_valid_target_attribute_inner_p): Add OPT_madx.
15379 (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
15380 IX86_BUILTIN_ADDCARRYX64.
15381 (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
15382 (ix86_expand_builtin): Handle these built-ins.
15383 (ix86_expand_args_builtin): Handle new function types.
15384 * config/i386/i386.h (TARGET_ADX): New.
15385 * config/i386/i386.md (adcx<mode>3): New define_insn.
15386 * config/i386/i386.opt (madx): New.
15387 * config/i386/x86intrin.h: Include adxintrin.h.
15389 2012-08-08 Nick Clifton <nickc@redhat.com>
15391 * config/rl78/rl78.c: Include tree-pass.h.
15393 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
15395 PR middle-end/54146
15396 * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
15397 (build_insn_chain): Make live_subregs_used a bitmap.
15398 Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
15399 Use sbitmap_free to free the live_subreg sbitmaps.
15401 PR middle-end/54146
15402 * ifcvt.c: Include pointer-set.h.
15403 (cond_move_process_if_block): Change type of then_regs and
15404 else_regs from alloca'd array to pointer_sets.
15405 (check_cond_move_block): Update for this change.
15406 (cond_move_convert_if_block): Likewise.
15407 * Makefile.in: Fix dependencies for ifcvt.o.
15409 2012-08-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15411 * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
15412 (incr_vec): New static var.
15413 (incr_vec_len): Likewise.
15414 (address_arithmetic_p): Likewise.
15415 (stmt_cost): Remove dead assignment.
15416 (dump_incr_vec): New function.
15417 (cand_abs_increment): Likewise.
15418 (lazy_create_slsr_reg): Likewise.
15419 (incr_vec_index): Likewise.
15420 (count_candidates): Likewise.
15421 (record_increment): Likewise.
15422 (record_increments): Likewise.
15423 (unreplaced_cand_in_tree): Likewise.
15424 (optimize_cands_for_speed_p): Likewise.
15425 (lowest_cost_path): Likewise.
15426 (total_savings): Likewise.
15427 (analyze_increments): Likewise.
15428 (ncd_for_two_cands): Likewise.
15429 (nearest_common_dominator_for_cands): Likewise.
15430 (profitable_increment_p): Likewise.
15431 (insert_initializers): Likewise.
15432 (introduce_cast_before_cand): Likewise.
15433 (replace_rhs_if_not_dup): Likewise.
15434 (replace_one_candidate): Likewise.
15435 (replace_profitable_candidates): Likewise.
15436 (analyze_candidates_and_replace): Handle candidates with SSA-name
15439 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
15441 * cfg.c (debug_bb): Do not set TDF_BLOCKS.
15442 * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
15443 * pretty-print.c (pp_base_flush): Do not add a newline, and do not
15444 clear pp_needs_newline.
15445 * pretty-print.h (pp_newline_and_flush): New macro with the behavior
15446 of pp_base_flush before the above change.
15447 * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
15448 instead of pp_flush.
15449 * diagnostic.c (diagnostic_finish): Likewise.
15450 (diagnostic_report_diagnostic): Likewise.
15451 (verbatim): Likewise.
15452 (error_recursion): Likewise.
15453 * tree-pretty-print.c (print_generic_stmt): Likewise.
15454 (print_generic_stmt_indented): LIkewise.
15455 * gimple-pretty-print.c (print_gimple_stmt): Likewise.
15456 (print_gimple_seq): Likewise.
15457 (gimple_dump_bb_buff): Likewise.
15459 2012-08-07 Uros Bizjak <ubizjak@gmail.com>
15462 * var-tracking.c (var_lowpart): Exit early for matched modes.
15464 2012-08-07 Richard Henderson <rth@redhat.com>
15466 * config/s390/s390.c (s390_emit_compare_and_swap): Update for
15467 atomic_compare_and_swapsi_internal name change.
15468 (s390_expand_insv): Try RISBG last, not requiring operands in
15469 registers but forcing them there. Try a limited form of ICM.
15470 (s390_two_part_insv): New.
15471 (s390_expand_cs_hqi): Use it. Update for atomic optabs.
15472 * config/s390/s390.md (UNSPEC_MOVA): New.
15473 (TDSI): Remove mode iterator.
15474 (DGPR, DINT, TDI): New mode iterators.
15475 (td): New mode attribute.
15476 (mem_signal_fence): New.
15477 (mem_thread_fence): Rename from memory_barrier; update for model arg.
15478 (mem_thread_fence_1): Rename from *memory_barrier.
15479 (atomic_load<DINT>, atomic_store<DINT>): New expanders.
15480 (atomic_loaddi_1, atomic_loadti_1): New.
15481 (atomic_storedi_1, atomic_storeti_1): New.
15482 (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
15483 (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
15484 (atomic_compare_and_swap<DGPR>_internal): New.
15485 (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
15486 (*atomic_compare_and_swap<TDI>_1): New.
15487 (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
15488 (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
15489 (atomic_fetch_<ATOMIC_Z196><GPR>): New.
15490 (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
15491 (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
15492 (sync_new_<ATOMIC><HQI>): Remove.
15493 (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
15494 (atomic_<ATOMIC>_fetch<HQI>): New.
15495 (sync_lock_test_and_set<HQI>): Remove.
15496 (atomic_exchange<HQI>): New.
15498 2012-08-07 Paul Brook <paul@codesourcery.com>
15499 Sandra Loosemore <sandra@codesourcery.com>
15501 * except.c (switch_to_exception_section): Place tables for
15502 DECL_ONE_ONLY functions in comdat groups.
15504 2012-08-07 Richard Guenther <rguenther@suse.de>
15506 * tree-flow.h (copy_ssa_name_fn): New function.
15507 (duplicate_ssa_name_fn): Likewise.
15508 * tree-flow-inline.h (copy_ssa_name): New function.
15509 (duplicate_ssa_name): Likewise.
15510 * tree-ssanames.c (copy_ssa_name_fn): New function.
15511 (duplicate_ssa_name): Rename to ...
15512 (duplicate_ssa_name_fn): ... this and adjust.
15513 * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
15514 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
15516 (slpeel_update_phi_nodes_for_guard2): Likewise.
15517 (slpeel_tree_peel_loop_to_edge): Likewise.
15518 (vect_loop_versioning): Likewise.
15519 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
15520 (create_parallel_loop): Likewise.
15521 * ipa-split.c (split_function): Likewise.
15522 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
15523 (vect_create_epilog_for_reduction): Likewise.
15524 * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
15525 (vect_setup_realignment): Likewise.
15526 * tree-vect-stmts.c (vectorizable_load): Likewise.
15527 * tree-switch-conversion.c (build_one_array): Likewise.
15528 (gen_def_assigns): Likewise.
15529 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
15530 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
15531 create_zero_dim_array with the SSA name.
15532 (rewrite_phi_out_of_ssa): Likewise.
15533 (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
15535 2012-08-07 Richard Guenther <rguenther@suse.de>
15537 * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
15538 bit of the old name when we clear the slot.
15539 * tree-ssa-live.c (remove_unused_locals): Release any default
15540 def associated with an unused var.
15541 * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
15543 2012-08-07 Richard Guenther <rguenther@suse.de>
15545 * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
15546 we rewrite into SSA form.
15547 (rewrite_enter_block): Adjust.
15548 * gimple-iterator.c (gsi_replace): Also allow replacement with
15549 a stmt without a lhs.
15550 * tree-ssa-live.c (remove_unused_locals): Remove code handling
15551 clobbers of SSA names.
15552 * tree-nested.c (convert_local_reference_stmt): Remove clobbers
15553 for variables we access through the local chain.
15554 * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
15555 clobber full decls only.
15557 2012-08-07 Richard Guenther <rguenther@suse.de>
15559 * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
15560 * tree-phinodes.c (make_phi_node): Allow a NULL var.
15561 * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
15562 * tree-complex.c (update_phi_components): Likewise.
15563 * tree-ssa-loop-manip.c (create_iv): Likewise.
15564 (add_exit_phis_edge): Likewise.
15565 (split_loop_exit_edge): Likewise.
15566 (tree_transform_and_unroll_loop): Likewise.
15567 * value-prof.c (gimple_ic): Likewise.
15568 (gimple_stringop_fixed_value): Likewise.
15569 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15570 * omp-low.c (expand_parallel_call): Likewise.
15571 (expand_omp_for_static_chunk): Likewise.
15572 (expand_omp_atomic_pipeline): Likewise.
15573 * tree-parloops.c (create_phi_for_local_result): Likewise.
15574 (transform_to_exit_first_loop): Likewise.
15575 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15576 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
15577 * tree-predcom.c (initialize_root_vars): Likewise.
15578 (initialize_root_vars_lm): Likewise.
15579 * sese.c (sese_add_exit_phis_edge): Likewise.
15580 * gimple-streamer-in.c (input_phi): Likewise.
15581 * tree-inline.c (copy_phis_for_bb): Likewise.
15582 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
15583 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
15584 (gimple_duplicate_bb): Likewise.
15586 2012-08-07 Nick Clifton <nickc@redhat.com>
15588 * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
15589 stack usage if requested.
15591 2012-08-06 Cary Coutant <ccoutant@google.com>
15593 * cgraphunit.c (assemble_thunk): Add source line info.
15594 * final.c (final): Check for non-null cfg pointer.
15596 2012-08-06 Sandra Loosemore <sandra@codesourcery.com>
15597 Maxim Kuvyrkov <maxim@codesourcery.com>
15598 Julian Brown <julian@codesourcery.com>
15600 * config/mips/24k.md (r24k_unknown_store): Delete special handling
15602 (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
15603 (r24k_int_cop, r24k_int_multi)
15604 (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
15605 (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
15606 instead of store_data_bypass_p.
15607 * config/mips/74k.md (r74k_int_store): Delete special handling for
15609 (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
15610 Use mips_store_data_bypass_p instead of store_data_bypass_p.
15612 2012-08-06 Marc Glisse <marc.glisse@inria.fr>
15614 PR tree-optimization/51938
15615 PR tree-optimization/52005
15616 * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
15617 inverted conditions.
15618 (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
15619 (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
15620 and !a||b patterns.
15622 2012-08-06 Olivier Hainque <hainque@adacore.com>
15624 * tree-emutls.c (new_emutls_decl): When a var_section is requested by
15625 the target, attach the new decl to that, not to the template section.
15627 2012-08-06 Tom de Vries <tom@codesourcery.com>
15629 * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
15632 2012-08-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15634 * doc/invoke.texi: Document AMD btver2.
15635 * doc/extend.texi: Document AMD btver1 and btver2.
15637 2012-08-04 Sandra Loosemore <sandra@codesourcery.com>
15638 Richard Sandiford <rdsandiford@googlemail.com>
15640 * config/mips/mips.c (mips_option_override): Check -fpic
15641 for compatibility with -mabicalls and ABI.
15643 2012-08-04 Catherine Moore <clm@codesourcery.com>
15644 Sandra Loosemore <sandra@codesourcery.com>
15646 * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
15647 (ir_xlr_alu): Remove clz.
15648 * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
15650 2012-08-04 Richard Earnshaw <rearnsha@arm.com>
15652 * arm.c (arm_gen_constant): Use SImode when preparing operands for
15655 2012-08-04 Uros Bizjak <ubizjak@gmail.com>
15657 * config/i386/i386.h (QI_REGNO_P): New define.
15658 (ANY_QI_REGNO_P): Ditto.
15659 (GENERAL_REGNO_P): Use IN_RANGE macro.
15660 (QI_REG_P): Use QI_REGNO_P.
15661 (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
15662 (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
15663 * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
15664 (x86_extended_QIreg_mentioned_p): Ditto. Also check if
15665 register is a general register.
15667 2012-08-03 Uros Bizjak <ubizjak@gmail.com>
15669 * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
15670 incdec_operand predicate to return INC or DEC insn mnemonic.
15671 Add %K operand modifier.
15672 (atomic_add<mode>): Use incdec_operand predicate to
15673 return INC or DEC insn mnemonic.
15674 (atomic_dec<mode>): Ditto.
15676 2012-08-03 Michael Matz <matz@suse.de>
15678 PR tree-optimization/54146
15679 * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
15680 (add_scope_conflicts): Iterate in RPO order.
15681 (add_stack_protection_conflicts): Iterate over the other triangle.
15682 (fini_vars_expansion): Clear stack_vars_sorted.
15684 2012-08-03 Marc Glisse <marc.glisse@inria.fr>
15686 PR tree-optimization/30318
15687 * double-int.c (mul_double_wide_with_sign): New function.
15688 (mul_double_with_sign): Call the new function.
15689 * double-int.h (mul_double_wide_with_sign): Declare the new function.
15690 * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
15691 Handle integer types that wrap on overflow.
15692 (quad_int_cmp): New helper function.
15693 (quad_int_pair_sort): Likewise.
15695 2012-08-03 Richard Guenther <rguenther@suse.de>
15697 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
15698 is_gimple_reg on the SSA name, not its variable.
15699 (vect_update_ivs_after_vectorizer): Likewise.
15700 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
15701 * tree-if-conv.c (if_convertible_phi_p): Likewise.
15702 (predicate_scalar_phi): Likewise.
15703 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
15704 (vect_analyze_scalar_cycles_1): Likewise.
15705 * tree-ssa-live.c (register_ssa_partition_check): Likewise.
15706 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
15707 * tree-ssa-reassoc.c (phi_rank): Likewise.
15708 * tree-parloops.c (separate_decls_in_region_name): Use
15709 replace_ssa_name_symbol.
15710 * tree-predcom.c (base_names_in_chain_on): Likewise.
15711 * matrix-reorg.c (update_type_size): Query the type of the SSA name,
15713 * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
15714 (create_mul_imm_cand): Likewise.
15715 (create_add_ssa_cand): Likewise.
15716 (create_add_imm_cand): Likewise.
15717 (slsr_process_add): Likewise.
15718 * tree-inline.c (remap_ssa_name): Do not set the type of the
15720 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
15721 Check for default def first.
15723 2012-08-04 Steven Bosscher <steven@gcc.gnu.org>
15725 * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
15727 * sched-vis.c (print_pattern): Handle SEQUENCE also.
15729 2012-08-02 Richard Henderson <rth@redhat.com>
15733 * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
15734 * cfgexpand.c (gimple_expand_cfg): Initialise it.
15735 * explow.c (allocate_dynamic_stack_space): Set it. Simplify
15736 alignment requirements given the known alignment of dynamic_offset.
15737 * function.c (instantiate_virtual_regs): Align dtnamic_offset.
15739 2012-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
15741 * cfgexpand.c (expand_debug_locations): Encapsulate test for
15742 CONST_DOUBLE in macro.
15743 * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
15744 * cprop.c (implicit_set_cond_p): Ditto.
15745 * cselib.c (rtx_equal_for_cselib_1): Ditto.
15746 * expmed.c (expand_mult): Ditto.
15747 * expr.c (convert_modes): Ditto.
15748 * ira-costs.c (record_reg_classes): Ditto.
15749 * ira-lives.c (single_reg_class): Ditto.
15750 * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
15751 * print-rtl.c (print_rtx): Ditto.
15752 * recog.c (simplify_while_replacing, const_double_operand)
15753 (asm_operand_ok, constrain_operands): Ditto.
15754 * reg-stack.c (subst_stack_regs_pat): Ditto.
15755 * reload.c (find_reloads, find_equiv_reg): Ditto.
15756 * rtlanal.c (replace_rtx): Remove test.
15757 * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
15758 test for CONST_DOUBLE in macro.
15759 * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
15760 (simplify_unary_operation_1, simplify_const_unary_operation)
15761 (simplify_binary_operation_1, simplify_const_binary_operation)
15762 (simplify_relational_operation_1)
15763 (simplify_const_relational_operations)
15764 (implify_subreg): Ditto.
15765 * varasm.c (output_constant_pool_2): Ditto.
15766 * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
15767 * rtl.def (CONST_DOUBLE): Updated comments.
15769 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
15772 * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
15773 * config/mips/mips.c (mips_strip_unspec_address): Make extern.
15774 (mips16_rewrite_pool_constant): Make a copy of the pool constant
15775 before adding to a PC-relative table.
15776 (mips16_lay_out_constants): Add a SPLIT_P parameter.
15777 (mips16_load_branch_target, mips16_split_long_branches): New functions.
15778 (mips_reorg): Update call to mips16_lay_out_constants.
15779 Call mips16_split_long_branches.
15780 * config/mips/predicates.md (pc_or_label_operand): Delete.
15781 * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
15782 Move the extended_mips16 handling further down.
15783 (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
15784 with explicit label_ref and pc. Follow the usual operand numbering.
15785 (*branch_equality<mode>_mips16_inverted): New pattern.
15786 (*jump_mips16): Add length attribute.
15787 (indirect_jump_and_restore_<mode>): New pattern.
15788 (consttable_int): Call mips_strip_unspec_address on the operand.
15790 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
15792 * recog.c (split_insn): Copy the original SET_SRC before using
15795 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
15797 * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
15799 2012-08-02 Marc Glisse <marc.glisse@inria.fr>
15801 PR tree-optimization/53805
15802 * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
15803 UNORDERED_EXPR even for trapping floating point.
15805 2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
15807 PR middle-end/53321
15808 PR middle-end/53865
15809 * ipa-inline-analysis.c (inline_free_summary): Return if
15810 inline_edge_summary_vec is NULL.
15812 * ipa-split.c (execute_split_functions): Check if a function
15813 is inlinable only if inline_edge_summary_vec != NULL.
15815 * ipa.c (symtab_remove_unreachable_nodes): Restore
15816 cgraph_propagate_frequency call when something was changed.
15817 (free_inline_summary): New function.
15818 (pass_ipa_free_inline_summary): New pass.
15820 * passes.c (init_optimization_passes): Add
15821 pass_ipa_free_inline_summary before pass_ipa_tree_profile.
15823 * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
15825 * tree-pass.h (pass_ipa_free_inline_summary): New.
15827 2012-08-02 Richard Earnshaw <rearnsha@arm.com>
15829 * arm.c (arm_gen_constant): Use UBFX for some AND operations when
15832 2012-08-02 Richard Guenther <rguenther@suse.de>
15834 * tree-into-ssa.c (struct common_info_d): New struct.
15835 (struct var_info_d, struct ssa_name_info): Use it.
15836 (get_ssa_name_ann): Adjust.
15837 (get_phi_state, set_phi_state): Remove.
15838 (get_common_info): New function.
15839 (get_current_def, set_current_def): Adjust.
15840 (get_def_blocks_for): Take a common info as param.
15841 (set_def_block): Call get_common_info once.
15842 (set_livein_block): Likewise.
15843 (find_def_blocks_for): Adjust.
15844 (insert_phi_nodes): Likewise.
15845 (register_new_def): Call get_common_info once.
15846 (get_reaching_def): Likewise.
15847 (rewrite_debug_stmt_uses): Likewise.
15848 (rewrite_leave_block): Likewise.
15849 (dump_currdefs): Likewise.
15850 (debug_var_infos_r): Adjust.
15851 (register_new_update_single): Call get_common_info once.
15852 (maybe_replace_use_in_debug_stmt): Likewise.
15853 (rewrite_update_leave_block): Likewise.
15854 (mark_use_interesting): Adjust.
15855 (create_new_def_for): Likewise.
15856 (update_ssa): Likewise.
15858 2012-08-02 Michael Matz <matz@suse.de>
15860 * tree-ssa-live.c (set_is_used): Return a bool.
15861 (mark_all_vars_used): Don't take data argument.
15862 (mark_all_vars_used_1): Adjust calls to above, merge handling
15863 of local and global vars.
15864 (remove_unused_scope_block_p): Don't take global_unused_vars,
15865 merge handling of local and global vars.
15866 (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
15867 use is_used_p for local and global vars.
15869 2012-08-02 Richard Guenther <rguenther@suse.de>
15871 * tree-flow.h (make_rename_temp): Remove.
15872 * tree-dfa.c (make_rename_temp): Likewise.
15873 * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
15874 instead of make_rename_temp.
15875 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
15876 expand_omp_atomic_pipeline): Likewise.
15877 * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
15878 build_tm_store, expand_call_tm, expand_transaction,
15879 ipa_tm_insert_gettmclone_call): Likewise.
15880 * tree-complex.c (expand_complex_div_wide): Likewise.
15881 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
15883 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
15885 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
15886 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
15887 gimple_mod_subtract): Likewise.
15889 2012-08-02 Richard Guenther <rguenther@suse.de>
15891 * tree-flow.h (set_default_def): Rename to ...
15892 (set_ssa_default_def): ... this. Take a struct function argument.
15893 (gimple_default_def): Rename to ...
15894 (ssa_default_def): ... this.
15895 (get_or_create_ssa_default_def): New function.
15896 * tree-dfa.c: Likewise.
15897 (dump_variable): Adjust.
15898 * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
15899 for used parameters.
15900 * ipa-split.c (consider_split): Adjust, avoid repeated default-def
15902 (split_function): Likewise.
15903 * lto-streamer-in.c (input_ssa_names): Adjust.
15904 * omp-low.c (expand_omp_taskreg): Likewise.
15905 * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
15906 * tree-complex.c (init_parameter_lattice_values): Adjust.
15907 (get_component_ssa_name): Likewise.
15908 (update_parameter_components): Likewise.
15909 * tree-inline.c (remap_ssa_name): Likewise.
15910 (setup_one_parameter): Likewise.
15911 (initialize_inlined_parameters): Likewise.
15912 (declare_return_variable): Likewise.
15913 (expand_call_inline): Likewise.
15914 (tree_function_versioning): Likewise.
15915 * tree-into-ssa.c (get_default_def_for): Remove.
15916 (get_reaching_def): Use get_or_create_ssa_default_def instead.
15917 * tree-predcom.c (replace_ref_with): Adjust.
15918 * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
15919 (is_unused_scalar_param): Likewise.
15920 (ptr_parm_has_direct_uses): Likewise.
15921 (sra_ipa_reset_debug_stmts): Likewise.
15922 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
15923 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
15924 * tree-ssa-live.c (verify_live_on_entry): Likewise.
15925 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
15926 avoid repeated default def lookups.
15927 * tree-ssa-sccvn.c (run_scc_vn): Likewise.
15928 * tree-tailcall.c (arg_needs_copy_p): Adjust.
15929 (tree_optimize_tail_calls_1): Likewise.
15931 2012-08-02 Richard Guenther <rguenther@suse.de>
15933 PR tree-optimization/50672
15935 2012-08-01 Richard Guenther <rguenther@suse.de>
15937 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
15938 (replace_block_by): Adjust.
15940 2012-08-02 Richard Guenther <rguenther@suse.de>
15942 * tree-dfa.c (referenced_var_lookup): Remove.
15943 (find_referenced_vars): Remove.
15944 (pass_referenced_vars): Likewise.
15945 (make_rename_temp): Do not add referenced vars.
15946 (dump_referenced_vars): Remove.
15947 (debug_referenced_vars): Likewise.
15948 (dump_dfa_stats): Do not dump referenced var stats.
15949 (find_vars_r): Remove.
15950 (find_referenced_vars_in): Likewise.
15951 (referenced_var_check_and_insert): Likewise.
15952 (add_referenced_var_1): Likewise.
15953 (remove_referenced_var): Likewise.
15954 * tree-flow.h (referenced_var_lookup): Likewise.
15955 (struct gimple_df): Remove referenced_vars member.
15956 (typedef referenced_var_iterator): Remove.
15957 (FOR_EACH_REFERENCED_VAR): Likewise.
15958 (num_referenced_vars): Likewise.
15959 (debug_referenced_vars, dump_referenced_vars): Likewise.
15960 (add_referenced_var_1, add_referenced_var): Likewise.
15961 (remove_referenced_var): Likewise.
15962 (find_referenced_vars_in): Likewise.
15963 * tree-flow-inline.h (gimple_referenced_vars): Remove.
15964 (first_referenced_var): Likewise.
15965 (end_referenced_vars_p): Likewise.
15966 (next_referenced_var): Likewise.
15967 * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
15968 * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
15970 * tree-into-ssa.c (dump_decl_set): Likewise.
15971 (pass_build_ssa): Do not require PROP_referenced_vars.
15972 * tree-ssa.c (target_for_debug_bind): Virtual operands are
15973 not suitable, but all register type vars are.
15974 (init_tree_ssa): Do not allocate referenced vars.
15975 (delete_tree_ssa): Do not free referenced vars.
15976 * cgraphunit.c (init_lowered_empty_function): Do not set
15977 PROP_referenced_vars.
15978 (assemble_thunk): Do not add referenced vars.
15979 * gimple-fold.c (canonicalize_constructor_val): Likewise.
15980 (gimplify_and_update_call_from_tree): Likewise.
15981 * gimple-streamer-in.c (input_bb): Likewise.
15982 * passes.c (init_optimization_passes): Do not run
15983 pass_referenced_vars.
15984 (dump_properties): Do not dump PROP_referenced_vars.
15985 * tree-inline.c (remap_decl): Do not add referenced vars.
15986 (remap_gimple_op_r): Likewise.
15987 (copy_tree_body_r): Likewise.
15988 (copy_bb): Likewise.
15989 (setup_one_parameter): Likewise.
15990 (declare_return_variable): Likewise.
15991 (copy_decl_for_dup_finish): Likewise.
15992 (copy_arguments_for_versioning): Likewise.
15993 (tree_function_versioning): Likewise.
15994 * tree-pass.h (PROP_referenced_vars): Remove.
15995 (pass_referenced_vars): Likewise.
15996 * tree-profile.c (gimple_gen_edge_profiler): Do not add
15998 (gimple_gen_interval_profiler): Likewise.
15999 (gimple_gen_pow2_profiler): Likewise.
16000 (gimple_gen_one_value_profiler): Likewise.
16001 (gimple_gen_ic_profiler): Likewise.
16002 (gimple_gen_average_profiler): Likewise.
16003 (gimple_gen_ior_profiler): Likewise.
16004 * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
16005 * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
16006 (move_stmt_op): Likewise.
16007 * tree-ssa-operands.c (create_vop_var): Likewise.
16008 * gimple-low.c (record_vars_into): Likewise.
16009 * gimplify.c (gimple_regimplify_operands): Likewise.
16010 (force_gimple_operand_1): Likewise.
16011 * omp-low.c (expand_omp_for_generic): Likewise.
16012 (expand_omp_for_static_chunk): Likewise.
16013 (expand_omp_atomic_pipeline): Likewise.
16014 * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
16015 (translate_clast_assignment): Likewise.
16016 * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
16017 (handle_scalar_deps_crossing_scop_limits): Likewise.
16018 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
16019 * ipa-split.c (split_function): Likewise.
16020 * matrix-reorg.c (transform_access_sites): Likewise.
16021 * trans-mem.c (tm_log_add): Likewise.
16022 (ipa_tm_insert_gettmclone_call): Likewise.
16023 * tree-complex.c (create_one_component_var): Likewise.
16024 * tree-if-conv.c (ifc_temp_var): Likewise.
16025 * tree-parloops.c (take_address_of): Likewise.
16026 (initialize_reductions): Likewise.
16027 (separate_decls_in_region_name): Likewise.
16028 (create_call_for_reduction_1): Likewise.
16029 (separate_decls_in_region): Likewise.
16030 * tree-predcom.c (predcom_tmp_var): Likewise.
16031 (reassociate_to_the_same_stmt): Likewise.
16032 * tree-sra.c (build_ref_for_offset): Likewise.
16033 (create_access_replacement): Likewise.
16034 (get_replaced_param_substitute): Likewise.
16035 (sra_ipa_reset_debug_stmts): Likewise.
16036 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
16037 (rewrite_bittest): Likewise.
16038 * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
16039 * tree-ssa-loop-manip.c (create_iv): Likewise.
16040 (tree_transform_and_unroll_loop): Likewise.
16041 * tree-ssa-math-opts.c (powi_as_mults): Likewise.
16042 (build_and_insert_call): Likewise.
16043 (gimple_expand_builtin_cabs): Likewise.
16044 (execute_optimize_bswap): Likewise.
16045 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
16046 (abs_replacement): Likewise.
16047 (cond_store_replacement): Likewise.
16048 (cond_if_else_store_replacement_1): Likewise.
16049 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
16050 * tree-ssa-pre.c (get_representative_for): Likewise.
16051 (create_expression_by_pieces): Likewise.
16052 (insert_into_preds_of_block): Likewise.
16053 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
16054 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16055 (eliminate_redundant_comparison): Likewise.
16056 (rewrite_expr_tree_parallel): Likewise.
16057 (get_reassoc_pow_ssa_name): Likewise.
16058 * tree-ssa-strlen.c (get_string_length): Likewise.
16059 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
16060 (build_arrays): Likewise.
16061 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
16062 (create_tailcall_accumulator): Likewise.
16063 * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
16064 (vect_create_addr_base_for_vector_ref): Likewise.
16065 (vect_permute_store_chain): Likewise.
16066 (vect_permute_load_chain): Likewise.
16067 * tree-vect-generic.c (expand_vector_divmod): Likewise.
16068 * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
16069 (vect_build_loop_niters): Likewise.
16070 (vect_generate_tmps_on_preheader): Likewise.
16071 (vect_update_ivs_after_vectorizer): Likewise.
16072 (vect_gen_niters_for_prolog_loop): Likewise.
16073 (vect_do_peeling_for_alignment): Likewise.
16074 (vect_create_cond_for_align_checks): Likewise.
16075 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
16076 (vect_handle_widen_op_by_const): Likewise.
16077 (vect_operation_fits_smaller_type): Likewise.
16078 (vect_recog_over_widening_pattern): Likewise.
16079 * tree-vect-stmts.c (vect_init_vector): Likewise.
16081 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
16084 * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
16086 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
16089 * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
16090 falling back to copy_rtx on non-autoinc machines.
16091 (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
16093 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
16096 * valtrack.h, valtrack.c: New.
16097 * Makefile.in (VALTRACK_H): New.
16098 (OBJS): Add valtrack.o.
16100 (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
16101 * combine.c: Include valtrack.h.
16102 (make_compound_operation): Publish.
16103 (cleanup_auto_inc_dec): Move to valtrack.c.
16104 (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
16105 (propagate_for_debug): Likewise. Add this_basic_block parameter.
16106 Adjust all callers.
16107 * cselib.c: Include valtrack.h.
16109 * df-problems.c: Likewise.
16110 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
16111 (dead_debug_finish, dead_debug_add): Likewise.
16112 (dead_debug_insert_temp): Likewise.
16113 * df.h (struct dead_debug_use): Move to valtrack.h.
16114 (struct dead_debug, enum debug_temp_where): Likewise.
16115 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
16116 (dead_debug_finish, dead_debug_add): Likewise.
16117 (dead_debug_insert_temp): Likewise.
16118 * rtl.h (make_compound_operation): Declare.
16120 2012-08-01 Catherine Moore <clm@codesourcery.com>
16121 Sandra Loosemore <sandra@codesourcery.com>
16123 * config/mips/mips-cpus.def (34kn): New.
16124 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
16125 (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
16126 * config/mips/mips-tables.opt: Regenerate.
16127 * doc/invoke.texi (MIPS Options): Document -march=34kn.
16129 2012-08-01 Richard Henderson <rth@redhat.com>
16131 * expmed.h (NUM_MODE_PARTIAL_INT): New.
16132 (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
16133 (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
16134 (struct expmed_op_costs): Likewise.
16135 (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
16136 (expmed_mode_index): New.
16137 (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
16138 (convert_cost_ptr): Likewise.
16139 * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
16140 (init_expmed_one_conv): Split out from ...
16141 (init_expmed_one_mode): ... here. Iterate conversions over
16142 partial integer modes too.
16143 (init_expmed): Iterate over partial integer modes too.
16145 2012-08-01 Richard Henderson <rth@redhat.com>
16147 * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
16148 (m32c_init_libfuncs): Remove.
16149 * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
16150 (cstore<QHPSI>4): New expander.
16152 2012-08-01 Richard Guenther <rguenther@suse.de>
16154 * tree-flow-inline.h (referenced_var): Remove.
16155 * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
16157 * tree-sra.c (candidates): New global hashtable.
16158 (candidate): New function.
16159 (sra_initialize): Initialize candidates.
16160 (sra_deinitialize): Free candidates.
16161 (disqualify_candidate): Remove candidate from candidates.
16162 (maybe_add_sra_candidate): New function.
16163 (find_var_candidates): Walk over all local decls and parameters,
16164 add candidates to candidates hashtable.
16165 (find_param_candidates): Add candidates to candidates hashtable.
16166 (analyze_all_variable_accesses): Use candidate instead of
16169 2012-08-01 Tom de Vries <tom@codesourcery.com>
16171 * tree-vrp.c (find_case_label_ranges): New function.
16172 (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
16173 find_case_label_ranges instead of find_case_label_range. Handle second
16176 2012-08-01 Michael Matz <matz@suse.de>
16178 * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
16179 * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
16180 (dump_dfa_stats): Don't dump stats about var anns.
16181 (collect_dfa_stats): Don't collect them.
16182 (add_referenced_var_1): Don't set var annotation pointers.
16183 (remove_referenced_var): Ditto, and only remove it it's in the
16186 * tree-flow-inline.h (var_ann): Remove.
16187 * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
16189 * tree-inline.c (remapped_type): Remove.
16190 (can_be_nonlocal): Most variable will be considered live here,
16191 return false earlier.
16192 (remap_decls): Don't call var_ann, all variables will be considered
16194 (copy_debug_stmt): Ditto, and use is_global_var.
16196 * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
16197 determine if a variable was referred to, not var_ann.
16198 * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
16199 (remove_unused_locals): Ditto.
16200 * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
16201 * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
16202 * tree.c (copy_node_stat): Don't clear var ann pointer.
16203 * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
16205 (DECL_VAR_ANN_PTR): Remove.
16207 2012-08-01 Michael Matz <matz@suse.de>
16209 * tree-flow.h (struct var_ann_d): Rename used member.
16210 (set_is_used): Don't declare.
16211 * tree-flow-inline.h (clear_is_used): Remove.
16212 (set_is_used, is_used_p): Move to ...
16213 * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
16214 on the side bitmap.
16215 (usedvars): New bitmap.
16216 (dump_scope_block): Don't dump unusedness.
16217 (remove_unused_locals): Allocate and free usedvars.
16218 * tree-nrv.c (tree_nrv): Don't clear used flags here.
16220 2012-08-01 Michael Matz <matz@suse.de>
16222 * tree-flow.h (struct var_ann_d): Remove base_var_processed and
16223 base_index members.
16224 * tree-ssa-live.h (struct _var_map): Remove basevars member.
16225 (VAR_ANN_BASE_INDEX): Remove.
16226 * tree-ssa-live.c (var_map_base_init): Use a hash table instead
16227 of var annotation to compress index space. Don't deal with above
16229 (var_map_base_fini): Don't free basevars.
16230 (init_var_map): Don't clear basevars.
16232 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
16234 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
16235 base_name to base_expr.
16236 (struct cand_chain_d): Likewise.
16237 (base_cand_hash): Likewise.
16238 (base_cand_eq): Likewise.
16239 (record_potential_basis): Likewise.
16240 (alloc_cand_and_find_basis): Likewise.
16241 (create_mul_ssa_cand): Likewise.
16242 (create_mul_imm_cand): Likewise.
16243 (create_add_ssa_cand): Likewise.
16244 (create_add_imm_cand): Likewise.
16245 (slsr_process_cast): Likewise.
16246 (slsr_process_copy): Likewise.
16247 (dump_candidate): Likewise.
16248 (base_cand_dump_callback): Likewise.
16249 (unconditional_cands_with_known_stride_p): Likewise.
16250 (cand_increment): Likewise.
16252 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
16254 PR tree-optimization/46556
16255 * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
16256 (base_cand_map): Change to hash table.
16257 (base_cand_hash): New function.
16258 (base_cand_free): Likewise.
16259 (base_cand_eq): Likewise.
16260 (lookup_cand): Change base_cand_map to hash table.
16261 (find_basis_for_candidate): Likewise.
16262 (base_cand_from_table): Exclude CAND_REF.
16263 (restructure_reference): New function.
16264 (slsr_process_ref): Likewise.
16265 (find_candidates_in_block): Call slsr_process_ref.
16266 (dump_candidate): Handle CAND_REF.
16267 (base_cand_dump_callback): New function.
16268 (dump_cand_chains): Change base_cand_map to hash table.
16269 (replace_ref): New function.
16270 (replace_refs): Likewise.
16271 (analyze_candidates_and_replace): Call replace_refs.
16272 (execute_strength_reduction): Change base_cand_map to hash table.
16274 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
16276 * config/i386/i386.c (ix86_address_subreg_operand): Reject
16278 (ix86_print_operand_address): Assert that parts.base and parts.index
16279 are non-NULL after call to simplify_subreg.
16281 2012-08-01 Richard Guenther <rguenther@suse.de>
16283 * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
16285 2012-08-01 Richard Guenther <rguenther@suse.de>
16287 * graphite-clast-to-gimple.c (translate_clast_user): Rename
16289 * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
16291 * tree-call-cdce.c (tree_call_cdce): Use
16292 mark_virtual_operands_for_renaming.
16293 * tree-eh.c (sink_clobbers): Simplify.
16294 * tree-flow.h (mark_sym_for_renaming): Remove.
16295 (mark_virtual_operands_for_renaming): New function.
16296 * tree-if-conv.c (tree_if_conversion): Use
16297 mark_virtual_operands_for_renaming.
16298 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
16299 * tree-into-ssa.c (mark_sym_for_renaming): Remove.
16300 (mark_virtual_operands_for_renaming): New function.
16301 * tree-loop-distribution.c (tree_loop_distribution): Use
16302 mark_virtual_operands_for_renaming.
16303 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
16304 update stmts, use mark_virtual_operands_for_renaming.
16305 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
16306 (replace_block_by): Adjust.
16307 (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
16308 * tree-tailcall.c (tree_optimize_tail_calls_1): Use
16309 mark_virtual_operands_for_renaming.
16310 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
16311 * tree-vectorizer.c (vectorize_loops): Likewise.
16313 2012-08-01 Richard Guenther <rguenther@suse.de>
16315 * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
16316 add ssa_renaming_needed and rename_vops flags.
16317 (SYMS_TO_RENAME): Remove.
16318 (symbol_marked_for_renaming): Likewise.
16319 (mark_virtual_ops_for_renaming): Likewise.
16320 * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
16322 (mark_for_renaming, marked_for_renaming): New functions.
16323 (symbol_marked_for_renaming): Remove.
16324 (dump_currdefs): Adjust.
16325 (maybe_replace_use): Likewise.
16326 (maybe_replace_use_in_debug_stmt): Likewise.
16327 (maybe_register_def): Likewise.
16328 (rewrite_update_phi_arguments): Likewise.
16329 (rewrite_update_enter_block): Likewise.
16330 (fini_ssa_renamer): Clear update SSA status here ...
16331 (delete_update_ssa): ... not here. Free rename set.
16332 (prepare_block_for_update): Compute which decls need renaming.
16333 (dump_update_ssa): Adjust.
16334 (mark_sym_for_renaming): Adjust update SSA status for virtuals.
16335 (need_ssa_update_p): Adjust.
16336 (insert_updated_phi_nodes_for): Likewise.
16337 (update_ssa): Likewise.
16338 * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
16339 for virtual and real operands.
16340 (finalize_ssa_uses): Likewise.
16341 * tree-ssanames.c (init_ssanames): Adjust.
16342 * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
16343 execute_update_addresses_taken): Add bitmap to keep track of which
16344 candidates are suitable for rewriting and later renaming by SSA update.
16345 * matrix-reorg.c (transform_access_sites): Do not rename all defs.
16346 * tree-dfa.c (make_rename_temp): Do not mark real operands for
16348 * cgraphunit.c (assemble_thunk): Likewise.
16349 * gimplify.c (gimple_regimplify_operands): Likewise.
16350 (force_gimple_operand_1): Likewise.
16351 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
16352 * tree-inline.c (declare_return_variable): Likewise.
16353 * tree-parloops.c (separate_decls_in_region_stmt): Do not call
16354 mark_virtual_ops_for_renaming.
16355 (create_stores_for_reduction): Likewise.
16356 (create_loads_and_stores_for_name): Likewise.
16357 * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
16358 (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
16359 (execute_load_motion): Likewise.
16360 (remove_stmt): Likewise.
16361 (execute_pred_commoning_chain): Likewise.
16362 * tree-sra.c (create_access_replacement): Do not rename real operands.
16363 (get_unrenamed_access_replacement): Unify with ...
16364 (get_access_replacement): ... this.
16365 (get_repl_default_def_ssa_name): Adjust.
16366 * tree-ssa-loop-im.c (move_computations_stmt): Manually update
16368 (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
16369 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
16371 2012-07-31 DJ Delorie <dj@redhat.com>
16373 * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
16374 extensions for TPF, unless specifically selected.
16376 2012-08-01 Alan Modra <amodra@gmail.com>
16379 * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
16380 of lo_sum offsets. Comment. Assert mode at least word size
16381 rather than bypassing powerpc64 word offset check.
16383 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
16385 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
16386 costs for vec_perm and vec_promote_demote down to more natural values.
16387 (struct _rs6000_cost_data): New data structure.
16388 (rs6000_density_test): New function.
16389 (rs6000_init_cost): Change to use rs6000_cost_data.
16390 (rs6000_add_stmt_cost): Likewise.
16391 (rs6000_finish_cost): Perform density test when vectorizing a loop.
16393 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
16395 * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling
16396 of RTX_UNARY function-like operations. Print unknown expression
16397 RTX classes as pseudo-functions.
16398 (print_pattern): Simplify return pattern printing.
16399 (dump_insn_slim): Print the value of notes as a pattern for proper
16400 printing of CFA notes.
16402 2012-07-31 Dehao Chen <dehao@google.com>
16404 * predict.c (tree_estimate_probability_driver): Normalize the
16405 loop when initializing the loop optimizer.
16407 2012-07-31 Richard Guenther <rguenther@suse.de>
16409 * tree-flow.h (struct var_ann_d): Remove need_phi_state
16410 and current_def members.
16411 * tree-into-ssa.c (struct def_blocks_d): Remove var member.
16412 (def_blocks): Remove.
16413 (struct var_info_d): New.
16414 (var_infos): New hashtable.
16415 (struct ssa_name_info): Add def_blocks member.
16416 (get_ssa_name_ann): Adjust.
16417 (get_var_info): New function.
16418 (get_phi_state, set_phi_state, get_current_def,
16419 set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
16420 (insert_phi_nodes_compare_def_blocks): Rename to ...
16421 (insert_phi_nodes_compare_var_infos): ... this and adjust.
16422 (insert_phi_nodes): Adjust.
16423 (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
16424 (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
16425 (debug_def_blocks_r): Rename to ...
16426 (debug_var_infos_r): ... this and adjust.
16427 (var_info_hash): New function.
16428 (var_info_eq): Likewise.
16429 (rewrite_blocks): Adjust.
16430 (init_ssa_renamer): Likewise.
16431 (fini_ssa_renamer): Likewise.
16432 (delete_update_ssa): Likewise.
16433 (update_ssa): Likewise.
16434 * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
16436 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
16438 PR tree-optimization/53773
16439 * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
16440 (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
16441 * tree-vect-loop.c (new_loop_vec_info): Initialize
16442 LOOP_VINFO_OPERANDS_SWAPPED field.
16443 (destroy_loop_vec_info): Restore canonical form.
16444 (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
16445 (vect_is_simple_reduction_1): Likewise.
16447 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
16449 * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
16450 start of each new line.
16451 * final.c (final_scan_insn): If the final dump is requested as
16452 slim RTL, dump slim RTL to the assembly file also.
16454 2012-07-31 Andrey Belevantsev <abel@ispras.ru>
16458 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
16461 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
16463 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
16464 only if producer writes to the register given by regno.
16466 2012-07-31 Nick Clifton <nickc@redhat.com>
16468 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
16469 support for reporting stack usage.
16471 * config/frv/frv.c (QUAD): Fix typo.
16472 (frv_expand_prologue): Report stack usage.
16474 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
16477 * gengtype.c (struct walk_type_data): Add have_this_obj field.
16478 (walk_type): For functions that take a this_obj argument and
16479 that process fields with a GTY((length)) argument, write the
16480 test that write_types_local_process_field will write also at the
16481 head of the loop, effectively unswitching the loop.
16482 (write_func_for_structure, write_local_func_for_structure): Clear
16483 have_this_obj before calling walk_type.
16484 (write_local_func_for_structure): Set have_this_obj before walk_type.
16485 (write_array): Set have_this_obj for output of local pointer walking
16486 functions but not for marker functions.
16487 (write_types_local_process_field): Assert have_this_obj is set.
16489 * rtl.h (simplify_using_condition): Adjust prototype using bitmap
16492 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
16495 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16496 * targhooks.c (default_mode_dependent_address_p): Delete code
16497 for GO_IF_MODE_DEPENDENT_ADDRESS.
16498 * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
16499 * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
16500 * doc/tm.texi: Regenerate.
16501 * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
16502 * config/alpha.c (alpha_mode_dependent_address_p): ...here. New
16504 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16505 * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16506 * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16507 * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
16508 * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16509 * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
16511 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16513 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
16515 * expmed.h (NUM_MODE_VECTOR_INT): Define.
16516 (struct expmed_op_cheap, struct expmed_op_costs): New structures.
16517 (struct target_expmed): Convert x_mul_highpart_cost and
16518 x_mul_widen_cost fields to be indexed by integer modes.
16519 Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
16520 of type struct expmed_op_cheap. Convert other cost fields to be
16521 of type struct_expmed_op_costs.
16522 (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
16523 indexing of respective fields.
16524 (expmed_op_cheap_ptr): New function.
16525 (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
16526 (expmed_op_cost_ptr): New function.
16527 (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
16528 shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
16529 sdiv_cost_ptr, udiv_cost_ptr): Call it.
16531 2012-07-30 Sandra Loosemore <sandra@codesourcery.com>
16532 Julian Brown <julian@codesourcery.com>
16534 * doc/invoke.texi (MIPS Options): Document -mno-float.
16535 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
16538 2012-07-30 Joseph Myers <joseph@codesourcery.com>
16540 * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
16542 2012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16544 PR middle-end/53823
16545 * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
16546 for special cases. Don't initialize coeff and is_neg.
16548 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
16549 Richard Earnshaw <rearnsha@arm.com>
16551 * target.def (vector_alignment): New target hook.
16552 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
16553 * doc/tm.texi: Regenerate.
16554 * targhooks.c (default_vector_alignment): New function.
16555 * targhooks.h (default_vector_alignment): Add prototype.
16556 * stor-layout.c (layout_type): Use targetm.vector_alignment.
16557 * config/arm/arm.c (arm_vector_alignment): New function.
16558 (TARGET_VECTOR_ALIGNMENT): Define.
16560 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
16561 vector type alignment instead of size.
16562 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
16563 element type size directly instead of computing it from alignment.
16564 Fix variable naming and comment.
16566 2012-07-30 Kirill Yukhin <kirill.yukhin@intel.com>
16567 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16569 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
16570 (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
16571 (ix86_handle_option): Handle mrdseed option.
16572 * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
16573 (x86_64-*-*): Likewise.
16574 * config/i386/prfchwintrin.h: New header.
16575 * config/i386/cpuid.h (bit_RDSEED): New.
16576 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16578 * config/i386/i386-c.c: Define __RDSEED__ if needed.
16579 * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
16581 (ix86_option_override_internal): Handle new option.
16582 (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
16583 (ix86_builtins): Add enum entries for RDSEED* builtins.
16584 (ix86_init_mmx_sse_builtins): Define new builtins.
16585 (ix86_expand_builtin): Expand RDSEED* builtins.
16586 * config/i386/i386.h (TARGET_RDSEED): New.
16587 * config/i386/i386.md (rdseed<mode>_1): New.
16588 * config/i386/i386.opt (mrdseed): New.
16589 * config/i386/x86intrin.h: Include rdseedintrin.h.
16591 2012-07-30 Richard Guenther <rguenther@suse.de>
16593 * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
16594 (rewrite_stmt): Likewise.
16595 (rewrite_enter_block): Likewise.
16596 (pass_build_ssa): Do not update virtual SSA form during TODO.
16597 (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
16598 * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
16600 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
16603 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
16606 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
16609 * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
16610 Use t_reg_operand predicate. Add split for negated case.
16611 (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
16612 * config/sh/sh.c (expand_ashiftrt): Likewise.
16614 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
16617 * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
16618 of trying to emit ashlsi3_n.
16620 2012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16621 Steven Bosscher <steven@gcc.gnu.org>
16623 * gengtype.c (adjust_field_type): Diagnose duplicate "length"
16624 option applications and option being applied to arrays of atomic types.
16625 (walk_type): Allow "atomic" option on strings too.
16626 * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
16627 for the array field.
16628 * vec.h: Describe the atomic object "A" type of the macros in
16629 the header comment.
16630 (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
16631 * emit-rtl.c (locations_locators_vals): use the atomic object vector.
16632 * doc/gty.texi: Clarify that GTY option "length" is only for
16633 arrays of non-atomic objects. Fix typo in the description of the
16636 2012-07-27 Uros Bizjak <ubizjak@gmail.com>
16638 * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
16639 zero-extended addresses. Return false if the address has less
16640 than two components.
16641 (ix86_split_lea_for_addr): Unconditionally convert target and
16642 all address operands to requested mode.
16643 * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
16644 Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
16646 (zero-extended add splitter): New splitter to conditionally split
16647 non-destructive adds.
16648 (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
16650 2012-07-28 Alan Modra <amodra@gmail.com>
16653 * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
16654 multi-gpr reload to cases where predicate passes. Do the same for
16655 64-bit multi-gpr reload.
16657 2012-07-27 Nathan Froyd <froydnj@gcc.gnu.org>
16659 * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
16660 smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
16661 shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
16662 sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
16663 macro definitions and re-purpose as inline functions.
16664 (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
16665 set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
16666 zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
16667 neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
16668 shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
16669 set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
16670 mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
16671 udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
16672 set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
16674 (convert_cost_ptr): New function, split out from...
16675 (set_convert_cost, convert_cost): ...here.
16676 * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
16677 * gimple-ssa-strength-reduction.c: Likewise.
16679 2012-07-20 Ryan Mansfield <rmansfield@qnx.com>
16681 * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
16682 diagnostic_initialize.
16684 2012-07-27 Oleg Endo <olegendo@gcc.gnu.org>
16687 * config/sh/sh.c (shiftcosts): Remove case where first operand
16688 is a const_int. Move COSTS_N_INSNS usage into caller ...
16689 (sh_rtx_costs) ... here. Return false when shiftcosts cannot be
16690 calculated instead of MAX_COST.
16692 2012-07-27 Richard Guenther <rguenther@suse.de>
16694 * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
16695 check whether SSA form is not up-to-date.
16696 * tree-flow.h (name_mappings_registered_p): Remove.
16697 * tree-into-ssa.c (struct repl_map_d): Remove.
16698 (repl_tbl): Likewise.
16699 (struct ssa_name_info): Add repl_set member.
16700 (update_ssa_obstack): New static global.
16701 (get_ssa_name_ann): Initialize repl_set.
16702 (clear_ssa_name_info): Assert age did not wrap.
16703 (repl_map_hash, repl_map_eq, repl_map_free): Remove.
16704 (names_replaced_by): Adjust.
16705 (add_to_repl_tbl): Likewise.
16706 (dump_tree_ssa_stats): Likewise.
16707 (init_update_ssa): Initialize update_ssa_obstack.
16708 (delete_update_ssa): Free update_ssa_obstack.
16709 (name_mappings_registered_p): Remove.
16710 (update_ssa): Adjust.
16712 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
16714 * config/rs6000/constraints.md: Delete "q" constraint.
16715 * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
16716 Delete the "q" alternative.
16717 * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
16718 * config/rs6000/rs6000.c (rs6000_debug_reg_global)
16719 (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
16720 adjust to MQ_REGNO removal.
16721 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
16723 (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order.
16724 (enum reg_class): Adjust comment. Delete MQ_REGS.
16725 (REG_CLASS_CONTENTS): Adjust.
16726 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
16727 * config/rs6000/rs6000.md: Delete MQ_REGNO.
16728 (movsi_internal1, movsi_internal1_single, movhi_internal,
16729 movqi_internal, movcc_internal1, movsf_hardfloat,
16730 movsf_softfloat): Delete the "q" alternative.
16731 (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
16732 ctr<mode>_internal6): Delete "q" constraint.
16734 2012-07-27 Richard Guenther <rguenther@suse.de>
16736 * tree-into-ssa.c (def_blocks_p): New typedef.
16737 (insert_phi_nodes_compare_def_blocks): New function.
16738 (insert_phi_nodes): Do not walk over referenced vars, instead
16739 walk over recorded def_blocks, record relevant ones and sort
16740 them to avoid repeated hashtable lookups.
16742 2012-07-27 Richard Guenther <rguenther@suse.de>
16744 * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
16745 Remove param documentation.
16746 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
16747 PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
16748 * tree-flow.h (mark_set_for_renaming): Remove.
16749 * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
16750 (add_new_name_mapping): Remove bookkeeping code.
16751 (dump_update_ssa): Remove stats dumping code.
16752 (init_update_ssa): Remove stats allocation code.
16753 (delete_update_ssa): Remove stats freeing code.
16754 (mark_set_for_renaming): Remove.
16755 (switch_virtuals_to_full_rewrite_p): Likewise.
16756 (switch_virtuals_to_full_rewrite): Likewise.
16757 (update_ssa): Do not call switch_virtuals_to_full_rewrite.
16759 2012-07-27 Marek Polacek <polacek@redhat.com>
16761 * cgraphunit.c: Rename varpool_finalize_variable to
16762 varpool_finalize_decl in a comment.
16764 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
16766 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
16767 Delete code for -mno-power, -mpower, and -mpower2.
16768 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
16769 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16771 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
16772 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
16773 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16775 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
16776 * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
16777 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16779 (TARGET_POWER): Delete.
16780 * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
16781 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16783 (TARGET_POWER): Delete.
16784 * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
16785 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16787 (TARGET_POWER): Delete.
16788 * config/rs6000/darwin.h (TARGET_POWER): Delete.
16789 * config/rs6000/driver-rs6000.c (struct asm_names): Delete
16790 support for -mpower, -mpower2, and -mno-power.
16791 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
16793 (rs6000_cpu_cpp_builtins): Likewise.
16794 * config/rs6000/rs6000-cpus.def: Likewise.
16795 * config/rs6000/rs6000-tables.opt: Regenerate.
16796 * config/rs6000/rs6000.c (POWER_MASKS): Delete.
16797 (rs6000_option_override_internal): Adjust.
16798 (rs6000_conditional_register_usage): Adjust.
16799 (rs6000_emit_move): Adjust.
16800 (rs6000_common_init_builtins): Adjust.
16801 (rs6000_init_libfuncs): Adjust.
16802 (rs6000_output_function_prologue): Adjust.
16803 (rs6000_adjust_cost): Adjust.
16804 (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
16805 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
16807 (TARGET_DEFAULT): Adjust.
16808 (PROCESSOR_POWER): Delete.
16809 (SHIFT_COUNT_TRUNCATED): Adjust.
16810 * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
16811 (extendqisi2_power): Delete.
16812 (extendqisi2_no_power): Adjust.
16813 (extendqihi2, extendqihi2_power, extendqihi2_no_power):
16815 (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
16816 (anonymous doz insn patterns): Delete.
16818 (abssi2_power): Delete.
16819 (abssi2_nopower): Adjust.
16820 (nabs_power, nabs_nopower): Likewise.
16821 (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
16822 Likewise. Delete anonymous post-reload splitter.
16823 (mulsi3_no_mq_internal1): rename to...
16824 (mulsi3_internal1): New define_insn.
16825 (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
16827 (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
16828 udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
16829 udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
16830 (mulh_call, mull_call, divss_call, divus_call, quoss_call,
16831 quous_call): Likewise.
16832 (maskir_internal1, maskir_internal2, maskir_internal3,
16833 maskir_internal4, maskir_internal5, maskir_internal6,
16834 maskir_internal7, maskir_internal8): Delete.
16835 (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
16836 (anonymous sl insn patterns): Delete.
16837 (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
16838 (lshrsi3_64): Adjust.
16839 (anonymous sr insn patterns): Delete.
16840 (anonymous rrib insn patterns): Delete.
16841 (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
16842 (anonymous sra insn patterns): Delete.
16843 (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
16844 (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
16845 fctiwz_<mode>): Adjust.
16846 (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
16847 umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
16848 smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
16849 umulsi3_highpart_no_mq): Adjust.
16850 (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
16851 (ashrdi3_no_power, ashldi3, ashldi3_internal1,
16852 lshrdi3_internal1): Adjust.
16853 (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
16854 (movti_power): Delete.
16855 (movti_string): Adjust.
16856 (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
16857 (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
16858 stmsi4_power, stmsi3_power): Delete.
16859 (anonymous movmemsi insn patterns): Adjust.
16860 (lfq_power2, stfq_power2): Delete.
16861 (eq<mode>, eq<mode>_compare): Adjust.
16862 (eqsi_power): Delete.
16864 (anonymous le, lt, ge, gt insn patterns): Delete.
16865 * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
16866 * config/rs6000/sysv4.h (TARGET_POWER): Delete.
16867 * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16868 MULTILIB_MATCHES): Adjust.
16869 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
16870 -mpower, -mno-power, -mpower2, -mno-power2 documentation.
16871 Delete -mcpu=power and -mcpu=power2 documentation.
16873 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
16875 * config/rs6000/601.md: New file.
16876 * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
16878 * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
16879 * config/rs6000/driver-rs6000.c (detect_processor_aix,
16880 struct asm_names): Likewise.
16881 * config/rs6000/rios1.md: Delete file.
16882 * config/rs6000/rios2.md: Delete file.
16883 * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
16885 * config/rs6000/rs6000-opts.h (enum processor_type): Delete
16886 PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
16887 * config/rs6000/rs6000-tables.opt: Regenerated.
16888 * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
16890 (rs6000_option_override_internal): Delete support for RIOS CPUs.
16891 (rs6000_conditional_register_usage): Adjust comment.
16892 (rs6000_issue_rate):Delete support for RIOS CPUs.
16893 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
16895 (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
16896 (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
16897 * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
16899 (include "rios1.md", include "rios2.md"): Delete.
16900 (include "601.md"): New.
16901 * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
16903 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
16905 * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
16906 rios2.md . Add 601.md .
16908 2012-07-26 Richard Henderson <rth@redhat.com>
16910 * doc/extend.texi (attribute): Document hot/cold for labels.
16911 * predict.c (tree_estimate_probability_bb): Handle hot/cold
16912 attributes on user labels.
16913 * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
16915 2012-07-26 Andrew Jenner <andrew@codesourcery.com>
16916 Sandra Loosemore <sandra@codesourcery.com>
16918 * cse.c (find_comparison_args): Check for cycles of any length.
16920 2012-07-26 Nick Clifton <nickc@redhat.com>
16922 * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
16923 (mn10300_get_live_callee_saved_regs): If requested return a count
16924 of the number of bytes in the mask.
16925 (mn10300_expand_prologue): Add argument to invocation of
16926 mn10300_get_live_callee_regs.
16927 (mn10300_expand_epilogue): Compute reg_save_bytes by calling
16928 mn10300_get_live_callee_saved_regs.
16929 (mn10300_initial_offset): Likewise.
16930 * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
16932 * config/mn10300/mn10300.md (return_ret): Add argument to
16933 invocation of mn10300_get_live_callee_saved_regs.
16935 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
16937 PR regression/54084
16938 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
16939 pointer difference check.
16941 2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
16943 * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
16944 (mbc_entry_eq): Likewise.
16945 (mult_costs): Likewise.
16946 (cost_tables_exist): Likewise.
16947 (initialize_costs): Likewise.
16948 (finalize_costs): Likewise.
16949 (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
16950 (add_regs_cost): Remove.
16951 (multiply_regs_cost): Likewise.
16952 (add_const_cost): Likewise.
16953 (extend_or_trunc_reg_cost): Likewise.
16954 (negate_reg_cost): Likewise.
16955 (struct mbc_entry): Likewise.
16956 (multiply_by_const_cost): Likewise.
16957 (get_address_cost): Change add_regs_cost calls to add_cost lookups;
16958 change multiply_by_const_cost to mult_by_coeff_cost.
16959 (force_expr_to_var_cost): Likewise.
16960 (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
16961 (get_computation_cost_at): Change add_regs_cost calls to add_cost
16962 lookups; change multiply_by_const_cost to mult_by_coeff_cost.
16963 (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
16964 (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
16965 * tree-ssa-address.c (expmed.h): New #include.
16966 (most_expensive_mult_to_index): Change multiply_by_const_cost to
16967 mult_by_coeff_cost.
16968 * gimple-ssa-strength-reduction.c (expmed.h): New #include.
16969 (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
16970 neg_cost, and convert_cost instead of IVOPTS interfaces.
16971 (execute_strength_reduction): Remove calls to initialize_costs and
16973 * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
16974 (init_expmed_one_mode): Initialize convert rtx_def; initialize
16975 x_convert_cost for related modes.
16976 (mult_by_coeff_cost): New function.
16977 * expmed.h (NUM_MODE_INT): New #define.
16978 (struct target_expmed): Add x_convert_cost matrix.
16979 (set_convert_cost): New inline function.
16980 (convert_cost): Likewise.
16981 (mult_by_coeff_cost): New extern decl.
16982 * tree-flow.h (initialize_costs): Remove decl.
16983 (finalize_costs): Likewise.
16984 (multiply_by_const_cost): Likewise.
16985 (add_regs_cost): Likewise.
16986 (multiply_regs_cost): Likewise.
16987 (add_const_cost): Likewise.
16988 (extend_or_trunc_reg_cost): Likewise.
16989 (negate_reg_cost): Likewise.
16990 * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
16991 (tree-ssa-address.o): Update dependencies.
16993 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
16995 * bitmap.h: Add explanation of sparse set as linked-list bitmap.
16996 * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
16997 (TEST_BIT): Make a static inline function for stronger type checking.
16998 (SET_BIT): Don't handle sbitmaps with popcount.
16999 (RESET_BIT): Likewise.
17000 (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
17001 (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
17002 * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
17003 RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
17004 (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
17005 ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
17006 * sparseset.h: Add explanation of sparse set representation.
17008 2012-07-26 Richard Guenther <rguenther@suse.de>
17010 PR tree-optimization/54098
17011 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
17012 original range was UNDEFINED.
17014 2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17016 * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
17017 vld1Q_dupu64 tests.
17019 2012-07-26 Oleg Endo <olegendo@gcc.gnu.org>
17022 * config/sh/sh.opt (mzdcbranch): New option.
17023 * doc/invoke.texi: Document it.
17024 * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
17025 instead of TARGET_HARD_SH4.
17026 * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
17027 for TARGET_HARD_SH4.
17029 2012-07-25 Oleg Endo <olegendo@gcc.gnu.org>
17032 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
17034 (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
17035 * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
17036 from expander. Do not emit shift insn for not-SHMEDIA case.
17037 (ashlsi3_std): Replace with ...
17038 (ashlsi3_k, ashlsi3_d): ... these new insns.
17039 * config/sh/sh.c (gen_ashift): Make static. Add sanity checks.
17040 Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
17041 (gen_ashift_hi): Make static.
17042 * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
17045 2012-07-25 Bharathi Seshadri <bseshadr@cisco.com>
17046 Jim Wilson <jimwilso@cisco.com>
17048 * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
17049 TARGET_BIG_ENDIAN_DEFAULT.
17051 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
17053 * gimple-low.c (lower_try_catch): New function.
17054 (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
17055 <GIMPLE_CATCH>: Delete.
17056 <GIMPLE_EH_FILTER>: Likewise.
17058 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
17060 * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
17061 of BIT_FIELD_REF for ignored results.
17062 * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
17063 CONSTRUCTOR has vector type before using vector accessors on it.
17064 * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
17065 #2 of BIT_FIELD_REF.
17066 (gimplify_expr) <BIT_FIELD_REF>: Likewise.
17067 * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
17068 not process operand #1 and #2.
17069 (convert_local_reference_op): Likewise.
17070 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
17072 <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
17073 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
17075 (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
17076 (build6_stat): Delete.
17077 * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
17079 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
17081 PR tree-optimization/30318
17082 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
17084 [MINUS_EXPR]: Merge with PLUS_EXPR.
17086 2012-07-25 Sandra Loosemore <sandra@codesourcery.com>
17087 Paul Brook <paul@codesourcery.com>
17090 * target.def (warn_func_return): New hook.
17091 * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
17092 * doc/tm.texi: Regenerate.
17093 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17095 * ipa-pure-const.c (warn_function_noreturn): Check
17096 targetm.warn_func_return.
17097 * tree-cfg.c (execute_warn_function_return): Likewise.
17098 * config/spu/spu.c (spu_warn_func_return): New.
17099 (TARGET_WARN_FUNC_RETURN): Define.
17100 * config/rx/rx.c (rx_warn_func_return): New.
17101 (TARGET_WARN_FUNC_RETURN): Define.
17102 * config/avr/avr.c (avr_warn_func_return): New.
17103 (TARGET_WARN_FUNC_RETURN): Define.
17104 * config/arm/arm.c (arm_warn_func_return): New.
17105 (TARGET_WARN_FUNC_RETURN): Define.
17106 * config/mcore/mcore.c (mcore_warn_func_return): New.
17107 (TARGET_WARN_FUNC_RETURN): Define.
17108 (saved_warn_return_type, saved_warn_return_type_count): Remove.
17109 (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
17111 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
17113 * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
17114 function to implement assembler dialects.
17115 (output_asm_insn): Use do_assembler_dialects.
17116 (asm_fprintf): Likewise.
17118 2012-07-25 Richard Henderson <rth@redhat.com>
17121 * libfuncs.h: Don't include optabs.h.
17122 (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
17123 * optabs.c (hash_libfunc): Don't cast members to int.
17124 * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
17126 2012-07-25 Dodji Seketeli <dodji@redhat.com>
17128 * basic-block.c: Fix typo in comment.
17130 2012-07-25 Kirill Yukhin <kirill.yukhin@intel.com>
17131 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17133 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
17134 (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
17135 (ix86_handle_option): Handle mprfchw option.
17136 * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
17137 (x86_64-*-*): Likewise.
17138 * config/i386/prfchwintrin.h: New header.
17139 * config/i386/cpuid.h (bit_PRFCHW): New.
17140 (bit_BMI): Formatting fix.
17141 (bit_HLE): Likewise.
17142 (bit_RTM): Likewise.
17143 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17145 * config/i386/i386-c.c: Define __PRFCHW__ if needed.
17146 * config/i386/i386.c (ix86_target_string): Define
17147 -mprfchw option. Formatting fixes.
17148 (PTA_HLE): Formatting fix.
17150 (ix86_option_override_internal): Handle new option.
17151 (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
17152 * config/i386/i386.h (TARGET_PRFCHW): New.
17153 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
17154 * config/i386/i386.opt (mprfchw): New.
17155 * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
17156 * config/i386/x86intrin.h: Include prfchwintrin.h.
17158 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
17160 * config/i386/i386.md (stack_protect_set): Disable the pattern
17161 for Android since Android libc (bionic) does not provide random
17162 value for stack protection guard at gs:0x14. Guard value
17163 will be provided from external symbol (default implementation).
17164 (stack_protect_set_<mode>): Likewise.
17165 (stack_protect_test): Likewise.
17166 (stack_protect_test_<mode>): Likewise.
17167 * defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
17168 not have Bionic by default
17169 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
17170 Macro OPTION_BIONIC is defined in this file and provides Bionic
17171 accessibility status
17173 2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
17175 * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
17177 2012-07-25 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17180 * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
17181 (case ${target}): Add btver2.
17182 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17183 -march=native recognize btver2 processors.
17184 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17185 btver2 def_and_undef
17186 * config/i386/i386.c (struct processor_costs btver2_cost): New
17188 (m_BTVER2): New definition.
17189 (m_AMD_MULTIPLE): Includes m_BTVER2.
17190 (initial_ix86_tune_features): Add btver2 tune.
17191 (processor_target_table): Add btver2 entry.
17192 (static const char *const cpu_names): Add btver2 entry.
17193 (software_prefetching_beneficial_p): Add btver2.
17194 (ix86_option_override_internal): Add btver2 instruction sets.
17195 (ix86_issue_rate): Add btver2.
17196 (ix86_adjust_cost): Add btver2.
17197 * config/i386/i386.h (TARGET_BTVER2): New definition.
17198 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
17199 (enum processor_type): Add PROCESSOR_BTVER2.
17200 * config/i386/i386.md (define_attr "cpu"): Add btver2.
17202 2012-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
17204 * doc/tm.texi: Regenerate.
17205 * targhooks.c (default_init_cost): Add prologue and epilogue costs.
17206 (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
17207 (default_finish_cost): Add prologue and epilogue costs.
17208 * targhooks.h (default_add_stmt_cost): Change parameter list.
17209 (default_finish_cost): Likewise.
17210 * target.def (init_cost): Change documentation string.
17211 (add_stmt_cost): Change documentation string and parameter list.
17212 (finish_cost): Likewise.
17213 * target.h (vect_cost_model_location): New enum.
17214 * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
17215 (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
17217 (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
17218 (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
17219 (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
17220 (struct _vect_peel_extended_info): Rename stmt_cost_vec to
17222 (struct _stmt_vec_info): Remove cost substruct.
17223 (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
17224 (stmt_vinfo_set_outside_of_loop_cost): Remove.
17225 (builtin_vectorization_cost): New function.
17226 (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
17227 (add_stmt_cost): Change parameter list.
17228 (finish_cost): Likewise.
17229 (vect_model_simple_cost): Likewise.
17230 (vect_model_store_cost): Likewise.
17231 (vect_model_load_cost): Likewise.
17232 (record_stmt_cost): Likewise.
17233 (vect_get_load_cost): Likewise.
17234 (vect_get_known_peeling_cost): Likewise.
17235 * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
17236 list; call record_stmt_cost for prologue and epilogue costs.
17237 (vect_estimate_min_profitable_iters): Call add_stmt_cost for
17238 prologue and epilogue costs; remove computation of vec_outside_cost;
17239 return vec_prologue_cost and vec_epilogue_cost from finish_cost.
17240 (vect_model_reduction_cost): Revise call to add_stmt_cost for body
17241 costs; call add_stmt_cost for prologue and epilogue costs.
17242 (vect_model_induction_cost): Revise call to add_stmt_cost for body
17243 costs; call add_stmt_cost for prologue costs.
17244 * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
17245 list for function and arguments for calls to vect_get_load_cost and
17246 vect_get_store_cost.
17247 (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
17248 vect_get_data_access_cost and vect_get_known_peeling_cost; use
17249 temporary vectors prologue_cost_vec and epilogue_cost_vec for the
17250 latter call and discard their results; rename stmt_cost_vec to
17251 body_cost_vec; correct possible storage leak for body_cost_vec.
17252 (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
17254 (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
17255 body_cost_vec; add extra dummy parameter on calls to
17256 vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
17257 argument list on call to add_stmt_cost.
17258 * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
17259 rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
17260 builtin_vectorization_cost; add "where" parameter on call to
17262 (vect_model_simple_cost): Change parameter list; call record_stmt_cost
17263 for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
17264 rename stmt_cost_vec to body_cost_vec.
17265 (vect_model_promotion_demotion_cost): Add vect_body argument to call
17266 to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
17267 to stmt_vinfo_set_outside_of_loop_cost.
17268 (vect_model_store_cost): Change parameter list; call record_stmt_cost
17269 for prologue costs; add vect_body argument to call to record_stmt_cost;
17270 rename stmt_cost_vec to body_cost_vec; remove call to
17271 stmt_vinfo_set_outside_of_loop_cost.
17272 (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
17273 vect_body argument to calls to record_stmt_cost.
17274 (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
17275 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
17276 remove call to stmt_vinfo_set_outside_of_loop_cost.
17277 (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
17278 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
17279 call record_stmt_cost for prologue costs.
17280 (vectorizable_store): Change argument list for call to
17281 vect_model_store_cost.
17282 (vectorizable_load): Change argument list for call to
17283 vect_model_load_cost.
17284 (new_stmt_vec_info): Remove assignment to
17285 STMT_VINFO_OUTSIDE_OF_LOOP_COST.
17286 * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
17287 (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
17288 (spu_finish_cost): Add prologue and epilogue costs.
17289 * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
17290 (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
17291 (i386_finish_cost): Add prologue and epilogue costs.
17292 * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
17294 (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
17295 (rs6000_finish_cost): Add prologue and epilogue costs.
17296 * tree-vect-slp.c (vect_free_slp_instance): Rename
17297 SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
17298 (vect_create_new_slp_node): Remove assignment to
17299 SLP_TREE_OUTSIDE_OF_LOOP_COST.
17300 (vect_get_and_check_slp_defs): Change parameter list; change argument
17301 lists to calls to vect_model_store_cost and vect_model_simple_cost.
17302 (vect_build_slp_tree): Change parameter list; change argument lists
17303 to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
17304 recursive self-calls; remove setting of outside_cost from
17305 SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
17307 (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
17308 rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
17309 remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
17311 (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
17312 body_cost_vec; handle null ci->stmt; add vect_body argument to call
17313 to add_stmt_cost; simplify calls to targetm.vectorize.
17314 builtin_vectorization_cost; return vec_prologue_cost and
17315 vec_epilogue_cost from finish_cost.
17316 (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
17317 body_cost_vec; add vect_body argument to call to add_stmt_cost.
17319 2012-07-24 Richard Henderson <rth@redhat.com>
17321 * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
17322 * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17323 * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17324 * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17325 * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
17327 * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17328 * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
17329 (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
17330 * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17331 * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
17332 * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17333 * doc/tm.texi: Rebuild.
17335 2012-07-24 Richard Henderson <rth@redhat.com>
17337 * optabs.def: New file.
17338 * Makefile.in (OPTABS_H): Add insn-opinit.h.
17339 (MOSTLYCLEANFILES): Likewise.
17340 (insn-opinit.o): Remove reload.h
17341 (simple_rtl_generated_c): Remove insn-opinit.c.
17342 (s-opinit): New rule.
17343 (build/genopinit.o): Add optabs.def.
17344 * genopinit.c (rtx_upname): New.
17345 (optabs): Extract to optabs.def
17346 (enum optab_tag, struct optab_def_d, optabs): New.
17347 (struct pattern_d, patterns): New.
17348 (match_pattern): Split out from ...
17349 (gen_insn): ... here. Push matches on patterns vec.
17350 (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
17351 (header_file_name, source_file_name, handle_arg): New.
17352 (open_outfile): New.
17353 (main): Sort and emit new tables. Generate lookup_handler,
17354 raw_optab_handler, swap_optab_enable.
17355 * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
17356 * optabs.c (code_to_optab_): Remove.
17357 (hash_libfunc): Update for optab name change.
17358 (eq_libfunc): Likewise.
17359 (convert_optab_libfunc): Update computation of optab member;
17360 use the new convlib_def table.
17361 (optab_libfunc): Similarly.
17362 (set_optab_libfunc, set_conv_libfunc): Likewise.
17363 (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
17364 (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
17365 (init_optabs): Don't call them; export the data to optabs.def.
17366 (gen_int_libfunc, gen_fp_libfunc): Export non-static.
17367 (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
17368 (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
17369 (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
17370 (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
17371 (gen_int_signed_fixed_libfunc): Likewise.
17372 (gen_int_unsigned_fixed_libfunc): Likewise.
17373 (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
17374 (gen_ufloat_conv_libfunc): Likewise.
17375 (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
17376 (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
17377 (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
17378 (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
17379 (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
17380 (debug_optab_libfuncs): Update for optab representation change.
17381 * optabs.h: Include insn-opinit.h.
17382 (optab, convert_optab, direct_optab): New typedefs.
17383 (struct optab_handlers, struct widening_optab_handlers): Remove.
17384 (struct optab_libcall_d): Rename from optab_d; remove code_,
17385 handlers, widening members.
17386 (struct convert_optab_libcall_d): Rename from convert_optab_d;
17387 remove code_ and handlers members.
17388 (enum optab_index, enum convert_optab_index): Remove.
17389 (enum direct_optab_index): Remove.
17390 (code_to_optab_): Fix array range.
17391 (optab_to_code): Covert to inline function.
17392 (optab_to_code_, convlib_def, normlib_def): Declare.
17393 (raw_optab_handler, swap_optab_enable): Declare.
17394 (unknown_optab): Remove; export to optabs.def
17395 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
17396 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
17397 ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
17398 addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
17399 smul_widen_optab, umul_widen_optab, usmul_widen_optab,
17400 smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
17401 usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
17402 ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
17403 sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
17404 umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
17405 ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
17406 rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
17407 vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
17408 atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
17409 movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
17410 negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
17411 ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
17412 parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
17413 cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
17414 ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
17415 log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
17416 ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
17417 tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
17418 cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
17419 lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
17420 cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
17421 reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
17422 reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
17423 usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
17424 vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
17425 vec_realign_load_optab, vec_widen_umult_hi_optab,
17426 vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
17427 vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
17428 vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
17429 vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
17430 vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
17431 vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
17432 vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
17433 vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
17434 vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
17435 vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
17436 vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
17437 sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
17438 sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
17439 sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
17440 sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
17441 sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
17442 ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
17443 ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
17444 fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
17445 vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
17446 movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
17447 setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
17448 sync_lock_release_optab, sync_add_optab, sync_sub_optab,
17449 sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
17450 atomic_exchange_optab, atomic_compare_and_swap_optab,
17451 atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
17452 atomic_sub_fetch_optab, atomic_and_fetch_optab,
17453 atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
17454 atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
17455 atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
17456 atomic_add_optab, atomic_sub_optab, atomic_and_optab,
17457 atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
17458 atomic_always_lock_free_optab, atomic_is_lock_free_optab,
17459 atomic_thread_fence_optab, atomic_signal_fence_optab,
17460 vec_perm_optab, vec_perm_const_optab): Likewise.
17461 (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
17462 and x_direct_optab_table members; add pat_enable.
17463 (optab_table, convert_optab_table, direct_optab_table): Remove.
17464 (optab_handler): Use raw_optab_handler.
17465 (widening_optab_handler, convert_optab_handler): Likewise.
17466 (set_optab_handler, set_widening_optab_handler): Remove.
17467 (set_convert_optab_handler, set_direct_optab_handler): Remove.
17468 (direct_optab_handler): Defer to optab_handler.
17469 * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
17471 2012-07-24 Jason Merrill <jason@redhat.com>
17473 * bitmap.c (bitmap_descriptor): Adjust order of parameters to
17474 match MEM_STAT_DECL.
17475 * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
17477 2012-07-24 Richard Henderson <rth@redhat.com>
17479 * optabs.h (struct optab_d): Rename code member to code_.
17480 (struct convert_optab_h): Likewise.
17481 (code_to_optab_): Rename from code_to_optab.
17482 (code_to_optab, optab_to_code): New.
17483 * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
17484 * ifcvt.c (noce_emit_move_insn): Likewise.
17485 * optabs.c (simplify_expand_binop): Use optab_to_code.
17486 (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
17487 (avoid_expensive_constant, expand_binop_directly): Likewise.
17488 (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
17489 (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
17490 (have_insn_for, debug_optab_libfuncs): Likewise.
17491 (init_optab, init_optabv, init_convert_optab): Update for optab
17492 member name change.
17494 * libfuncs.h: Include optabs.h.
17495 * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
17496 * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
17497 (lto-streamer-in.o, dwarf2out.o): Update deps.
17499 * optabs.h (unknown_optab): New.
17500 * builtins.c (interclass_mathfn_icode): Use it.
17501 * dojump.c (do_compare_rtx_and_jump): Likewise.
17502 * optabs.c (optab_for_tree_code, expand_binop): Likewise.
17503 * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
17504 (expand_vector_operations_1): Likewise.
17505 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17506 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
17508 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
17510 * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
17512 2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17515 * config/arm/arm.c (arm_print_operand_address): Remove superfluous
17517 * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
17519 ("neon_vld3_lane<mode>":VMQ): Likewise.
17520 ("neon_vld3_dup<mode>":VDX): Likewise.
17521 ("neon_vst3_lane<mode>":VD): Likewise.
17522 ("neon_vst3_lane<mode>":VMQ): Likewise.
17524 2012-07-24 Roland McGrath <mcgrathr@google.com>
17526 * arm.c (arm_get_frame_offsets): Don't use fixed regs for
17527 stack alignment padding.
17529 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
17532 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
17533 negative constant address for TARGET_X32 ...
17534 (ix86_decompose_address): ... here. Reject constant addresses
17535 that don't satisfy x86_64_immediate_operand predicate.
17537 2012-07-24 Julian Brown <julian@codesourcery.com>
17539 * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
17541 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
17543 * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
17544 Move test to check that there is a popcount function for the the number
17545 of bits in SBITMAP_ELT_BITS to sbitmap.c.
17546 * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
17547 MEM_STAT_INFO): Define in terms of their ALONE counterparts.
17549 * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
17550 * configure: Regenerate.
17551 * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
17552 (GCC_MEM_STAT_ARGUMENTS): New define.
17553 (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
17554 (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
17555 (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
17556 FINAL_PASS_MEM_STAT): Define.
17557 * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
17558 * ggc.h (ggc_record_overhead, ggc_free_overhead,
17559 ggc_prune_overhead_list): Remove internal prototypes, they are defined
17560 already in ggc-internal.h.
17561 * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
17563 (add_statistics): Likewise.
17564 (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
17565 * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
17566 wrappers around "survived" and "stats" members.
17567 (alloc_large_page): Always initialize survived.
17568 (ggc_internal_alloc_zone_stat): Likewise.
17569 Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if
17570 GATHER_STATISTICS is non-0.
17571 (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
17572 (sweep_pages): Always increase survived.
17573 (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
17574 (calculate_average_page_survival): Always define.
17575 (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
17576 (ggc_print_statistics): Likewise.
17577 (ggc_pch_read): Likewise.
17578 * ggc-page.c (struct globals): Always define "stats" member.
17579 (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
17580 (ggc_free): Likewise.
17581 (ggc_collec): Likewise.
17582 (ggc_print_statistics): Likewise.
17583 * bitmap.h (struct bitmap_head_def): Always define "desc" member.
17584 (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
17585 * gimple.h (enum gimple_alloc_kind): Always define.
17586 (gimple_alloc_kind): Likewise.
17587 * tree-flow.h (phinodes_print_statistics): Always define.
17588 (ssanames_print_statistics): Likewise.
17589 * vec.h (vec_heap_free): Always define.
17590 (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
17591 * alloc-pool.c (alloc_pool_descriptor): Always define.
17592 (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
17593 (empty_alloc_pool): Likewise.
17594 (pool_alloc): Likewise.
17595 (pool_free): Likewise.
17596 (dump_alloc_pool_statistics): Likewise.
17597 (print_statistics): Always define.
17598 * bitmap.c (struct bitmap_descriptor): Always define.
17599 (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
17600 (register_overhead): Always define.
17601 (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
17602 (bitmap_element_allocate): Likewise.
17603 (bitmap_elt_clear_from): Likewise.
17604 (bitmap_obstack_alloc_stat): Likewise.
17605 (bitmap_gc_alloc_stat): Likewise.
17606 (bitmap_obstack_free): Likewise.
17607 (bitmap_find_bit): Likewise.
17608 (bitmap_ior_and_into): Likewise.
17609 (bitmap_print): Likewise.
17610 (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
17611 * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
17612 (gimple_alloc_kind_names): Likewise.
17613 (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
17614 (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
17615 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
17616 rtvec_alloc_sizes): Always define.
17617 (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
17618 (rtx_alloc_stat): Likewise.
17619 (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
17620 * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
17621 tree_node_sizes, tree_node_kind_names): Always define.
17622 (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
17624 (type_hash_canon): Likewise.
17625 (dump_tree_statistics): Likewise.
17626 * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
17628 (ssanames_print_statistics): Likewise.
17629 (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
17630 * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
17631 (phinodes_print_statistics): Likewise.
17632 (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
17633 * vec.c (struct vec_descriptor): Always define.
17634 (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
17635 vec_descriptor, rester_overhead, free_overhead): Likewise.
17636 (cmp_statistic): Likewise.
17637 (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
17638 (vec_heap_o_reserve_1): Likewise.
17639 (dump_vec_loc_statistics): Likewise.
17641 2012-07-24 Richard Guenther <rguenther@suse.de>
17643 PR tree-optimization/53616
17644 * tree-loop-distribution.c (ldist_gen): Do not change
17645 partition ordering when merging partitions.
17647 2012-07-24 Alan Modra <amodra@gmail.com>
17651 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
17652 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
17653 Adjust all rs6000_legitimate_offset_address_p calls.
17654 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
17655 (rs6000_secondary_reload_gpr): Declare.
17656 (rs6000_legitimate_offset_address_p): Update prototype.
17657 (rs6000_offsettable_memref_p): Delete.
17658 (rs6000_secondary_reload_ppc64): Delete.
17659 * config/rs6000/rs6000.c (address_offset): New function.
17660 (mem_operand_gpr): Likewise.
17661 (rs6000_legitimate_offset_address_p): Add worst_case param. When
17662 not worst_case assume class of regs with least restrictive offsets.
17664 (legitimate_lo_sum_address_p): Simplify register mode tests.
17665 (rs6000_legitimize_address): Likewise. Assume best case offset
17666 addressing. Combine ELF and MACHO lo_sum code.
17667 (rs6000_mode_dependent_address): Correct offset addressing limits.
17668 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
17669 Use reg_mode to help rs6000_legitimate_offset_address_p.
17670 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
17671 gpr load/store when offset too large.
17672 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
17673 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
17674 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
17675 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
17676 d->m,m->d,d->d. Correct size of gpr load/store.
17677 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
17679 (movti_ppc64): Likewise.
17680 (movdi_internal32): Likewise. Also disparage fprs.
17681 (movdi_mfpgpr, movdi_internal64): Likewise.
17682 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
17683 (movtf_softfloat): Order alternatives.
17684 (extenddftf2_internal): Use 'm' and 'Y' for store.
17685 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
17686 (stack_protect_setdi, stack_protect_testdi): Likewise.
17687 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
17688 (movdf_softfloat64): Likewise.
17689 (reload_<mode>_store): Adjust reload_di_store to provide
17690 reload_si_store as well.
17691 (reload_<mode>_load): Likewise.
17693 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
17696 * config/sh/predicates.md (general_movsrc_operand,
17697 general_movdst_operand): Reject T_REG.
17698 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
17699 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
17700 Remove T_REG alternatives.
17701 (*negtstsi): New insn.
17703 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
17706 * config/sh/sh.md (mulsf3_ie): Delete.
17707 (mulsf3_i4): Rename to mulsf3_i.
17708 (mulsf3): Emit mulsf3_i insn.
17710 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
17712 * config/sh/sh.md (addc1, subc1): Delete.
17713 (adddi3_compact): Use addc instead of addc1.
17714 (subdi3_compact): Use subc instead of subc1.
17716 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
17718 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
17719 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
17720 split_cost argument signed.
17721 (ix86_avoid_lea_for_add): Cleanup.
17722 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
17723 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
17724 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
17726 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
17728 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
17730 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
17733 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
17734 * config/i386/i386.c (ix86_print_operand_address): Ditto.
17735 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
17736 addresses. Prevent zero extensions of CONST_INT operands.
17738 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
17740 * sbitmap.h (struct int_list): Remove.
17741 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
17742 Remove prototypes of non-existing function.
17743 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
17744 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
17746 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
17747 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
17748 * basic-block.h: ... here.
17749 * sbitmap.c: Do not include basic-block.h.
17750 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
17751 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
17752 * cfganal.c: ... here.
17753 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
17754 * gcse.c (compute_code_hoist_vbeinout): Likewise.
17755 * lcm.c (compute_antinout_edge, compute_available): Likewise.
17756 * Makefile.in: Fix sbitmap.o dependencies.
17758 2012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17759 Nick Clifton <nickc@redhat.com>
17761 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
17762 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
17763 (unused) parameter to void *.
17765 2012-07-23 Richard Guenther <rguenther@suse.de>
17767 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
17768 instead of referenced vars.
17770 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
17772 * coverage.c: Refer to "notes file" instead of "graph file"
17773 in all comments. Explain history of bbg prefix.
17774 * gcov-io.h: Likewise.
17775 * gcov.c: Likewise.
17776 (find_source): Likewise in fnotice.
17777 (read_graph_file): Likewise.
17778 (read_count_file): Likewise.
17779 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
17780 and "data file" explicitly in the explanation of the files.
17782 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
17784 PR tree-optimization/53881
17785 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
17786 for each label and compare them instead of labels.
17788 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
17790 * opts.c (common_handle_option): Do not set
17791 flag_value_profile_transformations for -fprofile-generate.
17792 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
17793 (BB_TO_GCOV_INDEX): Remove.
17794 (output_location): Don't use it.
17795 (branch_prob): Likewise. Don't fiddle with the index of
17796 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
17797 (find_spanning_tree):
17798 * gcov.c (struct function_info): Document that blocks 0 and 1
17799 are the entry resp. exit blocks in gcov, too, like in GCC itself.
17800 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
17801 blocks identification.
17802 (output_lines): Likewise.
17803 * value-prof.c (gimple_value_profile_transformations): Do not
17804 test flag_value_profile_transformations again.
17805 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
17806 transformation functions.
17807 (gimple_values_to_profile):
17808 Don't test flag_value_profile_transformations
17809 * tree-profile.c (tree_profiling): Assert that the cgraph is in
17810 the CGRAPH_STATE_IPA_SSA state.
17811 Do not set, or look at, after_tree_profile.
17812 * function.h (struct function): Remove after_tree_profile bit.
17813 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
17814 * tree-inline.c (initialize_cfun): Don't copy it.
17815 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
17816 * lto-streamer-in.c (input_struct_function_base): Likewise.
17818 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
17820 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
17821 (SH_DYNAMIC_SHIFT_COST): Use it.
17822 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
17823 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
17824 Add sanity check for input value. Add function description.
17825 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
17826 lshrsi3_d): Use TARGET_DYNSHIFT.
17828 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
17830 * config/sh/sh.md (negc): Delete expander.
17831 (*negc): Rename insn to negc.
17833 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
17836 * config/i386/i386.md (*lea): New insn pattern.
17838 (*lea<mode>_2): Ditto.
17839 (*lea_{3,4,5,6}_zext): Ditto.
17840 * config/i386/predicates.md (lea_address_operand): Do not reject
17841 zero-extended address operands.
17842 * config/i386/constraints.md (j): Remove address constraint.
17843 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
17845 (ix86_print_operand_address): Handle SImode subreg of an address.
17846 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
17848 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
17850 Emit executable-stack note correctly for CRIS targets.
17851 * config/cris/cris.c (cris_file_end): New function.
17852 (TARGET_ASM_FILE_END): Define.
17854 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
17855 Maxim Kuvyrkov <maxim@codesourcery.com>
17856 NetLogic Microsystems Inc.
17858 * config/mips/mips.c (mips_issue_rate): Handle XLP.
17859 * config/mips/mips.md: Include xlp.md.
17860 * config/mips/xlp.md: New file.
17862 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
17864 PR gcov-profile/32543
17865 * profile.c (branch_prob): Update total_num_edges_instrumented and
17866 report the number of edges to instrument.
17868 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
17870 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
17872 2012-07-21 Andrew Pinski <apinski@cavium.com>
17874 * config/mips/mips.md (*popcountdi2_trunc): New pattern
17875 to handle popcount of a truncation.
17877 2012-07-21 Andrew Pinski <apinski@cavium.com>
17879 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
17880 Add a bool argument.
17881 * config/mips/mips.c (mips_block_move_straight): Update call to
17882 mips_expand_ext_as_unaligned_load.
17883 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
17884 Accept DImode dest when the width is that of SImode.
17885 * config/mips/mips.md (extv): Update call to
17886 mips_expand_ext_as_unaligned_load.
17889 2012-07-21 Andrew Pinski <apinski@cavium.com>
17891 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
17894 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
17896 * config/mips/mips.md (define_attr sync_*): Move before "type".
17897 (define_attr "type"): New values "atomic" and "syncloop".
17898 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
17899 Set "type" attribute.
17900 * config/mips/generic.md (generic_atomic, generic_syncloop):
17902 * config/mips/10000.md, config/mips/20kc.md,
17903 * config/mips/24k.md, config/mips/4130.md,
17904 * config/mips/4k.md, config/mips/5400.md,
17905 * config/mips/5500.md, config/mips/5k.md,
17906 * config/mips/7000.md, config/mips/74k.md,
17907 * config/mips/9000.md, config/mips/loongson2ef.md,
17908 * config/mips/loongson3a.md, config/mips/octeon.md,
17909 * config/mips/sb1.md, config/mips/sr71k.md,
17910 * config/mips/xlr.md: Handle "atomic" and "syncloop" types.
17912 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
17914 * config/sh/sh.md: Group and sort shift related patterns.
17915 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
17917 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
17919 * config/cris/cris.c (cris_asm_output_ident): Remove unused
17920 local variables section_asm_op, size, buf.
17922 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
17923 Steven Bosscher <steven@gcc.gnu.org>
17925 * config/rs6000/power4.md (power4-store-update): Fix reservation.
17926 (power4-three): Likewise.
17928 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
17929 Greta Yorsh <Greta.Yorsh@arm.com>
17931 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
17932 * config/arm/arm-cores.def (cortex-a15): Use it.
17934 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
17935 Greta Yorsh <Greta.Yorsh@arm.com>
17937 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
17938 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
17939 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
17940 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
17941 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
17942 (arm_fa726te_tune): Likewise.
17944 2012-07-20 Richard Guenther <rguenther@suse.de>
17946 * tree-dfa.c (collect_dfa_stats): Simplify.
17947 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
17949 * cfgexpand.c (estimated_stack_frame_size): Walk over local
17950 decls instead of referenced vars.
17951 * tree-ssa.c (delete_tree_ssa): Simplify.
17952 * tree-tailcall.c (find_tail_calls): Walk over local decls
17953 instead of referenced vars.
17954 (add_virtual_phis): Remove.
17955 (tree_optimize_tail_calls_1): Instead mark the virtual operand
17958 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
17960 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
17961 (brief_dump_cfg): Update prototype to take flags argument.
17962 (check_bb_profile): Remove prototype.
17963 * tracer.c (tracer): Update brief_dump_cfg calls.
17964 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
17965 Call dump_bb_info before and after the cfghook dump_bb. Terminate
17966 the dump with a newline.
17967 (dump_flow_info): Do not call check_bb_profile.
17968 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
17969 (check_bb_profile): Make static. Take indent and flags arguments.
17970 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
17971 check_bb_profile. Print one edge per line.
17972 (brief_dump_cfg): Take a flags argument, and filter out
17973 TDF_COMMENT and TDF_DETAILS.
17974 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
17975 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
17976 dump_bb_info here, it is already called from dump_bb. Idem for
17978 (dump_gimple_bb_footer): Likewise.
17979 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
17980 avoid broken dumps for statement histograms.
17981 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
17982 not call pp_flush here, the buffer should be empty.
17983 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
17984 * sched-vis.c (debug_bb_slim): Likewise.
17985 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
17986 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
17987 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
17988 (dump_function_to_file): Do not call check_bb_profile on
17989 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
17990 Use dump_bb instead of gimple_dump_bb.
17991 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
17992 * passes.c (execute_function_dump): Always call print_rtl_with_bb
17994 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
17995 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
17996 bottom of each basic block.
17998 2012-07-20 Richard Guenther <rguenther@suse.de>
18000 PR tree-optimization/54031
18001 * tree-ssa-ccp.c (get_value_from_alignment): Use
18002 get_pointer_alignment_1.
18004 2012-07-20 Richard Guenther <rguenther@suse.de>
18006 * tree-inline.c (add_local_variables): Remove check_var_ann
18007 parameter and dead code.
18008 (expand_call_inline): Adjust.
18009 (tree_function_versioning): Likewise.
18011 2012-07-20 Jakub Jelinek <jakub@redhat.com>
18014 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
18015 of just the first one.
18017 2012-07-20 Richard Guenther <rguenther@suse.de>
18019 * builtins.c (get_object_alignment_2): Correct offset handling
18020 when using type alignment of a MEM_REF kind base.
18022 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
18025 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
18026 (_lzcnt_u64): Ditto.
18028 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
18030 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
18032 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
18034 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
18035 defining statement is a SSA name that occurs in abnormal PHIs.
18037 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
18039 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
18042 2012-07-19 Jakub Jelinek <jakub@redhat.com>
18044 PR rtl-optimization/53942
18045 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
18046 directly from likely spilled non-fixed hard registers, move them
18049 2012-07-19 Steve Ellcey <sellcey@mips.com>
18051 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
18054 2012-07-19 Jason Merrill <jason@redhat.com>
18057 * dwarf2out.c (get_die_parent): New.
18058 (generate_type_signature): Use it.
18060 2012-07-19 Richard Henderson <rth@redhat.com>
18062 * config/ia64/vect.md (smulv4hi3_highpart): New.
18063 (umulv4hi3_highpart): New.
18064 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
18065 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
18066 (udot_prodv8qi, sdot_prodv8qi): Remove.
18067 (sdot_prodv4hi, udot_prodv4hi): Remove.
18068 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
18069 * config/ia64/ia64-protos.h: Update.
18071 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
18072 vectors larger than UNITS_PER_WORD.
18074 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
18075 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
18076 dummy != CODE_FOR_nothing value.
18078 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
18080 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
18081 * doc/tm.texi: Regenerate.
18082 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
18083 * config/sh/sh.h (MODE_AFTER): Update.
18084 * config/epiphany/epiphany.h (MODE_AFTER): Update.
18086 2012-07-19 Jakub Jelinek <jakub@redhat.com>
18088 PR middle-end/54017
18089 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
18090 (cleanup_tree_cfg_bb): Don't call it.
18091 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
18094 2012-07-19 Christian Bruel <christian.bruel@st.com>
18097 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
18099 2012-07-19 Richard Guenther <rguenther@suse.de>
18100 Eric Botcazou <ebotcazou@adacore.com>
18102 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
18103 about transition from invariant to known bits.
18104 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
18106 2012-07-19 Richard Guenther <rguenther@suse.de>
18108 PR tree-optimization/53970
18109 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
18111 2012-07-19 Tristan Gingold <gingold@adacore.com>
18112 Richard Henderson <rth@redhat.com>
18114 * opts.c (finish_options): Handle UI_SEH.
18115 * expr.c (build_personality_function): Handle UI_SEH.
18116 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
18117 * coretypes.h (unwind_info_type): Add UI_SEH.
18118 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
18120 (i386_pe_seh_init_sections): Likewise.
18121 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
18122 (TARGET_ASM_INIT_SECTIONS): Define.
18123 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
18124 (i386_except_unwind_info): New function.
18126 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
18127 Chao-ying Fu <fu@mips.com>
18129 * config/mips/mips.opt (mmcu): New option.
18130 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
18131 _mips_mcu when TARGET_MCU.
18132 (ASM_SPEC): Pass mcu options to the assembler.
18133 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
18135 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
18137 * config.gcc (v850-*-rtems*): New target.
18138 * config/v850/rtems.h: New.
18139 * config/v850/t-rtems: New.
18141 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
18143 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
18144 of flags controlling optimization; add -ftree-slsr to list of flags
18145 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
18146 enabled by default at -O2; add -fvect-cost-model to list of flags
18147 enabled by default at -O3; document -fhoist-adjacent-loads and
18149 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
18150 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
18152 * common.opt: Add -ftree-slsr with flag_tree_slsr.
18154 2012-07-18 Jie Zhang <jzhang918@gmail.com>
18155 Julian Brown <julian@codesourcery.com>
18157 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
18158 (arm_size_rtx_costs): Likewise.
18159 (neon_valid_immediate): Add a case for double 0.0.
18161 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
18162 Mark Shinwell <shinwell@codesourcery.com>
18163 Julian Brown <julian@codesourcery.com>
18165 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
18166 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
18167 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
18168 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
18170 * config/arm/arm.md (neon_type): Update comment.
18172 2012-07-18 Richard Guenther <rguenther@suse.de>
18174 PR tree-optimization/53970
18175 * tree.h (contains_packed_reference): Remove.
18176 * expr.c (contains_packed_reference): Likewise.
18177 * tree-vect-data-refs.c (not_size_aligned): New function.
18178 (vector_alignment_reachable_p): Use it.
18179 (vect_supportable_dr_alignment): Likewise.
18181 2012-07-18 Richard Guenther <rguenther@suse.de>
18183 * tree.h (get_object_or_type_alignment): Remove.
18184 * builtins.c (get_object_alignment_2): New function copied from
18185 get_object_alignment_1. Take extra argument to indicate whether
18186 we take the address of EXP. Rework to use type alignment information
18187 if not, and return whether the result is an approximation or not.
18188 (get_object_alignment_1): Wrap around get_object_alignment_2.
18189 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
18190 we take the address.
18191 (get_object_or_type_alignment): Remove.
18192 * expr.c (expand_assignment): Call get_object_alignment.
18193 (expand_expr_real_1): Likewise.
18195 2012-07-18 Nick Clifton <nickc@redhat.com>
18197 * doc/invoke.texi (ARM Options): Document -munaligned-access.
18199 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
18201 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
18202 expander. Use arith_reg_dest predicate.
18203 (rotldi3, rotrdi3): Remove constraints in expander.
18204 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
18205 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
18208 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
18211 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
18213 * config/sh/sh.c (sh_option_override): Do not change
18214 flag_finite_math_only. Set TARGET_IEEE to complement of
18215 flag_finite_math_only.
18216 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
18217 of mieee and mno-ieee behavior.
18219 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
18221 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
18223 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
18225 * dumpfile.h (TDF_COMMENT): New define.
18226 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
18227 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
18228 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
18229 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
18230 Move to new file cfg-flags.h.
18231 (enum cfg_edge_flags): New enum, using cfg-flags.h.
18232 (EDGE_ALL_FLAGS): Compute value automatically.
18233 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
18234 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
18235 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
18236 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
18237 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
18238 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
18239 (BB_ALL_FLAGS): New, compute value automatically.
18240 (dump_bb_info): Update prototype.
18241 (dump_edge_info): Update prototype.
18242 * cfg-flags.h: New file.
18243 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
18244 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
18245 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
18246 (debug_bb): Update dump_bb call.
18247 (dump_cfg_bb_info): Remove.
18248 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
18249 Adjust verbosity using TDF_* flags. Check that the basic block flags
18250 are within the range of BB_ALL_FLAGS.
18251 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
18252 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
18253 first for consistency with other dump functions.
18254 (dump_bb): Update prototype accordingly.
18255 * cfghooks.c: Include dumpfile.h.
18256 (verify_flow_info): Update dump_edge_info calls.
18257 (dump_bb): Take a flags argument and pass it around.
18258 Use dump_bb_info to dump common information about a basic block.
18259 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
18260 (debug_flow_info): Moved here from cfgrtl.c.
18261 * profile.c (is_edge_inconsistent): Update dump_bb calls.
18262 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
18263 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
18264 print_rtl_slim_with_bb): Remove prototypes.
18265 (dump_insn_slim): Adjust prototype to take a const_rtx.
18266 (print_rtl_with_bb): Adjust prototype.
18267 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
18268 * sched-vis.c (dump_insn_slim): Take a const_rtx.
18269 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
18270 (print_rtl_slim_with_bb): Remove.
18271 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
18272 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
18273 for that. Prototype here near DEBUG_FUNCTION marker.
18274 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
18276 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
18277 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
18278 (remove_bb): Update dump_bb call.
18279 (gimple_debug_bb): Use dump_bb.
18280 (dump_function_to_file): Update gimple_dump_bb call.
18281 (print_loops_bb): Likewise.
18282 * tree-flow.h (gimple_dump_bb): Update prototype.
18283 * gimple-pretty-print.c (dump_bb_header): Rename to
18284 dump_gimple_bb_header. Write to a stream instead of a pretty
18285 printer. Use dump_bb_info to dump basic block info.
18286 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
18287 stream instead of a pretty printer. Use dump_bb_info.
18288 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
18289 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
18290 dump_gimple_bb_footer.
18291 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
18292 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
18293 (print_rtl_with_bb): Take a flags argument and pass it around.
18294 Use dump_insn_slim if TDF_SLIM.
18295 (dump_bb_info): Removed and re-incarnated in cfg.c.
18296 (dump_flow_info): Moved to cfghooks.c.
18297 (debug_flow_info): Moved to cfghooks.c.
18298 * passes.c (execute_function_dump): Unconditionally use
18299 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
18300 * final.c (dump_basic_block_info): Update dump_edge_info calls.
18301 * tree-vrp.c (dump_asserts_for): Likewise.
18302 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
18303 * tree-if-conv.c (if_convertible_bb_p): Don't look at
18304 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
18305 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
18306 for the same reason.
18307 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
18309 2012-07-17 Richard Guenther <rguenther@suse.de>
18311 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
18312 vars here, use create_tmp_reg where appropriate.
18313 (vect_create_addr_base_for_vector_ref): Do not add referenced
18314 vars here, use create_tmp_reg where appropriate.
18315 (vect_create_data_ref_ptr): Likewise.
18316 (vect_create_destination_var): Likewise.
18317 (vect_permute_store_chain): Likewise.
18318 (vect_permute_load_chain): Likewise.
18319 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18321 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
18322 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
18323 (vect_handle_widen_op_by_const): Likewise.
18324 * tree-vect-stmts.c (vect_init_vector): Likewise.
18325 (vectorizable_load): Likewise.
18327 2012-07-17 Tom de Vries <tom@codesourcery.com>
18329 * hwint.c: Fix loop range.
18331 2012-07-17 Tom de Vries <tom@codesourcery.com>
18333 * double-int.h (double_int_popcount): New inline function.
18334 * hwint.c (popcount_hwi): New function.
18335 * hwint.h (popcount_hwi): Declare function. New inline function.
18337 2012-07-17 Richard Henderson <rth@redhat.com>
18339 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
18341 (vectorizable_conversion): Update supportable_widening_operation call.
18342 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
18343 (vect_recog_widen_shift_pattern): Likewise.
18344 * tree-vectorizer.h: Update decl.
18346 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18347 Ulrich Weigand <ulrich.weigand@linaro.org>
18349 * common/config/arm/arm-common.c (arm_option_optimization_table):
18350 Enable -fsched-pressure by default while optimizing.
18351 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
18352 pressure algorithm by default.
18354 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
18356 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
18357 (CONST_OK_FOR_I10): Move macro to ...
18358 * config/sh/sh.c: ... here.
18359 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
18362 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
18364 * config/sh/sh.md: Delete mov related define_peephole patterns.
18366 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
18369 * doc/install.texi (Installing GCC): Refer to instructions for
18370 released versions. Fix hyphenation.
18372 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18374 * config/spu/spu.c (targetm): Move to bottom of file.
18375 (spu_attribute_table): Likewise.
18376 (spu_option_override, spu_init_builtins, spu_builtin_decl,
18377 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
18378 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
18379 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
18380 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
18381 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
18382 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
18383 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
18384 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
18385 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
18386 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
18387 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
18388 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
18389 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
18390 spu_encode_section_info, spu_legitimize_address,
18391 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
18392 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
18393 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
18394 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
18395 spu_section_type_flags, spu_select_section, spu_unique_section,
18396 spu_trampoline_init, spu_conditional_register_usage,
18397 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
18398 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
18399 spu_setup_incoming_varargs): Remove prototypes.
18400 (spu_legitimize_address): Add "static" to definition.
18402 2012-07-16 Jakub Jelinek <jakub@redhat.com>
18404 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
18406 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
18408 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
18409 before calling gsi_stmt.
18411 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
18414 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
18416 * config/i386/i386.md (stack_protect_set): Disable the pattern
18417 for Android since Android libc (bionic) does not provide random
18418 value for stack protection guard at gs:0x14. Guard value
18419 will be provided from external symbol (default implementation).
18420 (stack_protect_set_<mode>): Likewise.
18421 (stack_protect_test): Likewise.
18422 (stack_protect_test_<mode>): Likewise.
18424 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
18426 PR middle-end/53959
18428 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
18431 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18433 * opts.c (default_option): Add -fvect-cost-model to default options
18436 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
18438 * graphite-clast-to-gimple.c, graphite-dependences.c,
18439 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
18440 for pass TODO flags.
18441 * Makefile.in: Fix dependencies.
18443 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
18445 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
18446 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
18448 * function.c (stack_protect_epilogue): Use expand_call to expand
18449 targetm.stack_protect_fail.
18450 * stmt.c (expand_expr_stmt): Remove now-unused function.
18451 * tree.h (expand_expr_stmt): Remove prototype.
18452 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
18453 hook must return a CALL_EXPR.
18454 * doc/tm.texi: Regenerate.
18456 * emit-rtl.c (emit_label_before): Do not allow the same label
18457 to be emitted twice.
18458 (emit_label_after): Likewise.
18459 (emit_label): Likewise.
18461 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
18462 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
18463 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
18464 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
18466 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
18468 * system.h (dump_file): Do not define.
18469 * tree-pass.h: Include dumpfile.h, which is a new file containing...
18470 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
18471 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
18472 dump_flag_name, dump_file, dump_flags, dump_file_name,
18473 get_dump_file_info, struct dump_file_info): all of this, moved to...
18474 * dumpfile.h: Here, new file.
18475 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
18476 (dump_stmt): Remove prototype for C++ specific function.
18477 (dump_enumerated_decls): Move prototype from here...
18478 * tree-flow.h (dump_enumerated_decls): ... to here.
18479 (get_ref_base_and_extent) Move prototype from here ...
18480 * tree.h (get_ref_base_and_extent) ... to here.
18481 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
18482 gimple-pretty-print.h is enough. Do not include tree-dump.h,
18483 include timevar.h and dumpfile.h instead.
18484 (struct numbered_tree_d, compare_decls_by_uid,
18485 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
18486 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
18487 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
18488 Do not include timevar.h.
18489 * tree.c: Do not include timevar.h.
18490 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
18492 (dump_cfg_stats): Use current_function_name.
18493 (gimple_cfg2vcg): Likewise.
18494 (dump_function_to_file): Likewise.
18495 * df-scan.c: Do not include tree-pass.h and timevar.h.
18496 Include dumpfile.h.
18497 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
18498 use print_current_pass.
18499 * df-problems.c: Include dumpfile.h.
18500 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
18501 leads to errors in the code not selected.
18502 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
18503 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
18504 * lcm.c: Include dumpfile.h.
18505 Remove obsolete include of insn-attr.h.
18506 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
18507 missing probability notes.
18508 * stmt.c: Include dumpfile.h.
18509 (emit_case_decision_tree): Re-enable printing expand details only
18511 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
18512 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
18513 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
18514 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
18515 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
18516 function.c, fwprop.c, gcse.c, gimple-fold.c,
18517 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18518 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
18519 graphite-dependences.c, graphite-interchange.c,
18520 graphite-optimize-isl.c, graphite-poly.c,
18521 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
18522 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
18523 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
18524 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
18525 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
18526 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
18527 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
18528 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
18529 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
18530 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
18531 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
18532 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
18533 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
18534 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
18535 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
18536 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
18537 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
18538 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
18539 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
18540 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
18541 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
18542 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
18543 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
18544 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18545 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
18546 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
18547 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
18548 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
18549 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
18550 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
18551 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
18552 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
18553 tree-ssa-uncprop.c, tree-ssa-uninit.c,
18554 tree-switch-conversion.c, tree-tailcall.c,
18555 tree-vect-data-refs.c, tree-vect-loop.c,
18556 tree-vect-loop-manip.c, tree-vectorizer.c,
18557 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
18558 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
18559 only if needed. If tree-pass.h is included, do not include timevar.h
18560 and dumpfile.h. If tree-pass.h is not included but dump_file, or
18561 dump_flags, or the TDF_* flags are used, include dumpfile.h.
18562 If gimple-pretty-print.h is included, don't include
18563 tree-pretty-print.h. Remove assorted unnecessary includes.
18565 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
18566 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
18567 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
18568 Include dumpfile.h.
18569 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
18570 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
18571 spu/t-spu-elf: Fix dependencies.
18573 2012-07-16 Dehao Chen <dehao@google.com>
18576 2012-07-10 Dehao Chen <dehao@google.com>
18578 * tree.h (phi_arg_d): New field.
18579 * tree-flow-inline.h (gimple_phi_arg_block): New function.
18580 (gimple_phi_arg_block_from_edge): New function.
18581 (gimple_phi_arg_set_block): New function.
18582 (gimple_phi_arg_has_block): New function.
18583 (redirect_edge_var_map_block): New function.
18584 * tree-flow.h (_edge_var_map): New field.
18585 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
18586 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
18587 redirect_edge_var_map_add.
18588 * tree-outof-ssa.c (_elim_graph): New field.
18589 (insert_partition_copy_on_edge): New parameter.
18590 (insert_value_copy_on_edge): New parameter.
18591 (insert_rtx_to_part_on_edge): New parameter.
18592 (insert_part_to_rtx_on_edge): New parameter.
18593 (elim_graph_add_edge): New parameter.
18594 (elim_graph_remove_succ_edge): New parameter.
18595 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
18596 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
18597 (new_elim_graph): Add block debug info.
18598 (clear_elim_graph): Likewise.
18599 (delete_elim_graph): Likewise.
18600 (elim_graph_add_node): Likewise.
18601 (elim_graph_add_edge): Likewise.
18602 (elim_graph_remove_succ_edge): Likewise.
18603 (eliminate_build): Likewise.
18604 (elim_forward): Likewise.
18605 (elim_unvisited_predecessor): Likewise.
18606 (elim_backward): Likewise.
18607 (elim_create): Likewise.
18608 (eliminate_phi): Likewise.
18609 (insert_backedge_copies): Likewise.
18610 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
18612 (rewrite_add_phi_arguments): Likewise.
18613 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
18614 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
18615 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
18616 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
18617 * tree-ssa-loop-manip.c (create_iv): Likewise.
18618 (add_exit_phis_edge): Likewise.
18619 (split_loop_exit_edge): Likewise.
18620 (copy_phi_node_args): Likewise.
18621 (tree_transform_and_unroll_loop): Likewise.
18622 * value-prof.c (gimple_ic): Likewise.
18623 (gimple_stringop_fixed_value): Likewise.
18624 * tree-tailcall.c (add_successor_phi_arg): Likewise.
18625 (eliminate_tail_call): Likewise.
18626 (create_tailcall_accumulator): Likewise.
18627 (tree_optimize_tail_calls_1): Likewise.
18628 * tree-phinodes.c (add_phi_arg): Likewise.
18629 (make_phi_node): Likewise.
18630 (resize_phi_node): Likewise.
18631 (remove_phi_arg_num): Likewise.
18632 * omp-low.c (expand_parallel_call): Likewise.
18633 (expand_omp_for_static_chunk): Likewise.
18634 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
18636 (slpeel_update_phi_nodes_for_guard1): Likewise.
18637 (slpeel_update_phi_nodes_for_guard2): Likewise.
18638 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
18639 (set_prologue_iterations): Likewise.
18640 (slpeel_tree_peel_loop_to_edge): Likewise.
18641 (vect_loop_versioning): Likewise.
18642 * tree-parloops.c (create_phi_for_local_result): Likewise.
18643 (transform_to_exit_first_loop): Likewise.
18644 (create_parallel_loop): Likewise.
18645 * ipa-split.c (split_function): Likewise.
18646 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
18647 (vect_create_epilog_for_reduction): Likewise.
18648 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
18649 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
18650 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
18651 (cond_if_else_store_replacement_1): Likewise.
18652 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
18653 (remove_forwarder_block_with_phi): Likewise.
18654 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
18655 * tree-predcom.c (initialize_root_vars): Likewise.
18656 (initialize_root_vars_lm): Likewise.
18657 * sese.c (sese_add_exit_phis_edge): Likewise.
18658 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18659 * tree-ssa.c (flush_pending_stmts): Likewise.
18660 (redirect_edge_var_map_add): Likewise.
18661 (ssa_redirect_edge): Likewise.
18662 * gimple-streamer-in.c (input_phi): Likewise.
18663 * tree-vect-stmts.c (vectorizable_load): Likewise.
18664 * tree-inline.c (copy_phis_for_bb): Likewise.
18665 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
18666 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
18667 * tree-cfg.c (reinstall_phi_args): Likewise.
18668 (gimple_make_forwarder_block): Likewise.
18669 (add_phi_args_after_copy_edge): Likewise.
18670 (gimple_duplicate_sese_tail): Likewise.
18672 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
18674 * config/i386/i386.md (stack_protect_set): Disable the pattern
18675 for Android since Android libc (bionic) does not provide random
18676 value for stack protection guard at gs:0x14. Guard value
18677 will be provided from external symbol (default implementation).
18678 (stack_protect_set_<mode>): Likewise.
18679 (stack_protect_test): Likewise.
18680 (stack_protect_test_<mode>): Likewise.
18682 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
18684 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
18685 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
18686 CONSTANT_P and cris_legitimate_address_p.
18687 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
18688 (cris_preferred_reload_class): Don't return GENERAL_REGS as
18689 preferred to MOF_SRP_REGS.
18691 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
18692 of library functions for basic atomic compare-and-swap.
18693 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
18694 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
18695 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
18696 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
18697 ("atomic_compare_and_swap<mode>")
18698 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
18699 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
18700 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
18701 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
18702 (atomic_op_op_pred): Ditto.
18703 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
18704 reflect the change to include %2 in expansion. All callers changed.
18705 (qm3): New mode_attr.
18706 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
18707 as predicate for operand 2.
18708 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
18709 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
18710 constraint for operand 2.
18711 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
18712 nonmemory_operand for operand 3.
18713 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
18714 exclude memory. Improve emitted sync code for v10 and v32. Use
18715 <qm3> instead of <m> for size designator for cmp.
18716 ("atomic_compare_and_swap<mode>"): Change predicate to
18717 nonmemory_operand for operand 3. Add FIXME.
18718 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
18719 constraints for operand 3 to exclude memory.
18720 ("atomic_fetch_<atomic_op_name><mode>")
18721 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
18722 calls on result of call to need_atomic_barrier_p.
18724 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
18726 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
18727 with mflo and mtlo.
18728 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
18729 and mtlo. Adjust move_type->type mapping.
18730 (may_clobber_hilo): Split mthilo into mthi and mtlo.
18731 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
18732 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
18733 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
18734 instead of mthilo and mfhilo.
18735 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
18736 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
18737 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
18738 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
18739 Use mflo instead of mfhilo.
18740 * config/mips/10000.md (r10k_arith): Split mthilo.
18741 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
18742 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
18743 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
18744 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
18746 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
18747 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
18749 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
18750 * config/mips/5400.md (ir_vr54_hilo): Likewise.
18751 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
18752 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
18753 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
18754 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
18755 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
18756 * config/mips/generic.md (generic_hilo): Likewise.
18757 * config/mips/loongson2ef.md (ls2_alu): Likewise.
18758 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
18759 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
18760 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
18761 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
18762 * config/mips/xlr.md (xlr_hilo): Likewise.
18764 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
18765 Sandra Loosemore <sandra@codesourcery.com>
18767 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
18769 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
18771 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
18774 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
18776 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
18778 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
18781 * config/spu/spu.c (spu_init_cost): Mark static.
18782 (spu_add_stmt_cost): Likewise.
18783 (spu_finish_cost): Likewise.
18784 (spu_destroy_cost_data): Likewise.
18785 * config/i386/i386.c (ix86_init_cost): Mark static.
18786 (ix86_add_stmt_cost): Likewise.
18787 (ix86_finish_cost): Likewise.
18788 (ix86_destroy_cost_data): Likewise.
18789 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
18790 (rs6000_add_stmt_cost): Likewise.
18791 (rs6000_finish_cost): Likewise.
18792 (rs6000_destroy_cost_data): Likewise.
18794 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
18796 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
18797 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
18798 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
18800 * alloc-pool.h (pool_alloc): Likewise.
18802 * final.c (final): Do not loop to find max_uid.
18804 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
18806 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
18807 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
18809 2012-07-13 Richard Guenther <rguenther@suse.de>
18811 PR tree-optimization/53907
18812 * tree-ssa-forwprop.c (associate_pointerplus): New function.
18813 (ssa_forward_propagate_and_combine): Call it.
18815 2012-07-13 Richard Guenther <rguenther@suse.de>
18817 PR tree-optimization/53922
18818 * tree-vrp.c (value_inside_range): Change prototype to take
18819 min/max instead of value-range.
18820 (range_includes_zero_p): Likewise. Return the result from
18821 value_inside_range.
18822 (extract_range_from_binary_expr_1): Adjust to handle dont-know
18823 return value from range_includes_zero_p.
18824 (extract_range_from_unary_expr_1): Likewise.
18825 (compare_range_with_value): Likewise.
18826 (vrp_meet_1): Likewise.
18828 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
18830 * doc/tm.texi: Regenerate.
18831 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
18832 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
18833 (TARGET_VECTORIZE_FINISH_COST): Likewise.
18834 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
18835 * targhooks.c (default_init_cost): New function.
18836 (default_add_stmt_cost): Likewise.
18837 (default_finish_cost): Likewise.
18838 (default_destroy_cost_data): Likewise.
18839 * targhooks.h (default_init_cost): New decl.
18840 (default_add_stmt_cost): Likewise.
18841 (default_finish_cost): Likewise.
18842 (default_destroy_cost_data): Likewise.
18843 * target.def (init_cost): New DEFHOOK.
18844 (add_stmt_cost): Likewise.
18845 (finish_cost): Likewise.
18846 (destroy_cost_data): Likewise.
18847 * target.h (struct _stmt_vec_info): New extern decl.
18848 (stmt_vectype): Likewise.
18849 (stmt_in_inner_loop_p): Likewise.
18850 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
18851 (stmt_vector_for_cost): New VEC/typedef.
18852 (add_stmt_info_to_vec): New function.
18853 (struct _slp_tree): Remove cost.inside_of_loop field.
18854 (struct _slp_instance): Remove cost.inside_of_loop field; add
18855 stmt_cost_vec field.
18856 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
18857 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
18858 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
18859 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
18860 (struct _loop_vec_info): Add target_cost_data field.
18861 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
18862 (struct _bb_vec_info): Add target_cost_data field.
18863 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
18864 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
18865 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
18866 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
18867 (init_cost): New function.
18868 (add_stmt_cost): Likewise.
18869 (finish_cost): Likewise.
18870 (destroy_cost_data): Likewise.
18871 (vect_model_simple_cost): Change parameter list.
18872 (vect_model_store_cost): Likewise.
18873 (vect_model_load_cost): Likewise.
18874 (record_stmt_cost): New extern decl.
18875 (vect_get_load_cost): Change parameter list.
18876 (vect_get_store_cost): Likewise.
18877 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
18878 (destroy_loop_vec_info): Call destroy_cost_data.
18879 (vect_estimate_min_profitable_iters): Remove old calculation of
18880 inside costs; call finish_cost instead.
18881 (vect_model_reduction_cost): Call add_stmt_cost instead of old
18882 inside-costs calculation.
18883 (vect_model_induction_cost): Likewise.
18884 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
18885 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
18886 and vect_get_store_cost to obtain the value to return.
18887 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
18888 vect_get_data_access_cost and store it in the minimum peeling
18890 (vect_peeling_hash_choose_best_peeling): Change the parameter list
18891 to add a (stmt_vector_for_cost *) output parameter, and set its value.
18892 (vect_enhance_data_refs_alignment): Ignore the new return value from
18893 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
18894 vect_peeling_hash_choose_best_peeling and pass its contents to the
18896 * tree-vect-stmts.c (stmt_vectype): New function.
18897 (stmt_in_inner_loop_p): Likewise.
18898 (record_stmt_cost): Likewise.
18899 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
18900 record_stmt_cost instead of old calculation; don't call
18901 stmt_vinfo_set_inside_of_loop_cost.
18902 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
18903 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
18904 (vect_model_store_cost): Add stmt_cost_vec parameter; call
18905 record_stmt_cost instead of old calculation; add stmt_cost_vec
18906 parameter to vect_get_store_cost call; don't call
18907 stmt_vinfo_set_inside_of_loop_cost.
18908 (vect_get_store_cost): Add stmt_cost_vec parameter; call
18909 record_stmt_cost instead of old calculation.
18910 (vect_model_load_cost): Add stmt_cost_vec parameter; call
18911 record_stmt_cost instead of old calculation; add stmt_cost_vec
18912 parameter to vect_get_load_cost call; don't call
18913 stmt_vinfo_set_inside_of_loop_cost.
18914 (vect_get_load_cost): Add stmt_cost_vec parameter; call
18915 record_stmt_cost instead of old calculation.
18916 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
18917 (vectorizable_conversion): Likewise.
18918 (vectorizable_assignment): Likewise.
18919 (vectorizable_shift): Likewise.
18920 (vectorizable_operation): Likewise.
18921 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
18922 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
18923 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
18924 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
18925 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
18926 (TARGET_VECTORIZE_FINISH_COST): Likewise.
18927 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
18928 (spu_init_cost): New function.
18929 (spu_add_stmt_cost): Likewise.
18930 (spu_finish_cost): Likewise.
18931 (spu_destroy_cost_data): Likewise.
18932 * config/i386/i386.c (ix86_init_cost): New function.
18933 (ix86_add_stmt_cost): Likewise.
18934 (ix86_finish_cost): Likewise.
18935 (ix86_destroy_cost_data): Likewise.
18936 (TARGET_VECTORIZE_INIT_COST): New macro def.
18937 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
18938 (TARGET_VECTORIZE_FINISH_COST): Likewise.
18939 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
18940 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
18941 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
18942 (TARGET_VECTORIZE_FINISH_COST): Likewise.
18943 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
18944 (rs6000_init_cost): New function.
18945 (rs6000_add_stmt_cost): Likewise.
18946 (rs6000_finish_cost): Likewise.
18947 (rs6000_destroy_cost_data): Likewise.
18948 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
18949 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
18950 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
18951 stmt_cost_vec parameter to vect_model_store_cost and
18952 vect_model_simple_cost calls.
18953 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
18954 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
18955 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
18956 calculating cost more than once for loads; remove inside_cost
18957 parameter from recursive vect_build_slp_tree calls; call
18958 record_stmt_cost instead of old calculation.
18959 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
18960 the instance; free it on premature exit; remove inside_cost parameter
18961 from vect_build_slp_tree call; add stmt_cost_vec parameter to
18962 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
18963 (new_bb_vec_info): Call init_cost.
18964 (destroy_bb_vec_info): Call destroy_cost_data.
18965 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
18966 statement recorded with an SLP instance; call finish_cost instead of
18967 the old calculation.
18968 (vect_update_slp_costs_according_to_vf): Record statement costs from
18969 SLP instances, multiplying by the appropriate number of copies; don't
18970 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
18972 2012-07-13 Richard Guenther <rguenther@suse.de>
18974 PR middle-end/53937
18975 * builtins.c (get_pointer_alignment_1): Handle constant
18978 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
18979 Steven Bosscher <steven@gcc.gnu.org>
18980 Bernd Schmidt <bernds@codesourcery.com>
18982 PR rtl-optimization/53908
18983 * df-problems.c (can_move_insns_across): When doing
18984 memory-reference book-keeping, handle call insns.
18986 2012-07-13 Richard Guenther <rguenther@suse.de>
18988 * gimple.c (gimple_types_compatible_p_1): Remove redundant
18989 type attribute comparisons.
18990 (gimple_canonical_types_compatible_p): Likewise.
18992 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
18994 PR rtl-optimization/53176
18995 * rtlanal.c (rtx_cost): Adjust default cost for X with a
18996 UNITS_PER_WORD factor for all X according to the size of
18997 its mode, not just for SUBREGs with untieable modes.
18998 Handle SET. Use factor * factor for MULT, DIV, UDIV,
19001 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
19003 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
19004 QImode and HImode splitters. Use ix86_comparison_operator.
19005 Explicitly match FLAGS_REG.
19006 (DFmode cmove splitter): Explicitly match FLAGS_REG.
19008 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
19010 * expr.h (can_move_by_pieces): Move prototype from here ...
19011 * tree.h (can_move_by_pieces): ... to here.
19012 * optabs.h (set_widening_optab_handler): Use XCNEW.
19013 * gimplify.c: Do not include expr.h.
19015 * toplev.c: Do not include dwarf2out.h.
19016 * config/ia64/ia64.c: Likewise.
19017 * config/sparc/sparc.c: Likewise.
19018 * config/sparc/t-sparc (sparc.o): Fix dependencies.
19020 * Makefile.in (toplev.o): Fix dependencies
19021 (c-family/c-gimplify.o): Likewise.
19022 (c-family/c-common.o): Likewise.
19024 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
19026 * basic-block.h (struct edge_def): Use basic_block instead of
19028 * cfgloop.h (struct loop_exit, struct loop): Likewise.
19029 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
19030 instead of union tree_node *.
19031 * rtl.h (union rtunion_def, emit_insn_before_noloc,
19032 emit_insn_after_noloc, add_insn_before, add_insn_after,
19033 debug_bb_slim): Likewise.
19034 * tree-inline.h (struct copy_body_data): Likewise.
19035 * sched-rgn.c (dump_region_dot): Likewise.
19036 * gimple.h (struct gimple_statement_base, gimple_set_bb,
19037 gsi_move_to_bb_end): Likewise.
19038 * sched-vis.c (debug_bb_slim): Likewise.
19039 (debug_bb_n_slim): Likewise.
19040 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
19041 (mn10300_block_contains_call):
19043 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
19046 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
19049 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
19051 * doc/extend.texi (Namespace Association): Alter cautionary text.
19053 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
19056 * config/sh/sh.md: Remove displacement addresssing related splits.
19058 2012-07-10 Xinliang David Li <davidxl@google.com>
19060 * doc/invoke.texi: New option documented.
19061 * flag-types.h: New enum type.
19062 * gimplify.c (gimplify_bind_expr): Control
19063 clobber generation with new option.
19064 (gimplify_target_expr): Ditto.
19065 * common.opt: New option.
19067 2012-07-10 Julian Brown <julian@codesourcery.com>
19069 * config/arm/arm.md (movsi): Don't split symbol refs here.
19070 (define_split): New.
19072 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
19075 * config/m68k/m68k.c (m68k_epilogue_uses): New.
19076 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
19077 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
19079 2012-07-10 Richard Henderson <rth@redhat.com>
19081 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
19082 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
19083 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
19084 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
19085 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
19086 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
19087 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
19088 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
19089 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
19090 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
19091 (bdesc_args): Remove entries to match.
19092 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
19093 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
19094 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
19095 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
19096 (rs6000_builtin_mul_widen_odd): Remove.
19097 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
19098 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
19099 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
19100 (spu_builtin_mul_widen_odd): Remove.
19101 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
19102 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
19103 * doc/tm.texi.in: Don't document the removed hooks.
19105 * tree-vect-stmts.c (supportable_widening_operation): Expand
19106 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
19108 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
19109 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
19110 * optabs.c (can_mult_highpart_p): New.
19111 (expand_mult_highpart): New.
19112 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
19113 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
19114 by pieces if can_mult_highpart_p.
19115 (expand_vector_divmod): Use can_mult_highpart_p and always
19116 generate MULT_HIGHPART_EXPR.
19117 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
19118 * tree-vect-stmts.c (vectorizable_operation): Likewise.
19120 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
19121 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
19122 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
19123 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
19124 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
19125 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
19126 * config/spu/spu-builtins.def: Update pattern names to match.
19128 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
19129 from altivec_vmuleub.
19130 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
19131 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
19132 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
19133 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
19134 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
19135 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
19136 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
19137 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
19139 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
19140 avx2_umulv4siv4di3.
19141 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
19142 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
19143 (mulv4si3): Remove XOP test shadowed by SSE4 test.
19144 * config/i386/i386.c (bdesc_args): Update pattern names.
19145 (ix86_expand_sse2_mulvxdi3): Likewise.
19146 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
19147 shadowed by SSE4 test.
19149 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
19150 * cfgexpand.c (expand_debug_expr): Handle them.
19151 * expr.c (expand_expr_real_2): Likewise.
19152 * fold-const.c (fold_binary_loc): Likewise.
19153 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
19154 * optabs.c (optab_for_tree_code): Likewise.
19155 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
19156 * tree-inline.c (estimate_operator_cost): Likewise.
19157 * tree-pretty-print.c (dump_generic_node): Likewise.
19158 * tree.c (commutative_tree_code): Likewise.
19159 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
19160 Handle type change before looking up optab.
19161 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
19162 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
19163 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
19164 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
19165 * genopinit.c (optabs): Initialize them.
19166 * doc/md.texi: Document them.
19168 2012-07-10 Dehao Chen <dehao@google.com>
19170 * tree.h (phi_arg_d): New field.
19171 * tree-flow-inline.h (gimple_phi_arg_block): New function.
19172 (gimple_phi_arg_block_from_edge): New function.
19173 (gimple_phi_arg_set_block): New function.
19174 (gimple_phi_arg_has_block): New function.
19175 (redirect_edge_var_map_block): New function.
19176 * tree-flow.h (_edge_var_map): New field.
19177 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
19178 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
19179 redirect_edge_var_map_add.
19180 * tree-outof-ssa.c (_elim_graph): New field.
19181 (insert_partition_copy_on_edge): New parameter.
19182 (insert_value_copy_on_edge): New parameter.
19183 (insert_rtx_to_part_on_edge): New parameter.
19184 (insert_part_to_rtx_on_edge): New parameter.
19185 (elim_graph_add_edge): New parameter.
19186 (elim_graph_remove_succ_edge): New parameter.
19187 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
19188 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
19189 (new_elim_graph): Add block debug info.
19190 (clear_elim_graph): Likewise.
19191 (delete_elim_graph): Likewise.
19192 (elim_graph_add_node): Likewise.
19193 (elim_graph_add_edge): Likewise.
19194 (elim_graph_remove_succ_edge): Likewise.
19195 (eliminate_build): Likewise.
19196 (elim_forward): Likewise.
19197 (elim_unvisited_predecessor): Likewise.
19198 (elim_backward): Likewise.
19199 (elim_create): Likewise.
19200 (eliminate_phi): Likewise.
19201 (insert_backedge_copies): Likewise.
19202 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
19204 (rewrite_add_phi_arguments): Likewise.
19205 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
19206 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
19207 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
19208 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
19209 * tree-ssa-loop-manip.c (create_iv): Likewise.
19210 (add_exit_phis_edge): Likewise.
19211 (split_loop_exit_edge): Likewise.
19212 (copy_phi_node_args): Likewise.
19213 (tree_transform_and_unroll_loop): Likewise.
19214 * value-prof.c (gimple_ic): Likewise.
19215 (gimple_stringop_fixed_value): Likewise.
19216 * tree-tailcall.c (add_successor_phi_arg): Likewise.
19217 (eliminate_tail_call): Likewise.
19218 (create_tailcall_accumulator): Likewise.
19219 (tree_optimize_tail_calls_1): Likewise.
19220 * tree-phinodes.c (add_phi_arg): Likewise.
19221 (make_phi_node): Likewise.
19222 (resize_phi_node): Likewise.
19223 (remove_phi_arg_num): Likewise.
19224 * omp-low.c (expand_parallel_call): Likewise.
19225 (expand_omp_for_static_chunk): Likewise.
19226 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
19228 (slpeel_update_phi_nodes_for_guard1): Likewise.
19229 (slpeel_update_phi_nodes_for_guard2): Likewise.
19230 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
19231 (set_prologue_iterations): Likewise.
19232 (slpeel_tree_peel_loop_to_edge): Likewise.
19233 (vect_loop_versioning): Likewise.
19234 * tree-parloops.c (create_phi_for_local_result): Likewise.
19235 (transform_to_exit_first_loop): Likewise.
19236 (create_parallel_loop): Likewise.
19237 * ipa-split.c (split_function): Likewise.
19238 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
19239 (vect_create_epilog_for_reduction): Likewise.
19240 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
19241 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
19242 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
19243 (cond_if_else_store_replacement_1): Likewise.
19244 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
19245 (remove_forwarder_block_with_phi): Likewise.
19246 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
19247 * tree-predcom.c (initialize_root_vars): Likewise.
19248 (initialize_root_vars_lm): Likewise.
19249 * sese.c (sese_add_exit_phis_edge): Likewise.
19250 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
19251 * tree-ssa.c (flush_pending_stmts): Likewise.
19252 (redirect_edge_var_map_add): Likewise.
19253 (ssa_redirect_edge): Likewise.
19254 * gimple-streamer-in.c (input_phi): Likewise.
19255 * tree-vect-stmts.c (vectorizable_load): Likewise.
19256 * tree-inline.c (copy_phis_for_bb): Likewise.
19257 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
19258 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
19259 * tree-cfg.c (reinstall_phi_args): Likewise.
19260 (gimple_make_forwarder_block): Likewise.
19261 (add_phi_args_after_copy_edge): Likewise.
19262 (gimple_duplicate_sese_tail): Likewise.
19264 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
19267 * config/sh/sh.c (sequence_insn_p): New function.
19268 (find_barrier, sh_insn_length_adjustment): Use it.
19270 2012-07-09 Iain Sandoe <iain@codesourcery.com>
19273 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
19275 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
19276 SUBTARGET_FOLD_BUILTIN.
19277 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
19278 SUBTARGET_FOLD_BUILTIN.
19280 2012-07-09 Iain Sandoe <iain@codesourcery.com>
19282 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
19283 runtime exceptions model setting from here ...
19284 * config/darwin.c (darwin_override_options): ... to here.
19286 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
19288 PR tree-optimization/53887
19289 * tree-cfg.c (group_case_labels_stmt): Make non-static.
19290 * tree-flow.h (group_case_labels_stmt): Add prototype.
19291 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
19292 to pre-process every switch.
19294 2012-07-09 Jason Merrill <jason@redhat.com>
19297 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
19298 (type_hash_eq): Likewise.
19300 2012-07-09 Tom de Vries <tom@codesourcery.com>
19301 Richard Guenther <rguenther@suse.de>
19303 * tree-ssa-ccp.c (optimize_unreachable): New function.
19304 (execute_fold_all_builtins): Use optimize_unreachable to optimize
19305 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
19307 2012-07-09 Richard Guenther <rguenther@suse.de>
19310 * graphite-optimize-isl.c: Make sure CU is not empty.
19312 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
19314 * gensupport.c (init_rtx_reader_args_cb): Start counting code
19315 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
19316 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
19317 the LAST_INSN_CODE marker at the end.
19318 * genoutput.c (nothing): New static struct data.
19319 (idata): Initialize to ¬hing.
19320 (idata_end): Initialize to ¬hing.next.
19321 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
19323 * genpeep.c (insn_code_number): Remove global variable.
19324 (gen_peephole): Take it as an argument instead.
19325 (main): Take insn_code_number from read_md_rtx.
19326 * optabs.h: Revert r161809:
19327 (optab_handlers): Change type of insn_code back to insn_code.
19328 (optab_handler, widening_optab_handler, set_optab_handler,
19329 set_widening_optab_handler, convert_optab_handler,
19330 set_convert_optab_handler, direct_optab_handler,
19331 set_direct_optab_handler): Remove int casts.
19332 Revert to treating the insn_code field as "insn_code".
19334 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
19336 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
19337 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
19338 * config/sh/sh-protos.h: Declare it.
19340 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
19342 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
19343 (dump_fixup_graph): Use current_function_name.
19344 (adjust_cfg_counts): Likewise.
19345 * ira-conflicts.c: Do not include tree.h.
19346 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
19348 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
19351 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
19353 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
19355 * basic-block.h: Re-group most prototypes per file.
19356 (struct edge_list): Remove num_blocks field.
19357 (dump_bb_info): Adjust prototypes.
19358 (dump_reg_info): Move prototype to regs.h.
19359 * function.h: Do not include tree.h.
19360 Include vec.h, vecir.h, input.h and machmode.h to compensate.
19361 (function_name): New prototype.
19362 * gimple.h: Include tree.h to compensate for basic-block.h change.
19363 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
19364 * regs.h (dump_reg_info): Prototype here.
19365 * regset.h: Adjust file reference in comment.
19366 (debug_regset): Remove prototype.
19367 * rtl.h: Include flags.h for flag_var_tracking_assignments.
19368 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
19369 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
19370 (dump_reg_info, dump_flow_info): Remove prototypes.
19371 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
19372 to here, the only user. Make static.
19373 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
19374 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
19375 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
19376 tree-pass.h, cfgloop.h, and tree-flow.h.
19377 Include basic-block.h, the first header I'd expect to be included.
19378 (reg_obstack): Move to df-core.c.
19379 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
19380 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
19381 (redirect_edge_succ_nodup): Move to cfghooks.c.
19382 (dump_regset, debug_regset): Move to df-core.c.
19383 (dump_bb_info): Move to cfgrtl.c.
19384 (dump_reg_info): Move to regstat.c.
19385 (dump_flow_info): Move to cfgrtl.c.
19386 (debug_flow_info): Likewise.
19387 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
19388 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
19389 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
19390 (flow_active_insn_p, forwarder_block_p, can_fallthru,
19391 could_fall_through): Move to cfgrtl.c.
19392 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
19393 (create_edge_list): Do not set edge_list's removed num_blocks.
19394 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
19395 (flow_nodes_print): Remove.
19396 (flow_edge_list_print): Remove.
19397 (inverted_post_order_compute): Use FOR_ALL_BB.
19398 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
19399 Do not call dump_reg_info.
19400 (debug_flow_info): Moved from cfg.c
19401 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
19402 to avoid looking at TDF_* flags from tree-pass.h.
19403 (flow_active_insn_p, forwarder_block_p, can_fallthru,
19404 could_fall_through): Moved from cfganal.c.
19405 (print_rtl_with_bb): Adjust dump_bb_info calls.
19406 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
19407 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
19408 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
19409 * cselib.c: Include tree.h with a FIXME.
19410 * df-core.c (reg_obstack): Moved from cfg.c.
19411 (dump_regset): Likewise.
19412 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
19413 * final.c (compute_alignments): Call dump_reg_info before
19415 * function.c (function_name): New function.
19416 (current_function_name): Use it.
19417 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
19419 * ira-conflicts.c: Include tree.h with a note.
19420 * regstat.c (dump_reg_info): Moved here from cfg.c.
19421 * loop-init.c: Include regs.h instead of hard-reg-set.h.
19422 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
19423 (rtl_loop_done): Likewise.
19424 * mcf.c: Include tree.h before langhooks.h.
19425 * predict.c (maybe_hot_count_p): Assert we have cfun.
19426 (probably_never_executed_bb_p): Likewise.
19427 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
19428 instead of dump_flow_info.
19429 * sched-deps.c: Include tree.h with a FIXME.
19430 (call_may_noreturn_p): Add FIXME note why this function has to
19431 look at function decls instead of function decl flags.
19432 * sched-vis.c: Include tree.h with a FIXME.
19433 (print_rtl_slim): Adjust dump_bb_info uses.
19434 * statistics.c (statistics_fini_pass_2): Use current_function_name
19435 to avoid including tree.h.
19436 (statistics_counter_event): Use function_name for the same reason.
19437 (statistics_histogram_event): Likewise.
19438 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
19439 instead of dump_flow_info.
19440 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
19441 before dump_flow_info.
19442 * doc/cfg.texi: Update CFG documentation.
19443 * Makefile.in (RTL_H): Depend on FLAGS_H.
19444 (GIMPLE_H): Depend on TREE_H.
19445 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
19446 but no longer on TREE_H.
19447 (C_COMMON_H): Depend on TREE_H.
19448 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
19449 sched-deps.o, sched-vis.o): Fixup dependencies.
19451 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
19453 * alias.h: Do not include coretypes.h in header files.
19454 * cppbuiltin.h: Likewise.
19455 * double-int.h: Likewise.
19456 * gimple-fold.h: Likewise.
19457 * flags.h: Likewise.
19458 * tree-ssa-alias.h: Likewise.
19459 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
19460 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
19461 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
19462 (TREE_H): Likewise.
19463 (ALIAS_H): Do not depend on coretypes.h.
19464 (FLAGS_H): Likewise.
19465 (realmpfr.o): Depend on coretypes.h.
19467 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
19469 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
19470 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
19472 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
19474 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
19475 (TARGET_FPA): Delete definition.
19476 (TARGET_MAVERICK): Likewise.
19477 (TARGET_FPA_EMU2): Likewise.
19478 (arm_fp_model): Remove FPA and Maverick models.
19479 (arm_arch_cirrus): Delete declaration.
19480 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
19481 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
19482 (CALL_USED_REGISTERS): Likewise.
19483 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
19484 (FIRST_VFP_REGNUM): Renumbered.
19485 (D7_VFP_REGNUM): Chain definition.
19486 (LAST_LO_VFP_REGNUM): Likewise.
19487 (FIRST_HI_VFP_REGNUM): Likewise.
19488 (LAST_HI_VFP_REGNUM): Likewise.
19489 (FIRST_IWMMXT_GR_REGNUM): Likewise.
19490 (LAST_IWMMXT_GR_REGNUM): Likewise.
19491 (FIRST_IWMMXT_REGNUM): Likewise.
19492 (LAST_IWMMXT_REGNUM): Likewise.
19493 (FRAME_POINTER_REGNUM): Renumbered.
19494 (ARG_POINTER_REGNUM): Renumbered.
19495 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
19496 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
19497 (HARD_REGNO_REGNUM): Remove FPA support.
19498 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
19499 (reg_class): Likewise.
19500 (REG_CLASS_NAMES): Likewise.
19501 (REG_CLASS_CONTENTS): Likewise.
19502 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
19503 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
19504 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
19505 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
19506 Reorganize. Use AAPCS preferred names.
19507 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
19509 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
19510 * arm.c (FL_CIRRUS): Delete definition.
19511 (arm_arch_cirrus): Delete variable.
19512 (arm_float_words_big_endian): Delete function.
19513 (cirrus_memory_offset): Delete function.
19514 (output_mov_long_double_fpa_from_arm): Delete function.
19515 (output_mov_long_double_arm_from_fpa): Delete function.
19516 (output_mov_double_fpa_from_arm): Delete function.
19517 (output_mov_double_arm_from_fpa): Delete function.
19518 (emit_sfm): Delete function.
19519 (maybe_get_arm_condition_code): Update comment.
19520 (arm_file_start): Always use softvfp for softfloat systems.
19521 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
19522 (arm_option_override): Remove FPA and Maverick support. Always
19523 default to vfp as the fallback FPU format.
19524 (use_return_insn): Remove FPA support.
19525 (arm_get_frame_offsets): Likewise.
19526 (arm_save_coproc_regs): Likewise.
19527 (arm_canonicalize_comparison): Remove Maverick support.
19528 (arm_select_cc_mode): Likewise.
19529 (arm_gen_compare_reg): Likewise.
19530 (arm_print_operand): Likewise.
19531 (arm_libcall_value_1): Remove FPA and Maverick support.
19532 (arm_function_value_regno_p): Likewise.
19533 (arm_apply_result_size): Likewise.
19534 (arm_legitimate_index_p): Likewise.
19535 (thumb2_legitimate_index_p): Likewise.
19536 (legitimize_reload_address): Likewise.
19537 (arm_register_move_cost): Likewise.
19538 (arm_hard_regno_mode_ok): Likewise.
19539 (arm_regno_class): Likewise.
19540 (arm_dbx_register_number): Likewise.
19541 (arm_emit_unwind_sequence): Likewise.
19542 (arm_conditional_register_usage): Likewise.
19543 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
19544 (cirrus_memory_offset): Likewise.
19545 (output_move_long_double_fpa_from_arm): Likewise.
19546 (output_move_long_double_arm_from_fpa): Likewise.
19547 (output_move_double_fpa_from_arm): Likewise.
19548 (output_move_double_arm_from_fpa): Likewise.
19549 (arm_float_words_big_endian): Likewise.
19550 * arm.md (CC_REGNUM): Renumbered.
19551 (VFPCC_REGNUM): Moved here. Renumbered.
19552 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
19553 (attr fpu): Remove FPA and Maverick support.
19554 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
19555 * arm-cores.def (ep9312): Remove Maverick support.
19556 * arm-arches.def (ep9312): Delete architecture.
19557 * arm-tables.opt: Regenerated.
19559 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
19561 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
19563 PR tree-optimization/53881
19564 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
19565 comparing labels to establish uniqueness of a switch case target,
19566 use the CFG instead.
19568 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
19570 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
19571 due to negative shift amount.
19573 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
19575 Fix configure test for "stack protector support in target C library".
19576 * configure.ac (test_prefix, test_exec_prefix): Move setting from
19577 inside sysroot handling to before and outside it.
19578 * configure: Regenerate.
19580 2012-07-06 Kai Tietz <ktietz@redhat.com>
19583 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
19584 as "/mingw/include".
19586 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
19589 * var-tracking.c (vt_add_function_parameter): Convert
19590 internal_arg_pointer into arg_pointer-based address even
19593 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
19595 PR rtl-optimization/53827
19598 * alias.c (memrefs_conflict_p): Adjust offset and size by the
19599 same amount for alignment ANDs.
19601 2012-07-06 Tom de Vries <tom@codesourcery.com>
19603 PR tree-optimization/51879
19604 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
19605 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
19606 (visit_use): Also call visit_reference_op_call for calls with a vdef.
19608 2012-07-06 Tom de Vries <tom@codesourcery.com>
19610 PR tree-optimization/52009
19611 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
19612 value numbers of gimple_vdef.
19613 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
19615 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
19616 (vn_reference_insert): Add and handle vdef parameter.
19617 (visit_reference_op_load): Add argument to vn_reference_insert call.
19618 (visit_reference_op_store): Find value number of vdef of store. Insert
19619 value number of vdef of store.
19621 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
19623 * config/i386/i386.md (simple lea to add peephole): Also transform
19624 RTXes where second PLUS operand matches output.
19626 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
19628 * config/i386/i386.c (construct_plt_address): Make static.
19629 * config/i386/i386-protos.h (construct_plt_address): Remove.
19631 2012-07-06 Nick Clifton <nickc@redhat.com>
19633 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
19634 default_encode_section_info.
19636 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
19639 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
19640 emit PIC sequence for fnaddr symbol reference in advance.
19642 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
19645 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
19647 * dwarf2out.c (function_possibly_abstracted_p): New static function.
19648 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
19649 cgraph_function_possibly_inlined_p.
19650 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
19651 (process_scope_var): Do not emit concrete instances of abstracted
19652 nested functions from here.
19653 (gen_decl_die): Emit the abstract instance if the function is possibly
19654 abstracted and not only possibly inlined.
19655 (dwarf2out_finish): Find the first non-abstract parent instance and
19656 attach concrete instances on the limbo list to it.
19658 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19659 Julian Brown <julian@codesourcery.com>
19663 * config/arm/neon-gen.ml (return_by_ptr): Delete.
19664 (print_function): Handle empty strings.
19665 (return): Delete use of return_by_ptr.
19666 (mask_shape_for_shuffle): New function.
19667 (mask_elems): Likewise.
19668 (shuffle_fn): Likewise.
19669 (params): Simplify and remove use of return_by_ptr.
19670 (get_shuffle): New function.
19671 (print_variant): Update.
19672 * config/arm/neon.ml (rev_elems): New function.
19673 (permute_range): Likewise.
19674 (zip_range): Likewise.
19675 (uzip_range): Likewise.
19676 (trn_range): Likewise.
19677 (zip_elems): Likewise.
19678 (uzip_elems): Likewise.
19679 (trn_elems): Likewise.
19680 (features): New enumeration Use_shuffle. Delete ReturnPtr.
19683 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
19684 * config/arm/arm_neon.h: Regenerate.
19686 2012-07-05 Richard Guenther <rguenther@suse.de>
19688 * tree-pretty-print.c (dump_generic_node): Properly test
19689 the result of exact_log2.
19691 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19693 * config/s390/s390-protos.h (s390_expand_movmem)
19694 (s390_expand_cmpmem): Add return value.
19695 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
19696 Return FALSE to use the library function in some cases.
19697 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
19700 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19702 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
19704 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
19706 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
19707 * stmt.c (dump_case_nodes): New.
19708 (expand_case): Split out code generation parts into new functions.
19709 (expand_switch_as_decision_tree_p): Split out from expand_case.
19710 (emit_case_decision_tree): Likewise.
19711 (emit_case_dispatch_table): Likewise.
19713 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
19715 * config/arm/iterators.md (SDF): New mode iterator.
19716 (V_if_elem): Add support for SF and DF modes.
19718 (F_constraint): New mode iterator attribute.
19719 (F_fma_type): Likewise.
19720 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
19721 (*fmsub<SDF:mode>4): Likewise.
19722 (*fmnsub<SDF:mode>4): Likewise.
19723 (*fmnadd<SDF:mode>4): Likewise.
19725 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
19727 * expmed.c (expand_mult): Initialize coeff and is_neg.
19729 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
19731 * config/sh/predicates.md (zero_extend_operand): New predicate.
19732 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
19733 zero_extend_operand predicate.
19734 (zero_extendqisi2): Likewise.
19736 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
19738 PR middle-end/53321
19739 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
19740 to not call cgraph_propagate_frequency if something was changed.
19742 2012-07-04 Richard Guenther <rguenther@suse.de>
19744 PR middle-end/53433
19745 * gimple-fold.c (get_base_constructor): Do not return an
19746 error_mark_node DECL_INITIAL.
19748 2012-07-04 Richard Guenther <rguenther@suse.de>
19750 PR tree-optimization/53844
19751 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
19752 the loop virtual PHI.
19754 2012-07-04 Richard Guenther <rguenther@suse.de>
19756 PR tree-optimization/53849
19757 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
19758 for duplicated locals. Use add_referenced_var_1 to avoid
19759 pushing/popping cfun.
19761 2012-07-04 Kai Tietz <ktietz@redhat.com>
19763 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
19764 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
19766 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
19767 as i386_pe_reloc_rw_mask.
19769 2012-07-04 Richard Guenther <rguenther@suse.de>
19771 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
19772 as in free_lang_data_in_type.
19774 2012-07-04 Tobias Grosser <tobias@grosser.es>
19775 Michael Matz <matz@suse.de>
19777 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
19778 (graphite-optimize-isl.o): Add dependencies.
19779 * common.opt (floop-nest-optimize): New flag.
19780 * doc/invoke.texi (floop-nest-optimize): Document.
19781 * graphite-dependences.c (compute_deps): Export.
19782 * graphite-poly.h (compute_deps): Declare.
19783 * graphite-optimize-isl.c: New file.
19784 * graphite-poly.c (apply_poly_transforms): Run the loop
19786 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
19787 if -floop-nest-optimize is enabled.
19789 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
19791 * config/sh/predicates.md (logical_and_operand): New predicate.
19792 * config/sh/constraints.md (Jmb, Jmw): New constraints.
19793 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
19794 of 0xFFFF constant. Use logical_and_operand predicate and
19795 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
19796 (*andsi3_compact): Make it an insn_and_split. Use
19797 logical_and_operand predicate. Add Jmb,Jmw alternatives.
19799 2012-07-03 Jason Merrill <jason@redhat.com>
19802 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
19804 2012-07-03 Nick Clifton <nickc@redhat.com>
19806 * config/mep/mep.c (mep_reorg_regmove): Use
19807 next_nonnote_non_debug_insn to advance to the next insn. Do not
19808 expect delete_insn to return an rtx.
19810 2012-07-03 Richard Guenther <rguenther@suse.de>
19812 * doc/install.texi (CLooG): Clarify how CLooG needs to be
19813 configured and that it needs to be built against ISL 0.10.
19815 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
19817 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
19818 code model string in the error message.
19820 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
19823 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
19824 sibcall_insn_operand. Move it to a temporary register if not.
19826 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
19829 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
19832 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
19834 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
19836 2012-07-03 Roland McGrath <mcgrathr@google.com>
19838 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
19839 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
19840 * configure: Regenerated.
19841 * config/i386/i386.md (simple_return_internal_long): Use %;
19842 (ctz<mode>2): Likewise.
19843 (*pause): Likewise.
19845 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
19848 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
19850 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
19851 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
19852 gen_branch_true and gen_branch_false.
19853 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
19855 (branch_true, branch_false): Use t_reg_operand predicate.
19856 (*branch_true, *branch_false): Delete.
19857 (movt): Use t_reg_operand predicate.
19858 (*negnegt): Use negt_reg_operand predicate and fold little and big
19860 (*movtt): Use t_reg_operand and fold little and big endian variants.
19861 (*movt_qi): Delete.
19863 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
19865 * stmt.c (emit_case_bit_tests): Remove.
19866 (expand_case): Remove expand_switch_using_bit_tests_p code.
19867 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
19868 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
19869 (lshift_cheap_p): Likewise.
19870 (expand_switch_using_bit_tests_p): Likewise.
19871 (struct case_bit_test): Likewise.
19872 (case_bit_test_cmp): Likewise.
19873 (emit_case_bit_tests): New implementation for GIMPLE.
19874 (gen_inbound_check): Do not release post-dominator info here.
19875 (process_switch): Reorder code. Expand as bit tests if it
19877 (do_switchconv): Release post-dominator info here if something changed.
19878 (struct gimple_opt_pass): Verify more.
19879 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
19881 2012-07-02 Martin Jambor <mjambor@suse.cz>
19883 PR middle-end/38474
19884 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
19885 dynamic type change check.
19887 2012-07-02 Richard Guenther <rguenther@suse.de>
19888 Michael Matz <matz@suse.de>
19889 Tobias Grosser <tobias@grosser.es>
19890 Sebastian Pop <sebpop@gmail.com>
19892 * Makefile.in: Remove PPL flags in favor of ISL ones.
19893 (BACKENDLIBS): Remove PPL libs.
19894 (INCLUDES): Remove PPL includes in favor of ISL ones.
19895 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
19896 graphite-cloog-compat.h dependencies.
19897 (graphite-dependences.o): Likewise.
19898 (graphite-poly.o): Likewise.
19899 * configure.ac: Declare ISL vars instead of PPL ones.
19900 * configure: Regenerated.
19901 * doc/install.texi: Replace PPL requirement documentation with ISL one.
19902 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
19903 * graphite-clast-to-gimple.c: Likewise.
19904 * graphite-dependences.c: Likewise.
19905 * graphite-interchange.c: Likewise.
19906 * graphite-poly.h: Likewise.
19907 * graphite-poly.c: Likewise.
19908 * graphite-sese-to-poly.c: Likewise.
19909 * graphite.c: Likewise.
19910 * graphite-scop-detection.c: Re-arrange includes.
19911 * graphite-cloog-util.c: Remove.
19912 * graphite-cloog-util.h: Likewise.
19913 * graphite-ppl.h: Likewise.
19914 * graphite-ppl.c: Likewise.
19915 * graphite-dependences.h: Likewise.
19917 2012-07-02 Richard Guenther <rguenther@suse.de>
19919 Merge from graphite branch
19920 2011-07-21 Tobias Grosser <tobias@grosser.es>
19922 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
19923 Remove graphite-cloog-util.h.
19924 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
19925 build_iv_mapping, translate_clast_user, translate_clast,
19926 free_scattering, initialize_cloog_names, build_cloog_prog,
19927 create_params_index): Do not use old compatibility functions.
19928 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
19929 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
19930 compatibility functions.
19931 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
19933 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
19934 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
19936 * graphite-cloog-compat.h: Remove.
19938 2011-08-09 Tobias Grosser <tobias@grosser.es>
19940 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
19941 of the string, no just a reference.
19942 (clast_name_index): Add a new field, that specifies if we need to free
19944 (free_clast_name_index): If necessary, free the name string.
19945 (clast_name_index_elt_info): Calculate the hash based on the string
19946 content, not the memory location it is stored in.
19947 (clast_name_to_level): Specify that we do not need to free the name.
19948 (clast_name_to_index): Dito.
19949 (clast_name_to_lb_ub): Dito.
19950 (eq_clast_name_indexes): Compare the strings, not their base pointers.
19951 (free_scattering): Removed.
19952 (initialize_cloog_names): Renamed to add_names_to_union_domain().
19953 (add_names_to_union_domain): Changed to work on a union_domain,
19954 instead of a CloogNames structure.
19955 (build_cloog_prog): Removed.
19956 (build_cloog_union_domain): New.
19957 (generate_cloog_input): New.
19958 (scop_to_clast): Use CloogInput instead of CloogProgram.
19959 (print_generated_program): Adapt to new scop_to_clast() and do not
19960 print the CloogProgram any more.
19961 (create_params_index): Removed, functionality integrated in
19962 add_names_to_union_domain().
19963 (gloog): Adapt to new scop_to_clast().
19964 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
19966 2012-01-11 Tobias Grosser <tobias@grosser.es>
19968 * graphite-clast-to-gimple.c (clast_name_to_index,
19969 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
19970 (clast_to_gcc_expression): Add clast_expr_name as a new
19971 case. Do not assume a clast_expr_term points always to a
19973 (type_for_clast_term): Do not assume a clast_expr_term points always to
19975 (type_for_clast_name): New.
19976 (type_for_clast_expr): Add clast_expr_name as a new case.
19978 2011-08-03 Sebastian Pop <sebpop@gmail.com>
19980 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
19981 new_Cloog_Scattering_from_ppl_Polyhedron,
19982 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
19984 2012-07-02 Jakub Jelinek <jakub@redhat.com>
19986 PR tree-optimization/53645
19987 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
19988 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
19990 2012-07-01 Wei Guozhi <carrot@google.com>
19993 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
19994 * config/arm/arm.c (const_ok_for_dimode_op): New function.
19995 * config/arm/constraints.md (Dd): New constraint.
19996 * config/arm/predicates.md (arm_adddi_operand): New predicate.
19997 * config/arm/arm.md (adddi3): Extend it to handle constants.
19998 (arm_adddi3): Likewise.
19999 (addsi3_carryin_<optab>): Extend it to handle sbc case.
20000 (addsi3_carryin_alt2_<optab>): Likewise.
20001 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
20003 2012-06-30 Nathan Sidwell <nathan@acm.org>
20005 * coverage.c (bbg_file_stamp): New.
20006 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
20007 (build_info): Write bbg_file_stamp.
20008 (coverage_init): Initialize bbg_file_stamp. Read counts file
20009 before writing graph header.
20010 (coverage_finish): Don't unlink the data file if we can generate a
20012 * tree.h (crc32_unsigned): Declare.
20013 * tree.c (crc32_unsigned_bits): New, broken out of ...
20014 (crc32_byte): ... here. Use it.
20015 (crc32_unsigned): New.
20017 2012-06-29 Cary Coutant <ccoutant@google.com>
20019 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
20020 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
20021 (gen_variable_die): Likewise.
20022 (gen_namespace_die): Likewise.
20024 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
20026 * tree-eh.c (lower_try_finally_switch): Really put the location of the
20027 last statement of the finally block onto the switch.
20029 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
20032 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
20035 2012-06-29 Sterling Augustine <saugustine@google.com>
20037 * dwarf2out.c (add_pubname): Add comment.
20038 (add_pubtype): Fix indentation.
20039 (gen_enumeration_type_die): Likewise.
20041 2012-06-29 Jakub Jelinek <jakub@redhat.com>
20043 * tree-vect-generic.c (expand_vector_divmod): For even/odd
20044 widening multiply, put even always as first argument to VEC_PERM_EXPR.
20046 2012-06-29 Richard Henderson <rth@redhat.com>
20048 * tree-vect-generic.c: Include target.h.
20049 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
20050 * Makefile.in (tree-vect-generic.o): Update.
20052 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
20054 * configure.ac: Remove special gtfiles case for C.
20055 * configure: Regenerate.
20056 * Makefile.in: Remove C front-end hooks and build hooks that
20057 will be picked up from c/Make-lang.in now.
20058 Add tree-mudflap to C_COMMON_OBJS.
20059 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
20060 * config/vms/vms.c: Look for c-tree.h in c/.
20061 * doc/gty.texi: Remove reference to c-config-lang.in.
20062 * doc/sourcebuild.texi: Document the c/ subdirectory.
20064 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
20066 * system.h (CASE_USE_BIT_TESTS): Poison.
20067 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
20068 (expand_switch_using_bit_tests_p): ...here.
20069 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
20070 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
20072 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
20074 * system.h (IFCVT_EXTRA_FIELDS): Poison.
20075 (IFCVT_INIT_EXTRA_FIELDS): Poison.
20076 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
20077 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
20078 IFCVT_INIT_EXTRA_FIELDS.
20079 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
20080 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
20081 IFCVT_MACHDEP_INIT.
20082 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
20083 frv_ifcvt_machdep_init.
20084 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
20085 Remove documentation.
20086 (IFCVT_MACHDEP_INIT): Document.
20087 * doc/tm.texi: Regenerate.
20089 2012-06-29 Nick Clifton <nickc@redhat.com>
20091 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
20093 2012-06-29 Jakub Jelinek <jakub@redhat.com>
20095 * tree-vect-stmts.c (vectorizable_operation): Check both
20096 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
20097 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
20099 2012-06-28 Richard Henderson <rth@redhat.com>
20101 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
20103 2012-06-28 Jakub Jelinek <jakub@redhat.com>
20105 PR tree-optimization/51581
20106 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
20107 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
20108 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
20109 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
20110 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
20111 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
20113 PR tree-optimization/53645
20114 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
20115 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
20118 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
20121 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
20122 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
20123 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
20124 avr_hard_regno_call_part_clobbered.
20126 2012-06-28 Richard Guenther <rguenther@suse.de>
20128 PR middle-end/53790
20129 * expr.c (expand_expr_real_1): Verify if the type is complete
20130 before inspecting its size.
20132 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
20134 * doc/include/gpl.texi: Remove.
20135 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
20137 2012-06-28 Jakub Jelinek <jakub@redhat.com>
20139 PR tree-optimization/53645
20140 * tree-vect-generic.c (add_rshift): New function.
20141 (expand_vector_divmod): New function.
20142 (expand_vector_operation): Use it for vector integer
20143 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
20144 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
20145 unused lguup variable with dummy_int.
20147 2012-06-28 OLivier Hainque <hainque@adacore.com>
20149 * expr.c (convert_move): Latch mem integer inputs into a
20150 register before expanding a multi-instructions sequence.
20152 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
20153 Uros Bizjak <ubizjak@gmail.com>
20154 Jakub Jelinek <jakub@redhat.com>
20158 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
20159 (vt_finalize): ... here instead, if needed.
20161 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
20166 * dce.c (word_dce_process_block): Check whether inserting debug
20167 temps are needed even for needed insns.
20168 (dce_process_block): Likewise.
20169 * df-problems.c (dead_debug_add): Add comment about multi-regs.
20170 (dead_debug_insert_temp): Likewise. Don't subreg when we're
20171 setting fewer regs than a multi-reg requires.
20173 2012-06-27 Richard Henderson <rth@redhat.com>
20175 * config/alpha/alpha.c (alpha_dimode_u): New.
20176 (alpha_init_builtins): Initialize it, and use it.
20177 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
20178 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
20179 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
20180 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
20181 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
20182 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
20183 (alpha_fold_builtin_ctpop): Likewise.
20184 (alpha_fold_builtin_umulh): Remove.
20185 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
20186 typo in MAX_ARGS check.
20188 2012-06-27 Richard Henderson <rth@redhat.com>
20190 * tree.def (MULT_HIGHPART_EXPR): New.
20191 * cfgexpand.c (expand_debug_expr): Ignore it.
20192 * expr.c (expand_expr_real_2): Handle it.
20193 * fold-const.c (int_const_binop_1): Likewise.
20194 * optabs.c (optab_for_tree_code): Likewise.
20195 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
20196 * tree-inline.c (estimate_operator_cost): Likewise.
20197 * tree-pretty-print.c (dump_generic_node): Likewise.
20198 (op_code_prio, op_symbol_code): Likewise.
20199 * tree.c (commutative_tree_code): Likewise. Also handle
20200 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
20202 2012-06-27 Richard Henderson <rth@redhat.com>
20205 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
20206 in 2012-06-23 change. Adjust two other DImode tests as well.
20208 2012-06-27 Nick Clifton <nickc@redhat.com>
20210 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
20213 2012-06-27 Richard Guenther <rguenther@suse.de>
20215 PR middle-end/53676
20216 * tree-chrec.c (chrec_convert_1): Represent truncation to
20217 a type with undefined overflow as truncation to an unsigned
20218 type converted to the type with undefined overflow.
20219 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
20220 the scalar evolution of a truncated widened operation avoid
20221 looking at the non-existing evolution of the widened operation
20224 2012-06-27 Richard Guenther <rguenther@suse.de>
20226 PR tree-optimization/53774
20227 * tree-ssa-reassoc.c (get_rank): All default defs have
20229 (init_reassoc): Precompute rank for all SSA default defs.
20231 2012-06-27 Nick Clifton <nickc@redhat.com>
20233 * config/rx/rx.md (simple_return): Use the simple_return rtx.
20235 2012-06-26 Richard Henderson <rth@redhat.com>
20237 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
20238 and don't fall thru from standard_80387_constant_p to the memory
20241 2012-06-26 Richard Henderson <rth@redhat.com>
20243 * config/i386/i386.c (bdesc_args): Update. Change
20244 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
20245 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
20246 (ix86_builtin_mul_widen_even): Use it.
20247 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
20248 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
20249 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
20251 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
20252 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
20253 (vec_widen_smult_even_v4si): New.
20255 2012-06-26 Richard Henderson <rth@redhat.com>
20257 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
20258 to expander; move guts to ...
20259 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
20260 highparts before shifting up.
20261 * config/i386/i386-protos.h: Update.
20263 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
20265 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
20266 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
20267 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
20269 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
20271 * var-tracking.c (vt_add_function_parameter): Use a preserved
20272 VALUE for the MEM address of an incoming parameter.
20274 2012-06-26 Sterling Augustine <saugustine@google.com>
20276 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
20277 (prune_unused_types): Likewise.
20279 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
20281 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
20282 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
20283 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
20284 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
20285 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
20286 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
20287 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
20288 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
20289 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
20291 * doc/tm.texi: Regenerate.
20292 * doc/cpp.texi: Make example for #error generic.
20293 * config/frv/frv.h: Fix example text to match tm.texi.
20295 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
20297 * tree-pass.h (pass_strength_reduction): New decl.
20298 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
20299 (finalize_costs): Likewise.
20300 * timevar.def (TV_TREE_SLSR): New timevar.
20301 * gimple-ssa-strength-reduction.c: New.
20302 * tree-flow.h (initialize_costs): New decl.
20303 (finalize_costs): Likewise.
20304 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
20305 * passes.c (init_optimization_passes): Add pass_strength_reduction.
20307 2012-06-26 Matt Turner <mattst88@gmail.com>
20309 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
20310 (__builtin_arm_tinsrh): Likewise.
20311 (__builtin_arm_tinsrw): Likewise.
20312 (__builtin_arm_wsadb): Add missing v2si parameter.
20313 (__builtin_arm_wsadh): Likewise.
20314 (__builtin_arm_getwcx): Delete.
20315 (__builtin_arm_setwcx): Delete.
20316 (__builtin_arm_getwcgr0): Add.
20317 (__builtin_arm_getwcgr1): Add.
20318 (__builtin_arm_getwcgr2): Add.
20319 (__builtin_arm_getwcgr3): Add.
20320 (__builtin_arm_setwcgr0): Add.
20321 (__builtin_arm_setwcgr1): Add.
20322 (__builtin_arm_setwcgr2): Add.
20323 (__builtin_arm_setwcgr3): Add.
20325 2012-06-26 Richard Guenther <rguenther@suse.de>
20328 2012-06-21 Richard Guenther <rguenther@suse.de>
20330 * tree-inline.c (estimate_num_insns): Estimate call cost for
20331 tailcalls properly.
20333 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
20336 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
20337 * doc/tm.texi: Regenerate.
20339 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
20342 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
20343 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
20344 * doc/tm.texi.in: Remove documentation for unused target macros
20345 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
20346 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
20347 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
20348 TARGET_NARROW_VOLATILE_BITFIELDS.
20349 Document that MD_HANDLE_UNWABI is a macro in libgcc.
20350 * doc/tm.texi: Regenerate.
20351 * system.h: Poison target macros
20352 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
20353 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
20354 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
20355 TARGET_NARROW_VOLATILE_BITFIELDS
20357 2012-06-26 Jan Hubicka <jh@suse.cz>
20360 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
20363 2012-06-26 Dehao Chen <dehao@google.com>
20365 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
20366 source location is consistant with the call stmt.
20368 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
20370 PR tree-optimization/53729
20371 PR tree-optimization/53636
20372 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
20373 vect_verify_datarefs_alignment until after statements have
20374 been marked as relevant/irrelevant.
20375 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
20376 Skip irrelevant statements.
20377 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
20378 instead of STMT_VINFO_RELEVANT.
20379 (vect_get_data_access_cost): Do not check for supportable
20380 alignment before calling vect_get_load_cost/vect_get_store_cost.
20381 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
20382 handling unsupported alignment.
20383 (vect_get_load_cost): Likewise.
20385 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
20387 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
20388 Do not define JMP_BUF_SIZE.
20390 2012-06-26 Jakub Jelinek <jakub@redhat.com>
20392 PR tree-optimization/53748
20393 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
20394 if arg0/arg1 have integral or pointer types.
20396 2012-06-25 Richard Henderson <rth@redhat.com>
20398 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
20399 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
20400 (sdot_prodv4si): New; handle only XOP.
20402 2012-06-25 Richard Henderson <rth@redhat.com>
20404 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
20405 (V2UDI_FUNC_V4USI_V4USI): New.
20406 (V4UDI_FUNC_V8USI_V8USI): New.
20407 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
20408 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
20409 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
20410 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
20411 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
20412 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
20413 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
20414 (bdesc_args): Add them.
20415 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
20416 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
20417 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
20418 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
20419 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
20421 2012-06-25 Richard Henderson <rth@redhat.com>
20423 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
20425 2012-06-25 Richard Henderson <rth@redhat.com>
20427 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
20429 (ix86_expand_vec_interleave): New.
20430 (ix86_expand_mul_widen_evenodd): New.
20431 (ix86_expand_mul_widen_hilo): New.
20432 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
20433 * config/i386/i386.md (u_bool) New code attr.
20434 * config/i386/predicates.md
20435 (nonimmediate_or_const_vector_operand): Remove.
20436 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
20437 both AVX and SSE4_1.
20438 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
20439 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
20440 (vec_widen<s>mult_hi_v8si): Remove.
20441 (vec_widen<s>mult_lo_v8si): Remove.
20442 (vec_widen_smult_hi_v4si): Remove.
20443 (vec_widen_smult_lo_v4si): Remove.
20444 (vec_widen_umult_hi_v4si): Remove.
20445 (vec_widen_umult_lo_v4si): Remove.
20446 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
20447 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
20448 * config/i386/i386-protos.h: Update.
20450 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
20452 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
20453 (neon_vld1_dup): Restrict to VQ operands.
20454 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
20456 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
20457 James Greenhalgh <james.greenhalgh@arm.com>
20459 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
20460 (TARGET_FMA): New macro.
20461 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
20462 (TARGET_ARM_ARCH): Likewise.
20463 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
20464 (TARGET_V6M, TARGET_V7M): Likewise.
20465 (TARGET_ARM_ARCH_PROFILE): Likewise.
20466 (TARGET_ARM_FEATURE_LDREX): Likewise.
20467 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
20468 (ARM_MIN_ENUM_SIZE): Likewise.
20469 * config/arm/arm.c (arm_file_start): Refactor appropriately.
20470 (base_architecture): New enumeration.
20471 (arm_base_arch): New global variable.
20472 (processors): Add field base_arch.
20473 (ARM_ARCH, ARM_CORE): Adjust accordingly.
20474 (arm_option_override): Add initialization of arm_base_arch.
20475 * doc/cpp.texi (system-specific predefined macros.): Change.
20477 2012-06-25 Jakub Jelinek <jakub@redhat.com>
20480 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
20481 of x x x in the vmovlps load alternative.
20483 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
20486 * df.h (dead_debug_add): Remove third argument.
20487 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
20488 REG that we want to replace instead.
20489 (dead_debug_insert_temp): Use the REGNO of the reg that we want
20490 to replace instead of DF_REF_REGNO. Require there to always be
20491 at least one such use. Check for cases where the same location
20492 has more than df_ref associated with it.
20493 (df_note_bb_compute): Remove third dead_debug_add argument.
20494 * dce.c (word_dce_process_block): Likewise.
20496 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
20498 * config/v850/v850.c: Remove redundant extern declarations for
20499 last_assemble_variable_decl and size_directive_output.
20501 * doc/tm.texi.in: Document JMP_BUF_SIZE.
20502 * doc/tm.texi: Regenerate.
20503 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
20504 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
20505 * config/stormy16/stormy16.h: Likewise.
20507 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
20509 * doc/sourcebuild.texi: Add missing subdirectories.
20511 2012-06-25 Tristan Gingold <gingold@adacore.com>
20513 * config/i386/i386.h: Fix typo.
20515 2012-06-25 Tristan Gingold <gingold@adacore.com>
20517 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
20518 (seh_cfa_adjust_cfa): ... that function.
20519 (seh_emit_stackalloc): Do not emit out of range values.
20520 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
20521 UNSPEC_DEF_CFA constants.
20522 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
20523 * config/i386/i386.c (ix86_frame_pointer_required): Required
20524 for very large frames on SEH target.
20525 (ix86_compute_frame_layout): Save area is before frame pointer
20526 on SEH target. Handle very large frames.
20527 (ix86_expand_prologue): Likewise.
20529 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
20531 * output.h: (current_function_is_leaf,
20532 current_function_sp_is_unchanging,
20533 current_function_uses_only_leaf_regs): Remove.
20534 * function.c (current_function_is_leaf,
20535 current_function_sp_is_unchanging,
20536 current_function_uses_only_leaf_regs): Remove.
20537 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
20538 instead of current_function_uses_only_leaf_regs.
20539 * function.h (struct rtl_data): New fields sp_is_unchanging,
20540 is_leaf, uses_only_leaf_regs.
20541 * resource.c (init_resource_info): Replace current_function_is_leaf,
20542 current_function_sp_is_unchanging, and
20543 current_function_uses_only_leaf_regs with new crtl fields.
20544 * sdbout.c (sdbout_symbol): Likewise.
20545 * df-core.c (rest_of_handle_df_initialize): Likewise.
20546 * ira.c (ira): Likewise.
20547 * final.c (final_start_function): Likewise.
20548 * reorg.c (fill_simple_delay_slots): Likewise.
20549 * regrename.c (check_new_reg_p): Likewise.
20550 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
20551 (notice_stack_pointer_modification): Likewise.
20552 * dbxout.c (dbxout_symbol): Likewise.
20553 (dbxout_parms): Likewise.
20554 * sel-sched.c (init_regs_for_mode): Likewise.
20555 * dwarf2out.c (dbx_reg_number): Likewise.
20556 (multiple_reg_loc_descriptor): Likewise.
20557 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
20558 (gen_pop): Likewise.
20559 (ix86_select_alt_pic_regnum): Likewise.
20560 (ix86_compute_frame_layout): Likewise.
20561 (ix86_finalize_stack_realign_flags): Likewise.
20562 (ix86_expand_epilogue): Likewise.
20563 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
20564 * config/h8300/h8300.c (byte_reg): Likewise.
20565 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
20566 (c6x_save_reg): Likewise.
20567 (c6x_compute_frame_layout): Likewise.
20568 * config/pa/pa.c (pa_compute_frame_size): Likewise.
20569 (pa_output_function_prologue): Likewise.
20570 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
20571 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
20572 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
20573 (sparc_expand_prologue): Likewise.
20574 (sparc_flat_expand_prologue): Likewise.
20575 (sparc_asm_function_prologue): Likewise.
20576 (sparc_output_mi_thunk): Likewise.
20577 (sparc_frame_pointer_required): Likewise.
20578 * config/epiphany/epiphany.c (epiphany_compute_function_type):
20580 (epiphany_compute_frame_size): Likewise.
20581 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
20582 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
20583 (cris_frame_pointer_required): Likewise.
20584 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
20585 (tilepro_current_function_is_leaf): Likewise.
20586 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
20587 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
20588 * config/ia64/ia64.c (find_gr_spill): Likewise.
20589 (ia64_compute_frame_size): Likewise.
20590 (ia64_can_eliminate): Likewise.
20591 (ia64_initial_elimination_offset): Likewise.
20592 * config/m68k/m68k.c (m68k_save_reg): Likewise.
20593 (m68k_expand_epilogue): Likewise.
20594 * config/rx/rx.c (rx_get_stack_layout): Likewise.
20595 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
20596 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
20598 (picochip_output_frame_debug): Likewise.
20599 * config/sh/sh.c (sh_media_register_for_return): Likewise.
20600 (sh_allocate_initial_value): Likewise.
20601 (sh_output_mi_thunk): Likewise.
20602 * config/microblaze/microblaze.c (microblaze_must_save_register):
20604 (compute_frame_size): Likewise.
20605 (microblaze_initial_elimination_offset): Likewise.
20606 (microblaze_expand_prologue): Likewise.
20607 (microblaze_expand_epilogue): Likewise.
20608 * config/frv/frv.c (frv_expand_epilogue): Likewise.
20609 (frv_frame_pointer_required): Likewise.
20610 * config/spu/spu.c (get_pic_reg): Likewise.
20611 (direct_return): Likewise.
20612 (spu_expand_prologue): Likewise.
20613 (spu_expand_epilogue): Likewise.
20614 (spu_initial_elimination_offset): Likewise.
20615 * config/mips/mips.c (mips_global_pointer): Likewise.
20616 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
20617 (mips_compute_frame_info): Likewise.
20618 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
20619 (mep_reload_pointer): Likewise.
20620 * config/rl78/rl78.c (need_to_save): Likewise.
20621 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
20622 * config/score/score.c (score_compute_frame_size): Likewise.
20623 (score_function_prologue): Likewise.
20624 * config/bfin/bfin.c (must_save_p): Likewise.
20625 (expand_prologue_reg_save): Likewise.
20626 (expand_epilogue_reg_restore): Likewise.
20627 (bfin_frame_pointer_required): Likewise.
20628 (n_regs_saved_by_prologue): Likewise.
20629 (add_to_reg): Likewise.
20630 (expand_interrupt_handler_prologue): Likewise.
20631 (expand_interrupt_handler_epilogue): Likewise.
20632 (bfin_expand_prologue): Likewise.
20633 * config/avr/avr.c (avr_regs_to_save): Likewise.
20634 (avr_prologue_setup_frame): Likewise.
20635 (expand_epilogue): Likewise.
20636 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
20637 (s390_register_info): Likewise.
20638 (s390_frame_info): Likewise.
20639 (s390_init_frame_layout): Likewise.
20640 (s390_emit_prologue): Likewise.
20643 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
20645 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
20646 * vmsdbgout: Do not undefine it if defined.
20647 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
20648 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
20649 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
20651 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
20653 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
20655 2012-06-23 Richard Henderson <rth@redhat.com>
20658 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
20659 V*QImode shifts and multiply.
20660 (ix86_expand_vecop_qihi): Support shifts.
20661 * config/i386/i386.md (any_shift): New code iterator.
20662 * config/i386/sse.md (ashlv16qi3): Merge ...
20663 (<any_shiftrt>v16qi3): ... into ...
20664 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
20665 to support SSE and AVX.
20667 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
20668 parameter into src and dest.
20669 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
20670 (vec_unpacks_hi_<V124_AVX2>): Likewise.
20671 (vec_unpacku_lo_<V124_AVX2>): Likewise.
20672 (vec_unpacks_lo_<V124_AVX2>): Likewise.
20673 * config/i386/i386-protos.h: Update.
20675 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
20676 pure expander; move expansion code ...
20677 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
20678 * config/i386/i386-protos.h: Update.
20680 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
20682 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
20683 (popcntb<mode>2): Add attribute type popcnt.
20684 (popcntd<mode>2): Ditto.
20685 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
20686 * config/rs6000/power5.md (define_insn_reservation): Ditto.
20687 * config/rs6000/power7.md (define_insn_reservation): Ditto.
20688 * config/rs6000/476.md (define_insn_reservation): Ditto.
20689 * config/rs6000/power6.md (define_insn_reservation): New
20690 reservation for popcnt instructions.
20692 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
20694 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
20696 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
20699 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
20701 * config/i386/i386.c (ix86_option_override_internal): Allow
20702 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
20704 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
20705 if SSE is disabled.
20707 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
20709 * double-int.c (double_int_multiple_of): New function.
20710 * double-int.h (double_int_multiple_of): New decl.
20711 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
20712 (mbc_entry_hash): New forward decl.
20713 (mbc_entry_eq): Likewise.
20714 (zero_cost): Change to no_cost.
20715 (mult_costs): New static var.
20716 (cost_tables_exist): Likewise.
20717 (initialize_costs): New function.
20718 (finalize_costs): Likewise.
20719 (tree_ssa_iv_optimize_init): Call initialize_costs.
20720 (add_cost): Change to add_regs_cost; distinguish costs by speed.
20721 (multiply_regs_cost): New function.
20722 (add_const_cost): Likewise.
20723 (extend_or_trunc_reg_cost): Likewise.
20724 (negate_reg_cost): Likewise.
20725 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
20727 (get_address_cost): Change add_cost to add_regs_cost; change
20728 multiply_by_cost to multiply_by_const_cost.
20729 (force_expr_to_var_cost): Change zero_cost to no_cost; change
20730 add_cost to add_regs_cost; change multiply_by_cost to
20731 multiply_by_const_cost.
20732 (split_cost): Change zero_cost to no_cost.
20733 (ptr_difference_cost): Likewise.
20734 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
20735 to multiply_by_const_cost.
20736 (get_computation_cost_at): Change add_cost to add_regs_cost; change
20737 multiply_by_cost to multiply_by_const_cost.
20738 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
20739 (determine_iv_cost): Change add_cost to add_regs_cost.
20740 (iv_ca_new): Change zero_cost to no_cost.
20741 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
20742 * tree-ssa-address.c (most_expensive_mult_to_index): Change
20743 multiply_by_cost to multiply_by_const_cost.
20744 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
20745 (add_regs_cost): New decl.
20746 (multiply_regs_cost): Likewise.
20747 (add_const_cost): Likewise.
20748 (extend_or_trunc_reg_cost): Likewise.
20749 (negate_reg_cost): Likewise.
20751 2012-06-22 Richard Guenther <rguenther@suse.de>
20753 Merge from graphite branch
20754 2011-08-10 Sebastian Pop <sebpop@gmail.com>
20756 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
20758 2012-01-13 Tobias Grosser <tobias@grosser.es>
20760 * tree-flow.h (parallelized_function_p): Declare.
20761 * tree-parloops.c (parallelized_function_p): Export.
20762 * graphite.c (graphite_transform_loops): Do not run graphite on
20763 already parallel functions.
20765 2012-06-22 Alan Modra <amodra@gmail.com>
20767 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
20768 return mem. Convert to indirect addressing if not indirect or
20769 indexed. Adjust all callers.
20771 2012-06-22 Richard Guenther <rguenther@suse.de>
20773 * gcov-iov.c: Include bconfig.h and system.h.
20775 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
20777 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
20779 2012-06-22 Richard Guenther <rguenther@suse.de>
20781 PR gcov-profile/53744
20782 * gcov-iov.c (main): Treat "" and "prerelease" the same.
20784 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
20787 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
20788 for GNU Fortran if in strict DWARF2 mode.
20790 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
20792 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
20793 DECL_IGNORED_P non-reg vars even if they are used.
20795 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
20799 * var-tracking.c (vt_get_canonicalize_base): New.
20800 (vt_canonicalize_addr, vt_stack_offset_p): New.
20801 (vt_canon_true_dep): New.
20802 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
20803 (clobber_overlaping_mems): Use vt_canonicalize_addr.
20805 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
20809 * var-tracking.c (vt_initialize): Record initial offset between
20810 arg pointer and stack pointer.
20812 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
20816 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
20819 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
20823 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
20825 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
20827 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
20829 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
20832 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
20834 2012-06-21 Meador Inge <meadori@codesourcery.com>
20837 * c-decl.c (c_push_function_context): Restore the behavior to reuse
20838 the language function allocated for -Wunused-local-typedefs.
20839 (c_pop_function_context): If necessary, clear the language function
20840 created in c_push_function_context. Always clear out the
20841 x_cur_stmt_list field of the restored language function.
20843 2012-06-21 Sterling Augustine <saugustine@google.com>
20844 Cary Coutant <ccoutant@google.com>
20846 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
20847 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
20848 (comdat_type_struct): New field 'skeleton_die'.
20849 (breakout_comdat_types): Update it.
20850 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
20851 is_namespace_die. Fix minor style violation. Call want_pubnames.
20852 (add_pubname_string): Call want_pubnames.
20853 (add_pubtype): Rework logic for calculating type name. Call
20854 is_namespace_die. Call want_pubnames.
20855 (output_pubnames): Move conditional logic deciding when to produce the
20856 section from dwarf2out_finish. Use new skeleton_die field.
20857 (base_type_die): Call add_pubtype.
20858 (gen_enumeration_type_die): Unconditionally call add_pubtype.
20859 (gen_subprogram_die): Adjust calls to add_pubname.
20860 (gen_namespace_die): Call add_pubname_string.
20861 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
20862 produce pubnames and pubtypes sections to output_pubnames.
20863 * common.opt (-gpubnames): New option.
20864 * doc/invoke.texi: Document it.
20866 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
20868 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
20870 2012-06-21 Michael Matz <matz@suse.de>
20872 PR middle-end/53688
20873 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
20876 2012-06-21 Richard Guenther <rguenther@suse.de>
20878 * tree-inline.c (estimate_num_insns): Estimate call cost for
20879 tailcalls properly.
20881 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
20883 * tree.h (DECL_SOURCE_COLUMN): New accessor.
20885 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
20887 * config/i386/i386.md (SINCOS): New int iterator.
20888 (sincos): New int attribute.
20889 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
20890 SINCOS int iterator.
20891 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
20892 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
20894 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
20896 * config/i386/i386.md (RDFSGSBASE): New int iterator.
20897 (WRFSGSBASE): Ditto.
20898 (fsgs): New int attribute.
20899 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
20900 RDFSGSBASE int iterator.
20901 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
20902 WRFSGSBASE int iterator.
20904 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
20906 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
20907 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
20908 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
20909 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
20912 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
20914 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
20916 2012-06-20 Richard Guenther <rguenther@suse.de>
20918 PR tree-optimization/30318
20919 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
20921 (range_int_cst_singleton_p): But explicitely here.
20922 (zero_nonzero_bits_from_vr): And here.
20923 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
20924 to cover all cases we can perform arbitrary precision
20925 arithmetic with double-ints.
20926 (intersect_ranges): Handle adjacent anti-ranges.
20928 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
20930 * config/i386/i386.md (rounding_insn): New int attribute.
20931 (<rounding_insn>xf2): Macroize insn from
20932 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
20933 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
20935 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
20937 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
20938 (ieee_maxmin): New int attribute.
20939 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
20940 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
20942 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
20944 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
20945 * config/arm/arm.c: Do not include c-pragma.h.
20946 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
20947 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
20948 to arm_emit_eabi_attribute.
20949 * arm-c.c: Do not include output.h.
20950 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
20951 call to arm_emit_eabi_attribute.
20952 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
20954 2012-06-20 Richard Guenther <rguenther@suse.de>
20956 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
20957 Allow adjusting alignment of user-aligned decls again.
20959 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
20961 * config/rl78/rl78-c.c: Remove unnecessary includes.
20963 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
20965 * config/cris/cris.c: Include cgraph.h.
20966 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
20968 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
20970 * emit-rtl.c (need_atomic_barrier_p): New function.
20971 * emit-rtl.h (need_atomic_barrier_p): Declare it.
20972 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
20973 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
20974 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
20975 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
20976 (mips_process_sync_loop): Use generic version instead.
20978 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
20980 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
20983 2012-06-19 Tom de Vries <vries@codesourcery.com>
20984 Maxim Kuvyrkov <maxim@codesourcery.com>
20986 * config/mips/constraints.md (ZR): New constraint.
20987 * config/mips/predicates.md (mem_noofs_operand): New predicate.
20988 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
20989 * config/mips/mips.h (TARGET_XLP): Define.
20990 (TARGET_SYNC_AFTER_SC): Update.
20991 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
20992 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
20993 XLP-specific swap and ldadd patterns.
20994 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
20996 2012-06-19 Tom de Vries <vries@codesourcery.com>
20997 Maxim Kuvyrkov <maxim@codesourcery.com>
20999 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
21000 (mips_emit_post_atomic_barrier_p): New static functions.
21001 (mips_process_sync_loop): Use them. Emit sync memory barriers in
21002 accordance with memory model semantics. Add return of CMP result for
21004 * config/mips/mips.md: Update comment.
21005 (sync_cmp): New attribute.
21006 (sync_memmodel): New attribute replacing sync_release_barrier.
21007 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
21008 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
21009 (sync_lock_test_and_set, test_and_set_12): Update.
21010 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
21011 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
21013 2012-06-19 Joseph Myers <joseph@codesourcery.com>
21015 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
21016 mov_si<mode>_e500_subreg0.
21017 (*mov_si<mode>_e500_subreg0_elf_low)
21018 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
21020 2012-06-19 Richard Henderson <rth@redhat.com>
21022 * config/alpha/alpha.c: Include params.h.
21023 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
21024 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
21026 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
21028 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
21029 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
21030 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
21032 * doc/tm.texi: Regenerate.
21033 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
21034 .objc_class_name_*.
21035 * config/darwin-c.c: Include target.h.
21036 (darwin_objc_declare_unresolved_class_reference): New function.
21037 (darwin_objc_declare_class_definition): New function.
21038 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
21039 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
21041 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
21043 * target.def (output_ident): New hook.
21044 * targhooks.h (default_asm_output_ident_directive): Add prototype.
21045 * varasm.c (assemble_asm): Only prefix a tab if the string does not
21046 already start with one.
21047 (default_asm_output_ident_directive): New function to emit
21048 .ident as a top-level asm node while parsing, or directly to
21049 asm_out_file after parsing.
21050 * toplev.c (compile_file): Print a GCC .ident with
21051 targetm.asm_out.output_ident.
21052 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
21053 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
21054 * doc/tm.texi: Update.
21056 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
21057 (TARGET_ASM_OUTPUT_IDENT): Define.
21058 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
21059 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
21060 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
21061 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
21062 (TARGET_ASM_OUTPUT_IDENT): Define.
21063 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
21064 (TARGET_ASM_OUTPUT_IDENT): Define.
21066 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
21067 * config/cris/cris.c (cris_asm_output_ident): New function.
21068 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
21070 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
21072 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
21073 (microblaze_asm_output_ident): Rewrite to work similar to
21074 default_asm_output_ident_directive for front-end .idents.
21075 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
21076 (TARGET_ASM_OUTPUT_IDENT): Define.
21078 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
21079 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
21081 * config/rx/rx.c: Include cgraph.h for add_asm_node.
21082 (rx_asm_output_ident): New function, similar to
21083 default_asm_output_ident_directive, but handle AS100 syntax also, so
21084 that #ident also works for rx in AS100 syntax.
21085 (TARGET_ASM_OUTPUT_IDENT): Define.
21086 * config/rx/rx.h (IDENT_ASM_OP): Remove.
21088 * Makefile.in: Fix dependencies for c-family/c-lex.o.
21090 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
21092 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
21093 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
21095 (*fist<mode>2_<rounding>_1): Macroize insn from
21096 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
21097 (fistdi2_<rounding>): Macroize insn from
21098 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
21099 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
21100 corresponding splitters from fistdi2_{floor,ceil} and corresponding
21101 splitters using FIST_ROUNDING int iterator.
21102 (fist<mode>2_<rounding>): Macroize insn from
21103 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
21104 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
21105 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
21106 splitters using FIST_ROUNDING int iterator.
21107 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
21108 using FIST_ROUNDING int iterator.
21110 2012-06-19 Richard Henderson <rth@redhat.com>
21112 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
21113 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
21114 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
21115 * config/i386/sse.md (sse2_mulv4si3): Delete.
21116 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
21117 nonimmediate_or_const_vector_operand.
21119 2012-06-19 Richard Henderson <rth@redhat.com>
21121 * expmed.c (struct init_expmed_rtl): Split ...
21122 (init_expmed_one_mode): ... out of ...
21123 (init_expmed): ... here. Initialize integer vector modes also.
21124 (synth_mult): Handle integer vector modes.
21125 (choose_mult_variant): Likewise.
21126 (expand_mult_const): Likewise.
21127 (expand_mult): Likewise.
21128 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
21130 2012-06-19 Richard Henderson <rth@redhat.com>
21132 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
21133 integral vector modes.
21135 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
21137 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
21138 (rounding): New int attribute.
21140 (frndintxf2_<rounding>): Macroize insn from
21141 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
21142 (frndintxf2_<rounding>_i387): Macroize insn from
21143 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
21145 2012-06-19 Richard Guenther <rguenther@suse.de>
21147 * tree-vrp.c (union_ranges): New function.
21148 (vrp_meet_1): Use union_ranges.
21149 (vrp_meet): Dump what we union and call vrp_meet_1.
21151 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
21153 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
21154 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
21155 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
21156 (attr write_conflict, attr core_cycles): Update.
21157 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
21159 2012-06-19 Richard Guenther <rguenther@suse.de>
21161 * tree-vrp.c (intersect_ranges): Handle more cases.
21162 (vrp_intersect_ranges): Dump what we intersect and call ...
21163 (vrp_intersect_ranges_1): ... this.
21165 2012-06-19 Richard Guenther <rguenther@suse.de>
21167 PR tree-optimization/53708
21168 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
21169 user-supplied alignment and alignment of decls with the used
21172 2012-06-18 Lawrence Crowl <crowl@google.com>
21174 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
21175 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
21176 (TV_PHASE_STREAM_IN): New.
21177 (TV_PHASE_STREAM_OUT): New.
21178 * timevar.c (validate_phases): New.
21179 (timevar_print): Call validate_phases.
21180 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
21181 to TV_PHASE_OPT_GEN.
21182 * langhooks.c (write_global_declarations): Rename use of
21183 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
21184 TV_PHASE_CHECK_DBGINFO.
21185 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
21186 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
21187 lang_hooks.decls.final_write_globals.
21189 2012-06-18 David Edelshn <dje.gcc@gmail.com>
21191 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
21193 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
21196 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
21197 (*sse4_2_pcmpistr_unaligned): New.
21199 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21200 Sameera Deshpande <sameera.deshpande@arm.com>
21201 Greta Yorsh <greta.yorsh@arm.com>
21203 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
21204 * config/arm/arm.c (print_multi_reg): Remove.
21205 (vfp_output_fldmd): Likewise.
21206 (arm_output_epilogue): Likewise.
21207 * config/arm/arm.md (epilogue_insns): Update condition and code.
21209 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21210 Sameera Deshpande <sameera.deshpande@arm.com>
21211 Greta Yorsh <greta.yorsh@arm.com>
21213 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
21214 * config/arm/arm.c (thumb2_expand_return): New function.
21215 * config/arm/arm.md (return): Update condition and code.
21217 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21218 Sameera Deshpande <sameera.deshpande@arm.com>
21219 Greta Yorsh <greta.yorsh@arm.com>
21221 * config/arm/arm-protos.h (output_return_instruction): New parameter
21222 and int to bool change of parameter types.
21223 * config/arm/arm.c (output_return_instruction): Likewise.
21224 * config/arm/arm.md (arm_simple_return): New pattern.
21225 (arm_return, cond_return, cond_return_inverted): Add new arguments.
21226 * config/arm/thumb2.md (thumb2_return): Update condition and code.
21228 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21229 Sameera Deshpande <sameera.deshpande@arm.com>
21230 Greta Yorsh <greta.yorsh@arm.com>
21232 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
21233 * config/arm/arm.c (arm_expand_epilogue): New function.
21234 * config/arm/arm.md (epilogue): Update condition and code.
21235 (sibcall_epilogue): Likewise.
21237 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21238 Sameera Deshpande <sameera.deshpande@arm.com>
21239 Greta Yorsh <greta.yorsh@arm.com>
21241 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
21242 * config/arm/arm.md (arm_addsi3) Add an alternative.
21244 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21245 Sameera Deshpande <sameera.deshpande@arm.com>
21246 Greta Yorsh <greta.yorsh@arm.com>
21248 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
21249 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
21250 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
21252 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21253 Sameera Deshpande <sameera.deshpande@arm.com>
21254 Greta Yorsh <greta.yorsh@arm.com>
21256 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
21257 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
21258 (pop_multiple_with_return, ldr_with_return) Likewise.
21259 * config/arm/predicates.md (pop_multiple_return) New special predicate.
21260 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
21261 * config/arm/arm.c (arm_output_multireg_pop) New function.
21262 (arm_emit_multi_reg_pop): New function.
21264 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
21266 * config/arm/arm.c (ldm_stm_operation_p): Require SP
21267 as base register for loads if SP is in the register list.
21269 2012-06-18 Richard Guenther <rguenther@suse.de>
21271 PR tree-optimization/53693
21272 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
21273 Reject operands with more than one use.
21275 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
21277 PR tree-optimization/53703
21278 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
21279 correctly set bb_for_def[12].
21281 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
21283 * config/vax/vax.h (VMS_TARGET): Remove.
21285 2012-06-18 Richard Guenther <rguenther@suse.de>
21287 * tree-vrp.c (extract_range_from_assert): Split out range
21289 (intersect_ranges): New function.
21290 (vrp_intersect_ranges): Likewise.
21292 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21294 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
21297 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
21299 * doc/md.texi: Document int iterators.
21300 * read-rtl.c (ints): New iterator group.
21301 (find_int): Int iterator group callback.
21302 (apply_int_iterator): Likewise.
21303 (apply_iterators): Traverse int iterator table and add all the used
21305 (initialize_iterators): Initialize data structures and callbacks for
21307 (read_rtx): Parse and read mappings for int iterators.
21308 (read_rtx_code): Record int iterator usage.
21310 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
21312 PR middle-end/53698
21313 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
21314 performing an addition.
21316 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21318 * output.h (split_double): Move prototype to rtl.h.
21319 (constructor_static_from_elts_p): Move prototype to tree.c.
21320 * rtl.h (split_double): Moved here from output.h.
21321 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
21322 * final.c (split_double): Move from here ...
21323 * rtlanal.c (split_double): ... to here.
21324 * expr.c: Do not include output.h.
21326 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21328 * cfglayout.h: Remove.
21329 * cfglayout.c: Remove.
21330 * function.h (struct function): Remove x_last_location field.
21331 * function.c: Do not include cfglayout.h.
21332 (expand_function_start): Do not call no-op force_next_line_note.
21333 (expand_function_end): Likewise.
21334 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
21335 (unlink_insn_chain): Moved here from cfglayout.c.
21336 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
21337 into_cfg_layout_mode, outof_cfg_layout_mode,
21338 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
21339 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
21340 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
21341 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
21342 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
21343 cfg_layout_finalize): Likewise.
21344 (rtl_can_remove_branch_p): Likewise.
21345 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
21346 (duplicate_insn_chain): Likewise.
21347 (force_next_line_note): Remove prototype.
21348 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
21349 (last_location): Remove #define to emit.x_last_location.
21350 (force_next_line_note): Remove no-op function.
21351 (init_emit): Don't set x_last_location.
21352 (block_locators_locs, block_locators_blocks, locations_locators_locs,
21353 locations_locators_vals, prologue_locator, epilogue_locator,
21354 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
21355 Move POD to here from cfglayout.c.
21356 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
21357 set_curr_insn_source_location, get_curr_insn_source_location,
21358 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
21359 locator_scope, insn_scope, locator_location, locator_line, insn_line,
21360 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
21361 * cfghooks.h: Remove double-include protection.
21362 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
21363 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
21364 * final.c: Do not include cfglayout.h.
21365 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
21366 (reemit_insn_block_notes): Likewise. Make static.
21367 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
21368 operation_could_trap_p, tree_could_throw_p): Move from here...
21369 * tree.h: ... to here.
21370 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
21371 * profile.c: Do not include cfghooks.h.
21372 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
21373 * modulo-sched.c: Likewise.
21374 * loop-unswitch.c: Do not include cfglayout.h.
21375 * sched-ebb.c: Likewise.
21376 * tracer.c: Likewise.
21378 * tree-vect-loop-manip.c: Likewise.
21379 * loop-init.c: Likewise.
21380 * dwarf2out.c: Likewise.
21381 * hw-doloop.c: Likewise.
21382 * loop-unroll.c: Likewise.
21383 * cfgcleanup.c: Likewise.
21384 * bb-reorder.c: Likewise.
21385 * sched-rgn.c: Likewise.
21386 * tree-cfg.c: Likewise.
21387 * config/alpha/alpha.c: Likewise.
21388 * config/spu/spu.c: Likewise.
21389 * config/sparc/sparc.c: Likewise.
21390 * config/sh/sh.c: Likewise.
21391 * config/c6x/c6x.c: Likewise.
21392 * config/ia64/ia64.c: Likewise.
21393 * config/rs6000/rs6000.c: Likewise.
21394 * config/score/score.c: Likewise.
21395 * config/mips/mips.c: Likewise.
21396 * config/bfin/bfin.c: Likewise.
21397 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
21398 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
21399 * config/spu/t-spu-elf (spu.o: $): Likewise.
21400 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
21402 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21404 * cfgloop.h: Do not include rtl.h.
21405 (enum iv_extend_code): New.
21406 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
21407 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
21408 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
21409 an IV_EXTEND_CODE to an RTX_CODE.
21410 (dump_iv_info): Update for rtx_iv field type change.
21411 (iv_constant): Likewise.
21412 (iv_subreg): Likewise.
21413 (iv_extend): Likewise.
21414 (iv_neg): Likewise.
21415 (iv_add): Likewise.
21416 (iv_mult): Likewise.
21417 (iv_shift): Likewise.
21418 (get_biv_step_1): Likewise.
21419 (get_biv_step): Likewise.
21420 (iv_analyze_biv): Likewise.
21421 (get_iv_value): Likewise.
21422 (shorten_into_mode): Likewise.
21423 (canonicalize_iv_subregs): Likewise.
21424 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
21425 of MAY_HAVE_DEBUG_INSNS.
21426 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
21427 * tree-ssa-loop-prefetch.c: Likewise.
21429 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21431 * expmed.c (ceil_log2): Move from here...
21432 * hwint.c: ... to here for older GCCs...
21433 * hwint.h: ... and here for newer GCCs.
21434 * rtl.h (ceil_log2): Remove prototype.
21436 * tree-phinodes.c: Do not include rtl.h.
21437 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
21439 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21441 * config/cris/cris.h (TARGET_ELF): Remove.
21442 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
21443 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
21444 (LOCAL_LABEL_PREFIX): Likewise.
21445 * config/cris/cris.c (cris_target_asm_named_section): Remove.
21446 (cris_option_override): Simpify using TARGET_ELF==1.
21447 (cris_file_start): Likewise.
21448 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
21450 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
21452 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
21454 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
21456 PR middle-end/53590
21457 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
21459 2012-06-15 Easwaran Raman <eraman@google.com>
21461 * passes.c (init_optimization_passes): Remove pass_call_cdce
21462 from its current position and insert after pass_dce.
21464 2012-06-15 Walter Lee <walt@tilera.com>
21466 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
21468 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
21470 * arm.c (note_invalid_constants): Don't return a result.
21471 (arm_memory_load_p): Delete function.
21472 (arm_const_double_rtx): Delete iterator variable i;
21473 (fp_immediate_constant): Likewise.
21474 (fp_const_from_val): Likewise.
21476 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
21478 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
21481 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
21482 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
21484 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
21486 * config/avr/avr.c (avr_default_expand_builtin): New function.
21487 (avr_expand_builtin): Use it.
21488 (avr_expand_unop_builtin): Remove.
21489 (avr_expand_binop_builtin): Remove.
21490 (avr_expand_triop_builtin): Remove.
21492 2012-06-15 Michael Matz <matz@suse.de>
21494 PR middle-end/38474
21495 * cfgexpand.c (add_alias_set_conflicts): Remove.
21496 (expand_used_vars): Don't call it.
21497 (aggregate_contains_union_type): Remove.
21498 * function.c (n_temp_slots_in_use): New static data.
21499 (make_slot_available, assign_stack_temp_for_type): Update it.
21500 (init_temp_slots): Zero it.
21501 (remove_unused_temp_slot_addresses): Use it for quicker removal.
21502 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
21504 2012-06-15 Michael Matz <matz@suse.de>
21506 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
21507 argument, don't emit assign statement if value is directly usable.
21508 (gimplify_expr): Adjust.
21510 2012-06-15 Michael Matz <matz@suse.de>
21512 * gimplify.c (gimplify_modify_expr): Fold generated statements.
21513 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
21515 2012-06-15 Richard Guenther <rguenther@suse.de>
21517 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
21518 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
21519 we assert for in set_value_range to VR_VARYING.
21521 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
21523 * arm.md (addsf3, adddf3): Use s_register_operand.
21524 (subsf3, subdf3): Likewise.
21525 (mulsf3, muldf3): Likewise.
21526 (difsf3, divdf3): Likewise.
21527 (movsfcc, movdfcc): Likewise.
21528 * predicates.md (f_register_operand): Delete.
21529 (arm_float_rhs_operand): Delete.
21530 (arm_float_add_operand): Delete.
21531 (arm_float_compare_operand): Use s_register_operand when
21533 (cirrus_register_operand): Delete.
21534 (cirrus_fp_register): Delete.
21535 (cirrus_shift_const): Delete.
21536 (cmpdi_operand): Remove Maverick support.
21537 * constraints.md (f, v, H): Delete constraints.
21538 (G): Update documentation.
21539 * arm.c (fp_consts_inited): Convert to bool.
21540 (strings_fp): Delete.
21541 (values_fp): Delete.
21542 (value_fp0): New variable.
21543 (init_fp_table): Simplify logic.
21544 (arm_const_double_rtx): Likewise.
21545 (fp_immediate_constant): Likewise.
21546 (fp_const_from_val): Likewise.
21547 (neg_const_double_rtx_ok_for_fpa): Delete.
21548 * doc/md.texi (ARM constraints): Update documentation.
21550 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
21552 PR tree-optimization/53636
21553 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
21554 stride when doing basic-block vectorization.
21556 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21558 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
21559 into VEC_PERM_EXPR.
21561 2012-06-15 Jakub Jelinek <jakub@redhat.com>
21563 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
21564 allocate and free bbs array for the SLP case.
21566 PR tree-optimization/51581
21567 * expr.h (choose_multiplier): New prototype.
21568 * expmed.c (choose_multiplier): No longer static.
21569 Change multiplier_ptr from rtx * to UHWI *.
21570 (expand_divmod): Adjust callers.
21571 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
21572 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
21573 argument to new_stmt_vec_info. Attempt to optimize also divisions
21574 by non-pow2 constants if integer vector division isn't supported.
21575 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
21576 don't look at pattern stmts and sequences.
21578 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
21580 PR middle-end/53590
21581 * common.opt (-fdelete-dead-exceptions): New switch.
21582 * doc/invoke.texi (Code Gen Options): Document it.
21583 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
21584 insn_could_throw_p predicate. Do not skip an insn that could throw
21585 if dead exceptions can be deleted.
21586 (insn_live_p): Likewise, do not return true in that case.
21587 * dce.c (can_alter_cfg): New flag.
21588 (deletable_insn_p): Do not return false for an insn that can throw if
21589 the CFG can be altered and dead exceptions can be deleted.
21590 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
21591 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
21592 predicate. Do not preserve an insn that could throw if dead exceptions
21594 * function.h (struct function): Add can_delete_dead_exceptions flag.
21595 * function.c (allocate_struct_function): Set it.
21596 * lto-streamer-in.c (input_struct_function_base): Stream it.
21597 * lto-streamer-out.c (input_struct_function_base): Likewise.
21598 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
21599 statement that could throw as necessary if dead exceptions can be
21602 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
21604 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
21606 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
21609 * config/sh/sh.md: Add peephole for swapbsi2.
21610 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
21612 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
21614 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
21615 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
21617 2012-06-14 Jakub Jelinek <jakub@redhat.com>
21620 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
21622 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
21624 * arm.c (arm_cirrus_insn_p): Delete.
21625 (cirrus_reorg): Delete.
21626 (arm_reorg): Don't call cirrus_reorg.
21627 (arm_final_prescan_insn_p): Don't check for cirrus insns.
21628 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
21629 (adddi3, subdi3): Remove Maverick support.
21630 (arm_adddi3): Likewise.
21631 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
21632 (addsf3, adddf3): Likewise.
21633 (subsf3, subdf3): Likewise.
21634 (mulsf3, muldf3): Likewise.
21635 (ashldi3, ashrdi3, lshrdi3): Likewise.
21636 (floatsisf2, floatsidf2): Likewise.
21637 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
21638 (arm_movdi, thumb1_movdi_insn): Likewise.
21639 (arm_cmpdi_insn): Likewise.
21640 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
21641 (cirrus.md): Don't include.
21642 * cirrus.md: Delete file.
21643 * t-arm (MD_INCLUDES): Remove cirrus.md.
21645 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
21647 * dwarf2out.c (function_possibly_abstracted_p): New static function.
21648 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
21649 cgraph_function_possibly_inlined_p.
21650 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
21651 (process_scope_var): Do not emit concrete instances of abstracted
21652 nested functions from here.
21653 (gen_decl_die): Emit the abstract instance if the function is possibly
21654 abstracted and not only possibly inlined.
21655 (dwarf2out_finish): Find the first non-abstract parent instance and
21656 attach concrete instances on the limbo list to it.
21658 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
21660 * arm.md (divsf3, divdf3): Remove FPA support.
21661 (negsf2, negdf2): Likewise.
21662 (sqrtsf2, sqrtdf2): Likewise.
21663 (movdfcc): Likewise.
21664 (modsf3, moddf3, movxf): Delete.
21665 (push_fp_multi): Delete.
21666 (fpa.md): Don't include it.
21667 * fpa.md: Delete file.
21668 * t-arm (MD_INCLUDES): Remove fpa.md.
21670 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
21672 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
21673 (cost_for_stmt): Remove decl.
21674 (vect_get_single_scalar_iteration_cost): Correct typo in name.
21675 * tree-vect-loop.c (vect_get_cost): Remove.
21676 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
21677 vect_get_stmt_cost rather than vect_get_cost.
21678 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
21680 (vect_estimate_min_profitable_iters): Correct typo in call to
21681 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
21682 than vect_get_cost.
21683 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
21685 (vect_model_induction_cost): Likewise.
21686 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
21687 typo in call to vect_get_single_scalar_iteration_cost.
21688 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
21689 (cost_for_stmt): Remove unnecessary function.
21690 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
21692 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
21694 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
21695 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
21696 * arm-tables.opt: Regenerated.
21697 * doc/invoke.texi: Remove references to deleted options.
21699 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
21701 * config/h8300/genmova.sh: Modified to add offset bits of
21702 mova/Sz assembly instruction for memory access.
21703 * config/h8300/h8300.c: Likewise.
21704 * config/h8300/mova.md: Likewise.
21706 2012-06-12 Christian Bruel <christian.bruel@st.com>
21709 * config/sh/sh.c (sh_option_override): Don't force
21710 flag_omit_frame_pointer and maccumulate_outgoing_args.
21711 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
21713 2012-06-14 Richard Guenther <rguenther@suse.de>
21715 * tree-vrp.c (VR_INITIALIZER): New define.
21716 (ranges_from_anti_range): New function.
21717 (extract_range_from_binary_expr_1): Decompose operations on
21718 VR_ANTI_RANGEs to operations on VR_RANGE.
21719 (extract_range_from_unary_expr_1): Likewise.
21720 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
21721 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
21722 extract_range_from_cond_expr, adjust_range_with_scev,
21723 vrp_visit_assignment_or_call, vrp_visit_phi_node,
21724 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
21726 2012-06-13 Richard Henderson <rth@redhat.com>
21728 * hwint.h (HOST_WIDEST_INT_C): New.
21729 (HOST_WIDE_INT_C): New.
21730 (HOST_WIDE_INT_1): Use it.
21731 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
21733 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
21736 * var-tracking.c: Include alias.h.
21737 (overlapping_mems): New struct.
21738 (drop_overlapping_mem_locs): New.
21739 (clobber_overlapping_mems): New.
21740 (var_mem_delete_and_set, var_mem_delete): Call it.
21741 (val_bind): Likewise, but only if modified.
21742 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
21743 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
21745 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
21748 * var-tracking.c (loc_exp_dep_pool): New.
21749 (vt_emit_notes): Create and release the pool.
21750 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
21751 (emit_notes_in_bb): Likewise.
21752 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
21753 (notify_dependents_of_changed_value): Likewise.
21754 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
21755 variables don't have a VAR_LOC_DEP_LST.
21756 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
21757 VALUEs or MEMs of VALUEs.
21759 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
21763 * dce.c (word_dce_process_block): Insert debug temps only if the
21764 insn is not marked.
21765 (dce_process_block): Likewise, and if debug.used is not empty,
21766 and only after iterating over all DEFs that might mark the insn.
21768 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
21770 * common.opt (ftree-coalesce-inlined-vars): New.
21771 (ftree-coalesce-vars): New.
21772 * doc/invoke.texi: Document them.
21773 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
21776 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
21778 * read-rtl.c (mapping): Remove index field. Add current_value field.
21779 Define heap vectors.
21780 (iterator_group): Fix long line. Remove num_builtins field and
21781 uses_iterator fields. Make apply_iterator take a void * parameter.
21782 (iterator_use, atttribute_use): New structures.
21783 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
21784 (current_iterators, iterator_uses, attribute_uses): New variables.
21785 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
21786 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
21787 (map_attr_string, apply_iterator_to_string): Remove iterator
21788 and value parameters. Look through all current iterator values
21789 for a matching attribute.
21790 (mode_attr_index, apply_mode_maps): Delete.
21791 (apply_iterator_to_rtx): Replace with...
21792 (copy_rtx_for_iterators): ...this new function.
21793 (uses_iterator_p, apply_iterator_traverse): Delete.
21794 (apply_attribute_uses, add_current_iterators, apply_iterators): New
21796 (add_mapping): Remove index field. Set current_value field.
21797 (initialize_iterators): Don't set num_builtins and uses_iterator_p
21799 (find_iterator): Delete.
21800 (record_iterator_use, record_attribute_use): New functions.
21801 (record_potential_iterator_use): New function.
21802 (check_code_iterator): Remove handling of bellwether codes.
21803 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
21804 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
21805 parameter. Use the first code iterator value instead of the
21806 bellwether_codes array. Use record_potential_iterator_use for modes.
21808 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
21811 * config/sh/sh.md (bswapsi2): New expander.
21812 (swapbsi2): New insn.
21814 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
21817 * config/i386/i386.c (ix86_tune_cost): New variable.
21818 (ix86_option_override_internal): Set ix86_tune_cost. Use
21819 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
21820 l1_cache_size and l2_cache_size.
21822 2012-06-13 Richard Guenther <rguenther@suse.de>
21824 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
21825 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
21826 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
21827 VR_ANTI_RANGE with VR_ANTI_RANGE.
21829 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
21831 * config.gcc (unsupported): Move obsoleted FPA-based configurations
21833 (obsolete): ... here.
21834 (arm*-*-freebsd*): Remove.
21835 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
21836 (arm*-*-uclinux*): Likewise.
21837 (arm*-*-ecos-elf): Remove.
21838 (arm*-*-rtems*): Remove.
21839 (arm*-*-elf): Remove.
21840 (arm*-wince-pe*): Remove.
21841 (arm, --with-fpu): Remove support for fpa and Maverick variants.
21842 * arm/ecos-elf.h: Delete.
21843 * arm/t-strongarm-elf: Delete.
21844 * arm/rtems-elf.h: Delete.
21845 * arm/wince-pe.h: Delete.
21846 * arm/pe.c: Delete.
21847 * arm/pe.h: Delete.
21848 * arm/t-wince-pe: Delete.
21850 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
21852 PR tree-optimization/53647
21853 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
21854 targets with no defined cache line size.
21856 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
21858 * targhooks.c (default_builtin_vectorized_conversion): Handle
21859 vec_construct, using vectype to base cost on subparts.
21860 * target.h (enum vect_cost_for_stmt): Add vec_construct.
21861 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
21862 instead of scalar_to-vec.
21863 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
21864 vec_construct in same way as default for now.
21865 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
21866 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
21867 Handle vec_construct, including special case for 32-bit loads.
21869 2012-06-13 Xinyu Qi <xyqi@marvell.com>
21871 * config/arm/arm.c (FL_IWMMXT2): New define.
21872 (arm_arch_iwmmxt2): New variable.
21873 (arm_option_override): Enable use of iWMMXt with VFP.
21874 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
21875 Thumb mode. Set arm_arch_iwmmxt2.
21876 (arm_expand_binop_builtin): Accept VOIDmode op.
21877 (enum arm_builtins): Revise built-in fcode.
21878 (IWMMXT2_BUILTIN): New define.
21879 (IWMMXT2_BUILTIN2): Likewise.
21880 (iwmmx2_mbuiltin): Likewise.
21881 (builtin_description bdesc_2arg): Revise built in declaration.
21882 (builtin_description bdesc_1arg): Likewise.
21883 (arm_init_iwmmxt_builtins): Revise built in initialization.
21884 (arm_expand_builtin): Revise built in expansion.
21885 (arm_output_iwmmxt_shift_immediate): New function.
21886 (arm_output_iwmmxt_tinsr): Likewise.
21887 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
21888 (arm_output_iwmmxt_tinsr): Likewise.
21889 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
21890 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
21891 (rorv4hi3, rorv2si3, rordi3): Likewise.
21892 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
21893 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
21894 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
21895 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
21896 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
21897 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
21898 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
21899 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
21900 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
21901 (ror<mode>3, ror<mode>3_di): Likewise.
21902 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
21903 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
21904 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
21905 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
21906 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
21907 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
21908 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
21909 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
21910 (All instruction patterns): Add wtype attribute.
21911 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
21912 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
21913 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
21914 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
21915 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
21916 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
21917 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
21918 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
21919 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
21920 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
21921 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
21922 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
21923 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
21924 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
21925 (iwmmxt2.md): Include.
21926 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
21927 (TARGET_IWMMXT2): New define.
21928 (TARGET_REALLY_IWMMXT2): Likewise.
21929 (arm_arch_iwmmxt2): Declare.
21930 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
21931 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
21932 Use C name-mangling for intrinsics.
21933 (__v8qi): Redefine.
21934 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
21935 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
21936 (_m_from_int): Likewise.
21937 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
21938 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
21939 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
21940 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
21941 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
21942 (_mm_tbcst_pi32): Likewise.
21943 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
21944 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
21945 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
21946 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
21947 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
21948 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
21949 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
21950 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
21951 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
21952 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
21953 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
21954 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
21955 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
21956 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
21957 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
21958 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
21959 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
21960 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
21961 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
21962 (_m_to_int): New define.
21963 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
21964 * config/arm/arm-arches.def (iwmmxt2): Likewise.
21965 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
21967 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
21968 (arch): Add "iwmmxt2".
21969 (arch_enabled): Handle "iwmmxt2".
21970 (wtype): New attribute.
21971 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
21972 (UNSPEC_WALIGNI): New unspec.
21973 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
21974 * config/arm/iterators.md (VMMX2): New mode_iterator.
21975 * config/arm/marvell-f-iwmmxt.md: New file.
21976 * config/arm/iwmmxt2.md: New file.
21978 2012-06-12 Jakub Jelinek <jakub@redhat.com>
21983 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
21984 if type isn't complete.
21986 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
21988 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
21990 2012-06-12 Richard Henderson <rth@redhat.com>
21992 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
21993 iterator instead of INT.
21995 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
21997 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
21998 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
22000 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
22001 (tree_ssa_phiopt): Call gate_hoist_loads.
22002 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
22003 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
22004 hoist_adjacent_loads.
22005 (local_mem_dependence): New function.
22006 (hoist_adjacent_loads): Likewise.
22007 (gate_hoist_loads): Likewise.
22008 * common.opt (fhoist-adjacent-loads): New switch.
22009 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
22011 2012-06-12 Michael Matz <matz@suse.de>
22013 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
22014 (nonoverlapping_memrefs_p): Don't call it here ...
22015 (true_dependence_1): ... but here.
22017 2012-06-12 Richard Guenther <rguenther@suse.de>
22019 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
22020 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
22021 and MEM_SIZE only refines it. Reflect that and be less conservative
22022 if either of the latter is not known.
22024 2012-06-12 Jakub Jelinek <jakub@redhat.com>
22026 PR rtl-optimization/53589
22027 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
22028 discovery even when e->dest != target. If any LABEL_REF points
22029 to e->dest label, redirect it to target's label.
22031 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
22033 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
22034 condition for generating REG_FRAME_RELATED_EXPR note.
22035 (pop): Add code for generating REG_CFA_RESTORE,
22036 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
22037 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
22038 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
22040 2012-06-11 Richard Henderson <rth@redhat.com>
22042 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
22043 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
22045 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
22047 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
22049 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
22050 Mention that this hook needs to be defined for native TLS.
22051 * doc/tm.texi: Regenerate.
22053 2012-06-11 Mike Stump <mikestump@comcast.net>
22055 * emit-rtl.c (init_emit_once): Iterate through the
22056 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
22057 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
22058 all the MIN_MODE_PARTIAL_INT modes anymore.
22060 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
22062 * config/mips/mips-tables.opt (xlp): Fix merge typo.
22064 2012-06-11 Roland McGrath <mcgrathr@google.com>
22066 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
22067 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
22068 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
22071 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
22074 * config/sh/sh.md (fmasf4): New expander.
22075 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
22076 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
22077 * config/sh/sh.opt (mfused-madd): Remove.
22078 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
22079 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
22080 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
22082 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
22085 2012-06-11 Richard Henderson <rth@redhat.com>
22087 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
22089 2012-06-11 Richard Guenther <rguenther@suse.de>
22091 PR middle-end/53470
22092 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
22093 replace it with the first non-BLOCK context.
22095 2012-06-11 Richard Guenther <rguenther@suse.de>
22097 * alias.c (aliases_everything_p): Remove.
22098 (DIFFERENT_ALIAS_SETS_P): Likewise.
22099 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
22100 Do not use aliases_everything_p or special-case ANDs. Do not
22101 special-case BLKmode moves.
22102 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
22105 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
22107 Fix CRIS build errors with --enable-build-with-cxx.
22108 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
22109 variable "and" to "andop".
22110 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
22111 temporary variable for memory model, passing C++-type-correct
22112 parameter type to expand_mem_thread_fence.
22113 ("atomic_compare_and_swap<mode>"): Ditto.
22115 2012-06-09 Richard Henderson <rth@redhat.com>
22118 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
22119 (pass_jump): Rename from pass_jump2.
22120 (execute_jump2, pass_jump2): New.
22121 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
22122 perform cfg cleanup here. Move the test of PUSH_ROUNDING
22123 and ACCUMULATE_OUTGOING_ARGS test...
22124 (gate_handle_stack_adjustments): ... here.
22125 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
22126 Place new pass_jump2 after pass_stack_adjustments.
22127 * tree-pass.h (pass_jump): Declare.
22129 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
22131 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
22134 2012-06-08 Richard Henderson <rth@redhat.com>
22137 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
22138 note to a clobber insn when no other insn is available.
22140 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
22142 * config/avr/avr.c (avr_case_values_threshold): Return 7.
22144 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
22146 * genhooks.c (main): Set progname.
22147 (emit_documentation): Remove variable found_start, always bail out
22148 when a place is missing.
22149 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
22151 2012-06-07 Jakub Jelinek <jakub@redhat.com>
22153 PR middle-end/53580
22154 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
22155 call walk_gimple_seq_mod instead of walk_gimple_seq.
22156 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
22157 scan_omp_for, scan_omp_sections, scan_omp_single,
22158 execute_lower_omp): Adjust callers.
22159 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
22160 returns false, replace stmt with GIMPLE_NOP.
22161 (check_omp_nesting_restrictions): Instead of issuing warnings,
22162 issue errors and return false if any errors were reported.
22164 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
22166 * doc/invoke.texi (fconserve-space): Remove documentation.
22168 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
22170 * config/rs6000/rs6000-tables.opt: Regenerated.
22172 2012-06-06 Richard Guenther <rguenther@suse.de>
22174 PR tree-optimization/53081
22175 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
22176 (adjacent_dr_p): ... this and make it work for reads, too.
22177 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
22178 (struct partition_s): Change main_stmt to main_dr, add
22179 secondary_dr member.
22180 (build_size_arg_loc): Change to date data-reference and not
22182 (build_addr_arg_loc): New function split out from ...
22183 (generate_memset_builtin): ... here. Use it and simplify.
22184 (generate_memcpy_builtin): New function.
22185 (generate_code_for_partition): Adjust.
22186 (classify_partition): Streamline pattern detection. Detect memcpy.
22187 (ldist_gen): Adjust.
22188 (tree_loop_distribution): Adjust seed statements for memcpy
22191 2012-06-06 Matt Turner <mattst88@gmail.com>
22193 * config/arm/mmintrin.h (_mm_empty): New.
22196 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
22198 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
22199 * common.opt (fsched-pressure-algorithm=): Remove.
22200 * flag-types.h (sched_pressure_algorithm): Move to...
22201 * sched-int.h (sched_pressure_algorithm): ...here.
22202 * params.def (sched-pressure-algorithm): New param.
22203 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
22204 * common/config/s390/s390-common.c (s390_option_optimization_table):
22205 Remove OPT_fsched_pressure_algorithm_ entry.
22206 * config/s390/s390.c (s390_option_override): Set a default value for
22207 PARAM_SCHED_PRESSURE_ALGORITHM.
22209 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
22212 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
22213 doing an unsigned compare, make sure the second argument is not a
22215 (rs6000_emit_cmove): Don't allow floating point comparisons when
22216 generating ISEL moves.
22218 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
22220 * config/rs6000/e5500.md: New file.
22221 * config/rs6000/e6500.md: New file.
22222 * config/rs6000/rs6000.c (processor_costs): Add new costs for
22224 (rs6000_option_override_internal): Altivec and Spe options not
22225 allowed with e5500. Spe options not allowed with e6500. Increase
22226 move inline limit for e5500 and e6500. Disable string instructions
22227 for e5500 and e6500. Enable branch targets alignment for e5500 and
22228 e6500. Initialize rs6000_cost for e5500 and e6500.
22229 (rs6000_adjust_cost): Add extra scheduling cycles between compare
22230 and brnach for e5500 and e6500.
22231 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
22232 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
22234 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
22235 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
22237 Include e5500.md and e6500.md.
22238 * config/rs6000/rs6000-opt.h (processor_type): Add
22239 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
22240 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
22241 (powerpc*-*-*): Add new cores e5500, e6500.
22242 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
22244 2012-06-05 Richard Guenther <rguenther@suse.de>
22246 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
22248 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
22251 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
22252 is used for x86_64-*-*.
22254 2012-06-05 Richard Guenther <rguenther@suse.de>
22256 PR tree-optimization/30442
22257 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
22258 vectorization stop analysis at the first stmt we cannot compute
22259 a data-reference for instead of giving up completely.
22261 2012-06-05 Richard Guenther <rguenther@suse.de>
22263 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
22264 (partition_alloc): Initialize it.
22265 (partition_has_writes): New function.
22266 (rdg_flag_uses): Adjust.
22267 (rdg_flag_vertex): Likewise.
22268 (rdg_flag_vertex_and_dependent): Likewise.
22269 (rdg_flag_loop_exits): Likewise.
22270 (build_rdg_partition_for_component): Likewise.
22271 (rdg_build_partitions): Likewise.
22273 2012-06-05 Richard Guenther <rguenther@suse.de>
22275 PR tree-optimization/53081
22276 * tree-loop-distribution.c (generate_memset_builtin): Handle all
22277 kinds of byte-sized stores.
22278 (classify_partition): Likewise.
22279 (tree_loop_distribution): Adjust seed statements used for
22280 !flag_tree_loop_distribution.
22282 2012-06-05 Alan Modra <amodra@gmail.com>
22284 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
22285 (rs6000_emit_prologue): Ensure register used for inline saves
22286 of vector regs is not the static chain register. Revise comment.
22288 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
22290 * doc/md.texi (Standard Pattern Names For Generation): Document
22293 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
22296 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
22298 2012-06-04 Jason Merrill <jason@redhat.com>
22300 * dwarf2out.c (is_unit_die): New.
22301 (copy_declaration_context, copy_ancestor_tree): Use it.
22302 (copy_decls_walk): Likewise.
22304 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
22307 * doc/invoke.texi (Wenum-compare): Update documentation.
22309 2012-06-04 Dodji Seketeli <dodji@redhat.com>
22311 PR preprocessor/53463
22312 * parser.c (cp_parser_assignment_expression): Use the location
22313 for the '=' as the default location for the expression.
22315 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
22318 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
22320 (altivec_stvlxl): Ditto.
22321 (altivec_stvrx): Ditto.
22322 (altivec_stvrxl): Ditto.
22324 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
22326 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
22327 (ira_uniform_class_p): New macro.
22329 * ira.c (setup_uniform_class_p): New function.
22330 (setup_allocno_and_important_classes): Call the function.
22331 (print_unform_and_important_classes): New function.
22332 (print_classes): Rename to print_translated_classes.
22333 (ira_debug_allocno_classes): Add call of
22334 print_unform_and_important_classes.
22336 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
22337 classes instead of pressure classes.
22339 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
22341 PR middle-end/47530
22342 * trans-mem.c (expand_block_edges): Do not skip the first
22343 statement when resetting the BB.
22345 2012-06-04 Richard Guenther <rguenther@suse.de>
22347 * tree-data-ref.c (stores_from_loop): Remove.
22348 (stmt_with_adjacent_zero_store_dr_p): Likewise.
22349 (stores_zero_from_loop): Likewise.
22350 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
22351 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
22352 (adjacent_store_dr_p): New function.
22353 * tree-loop-distribution.c (generate_memset_builtin): Pass
22354 the RDG, use the already available data-reference.
22355 (generate_code_for_partition): Pass down RDG.
22356 (classify_partition): Inline parts of the former
22357 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
22358 (ldist_gen): Remember if there was any detected builtin and
22359 do less work if not and flag_tree_loop_distribution is not set.
22360 (tree_loop_distribution): Inline and fuse stores_from_loop
22361 and stores_zero_from_loop here.
22363 2012-06-04 Richard Guenther <rguenther@suse.de>
22365 PR middle-end/53471
22366 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
22367 create new assembler names.
22369 2012-06-04 Richard Guenther <rguenther@suse.de>
22371 * tree-data-ref.c (struct rdg_vertex_info): Remove.
22372 (rdg_vertex_for_stmt): Simplify using gimple_uid.
22373 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
22374 hashtable. Record stmt data-references.
22375 (hash_stmt_vertex_info): Remove.
22376 (eq_stmt_vertex_info): Likewise.
22377 (hash_stmt_vertex_del): Likewise.
22378 (build_empty_rdg): Simplify.
22379 (build_rdg): Adjust.
22380 (free_rdg): Likewise.
22381 (ref_base_address): Remove.
22382 (have_similar_memory_accesses): Likewise.
22383 * tree-data-ref.h (create_rdg_vertices): Remove.
22384 (struct rdg_vertex): Add datarefs member.
22385 (RDGV_DATAREFS): New define.
22386 (RDG_DATAREFS): Likewise.
22387 (have_similar_memory_accesses): Remove.
22388 (rdg_has_similar_memory_accesses): Likewise.
22389 * tree-loop-distribution.c (ref_base_address): Re-implement here.
22390 (similar_memory_accesses): Re-implement using existing data-references.
22391 (tree_loop_distribution): Initialize stmt uids for the stmt to
22393 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
22394 access stmt vinfo for stmts in loop.
22396 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
22399 * config/m68k/m68k.md ("tablejump"): Fix check for
22400 CASE_VECTOR_PC_RELATIVE.
22402 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
22404 * output.h (merge_weak, assemble_alias,
22405 initializer_constant_valid_p,
22406 initializer_constant_valid_for_bitfield_p): Move protos from here...
22407 * tree.h: ... to here.
22408 * cgraphclones.c: Do not include output.h.
22409 * gimplify.c: Likewise.
22410 * reload.c: Likewise.
22411 * recog.c: Likewise.
22412 * tree-ssa-loop-ivopts.c: Likewise.
22413 * tree-switch-conversion.c: Likewise.
22414 * c-parser.c: Likewise.
22415 * c-typeck.c: Likewise.
22416 * Makefile.in: Fix dependencies.
22418 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
22421 * config/avr/avr-stdint.h: New file.
22422 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
22425 2012-06-04 Jakub Jelinek <jakub@redhat.com>
22427 PR tree-optimization/53550
22428 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
22429 is POINTER_TYPE_P, use sizetype as step type instead of type.
22431 2012-06-04 Richard Guenther <rguenther@suse.de>
22433 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
22434 (ref_base_address_1): Likewise.
22435 (remove_similar_memory_refs): Likewise.
22436 * tree-data-ref.h (remove_similar_memory_refs): Remove.
22437 * tree-loop-distribution.c (classify_partition): Do not classify
22438 as builtin if -ftree-loop-distribute-patterns is not enabled.
22439 (fuse_partitions_with_similar_memory_accesses): Inline ...
22440 (ldist_gen): ... here. Fuse all non-builtin partitions if
22441 -ftree-loop-distribution is not enabled. Properly return
22442 the number of created partitions. Do not update SSA form here but ...
22443 (tree_loop_distribution): ... once here for the whole function.
22444 Only walk innermost loops, constrain loops we consider here
22445 further. Do not call remove_similar_memory_refs.
22446 (distribute_loop): Do not check number of loop nodes here.
22448 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
22450 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
22452 2012-06-03 Martin Jambor <mjambor@suse.cz>
22454 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
22455 (ipa_get_jf_known_type_base_type): Likewise.
22456 (ipa_get_jf_known_type_component_type): Likewise.
22457 (ipa_get_jf_constant): Likewise.
22458 (ipa_get_jf_pass_through_formal_id): Likewise.
22459 (ipa_get_jf_pass_through_operation): Likewise.
22460 (ipa_get_jf_ancestor_offset): Likewise.
22461 (ipa_get_jf_ancestor_type): Likewise.
22462 (ipa_get_jf_ancestor_formal_id): Likewise.
22463 (ipa_get_jf_member_ptr_pfn): Likewise.
22464 * ipa-prop.c (ipa_set_jf_known_type): New function.
22465 (ipa_set_jf_constant): Likewise.
22466 (ipa_set_jf_simple_pass_through): Likewise.
22467 (ipa_set_jf_arith_pass_through): Likewise.
22468 (ipa_set_ancestor_jf): Likewise.
22469 (fill_member_ptr_cst_jump_function): Moved up and renamed to
22470 ipa_set_jf_member_ptr_cst.
22471 (detect_type_change_1): Use the new jump function creation functions.
22472 (compute_complex_assign_jump_func): Likewise.
22473 (compute_complex_ancestor_jump_func): Likewise.
22474 (compute_known_type_jump_func): Likewise.
22475 (compute_scalar_jump_functions): Likewise.
22476 (compute_pass_through_member_ptrs): Likewise.
22477 (determine_cst_member_ptr): Likewise.
22478 (combine_known_type_and_ancestor_jfs): Likewise.
22479 (try_make_edge_direct_simple_call): Likewise.
22480 (try_make_edge_direct_virtual_call): Likewise.
22481 (update_indirect_edges_after_inlining): Likewise.
22482 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
22483 access functions. Incorporat NOP_EXPR and BINFO handling from its
22485 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
22486 which was in its callers.
22487 (ipa_value_from_jfunc): Use jump function access functions. Some
22488 functionality moved to functions above.
22489 (propagate_vals_accross_ancestor): Likewise.
22490 (propagate_vals_accross_pass_through): Use jump function access
22492 (propagate_accross_jump_function): Likewise.
22493 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
22495 (inline_merge_summary): Likewise.
22497 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22499 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
22500 * config/pa/pa.c (pa_attr_length_millicode_call): Use
22501 MAX_PCREL17F_OFFSET instead of fixed offset.
22502 (pa_attr_length_call): Likewise.
22503 (pa_attr_length_indirect_call): Likewise.
22505 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
22508 * config/sh/sh.opt (mfsca, mfsrra): New options.
22509 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
22511 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
22512 (sinssf2, cossf2): Fold expanders to ...
22513 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
22514 TARGET_FSCA condition.
22515 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
22517 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
22518 -mno-fsca, -mfsrra, -mno-fsrra.
22520 2012-06-03 Matt Turner <mattst88@gmail.com>
22522 * config/mips/4600.md (r4700_imul_si): New.
22523 (r4700_imul_di): New.
22524 (r4700_fmul_single): New.
22525 (r4700_fmul_double): New.
22526 * config/mips/mips-cpus.def: Add r4700.
22527 * config/mips/mips.c: Likewise.
22528 * config/mips/mips.md: Likewise.
22529 * config/mips/mips-tables.opt: Regenerate.
22531 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
22533 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
22534 new function sparc_initial_elimination_offset.
22535 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
22537 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
22540 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
22542 * expmed.c (expand_mult, choose_multiplier): Change
22543 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
22544 * expr.c (convert_modes): Likewise.
22545 * explow.c (plus_constant): Likewise.
22546 * fixed-value.c (fixed_saturate1, fixed_saturate2)
22547 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
22548 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
22549 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
22550 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
22551 (do_fixed_shift, fixed_convert, fixed_convert)
22552 (fixed_convert_from_int, fixed_convert_from_int)
22553 (fixed_convert_from_real): Likewise.
22554 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
22555 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
22556 * varasm.c (output_constructor_bitfield): Likewise.
22557 * tree-vrp.c (register_edge_assert_for_2): Likewise.
22558 * double-int.c (rshift_double, lshift_double): Likewise.
22559 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
22561 * simplify-rtx.c (mode_signbit_p)
22562 (simplify_const_unary_operation, simplify_binary_operation_1)
22563 (simplify_immed_subreg): Likewise.
22564 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
22565 * tree-vect-generic.c (build_replicated_const): Likewise.
22566 * dbxout.c (stabstr_O): Likewise.
22567 * emit-rtl.c (immed_double_int_const, immed_double_const)
22568 (gen_lowpart_common, init_emit_once): Likewise.
22569 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
22570 (widest_int_cst_value, upper_bound_in_type): Likewise.
22571 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
22572 (fixup_unsigned_type): Likewise.
22573 * real.c (real_to_integer2, real_from_integer): Likewise.
22574 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
22575 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
22577 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
22579 PR middle-end/53501
22580 * fold-const.c (fold_binary_loc): Refine previous change.
22582 2012-06-01 Olivier Hainque <hainque@adacore.com>
22584 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
22585 the "do {" part of the do-while(0) loop.
22587 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22589 * config/i386/i386.c (x86_sched_reorder): New function.
22590 Added new function x86_sched_reorder.
22592 2012-06-01 Richard Guenther <rguenther@suse.de>
22594 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
22596 (classify_partition): Likewise.
22598 2012-06-01 Richard Guenther <rguenther@suse.de>
22600 * tree-loop-distribution.c (enum partition_kind): New enum.
22601 (struct partition_s): Add kind and main_stmt members.
22602 (partition_alloc): Initialize kind to PKIND_NORMAL.
22603 (partition_builtin_p): New function.
22604 (copy_loop_before): Remove failure path and assert instead.
22605 (generate_loops_for_partition): Likewise.
22606 (generate_memset_zero): Fold into ...
22607 (generate_memset_builtin): ... this.
22608 (classify_partition): New function with code from
22609 can_generate_builtin and generate_builtin.
22610 (generate_builtin): Remove.
22611 (can_generate_builtin): Likewise.
22612 (fuse_partitions_with_similar_memory_accesses): Call
22613 partition_builtin_p instead of can_generate_builtin.
22614 (rdg_build_partitions): Do not call
22615 fuse_partitions_with_similar_memory_accesses here...
22616 (ldist_gen): ... but here after classifying all partitions.
22617 Remove failure path of generate_code_for_partition.
22618 (generate_code_for_partition): Generate code according
22619 to partition classification.
22621 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
22622 Jonathan Wakely <jwakely.gcc@gmail.com>
22625 * doc/invoke.texi (Warning Options): Explain purpose and differences
22626 between -Wmissing-prototypes and -Wmissing-declarations.
22628 2012-06-01 Christian Bruel <christian.bruel@st.com>
22630 * gcc.c (save_switch): Add user_p parameter.
22631 (read_specs): Likewise.
22632 (set_specs): Likewise.
22633 (validate_switches): Likewise.
22634 (validate_switches_from_spec): Likewise.
22635 (validate_all_switches): Pass on user_p parameter.
22636 (struct spec_list): Add user_p field.
22637 (struct switchstr): Add known field.
22638 (save_switch): Add known parameter.
22639 (INIT_STATIC_SPEC): Initialize user_p;
22640 (driver_unknown_option_callbac): call save_switch if
22641 OPT_SPECIAL_unknown.
22642 (driver_handle_option): Propagate OPT_specs.
22643 (do_spec_1): Set validated only if known.
22644 (check_live_switch): Likewise.
22645 (validate_switches): Set validated if known or user_spec.
22647 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
22649 Add CRIS atomic patterns for 1, 2, and 4 bytes.
22650 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
22651 * config/cris/cris-protos.h: Declare it.
22652 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
22653 (TARGET_DEFAULT): Add alignment by 32.
22654 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
22655 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
22656 TARGET_CPU_DEFAULT == 32.
22657 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
22658 * config/cris/cris.md: Include sync.md. Avoid allocating specific
22659 numbers by replacing the define_constants for all UNSPECs with the
22660 equivalent define_c_enum construct.
22661 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
22662 * config/cris/sync.md: New file.
22664 2012-05-31 Matt Turner <mattst88@gmail.com>
22666 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
22667 (r4600_imul_di): New.
22668 (r4600_idiv_si): Rename from r4600_idiv.
22669 (r4600_idiv_di): New.
22671 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
22673 * output.h (__gcc_host_wide_int__): Move to hwint.h.
22674 (decl_default_tls_model): Move to tree.h
22675 (dump_file): Move to system.h.
22676 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
22677 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
22678 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
22679 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
22680 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
22681 dbxout_stab_value_internal_label,
22682 dbxout_stab_value_internal_label_diff): Move from here ...
22683 * dbxout.h: ... to here.
22684 * system.h (dump_file): Moved here from output.h.
22685 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
22686 * tree.h (decl_default_tls_model): Moved here from output.h.
22687 * varasm.c (default_stabs_asm_out_destructor,
22688 default_stabs_asm_out_constructor): Move from here ...
22689 * dbxout.c: ... to here.
22691 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
22693 * collect2.h (dump_file): Rename to dump_ld_file.
22694 * collect2.c: Likewise.
22695 * tlink.c: Likewise.
22697 * alias.c: Do not include output.h.
22698 * auto-inc-dec.c: Likewise.
22699 * bt-load.c: Likewise.
22700 * caller-save.c: Likewise.
22702 * cfgbuild.c: Likewise.
22703 * cfgcleanup.c: Likewise.
22704 * cfglayout.c: Likewise.
22705 * cfgloop.c: Likewise.
22706 * cfgloopanal.c: Likewise.
22707 * cfgloopmanip.c: Likewise.
22708 * cfgrtl.c: Likewise.
22709 * cgraph.c: Likewise.
22710 * cgraphclones.c: Likewise.
22711 * combine-stack-adj.c: Likewise.
22712 * combine.c: Likewise.
22713 * cprop.c: Likewise.
22715 * cselib.c: Likewise.
22716 * dbgcnt.c: Likewise.
22717 * df-problems.c: Likewise.
22718 * df-scan.c: Likewise.
22719 * dojump.c: Likewise.
22720 * fwprop.c: Likewise.
22721 * gcse.c: Likewise.
22722 * graph.c: Likewise.
22723 * haifa-sched.c: Likewise.
22724 * hw-doloop.c: Likewise.
22725 * ipa-inline-transform.c: Likewise.
22726 * ipa-pure-const.c: Likewise.
22727 * ipa-reference.c: Likewise.
22728 * ipa-utils.c: Likewise.
22729 * ira-build.c: Likewise.
22730 * ira-emit.c: Likewise.
22732 * loop-doloop.c: Likewise.
22733 * loop-invariant.c: Likewise.
22734 * loop-iv.c: Likewise.
22735 * loop-unroll.c: Likewise.
22736 * loop-unswitch.c: Likewise.
22737 * lto-cgraph.c: Likewise.
22738 * lto-section-in.c: Likewise.
22739 * lto-streamer-in.c: Likewise.
22741 * mode-switching.c: Likewise.
22742 * postreload-gcse.c: Likewise.
22743 * postreload.c: Likewise.
22744 * predict.c: Likewise.
22745 * profile.c: Likewise.
22747 * reg-stack.c: Likewise.
22748 * regcprop.c: Likewise.
22749 * regmove.c: Likewise.
22750 * regstat.c: Likewise.
22751 * reload1.c: Likewise.
22752 * sched-ebb.c: Likewise.
22753 * sel-sched-dump.c: Likewise.
22754 * simplify-rtx.c: Likewise.
22755 * stor-layout.c: Likewise.
22756 * store-motion.c: Likewise.
22757 * tracer.c: Likewise.
22758 * tree-affine.c: Likewise.
22759 * tree-cfg.c: Likewise.
22760 * tree-cfgcleanup.c: Likewise.
22761 * tree-dfa.c: Likewise.
22762 * tree-into-ssa.c: Likewise.
22763 * tree-nomudflap.c: Likewise.
22764 * tree-optimize.c: Likewise.
22765 * tree-pretty-print.c: Likewise.
22766 * tree-profile.c: Likewise.
22767 * tree-ssa-address.c: Likewise.
22768 * tree-ssa-ccp.c: Likewise.
22769 * tree-ssa-copy.c: Likewise.
22770 * tree-ssa-dom.c: Likewise.
22771 * tree-ssa-loop-ch.c: Likewise.
22772 * tree-ssa-loop-im.c: Likewise.
22773 * tree-ssa-loop-manip.c: Likewise.
22774 * tree-ssa-loop-niter.c: Likewise.
22775 * tree-ssa-loop-prefetch.c: Likewise.
22776 * tree-ssa-loop-unswitch.c: Likewise.
22777 * tree-ssa-loop.c: Likewise.
22778 * tree-ssa-propagate.c: Likewise.
22779 * tree-ssa-structalias.c: Likewise.
22780 * tree-ssa-tail-merge.c: Likewise.
22781 * tree-ssa-threadedge.c: Likewise.
22782 * tree-ssa-threadupdate.c: Likewise.
22783 * tree-ssa-uncprop.c: Likewise.
22784 * tree-ssa-uninit.c: Likewise.
22785 * tree-ssa.c: Likewise.
22786 * value-prof.c: Likewise.
22787 * var-tracking.c: Likewise.
22790 * config/m32r/m32r.c: Include dbxout.h.
22791 * config/pa/pa.c: Likewise.
22792 * config/rs6000/rs6000.c: Likewise.
22794 * Makefile.in: Fix dependencies.
22795 * config/rs6000/t-rs5000: Likewise.
22797 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
22799 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
22800 * gimple.h (block_in_transaction): Check for flag_tm.
22802 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
22804 PR tree-optimization/52558
22805 * cfg.c (alloc_aux_for_edge): Fix comment.
22806 (alloc_aux_for_edge): Remove static.
22807 * basic-block.h (alloc_aux_for_edge): Protoize.
22808 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
22809 (execute_sm_if_changed_flag): New.
22810 (execute_sm_if_changed_flag_set): New.
22811 (execute_sm): Do not generate data races unless requested.
22812 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
22813 (tree_ssa_lim_finalize): Call free_aux_for_edges.
22814 * gimple.h (block_in_transaction): New.
22815 (gimple_in_transaction): Use block_in_transaction.
22817 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
22820 * config/avr/avr.opt (-msp8): Document it.
22821 * doc/invoke.texi (AVR Options): Ditto. And document related
22824 2012-05-31 Diego Novillo <dnovillo@google.com>
22826 * configure.ac (CXX_FOR_BUILD): Define and substitute.
22827 (BUILD_CXXFLAGS): Define and substitute.
22828 * Makefile.in (BUILD_CXXFLAGS): Define.
22829 (CXX_FOR_BUILD): Define.
22830 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
22831 (LINKER_FOR_BUILD): Likewise.
22832 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
22833 (BUILD_LINKERFLAGS): Likewise.
22834 * configure: Regenerate.
22836 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
22838 * Makefile.in: Fix many dependencies.
22839 * tree-profile.c: Don't include regs.h.
22840 * tree-vectorizer.c: Don't include cfglayout.h.
22841 * tree-vect-stmts.c: Likewise.
22842 * tree-vect-slp.c: Likewise.
22843 * tree-vect-loop.c: Likewise.
22844 * reg-stack.c: Likewise.
22845 * tree-ssa-loop-manip.c: Likewise.
22846 * toplev.c: Likewise.
22847 * varasm.c: Don't include cfglayout.h, basic-block.h,
22848 and tree-iterator.h.
22849 * tree-cfgcleanup.c: Don't include cfglayout.h.
22850 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
22851 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
22852 * cgraphclones.c: Don't include plugin.h.
22854 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
22856 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
22857 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
22858 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
22860 2012-05-31 Richard Guenther <rguenther@suse.de>
22862 * tree-loop-distribution.c (struct partition_s): New struct,
22863 typedef and vector type.
22864 (partition_alloc, partition_free): New functions.
22865 (generate_loops_for_partition, generate_builtin,
22866 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
22867 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
22868 build_rdg_partition_for_component, can_generate_builtin,
22869 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
22870 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
22871 number_of_rw_in_partition, partition_contains_all_rw,
22872 ldist_gen): Use partition_t instead of bitmap.
22874 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
22876 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
22877 * doc/avr-mmcu.texi: Regenerate.
22879 2012-05-31 Richard Guenther <rguenther@suse.de>
22881 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
22882 Use FOR_EACH_SSA_DEF_OPERAND.
22883 (generate_builtin): Adjust.
22884 (stmt_generated_in_another_partition): Remove.
22885 (add_scalar_computations_to_partition): Likewise.
22886 (rdg_build_partitions): Do not call
22887 add_scalar_computations_to_partition.
22889 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
22891 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
22892 double ints throughout.
22893 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
22894 Check that the position of the field is representable as an integer.
22896 2012-05-31 Richard Guenther <rguenther@suse.de>
22898 * tree-data-ref.c (dr_analyze_innermost): Properly convert
22899 the MEM_REF offset to sizetype.
22901 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
22903 * doc/invoke.texi (AVR Options): Fix typos.
22905 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
22907 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
22908 and -mcpu= options.
22909 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
22910 non-v32 into --march=v0_v10.
22912 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
22914 * ira-int.h (target_ira_int): Rename x_move_cost to
22915 x_ira_register_move_cost, x_may_move_in_cost to
22916 x_ira_may_move_in_cost and x_may_move_out_cost to
22917 x_ira_may_move_out_cost. Delete the old fields with
22918 those names and also x_ira_max_register_move_cost,
22919 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
22920 (move_cost, may_move_in_cost, may_move_out_cost)
22921 (ira_max_register_move_cost, ira_max_may_move_in_cost)
22922 (ira_max_may_move_out_cost): Delete.
22923 * ira.c (init_move_cost): Rename to...
22924 (ira_init_register_move_cost): ...this, deleting the old
22925 function with that name. Apply above variable renamings.
22926 Retain asserts for null fields.
22927 (ira_init_once): Don't initialize register move costs here.
22928 (free_register_move_costs): Apply above variable renamings.
22929 Remove code for deleted fields.
22931 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
22933 * ira.c (init_move_cost): Adjust choice of subclasses to match
22934 the current ira_init_register_move_cost choice. Use
22935 ira_class_subset_p instead of reg_class_subset_p.
22936 (ira_init_register_move_cost): Assert that move_cost,
22937 may_move_in_cost and may_move_out_cost already hold the desired
22938 values for their ira_* equivalents. For the latter two,
22939 ignore classes that can't store a register of the given mode.
22941 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
22943 * ira.c (setup_allocno_and_important_classes): Use
22944 ira_class_hard_regs_num to check whether a class has any
22945 allocatable registers.
22946 (ira_init_register_move_cost): Likewise.
22948 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
22950 * ira.c (init_move_cost): Adjust local variable names to match
22951 file conventions. Use ira_assert instead of gcc_assert.
22953 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
22955 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
22956 Move these definitions and associated target_globals fields to...
22957 * ira-int.h: ...here.
22958 * rtl.h (init_move_cost): Delete.
22959 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
22960 * ira.c: ...here, making the latter static.
22962 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
22964 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
22965 and ira_register_move_cost instead of init_move_cost and move_cost.
22967 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
22969 * ira.h (target_ira): Delete x_ira_available_class_regs.
22970 (ira_available_class_regs): Delete.
22971 * ira.c (setup_available_class_regs): Delete.
22972 (setup_alloc_classes): Don't call it.
22973 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
22974 ira_available_class_regs.
22975 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
22976 (model_spill_cost): Likewise.
22977 * ira-build.c (low_pressure_loop_node_p): Likewise.
22978 * ira-color.c (color_pass): Likewise.
22979 * ira-emit.c (change_loop): Likewise.
22980 * ira-lives.c (inc_register_pressure, dec_register_pressure)
22981 (single_reg_class, ira_implicitly_set_insn_hard_regs)
22982 (process_bb_node_lives): Likewise.
22983 * loop-invariant.c (gain_for_invariant): Likewise.
22985 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22988 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
22989 (pa_section_type_flags): New.
22990 (pa_legitimate_constant_p): Revert previous change.
22992 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
22994 * ira.c (allocate_initial_values): Make static.
22996 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
22998 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
22999 Generate tls_initial_exec_64_sun only when !TARGET_X32.
23001 2012-05-30 Richard Guenther <rguenther@suse.de>
23003 PR middle-end/53501
23004 * fold-const.c (fold_binary_loc): Make sure to call
23005 fold_plusminus_mult_expr with the original sign of operands.
23007 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
23009 * Makefile.in: Fix many dependencies.
23010 (DWARF2_H): Depend on dwarf2.def.
23011 (RTL_ERROR_H): Depend on rtl-error.h.
23012 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
23013 all gimple-pretty-print.h and tree-pretty-print.h references.
23015 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
23017 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
23020 2012-05-30 Richard Guenther <rguenther@suse.de>
23022 PR middle-end/53522
23023 * tree-emutls.c (gen_emutls_addr): Do not add globals to
23026 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
23028 * explow.c (probe_stack_range): Restore simple control flow and stop
23029 again when the probe cannot be generated if HAVE_check_stack.
23031 2012-05-30 Jakub Jelinek <jakub@redhat.com>
23033 PR rtl-optimization/53519
23034 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
23035 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
23037 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23039 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
23041 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
23044 * doc/tm.texi: Update.
23045 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
23046 * target.def (force_at_comp_dir): New hook.
23047 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
23048 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
23050 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
23052 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
23054 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
23055 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
23057 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
23060 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
23061 flag_unsafe_math_optimizations is set.
23062 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
23063 Update description of -mfused-madd.
23065 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
23068 * config/sh/predicates.md (atomic_arith_operand,
23069 atomic_logical_operand): New predicates.
23070 * config/sh/sh.c (sh_option_override): Check atomic options.
23071 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
23072 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
23073 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
23074 UNSUPPORTED_HARD_ATOMIC_CPU.
23075 * config/sh/sync.md: Update description comments.
23076 (I12): New mode iterator.
23077 (fetchop_predicate, fetchop_constraint): New code attributes.
23078 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23079 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23080 atomic_fetch_<fetchop_name>si_hard,
23081 atomic_fetch_<fetchop_name><mode>_hard,
23082 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23083 atomic_<fetchop_name>_fetchsi_hard,
23084 atomic_<fetchop_name>_fetch<mode>_hard,
23085 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23086 atomic_test_and_set_hard): New insns.
23087 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
23088 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
23089 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
23090 atomic_test_and_set_soft): Use same formatting for the first line of
23091 the asm block as in new insns above.
23092 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
23093 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
23094 atomic_test_and_set): Integrate new *_hard insns into expanders.
23095 * config/sh/sh.opt (mhard-atomic): New option.
23096 * doc/invoke.texi (SH Options): Document it.
23098 2012-05-29 Meador Inge <meadori@codesourcery.com>
23100 * c-decl.c (c_push_function_context): Always create a new language
23102 (c_pop_function_context): Clear the language function created in
23103 c_push_function_context.
23105 2012-05-29 Matt Turner <mattst88@gmail.com>
23107 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
23108 (define_bypass "ev6_fcmov"): New.
23110 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
23112 * integrate.c: Remove.
23113 * integrate.h: Remove.
23114 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
23115 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
23116 * config/rs6000/t-rs6000: Likewise
23117 * config/spu/t-spu-elf: Likewise.
23118 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
23119 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
23120 from integrate.h to here.
23121 (initial_value_entry): New prototype.
23122 * reload.h (allocate_initial_values): Remove prototype.
23123 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
23124 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
23126 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
23127 set_decl_abstract_flags, set_block_abstract_flags): Move from
23128 integrate.c to here, the only user.
23129 * expmed.c (extract_fixed_bit_field): Remove outdated comment
23131 * function.c: Don't include integrate.h.
23132 (struct initial_value_pair, struct initial_value_struct,
23133 get_hard_reg_initial_val, has_hard_reg_initial_val,
23134 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
23135 integrate.c to here.
23136 (initial_value_entry): New function.
23137 * genemit.c (main): Don't print integrate.h include line.
23138 * ira.c: Don't include integrate.h.
23139 (allocate_initial_values): Move from integrate.c to here.
23140 (ira): Update allocate_initial_values call.
23141 * tree-inline.c: Don't include integrate.h.
23142 (function_attribute_inlinable_p): Moved from integrate.c to here.
23143 * cfgexpand.c: Don't include integrate.h.
23144 * except.c: Likewise.
23145 * langhooks.c: Likewise.
23146 * passes.c: Likewise.
23147 * toplev.c: Likewise.
23148 * config/frv/frv.c: Likewise.
23149 * config/pa/pa.c: Likewise.
23150 * config/spu/spu.c: Likewise.
23151 * config/epiphany/epiphany.c: Likewise.
23152 * config/mep/mep.c: Likewise.
23153 * config/score/score.c: Likewise.
23154 * config/picochip/picochip.c: Likewise.
23155 * config/sh/sh.c: Likewise.
23156 * config/alpha/alpha.c: Likewise.
23157 * config/microblaze/microblaze.c: Likewise.
23158 * config/mips/mips.c: Likewise.
23159 * config/v850/v850.c: Likewise.
23160 * config/mmix/mmix.c: Likewise.
23161 * config/bfin/bfin.c: Likewise.
23162 * config/arm/arm.c: Likewise.
23163 * config/s390/s390.c: Likewise.
23164 * config/m32r/m32r.c: Likewise.
23165 * config/rs6000/rs6000.c: Likewise.
23166 * config/c6x/c6x.c: Include function.h instead of integrate.h.
23167 * config/tilegx/tilegx.c: Likewise.
23168 * config/tilepro/tilepro.c: Likewise.
23170 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
23172 * config/avr/t-avr (s-avr-mmcu-texi): Call
23173 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
23175 2012-05-29 Michael Matz <matz@suse.de>
23177 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
23178 assign_temp): Remove 'keep' argument.
23179 (mark_temp_addr_taken): Remove prototype.
23180 * tree.h (expand_decl): Remove prototype.
23181 * function.c (struct temp_slot): Remove addr_taken and keep member.
23182 (assign_stack_temp_for_type) Don't initialize above, remove
23184 (assign_stack_temp, assign_temp): Remove keep argument.
23185 (mark_temp_addr_taken): Remove.
23186 (preserve_temp_slots): Remove handling of addr_taken and keep members.
23187 (free_temp_slots): Ditto.
23188 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
23190 * stmt.c (expand_asm_operands): Remove dead code.
23191 (expand_decl): Remove.
23192 * c-decl.c (finish_struct): Don't call expand_decl.
23193 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
23194 and assign_stack_temp.
23195 * calls.c (save_fixed_argument_area, initialize_argument_information,
23196 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
23197 * expmed.c (extract_bit_field_1): Ditto.
23198 * expr.c (emit_group_load_1, emit_group_store,
23199 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
23200 store_field, expand_constructor, expand_cond_expr_using_cmove,
23201 expand_expr_real_2, expand_expr_real_1): Ditto.
23202 * stmt.c (expand_asm_operands, expand_return): Ditto.
23204 * function.c (pop_temp_slots): Call free_temp_slots.
23205 * calls.c (store_one_arg): Don't call preserve_temp_slots or
23207 * expr.c (expand_assignment): Don't call free_temp_slots.
23209 * config/arm/arm.c (neon_expand_vector_init): Ditto.
23210 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
23211 (ix86_expand_vector_extract): Ditto.
23212 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
23213 ia64_expand_movxf_movrf): Ditto.
23214 * config/mips/mips.c (mips_expand_vi_general): Ditto.
23215 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
23216 extendsfdf2): Ditto.
23217 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
23218 rs6000_expand_vector_set, rs6000_expand_vector_extract,
23219 rs6000_allocate_stack_temp): Ditto.
23220 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
23221 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
23222 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
23223 sparc_expand_vector_init): Ditto.
23225 2012-05-29 Michael Matz <matz@suse.de>
23227 * c-tree.h (c_expand_decl): Remove prototype.
23229 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
23231 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
23232 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
23233 COMPOUND_LITERAL_EXPR.
23234 * function.c (expand_function_start): Don't call expand_decl,
23235 instead assert that we have RTL assigned.
23236 * tree-ssa-live.c (remove_unused_locals): Clear
23237 nonlocal_goto_save_area if its backing variable is removed.
23238 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
23240 (expand_decl): Assert that this does nothing.
23241 * calls.c (expand_call): Don't call mark_temp_addr_taken.
23243 2012-05-29 Richard Guenther <rguenther@suse.de>
23245 PR tree-optimization/53516
23246 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
23248 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
23250 2012-05-29 Joseph Myers <joseph@codesourcery.com>
23252 * LANGUAGES: Fix typos.
23253 * Makefile.in: Fix typos.
23254 * alias.c: Fix typos.
23255 * auto-inc-dec.c: Fix typos.
23256 * bb-reorder.c: Fix typos.
23257 * cfgcleanup.c: Fix typos.
23258 * cgraph.c: Fix typos.
23259 * cgraph.h: Fix typos.
23260 * cgraphunit.c: Fix typos.
23261 * collect2-aix.h: Fix typos.
23262 * collect2.c: Fix typos.
23263 * compare-elim.c: Fix typos.
23264 * config/alpha/vms.h: Fix typos.
23265 * config/arm/README-interworking: Fix typos.
23266 * config/arm/arm.c: Fix typos.
23267 * config/arm/iterators.md: Fix typos.
23268 * config/arm/vxworks.h: Fix typos.
23269 * config/avr/avr.c: Fix typos.
23270 * config/avr/avr.h: Fix typos.
23271 * config/avr/avr.md: Fix typos.
23272 * config/avr/builtins.def: Fix typos.
23273 * config/c6x/c6x.c: Fix typos.
23274 * config/cr16/cr16.c: Fix typos.
23275 * config/cr16/cr16.md: Fix typos.
23276 * config/cris/cris.md: Fix typos.
23277 * config/darwin.c: Fix typos.
23278 * config/darwin.opt: Fix typos.
23279 * config/i386/i386-c.c: Fix typos.
23280 * config/i386/i386.c: Fix typos.
23281 * config/ia64/ia64.c: Fix typos.
23282 * config/m68k/cf.md: Fix typos.
23283 * config/mep/mep.c: Fix typos.
23284 * config/microblaze/microblaze.c: Fix typos.
23285 * config/microblaze/microblaze.h: Fix typos.
23286 * config/mn10300/mn10300.c: Fix typos.
23287 * config/mn10300/mn10300.md: Fix typos.
23288 * config/pa/pa.c: Fix typos.
23289 * config/picochip/picochip.h: Fix typos.
23290 * config/rs6000/a2.md: Fix typos.
23291 * config/rs6000/rs6000.c: Fix typos.
23292 * config/rs6000/vector.md: Fix typos.
23293 * config/rx/rx.md: Fix typos.
23294 * config/rx/rx.opt: Fix typos.
23295 * config/s390/2097.md: Fix typos.
23296 * config/s390/s390.c: Fix typos.
23297 * config/s390/s390.h: Fix typos.
23298 * config/sh/sh.c: Fix typos.
23299 * config/sh/sh.md: Fix typos.
23300 * config/sparc/sync.md: Fix typos.
23301 * config/spu/spu.c: Fix typos.
23302 * config/spu/spu.md: Fix typos.
23303 * config/vms/vms.c: Fix typos.
23304 * config/vxworks-dummy.h: Fix typos.
23305 * config/vxworks.h: Fix typos.
23306 * cselib.c: Fix typos.
23307 * df-scan.c: Fix typos.
23309 * doc/extend.texi: Fix typos.
23310 * doc/install.texi: Fix typos.
23311 * doc/invoke.texi: Fix typos.
23312 * doc/md.texi: Fix typos.
23313 * doc/plugins.texi: Fix typos.
23314 * doc/rtl.texi: Fix typos.
23315 * dse.c: Fix typos.
23316 * dwarf2asm.c: Fix typos.
23317 * dwarf2out.c: Fix typos.
23318 * except.h: Fix typos.
23319 * expr.c: Fix typos.
23320 * fold-const.c: Fix typos.
23321 * gcc.c: Fix typos.
23322 * gcse.c: Fix typos.
23323 * genautomata.c: Fix typos.
23324 * gengtype-state.c: Fix typos.
23325 * gengtype.c: Fix typos.
23326 * genhooks.c: Fix typos.
23327 * gimple-fold.c: Fix typos.
23328 * gimple-pretty-print.c: Fix typos.
23329 * gimple.c: Fix typos.
23330 * gimple.h: Fix typos.
23331 * gimplify.c: Fix typos.
23332 * graphite-interchange.c: Fix typos.
23333 * graphite-sese-to-poly.c: Fix typos.
23334 * ifcvt.c: Fix typos.
23335 * input.c: Fix typos.
23336 * ipa-cp.c: Fix typos.
23337 * ipa-inline-analysis.c: Fix typos.
23338 * ipa-inline-transform.c: Fix typos.
23339 * ipa-inline.c: Fix typos.
23340 * ipa-pure-const.c: Fix typos.
23341 * ipa-ref.h: Fix typos.
23342 * ipa-reference.c: Fix typos.
23343 * ipa-utils.c: Fix typos.
23344 * ipa.c: Fix typos.
23345 * ira-emit.c: Fix typos.
23346 * ira-lives.c: Fix typos.
23347 * lto-streamer.c: Fix typos.
23348 * lto-streamer.h: Fix typos.
23349 * lto-wrapper.c: Fix typos.
23350 * mcf.c: Fix typos.
23351 * mode-switching.c: Fix typos.
23352 * modulo-sched.c: Fix typos.
23353 * plugin.c: Fix typos.
23354 * postreload.c: Fix typos.
23355 * sched-deps.c: Fix typos.
23356 * sel-sched-ir.c: Fix typos.
23357 * sel-sched-ir.h: Fix typos.
23358 * sel-sched.c: Fix typos.
23359 * sese.c: Fix typos.
23360 * stor-layout.c: Fix typos.
23361 * target-hooks-macros.h: Fix typos.
23362 * target.def: Fix typos.
23363 * trans-mem.c: Fix typos.
23364 * tree-eh.c: Fix typos.
23365 * tree-predcom.c: Fix typos.
23366 * tree-sra.c: Fix typos.
23367 * tree-ssa-address.c: Fix typos.
23368 * tree-ssa-loop-ivopts.c: Fix typos.
23369 * tree-ssa-loop-niter.c: Fix typos.
23370 * tree-ssa-math-opts.c: Fix typos.
23371 * tree-ssa-pre.c: Fix typos.
23372 * tree-ssa-propagate.c: Fix typos.
23373 * tree-ssa-reassoc.c: Fix typos.
23374 * tree-ssa-sccvn.c: Fix typos.
23375 * tree-ssa-ter.c: Fix typos.
23376 * tree-ssa-uninit.c: Fix typos.
23377 * tree-ssanames.c: Fix typos.
23378 * tree-vect-generic.c: Fix typos.
23379 * tree-vect-slp.c: Fix typos.
23380 * tree.c: Fix typos.
23381 * tree.h: Fix typos.
23382 * varasm.c: Fix typos.
23383 * varpool.c: Fix typos.
23385 2012-05-29 Joseph Myers <joseph@codesourcery.com>
23387 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
23389 2012-05-29 Richard Guenther <rguenther@suse.de>
23391 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
23393 (add_referenced_var_1): Re-organize. Assert we are not
23394 called for globals.
23395 (remove_referenced_var): Likewise.
23396 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
23397 * tree-mudflap.c (execute_mudflap_function_ops): Do not
23398 call add_referenced_var on globals.
23399 * matrix-reorg.c (transform_access_sites): Likewise.
23401 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
23403 * alias.c (reg_known_value): Make this a VEC.
23404 (reg_known_equiv_p): Make this an sbitmap.
23405 (reg_known_value_size): Remove.
23406 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
23407 set_reg_known_equiv_p): Update for reg_known_value and
23408 reg_known_value_size data structure change.
23409 (init_alias_analysis, end_alias_analysis): Likewise.
23411 2012-05-29 Jakub Jelinek <jakub@redhat.com>
23413 PR middle-end/53510
23414 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
23415 to avoid leaking memory. No need to handle memory allocation
23416 failure. Double string_len on each reallocation instead of adding 2.
23417 * gcov.c (read_line): Likewise.
23419 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
23421 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
23423 * config/cris/cris.md ("trap"): Define, enabled for
23424 TARGET_TRAP_USING_BREAK8.
23425 * config/cris/cris.opt (mtrap-using-break8): New option.
23427 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
23430 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
23433 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
23435 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
23436 (Standard Names): Fix typos in documentation of atomic patterns.
23438 2012-05-27 Nathan Sidwell <nathan@acm.org>
23440 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
23442 2012-05-26 Jason Merrill <jason@redhat.com>
23445 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
23446 about array compound literals.
23448 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
23450 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
23451 if CLEANUP_NO_INSN_DEL.
23452 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
23453 from cfg_layout_merge_blocks.
23454 (emit_nop_for_unique_locus_between): New function.
23455 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
23456 (cfg_layout_merge_blocks): Likewise.
23458 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
23459 Paolo Bonzini <bonzini@gnu.org>
23461 * df-scan.c (df_def_record_1): Assert a parallel must contain an
23462 EXPR_LIST at this point. Receive the LOC and move its extraction...
23463 (df_defs_record): ... here. Change if-else to a switch statement.
23464 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
23465 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
23466 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
23467 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
23468 regs_invalidated_by_call.
23469 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
23470 df_get_call_refs().
23472 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
23475 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
23476 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
23478 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
23480 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
23481 software floating point emulation. No longer build the multilibs
23482 with -mstrict-align.
23484 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
23486 PR middle-end/53008
23487 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
23488 accessed indirectly.
23489 (ipa_tm_create_version): Same.
23491 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
23494 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
23495 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
23497 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
23500 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
23501 (ix86_expand_vec_perm): Use int mode instead of float.
23502 (expand_vec_perm_pshufb): Remove handling of useseless type
23505 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
23508 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
23509 gnu_ld variables to yes.
23510 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
23511 (HAVE_GNU_AS): Likewise.
23512 * config.in: Regenerate.
23513 * configure: Likewise.
23515 2012-05-25 Tristan Gingold <gingold@adacore.com>
23517 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
23518 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
23519 and preferred_alignment.
23521 2012-05-25 Tristan Gingold <gingold@adacore.com>
23523 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
23525 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
23527 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
23528 volatile bitfields case.
23530 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
23532 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
23533 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
23534 (adjacent_mem_locations): Move some code to and call...
23535 (get_memref_parts): ...new function.
23536 (mem_locations_overlap): New function.
23537 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
23538 (is_mem_ref): Rename to...
23539 (find_mem_ref): ...this. Return MEM rtx.
23540 (get_store_dest): Remove function.
23541 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
23542 new parameter and adjust calls.
23543 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
23544 mem refs overlap for true_store_to_load_dep_costly.
23545 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
23546 passed to adjacent_mem_locations.
23547 (is_costly_group): Walk resolved dependency list.
23548 (force_new_group): Emit group ending nop for Power6/Power7.
23549 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
23550 (group_ending_nop): New define_insn.
23552 2012-05-24 Dodji Seketeli <dodji@redhat.com>
23554 Make unwound macro expansion trace less redundant
23555 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
23556 context of macro definition in the trace, when it's redundant.
23559 2012-05-24 Richard Guenther <rguenther@suse.de>
23561 PR middle-end/53460
23562 * tree-profile.c (tree_profiling): Cleanup the CFG if
23563 execute_fixup_cfg requests it.
23565 2012-05-24 Richard Guenther <rguenther@suse.de>
23567 * tree-flow.h (create_var_ann): Remove.
23568 * tree-dfa.c (create_var_ann): Remove and inline into its
23570 (add_referenced_var_1): ... here.
23571 * varpool.c (add_new_static_var): Do not call add_referenced_var
23573 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23574 * tree-switch-conversion.c (build_one_array): Likewise.
23575 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
23576 * tree-flow-inline.h (gimple_referenced_vars): Guard against
23578 * tree-inline.c (remap_gimple_op_r): Likewise. Check
23579 gimple_referenced_vars instead of gimple_in_ssa_p.
23580 (copy_tree_body_r): Likewise.
23581 (setup_one_parameter): Likewise.
23582 (declare_return_variable): Likewise.
23583 (tree_function_versioning): Likewise.
23585 2012-05-24 Jakub Jelinek <jakub@redhat.com>
23587 PR tree-optimization/53465
23588 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
23589 vr0 into *vr, then vrp_meet that.
23590 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
23591 have any equivalences.
23592 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
23595 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
23597 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
23599 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
23600 check end_regno - 1 is a hard register.
23602 2012-05-24 Richard Guenther <rguenther@suse.de>
23604 * varpool.c (add_new_static_var): Remove call to create_var_ann.
23605 * tree-ssa-operands.c (create_vop_var): Likewise.
23607 2012-05-24 Richard Guenther <rguenther@suse.de>
23610 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
23612 (remove_unused_locals): Pass global_unused_vars to
23613 remove_unused_scope_block_p. Restore code walking all
23614 referenced vars and pruning them.
23616 2012-05-23 Jan Hubicka <jh@suse.cz>
23618 * tree.h (alias_diag_flags): Remove.
23619 (alias_pair): Remove emitted_diags.
23620 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
23621 symbol_alias_set_t, symbol_alias_set_destroy,
23622 symbol_alias_set_contains, propagate_aliases_backward): Remove.
23623 * toplev.c (compile_file): Do not call finish_aliases_2
23624 * cgraphunit.c (cgraph_process_new_functions): Do not call
23626 (handle_alias_pairs): Output diagnostics about aliases to externals.
23627 (assemble_thunks_and_aliases): Use do_assemble_alias.
23628 (output_weakrefs): Likewise.
23629 (finalize_compilation_unit): Do not call finish_aliases_1.
23630 * ipa.c (symtab_remove_unreachable_nodes): De not call
23631 remove_unreachable_alias_pairs.
23632 * varasm.c (do_assemble_alias): Export.
23633 (symbol_alias_set_create, symbol_alias_set_destroy,
23634 symbol_alias_set_contains, symbol_alias_set_insert,
23635 propagate_aliases_forward, propagate_aliases_backward,
23636 propagate_aliases_backward, trivially_visible_alias,
23637 trivially_defined_alias, remove_unreachable_alias_pairs,
23638 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
23639 * output.h (do_assemble_alias): Declare.
23640 * varpool.c (varpool_remove_unreferenced_decls): Do not call
23643 2012-05-23 Martin Jambor <mjambor@suse.cz>
23645 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
23647 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
23649 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
23651 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
23652 (iterative_hash_gimple_type): Adjust comment.
23653 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
23654 domain for an array type instead of the domain type itself.
23656 2012-05-23 Richard Guenther <rguenther@suse.de>
23658 PR tree-optimization/53438
23659 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
23661 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
23664 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
23665 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
23668 2012-05-23 Richard Guenther <rguenther@suse.de>
23670 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
23671 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
23672 via the global_unused_vars bitmap.
23673 (remove_unused_locals): Handle global vars in local-decls via
23674 a global_unused_vars bitmap instead of the used flag in the
23675 var annotation. Simplify global variable handling and removal.
23677 2012-05-22 Jan Hubicka <jh@suse.cz>
23679 PR middle-end/53426
23680 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
23681 from other partitions.
23683 2012-05-22 Jan Hubicka <jh@suse.cz>
23685 PR middle-end/53161
23686 * symtab.c (symtab_register_node): Fix ordering issue.
23688 2012-05-22 Steven Drake <sbd@NetBSD.org>
23690 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
23692 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
23694 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
23695 Use strip_name_encoding target hook.
23697 2012-05-22 Richard Guenther <rguenther@suse.de>
23699 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
23700 (init_function_for_compilation): Remove.
23701 * tree-dfa.c (find_vars_r): Take struct function argument.
23702 (find_referenced_vars_in): Adjust.
23703 * tree-ssa-operands.c (clobber_stats): Remove.
23704 (create_vop_var): Take struct function argument. Mark
23705 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
23706 (init_ssa_operands): Take struct function argument.
23707 (fini_ssa_operands): Do not dump dead stats.
23708 * tree-ssa-operands.h (init_ssa_operands): Take struct function
23710 * cgraphunit.c (init_lowered_empty_function): Adjust.
23711 * lto-streamer-in.c (input_cfg): Likewise.
23712 * tree-inline.c (initialize_cfun): Likewise.
23713 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
23714 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
23715 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
23716 virtual operands are not registers.
23718 2012-05-22 Richard Guenther <rguenther@suse.de>
23720 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
23722 2012-05-22 Richard Guenther <rguenther@suse.de>
23724 PR middle-end/53437
23725 * tree-inline.c (setup_one_parameter): Create a dummy init
23726 statement for unused parameters when not optimizing.
23728 2012-05-22 Richard Guenther <rguenther@suse.de>
23730 * tree-flow.h (add_referenced_var_1): Declare.
23731 (add_referenced_var): Define.
23732 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
23733 (add_referenced_var): Rename to ...
23734 (add_referenced_var_1): ... this. Take struct function argument.
23736 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23739 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
23740 * config/arm/arm.c (arm_validize_comparison): Define.
23741 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
23742 arm_validize_comparison.
23743 ("cbranchdi4"): Likewise.
23744 ("cstoredi4"): Likewise.
23745 ("movsicc"): Likewise.
23746 ("movsfcc"): Likewise.
23747 ("movdfcc"): Likewise.
23749 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
23751 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
23752 the mw_reg_pool size.
23754 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
23756 PR tree-optimization/53336
23757 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
23758 non-integer integral types to offset type and vice versa.
23760 2012-05-22 Alan Modra <amodra@gmail.com>
23762 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
23763 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
23764 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
23765 V_SAVE_INLINE): Delete.
23766 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
23767 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
23768 For ELF targets, use out-of-line restores for -Os and any number
23769 of regs if the restore exits, and out-of-line gp save for two or
23770 more regs. Use save_reg_p to test for holes in reg restore set.
23771 Replace "#if" with "if".
23773 2012-05-22 Alan Modra <amodra@gmail.com>
23775 * config/rs6000/rs6000.c (save_reg_p): New function.
23776 (first_reg_to_save, first_fp_reg_to_save): Use it here.
23777 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
23778 (emit_frame_save): Use gen_frame_store.
23779 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
23780 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
23782 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
23783 vrsave, toc, gp and fp restores.
23785 2012-05-22 Alan Modra <amodra@gmail.com>
23787 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
23788 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
23789 Move function pointer variables after forward declarations.
23790 (rs6000_builtin_support_vector_misalignment): Make static.
23791 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
23792 (rs6000_function_value, rs6000_can_eliminate): Likewise.
23794 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
23796 PR rtl-optimization/53373
23797 * caller-save.c (save_call_clobbered_regs): Look into a possible
23798 PARALLEL manually rather than using single_set on a call insn.
23800 2012-05-21 Jakub Jelinek <jakub@redhat.com>
23802 PR tree-optimization/53436
23803 * omp-low.c (omp_build_component_ref): New function.
23804 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
23806 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
23808 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
23810 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
23811 Do not print '.' here. Output operand lossage error for unhandled
23816 <case 'z'>: Hardcode "code" argument into error strings.
23818 <case 'D'>: Merge AVX and non-AVX codes.
23819 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
23820 Update call to put_condition_code.
23822 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
23824 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
23826 (clzsi2): New expander.
23827 (*clzsi2_68k): New insn.
23828 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
23830 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
23832 * gimple.h (gimple_set_in_transaction): Remove.
23833 (gimple_in_transaction): Look in BB instead.
23834 (gimple_statement_base): Remove in_transaction field.
23835 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
23836 * trans-mem.c (compute_transaction_bits): Place transaction bit
23837 information into basic blocks.
23839 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
23841 * expr.c (get_def_for_expr_class): Define only if
23842 HAVE_conditional_move.
23843 (convert_tree_comp_to_rtx): Likewise.
23845 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
23848 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
23850 (ffssi2_no_cmove): Ditto.
23851 (*ffs<mode>_1): Remove insn pattern.
23852 (*tzcnt<mode>_1): New insn pattern.
23853 (*bsf<mode>1): Ditto.
23855 2012-05-21 Richard Guenther <rguenther@suse.de>
23857 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
23858 more referenced vars.
23859 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
23860 flag on variables that have a var-annotation.
23862 2012-05-21 Joseph Myers <joseph@codesourcery.com>
23865 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
23866 from folded operands before wrapping another around the
23867 conditional expression.
23869 2012-05-21 Jakub Jelinek <jakub@redhat.com>
23871 PR tree-optimization/53366
23872 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
23873 tests if complex_numbers == 2, but there are non-complex number loads
23876 PR tree-optimization/53409
23877 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
23878 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
23880 PR tree-optimization/53410
23881 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
23882 instead of build_int_cst (type, 0) where vector types might be
23883 involved. Instead of build_int_cst (type, 1) convert the original
23884 integer_onep argument to the desired type.
23886 2012-05-21 Michael Matz <matz@suse.de>
23888 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
23889 (simplify_test_exp): Handle one more case of distributive law,
23890 decrease cost threshold.
23891 (tests_attr_p, get_attr_order): New functions.
23892 (optimize_attrs): Use topological order, inline only cheap values.
23893 (write_attr_set): Reset our_known_true after some time.
23895 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
23898 * config/i386/i386.c (type_natural_mode): Warn passing SSE
23899 vector argument without SSE enabled changes the ABI.
23901 2012-05-21 Richard Guenther <rguenther@suse.de>
23903 PR tree-optimization/53408
23904 * tree-vect-loop.c (vectorizable_induction): Properly check
23905 the restriction that we cannot handle induction results from
23906 the inner loop outside of the outer loop.
23908 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
23911 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
23912 (UNSPECV_RDRAND): This.
23913 (rdrand<mode>_1): Updated.
23915 2012-05-21 Richard Guenther <rguenther@suse.de>
23917 * tree-loop-distribution.c (can_generate_builtin): Reject
23920 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
23922 * Makefile.in (options.c): Add options.h to included header
23923 files, before tm.h.
23925 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
23927 * tree-parloops.c : Add myself to contributors, update
23928 TODO list, add link to wiki.
23930 2012-05-21 Alan Modra <amodra@gmail.com>
23932 * config/rs6000/predicates.md (input_operand): Don't match
23933 constant pool addresses. Remove label_ref, high and plus from
23934 match_code list. Remove redundant CONSTANT_P test.
23935 (splat_input_operand): Similarly update match_code list.
23936 (small_toc_ref): New predicate.
23937 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
23938 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
23939 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
23940 register checks to..
23941 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
23942 generated by create_TOC_reference.
23943 (rs6000_legitimize_address): Update cerate_TOC_reference call.
23944 (rs6000_delegitimize_address): Handle new rtl for toc refs.
23945 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
23946 (use_toc_relative_ref): New function, split out from..
23947 (rs6000_emit_move): ..here. Remove redundant tests. Update
23948 create_TOC_reference calls.
23949 (rs6000_legitimize_reload_address): Formatting. Handle splitting
23950 of medium/large model toc addresses. Use use_toc_relative_ref.
23951 (print_operand): Formatting, style. Adjust for toc changes.
23952 (print_operand_address): Likewise.
23953 (rs6000_output_addr_const_extra): Likewise.
23954 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
23955 than a PLUS. Use this formulation for both high and low part
23956 of -mcmodel=medium/large toc reference too. Before reload,
23957 always use the small model formulation.
23958 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
23959 a PLUS in high part of addresses here.
23960 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
23961 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
23962 (largetoc_high, largetoc_low): Move earlier. Cope when no
23963 base reg available.
23964 (largetoc_high_plus): New insn.
23965 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
23966 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
23967 (tocref): ..instead do so here, new insn and split.
23969 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
23971 * config/i386/driver-i386.c (host_detect_local_cpu): Support
23972 RDRND, F16C and FSGSBASE.
23974 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23976 PR rtl-optimzation/53373
23977 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
23978 call pattern. Update split patterns.
23979 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
23980 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
23982 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
23984 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
23987 2012-05-18 Jan Hubicka <jh@suse.cz>
23989 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
23990 (cgraph_process_new_functions): Process also aliases.
23991 * lto-streamer-out.c (struct sets): Remove.
23992 (trivally_defined_alias): Remove.
23993 (output_alias_pair_p): Remove.
23994 (output_unreferenced_globals): Remove.
23995 (produce_symtab); Do not handle alias pairs.
23996 (produce_asm_for_decls): Likewise.
23997 * lto-streamer-in.c (input_alias_pairs): Remove.
23998 (lto_read_body): Do not input alias pairs.
23999 (lto_input_constructors_and_inits): Remove.
24001 2012-05-18 Jan Hubicka <jh@suse.cz>
24003 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
24006 2012-05-18 Jan Hubicka <jh@suse.cz>
24008 * cgraphbuild.c (record_reference): Update.
24009 * lto-cgraph.c (lto_output_varpool_node): External vars
24010 are not in other partition even if they are not output
24011 in current partition.
24012 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
24014 (canonicalize_constructor_val): Take FROM_DECL argument.
24015 (fold_ctor_reference, fold_string_cst_ctor_reference,
24016 fold_array_ctor_reference, fold_nonarray_ctor_reference,
24017 fold_ctor_reference): Likewise.
24018 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
24019 * gimple.h (gimple_fold_builtin): Likewise.
24021 2012-05-18 Olivier Hainque <hainque@adacore.com>
24023 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
24024 $(libsubdir) as libexecsubdir.
24026 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24028 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
24029 relied on signed overflow behavior.
24031 2012-05-18 Richard Guenther <rguenther@suse.de>
24033 PR tree-optimization/53346
24034 * tree-loop-distribution.c (ldist_gen): Make sure to apply
24035 builtin transform even when only a single partition with
24036 all reads/writes exists.
24038 2012-05-18 Richard Guenther <rguenther@suse.de>
24040 PR tree-optimization/53390
24041 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
24044 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24046 * tree-ssa-reassoc.c (bip_map): Remove decl.
24047 (completely_remove_stmt): Remove function.
24048 (remove_def_if_absorbed_call): Remove function.
24049 (remove_visited_stmt_chain): Remove __builtin_powi handling.
24050 (possibly_move_powi): Remove function.
24051 (rewrite_expr_tree): Remove calls to possibly_move_powi.
24052 (rewrite_expr_tree_parallel): Likewise.
24053 (attempt_builtin_powi): Build multiplies explicitly rather than
24054 relying on the ops vector and rank system.
24055 (transform_stmt_to_copy): New function.
24056 (transform_stmt_to_multiply): Likewise.
24057 (reassociate_bb): Handle leftover operations after __builtin_powi
24058 optimization; build a final multiply if necessary.
24060 2012-05-18 Jan Hubicka <jh@suse.cz>
24062 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
24063 (mark_functions_to_output): Fix sanity check.
24064 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
24066 2012-05-18 Richard Guenther <rguenther@suse.de>
24068 * tree-flow.h (mark_symbols_for_renaming): Remove.
24069 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
24070 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
24071 (copy_debug_stmt): Likewise.
24072 (expand_call_inline): Likewise.
24073 (declare_return_variable): Mark the return variable for renaming
24076 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
24078 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
24080 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
24081 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
24082 (ashrdi3,lshrdi3): Likewise.
24083 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
24085 2012-05-18 Meador Inge <meadori@codesourcery.com>
24087 PR rtl-optimization/53352
24088 * cse.c (equiv_constant): Ignore paradoxical subregs.
24090 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
24092 PR rtl-optimization/53125
24093 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
24094 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
24095 die in the basic block. Correctly top off REG_FREQ and
24096 REG_FREQ_CALLS_CROSSED.
24098 (regstat_compute_ri): Allocate and free local_live_last_luid.
24100 (regstat_bb_compute_calls_crossed): Correctly top off
24101 REG_FREQ_CALLS_CROSSED.
24103 2012-05-17 Jan Hubicka <jh@suse.cz>
24105 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
24106 constructor over decl without.
24107 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
24108 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
24109 * cgraphunit.c (process_function_and_variable_attributes): Finalize
24111 (mark_functions_to_output): Also accept bodies for functions with
24113 (output_in_order): Skip external vars.
24114 * lto-cgraph.c (lto_output_node): External functions are never in other
24116 (lto_output_varpool_node): Likewise.
24117 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
24118 forgotten initializers.
24119 * ipa.c (process_references): Handle external vars.
24120 (symtab_remove_unreachable_nodes): Update to handle external vars.
24121 (varpool_externally_visible_p): External vars are externally visible.
24122 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
24123 * varpool.c (varpool_remove_node): Remove constructor.
24124 (decide_is_variable_needed): Handle externals.
24125 (varpool_remove_unreferenced_decls): Likewise.
24127 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
24129 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
24130 (enable_warning_as_error): Do not special case Wuninitialized.
24131 * optc-gen.awk: Add sanity checks.
24133 2012-05-17 Jan Hubicka <jh@suse.cz>
24135 * ipa-reference.c (is_proper_for_analysis): Do not check flags
24136 that might change as result of global optimization.
24137 (analyze_function): Do not check analyzed and externally_visible
24138 flags; be happy about address dereferences.
24139 (propagate): Prune all_module_statics so it really contains just
24140 statics; prune all the local summaries.
24141 (ipa_reference_write_optimization_summary): Simplify.
24143 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
24145 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
24146 * config/m68k/m68k-tables.opt: Regenerated.
24147 * doc/invoke.texi (M680x0 Options): Document.
24149 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
24150 Patrick Marlier <patrick.marlier@gmail.com>
24152 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
24155 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
24157 * configure: Regenerated.
24159 2012-05-16 Andrew Pinski <apinski@cavium.com>
24161 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
24164 2012-05-16 David S. Miller <davem@davemloft.net>
24166 * jump.c (delete_related_insns): If we remove a CALL, make sure
24167 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
24169 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24171 PR tree-optimization/53217
24172 * tree-ssa-reassoc.c (bip_map): New static variable.
24173 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
24174 (attempt_builtin_powi): Save feeding multiplies on a stack.
24175 (reassociate_bb): Create and destroy bip_map.
24177 2012-05-16 Olivier Hainque <hainque@adacore.com>
24179 * Makefile.in (install-no-fixedincludes): New target, former toplevel
24180 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
24181 Add comments and improve stamp preservation across the whole sequence.
24182 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
24184 2012-05-16 Richard Guenther <rguenther@suse.de>
24186 * tree-inline.c (insert_init_stmt): Do not call
24187 mark_symbols_for_renaming.
24188 (setup_one_parameter): Avoid initializing unused parameters.
24189 (declare_return_variable): Properly handle DECL_BY_REFERENCE
24190 return vars in SSA form.
24192 2012-05-16 Richard Guenther <rguenther@suse.de>
24194 * tree-flow.h (get_virtual_var): Remove.
24195 * tree-dfa.c (get_virtual_var): Likewise.
24197 2012-05-16 Richard Guenther <rguenther@suse.de>
24199 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
24200 Remove set-only bitmap of new names.
24201 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
24203 * tree-flow.h (ssa_names_to_replace): Remove.
24204 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
24206 2012-05-16 Richard Guenther <rguenther@suse.de>
24208 PR tree-optimization/53364
24209 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
24210 detect a view-conversion of the decl.
24212 2012-05-16 Dodji Seketeli <dodji@redhat.com>
24214 PR preprocessor/7263
24215 * c-tree.h (enum c_declspec_word): Declare new enum.
24216 (struct c_declspecs::locations): New member.
24217 (declspecs_add_qual, declspecs_add_scspec)
24218 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
24219 location parameter.
24220 * c-decl.c (build_null_declspecs): Initialize the new struct
24221 c_declspecs::locations member.
24222 (declspecs_add_addrspace): Take a location parameter for the
24223 address space. Store it onto declaration specifiers.
24224 (declspecs_add_qual): Likewise, take a location parameter for the
24226 (declspecs_add_type): Likewise, take a location parameter for the
24228 (declspecs_add_scspec): Likewise, take a location parameter for
24229 the storage class specifier.
24230 (declspecs_add_attrs): Likewise, take a location parameter for the
24232 (declspecs_add_alignas): Likewise, take a location parameter for
24234 (finish_declspecs): For diagnostics, use the location of the
24235 relevant declspec, instead of the global input_location.
24236 * c-parser.c (c_parser_parameter_declaration): Pass the precise
24237 virtual location of the declspec to the declspecs-setters.
24238 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
24241 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
24243 * configure.ac: Stack protector enabling for Android targets.
24244 * configure: Regenerate.
24246 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
24248 * ira.c (pseudo_move_insn): Delete.
24249 (find_moveable_pseudos): Don't set it.
24250 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
24251 the definitions of the original pseudo. Delete all of them.
24253 2012-05-16 Olivier Hainque <hainque@adacore.com>
24255 * config/rs6000/rs6000-opts.h (enum processor_type): Add
24257 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
24258 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
24259 * config/rs6000/8540.md: indicate that the units/patterns apply to
24262 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
24263 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
24264 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
24265 related flags, check that what is queried is supported by the selected
24266 configuration. Rework the single/double_float and MASK_STRING resets to
24267 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
24268 costs for PROCESSOR_PPC8548 as well.
24269 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
24270 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
24271 statement instead of a sequence of ifs.
24273 * config/rs6000/rs6000.h (TARGET_E500): Remove.
24274 (TARGET_NO_LWSYNC): Adjust accordingly.
24275 * config/rs6000/e500.h (TARGET_E500): Remove.
24276 (CHECK_E500_OPTIONS): Adjust accordingly.
24277 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
24278 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
24279 * config/rs6000/linuxspe.h: Likewise.
24280 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
24281 superfluous comments.
24282 * config/rs6000/e500-double.h: Remove.
24284 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
24285 default to with_cpu=8548 if --enable-e500-double, and to 8540
24287 (set misc flags section): For powerpc*|rs6000*, remove inclusion
24288 of e500-double.h for --enable-e500-double.
24290 2012-05-16 Olivier Hainque <hainque@adacore.com>
24292 * Makefile.in (s-header-vars): Resort to -n instead of trailing
24293 -e d in sed invocation.
24295 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
24297 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
24299 * doc/tm.texi: Regenerate.
24301 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
24303 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
24305 2012-05-15 Jakub Jelinek <jakub@redhat.com>
24308 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
24309 that operands[2] is either immediate, or q_regs_operand.
24311 2012-05-15 Richard Guenther <rguenther@suse.de>
24313 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
24314 (assemble_thunk): Likewise. Manually rename and register
24315 function arguments.
24317 2012-05-15 Richard Guenther <rguenther@suse.de>
24319 PR tree-optimization/53355
24320 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
24323 2012-05-15 Tristan Gingold <gingold@adacore.com>
24325 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
24327 2012-05-15 Richard Guenther <rguenther@suse.de>
24329 * gimple.c (gimple_set_modified): Move ...
24330 * gimple.h (gimple_set_modified): ... here.
24332 2012-05-15 Tristan Gingold <gingold@adacore.com>
24334 * ira-color.c (move_spill_restore): Add a guard.
24336 2012-05-15 Tristan Gingold <gingold@adacore.com>
24338 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
24341 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
24343 * gimplify.c (gimplify_init_constructor): Do a block move for very
24344 small objects as well.
24346 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
24348 * ira.c (find_moveable_pseudos): Skip registers whose
24349 DF_REG_EQ_USE_COUNT is nonzero.
24351 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
24353 * doc/md.texi (fma): Define to only be applicable for single rounding.
24355 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
24358 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
24359 generate target register for "load" class builtins.
24362 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
24365 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
24366 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
24367 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
24368 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
24369 (<sse>_movu<ssemodesuffix>): New expander.
24370 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
24371 (avx_movdqu<avxmodesuffix>): New expander.
24372 (*sse2_movdqu): Rename from sse2_movdqu.
24373 (sse2_movdqu): New expander.
24375 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
24378 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
24379 (canonicalize_perm): ... new function.
24380 (expand_vec_perm_2vperm2f128_vshuf): New function.
24381 (ix86_expand_vec_perm_const_1): Call it.
24383 2012-05-14 Andrew Pinski <apinski@cavium.com>
24384 H.J. Lu <hongjiu.lu@intel.com>
24385 Jakub Jelinek <jakub@redhat.com>
24388 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
24391 2012-05-14 Jakub Jelinek <jakub@redhat.com>
24393 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
24394 lineno 1 the same as lineno 0 before first start file directive.
24395 (optimize_macinfo_range): Likewise.
24397 * dwarf2out.c (have_macinfo): Define.
24398 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
24399 attribute, don't force empty compilation unit and don't emit any
24400 .debug_macinfo/.debug_macro section if macinfo_table is empty.
24402 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
24405 * config/avr/avr.c (avr_const_address_lo16): Remove.
24406 (avr_assemble_integer): Print ".byte lo8(x)",
24407 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
24408 .warning if 3-byte address is assembled.
24409 * doc/extend.texi (AVR Named Address Spaces): Document that
24410 binutils 2.23 is needed to assemble 3-byte addresses.
24412 2012-05-14 Richard Guenther <rguenther@suse.de>
24414 * tree-vect-data-refs.c (vect_setup_realignment): Remove
24415 call to mark_symbols_for_renaming.
24416 (vect_permute_load_chain): Likewise.
24417 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
24418 instead of calling mark_symbols_for_renaming.
24419 * tree-vect-stmts.c (read_vector_array): Remove call to
24420 mark_symbols_for_renaming.
24421 (write_vector_array): Likewise.
24422 (vectorizable_call): Likewise.
24423 (vectorizable_store): Likewise.
24424 (vectorizable_load): Likewise.
24425 * matrix-reorg.c (transform_allocation_sites): Likewise.
24426 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
24427 (create_expression_by_pieces): Likewise.
24429 2012-05-14 Richard Guenther <rguenther@suse.de>
24431 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
24432 of statements for renaming.
24433 (force_gimple_operand_1): Likewise, consistently for both
24434 calls to force_gimple_operand and force_gimple_operand_gsi.
24436 2012-05-14 Richard Guenther <rguenther@suse.de>
24438 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
24439 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
24441 (expand_omp_for): Likewise.
24442 (expand_omp_for_generic): Adjust conditional add to referenced vars.
24443 Use make_rename_temp for temporaries that should be rewritten into
24445 (expand_omp_for_static_nochunk): Likewise.
24446 (expand_omp_atomic_pipeline): Likewise.
24448 2012-05-14 Richard Guenther <rguenther@suse.de>
24450 PR tree-optimization/53331
24451 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
24453 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
24455 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
24458 * doc/options.texi: (LangEnabledBy): Document it.
24459 * optc-gen.awk: Handle LangEnabledBy.
24460 * opth-gen.awk: Generate declaration for lang-specific functions.
24461 * opt-read.awk: Record lang numbers.
24462 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
24463 (lang_sanitized_name): New.
24465 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
24467 * attribs.c (decl_attributes): Avoid emitting a warning if
24468 ATTR_FLAG_BUILT_IN.
24469 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
24470 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
24471 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
24472 define a string "1".
24473 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
24474 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
24475 BUILT_IN_STRCPY): Use it for these functions.
24476 * postreload.c (reload_combine): Deal with SETs inside
24477 CALL_INSN_FUNCTION_USAGE.
24478 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
24479 Look for REG_RETURNED notes and use a cheap restore if possible.
24480 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
24481 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
24482 * ira-build.c (ira_create_allocno, create_cap_allocno,
24483 propagate_allocno_info, propagate_some_info_from_allocno,
24484 copy_info_to_removed_store_destination, ira_flattening): Handle it.
24485 * ira-lives.c (pseudo_regno_single_word_and_live_p,
24486 find_call_crossed_cheap_reg): New static functions.
24487 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
24488 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
24489 a REG_RETURNED note in that case.
24490 * ira.c (setup_reg_renumber): Change assert to allow cases where
24491 allocnos only cross calls for which they are cheap to restore.
24492 * ira-costs.c (ira_tune_allocno_costs): Compare
24493 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
24495 * reg-notes.def (REG_RETURNED): New note.
24496 * cse.c (cse_insn): Likewise.
24497 * sched-deps.c (sched_analyze_insn): Likewise.
24498 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
24499 * calls.c (decl_return_flags): New static function.
24500 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
24501 functions that return one of their arguments.
24502 * regcprop.c (struct kill_set_value_data): New.
24503 (kill_set_value): Interpret data as a pointer to such a struct.
24504 Do nothing if the caller wants the register to be ignored.
24505 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
24507 2012-05-14 Richard Guenther <rguenther@suse.de>
24509 PR tree-optimization/53340
24510 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
24512 2012-05-14 Richard Guenther <rguenther@suse.de>
24514 * gimplify.c (gimplify_expr): Remove odd code.
24516 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
24518 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
24519 into a PLUS_EXPR byte offset.
24521 * tree-ssa-pre.c (can_value_number_call): Delete.
24522 (compute_avail): Skip all statements with side effects.
24523 <GIMPLE_CALL>: Skip calls to internal functions.
24525 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
24527 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
24529 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
24531 * common.opt (Wtype-limits): Use EnabledBy.
24533 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
24535 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
24536 (pushtf splitter): Ditto.
24538 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
24539 (<code>tf2): Enable for TARGET_SSE.
24540 (*absnegtf2_sse): Ditto.
24541 (copysign<mode>3): Enable TFmode for TARGET_SSE.
24542 (copysign<mode>3_const): Ditto.
24543 (copysign<mode>3_var): Ditto.
24544 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
24545 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
24546 (*<code>tf3): Ditto.
24547 * config/i386/i386.c (struct builtin_description bdesc_args)
24548 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
24549 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
24550 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
24551 Emit a normal call if SSE isn't available.
24553 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
24555 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
24556 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
24557 (<code><mode>3): Ditto.
24558 (*andnot<mode>3): Ditto.
24559 (*andnottf3): Ditto.
24560 (*<code><mode>3): Ditto.
24561 (<code>tf3): Ditto.
24563 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
24565 * optc-gen.awk: Error instead of warning for conflicting help.
24567 2012-05-12 Jason Merrill <jason@redhat.com>
24570 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
24573 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
24575 * function.c (requires_stack_frame_p): If the function can throw
24576 non-call exceptions, return true if the insn can throw internally.
24578 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
24580 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
24582 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
24584 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
24585 ORDERED and UNORDERED conditions.
24587 2012-05-11 Richard Guenther <rguenther@suse.de>
24589 * tree-flow.h (referenced_var_check_and_insert): Remove.
24590 (find_new_referenced_vars): Likewise.
24591 * tree-dfa.c (referenced_var_check_and_insert): Make static.
24592 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
24593 * tree-inline.c (copy_bb): Use find_referenced_vars_in
24594 instead of find_new_referenced_vars.
24595 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
24597 2012-05-11 Richard Guenther <rguenther@suse.de>
24599 * tree-pass.h (pass_rest_of_compilation,
24600 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
24602 * passes.c (pass_all_optimizations, pass_postreload,
24603 pass_all_early_optimizations): Make static.
24604 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
24605 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
24606 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
24607 (delete_tree_ssa): Do not call fini_phinodes.
24608 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
24610 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
24613 * doc/options.texi (EnabledBy): Document
24614 * opts.c: Include opts.h and options.h before tm.h.
24615 (finish_options): Do not handle some sub-options here...
24616 (common_handle_option): ... instead call common_handle_option_auto
24618 * optc-gen.awk: Handle EnabledBy.
24619 * opth-gen.awk: Declare common_handle_option_auto.
24620 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
24621 (Wmaybe-uninitialized): Likewise.
24622 (Wunused-but-set-variable): Likewise.
24623 (Wunused-function): Likewise.
24624 (Wunused-label): Likewise.
24625 (Wunused-value): Likewise.
24626 (Wunused-variable): Likewise.
24627 * opt-read.awk: Create opt_numbers array.
24629 2012-05-11 Richard Guenther <rguenther@suse.de>
24631 PR tree-optimization/53295
24632 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
24634 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
24635 strides when analyzing data-references in a loop context.
24636 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
24637 non-constant strides for now.
24638 (vect_enhance_data_refs_alignment): Ignore data references
24639 that are strided loads.
24640 (vect_analyze_data_ref_access): Handle non-constant strides.
24641 (vect_check_strided_load): Verify the data-reference is a load.
24642 (vect_analyze_data_refs): Restructure to make strided load
24643 support not dependent on gather support.
24644 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
24645 when doing strided or gather loads.
24646 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
24647 integer_zerop to compare stride with zero.
24649 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
24651 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
24653 2012-05-11 Jan Hubicka <jh@suse.cz>
24656 * varpool.c (varpool_assemble_decl): Also output constat pool entries
24657 that output_constant_pool missed.
24659 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
24661 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
24662 MULTILIB_EXTRA_OPTS.
24664 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
24667 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
24669 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
24671 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
24672 optimization for TARGET_AVX.
24673 (*movti_internal_sse): Ditto.
24674 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
24675 (*movdi_internal): Ditto.
24676 (*movsi_internal): Ditto.
24677 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
24678 (*movdf_internal_rex64): Ditto.
24679 (*movfd_internal): Ditto.
24680 (*movsf_internal): Ditto.
24681 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
24683 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
24685 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
24686 reference as size attribute.
24688 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
24689 Tristan Gingold <gingold@adacore.com>
24691 * doc/md.texi (Standard Names): Document probe_stack_address.
24692 * explow.c (emit_stack_probe): Handle probe_stack_address.
24693 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
24694 (UNSPECV_PROBE_STACK_RANGE): Likewise.
24695 (probe_stack_address): New insn.
24696 (probe_stack_range): Likewise.
24697 * config/ia64/ia64.c: Include common/common-target.h.
24698 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
24699 checking is enabled.
24700 (ia64_emit_probe_stack_range): New function.
24701 (output_probe_stack_range): Likewise.
24702 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
24703 builtin stack checking is enabled.
24704 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
24705 and UNSPECV_PROBE_STACK_ADDRESS.
24706 (unknown_for_bundling_p): New predicate.
24707 (group_barrier_needed): Use important_for_bundling_p.
24708 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
24709 (issue_nops_and_insn): Likewise.
24710 (bundling): Likewise.
24711 (final_emit_insn_group_barriers): Likewise.
24712 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
24713 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
24714 (STACK_CHECK_PROTECT): Likewise.
24715 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
24717 2012-05-10 Jan Hubicka <jh@suse.cz>
24719 * ipa-inline.c (update_all_callee_keys): Remove.
24720 (inline_small_functions): Simplify priority updating.
24722 2012-05-10 Jan Hubicka <jh@suse.cz>
24724 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
24726 2012-05-10 Jan Hubicka <jh@suse.cz>
24728 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
24729 (symtab_remove_unreachable_nodes): ... this one.
24730 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
24731 * cgraphunit.c (ipa_passes): Update.
24732 * cgraphclones.c (cgraph_materialize_all_clones): Update.
24733 * cgraph.c (cgraph_release_function_body): Only turn initial
24734 into error mark when initial was previously set.
24735 * ipa-inline.c (ipa_inline): Update.
24736 * ipa.c: Include ipa-inline.h
24737 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
24738 (enqueue_node): New function.
24739 (process_references): Update.
24740 (symtab_remove_unreachable_nodes): Cleanup.
24741 * passes.c (execute_todo, execute_one_pass): Update.
24743 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
24745 PR rtl-optimization/53125
24746 * ira.c (ira): Call find_moveable_pseudos and
24747 move_unallocated_pseudos if only ira_conflicts_p is true.
24749 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
24751 * config/i386/i386.md (*movoi_internal_avx): Handle
24752 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
24753 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
24754 (*movti_internal_sse): Ditto.
24755 (*movtf_internal): Ditto.
24756 * config/i386/sse.md (ssePSmode): New mode attribute.
24757 (*move<mode>_internal): Use ssePSmode.
24758 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
24759 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
24760 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
24761 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
24763 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
24765 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
24766 DECL_ORIGINAL_TYPE if it is present.
24768 2012-05-10 Nick Clifton <nickc@redhat.com>
24771 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
24772 a "0" constraint to being a (match_dup 0).
24774 2012-05-10 Richard Guenther <rguenther@suse.de>
24776 * stor-layout.c (byte_from_pos): Amend comment.
24778 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24780 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
24781 Document requirement to call in constructors.
24783 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
24785 2012-05-10 Richard Guenther <rguenther@suse.de>
24787 * tree.h (TYPE_IS_SIZETYPE): Remove.
24788 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
24789 (extract_muldiv_1): Likewise.
24790 * gimple.c (gtc_visit): Likewise.
24791 (gimple_types_compatible_p): Likewise.
24792 (iterative_hash_canonical_type): Likewise.
24793 (gimple_canonical_types_compatible_p): Likewise.
24794 * gimplify.c (gimplify_one_sizepos): Likewise.
24795 * print-tree.c (print_node): Likewise.
24796 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
24798 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
24801 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
24802 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
24803 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
24804 instead of xop_mulv2div2di3_low.
24805 (xop_p<macs>dql): Fix vec_select selector.
24806 (xop_p<macs>dqh): Ditto.
24807 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
24808 (xop_mulv2div2di3_high): Ditto.
24810 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
24813 * diagnostic.h (diagnostic_context): Add last_location.
24814 * diagnostic.c (diagnostic_initialize): Initialize it.
24815 (diagnostic_show_locus): Use it.
24817 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
24819 * doc/extend.texi (Function Attributes): Point xref to section
24822 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
24824 * config/i386/i386.c (*movdf_internal_rex64): Remove
24825 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
24826 Calculate "mode" attribute according to
24827 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
24828 (*movdf_internal): Ditto.
24830 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
24833 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
24834 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
24835 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
24836 or when optimizing for size.
24837 * config/i386/sse.md (*mov<mode>_internal): Remove
24838 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
24839 Calculate "mode" attribute according to optimize_function_for_size_p
24840 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
24841 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
24842 depending on the mode of the instruction. Calculate "mode" attribute
24843 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
24844 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
24845 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
24847 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
24850 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
24851 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
24852 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
24853 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
24854 (expand_prologue): Move initialization of cfun->machine->is_naked,
24855 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
24856 (avr_set_current_function): ...this new static function.
24857 (TARGET_SET_CURRENT_FUNCTION): New define.
24858 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
24859 checking attributes of current_function_decl.
24860 (avr_regs_to_save): Ditto.
24861 (signal_function_p): Rename to avr_signal_function_p.
24862 (interrupt_function_p): Rename to avr_interrupt_function_p.
24864 * doc/extend.texi (Function Attributes): Better explanation of
24865 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
24866 alphabetical order.
24868 2012-05-09 Michael Matz <matz@suse.de>
24870 PR tree-optimization/53185
24871 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
24872 peeling when we see strided loads.
24874 2012-05-09 Matthias Klose <doko@ubuntu.com>
24876 * gcc-ar.c (main): Don't check for execute bits for the plugin.
24878 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24880 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
24881 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
24882 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
24883 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
24884 (USE_LOAD_POST_INCREMENT): Define.
24885 (USE_LOAD_PRE_INCREMENT): Define.
24886 (USE_LOAD_POST_DECREMENT): Define.
24887 (USE_LOAD_PRE_DECREMENT): Define.
24888 (USE_STORE_PRE_DECREMENT): Define.
24889 (USE_STORE_PRE_INCREMENT): Define.
24890 (USE_STORE_POST_DECREMENT): Define.
24891 (USE_STORE_POST_INCREMENT): Define.
24892 (arm_auto_incmodes): Add enumeration.
24893 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
24894 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
24896 2012-05-09 Jakub Jelinek <jakub@redhat.com>
24898 PR tree-optimization/53226
24899 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
24900 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
24901 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
24902 doesn't need to be revisited, look for earliest stmt with
24903 !gimple_plf (stmt, GF_PLF_1) if something changed.
24905 2012-05-09 Terry Guo <terry.guo@arm.com>
24907 * genmultilib: Update copyright dates.
24908 * doc/fragments.texi: Ditto.
24910 2012-05-09 Terry Guo <terry.guo@arm.com>
24912 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
24913 * genmultilib (MULTILIB_REQUIRED): New.
24914 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
24916 2012-05-09 Richard Guenther <rguenther@suse.de>
24918 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
24919 (vect_do_peeling_for_loop_bound): Likewise.
24920 (vect_do_peeling_for_alignment): Likewise.
24921 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
24922 (vect_do_peeling_for_loop_bound): Get check_profitability and
24923 threshold as parameters.
24924 (vect_do_peeling_for_alignment): Likewise.
24925 (vect_loop_versioning): Likewise.
24926 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
24927 and threshold here. Control where to put the check here.
24929 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
24931 PR middle-end/53249
24932 * dwarf2out.h (get_address_mode): Move declaration to...
24934 * dwarf2out.c (get_address_mode): Move definition to...
24935 * rtlanal.c: ...here.
24936 * var-tracking.c (get_address_mode): Delete.
24937 * combine.c (find_split_point): Use get_address_mode instead of
24938 targetm.addr_space.address_mode.
24939 * cselib.c (cselib_record_sets): Likewise.
24940 * dse.c (canon_address, record_store): Likewise.
24941 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
24942 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
24943 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
24944 (expand_expr_real_1): Likewise.
24945 * ifcvt.c (noce_try_cmove_arith): Likewise.
24946 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
24947 * reload.c (find_reloads): Likewise.
24948 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
24949 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
24951 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
24953 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
24954 information from the instruction produced.
24956 2012-05-09 Richard Guenther <rguenther@suse.de>
24958 * stor-layout.c (bit_from_pos): Document.
24959 (byte_from_pos): Likewise. Optimize.
24960 (pos_from_bit): Likewise.
24961 (normalize_offset): Use pos_from_bit instead of replicating it.
24963 2012-05-09 Alan Modra <amodra@gmail.com>
24966 * config/rs6000/rs6000.c (gen_frame_set): New function.
24967 (gen_frame_load, gen_frame_store): New functions.
24968 (rs6000_savres_rtx): Use the above.
24969 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
24970 Correct mode used for CR2 in save/restore_world patterns.
24971 Don't emit instructions for eh_return frame unwind reg info.
24973 2012-05-08 Jan Hubicka <jh@suse.cz>
24975 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
24977 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
24979 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
24981 (compile_file): Do not output variables.
24982 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
24984 * langhooks.c: Include timevar.h
24985 (write_global_declarations): Finalize compilation unit after wrapup;
24986 set timevars correctly.
24987 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
24988 not to be added to varpool.
24989 * varpool.c (varpool_assemble_decl): Sanity check that we are called
24990 only on cases where it makes sense; skip constant pool and value expr
24993 2012-05-08 David S. Miller <davem@davemloft.net>
24995 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
24996 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
24997 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
24999 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
25001 PR rtl-optimization/53278
25002 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
25003 speed_p code from earlier patch.
25005 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25008 * config/sh/sh.md (*branch_true, *branch_false): New insns.
25010 2012-05-08 Teresa Johnson <tejohnson@google.com>
25012 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
25013 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
25015 2012-05-08 Jan Hubicka <jh@suse.cz>
25017 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
25018 (cgraph_create_node_1): Rename to ...
25019 (cgraph_create_empty_node): ... this one; export.
25020 (cgraph_create_node): Update.
25021 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
25022 (cgraph_create_edge_including_clones): Likewise.
25023 (cgraph_find_replacement_node): Likewise.
25024 (cgraph_clone_edge): Likewise.
25025 (cgraph_clone_node): Likewise.
25026 (clone_function_name): Likewise.
25027 (cgraph_create_virtual_clone): Likewise.
25028 (cgraph_remove_node_and_inline_clones): Likewise.
25029 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
25030 * cgraph.h: Reorder declarations so they match file of origin.
25031 (cgraph_create_empty_node): Declare.
25032 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
25033 (cgraph_copy_node_for_versioning): Likewise.
25034 (cgraph_function_versioning): Likewise.
25035 (cgraph_materialize_clone): Likewise.
25036 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
25037 (cgraph_materialize_all_clones): Likewise.
25038 * cgraphclones.c: New file.
25039 * Makefile.in: Update for cgraphclones.
25041 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
25044 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
25045 (ix86_rtx_costs): Handle SET.
25047 2012-05-08 Michael Matz <matz@suse.de>
25049 * basic-block.h (struct rtl_bb_info): Remove visited member and
25050 move head_ member to ...
25051 (struct basic_block_def.basic_block_il_dependent): ... the new
25052 member x, replacing but containing old member rtl.
25053 (enum bb_flags): New BB_VISITED flag.
25054 (BB_HEADER, BB_FOOTER): New macros.
25056 * jump.c (mark_all_labels): Adjust.
25057 * cfgcleanup.c (try_optimize_cfg): Adjust.
25058 * cfglayout.c (record_effective_endpoints): Adjust.
25059 (relink_block_chain): Ditto (and don't fiddle with visited).
25060 (fixup_reorder_chain): Adjust.
25061 (fixup_fallthru_exit_predecessor): Ditto.
25062 (cfg_layout_duplicate_bb): Ditto.
25063 * combine.c (update_cfg_for_uncondjump): Adjust.
25064 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
25065 (bb_visited_trace): New accessor.
25066 (mark_bb_visited): Move in front.
25067 (rotate_loop): Use bb_visited_trace.
25068 (find_traces_1_round): Ditto.
25069 (emit_barrier_after): Ditto.
25070 (copy_bb): Ditto, and initialize visited on resize.
25071 (reorder_basic_blocks): Initize visited member.
25072 (duplicate_computed_gotos): Clear bb flags at start, use
25075 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
25076 (rtl_verify_flow_info_1): Ditto.
25077 (cfg_layout_split_block): Ditto.
25078 (cfg_layout_delete_block): Ditto.
25079 (cfg_layout_merge_blocks): Ditto.
25080 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
25082 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
25085 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
25086 when a constant source operand matches an "I" constraint, the "no
25087 CC0 change" applies to a register-destination only, not a
25088 strict_low_part-destination.
25090 2012-05-08 Richard Guenther <rguenther@suse.de>
25092 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
25093 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
25095 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
25097 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
25099 * doc/avr-mmcu.texi: New auto-generated file.
25100 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
25101 to document all valid -mmcu= arguments.
25103 * config/avr/avr.h (arch_info_s): New struct definition.
25104 * config/avr/avr-devices.c (avr_texinfo): New variable.
25105 * config/avr/gen-avr-mmcu-texi.c: New file.
25106 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
25108 2012-05-08 Dehao Chen <dehao@google.com>
25110 * predict.c (find_qualified_ssa_name): New.
25111 (find_ssa_name_in_expr): New.
25112 (find_ssa_name_in_assign_stmt): New.
25113 (is_comparison_with_loop_invariant_p): New.
25114 (is_bound_expr_similar): New.
25115 (predict_iv_comparison): New.
25116 (predict_loops): Add heuristic for loop-nested branches that compare an
25117 induction variable to a loop bound variable.
25118 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
25120 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
25122 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
25123 TARGET_BDVER2 defines where appropriate.
25125 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
25127 * configure.ac (PLUGIN_LD): Rename into...
25128 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
25129 * config.in: Regenerate.
25130 * configure: Likewise.
25131 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
25133 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
25135 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
25136 computation using the precision of the index type.
25137 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
25138 (fold_array_ctor_reference): Do index computations in the index type.
25140 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
25142 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
25143 down to plus_constant.
25144 (expand_epilogue): Ditto.
25146 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
25148 * postreload.c (reload_cse_regs): Make static.
25149 * reload.h (reload_cse_regs): Remove prototype.
25151 2012-05-07 Richard Henderson <rth@redhat.com>
25153 * config/alpha/alpha.md (clear_cache): New pattern.
25155 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
25157 PR middle-end/53245
25158 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
25159 is folded to a type boundary value, verify that the resulting case
25160 label is still a care range.
25162 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
25164 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
25165 only for TARGET_GENERIC, when not optimizing for size.
25166 (*ffs<mode>_1): Ditto.
25168 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
25170 * tree-cfg.c (verify_gimple_switch): Tighten checks.
25172 2012-05-07 Jakub Jelinek <jakub@redhat.com>
25174 PR tree-optimization/53239
25175 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
25176 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
25178 2012-05-07 Richard Guenther <rguenther@suse.de>
25180 PR tree-optimization/53195
25181 * tree-inline.c (setup_one_parameter): Properly add referenced
25182 vars from the parameters new known value.
25184 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
25186 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
25187 (sched_branch_type): Remove.
25188 (m68k_sched_md_init_global): Don't allocate it.
25189 (m68k_sched_md_finish_global): Don't free it.
25190 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
25191 * config/m68k/m68k.md: Set the type of insns using
25192 m68k_sched_branch_type to bcc directly.
25194 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25196 * config/sol2.c (solaris_override_options): New function.
25197 * config/sol2-protos.h (solaris_override_options): Declare.
25198 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
25200 2012-05-07 Richard Guenther <rguenther@suse.de>
25202 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
25203 whether we failed to compute data dependences.
25204 (loop_prefetch_arrays): Fail if we failed.
25206 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
25207 Paolo Bonzini <bonzini@gnu.org>
25209 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
25210 Emit bsf when optimizing for size.
25211 (*ffs<mode>_1): Ditto.
25213 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25216 * config/sh/sh.c (sh_rtx_costs): Handle SET.
25218 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
25221 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
25222 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
25223 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
25225 (*bswapdi2_doubleword): New insn pattern.
25226 (*bswap<mode>2): Rename from *bswap<mode>2_1.
25228 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25230 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
25231 (mips_set_reg_reg_cost): Likewise.
25232 (mips_rtx_costs): Handle SET.
25234 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25236 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
25237 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
25238 to compute the cost of moves. Set the mode of the target register.
25240 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
25242 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
25243 plus_constant function.
25244 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
25245 that the mode is sensible.
25246 (use_anchored_address, round_push, allocate_dynamic_stack_space)
25247 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
25250 * alias.c (canon_rtx): Likewise.
25251 (init_alias_analysis): Likewise.
25252 * builtins.c (expand_builtin_return_addr)
25253 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
25254 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
25255 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
25256 (expand_builtin_stpcpy): Likewise.
25257 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
25258 (compute_argument_addresses, internal_arg_pointer_based_exp)
25259 (expand_call, emit_library_call_value_1): Likewise.
25260 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
25261 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
25262 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
25263 * cse.c (insert_const_anchor, find_reg_offset_for_const)
25264 (use_related_value, fold_rtx): Likewise.
25265 * cselib.c (cselib_subst_to_values): Likewise.
25266 * dse.c (record_store, check_mem_read_rtx): Likewise.
25267 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
25268 * emit-rtl.c (adjust_address_1): Likewise.
25269 * except.c (sjlj_emit_function_enter)
25270 (expand_builtin_extract_return_addr)
25271 (expand_builtin_frob_return_addr): Likewise.
25272 * expmed.c (expand_divmod): Likewise.
25273 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
25274 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
25275 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
25276 * function.c (assign_stack_local_1)
25277 (instantiate_virtual_regs_in_rtx): Likewise.
25278 * optabs.c (prepare_cmp_insn): Likewise.
25279 * recog.c (offsettable_address_addr_space_p): Likewise.
25280 * reload.c (find_reloads_address, form_sum)
25281 (find_reloads_subreg_address): Likewise.
25282 * reload1.c (init_reload, eliminate_regs_1)
25283 (eliminate_regs_in_insn): Likewise.
25284 * simplify-rtx.c (simplify_unary_operation_1)
25285 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
25286 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
25287 (vt_add_function_parameter): Likewise.
25289 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
25290 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
25291 * config/alpha/alpha.c (alpha_legitimize_address_1)
25292 (get_unaligned_address, alpha_expand_unaligned_load)
25293 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
25294 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
25295 (alpha_expand_builtin_establish_vms_condition_handler)
25296 (alpha_setup_incoming_varargs, emit_frame_store_1)
25297 (alpha_expand_prologue, alpha_expand_epilogue)
25298 (alpha_use_linkage): Likewise.
25299 * config/alpha/alpha.md: Likewise.
25301 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
25302 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
25303 (thumb_legitimize_address, arm_gen_load_multiple_1)
25304 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
25305 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
25306 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
25307 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
25308 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
25309 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
25310 (thumb_expand_movmemqi, arm_set_return_address)
25311 (thumb_set_return_address): Likewise.
25312 * config/arm/arm.md: Likewise.
25314 * config/avr/avr.c (avr_incoming_return_addr_rtx)
25315 (avr_prologue_setup_frame, expand_epilogue)
25316 (avr_const_address_lo16): Likewise.
25318 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
25319 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
25320 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
25321 (bfin_output_mi_thunk): Likewise.
25323 * config/c6x/c6x.c (c6x_initialize_trampoline)
25324 (c6x_output_mi_thunk): Likewise.
25326 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
25327 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
25329 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
25330 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
25331 (cris_emit_movem_store, cris_trampoline_init): Likewise.
25332 * config/cris/cris.md: Likewise.
25334 * config/darwin.c (machopic_indirect_data_reference)
25335 (machopic_legitimize_pic_address): Likewise.
25337 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
25338 (epiphany_expand_prologue, epiphany_expand_epilogue)
25339 (epiphany_trampoline_init): Likewise.
25340 * config/epiphany/epiphany.md: Likewise.
25342 * config/fr30/fr30.c (fr30_move_double): Likewise.
25344 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
25345 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
25346 (frv_index_memory, unspec_got_name, frv_find_base_term)
25347 (frv_output_dwarf_dtprel): Likewise.
25349 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
25350 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
25352 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
25353 * config/i386/i386.c (setup_incoming_varargs_64)
25354 (setup_incoming_varargs_ms_64, choose_baseaddr)
25355 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
25356 (ix86_emit_probe_stack_range, ix86_expand_prologue)
25357 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
25358 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
25359 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
25360 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
25361 (x86_output_mi_thunk): Likewise.
25362 * config/i386/i386.md: Likewise.
25364 * config/ia64/ia64.c (ia64_expand_load_address)
25365 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
25366 (do_spill, ia64_trampoline_init): Likewise.
25368 * config/iq2000/iq2000.c (iq2000_va_start)
25369 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
25370 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
25371 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
25373 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
25375 * config/m32c/m32c.c (m32c_return_addr_rtx)
25376 (m32c_expand_insv): Likewise.
25378 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
25379 (m32r_legitimize_pic_address, m32r_print_operand)
25380 (m32r_print_operand_address): Likewise.
25382 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
25383 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
25384 (EH_RETURN_HANDLER_RTX): Likewise.
25385 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
25386 (m68k_expand_epilogue, legitimize_pic_address)
25387 (m68k_output_mi_thunk): Likewise.
25388 * config/m68k/m68k.md: Likewise.
25390 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
25391 (mcore_expand_epilog): Likewise.
25392 * config/mcore/mcore.md: Likewise.
25394 * config/mep/mep.c (mep_allocate_initial_value)
25395 (mep_expand_prologue, mep_expand_epilogue): Likewise.
25397 * config/microblaze/microblaze.c (double_memory_operand)
25398 (microblaze_block_move_loop): Likewise.
25400 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
25401 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
25402 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
25403 (mips_expand_prologue, mips_epilogue_set_cfa)
25404 (mips_expand_epilogue): Likewise.
25405 * config/mips/mips.md: Likewise.
25407 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
25408 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
25410 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
25411 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
25413 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
25414 (EH_RETURN_HANDLER_RTX): Likewise.
25415 * config/moxie/moxie.c (moxie_static_chain): Likewise.
25417 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
25418 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
25419 (pa_return_addr_rtx, hppa_builtin_saveregs)
25420 (pa_trampoline_init): Likewise.
25421 * config/pa/pa.md: Likewise.
25423 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
25425 * config/picochip/picochip.c (picochip_static_chain): Likewise.
25427 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
25428 * config/rs6000/rs6000.c (rs6000_legitimize_address)
25429 (setup_incoming_varargs, print_operand, rs6000_return_addr)
25430 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
25431 (rs6000_emit_epilogue)
25432 (rs6000_machopic_legitimize_pic_address): Likewise.
25434 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
25436 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
25437 (DYNAMIC_CHAIN_ADDRESS): Likewise.
25438 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
25439 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
25440 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
25441 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
25442 (s390_emit_epilogue, s390_function_profiler): Likewise.
25443 * config/s390/s390.md: Likewise.
25445 * config/score/score.c (score_add_offset, score_prologue): Likewise.
25447 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
25448 (sh_output_mi_thunk): Likewise.
25449 * config/sh/sh.md: Likewise.
25451 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
25452 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
25453 * config/sparc/sparc.c (sparc_legitimize_pic_address)
25454 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
25455 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
25456 (emit_and_preserve): Likewise.
25457 * config/sparc/sparc.md: Likewise.
25459 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
25460 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
25461 (spu_setup_incoming_varargs, ea_load_store_inline)
25462 (spu_expand_load): Likewise.
25464 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
25465 (combine_bnp): Likewise.
25467 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
25468 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
25469 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
25471 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
25472 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
25473 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
25475 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
25476 * config/v850/v850.md: Likewise.
25478 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
25479 (EH_RETURN_HANDLER_RTX): Likewise.
25480 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
25481 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
25482 (print_operand_address, vax_trampoline_init): Likewise.
25484 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
25485 (xtensa_function_value_regno_p): Likewise.
25487 2012-05-04 Andrew Pinski <apinski@cavium.com>
25489 * expr.c (get_def_for_expr_class): New function.
25490 (convert_tree_comp_to_rtx): New function.
25491 (expand_cond_expr_using_cmove): New function.
25492 (expand_expr_real_2 <case COND_EXPR>): Call
25493 expand_cond_expr_using_cmove first and return if it succeeds.
25494 Remove the check for HAVE_conditional_move since we should have
25495 already converted it to a conditional move.
25496 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
25497 modes of DImode for 32bits and TImode.
25499 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
25502 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
25503 (print_md_ptr_loc, print_c_condition): Use them.
25504 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
25505 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
25506 attr_file, dfa_file, latency_file): New global variables.
25507 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
25508 write_upcase, write_indent, write_length_unit_log, write_test_expr,
25509 write_attr_get, write_insn_cases, write_eligible_delay,
25510 write_const_num_delay_slots): Accept FILE pointer and toss it around.
25511 Update all callers.
25512 (write_header, open_outfile, handle_arg): New funcions.
25513 (make_automaton_attrs): Write prototypes as extern to the output
25515 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
25516 names from the command line. Open the output files and write out
25517 internal functions for DFA functions to dfa_file_name, insn latency
25518 functions to latency_file_name, and everything else to attr_file.
25519 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
25520 (BACKEND): Build libbackend first.
25521 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
25522 (.PRECIOUS): Likewise.
25523 (insn-dfatab.o): New rule.
25524 (insn-latencytab.o): New rule.
25525 (simple_rtl_generated_c): Do not include insn-attrtab.c.
25526 (s-attrtab): New rule.
25528 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
25530 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
25531 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
25532 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
25533 * reorg.c (get_jump_flags): Do not set the removed flags.
25535 * doc/md.texi (attr_flag): Update for abovementioned changes.
25537 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
25540 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
25541 (TARGET_CMOV): Rename from TARGET_CMOVE.
25542 (TARGET_CMOVE): New define.
25543 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
25544 Do not set TARGET_CMOVE here.
25546 2012-05-04 Dodji Seketeli <dodji@redhat.com>
25548 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
25549 * opts.c (finish_options): Activate -Wunused-local-typedefs if
25550 -Wunused is activated.
25551 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
25553 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25555 * config/s390/s390.md (*movmem_short, *clrmem_short)
25556 (*cmpmem_short): Move the mode check from the insn condition to
25559 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
25561 PR tree-optimization/52633
25562 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
25563 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
25564 (vect_recog_over_widening_pattern): Remove handling of code that was
25565 already detected as over-widening pattern. Remove special handling
25566 of "unsigned" cases. Instead, support general case of conversion
25567 of the shift result to another type.
25569 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
25571 * tree-vect-patterns.c (vect_single_imm_use): New function.
25572 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
25573 (vect_recog_over_widening_pattern): Likewise.
25574 (vect_recog_widen_shift_pattern): Likewise.
25576 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
25578 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
25579 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
25580 (vect_recog_widen_mult_pattern): Likewise.
25581 (vect_operation_fits_smaller_type): Likewise.
25582 (vect_recog_over_widening_pattern): Likewise.
25583 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
25585 2012-05-04 Richard Guenther <rguenther@suse.de>
25588 * lto-wrapper.c (merge_and_complain): Complain about mismatches
25589 of -freg-struct-return and -fpcc-struct-return.
25590 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
25591 from the input file options and ignore those from the link
25594 2012-05-04 Richard Guenther <rguenther@suse.de>
25596 PR tree-optimization/53168
25597 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
25598 memory reads when the result is a constant we can pun.
25600 2012-05-04 Richard Guenther <rguenther@suse.de>
25602 * common.opt (flto-report): Do not mark as Optimization.
25604 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
25607 * recog.c (constrain_operands): If extra constraints are present, also
25608 accept pseudo-registers with equivalent memory locations during reload.
25610 2012-05-04 Olivier Hainque <hainque@adacore.com>
25612 * collect2.c (may_unlink_output_file): New global.
25613 (maybe_unlink): Honor it.
25614 * collect2.h: Add extern for it.
25615 * tlink.c (do_tlink): Set it to true if the link succeeded.
25617 2012-05-04 Olivier Hainque <hainque@adacore.com>
25619 * gcc.c (eval_spec_function): Finalize/restore the current string
25620 obstack state as part of the context push/pop operations.
25622 2012-05-04 Bin Cheng <bin.cheng@arm.com>
25624 PR rtl-optimization/52804
25625 * reload1.c (reload_reg_reaches_end_p): Check whether successor
25626 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
25627 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
25628 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
25629 RELOAD_FOR_OUTADDR_ADDRESS.
25631 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
25634 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
25635 for macro expansion.
25637 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
25639 * flags.h (flag_permissive): Do not declare.
25640 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
25642 * toplev.c (flag_permissive): Do not define.
25643 * c-tree.h (system_header_p): Delete unused.
25645 2012-05-03 David S. Miller <davem@davemloft.net>
25648 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
25649 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
25650 (sparc_emit_float_lib_cmp): Likewise.
25652 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25655 * config/rs6000/rs6000.md (bswapdi splitters): If
25656 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
25657 default) is used, generate an alternate sequence that does not
25658 depend on using indexed addressing.
25660 2012-05-03 Jason Merrill <jason@redhat.com>
25662 * gengtype.c (write_types): Fix warning message.
25663 (write_local): Likewise.
25665 2012-05-02 Jason Merrill <jason@redhat.com>
25667 * dwarf2out.c (struct external_ref, build_local_stub): New.
25668 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
25669 (optimize_external_refs, optimize_external_refs_1): New.
25670 (change_AT_die_ref): New.
25671 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
25672 (build_abbrev_table): Take the external refs hashtable.
25673 (output_comp_unit): Get it from optimize_external_refs and pass it in.
25675 2012-05-03 Jan Hubicka <jh@suse.cz>
25677 PR middle-end/53093
25678 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
25680 2012-05-03 Jan Hubicka <jh@suse.cz>
25682 PR middle-end/53106
25683 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
25685 2012-05-03 Jason Merrill <jason@redhat.com>
25687 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
25688 use_debug_types to discriminate the die_id union.
25689 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
25690 (build_abbrev_table, output_die): Likewise.
25691 (prune_unused_types_walk_attribs): Likewise.
25692 (generate_type_signature, copy_declaration_context): Set it.
25693 (remove_child_or_replace_with_skeleton): Set it.
25694 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
25695 check use_debug_types.
25696 (dwarf2out_finish): Do break_out_includes after .debug_types.
25698 2012-05-03 Jason Merrill <jason@redhat.com>
25700 * dwarf2out.c (modified_type_die): Use scope_die_for.
25701 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
25702 (uses_local_type_r, uses_local_type): New.
25703 (scope_die_for): Keep a type that uses a local type in local scope.
25704 Use get_context_die for namespace and type scope.
25706 2012-05-03 Jason Merrill <jason@redhat.com>
25708 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
25710 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
25711 (dwarf2out_finish): Likewise.
25713 2012-05-03 Martin Jambor <mjambor@suse.cz>
25715 * builtins.c (get_object_alignment_1): Return whether we can determine
25716 the alignment or conservatively assume byte alignment. Return the
25717 alignment by reference. Use get_pointer_alignment_1 for dereference
25719 (get_pointer_alignment_1): Return whether we can determine the
25720 alignment or conservatively assume byte alignment. Return the
25721 alignment by reference. Use get_ptr_info_alignment to get SSA name
25723 (get_object_alignment): Update call to get_object_alignment_1.
25724 (get_object_or_type_alignment): Likewise, fall back to type alignment
25725 only when it returned false.
25726 (get_pointer_alignment): Update call to get_pointer_alignment_1.
25727 * fold-const.c (get_pointer_modulus_and_residue): Update call to
25728 get_object_alignment_1.
25729 * ipa-prop.c (ipa_modify_call_arguments): Update call to
25730 get_pointer_alignment_1.
25731 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
25732 of MEM_REF or TARGET_MEM_REF only when it returns false.
25733 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
25734 get_object_alignment_1.
25735 (ccp_finalize): Use set_ptr_info_alignment.
25736 * tree.h (get_object_alignment_1): Update declaration.
25737 (get_pointer_alignment_1): Likewise.
25738 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
25739 (dump_gimple_stmt): Likewise.
25740 * tree-flow.h (ptr_info_def): Updated comments of fields align and
25742 (get_ptr_info_alignment): Declared.
25743 (mark_ptr_info_alignment_unknown): Likewise.
25744 (set_ptr_info_alignment): Likewise.
25745 (adjust_ptr_info_misalignment): Likewise.
25746 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
25747 and set alignment of SSA names.
25748 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
25749 mark_ptr_info_alignment_unknown.
25750 * tree-ssanames.c (get_ptr_info_alignment): New function.
25751 (mark_ptr_info_alignment_unknown): Likewise.
25752 (set_ptr_info_alignment): Likewise.
25753 (adjust_ptr_info_misalignment): Likewise.
25754 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
25755 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25757 (bump_vector_ptr): Likewise.
25758 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
25759 (vectorizable_store): Likewise.
25760 (vectorizable_load): Likewise.
25762 2012-05-03 Michael Matz <matz@suse.de>
25764 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
25765 in front of basic_block_def.
25766 (struct basic_block_def): Make il.gimple the full struct, not a
25768 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
25770 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
25771 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
25772 NULL il.gimple, which can't happen anymore.
25773 * gimple.h (bb_seq): il.gimple can't be NULL.
25774 (bb_seq_add): Ditto.
25775 (set_bb_seq): Adjust.
25776 (gsi_start_bb, gsi_last_bb): Tidy.
25777 * lto-streamer-in.c (make_new_block): Don't zero members that
25778 are zeroed already, don't allocate a gimple_bb_info.
25779 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
25780 (remove_bb): Clear all il.gimple members.
25781 (gimple_verify_flow_info): Adjust for flat il.gimple.
25782 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
25784 * coretypes.h (const_gimple_seq): Remove typedef.
25785 * gimple.h (gimple_seq_first): Take gimple_seq.
25786 (gimple_seq_first_stmt): Ditto.
25787 (gimple_seq_last): Ditto.
25788 (gimple_seq_last_stmt): Ditto.
25789 (gimple_seq_empty_p): Ditto.
25791 2012-05-03 Richard Guenther <rguenther@suse.de>
25793 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
25795 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
25796 (compute_avail): Do not add possibly trapping operations to
25797 EXP_GEN if they might not be executed in the block.
25799 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
25801 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
25803 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
25805 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
25806 information as early as possible. Update dominance info instead of
25809 2012-05-03 Richard Guenther <rguenther@suse.de>
25811 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
25812 (union_contains_value): Remove.
25813 (vro_valid_in_sets): Likewise.
25814 (op_valid_in_sets): New function.
25815 (valid_in_sets): Use op_valid_in_sets.
25816 (insert_into_preds_of_block): Move dumping ...
25817 (do_regular_insertion): ... here.
25818 (do_partial_partial_insertion): ... and here. Dump that
25819 we've found a partial partial redundancy.
25820 (insert): Dump the current insert iteration.
25822 2012-05-03 Jakub Jelinek <jakub@redhat.com>
25825 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
25826 append program name to it and pass that as first argument
25827 to make_relative_prefix. Always pass standard_libexec_prefix
25828 as last argument to make_relative_prefix. If
25829 make_relative_prefix returns NULL, fall back to
25830 standard_libexec_prefix.
25833 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
25837 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
25838 mode, return that mode.
25841 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
25842 define __ATOMIC_HLE_* macros here.
25843 (ix86_target_macros): But here, using cpp_define_formatted.
25845 2012-05-03 Richard Guenther <rguenther@suse.de>
25847 PR tree-optimization/53144
25848 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
25850 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
25851 with SSA name values.
25852 (vn_reference_lookup_3): Adjust callers.
25854 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25856 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
25857 has_fma4 for AMD processors with both fma3 and fma4 support.
25859 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
25862 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
25865 2012-05-03 Michael Matz <matz@suse.de>
25868 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
25869 (dse_enter_block): Properly iterate the whole sequence even
25870 if the last statement was removed.
25872 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
25874 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
25875 unset flag_jump_tables.
25876 * stmt.c (expand_case): Remove special flag_pic case conditional
25877 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
25879 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
25881 * common/config/s390/s390-common.c (s390_option_optimization_table):
25882 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
25883 default when optimizing.
25885 2012-05-02 Martin Jambor <mjambor@suse.cz>
25888 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
25889 of a variable when the contect is a function.
25891 2012-05-02 Michael Matz <matz@suse.de>
25893 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
25894 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
25895 (const_gimple_seq_node): Remove.
25896 (gimple_seq_node): Typedef as gimple.
25897 (struct gimple_statement_base): Add next and prev members,
25898 adjust all WORD markers in using structs.
25899 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
25900 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
25901 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
25902 gimple are the same.
25903 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
25904 gimple_seq, adjust.
25905 (gimple_init_singleton): New function.
25906 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
25907 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
25908 (gsi_stmt): Adjust.
25909 (gsi_stmt_ptr): Remove.
25910 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
25912 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
25913 again, adjust for above changes.
25914 (update_call_edge_frequencies): Adjust for above changes.
25915 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
25916 (gsi_insert_seq_nodes_after): Ditto.
25917 (gsi_split_seq_after): Ditto.
25918 (gsi_set_stmt): Ditto.
25919 (gsi_split_seq_before): Ditto.
25920 (gsi_remove): Ditto.
25921 (gsi_insert_seq_before_without_update): Don't free sequence.
25922 (gsi_insert_seq_after_without_update): Ditto.
25923 (gsi_replace): Assert some more invariants.
25924 (gsi_insert_before_without_update, gsi_insert_after_without_update):
25926 (gsi_for_stmt): Don't search for stmt.
25927 (gsi_insert_on_edge_immediate): Tidy.
25929 * gimple.c (gimple_alloc_k): Remove "sequences".
25930 (gimple_seq_cache): Remove.
25931 (gimple_alloc_stat): Make stmt a singleton sequence.
25932 (gimple_seq_alloc, gimple_seq_free): Remove.
25933 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
25934 (gimple_copy): Ditto.
25935 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
25936 create iterator from correct sequence.
25937 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
25939 2012-05-02 Michael Matz <matz@suse.de>
25941 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
25943 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
25944 sequence, lazily allocate it.
25945 (bb_seq_addr): New function.
25946 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
25947 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
25948 (gsi_none): New function.
25949 (gsi_start_bb): Adjust.
25950 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
25951 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
25952 (gsi_last_bb): Adjust.
25954 * tree-flow-inline.h (phi_nodes_ptr): New function.
25956 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
25957 datastructure and interface change.
25958 (gsi_insert_seq_before_without_update): Ditto.
25959 (gsi_insert_seq_nodes_after): Ditto.
25960 (gsi_insert_seq_after_without_update): Ditto.
25961 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
25962 (gsi_split_seq_before): Ditto.
25963 (gsi_start_phis): Adjust.
25964 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
25965 (vect_transform_loop): Ditto.
25966 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
25967 gimple_seq_copy): Don't use gimple_seq_alloc.
25968 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
25969 (gimplify_seq_add_seq): Ditto.
25970 * lto-streamer-in.c (make_new_block): Ditto.
25971 * tree-cfg.c (create_bb): Ditto.
25972 * tree-sra.c (initialize_parameter_reductions): Ditto.
25974 2012-05-02 Michael Matz <matz@suse.de>
25976 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
25977 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
25978 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
25979 set_bb_seq): Move down to after gimple_statement_d definition.
25981 2012-05-02 Michael Matz <matz@suse.de>
25983 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25984 gsi_replace_with_seq, instead of inserting itself.
25985 * gimple-iterator.c (gsi_replace_with_seq): New function.
25986 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
25987 iterator instead of statement, advance it.
25988 (ssa_forward_propagate_and_combine): Adjust call to above.
25990 2012-05-02 Michael Matz <matz@suse.de>
25992 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
25994 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
25995 * tree-nested.c (walk_gimple_omp_for): Ditto.
25996 * trans-mem.c (lower_transaction): Ditto.
25997 * tree-eh.c (do_return_redirection): Ditto.
25998 (do_goto_redirection): Ditto.
25999 (lower_try_finally_switch): Ditto.
26000 * gimplify.c (gimplify_stmt): Ditto.
26001 (gimplify_scan_omp_clauses): Ditto.
26002 (gimplify_omp_for): Ditto.
26003 (gimplify_function_tree): Ditto.
26004 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
26005 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
26006 (mf_build_check_statement_for): Ditto.
26007 (mx_register_decls): Ditto.
26008 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
26009 and don't use itertors to append.
26010 (insert_stmts): Ditto.
26011 (insert_out_of_ssa_copy): Ditto.
26012 (insert_out_of_ssa_copy_on_edge): Ditto.
26014 2012-05-02 Michael Matz <matz@suse.de>
26016 * gimple.h (gimple_bind_body_ptr): New function.
26017 (gimple_bind_body): Use it.
26018 (gimple_catch_handler): Use gimple_catch_handler_ptr.
26019 (gimple_eh_filter_failure_ptr): New function.
26020 (gimple_eh_filter_failure): Use it.
26021 (gimple_eh_else_n_body_ptr): New function.
26022 (gimple_eh_else_n_body): Use it.
26023 (gimple_eh_else_e_body_ptr): New function.
26024 (gimple_eh_else_e_body): Use it.
26025 (gimple_try_eval_ptr): New function.
26026 (gimple_try_eval): Use it.
26027 (gimple_try_cleanup_ptr): New function.
26028 (gimple_try_cleanup): Use it.
26029 (gimple_wce_cleanup_ptr): New function.
26030 (gimple_wce_cleanup): Use it.
26031 (gimple_omp_body_ptr): New function.
26032 (gimple_omp_body): Use it.
26033 (gimple_omp_for_pre_body_ptr): New function.
26034 (gimple_omp_for_pre_body): Use it.
26035 (gimple_transaction_body_ptr): New function.
26036 (gimple_transaction_body): Use it.
26037 (gsi_split_seq_before): Adjust to return nothing and take pointer
26039 (gsi_set_stmt): Declare.
26040 (gsi_replace_with_seq): Declare.
26041 (walk_gimple_seq_mod): Declare.
26042 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
26044 * gimple-iterator.c (gsi_set_stmt): New function.
26045 (gsi_split_seq_before): Return new sequence via pointer argument.
26046 (gsi_replace): Use gsi_set_stmt.
26048 * tree-ssa-loop-im.c (move_computations_stmt): First remove
26050 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
26051 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
26053 (reserve_phi_args_for_new_edge): Change call to above,
26056 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
26057 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
26058 iterators. Adjust call to lower_omp.
26059 (lower_lastprivate_clauses): Adjust call to lower_omp.
26060 (lower_reduction_clauses): Ditto.
26061 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
26062 (lower_omp_sections): Don't explicitely count sequence length,
26063 nullify lowered bodies earlier, ensure stmts are part of only
26064 one sequence, adjust call to lower_omp.
26065 (lower_omp_single): Ensure stmts are part of only one sequence,
26066 adjust call to lower_omp.
26067 (lower_omp_master): Ditto.
26068 (lower_omp_ordered): Ditto.
26069 (lower_omp_critical): Ditto.
26070 (lower_omp_for): Ditto.
26071 (lower_omp_taskreg): Ditto, tidy.
26072 (lower_omp_1): Adjust calls to lower_omp.
26073 (execute_lower_omp): Ditto.
26074 (lower_omp): Adjust to take pointer to sequence.
26075 (diagnose_sb_2): Use walk_gimple_seq_mod.
26076 (diagnose_omp_structured_block_errors): Ditto and set possibly
26077 changed function body.
26078 * gimple-low.c (lower_function_body): Set function body after
26080 (lower_sequence): Adjust to take pointer to sequence.
26081 (lower_omp_directive): Ensure stmt isn't put twice into the
26082 sequence, adjust call to lower_sequence.
26083 (lower_stmt): Adjust calls to lower_sequence.
26084 (lower_gimple_bind): Ditto.
26085 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
26086 * tree-nested.c (walk_body): Take pointer to sequence, use
26087 walk_gimple_seq_mod.
26088 (walk_function): Adjust call to walk_body, set possibly changed body.
26089 (walk_gimple_omp_for): Adjust calls to walk_body.
26090 (convert_nonlocal_omp_clauses): Ditto.
26091 (convert_nonlocal_reference_stmt): Ditto.
26092 (convert_local_omp_clauses): Ditto.
26093 (convert_local_reference_stmt): Ditto.
26094 (convert_tramp_reference_stmt): Ditto.
26095 (convert_gimple_call): Ditto.
26096 (convert_nl_goto_reference): Use local iterator copy.
26097 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
26098 but taking pointer to sequence, ensure gsi_start is called with
26100 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
26101 asserting that the sequence head didn't change.
26102 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
26103 walk_gimple_seq_mod.
26104 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
26105 (execute_lower_tm): Ditto, and set possibly changed body.
26106 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
26107 call gsi_start with that lvalue.
26108 (replace_goto_queue_stmt_list): Ditto.
26109 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
26110 (replace_goto_queue): Ditto.
26111 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
26112 (lower_try_finally_onedest): Ditto.
26113 (lower_try_finally_copy): Ditto.
26114 (lower_try_finally_switch): Ditto.
26115 (lower_try_finally): Ditto.
26116 (lower_eh_filter): Ditto.
26117 (lower_eh_must_not_throw): Ditto.
26118 (lower_cleanup): Ditto.
26119 (lower_eh_constructs_2): Ditto.
26120 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
26121 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
26122 set possibly changed body.
26123 (optimize_double_finally): Call gsi_start with lvalue.
26125 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
26126 (gimple_split_block): Ditto.
26127 (gimple_merge_blocks): Use gsi_start_phis.
26128 (move_stmt_r): Use walk_gimple_seq_mod.
26129 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
26130 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
26131 (rebuild_cgraph_edges): Ditto.
26132 (cgraph_rebuild_references): Ditto.
26133 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
26134 * tree-inline.c (copy_phis_for_bb): Ditto.
26135 * tree-ssa-dce.c: Ditto.
26137 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
26139 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
26140 Andi Kleen <ak@linux.intel.com>
26142 * coretypes.h (MEMMODEL_MASK): New.
26143 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
26144 and return new variable.
26145 (expand_builtin_atomic_exchange): Mask memmodel values.
26146 (expand_builtin_atomic_compare_exchange): Ditto.
26147 (expand_builtin_atomic_load): Ditto.
26148 (expand_builtin_atomic_store): Ditto.
26149 (expand_builtin_atomic_clear): Ditto.
26150 * doc/extend.texi: Mention port-dependent memory model flags.
26151 * config/i386/cpuid.h (bit_HLE): New.
26152 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26154 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
26155 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
26156 (ix86_target_string)<-mhle>: New.
26157 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
26158 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
26159 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
26160 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
26161 enabled for generic, generic64 and core-avx2.
26162 (ix86_print_operand): Generate HLE lock prefixes.
26163 (ix86_memmodel_check): New.
26164 (TARGET_MEMMODEL_CHECK): Ditto.
26165 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
26166 (IX86_HLE_ACQUIRE): Ditto.
26167 (IX86_HLE_RELEASE): Ditto.
26168 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
26169 * config/i386/i386.opt (mhle): Ditto.
26170 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
26171 success model to instruction emitter.
26172 (atomic_fetch_add<mode>): Ditto.
26173 (atomic_exchange<mode>): Ditto.
26174 (atomic_add<mode>): Ditto.
26175 (atomic_sub<mode>): Ditto.
26176 (atomic_<code><mode>): Ditto.
26177 (*atomic_compare_and_swap_doubledi_pic): Ditto.
26178 (atomic_compare_and_swap_single<mode>): Define and use argument
26180 (atomic_compare_and_swap_double<mode>): Ditto.
26181 * configure.ac: Check if assembler support HLE prefixes.
26182 * configure: Regenerate.
26183 * config.in: Ditto.
26185 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
26187 PR middle-end/53153
26188 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
26190 (gimplify_switch_expr): ... here.
26191 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
26192 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
26193 to clean up case labels with values outside the index type range.
26194 (simplify_gimple_switch): Call it if something changed.
26195 Remove strange and unnecessary assert.
26197 2012-05-02 Richard Guenther <rguenther@suse.de>
26199 * fold-const.c (div_if_zero_remainder): sizetypes no longer
26201 (int_const_binop_1): New worker for int_const_binop with
26202 overflowable parameter. Pass it through to force_fit_type_double.
26203 (int_const_binop): Wrap around int_const_binop_1 with overflowable
26205 (size_binop_loc): Call int_const_binop_1 with overflowable equal
26206 to minus one, forcing overflow detection for even unsigned types.
26207 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
26208 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
26209 * stor-layout.c (initialize_sizetypes): sizetypes no longer
26211 (layout_type): For zero-sized arrays ignore overflow on the
26213 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
26214 (bit_value_binop_1): Likewise.
26215 * tree.c (double_int_to_tree): Likewise.
26216 (double_int_fits_to_tree_p): Likewise.
26217 (force_fit_type_double): Likewise.
26218 (host_integerp): Likewise.
26219 (int_fits_type_p): Likewise.
26220 * varasm.c (output_constructor_regular_field): Sign-extend the
26221 field-offset to cater for negative offsets produced by the Ada
26223 * omp-low.c (extract_omp_for_data): Convert the loop step to
26224 signed for pointer adjustments.
26226 2012-05-02 Richard Guenther <rguenther@suse.de>
26228 * tree.c (valid_constant_size_p): New function.
26229 * tree.h (valid_constant_size_p): Declare.
26230 * cfgexpand.c (expand_one_var): Adjust check for too large
26231 variables by using valid_constant_size_p.
26232 * varasm.c (assemble_variable): Likewise.
26234 * c-decl.c (grokdeclarator): Properly check for sizes that
26235 cover more than half of the address-space.
26237 2012-05-02 Jakub Jelinek <jakub@redhat.com>
26239 PR tree-optimization/53163
26240 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
26241 return value from compute_all_dependences.
26243 PR rtl-optimization/53160
26244 * ree.c (combine_reaching_defs): Handle the case where cand->insn
26245 has been modified by ree pass already.
26247 2012-05-01 Ian Lance Taylor <iant@google.com>
26250 * c-decl.c (build_compound_literal): Make the decl readonly if it
26251 an array of a readonly type.
26252 * gimplify.c (gimplify_compound_literal_expr): Add fallback
26253 parameter. Change all callers. If the decl is not addressable
26254 and is not an l-value, make it readonly.
26256 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
26258 * ira.c (allocated_reg_info_size): New static variable.
26259 (expand_reg_info): Manage it. Call
26260 setup_preferred_alternate_classes_for_new_pseudos.
26261 (ira): Don't do it here. Remove local allocated_reg_info_size,
26262 set the global before calling find_moveable_pseudos.
26263 (find_moveable_pseudos): Call expand_reg_info rather than
26266 2012-05-01 Richard Henderson <rth@redhat.com>
26268 * common.opt (fsync-libcalls): New.
26269 * doc/invoke.texi: Document it.
26270 * optabs.c (init_sync_libfuncs): Honor it.
26272 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
26273 Richard Sandiford <r.sandiford@uk.ibm.com>
26275 PR rtl-optimization/52543
26276 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
26278 * lower-subreg.h: New file.
26279 * target-globals.h (this_target_lower_subreg): Declare.
26280 (target_globals): Add lower_subreg;
26281 (restore_target_globals): Restore this_target_lower_subreg.
26282 * target-globals.c: Include it.
26283 (default_target_globals): Add default_target_lower_subreg.
26284 (save_target_globals): Initialize target_lower_subreg.
26285 * rtl.h (init_lower_subreg): Added declaration.
26286 * toplev.c (backend_init_target): Call initializer for lower-subreg
26288 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
26289 (default_target_lower_subreg): New variable.
26290 (this_target_lower_subreg): Likewise.
26291 (twice_word_mode, choices): New macros.
26292 (shift_cost, compute_splitting_shift, compute_costs)
26293 (init_lower_subreg): New functions.
26294 (resolve_simple_move): Add speed_p argument. Check choices.
26295 (find_pseudo_copy): Don't check the mode size here.
26296 (resolve_simple_move): Assert the mode size.
26297 (find_decomposable_shift_zext): Add speed_p argument and return
26298 a bool. Check choices.
26299 (resolve_shift_zext): Add comment.
26300 (dump_shift_choices, dump_choices): New functions.
26301 (decompose_multiword_subregs): Dump list of profitable
26302 transformations. Add code to skip non profitable transformations.
26303 Update calls to simple_move and find_decomposable_shift_zext.
26305 2012-05-01 Ian Bolton <ian.bolton@arm.com>
26306 Sameera Deshpande <sameera.deshpande@arm.com>
26307 Greta Yorsh <greta.yorsh@arm.com>
26309 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
26310 (thumb1_unexpanded_epilogue): ...this.
26311 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
26312 (thumb1_unexpanded_epilogue): ...this.
26313 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
26314 (thumb1_unexpanded_epilogue): ...this.
26316 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
26318 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
26319 comparing enumeration values. Update comments.
26321 2012-05-01 Alan Modra <amodra@gmail.com>
26324 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
26325 load_cr_save, add_crlr_cfa_restore): New functions.
26326 (rs6000_restore_saved_cr): Rename to..
26327 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
26328 (rs6000_emit_epilogue): Use new functions. Adjust condition
26329 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
26330 regs when using out-of-line restore only when shrink wrapping.
26332 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
26334 PR middle-end/53136
26335 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
26336 calls to cgraph_node_name in xstrdup.
26337 (ipa_make_edge_direct_to_target): Ditto.
26338 * cgraph.c (dump_cgraph_node): Ditto.
26339 * tree-sra.c (convert_callers_for_node): Ditto.
26340 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
26341 * ipa-cp.c (perhaps_add_new_callers): Ditto.
26342 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
26343 (cgraph_materialize_all_clones): Ditto.
26344 * ipa-inline.c (report_inline_failed_reason): Ditto.
26345 (want_early_inline_function_p): Ditto.
26346 (edge_badness): Ditto.
26347 (update_edge_key): Ditto.
26348 (flatten_function): Ditto.
26349 (ipa_inline): Ditto.
26350 (inline_always_inline_functions): Ditto.
26351 (early_inline_small_functions): Ditto.
26353 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
26356 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
26357 constraints 0 and 1.
26359 012-04-30 Jan Hubicka <jh@suse.cz>
26361 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
26362 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
26363 (cgraph_add_to_same_comdat_group): Remove.
26364 (cgraph_add_asm_node): Move to cgraphunit.c.
26365 (cgraph_make_decl_local): Move to symtab.c
26366 (cgraph_make_node_local_1): Update.
26367 (cgraph_can_remove_if_no_direct_calls_and): Update.
26368 (used_from_object_file_p): Update.
26369 (resolution_used_from_other_file_p): Move to symtab.c
26370 (cgraph_used_from_object_file_p): move to symtab.c
26371 (verify_cgraph_node): Verify same comdat groups.
26372 * cgraph.h (cgraph_asm_node): Rename to ...
26373 (asm_node): ... this one.
26374 (cgraph_asm_nodes): Rename to ...
26375 (asm_nodes): ... this one.
26376 (symtab_add_to_same_comdat_group): New function.
26377 (symtab_dissolve_same_comdat_group_list): New function.
26378 (symtab_used_from_object_file_p): Declare.
26379 (symtab_make_decl_local): Declare.
26380 (cgraph_add_to_same_comdat_group): Remove.
26381 (cgraph_add_asm_node): Remove.
26382 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
26384 (cgraph_finalize_compilation_unit): Rename to ...
26385 (finalize_compilation_unit): ... this one.
26386 (cgraph_optimize): Rename to ....
26387 (compile): ... this one.
26388 (add_asm_node): Declare.
26389 (fixup_same_cpp_alias_visibility): Declare.
26390 (cgraph_make_decl_local): Remove.
26391 (varpool_assemble_pending_decls): Rename to ...
26392 (varpool_output_variables): ... this one.
26393 (varpool_remove_unreferenced_decls): Remove.
26394 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
26395 (preserve_function_body_p): Make static.
26396 * toplev.c (compile_file): Update comments; update.
26397 * cgraphunit.c: Update comments.
26398 (cgraph_expand_all_functions): Rename to ...
26399 (expand_all_functions): ... this one; update.
26400 (cgraph_mark_functions_to_output): Rename to ...
26401 (mark_functions_to_output): ... this one; cleanup.
26402 (cgraph_output_pending_asms): Remove prototype.
26403 (asm_nodes, asm_last_node): New static vars.
26404 (cgraph_process_new_functions): Update.
26405 (cgraph_reset_node): Cleanup; add comment.
26406 (cgraph_add_new_function): Update.
26407 (cgraph_output_pending_asms): Rename to ...
26408 (output_asm_statements): ... this one.
26409 (add_asm_node): New function.
26410 (fixup_same_cpp_alias_visibility): New function based on code
26411 in cgraph_analyze_function.
26412 (cgraph_analyze_function): Use it.
26413 (cgraph_order_sort): Update.
26414 (cgraph_output_in_order): Update.
26415 (cgraph_function_versioning): Update.
26416 (cgraph_optimize): Rename to ...
26417 (compile): ... this one; initialize streamer hooks here.
26418 (cgraph_finalize_compilation_unit): Rename to ...
26419 (finalize_compilation_unit): ... this one; do not initialize streamer
26421 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
26422 * dwarf2out.c: Update ocmment.
26423 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
26424 * method.c (use_thunk): Likewise.
26425 * semantics.c (maybe_add_lambda_conv_op): Likewise.
26426 * decl2.c (maybe_emit_vtables): Likewise.
26427 (cp_write_global_declarations): Use finalize_compilation_unit.
26428 * parser.c (cp_parser_asm_definition): Use add_asm_node.
26429 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
26430 * c-decl.c (c_write_global_declarations): Use
26431 finalize_compilation_unit.
26432 * langhooks.c (write_global_declarations): Update.
26433 * ipa.c (cgraph_externally_visible_p): Update.
26434 (dissolve_same_comdat_group_list): Remove.
26435 (function_and_variable_visibility): Update.
26436 * symtab.c: Inlcude lto-streamer.h and rtl.h
26437 (ld_plugin_symbol_resolution_names): New.
26438 (symtab_add_to_same_comdat_group): New.
26439 (symtab_dissolve_same_comdat_group_list): New.
26440 (resolution_used_from_other_file_p): Move here from cgraph.c
26441 (symtab_used_from_object_file_p): New.
26442 (symtab_make_decl_local): New.
26443 * passes.c (register_pass): Update comments.
26444 * c-parser.c (c_parser_asm_definition): Update.
26445 * varpool.c (varpool_analyze_node): Use
26446 fixup_same_cpp_alias_visibility.
26447 (varpool_remove_unreferenced_decls): Make static.
26448 (varpool_assemble_pending_decls): Rename to ...
26449 (varpool_output_variables): ... this one; call
26450 varpool_remove_unreferenced_decls.
26451 (varpool_used_from_object_file_p): Remove.
26453 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
26456 * c-typeck.c (build_array_ref): Call
26457 convert_vector_to_pointer_for_subscript.
26458 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
26460 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
26462 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
26463 to compile-time "mode == <MODE>mode" checks.
26464 (and splitter): Ditto.
26466 2012-04-30 Richard Henderson <rth@redhat.com>
26468 * config/arm/arm.md (UNSPEC_LL): New.
26469 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
26470 (arm_load_exclusivedi): Use %H0.
26472 2012-04-30 Jason Merrill <jason@redhat.com>
26474 * dwarf2out.c (comdat_symbol_id): Add const.
26475 (union die_symbol_or_type_node): Add const to die_symbol.
26476 (output_die_symbol, output_die, output_comp_unit): Adjust.
26478 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
26480 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
26481 * config/arm/neon.md (negdi2_neon): New insn.
26482 Also add splitters for core and NEON registers.
26484 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
26486 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
26487 (arm_print_operand): Add 'x' format.
26488 * config/arm/constraints.md (Dn): Allow const_int.
26489 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
26490 Use 'x' format to print constants.
26491 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
26492 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
26494 (movdi_vfp_cortexa8): Likewise.
26496 2012-04-30 Ian Bolton <ian.bolton@arm.com>
26497 Sameera Deshpande <sameera.deshpande@arm.com>
26498 Greta Yorsh <greta.yorsh@arm.com>
26500 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
26501 * config/arm/arm.c (ldm_stm_operation_p): New function.
26502 * config/arm/predicates.md (load_multiple_operation): Update predicate.
26503 (store_multiple_operation): Likewise.
26505 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
26506 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
26507 * config/arm/predicates.md (load_multiple_operation): Add arguments.
26508 (store_multiple_operation): Likewise.
26510 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
26512 * config/i386/i386.md (and<mode>3): Expand masking operations with
26513 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
26514 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
26516 2012-04-30 Dodji Seketeli <dodji@redhat.com>
26518 Add -Wvarargs option
26519 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
26520 argument for the various warning_at calls.
26521 * docs/invoke.texi: Update the documentation.
26523 2012-04-30 Dodji Seketeli <dodji@redhat.com>
26525 Switch -ftrack-macro-expansion=2 on by default.
26526 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
26529 Fix va_start related location
26530 * builtins.c (fold_builtin_next_arg): Unwinds to the first
26531 location in real source code.
26533 Make conversion warnings work on NULL with -ftrack-macro-expansion
26534 * input.h (expansion_point_location_if_in_system_header): Declare
26536 * input.c (expansion_point_location_if_in_system_header): Define it.
26538 Fix -Wuninitialized for -ftrack-macro-expansion
26539 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
26540 declaration. Use linemap_location_before_p for source locations.
26542 Strip "<built-in>" loc from displayed expansion context
26543 * input.c (expand_location_1): When expanding to spelling location
26544 in a context of a macro expansion, skip reserved system header
26545 locations. Update comments. * tree-diagnostic.c
26546 (maybe_unwind_expanded_macro_loc): Likewise.
26548 Make expand_location resolve to locus in main source file
26549 * input.c (expand_location_1): New. Takes a parameter to choose
26550 whether to resolve the location to spelling or expansion point.
26551 Was factorized from ...
26552 (expand_location): ... here.
26553 (expand_location_to_spelling_point): New. Implemented in terms of
26555 * diagnostic.c (diagnostic_build_prefix): Use the new
26556 expand_location_to_spelling_point instead of expand_location.
26558 Fix PCH crash on GTYed pointer-to-scalar field of a struct
26559 * gengtype.c (write_types_process_field): Force second argument of
26560 the call to the PCH object hierarchy walker to be 'x'.
26562 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
26564 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
26565 predicate to discriminate types.
26567 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
26569 * doc/invoke.texi (Wmissing-format-attribute): Document as an
26570 alias of Wsuggest-attribute=format.
26571 * c-typeck.c (convert_for_assignment): Replace
26572 Wmissing-format-attribute with Wsuggest-attribute=format.
26573 (digest_init): Likewise.
26575 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
26577 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
26578 * common.opt (Wmissing-noreturn): Alias of
26579 -Wsuggest-attribute=noreturn.
26581 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
26584 * config/cris/cris.md (andqu): New peephole2.
26585 (andu): Tweak head comment.
26587 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26588 Steven Bosscher <steven@gcc.gnu.org>
26589 Maxim Kuvyrkov <maxim@codesourcery.com>
26591 PR tree-optimization/38785
26592 * common.opt (ftree-partial-pre): New option.
26593 * doc/invoke.texi: Document it.
26594 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
26595 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
26596 benefit speed path.
26597 (execute_pre): Use flag_tree_partial_pre.
26599 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26602 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
26605 2012-04-27 Ollie Wild <aaw@google.com>
26607 * doc/invoke.texi (Wliteral-suffix): Document new option.
26609 2012-04-27 Tom Tromey <tromey@redhat.com>
26611 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
26612 (dwarf_tag_name): Use get_DW_TAG_name.
26613 (dwarf_attr_name): Use get_DW_AT_name.
26614 (dwarf_form_name): Use get_DW_FORM_name.
26615 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
26617 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
26619 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
26620 arguments are -1 and 0, by negating the result of the conditional.
26622 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
26625 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
26627 2012-04-27 Richard Guenther <rguenther@suse.de>
26629 * tree-flow.h (is_hidden_global_store): Remove.
26630 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
26631 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
26632 (stmt_may_clobber_global_p): Likewise.
26633 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
26634 (stmt_may_clobber_global_p): Likewise.
26635 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
26636 stmt_may_clobber_global_p.
26637 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
26639 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
26641 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
26644 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
26645 reorganize some fields and update comments. Rename bit_test_uniq
26646 and bit_test_count to uniq resp. count. Remove bit_test_bb.
26647 (collect_switch_conv_info): New function, collects info about a
26648 GIMPLE_SWITCH into a struct switch_conv_info.
26649 (check_range): Simplify to use pre-recorded info. Fix think-o in
26650 range-branch ratio check.
26651 (check_process_case): Remove function.
26652 (check_all_empty_except_final): New function, verifies that all
26653 non-final basic blocks are empty.
26654 (process_switch): Simplify to use pre-recorded info. Call
26655 collect_switch_conv_info to do that. Assert that degenerate switch
26656 statements have been cleaned up.
26658 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
26660 PR middle-end/27139
26661 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
26663 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
26666 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
26668 2012-04-27 Tom de Vries <tom@codesourcery.com>
26670 PR tree-optimization/51879
26671 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
26672 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
26674 (defs_to_varying): ... here. Don't set use_processed.
26675 (visit_reference_op_call): Handle gimple_vdef.
26676 Handle case that lhs is NULL_TREE.
26677 (visit_use): Use mark_use_processed. Handle calls with side-effect
26678 using visit_reference_op_call.
26680 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
26682 * sched-deps.c (fixup_sched_groups): Rename to...
26683 (chain_to_prev_insn): ...this.
26684 (chain_to_prev_insn_p): New function.
26685 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
26687 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
26689 * sched-int.h (_haifa_insn_data): Move priority_status.
26691 (INSN_MODEL_INDEX): New macro.
26692 * haifa-sched.c (insn_delay): New function.
26693 (sched_regno_pressure_class): Update commentary.
26694 (mark_regno_birth_or_death): Pass the liveness bitmap and
26695 pressure array as arguments, instead of using curr_reg_live and
26696 curr_reg_pressure. Only update the pressure if the bit in the
26697 liveness set has changed.
26698 (initiate_reg_pressure_info): Always trust the live-in set for
26699 SCHED_PRESSURE_MODEL.
26700 (initiate_bb_reg_pressure_info): Update call to
26701 mark_regno_birth_or_death.
26702 (dep_list_size): Take the list as argument.
26703 (calculate_reg_deaths): New function, extracted from...
26704 (setup_insn_reg_pressure_info): ...here.
26705 (MODEL_BAR): New macro.
26706 (model_pressure_data, model_insn_info, model_pressure_limit)
26707 (model_pressure_group): New structures.
26708 (model_schedule, model_worklist, model_insns, model_num_insns)
26709 (model_curr_point, model_before_pressure, model_next_priority):
26711 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
26712 (MODEL_INSN_INFO, MODEL_INSN): New macros.
26713 (model_index, model_update_limit_points_in_group): New functions.
26714 (model_update_limit_points, model_last_use_except): Likewise.
26715 (model_start_update_pressure, model_update_pressure): Likewise.
26716 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
26717 (model_excess_cost, model_dump_pressure_points): Likewise.
26718 (model_set_excess_costs): Likewise.
26719 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
26720 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
26721 schedule as an alternative tie-breaker. Update the call to
26723 (ready_sort): Call model_set_excess_costs.
26724 (update_register_pressure): Update call to mark_regno_birth_or_death.
26725 Rely on that function to check liveness rather than doing it here.
26726 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
26727 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
26728 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
26729 (model_record_pressure, model_record_pressures): New functions.
26730 (model_record_final_pressures, model_add_successors_to_worklist)
26731 (model_promote_predecessors, model_choose_insn): Likewise.
26732 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
26733 (model_start_schedule, model_finalize_pressure_group): Likewise.
26734 (model_end_schedule): Likewise.
26735 (schedule_insn): Say when we're scheduling the next instruction
26736 in the model schedule.
26737 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
26738 (queue_to_ready): Do not add instructions that are
26739 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
26740 Always allow the next instruction in the model schedule to be added.
26741 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
26742 and delay for SCHED_PRESSURE_MODEL too.
26743 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
26744 SCHED_PRIORITY_MODEL, but also take the DFA into account.
26745 (schedule_block): Call model_start_schedule and model_end_schedule.
26746 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
26747 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
26748 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
26750 (sched_finish): Update accordingly.
26751 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
26752 to SCHED_PRESSURE_MODEL.
26753 (add_jump_dependencies): Update call to dep_list_size.
26754 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
26755 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
26756 to SCHED_PRESSURE_MODEL.
26757 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
26758 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
26759 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
26760 handling to SCHED_PRESSURE_MODEL.
26762 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
26764 * common.opt (fsched-pressure-algorithm=): New option.
26765 * flag-types.h (sched_pressure_algorithm): New enum.
26766 * sched-int.h (sched_pressure_p): Replace with...
26767 (sched_pressure): ...this new variable.
26768 * haifa-sched.c (sched_pressure_p): Replace with...
26769 (sched_pressure): ...this new variable.
26770 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
26771 (update_reg_and_insn_max_reg_pressure, schedule_insn)
26772 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
26773 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
26774 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
26775 (sched_analyze_insn): Likewise.
26776 * sched-rgn.c (schedule_region): Likewise.
26777 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
26779 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
26781 PR middle-end/52997
26782 * ira.c (find_moveable_pseudos): Call resize_reg_info.
26784 PR middle-end/52940
26785 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
26786 * expr.c (convert_move): Honor unsignedp when extending partial int
26788 * genmodes.c (complete_mode): Don't clear component field of partial
26790 (emit_mode_inner): Don't emit it however.
26791 (calc_wider_mode): Partial int modes widen to their component.
26793 2012-04-26 David S. Miller <davem@davemloft.net>
26795 * config/sparc/niagara4.md: New file.
26796 * config/sparc/sparc.md: Include it.
26797 * config/sparc/sparc.c (niagara4_costs): New processor costs.
26798 (sparc_option_override): Use it.
26799 (sparc_use_sched_lookahead): Return 2 for niagara4.
26800 (sparc_issue_rate): Likewise.
26802 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
26803 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
26804 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
26805 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
26806 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
26807 alignaddrldi_vis): Set type to gsr.
26808 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
26809 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
26810 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
26811 v<vis3_shift_patname><mode>3, fmean16_vis,
26812 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
26813 fucmp<code>8<P:mode>_vis): Set type to fga.
26814 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
26815 * config/sparc/niagara.md: Likewise.
26816 * config/sparc/niagara2.md: Likewise.
26817 * config/sparc/ultra3.md: Likewise, and fix type matching for
26818 us3_ialuX reservation.
26820 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26822 * reload.c (find_reloads): Change the loop nesting when trying an
26823 alternative with swapped operands.
26825 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26827 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
26828 comment. Delete unused parameter first_exp_point_map.
26829 (virt_loc_aware_diagnostic_finalizer): Update call.
26831 2012-04-26 Michael Hope <michael.hope@linaro.org>
26832 Richard Earnshaw <rearnsha@arm.com>
26834 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
26835 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
26836 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
26837 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
26839 2012-04-25 Sriraman Tallam <tmsriram@google.com>
26841 * doc/extend.texi: Document avx2 support.
26842 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
26844 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
26847 * config/cris/cris.md ("*andhi_lowpart_v32")
26848 ("*andqi_lowpart_v32"): Change first input-only operand from
26849 a (match_operand ...) to (match_dup 0). Drop alternatives with
26850 const_int-matching constraints for redundancy.
26851 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
26852 three-operand alternative.
26854 2012-04-25 Jakub Jelinek <jakub@redhat.com>
26857 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
26858 instead expand it as zero extension.
26860 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
26863 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
26865 2012-04-25 Jakub Jelinek <jakub@redhat.com>
26867 * common.opt (flag_debug_types_section): Default to 0.
26868 (dwarf_version): Default to 4.
26869 (dwarf_record_gcc_switches): Default to 1.
26870 (dwarf_strict): Default to 0.
26871 * toplev.c (process_options): Don't handle dwarf_strict
26872 or dwarf_version here.
26873 * config/vxworks.c (vxworks_override_options): Don't
26874 test whether dwarf_strict or dwarf_version are negative,
26875 instead test !global_options_set.x_dwarf_*.
26876 * config/darwin.c (darwin_override_options): Default to
26878 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
26879 and -fno-debug-types-section are now the default.
26881 2012-04-25 Jan Hubicka <jh@suse.cz>
26883 * cgraphunit.c: Update toplevel comment.
26884 (tree_rest_of_compilation): Merge into cgraph_expand_function.
26885 (cgraph_analyze_function): Make static.
26886 (cgraph_decide_is_function_needed): Make static.
26887 (cgraph_add_new_function): Use expand_function instead of
26888 rest_of_compilation.
26889 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
26890 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
26892 (cgraph_inline_p): Remove.
26893 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
26894 (init_cgraph): Add comment.
26895 * cgraphbuild.c (record_reference, mark_address, mark_load,
26896 mark_store): Do not call analyze_expr hook.
26897 * cgraph.c: Update toplevel comment.
26898 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
26899 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
26900 Move fere from cgraphunit.c
26901 (cgraph_mark_force_output_node): Move to cgraph.h
26902 * cgraph.h: Reorder so the comments match the function placement.
26903 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
26904 (cgraph_mark_force_output_node): Move here from cgraph.c
26905 * tree.c (free_lang_data): Do not clear analyze_expr hook.
26906 * ipa-inline-transform.c (preserve_function_body_p): New function.
26907 (inline_transform): Update.
26908 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
26909 * langhooks.h (lang_hooks_for_callgraph): Remove.
26910 (lang_hooks): Remove callgraph.
26911 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
26912 * varpool.c: Remove out of date comment.
26913 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
26914 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
26916 2012-04-25 Jan Hubicka <jh@suse.cz>
26918 PR middle-end/53089
26919 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
26920 forward declaration.
26921 (cgraph_finalize_function): Finalize them here.
26922 * symtab.c (dump_symtab): Dump ctors and dtors.
26924 2012-04-25 Jakub Jelinek <jakub@redhat.com>
26926 PR middle-end/52979
26927 * stor-layout.c (get_best_mode): Don't return mode with bitsize
26928 larger than maxbits. Don't compute maxbits modulo align.
26929 Also check that unit bytes long store at bitpos / unit * unit
26930 doesn't affect bits beyond bitregion_end.
26931 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
26932 would not fit into bitregion_start ... bitregion_end + 1 bit region.
26933 (store_split_bit_field): Decrease unit close to end of bitregion_end
26934 if access is restricted in order to avoid mutual recursion.
26936 PR tree-optimization/53058
26937 * double-int.h (double_int_max_value, double_int_min_value): New
26939 * double-int.c (double_int_max_value, double_int_min_value): New
26941 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
26942 or GT_EXPR with double_int_max_value instead of double_int_mask.
26944 2012-04-25 Richard Guenther <rguenther@suse.de>
26946 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
26947 * tree-vect-loop.c (vect_transform_loop): Adjust.
26948 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
26949 the maximum number of iterations for the epilogue loop.
26950 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
26952 2012-04-25 Jakub Jelinek <jakub@redhat.com>
26955 * c-typeck.c (set_nonincremental_init,
26956 set_nonincremental_init_from_string): Pass true instead of false
26957 as IMPLICIT to add_pending_init.
26959 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
26961 * c-typeck.c (pop_init_level): Improve diagnostics.
26963 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
26965 * compare-elim.c (try_eliminate_compare): Also handle operands with
26966 implicit extensions.
26968 2012-04-25 Alan Modra <amodra@gmail.com>
26970 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
26971 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
26972 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
26973 (no_global_regs_above): Delete.
26974 (no_global_regs): New function.
26975 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
26976 value for load multiple test.
26977 (savres_routine_syms): Increase size.
26978 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
26979 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
26980 rather than a number of boolean flags. Update all callers.
26981 (rs6000_savres_routine_name): Generate vector save/restore names.
26982 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
26983 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
26984 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
26985 and using_store_multiple. Expand uses. Don't always use r11 as
26986 frame reg when needed for out-of-line saves. Set up initial offset
26987 for out-of-line vector saves when buying stack frame. Handle pointer
26988 reg setup for out-of-line fp save. Emit call to out-of-line vector
26989 save function. Choose r11 or r12 for vrsave reg when available for
26991 (rs6000_output_function_prologue): Don't emit .extern for ELF.
26992 (rs6000_emit_epilogue): Choose a better frame reg when restoring
26993 from back-chain to suit out-of-line vector restore functions. Emit
26994 call to out-of-line vector restore function. Adjust register used
26995 for cr restore. Tweak pointer register setup for gpr restore.
26996 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
26998 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
26999 (V_SAVE_INLINE): Define.
27000 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
27002 2012-04-25 Alan Modra <amodra@gmail.com>
27004 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
27005 out-of-line save/restore for large frames. Don't disable
27006 out-of-line saves on ABI_AIX when using static chain reg.
27007 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
27008 clobber static chain reg, and tweak for out-of-line gpr saves
27011 2012-04-25 Alan Modra <amodra@gmail.com>
27013 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
27014 (rs6000_emit_prologue): Use the above to catch register overlap.
27016 2012-04-25 Alan Modra <amodra@gmail.com>
27018 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
27019 decl. Move logic selecting update reg to callers. Update all callers.
27020 (rs6000_emit_allocate_stack): Add copy_off param.
27021 (emit_frame_save): Don't handle reg+reg addressing.
27022 (ptr_regno_for_savres): New function, extracted from..
27023 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
27024 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
27025 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
27026 frame offset adjustment for out-of-line save with copy from sp.
27027 Simplify condition controlling whether cr is saved early or
27028 late. Use ptr_regno_for_savres to verify correct reg is set
27029 up for out-of-line saves. Pass the actual pointer reg used to
27030 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
27031 function. Rearrange spe vars so code is similar to that
27032 elsewhere in this function. Don't update frame_off when spe
27033 save code will restore r11. Use emit_frame_save for spe and
27034 gpr saves. Consolidate darwin out-of-line gpr setup with that
27035 for other abis. Don't assume frame_offset is zero and frame
27036 reg is sp when setting up altivec reg saves, and calculate
27037 exact offset requirement.
27038 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
27039 spe restore code. Consolidate darwin out-of-line gpr setup
27040 with that for other abis.
27042 2012-04-25 Alan Modra <amodra@gmail.com>
27044 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
27045 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
27047 (emit_frame_save): Delete frame_ptr param. Rename total_size to
27049 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
27050 and emit_frame_save calls. Cope with possibly missing note.
27052 2012-04-24 Sriraman Tallam <tmsriram@google.com>
27054 * config/i386/i386.c (build_processor_model_struct): New function.
27055 (make_var_decl): New function.
27056 (fold_builtin_cpu): New function.
27057 (ix86_fold_builtin): New function.
27058 (make_cpu_type_builtin): New function.
27059 (ix86_init_platform_type_builtins): New function.
27060 (ix86_expand_builtin): Expand new builtins by folding them.
27061 (ix86_init_builtins): Make new builtins to detect CPU type.
27062 (TARGET_FOLD_BUILTIN): New macro.
27063 (IX86_BUILTIN_CPU_INIT): New enum value.
27064 (IX86_BUILTIN_CPU_IS): New enum value.
27065 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
27066 * config/i386/i386-builtin-types.def: New function type.
27067 * doc/extend.texi: Document builtins.
27069 2012-04-24 Olivier Hainque <hainque@adacore.com>
27071 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
27072 * toplev.c (process_options): Default to dwarf_version 2.
27073 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
27074 and dwarf_version 2.
27076 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
27078 * tree-pretty-print.h (default_tree_printer): Do not declare.
27079 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
27081 (default_tree_diagnostic_starter): Make static.
27082 (default_tree_printer): Move to here. Make static.
27083 (tree_diagnostics_defaults): New.
27084 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
27085 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
27086 * toplev.c: Do not include tree-pass.h.
27087 (default_tree_printer): Move from here.
27088 (general_init): Use tree_diagnostics_defaults.
27090 2012-04-24 Chao-ying Fu <fu@mips.com>
27092 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
27093 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
27094 * config/mips/gnu-user.h
27095 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
27096 (GNU_USER_TARGET_LINK_SPEC): New define.
27097 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
27098 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
27099 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
27100 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
27101 GNU_USER_TARGET_ENDFILE_SPEC.
27102 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
27103 (GNU_USER_TARGET_LINK_SPEC): New define.
27104 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
27105 * config/mips/linux-common.h: New file.
27107 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27110 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
27111 (altivec_build_resolved_builtin): Call fully_fold_convert.
27113 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
27116 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
27118 2012-04-24 Richard Guenther <rguenther@suse.de>
27120 PR tree-optimization/53085
27121 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
27124 2012-04-24 Richard Guenther <rguenther@suse.de>
27126 * tree-if-conv.c (main_tree_if_conversion): Move bb under
27129 2012-04-24 Jim Meyering <meyering@redhat.com>
27131 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
27132 absence of an define_enum call.
27134 2012-04-24 Richard Guenther <rguenther@suse.de>
27136 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
27137 the epilogue loop is not re-used as unvectorized version
27138 record the its maximum number of iterations.
27140 2012-04-24 Andrew Pinski <apinski@cavium.com>
27142 * tree-ssa-forwprop.c (simplify_bitwise_binary):
27143 Don't directly use def1/def2.
27145 2012-04-24 Richard Guenther <rguenther@suse.de>
27147 PR tree-optimization/53098
27148 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
27151 2012-04-24 Andrew Pinski <apinski@cavium.com>
27154 * tree-ssa-forwprop.c (defcodefor_name): New function.
27155 (simplify_bitwise_binary): Use defcodefor_name instead of manually
27156 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
27157 Simplify "(~X | Y) & X" to "X & Y" and
27158 "(~X & Y) | X" to "X | Y".
27160 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27162 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
27163 validate_change to add clobbers if IN_GROUP is nonzero.
27164 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
27165 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
27167 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
27169 * config/s390/s390.c (insn_invalid_p): Likewise.
27171 2012-04-24 Jakub Jelinek <jakub@redhat.com>
27173 PR middle-end/53084
27174 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
27175 (output_addressed_constants): Likewise.
27177 PR middle-end/52999
27178 * varasm.c (get_section): Don't ICE for section conflicts with
27179 built-in section kinds.
27181 2012-04-23 DJ Delorie <dj@redhat.com>
27183 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
27184 (LIBSTDCXX): Change to CPP2.
27186 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
27189 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
27192 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
27194 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
27195 (*addsi_2_zext): Ditto.
27196 (*add<mode>_3): Ditto.
27197 (*addsi_3_zext): Ditto.
27198 (*add<mode>_5): Ditto.
27200 2012-04-23 Andrew Pinski <apinski@cavium.com>
27202 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
27203 (C & B) to (A OP0) & B.
27205 2012-04-23 Martin Jambor <mjambor@suse.cz>
27207 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
27208 temporaries created for a bitfield (reverting revision 122014).
27210 2012-04-23 Richard Guenther <rguenther@suse.de>
27212 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
27213 the condition using is_gimple_condexpr and avoid the not necessary
27215 (set_prologue_iterations): Likewise.
27216 (vect_loop_versioning): Likewise.
27218 2012-04-23 Richard Guenther <rguenther@suse.de>
27220 PR tree-optimization/53070
27221 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
27222 (main_tree_if_conversion): Verify we succeeded in that.
27224 2012-04-23 Jan Hubicka <jh@suse.cz>
27226 * lto-symtab.c (lto_cgraph_replace_node): Do not call
27227 mark_reahcable_node.
27228 * cgraph.c (cgraph_remove_node): Do not clear reachable.
27229 (cgraph_mark_reachable_node): Remove.
27230 (cgraph_mark_force_output_node): Do not set reachable.
27231 (dump_cgraph_node): Do not dump reachable.
27232 (cgraph_create_virtual_clone): Do not set reachable.
27233 * cgraph.h (cgraph_node): Remove reachable flag.
27234 (varpool_node): Remove reachable flag.
27235 (cgraph_mark_if_needed): Remove.
27236 (cgraph_mark_reachable_node): Remove.
27237 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
27238 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
27240 (cgraph_add_new_function): Likewise.
27241 (cgraph_mark_if_needed): Remove.
27242 (cgraph_analyze_function): Do not set target as reachable.
27243 (process_function_and_variable_attributes): Do not care about
27245 (cgraph_analyze_functions): Do not set reachable flags.
27246 (cgraph_mark_functions_to_output): Do not check reachability.
27247 (cgraph_copy_node_for_versioning): Do not set reachable flag.
27248 (dbxout_expand_expr): Update.
27249 * c-decl.c (merge_decls): Do not track changed externs.
27250 * ipa.c: Include pointer-set.h
27251 (enqueue_cgraph_node): Use reachable pointer set.
27252 (process_references): Likewise.
27253 (cgraph_remove_unreachable_nodes): Likewise.
27254 (whole_program_function_and_variable_visibility): Do not recompute
27256 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
27258 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
27260 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
27262 2012-04-23 Richard Guenther <rguenther@suse.de>
27265 * c-typeck.c (build_binary_op): Fix typo.
27267 2012-04-23 Jakub Jelinek <jakub@redhat.com>
27269 PR tree-optimizations/52891
27270 * tree-vect-patterns.c (adjust_bool_pattern): Use
27271 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
27272 but with non-standard precision.
27274 2012-04-22 Jan Hubicka <jh@suse.cz>
27276 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
27279 2012-04-22 Jan Hubicka <jh@suse.cz>
27281 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
27282 * cgraphbuild.c (record_reference, record_type_list, mark_address,
27283 mark_load, mark_store): Do not mark varpool nodes as needed.
27284 * cgraph.c (cgraph_new_nodes): Remove.
27285 (cgraph_create_function_alias): Do not mark nodes as reachable.
27286 (cgraph_add_thunk): Likewise.
27287 (cgraph_mark_reachable_node): Do not manage the queue.
27288 * cgraph.h (cgraph_node): Remove next_needed.
27289 (varpool_nodes_queue): Remove next_needed and prev_needed.
27290 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
27291 (cgraph_new_nodes): Declare.
27292 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
27293 (varpool_analyze_pending_decls): Remove.
27294 (varpool_analyze_node): New.
27295 (varpool_mark_needed_node): Remove.
27296 (varpool_first_variable, varpool_next_variable): New inlines.
27297 (varpool_first_static_initializer, varpool_next_static_initializer):
27299 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
27300 (varpool_first_defined_variable): New inline.
27301 (varpool_next_defined_variable): New inline
27302 (FOR_EACH_VARIABLE): Reimplement.
27303 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
27304 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
27306 * cgraphunit.c (cgraph_new_nodes): Declare here.
27307 (enqueue_node): New function.
27308 (cgraph_process_new_functions): update for new
27309 node set; when constructing cgraph enqueue node for processing.
27310 (cgraph_add_new_function): Use new node set.
27311 (process_function_and_variable_attributes): Do not set varpool needed
27313 (referred_to_p): New function.
27314 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
27315 when varpool is in construction.
27316 (cgraph_analyze_functions): Rewrite.
27317 (cgraph_expand_all_functions): Update.
27318 (cgraph_output_in_order): Do not analyze pending decls; do not set
27320 (cgraph_optimize): Do not analyze pending decls.
27321 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
27322 in other partition; do not mark node as needed.
27323 * dwarf2out.c (reference_to_unused): Use analyzed flag.
27324 (premark_types_used_by_global_vars_helper): Likewise.
27325 * ipa.c (process_references): Do not call varpool_mark_needed_node.
27326 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
27328 (function_and_variable_visibility): Do not mark node as needed.
27329 (whole_program_function_and_variable_visibility): Likewise.
27330 * Makefile.in (gt-varpool.h): No longer needed.
27331 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
27332 (ipa_write_summaries): Do not use needed flag.
27333 * varpool.c: Do not include gt-varpool.h
27334 (x_varpool_nodes_queue, x_varpool_last_needed_node,
27335 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
27336 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
27338 (varpool_remove_node): Do not update the lists.
27339 (dump_varpool_node): Do not dump needed flag.
27340 (varpool_enqueue_needed_node): Remove.
27341 (varpool_mark_needed_node): Remove.
27342 (varpool_reset_queue): Remove.
27343 (varpool_finalize_decl): Move to cgraphunit.c
27344 (varpool_analyze_node): New functions based on former
27345 varpool_analyze_pending_decls.
27346 (varpool_analyze_pending_decls): Remove.
27347 (varpool_assemble_decl): Do not update the lists.
27348 (enqueue_node): New function.
27349 (varpool_remove_unreferenced_decls): Rewrite.
27350 (varpool_empty_needed_queue): Remove.
27351 (add_new_static_var): Do not mark node as needed.
27352 (varpool_create_variable_alias): Handle expansion state
27354 * except.c (output_ttype): Do not mark node as needed.
27355 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
27356 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
27358 * tree-switch-conversion.c (build_one_array): Likewise.
27360 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
27363 * doc/invoke.texi (pedantic): Rename to Wpedantic.
27364 * common.opt (Wpedantic): New.
27365 (pedantic): Alias Wpedantic.
27366 * diagnostic.c (warning_at): Likewise.
27367 * c-decl.c (diagnose_mismatched_decls): Likewise.
27368 (build_array_declarator): Likewise.
27369 (mark_forward_parm_decls):
27370 (check_bitfield_type_and_width): Likewise.
27371 (grokdeclarator): Likewise.
27372 (grokfield): Likewise.
27373 (finish_struct): Likewise.
27374 (build_enumerator): Likewise.
27375 (store_parm_decls_oldstyle): Likewise.
27376 (declspecs_add_qual): Likewise.
27377 (declspecs_add_type): Likewise.
27378 (finish_declspecs): Likewise.
27379 * c-typeck.c (composite_type): Likewise.
27380 (comp_target_types): Likewise.
27381 (build_array_ref): Likewise.
27382 (pointer_diff): Likewise.
27383 (build_unary_op): Likewise.
27384 (build_conditional_expr): Likewise.
27385 (build_c_cast): Likewise.
27386 (convert_for_assignment): Likewise.
27387 (maybe_warn_string_init): Likewise.
27388 (digest_init): Likewise.
27389 (pop_init_level): Likewise.
27390 (set_init_index): Likewise.
27391 (c_finish_goto_label): Likewise.
27392 (c_finish_return): Likewise.
27393 (do_case): Likewise.
27394 (build_binary_op): Likewise.
27395 * c-parser.c (static): Likewise.
27396 (c_parser_external_declaration): Likewise.
27397 (c_parser_declaration_or_fndef): Likewise.
27398 (c_parser_static_assert_declaration_no_se): Likewise.
27399 (c_parser_enum_specifier): Likewise.
27400 (c_parser_struct_or_union_specifier): Likewise.
27401 (c_parser_struct_declaration): Likewise.
27402 (c_parser_alignas_specifier): Likewise.
27403 (c_parser_braced_init): Likewise.
27404 (c_parser_initelt): Likewise.
27405 (c_parser_compound_statement_nostart): Likewise.
27406 (c_parser_conditional_expression): Likewise.
27407 (c_parser_alignof_expression): Likewise.
27408 (c_parser_postfix_expression): Likewise.
27409 (c_parser_postfix_expression_after_paren_): Likewise.
27410 (c_parser_objc_class_instance_variables): Likewise.
27411 (c_parser_objc_method_definition): Likewise.
27412 (c_parser_objc_methodprotolist): Likewise.
27414 2012-04-22 Ian Lance Taylor <iant@google.com>
27416 * godump.c (go_output_typedef): Dump size of structs.
27418 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
27420 Correcting transform_to_exit_first_loop + fix to PR46886
27421 * tree-parloops.c (transform_to_exit_first_loop): Remove
27422 setting of number of iterations according to the loop pattern.
27423 Duplicate from entry to exit->src instead of loop->latch.
27424 (pallelize_loops): Remove the condition preventing do-while loops.
27425 * tree-cfg.c (bool bb_in_region_p): New.
27426 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
27427 Adjust redirection of the duplicated iteration.
27429 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
27432 * rtl.def (ADDRESS): Use "i" rather than "w".
27433 * rtl.h (find_base_term): Delete.
27434 (may_be_sp_based_p): Declare.
27435 * rtl.c (rtx_code_size): Remove ADDRESS special case.
27436 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
27437 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
27438 * alias.c: ...here.
27439 (find_base_term): Make static.
27440 (may_be_sp_based_p): New function.
27441 * dse.c (record_store): Use it.
27442 * store-motion.c (store_killed_in_insn): Likewise.
27444 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
27446 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
27448 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27451 * c-typeck.c (inform_declaration): New.
27452 (build_function_call_vec): Do not pretty-print
27453 expressions when caret is enabled.
27454 (convert_arguments): Use inform_declaration.
27456 2012-04-20 Jim Meyering <meyering@redhat.com>
27458 * genmodes.c (make_complex_modes): Don't truncate a mode name of
27459 length 7 or more when prepending a "C". Suggested by Richard Guenther.
27461 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27463 PR rtl-optimization/44214
27464 * fold-const.c (exact_inverse): New function.
27465 (fold_binary_loc): Fold vector and complex division by constant into
27466 multiply by recripocal with flag_reciprocal_math; fold vector division
27467 by constant into multiply by reciprocal with exact inverse.
27469 2012-04-20 Jan Hubicka <jh@suse.cz>
27471 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
27473 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
27474 (cgraph_remove_node): Update.
27475 (cgraph_mark_needed_node): Remove.
27476 (cgraph_mark_force_output_node): New.
27477 (dump_cgraph_node): Do not dump needed flag.
27478 (cgraph_node_cannot_be_local_p_1): Update.
27479 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
27480 * cgraph.h (symtab_node_base): Add force_output flag.
27481 (cgraph_node): Remove needed flag.
27482 (varpool_node): Remove force_output flag.
27483 (cgraph_mark_needed_node): Remove.
27484 (cgraph_mark_force_output_node): New.
27485 (cgraph_only_called_directly_or_aliased_p,
27486 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
27487 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
27488 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
27489 (cgraph_add_new_function): Update.
27490 (cgraph_mark_if_needed): Update.
27491 (verify_cgraph_node): Update.
27492 (cgraph_analyze_function): Alias target is reachable.
27493 (process_function_and_variable_attributes): Update: externally_visible
27494 flag makes function reachable.
27495 (cgraph_analyze_functions): Update dumping.
27496 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27497 input_overwrite_node, input_varpool_node): Update streaming.
27498 * lto-streamer-out.c (produce_symtab): Use force_output.
27499 * ipa.c (process_references): Weakrefs must be processed.
27500 (cgraph_remove_unreachable_nodes): Likewise; update for new
27502 (varpool_externally_visible_p): Weakrefs are externally visible
27503 even if they are not.
27504 (function_and_variable_visibility): Update; when processing alias
27505 pair force the targets to be output.
27506 (whole_program_function_and_variable_visility): Use
27507 mark_reachable_node.
27508 * trans-mem.c (ipa_tm_mark_needed_node): Remove
27509 (ipa_tm_mark_force_output_node): New function.
27510 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27511 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
27513 * varasm.c (mark_decl_referenced): Update.
27514 (find_decl_and_mark_needed): Remove.
27515 (find_decl): New function.
27516 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
27517 alias targets as needed.
27518 (dump_tm_clone_pairs): Update.
27519 * tree-inline.c (copy_bb): Update check.
27520 * symtab.c (dump_symtab_base): Dump force_output.
27521 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
27522 * passes.c (execute_todo): Fix dumping.
27523 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
27524 (varpool_analyze_pending_decls): Alias target is reachable.
27525 (varpool_create_variable_alias): Finalize weakrefs.
27527 2012-04-20 Jakub Jelinek <jakub@redhat.com>
27530 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
27531 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
27532 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
27533 macros instead of constants.
27534 * dse.c (record_store): Check for SP ADDRESS by comparing
27535 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
27536 XEXP to be stack_pointer_rtx.
27538 2012-04-20 Richard Guenther <rguenther@suse.de>
27540 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
27541 update_call_from_tree when propagating into a call.
27543 2012-04-20 Alan Modra <amodra@gmail.com>
27545 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
27546 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
27547 sp_offset to frame_off. Move world save code earlier.
27549 2012-04-20 Richard Guenther <rguenther@suse.de>
27551 PR tree-optimization/53050
27552 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
27553 Do only one transform on COND_EXPRs at the same time.
27555 2012-04-19 Jan Hubicka <jh@suse.cz>
27557 * symtab.c (dump_symtab_base): Revert accidental checkin.
27559 2012-04-20 Alan Modra <amodra@gmail.com>
27562 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
27563 static chain, set REST_INLINE_FPRS too.
27565 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
27567 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
27570 2012-04-20 Richard Guenther <rguenther@suse.de>
27572 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
27573 loops that can never run more often than the vectorization factor.
27575 2012-04-19 Jan Hubicka <jh@suse.cz>
27577 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
27579 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
27581 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
27583 2012-04-19 Jim Meyering <meyering@redhat.com>
27585 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
27586 We verified above that the string(including trailing NUL) fits in buf,
27587 so just use memcpy.
27589 2012-04-19 Richard Guenther <rguenther@suse.de>
27591 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
27592 for dumping DECL_SECTION_NAME.
27594 2012-04-19 Michael Matz <matz@suse.de>
27596 PR middle-end/52977
27597 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
27598 (struct tree_vector): Adjust GTY length.
27599 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
27601 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
27603 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
27604 caller emitted the length calulation already.
27605 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
27606 before handling any of the fields for structs.
27608 2012-04-19 Richard Guenther <rguenther@suse.de>
27610 PR tree-optimization/53031
27611 * tree-vrp.c (adjust_range_with_scev): Revert back to
27612 using max_loop_iterations.
27614 2012-04-19 Michael Matz <matz@suse.de>
27616 * diagnostic.c (emit_diagnostic): Move va_end call after user
27618 (warning, warning_at, pedwarn, permerror): Ditto.
27620 2012-04-19 Richard Guenther <rguenther@suse.de>
27622 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
27625 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
27628 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
27629 the case *(X+const).
27631 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27633 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
27635 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
27638 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
27639 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
27641 2012-04-19 Richard Guenther <rguenther@suse.de>
27643 PR rtl-optimization/44688
27644 * loop-iv.c (determine_max_iter): Only return max_iter.
27645 (iv_number_of_iterations): Also use the recorded loop bound
27646 on the maximum number of iterations.
27647 * loop-unroll.c (decide_unroll_runtime_iterations): Use
27648 max_iter to avoid unrolling loops that do not roll.
27649 (decide_unroll_stupid): Likewise.
27651 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
27653 * targhooks.c (default_case_values_threshold): Fix code style nit.
27655 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
27656 case range and type folding from here...
27657 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
27658 type, as documented in tree.def.
27660 2012-04-18 Jan Hubicka <jh@suse.cz>
27662 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
27664 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
27665 cgraph hash and same comdat groups.
27666 (cgraph_optimize): Verify symbol table.
27667 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
27668 (dissolve_same_comdat_group_list): Work on symtab nodes.
27669 (function_and_variable_visibility): Dissolve variable same comdat group
27671 * symtab.c: Include timevar.h
27672 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
27674 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
27676 * tree-switch-conversion.c (info): Remove global pass info.
27677 (check_range, check_process_case, check_final_bb, create_temp_arrays,
27678 free_temp_arrays, gather_default_values, build_constructors,
27679 array_value_type, build_one_array, build_arrays, gen_def_assigns,
27680 fix_phi_nodes, gen_inbound_check): Pass info around from ...
27681 (process_switch): ... here. Unify message format. Return a const
27682 char pointer to the failure reason message.
27683 (do_switchconv): Unify message format. Update process_switch usage.
27685 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
27686 * tree-cfg.c (edge_to_cases): Fix documentation.
27688 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
27690 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
27692 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27694 PR tree-optimization/52976
27695 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
27696 (possibly_move_powi): New function.
27697 (rewrite_expr_tree): Call possibly_move_powi.
27698 (rewrite_expr_tree_parallel): Likewise.
27699 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
27700 call add_to_ops_vec instead.
27702 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27704 PR tree-optimization/52976
27705 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
27706 (decrement_power): Likewise.
27707 (propagate_op_to_single_use): Likewise.
27708 (zero_one_operation): Handle __builtin_pow* calls in linearized
27709 expression trees; factor logic into propagate_op_to_single_use.
27710 (undistribute_ops_list): Allow operands with repeat counts > 1.
27712 2012-04-18 Richard Guenther <rguenther@suse.de>
27714 PR tree-optimization/44688
27715 * cfgloop.h (record_niter_bound): Declare.
27716 * tree-ssa-loop-niter.c (record_niter_bound): Export.
27717 Update the estimation with the upper bound here...
27718 (estimate_numbers_of_iterations_loop): ... instead of here.
27719 Do not forcefully reset a recorded upper bound.
27720 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
27721 Record the maximum number of loop iterations of the prologue loop.
27723 2012-04-18 Jan Hubicka <jh@suse.cz>
27725 * lto-symtab.c (lto_cgraph_replace_node): Update.
27726 * cgraphbuild.c (record_reference, record_type_list,
27727 record_eh_tables, mark_address, mark_load, mark_store): Update.
27728 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
27729 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
27731 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
27732 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
27733 * reload.c: Fix typo in comment.
27734 * rtlanal.c: Likewise.
27735 * tree-emultls.c (gen_emutls_addr): Update.
27736 * ipa-reference.c (analyze_function): Update.
27737 * cgraphunit.c (cgraph_analyze_function,
27738 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
27740 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
27741 (ipa_remove_reference): Likewise.
27742 (ipa_remove_all_refering): Rename to ...
27743 (ipa_remove_all_referring): ... this one; update.
27744 (ipa_dump_references): Update.
27745 (ipa_dump_referring): Update.
27746 (ipa_clone_references): Update.
27747 (ipa_clone_refering): Rename to ...
27748 (ipa_clone_referring): ... this one; update.
27749 (ipa_ref_cannot_lead_to_return): Update.
27750 (ipa_ref_has_aliases_p): Update.
27751 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
27753 (ipa_ref_type): Remove.
27754 (ipa_ref_ptr_u): Remove.
27755 (ipa_ref): Remove referencing, refered, refered_index, refering_type
27756 and refered_type; add referring, referred and referred_index.
27757 (ipa_ref_list): Rename refering to referring.
27758 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
27759 ipa_clone_references, ipa_clone_referring): Update prototypes.
27760 * lto-cgraph.c (referenced_from_other_partition_p): Update.
27761 (lto_output_ref): Update.
27762 (add_references): Update.
27763 (input_varpool_node): Update.
27764 (input_refs): Update.
27765 * ipa-ref-inline.h (ipa_ref_node): Update.
27766 (ipa_ref_varpool_node): Update.
27767 (ipa_ref_referring_node): Update.
27768 (ipa_ref_referring_varpool_node): Update.
27769 (ipa_ref_referring_ref_list): Update.
27770 (ipa_ref_referred_ref_list): Update.
27771 (ipa_ref_list_first_referring): Update.
27772 (ipa_empty_ref_list): Update.
27773 (ipa_ref_list_refering_iterate): Rename to ...
27774 (ipa_ref_list_referring_iterate): ... this one.
27775 * cse.c: Update comment.
27776 * ipa-utils.c (ipa_reverse_postorder): Update.
27777 * tree-ssa-alias.c: Update.
27778 * ipa-inline.c (reset_edge_caches): Update.
27779 (update_caller_keys): Update.
27780 * ipa-inline.h: Update comments.
27781 * jump.c: Update comment.
27782 * alias.c: Likewise.
27783 * ipa.c (process_references): Update.
27784 (cgraph_remove_unreachable_nodes): Likewise.
27785 (ipa_discover_readonly_nonaddressable_var): Likewise.
27786 (cgraph_address_taken_from_non_vtable_p): Likewise.
27787 * trans-mem.c (ipa_tm_execute): Update.
27788 * simplify-rtx.c: Fix comment.
27789 * rtl.c: Fix comment.
27790 * symtab.c (symtab_unregister_node): Update.
27791 * varpool.c (dump_varpool_node): Update.
27792 (varpool_analyze_pending_decls): Update.
27793 (assemble_aliases): Update.
27794 (varpool_for_node_and_aliases): Update.
27796 2012-04-18 Richard Guenther <rguenther@suse.de>
27798 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
27799 use_undefined_p parameter.
27800 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
27801 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
27803 (estimate_numbers_of_iterations): Likewise.
27804 (estimated_loop_iterations): Adjust.
27805 (max_loop_iterations): Likewise.
27806 (scev_probably_wraps_p): Likewise.
27807 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
27808 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
27809 not max_loop_iterations.
27810 (execute_vrp): Remove explicit number of iterations estimation.
27812 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
27814 * config/i386/linux-common.h: New.
27816 * config.gcc: Add i386/linux-common.h before
27817 all i386/linux.h and i386/linux64.h usages.
27819 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
27820 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
27821 * config/i386/gnu-user64.h: Likewise.
27823 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
27824 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
27825 (GNU_USER_TARGET_MATHFILE_SPEC): New.
27826 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
27828 2012-04-18 Jan Hubicka <jh@suse.cz>
27830 * cgraph.c (cgraph_node_name): Remove.
27831 (dump_cgraph_node): Use dump_symtab_base; reformat.
27832 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
27833 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
27835 (cgraph_node_name, varpool_node_name): Remove.
27836 (cgraph_node_asm_name, varpool_node_asm_name,
27837 cgraph_node_name, varpool_node_name): New.
27838 * tree-pass.h (TODO_dump_cgraph): Rename to ...
27839 (TODO_dump_symtab): ... this one.
27840 * ipa-cp (pass_ipa_cp): Update.
27841 * ia-reference.c (generate_summary, read_write_all_from_decl,
27842 propagate, ipa_reference_read_optimization_summary): Update.
27843 * cgraphunit.c (cgraph_analyze_functions): Update.
27844 (cgraph_optimize): Update.
27845 * ipa-ref.c (ipa_dump_references): Update.
27846 (ipa_dump_refering): Update.
27847 * ipa-inline.c (pass_ipa_inline): Update.
27848 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
27849 * ipa.c (pass_ipa_function_visibility,
27850 pass_ipa_whole_program_visibility): Update.
27851 * tree-sra.c (pass_early_ipa_sra): Update.
27852 * symtab.c: Include langhooks.h
27853 (symtab_node_asm_name): New.
27854 (symtab_node_name): New.
27855 (symtab_type_names): New static var.
27856 (dump_symtab_base): New.
27857 (dump_symtab_node, dump_symtab): New.
27858 (debug_symtab_node, debug_symtab): New.
27859 * tree-ssa-structalias.c: Dump symbol table.
27860 * pases.c (execute_todo): Handle TODO_dump_symtab instead
27861 of TODO_dump_cgraph.
27862 * varpoo.c (varpool_node_name): Remove.
27863 (dump_varpool_node): Use dump_symtab_base; reformat.
27865 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
27867 * doc/invoke.texi (Language Independent Options): @item should be
27870 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
27873 * rtl.c (rtx_code_size): Handle ADDRESS.
27875 2012-04-17 Tom de Vries <tom@codesourcery.com>
27877 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
27878 is not a STMT_LIST.
27880 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
27883 * config/i386/sync.md (atomic_<code><mode>): Rename to
27884 atomic_<logic><mode>.
27886 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
27888 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
27889 * alias.c (reg_base_value): Expand and update comment.
27890 (arg_base_value): New variable.
27891 (unique_id): Move up file.
27892 (unique_base_value, unique_base_value_p, known_base_value_p): New.
27893 (find_base_value): Use arg_base_value and known_base_value_p.
27894 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
27895 (find_base_term): Use known_base_value_p.
27896 (base_alias_check): Use unique_base_value_p.
27897 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
27898 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
27900 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
27902 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
27904 2012-04-17 Michael Matz <matz@suse.de>
27906 PR tree-optimization/18437
27907 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
27908 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
27909 (vect_check_strided_load): Declare.
27910 * tree-vect-data-refs.c (vect_check_strided_load): New function.
27911 (vect_analyze_data_refs): Use it to accept strided loads.
27912 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
27914 2012-04-17 Richard Guenther <rguenther@suse.de>
27916 PR middle-end/53011
27917 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
27918 loops when redirecting an entry or latch edge.
27920 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
27922 * sel-sched.c (sel_global_init): Revert previous change.
27924 2012-04-17 Richard Guenther <rguenther@suse.de>
27926 * tree-flow.h (array_at_struct_end_p): Move declaration ...
27927 * tree.h (array_at_struct_end_p): ... here.
27928 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
27929 * expr.c (array_at_struct_end_p): ... here. Rewrite.
27931 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
27933 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
27934 COST_TABLE): Remove.
27935 (estimate_case_costs): Remove.
27936 (expand_case): Do not call estimate_case_costs
27937 to set use_cost_table.
27938 (balance_case_nodes): Do not use use_cost_table.
27940 2012-04-16 Jan Hubicka <jh@suse.cz>
27942 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
27943 (hash_node, eq_node): Remove.
27944 (cgraph_create_node): Do not handle hashtable.
27945 (cgraph_get_node): Remove.
27946 (cgraph_insert_node_to_hashtable): Remove.
27947 (hash_node_by_assembler_name): Remove.
27948 (eq_assembler_name): Remove.
27949 (cgraph_node_for_asm): Rewrite.
27950 (cgraph_find_replacement_node): Break out from ...
27951 (cgraph_remove_node): ... here; do not maintain hashtables.
27952 (change_decl_assembler_name): Remove.
27953 (cgraph_clone_node): Do not maintain hashtables.
27954 * cgraph.h (const_symtab_node): New typedef.
27955 (cgraph_insert_node_to_hashtable): Remove.
27956 (symtab_get_node, symtab_node_for_asm,
27957 symtab_insert_node_to_hashtable): Declare.
27958 (cgraph_find_replacement_node): Declare.
27959 (cgraph_get_node, varpool_get_node): Turn into inlines.
27960 (cgraph, varpool): Work sanely on NULL pointers.
27961 (FOR_EACH_SYMBOL): New walker.
27962 * ipa-inline-transform.c (save_inline_function_body): Use
27963 symtab_insert_node_to_hashtable.
27964 * symtab.c: Include ggc.h and diagnostics.h
27965 (symtab_hash, assembler_name_hash): New static vars;
27966 (hash_node, eq_node, hash_node_by_assembler_name,
27967 eq_assembler_name, insert_to_assembler_name_hash,
27968 unlink_from_assembler_name_hash): New.
27969 (symtab_register_node): Update hashtables.
27970 (symtab_insert_node_to_hashtable): New.
27971 (symtab_unregister_node): Update hashtables.
27972 (symtab_get_node): New.
27973 (symtab_node_for_asm): New.
27974 (change_decl_assembler_name): New.
27975 * Makefile.in (symtab.o): Needs GTY.
27976 * varpool.c (varpool_hash): Remove.
27977 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
27978 (varpool_node): Rewrite using varpool_get_node.
27979 (varpool_remove_node): DO not maintain hashtables.
27980 (varpool_node_for_asm): Rewrite.
27982 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
27984 * doc/invoke.texi: Copy-edit to put verbs in the present tense
27985 when describing the current behavior of GCC.
27987 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
27989 * genemit.c (gen_exp): Remove ADDRESS handling.
27990 * genoutput.c (scan_operands): Likewise.
27991 * genpeep.c (match_rtx): Likewise.
27992 * genrecog.c (add_to_sequence): Likewise.
27994 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
27996 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
27998 2012-04-16 Martin Jambor <mjambor@suse.cz>
28000 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
28003 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
28006 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
28007 hints for 'A' operand types.
28009 2012-04-16 Jan Hubicka <jh@suse.cz>
28011 * cgraph.h (symtab_node_base): Add next and previous pointers.
28012 (cgraph_node): Remove next and preivous pointers.
28013 (varpool_node): Likewise; remove next/previous GTY marker;
28014 it is not type safe.
28015 (symtab_node_def): Update GTY marker
28016 (x_cgraph_nodes, cgraph_nodes): Remove.
28017 (symtab_nodes): New function.
28018 (cgraph_order): Rename to ...
28019 (symtab_order): ... this one.
28020 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
28022 (x_varpool_nodes, varpool_nodes): Remove.
28023 (FOR_EACH_STATIC_VARIABLE): Update.
28024 (symtab_function_p, symtab_variable_p): New function.
28025 (FOR_EACH_VARIABLE): Update.
28026 (varpool_first_variable, varpool_next_variable): New functions.
28027 (FOR_EACH_VARIABLE): Update.
28028 (cgraph_first_defined_function): Update.
28029 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
28030 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
28031 (cgraph_first_function, cgraph_next_function): New.
28032 (FOR_EACH_FUNCTION): Update.
28033 (cgraph_first_function_with_gimple_body,
28034 cgraph_next_function_with_gimple_body): Update.
28035 * symtab.c: New file.
28036 * cgraph.c: Update copyright dates.
28037 (x_cgraph_nodes, cgraph_order): Remove.
28038 (NEXT_FREE_NODE): Update.
28039 (SET_NEXT_FREE_NODE): New.
28040 (cgraph_create_node_1): Remove common code.
28041 (cgraph_create_node): Remove common code; call symtab_register_node.
28042 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
28043 (cgraph_add_asm_node): Update.
28044 (cgraph_clone_node): Register new node.
28045 * cgraphunit.c (process_function_and_variable_attributes): Update.
28046 (cgraph_analyze_functions): Update.
28047 (cgraph_analyze_functions): Update.
28048 (cgraph_output_in_order): Update.
28049 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
28051 * ipa-inline.c (recursive_inlining): Update.
28052 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
28053 * ipa.c (cgraph_remove_unreachable_nodes): Update.
28054 * Makefile.in: Add symtab.o
28055 * varpool.c (x_varpool_nodes): Remove
28056 (varpool_node): Remove common code; call symtab_register_node.
28057 (varpool_remove_node): Remove common code; call symtab_unregister_node.
28059 2012-04-16 Richard Guenther <rguenther@suse.de>
28061 PR middle-end/52977
28062 * tree.h (VECTOR_CST_NELTS): Adjust.
28063 (struct tree_vector): Add explicit length field.
28064 (make_vector_stat): Declare.
28065 (make_vector): Define.
28066 * tree.c (make_vector_stat): New function.
28067 (build_vector_stat): Use it.
28068 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
28070 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28072 PR tree-optimization/52976
28073 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
28074 (undistribute_ops_list): Ops with repeat counts aren't eligible for
28076 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
28078 2012-04-16 Jan Hubicka <jh@suse.cz>
28080 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
28082 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
28083 walkers to walk cgraph and varpool.
28084 * cgraph.c (cgraph_node_for_asm): Likewise.
28085 (dump_cgraph): Likewise.
28086 * value-prof.c (init_node_map): Likewise.
28087 * tree.c (free_lang_data_in_cgraph): Likewise.
28088 * tree-emutls.c: (ipa_lower_emutls): Likewise.
28089 * ipa-reference.c (generate_summary, propagate): Likewise.
28090 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
28091 cgraph_mark_functions_to_output, cgraph_output_in_order,
28092 output_weakrefs, cgraph_materialize_all_clones,
28093 cgraph_optimize): Likewise.
28094 * lto-cgraph.c (merge_profile_summaries): Likewise.
28095 (input_cgraph): Likewise.
28096 * ipa-pure-const.c (generate_summary): Likewise.
28097 (propagate): Likwise.
28098 * ipa-utils.c (ipa_reduced_postorder): Likewise.
28099 (ipa_free_postorder_info): Likewise.
28100 (ipa_reverse_postorder): Likewise.
28101 * ipa-inline.c (ipa_inline): Likewise.
28102 * matrix-reorg.c (find_matrices_decl): Likewise.
28103 (matrix_reorg): Likewise.
28104 * tree-vectorizer.c (increase_alignment): Likewise.
28105 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
28106 (function_and_variable_visibility): Likewise.
28107 (whole_program_function_and_variable_visibility): Likewise.
28108 (ipa_cdtor_merge): Likewise.
28109 * trans-mem.c (ipa_tm_execute): Likewise.
28110 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
28111 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
28112 (ipa_print_all_params): Likewise.
28113 (ipa_update_after_lto_read): Likewise.
28114 * tree-profie.c (tree_profiling): Likewise.
28115 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
28116 * passes.c (dump_passes): Likewise.
28117 (do_per_function): Likewise.
28118 (ipa_write_summaries): Likewise.
28119 * varpool.c (dump_varpool): Likewise.
28120 (varpool_node_for_asm): Likewise.
28121 (varpool_assemble_pending_decls): Likewise.
28123 2012-04-16 Richard Guenther <rguenther@suse.de>
28125 PR tree-optimization/52975
28126 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
28127 condition but always mark it with TRUTH_NOT_EXPR.
28129 2012-04-16 Richard Guenther <rguenther@suse.de>
28131 PR tree-optimization/52975
28132 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
28133 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
28134 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
28135 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
28137 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
28139 * config/i386/sse.md (ssse3_plusminus): New code iterator.
28140 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
28141 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
28142 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
28143 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
28144 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
28145 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
28147 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
28148 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
28149 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
28150 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
28151 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
28152 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
28154 (xop_plus): New code iterator.
28155 (macs): New code attribute.
28157 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
28158 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
28160 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
28161 xop_plus code iterator.
28162 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
28163 xop_plus code iterator.
28164 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
28165 xop_plus code iterator.
28166 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
28167 xop_plus code iterator.
28169 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
28170 any_extend code iterator.
28171 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
28172 any_extend code iterator.
28173 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
28174 any_extend code iterator.
28175 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
28176 any_extend code iterator.
28177 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
28178 any_extend code iterator.
28179 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
28180 any_extend code iterator.
28182 2012-04-14 Tom de Vries <tom@codesourcery.com>
28184 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
28185 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
28186 DELETED_LABEL note, and move it to ...
28187 * cfgrtl.c (delete_insn): ... here. Change return type to void.
28188 (delete_insn_and_edges): Likewise.
28189 (delete_insn_chain): Handle new return type of delete_insn. Delete
28190 chain backwards rather than forwards.
28191 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
28193 * cfglayout.c (fixup_reorder_chain): Delete unused label.
28195 2012-04-14 Jan Hubicka <jh@suse.cz>
28197 * cgraph.h: Update copyrights;
28198 (symtab_node): Turn to union typedef.
28199 (symtab_node_base): New structure.
28200 (symtab_type): Add SYMTAB_SYMBOL tag.
28201 (cgraph_node): Annotate some pinters with nested_ptr.
28202 (varpool_node): Likewise.
28203 (cgraph_local_info): Remove lto_file_data
28204 and externally_visible.
28205 (cgraph_node): Remove decl; same_comdat_group list;
28206 aux; ref_list; order; address_taken; reachable_from_other_parittion,
28207 in_other_partition; resolution.
28208 (varpool_node): Remove decl; same_comdat_group;
28209 ref_list; lto_file_data; aux; order; resolution; externally_visible;
28210 used_from_other_partition; in_other_partition.
28211 (symtab_node_def): New union.
28212 (cgraph, varpool): Update.
28213 (varpool_first_static_initializer, varpool_next_static_initializer,
28214 cgraph_only_called_directly_or_aliased_p,
28215 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
28216 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
28217 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
28219 * cgraph.c: Likewise.
28220 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
28221 * cgraphbuild.c: Likewise.
28222 * lto-symtab.c: Likewise.
28223 * c-gimplify.c: Likewise.
28224 * value-prof.c: Likewise.
28225 * tree.c: Likewise.
28226 * ipa-cp.c: Likewise.
28227 * tree-emutls.c: Likewise.
28228 * ipa-inline-transform.c: Likwise.
28229 * ipa-reference.c: Likewise.
28230 * cgraphunit.c: Likewise.
28231 * ipa-ref.c: Likewise.
28232 * lto-cgraph.c: Likewise.
28233 * ipa-ref-inline.h: Likewise.
28234 * ipa-pure-const.c: Likewise.
28235 * lto-streamer-out.c: Likewise.
28236 * ipa-utils.c: Likewise.
28237 * ipa-inline.c: Likewise.
28238 * matrix-reorg.c: Likewise.
28239 * tree-eh.c: Likewise.
28240 * tree-vectorizer.c: Likewise.
28241 * ipa-split.c: Likewise.
28243 * trans-mem.c: Likewise.
28244 * ipa-inline-analysis.c: Likewise.
28245 * gimplify.c: Likewise.
28246 * cfgexpand.c: Likewise.
28247 * tree-sra.c: Likewise.
28248 * ipa-prop.c: Likewise.
28249 * varasm.c: Likewise.
28250 * tree-nested.c: Likewise.
28251 * tree-inline.c: Likewise.
28252 * tree-profile.c: Likewise.
28253 * tree-ssa-structalias.c: Likewise.
28254 * passes.c: Likewise.
28255 * varpool.c: Likewise.
28257 2012-04-14 Tom de Vries <tom@codesourcery.com>
28259 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
28260 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
28261 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
28263 (gsi_advance_fw_nondebug_nonlocal): New function.
28264 (local_def): Removed function.
28265 (same_succ_hash): Use stmt_local_def.
28266 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
28267 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
28269 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
28271 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
28272 and __ILP32__ for x32.
28274 2012-04-13 Martin Jambor <mjambor@suse.cz>
28276 PR middle-end/52939
28277 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
28278 fold_ctor_reference returns a zero constant.
28280 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
28282 * config.gcc: Add i386/gnu-user-common.h before all
28283 i386/gnu-user.h and i386/gnu-user64.h usages.
28285 * config/i386/gnu-user-common.h: New.
28287 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
28288 (CC1_SPEC): Likewise.
28289 (ENDFILE_SPEC): Likewise.
28290 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
28291 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
28292 (TARGET_OS_CPP_BUILTINS): Likewise.
28293 (LIBGCC2_HAS_TF_MODE): Likewise.
28294 (LIBGCC2_TF_CEXT): Likewise.
28295 (TF_SIZE): Likewise.
28296 (TARGET_ASM_FILE_END): Likewise.
28297 (STACK_CHECK_MOVING_SP): Likewise.
28298 (STACK_CHECK_STATIC_BUILTIN): Likewise.
28299 * config/i386/gnu-user64.h: Likewise.
28301 2012-04-13 Martin Jambor <mjambor@suse.cz>
28303 * expr.c (expand_expr_real_1): Pass type, not the expression, to
28304 set_mem_attributes for a memory temporary. Do not call the function
28305 for the memory temporary created for a bitfield.
28307 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
28310 * df.h (enum debug_temp_where): New.
28311 (dead_debug_init, dead_debug_finish) Declare.
28312 (dead_debug_add, dead_debug_insert_temp): Declare.
28313 (struct dead_debug_use, struct dead_debug): Moved from...
28314 * df-problems.c: ... here.
28315 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
28317 (df_create_unused_note): Likewise.
28318 (df_set_dead_notes_for_mw): Move comment where it belongs.
28319 (dead_debug_init): Export.
28320 (dead_debug_reset_uses): New, factored out of...
28321 (dead_debug_finish): ...this. Export.
28322 (dead_debug_reset): Remove.
28323 (dead_debug_add): Export.
28324 (dead_debug_insert_before): Rename to...
28325 (dead_debug_insert_temp): ... this. Add where argument. Export.
28326 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
28327 Return insertion count.
28328 (df_note_bb_compute): Adjust.
28329 * dce.c (word_dce_process_block): Adjust dead debug uses.
28330 (dce_process_block): Likewise.
28332 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
28334 * df-problems.c (df_note_bb_compute): Do not take note of
28335 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
28337 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
28340 * var-tracking.c (expand_depth): New type.
28341 (onepart_aux, expand_loc_callback_data): Change depth type to it.
28342 (loc_exp_dep_alloc): Adjust initializer.
28343 (update_depth): Use new type. Add entryvals.
28344 (vt_expand_var_loc_chain): Take note of expansions with
28345 ENTRY_VALUEs, but don't accept them right away. Run an optional
28346 second pass accepting the minimum ENTRY_VALUE count found in the
28348 (vt_expand_loc_callback, INIT_ELCD): Adjust.
28350 2012-04-13 Tom de Vries <tom@codesourcery.com>
28352 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
28353 parameters vuse and vuse_escaped.
28354 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
28355 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
28358 2012-04-13 Richard Guenther <rguenther@suse.de>
28360 PR tree-optimization/52969
28361 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
28362 the condition for the COND_EXPR and handle predicate negation
28363 by swapping the COND_EXPR arms.
28365 2012-04-13 Nick Clifton <nickc@redhat.com>
28367 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
28368 TODO_dump_func flag.
28370 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
28372 PR rtl-optimization/52203
28373 PR rtl-optimization/52715
28375 Revert the 2012-03-07 fix for PR 52203.
28376 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
28377 the insn does not modify DFA right before issuing, adjust
28378 issue_rate accordingly.
28380 2012-04-13 Richard Guenther <rguenther@suse.de>
28383 * c-typeck.c (pointer_diff): Remove bogus assert.
28385 2012-04-13 Richard Guenther <rguenther@suse.de>
28388 * convert.c (convert_to_pointer): Remove special-casing of zero.
28390 2012-04-13 Joey Ye <joey.ye@arm.com>
28392 * config/arm/constraints.md (Pe): New constraint.
28393 * config/arm/arm.md: New split for imm 256-510.
28395 2012-04-13 Terry Guo <terry.guo@arm.com>
28397 * config/arm/arm-cores.def: Added core cortex-m0plus.
28398 * config/arm/arm-tune.md: Regenerated.
28399 * config/arm/arm-tables.opt: Regenerated.
28400 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
28402 2012-04-13 Alan Modra <amodra@gmail.com>
28405 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
28406 tie regs on destination of sets. Delete forward declaration.
28407 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
28408 (rs6000_emit_prologue): Likewise.
28409 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
28411 (is_mem_ref): Use tie_operand to recognise stack ties.
28412 * config/rs6000/predicates.md (tie_operand): New.
28413 * config/rs6000/rs6000.md (restore_stack_block): Generate new
28415 (restore_stack_nonlocal): Likewise.
28416 (stack_tie): Update.
28417 (frame_tie): Delete.
28419 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28421 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
28422 HOST_WIDE_INT_PRINT_DEC in format strings.
28424 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
28427 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
28428 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
28429 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
28430 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
28431 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
28432 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
28433 avx2_permvarv8si using VI4F_256 mode iterator.
28434 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
28435 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
28436 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
28437 gen_avx2_permvarv8sf.
28438 (expand_vec_perm_pshufb): Ditto.
28440 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28443 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
28444 the list of options to enable the FCFID instruction.
28445 (TARGET_EXTRA_BUILTINS): Adjust comment.
28447 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28449 PR tree-optimization/18589
28450 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
28451 (operand_entry): Add count field.
28452 (add_repeat_to_ops_vec): New function.
28453 (completely_remove_stmt): Likewise.
28454 (remove_def_if_absorbed_call): Likewise.
28455 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
28456 (acceptable_pow_call): New function.
28457 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
28458 entries with repeat counts when found.
28459 (repeat_factor_d): New struct and associated typedefs.
28460 (repeat_factor_vec): New static vector variable.
28461 (compare_repeat_factors): New function.
28462 (get_reassoc_pow_ssa_name): Likewise.
28463 (attempt_builtin_powi): Likewise.
28464 (reassociate_bb): Call attempt_builtin_powi.
28465 (fini_reassoc): Two new calls to statistics_counter_event.
28467 2012-04-12 Richard Guenther <rguenther@suse.de>
28469 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
28470 * cgraph.h (tree_rest_of_compilation): Remove.
28471 * cgraph.c (cgraph_add_new_function): Move ...
28472 * cgraphunit.c (cgraph_add_new_function): ... here.
28473 (tree_rest_of_compilation): Make static.
28474 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
28475 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
28476 gate_all_early_local_passes, execute_all_early_local_passes,
28477 pass_early_local_passes, gate_all_early_optimizations,
28478 pass_all_early_optimizations): Move ...
28479 * passes.c (gate_all_optimizations, pass_all_optimizations,
28480 gate_all_early_local_passes, execute_all_early_local_passes,
28481 pass_early_local_passes, gate_all_early_optimizations,
28482 pass_all_early_optimizations): ... here.
28483 * tree-optimize.c (execute_free_datastructures): Remove.
28484 * tree-flow.h (execute_free_datastructures): Remove.
28485 * tree-optimize.c (execute_init_datastructures,
28486 pass_init_datastructures): Move ...
28487 * tree-ssa.c (execute_init_datastructures,
28488 pass_init_datastructures): ... here.
28489 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
28490 execute_free_datastructures.
28492 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
28494 * dbgcnt.def (ira_move): New counter.
28495 * ira-int.h (ira_create_new_reg): Declare function.
28496 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
28497 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
28498 no longer static. All callers changed.
28499 * ira.c: Include "dbgcnt.h".
28500 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
28501 move_unallocated_pseudos): New static functions.
28502 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
28503 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
28504 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
28505 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
28506 to the pseudos generated in find_moveable_pseudos.
28507 * Makefile.in (ira.o): Add $(DBGCNT_H).
28509 2012-04-12 Richard Guenther <rguenther@suse.de>
28511 PR tree-optimization/52943
28512 * tree-chrec.h (chrec_is_positive): Remove.
28513 * tree-scalar-evolution.c (chrec_is_positive): Move ...
28514 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
28515 Return false for a constant zero instead of negative.
28516 (analyze_siv_subscript_cst_affine): Handle zero difference
28517 in the initial condition explicitely.
28519 2012-04-12 Richard Guenther <rguenther@suse.de>
28521 * tree-parloops.c (parallelize_loops): Also consult the upper
28522 bound for the number of iterations.
28523 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
28524 (loop_prefetch_arrays): Likewise.
28526 2012-04-12 Richard Guenther <rguenther@suse.de>
28528 * cfgloop.h (estimated_loop_iterations_int): Ditch
28529 'conservative' parameter.
28530 (max_stmt_executions_int): Likewise.
28531 (estimated_loop_iterations): Likewise.
28532 (max_stmt_executions): Likewise.
28533 (max_loop_iterations): Declare.
28534 (max_loop_iterations_int): Likewise.
28535 (estimated_stmt_executions): Likewise.
28536 (estimated_stmt_executions_int): Likewise.
28537 * tree-ssa-loop-niter.c (estimated_loop_iterations):
28539 (max_loop_iterations): ... this.
28540 (estimated_loop_iterations_int): Split parts to ...
28541 (max_loop_iterations_int): ... this.
28542 (max_stmt_executions_int): Split parts to ...
28543 (estimated_stmt_executions_int): ... this.
28544 (max_stmt_executions): Split parts to ...
28545 (estimated_stmt_executions): ... this.
28546 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
28547 * predict.c (predict_loops): Likewise.
28548 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
28549 (analyze_siv_subscript_cst_affine): Likewise.
28550 (compute_overlap_steps_for_affine_1_2): Likewise.
28551 (analyze_subscript_affine_affine): Likewise.
28552 (init_omega_for_ddr_1): Likewise.
28553 * tree-parloops.c (parallelize_loops): Likewise.
28554 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28555 (may_eliminate_iv): Likewise.
28556 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
28557 (loop_prefetch_arrays): Likewise.
28558 * tree-vrp.c (adjust_range_with_scev): Likewise.
28560 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
28562 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
28563 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
28565 (dump_table): Use bool type for need_align and have_df variables.
28566 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
28567 (regs_used): Remove register modifier.
28568 (barrier_align): Move variables slot, credit, jump_to_next
28569 into if block above for loop. Use bool type for jump_to_next.
28570 (sh_function_arg): Use NULL_RTX instead of 0.
28572 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
28574 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
28575 (bswapsi2): New expander.
28577 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
28579 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
28580 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
28582 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
28584 PR rtl-optimization/52876
28585 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
28586 Don't call mark_reg_pointer for incompatible pointer sign extension.
28588 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
28591 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
28593 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
28594 comparisons against TYPE_PRECISION.
28595 * tree-ssa-forwprop.c (combine_conversions): Likewise.
28597 2012-04-11 Xinliang David Li <davidxl@google.com>
28599 * tree-passes.h: Remove TODO_dump_func.
28600 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
28601 * trans-mem.c: Remove TODO_dump_func.
28602 * ira.c: Remove TODO_dump_func.
28604 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
28606 * config/i386/i386.c (ix86_option_override_internal): Check
28607 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
28608 after TARGET_64BIT is updated.
28610 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
28612 * config/sh/sh.h: Remove old secondary reload code.
28614 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
28616 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
28617 (ready_reorder): ... this function.
28619 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
28621 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
28624 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
28625 insns so that no other insn is queued for a time before them.
28627 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
28630 2012-04-11 Richard Guenther <rguenther@suse.de>
28632 PR middle-end/52621
28633 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
28634 consider loop nesting.
28635 (evolution_function_is_univariate_p): Properly check the remainder
28638 2012-04-11 Richard Guenther <rguenther@suse.de>
28640 PR middle-end/52918
28641 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
28643 2012-04-11 Nick Clifton <nickc@redhat.com>
28645 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
28646 information, if requested.
28648 * config/rx/rx.c (rx_expand_prologue): Likewise.
28650 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
28651 Michael Matz <matz@suse.de>
28654 * rtlanal.c (unsigned_reg_p): New function.
28655 Update copyright notice dates.
28656 * rtl.h (unsigned_reg_p): Prototype it.
28657 Update copyright notice dates.
28658 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
28660 * expr.c (expand_expr_real_1): Set register attributes.
28661 * stmt.c (expand_case): Likewise.
28663 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
28666 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
28667 consider_sh2a and allow_zero.
28668 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
28669 (disp_addr_displacement): New function.
28670 (sh_address_cost): Use disp_addr_displacement function instead
28671 of DISP_ADDR_OFFSET.
28672 (sh_legitimate_address_p): Adapt to changed
28673 sh_legitimate_index_p declaration.
28674 (sh_find_mov_disp_adjust): Remove HImode check.
28675 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
28676 disp_addr_displacement and max_mov_insn_displacement.
28677 (max_mov_insn_displacement): Remove HImode check.
28678 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
28679 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
28680 * config/sh/constraints.md (K05, K13): New constraints.
28681 (K12): Correct comment.
28682 (Sdd): Do not use DISP_ADDR_P macro.
28683 (Snd, Sbw): Use satisfies_constraint_Sdd.
28684 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
28685 (*extendhisi2_compact, movhi_i): Remove.
28686 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
28687 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
28688 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
28689 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
28690 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
28691 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
28692 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
28694 Add new peepholes for HImode displacement addressing.
28696 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
28698 * config/sh/sh.h (SIDI_OFF): Remove.
28699 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
28700 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
28701 or operand_subword.
28703 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
28706 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
28707 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
28708 * doc/md.texi (Standard Names): Add bswap.
28709 * builtin-types.def (BT_UINT16): New primitive type.
28710 (BT_FN_UINT16_UINT16): New function type.
28711 * builtins.def (BUILT_IN_BSWAP16): New.
28712 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
28713 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
28714 expand_builtin_bswap.
28715 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
28716 (fold_builtin_1): Likewise.
28717 (is_inexpensive_builtin): Likewise.
28718 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
28719 missing bits for bswap to libcall code.
28720 * tree.c (build_common_tree_nodes): Build uint16_type_node.
28721 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
28722 (uint16_type_node): New define.
28723 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
28724 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
28726 (rs6000_init_builtins): Likewise.
28727 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
28729 2012-04-11 Tristan Gingold <gingold@adacore.com>
28731 * doc/extend.texi (Type Attributes): Move paragraph.
28733 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
28736 * diagnostic.h (show_caret): Declare.
28737 (caret_max_width): Declare.
28738 (diagnostic_show_locus): Declare.
28739 * diagnostic.c (diagnostic_initialize): Initialize to false.
28740 (diagnostic_show_locus): New.
28741 (diagnostic_report_diagnostic): Call it.
28742 (getenv_columns): New.
28743 (adjust_line): New.
28744 (diagnostic_set_caret_max_width): New.
28745 * input.c (read_line): New.
28746 (location_get_source_line): New.
28747 * input.h (location_get_source_line): Declare.
28748 * toplev.c (general_init): Initialize show_caret from options.
28749 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
28750 * opts.c (common_handle_option): Likewise.
28751 * pretty-print.h (pp_get_prefix): New.
28752 (pp_base_get_prefix): New.
28753 * common.opt (fdiagnostics-show-caret): New option.
28754 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
28756 2012-04-11 Richard Guenther <rguenther@suse.de>
28758 PR rtl-optimization/52881
28759 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
28761 2012-04-11 Richard Guenther <rguenther@suse.de>
28763 PR tree-optimization/52912
28764 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
28765 manipulation code we are threading through a loop header
28766 to an exit destination.
28768 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
28770 * tree.h (warn_if_unused_value): Move declaration from here.
28771 * stmt.c (warn_if_unused_value): Move definition from here.
28773 2012-04-10 Michael Matz <matz@suse.de>
28775 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
28777 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
28778 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
28779 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
28780 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
28781 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
28782 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
28783 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
28784 (vect_record_strided_load_vectors): Rename to
28785 vect_record_grouped_load_vectors.
28786 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
28787 Rename use of above macros.
28788 (vect_verify_datarefs_alignment): Ditto.
28789 (vector_alignment_reachable_p): Ditto.
28790 (vect_peeling_hash_get_lowest_cost): Ditto.
28791 (vect_enhance_data_refs_alignment): Ditto.
28792 (vect_analyze_group_access): Ditto and rename stride to groupsize.
28793 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
28794 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
28795 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
28796 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
28797 (vect_record_strided_load_vectors): Rename to
28798 vect_record_grouped_load_vectors.
28799 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
28800 (destroy_loop_vec_info): Ditto.
28801 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
28802 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
28803 (vect_analyze_slp): Ditto.
28804 (new_bb_vec_info): Ditto.
28805 (destroy_bb_vec_info): Ditto.
28806 (vect_schedule_slp_instance): Ditto and rename strided_store to
28808 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
28809 vect_cost_group_size.
28810 (vect_model_store_cost): Rename use of above macros and call
28811 to vect_cost_strided_group_size.
28812 (vect_model_load_cost): Ditto.
28813 (vectorizable_store): Ditto, rename strided_store to grouped_store
28814 and calls to renamed tree-vectorizer.h functions.
28815 (vectorizable_load): Ditto.
28816 (vect_transform_stmt): Rename use of above macros and strided_store
28819 2012-04-10 Jan Hubicka <jh@suse.cz>
28821 * cgraph.h: Remove misledaing comment on ipa-ref.h.
28822 (symtab_type): New enum.
28823 (symtab_node): New structure.
28824 (cgraph_node, varpool_node): Add symbol base type.
28825 (cgraph, varpool): New accestor functions.
28826 * cgraph.c (cgraph_create_node_1): Set symbol type.
28827 * varpool.c (varpool_node): Set symbol type.
28829 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
28830 Richard Sandiford <rdsandiford@googlemail.com>
28832 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
28834 2012-04-10 Richard Guenther <rguenther@suse.de>
28836 PR middle-end/52888
28837 * gimple-low.c (gimple_check_call_args): Properly account for
28838 compatible aggregate types.
28840 2012-04-10 Richard Guenther <rguenther@suse.de>
28842 * toplev.h (tree_rest_of_compilation): Remove.
28843 * tree-optimize.c (tree_rest_of_compilation): Likewise.
28844 * cgraph.h (tree_rest_of_compilation): Declare.
28845 * tree-optimize.c (tree_rest_of_compilation): Move ...
28846 * cgraphunit.c (tree_rest_of_compilation): ... here.
28847 * cgraph.c (cgraph_add_new_function): Adjust.
28848 * Makefile.in (tree-optimize.o): Adjust.
28849 (cgraphunit.o): Likewise.
28851 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
28853 PR tree-optimization/52870
28854 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
28855 presumed pattern statement is within the same loop or basic block.
28857 2012-04-10 Tristan Gingold <gingold@adacore.com>
28859 * gengtype.c (main): Make uintptr_t a known type.
28861 2012-04-10 Richard Guenther <rguenther@suse.de>
28863 * tree-pass.h (tree_lowering_passes): Remove.
28864 * tree-optimize.c (tree_lowering_passes): Remove.
28865 * cgraph.c (cgraph_add_new_function): Inline relevant parts
28866 of tree_lowering_passes, avoid redundant call of early local passes.
28867 * cgraphunit.c (cgraph_lower_function): Fold into ...
28868 (cgraph_analyze_function): ... its single caller. Inline
28869 relevant parts of tree_lowering_passes.
28871 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
28874 * config/pa/pa.opt: Remove SIO and GNU_LD.
28876 2012-04-09 Jan Hubicka <jh@suse.cz>
28881 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
28882 boundary, add its target too.
28883 * lto.c (add_references_to_partition): Add also aliased nodes.
28884 (add_cgraph_node_to_partition,
28885 add_varpool_node_to_partition): Work on nodes, not functions/variables;
28886 when adding alias, add also the aliased object.
28888 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
28891 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
28892 VOIDmode immediate operands.
28893 * config/i386/constraints.md (Wz): New constraint.
28894 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
28896 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
28899 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
28900 the DECL generated for the special GOT helper.
28902 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
28904 * config/sh/constraints.md: Update list of constraints in
28906 (Sr0): Remove unused memory constraint.
28908 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
28910 * tree-pretty-print.h: Update comment.
28912 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
28914 * config/sh/sh.md: Use braced string notation where applicable.
28915 (*prefetch_i4, prefetch_m2a): Merge into ...
28916 (*prefetch): ... this new insn.
28918 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
28920 * config/sh/sh.h (high_life_started): Remove
28921 * config/sh/predicates.md (general_movdst_operand): Use
28922 'reload_in_progress' instead of 'high_life_started'.
28923 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
28924 divsi_inv_fp): Likewise.
28926 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
28928 * config/sh/sh-protos.h (prepare_move_operands): Return void
28930 * config/sh/sh.c (prepare_move_operands): Likewise.
28931 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
28933 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
28935 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
28936 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
28937 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
28938 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
28939 commutative_float_operator, noncommutative_float_operator,
28940 sh_handle_pragma): Remove.
28942 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
28944 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
28945 Use @option markup on command-line options. Use @samp markup on
28946 literal keywords to options. Use @code markup on code fragments.
28947 Use other markup in preference to quotation marks in the text.
28948 Add markup to some passages without any.
28950 2012-04-06 Mike Stump <mikestump@comcast.net>
28952 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
28954 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
28956 * config/sh/sh.c (hi_const): Remove.
28957 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
28960 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
28962 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
28964 * config/sh/sh.c (sh_expand_t_scc): Likewise.
28965 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
28966 calling sh_expand_t_scc.
28968 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
28970 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
28971 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
28972 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
28973 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
28974 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
28975 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
28976 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
28977 sh2a_is_function_vector_call): Use bool as return type.
28978 (sh_pass_in_reg_p): Remove.
28979 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
28980 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
28981 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
28982 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
28983 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
28984 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
28985 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
28986 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
28987 sh_loads_bankedreg_p): Use bool as return type.
28988 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
28989 'register' modifier.
28991 2012-04-06 Matt Turner <mattst88@gmail.com>
28993 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
28995 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
28997 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
28998 of the destination isn't also a FP_REGS register.
29000 2012-04-05 Teresa Johnson <tejohnson@google.com>
29001 H.J. Lu <hongjiu.lu@intel.com>
29003 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
29004 * config/i386/i386.md (move immediate to memory peephole2):
29005 Add cases for HImode move when LCP stall avoidance is needed.
29006 * config/i386/i386.c (initial_ix86_tune_features): Initialize
29007 X86_TUNE_LCP_STALL entry.
29009 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
29012 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
29013 CONST_INT operands, zero-extended with AND.
29015 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
29018 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
29019 first argument instead of mode size. Move displacement calculations
29021 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
29022 ... these new functions.
29023 (disp_adjust): Remove max_mov_disp field.
29024 (sh_legitimate_index_p): Use max_mov_insn_displacement and
29025 mov_insn_alignment_mask.
29026 (sh_address_cost): Use max_mov_insn_displacement.
29028 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
29030 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
29031 (arch_enabled): Handle new arch types.
29032 (one_cmpldi2): Add NEON support.
29034 2012-04-05 Richard Guenther <rguenther@suse.de>
29036 * gimple.c (walk_gimple_op): Compute val_only for the LHS
29037 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
29038 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
29039 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
29040 ... here and make static.
29041 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
29044 2012-04-05 Richard Guenther <rguenther@suse.de>
29046 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
29047 basic-block before removing it.
29049 2012-04-05 Richard Guenther <rguenther@suse.de>
29051 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
29052 version namespace as we release the freelist.
29054 2012-04-05 Richard Guenther <rguenther@suse.de>
29056 * tree-nrv.c (tree_nrv): Release VDEFs.
29057 * tree-sra.c (sra_modify_constructor_assign): Likewise.
29058 (sra_modify_assign): Likewise.
29059 * tree-vect-stmts.c (vect_remove_stores): Likewise.
29060 * tree-vect-loop.c (vect_transform_loop): Likewise.
29061 * tree-ssa-dom.c (optimize_stmt): Likewise.
29062 * tree-vect-slp.c (vect_schedule_slp): Likewise.
29063 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
29065 2012-04-05 Richard Guenther <rguenther@suse.de>
29067 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
29069 * gimple.h (gsi_remove): Adjust.
29070 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
29071 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
29072 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
29073 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
29074 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
29075 * tree-ssa-pre.c (eliminate): Likewise.
29077 2012-04-04 Mike Stump <mikestump@comcast.net>
29079 * doc/rtl.texi (const_double): Document as sign-extending.
29080 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
29081 * emit-rtl.c (immed_double_int_const): Refine to state the
29083 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
29084 CONST_DOUBLE integers.
29085 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
29086 negative values are converted. Fix conversions bigger than
29087 HOST_BITS_PER_WIDE_INT.
29088 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
29089 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
29090 * explow.c (plus_constant_mode): Add.
29091 (plus_constant): Implement with plus_constant_mode.
29092 * rtl.h (plus_constant_mode): Add.
29094 2012-04-04 Richard Guenther <rguenther@suse.de>
29096 PR tree-optimization/52808
29097 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
29098 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
29100 2012-04-04 Tristan Gingold <gingold@adacore.com>
29102 * expr.c (expand_expr_real_2): Handle larger sizetype in
29105 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
29107 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
29108 to m2a-single instead of m2e.
29110 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
29112 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
29113 Change type of BITOFFSET to signed. Make sure the lower bound of
29114 the computed range is non-negative by adjusting OFFSET and BITPOS.
29115 (expand_assignment): Adjust call to get_bit_range.
29117 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
29119 * h8300/h8300.c (h8300_current_function_monitor_function_p):
29120 New function. Added to check monitor functions.
29121 (h8300_option_override): Modified to generate error/warning
29122 messages for invalid combinations of different command line
29124 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
29125 save EXR on stack for monitor function in case of H8S target
29126 when "-mno-exr" is passed.
29127 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
29129 * doc/invoke.texi: Document H8S options.
29131 2012-04-03 Tristan Gingold <gingold@adacore.com>
29133 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
29134 of gcc_AC_FUNC_MMAP_BLACKLIST.
29135 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
29136 * Makefile.in (aclocal_deps): Add mmap.m4.
29137 * configure: Regenerate.
29138 * aclocal.m4: Regenerate.
29140 2012-04-03 Richard Guenther <rguenther@suse.de>
29142 PR tree-optimization/52808
29143 * tracer.c (tail_duplicate): Return whether we have duplicated
29145 (tracer): If we have duplicated any block, cleanup the CFG.
29146 * cfghooks.c (duplicate_block): If we duplicated a loop
29147 header but not its loop, destroy the loop because it now has
29149 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
29150 the cfg manipulation routines we are not creating a multiple
29153 2012-04-03 Tristan Gingold <gingold@adacore.com>
29155 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
29157 (vms_c_common_override_options): Allow parameterless variadic
29160 2012-04-03 Jakub Jelinek <jakub@redhat.com>
29162 PR tree-optimization/52835
29163 * tree-data-ref.c (build_rdg): Return NULL if
29164 compute_data_dependences_for_loop failed.
29166 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
29168 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
29169 for REAL_CST as well.
29170 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
29171 In the bitfield case, if the value is a REAL_CST, convert it first to
29174 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
29176 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
29177 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
29178 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
29180 * config/i386/biarchx32.h: New.
29182 2012-04-02 Anatoly Sokolov <aesok@post.ru>
29184 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
29185 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29186 (arm_preferred_reload_class): New function.
29188 2012-04-02 Richard Guenther <rguenther@suse.de>
29190 PR tree-optimization/52756
29191 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
29192 (thread_through_loop_header): After threading through the loop latch
29193 remove the split part from the loop and clear further threading
29194 opportunities that would create a multiple entry loop.
29196 2012-04-02 Richard Guenther <rguenther@suse.de>
29198 PR rtl-optimization/52800
29199 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
29200 CLEANUP_CFG_CHANGED.
29202 2012-04-02 Richard Guenther <rguenther@suse.de>
29204 PR middle-end/52803
29205 * loop-init.c (gate_handle_loop2): Destroy loops here if
29206 we don't enter RTL loop optimizers.
29208 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
29211 2012-03-29 Richard Guenther <rguenther@suse.de>
29213 * rtl.h (extended_count): Remove.
29214 * combine.c (extended_count): Remove.
29216 2012-04-02 Dodji Seketeli <dodji@redhat.com>
29219 * pt.c (more_specialized_fn): Don't apply decay conversion to
29220 types of function parameters.
29222 2012-04-02 Tristan Gingold <gingold@adacore.com>
29224 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
29225 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
29226 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
29227 (ggc_pch_this_base): Use uintptr_t instead of size_t.
29229 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
29232 * config/i386/i386.c (ix86_option_override_internal): Don't
29233 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
29235 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
29237 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
29238 (stmt_can_make_abnormal_goto): Use it.
29239 (is_ctrl_altering_stmt): Likewise.
29241 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
29242 Kaz Kojima <kkojima@gcc.gnu.org>
29244 * config/sh/sh.c (push_regs): Skip banked registers when
29245 resbank attribute is specified.
29246 (sh_expand_epilogue): Likewise.
29248 2012-03-30 Richard Henderson <rth@redhat.com>
29251 * combine-stack-adj.c (prev_active_insn_bb): New.
29252 (next_active_insn_bb): New.
29253 (force_move_args_size_note): New.
29254 (combine_stack_adjustments_for_block): Use it.
29256 2012-03-30 Richard Henderson <rth@redhat.com>
29258 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
29259 (ix86_expand_vector_init_duplicate): Initialize it.
29260 (expand_vec_perm_palignr): Likewise.
29261 (ix86_expand_vec_perm_const): Likewise.
29262 (ix86_vectorize_vec_perm_const_ok): Likewise.
29263 (expand_vec_perm_blend): Use it.
29264 (expand_vec_perm_vpermil): Likewise.
29265 (expand_vec_perm_pshufb): Likewise.
29266 (expand_vec_perm_1): Likewise.
29267 (expand_vec_perm_pshuflw_pshufhw): Likewise.
29268 (expand_vec_perm_interleave2): Likewise.
29269 (expand_vec_perm_vpermq_perm_1): Likewise.
29270 (expand_vec_perm_vperm2f128): Likewise.
29271 (expand_vec_perm_interleave3): Likewise.
29272 (expand_vec_perm_vperm2f128_vblend): Likewise.
29273 (expand_vec_perm_vpshufb2_vpermq): Likewise.
29274 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
29275 (expand_vec_perm_broadcast): Likewise.
29276 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
29278 2012-03-30 Richard Henderson <rth@redhat.com>
29280 * dwarf2out.c (gen_variable_die): Initialize off.
29282 2012-03-30 Tristan Gingold <gingold@adacore.com>
29284 * config/vms/vms-f.c: New file.
29285 * config/vms/t-vms (vms-f.o): New rule.
29286 * config.gcc (*-*-*vms*): Define fortran_target_objs.
29288 2012-03-30 Richard Guenther <rguenther@suse.de>
29290 PR tree-optimization/52754
29291 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
29292 propagate arbitrary addresses into really plain dereferences.
29294 2012-03-30 Richard Guenther <rguenther@suse.de>
29296 PR middle-end/52772
29297 * except.c (emit_to_new_bb_before): Move loop updating ...
29298 (dw2_build_landing_pads): ... here. Use a proper block for
29299 querying the loop father.
29301 2012-03-30 Tristan Gingold <gingold@adacore.com>
29303 * config/ia64/ia64.c (ia64_section_type_flags): Remove
29304 common_object attribute handling.
29305 (SECTION_VMS_OVERLAY): Remove
29306 (ia64_vms_common_object_attribute): Replace abort with an assert.
29307 Do not set DECL_SECTION_NAME.
29308 (ia64_vms_output_aligned_decl_common): Handle common_object
29310 (ia64_vms_elf_asm_named_section): Remove.
29311 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
29313 2012-03-30 Richard Guenther <rguenther@suse.de>
29315 PR middle-end/52786
29316 * double-int.c (rshift_double): Remove not needed cast.
29318 2012-03-30 Richard Guenther <rguenther@suse.de>
29320 * tree-affine.h (print_aff): Remove.
29321 * tree-affine.c (print_aff): Make static.
29322 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
29323 (get_references_in_stmt): Likewise.
29324 (print_direction_vector): Likewise.
29325 (print_dir_vectors): Likewise.
29326 (print_dist_vectors): Likewise.
29327 (dump_subscript): Likewise.
29328 (dump_ddrs): Likewise.
29329 (dump_dist_dir_vectors): Likewise.
29330 (dump_data_references): Likewise.
29331 (dump_data_dependence_relation): Likewise.
29332 (dump_data_dependence_direction): Likewise.
29333 (dump_rdg_vertex): Likewise.
29334 (dump_rdg_component): Likewise.
29335 (debug_ddrs): Declare.
29336 (struct data_ref_loc_d): Move ...
29337 * tree-data-ref.c (struct data_ref_loc_d): ... here.
29338 (get_references_in_stmt): Make static.
29339 (dump_data_references): Likewise.
29340 (dump_subscript): Likewise.
29341 (print_direction_vector): Likewise.
29342 (print_dir_vectors): Likewise.
29343 (print_dist_vectors): Likewise.
29344 (dump_data_dependence_relation): Likewise.
29345 (dump_dist_dir_vectors): Likewise.
29346 (dump_ddrs): Likewise.
29347 (dump_rdg_vertex): Likewise.
29348 (dump_rdg_component): Likewise.
29349 (debug_ddrs): New function.
29350 (access_matrix_get_index_for_parameter): Remove.
29352 2012-03-30 Tristan Gingold <gingold@adacore.com>
29354 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
29355 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
29356 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
29357 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
29358 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
29359 (vms_patch_builtins): Handle new flags
29360 * config/vms/vms-crtlmap.map: Completed using nm on
29361 c and math system libraries.
29362 * config/vms/make-crtlmap.awk: Handle any number of flags.
29364 2012-03-30 Martin Jambor <mjambor@suse.cz>
29366 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
29367 is a builtin_stack_save in a dominating BB.
29369 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
29371 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
29372 crossing 128bit lane boundary.
29374 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
29376 * ira-color.c (setup_left_conflict_sizes_p): Process all
29377 conflicting objects.
29379 2012-03-29 Jakub Jelinek <jakub@redhat.com>
29381 PR tree-optimization/52760
29382 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
29383 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
29385 2012-03-29 Richard Guenther <rguenther@suse.de>
29387 * cgraph.h (cgraph_materialize_all_clones): Remove.
29388 (reset_inline_failed): Likewise.
29389 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
29390 * cgraphbuild.c (reset_inline_failed): Remove.
29391 * rtl.h (cse_main): Remove.
29392 (extended_count): Likewise.
29393 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
29394 (cse_main): Make static.
29395 * combine.c (extended_count): Remove.
29396 (dump_combine_stats): Mark as DEBUG_FUNCTION.
29397 * basic-block.h (reorder_basic_blocks): Remove.
29398 * bb-reorder.c (reorder_basic_blocks): Make static.
29399 * Makefile.in (dse.o): Remove dse.h dependency.
29401 * dse.c (gate_dse): Remove.
29402 (clear_alias_mode_eq): Likewise.
29403 (clear_alias_mode_hash): Likewise.
29404 (dse_record_singleton_alias_set): Likewise.
29405 (dse_invalidate_singleton_alias_set): Likewise.
29407 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
29409 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
29410 crtbegin_so%O%s for -shared.
29411 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
29413 2012-03-29 Richard Guenther <rguenther@suse.de>
29415 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
29416 (add_to_value): Remove.
29417 (print_value_expressions): Likewise.
29418 * tree-ssa-pre.c (add_to_value): Make static.
29419 (print_value_expressions): Likewise.
29420 * gimple.h (gimple_adjust_this_by_delta): Remove.
29421 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
29423 2012-03-29 Richard Guenther <rguenther@suse.de>
29425 PR middle-end/50708
29426 * double-int.h (rshift_double): Remove.
29427 * double-int.c (lshift_double): Use absu_hwi to make count positive.
29428 (rshift_double): Make static, take unsigned count argument,
29429 remove handling of negative count argument.
29430 (double_int_rshift): Dispatch to lshift_double.
29432 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
29434 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
29435 OPTION_MASK_ABI_64.
29437 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
29438 (SPEC_X32): Likewise.
29439 (MULTILIB_DEFAULTS): Likewise.
29441 * config/i386/i386.c (isa_opts): Remove -m64.
29442 (ix86_target_string): Properly handle -m32/-m64/-mx32.
29443 (ix86_option_override_internal): Properly
29444 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
29445 handle -m32, -m64 and -mx32.
29447 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
29448 with OPTION_ABI_X32. Moved after TARGET_LP64.
29449 (TARGET_LP64): Changed to OPTION_ABI_64.
29451 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
29452 (mx32): Replace ISA_X32 with ABI_X32.
29454 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
29456 * tree.c (tree_size) <VECTOR_CST>: New case.
29458 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
29460 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
29461 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
29463 2012-03-28 Jakub Jelinek <jakub@redhat.com>
29465 PR middle-end/52691
29466 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
29467 __builtin_va_start to __builtin_next_arg if the latter is
29468 builtin_decl_explicit_p rather than when it is not.
29470 PR middle-end/52750
29471 * tree-vect-generic.c (vector_element): Perform multiplication
29472 for pos in bitsizetype type instead of idx type.
29474 2012-03-28 Richard Guenther <rguenther@suse.de>
29476 * loop-init.c (loop_optimizer_init): If loops are preserved
29477 perform incremental initialization of required loop features.
29478 (loop_optimizer_finalize): If loops are to be preserved only
29479 clean up optional loop features.
29480 (rtl_loop_done): Forcefully free loops here.
29481 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
29482 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
29484 (construct_init_block): Likewise.
29485 (construct_exit_block): Likewise.
29486 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
29487 the CFG after expanding.
29488 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
29489 If we needed to calculate them, free them afterwards.
29490 * tree-pass.h (PROP_loops): New define.
29491 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
29492 * basic-block.h (CLEANUP_CFG_CHANGED): New.
29493 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
29494 (cleanup_cfg): If we did something and have loops around, fix them up.
29495 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
29496 with CLEANUP_CFG_CHANGED.
29497 * cfghooks.c (merge_blocks): If we merge a loop header into
29498 its predecessor, update the loop structure.
29499 (duplicate_block): If we copy a loop latch, adjust loop state
29500 to note we may have multiple latches.
29501 (delete_basic_block): Mark loops for fixup if we remove a loop.
29502 * cfganal.c (forwarder_block_p): Protect loop latches, headers
29504 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
29505 (cfg_layout_can_merge_blocks_p): Likewise.
29506 * cprop.c (bypass_block): If we create a loop with multiple
29507 entries, mark it for removal.
29508 * except.c (emit_to_new_bb_before): Add the new basic-block
29510 * tree-eh.c (lower_resx): Likewise.
29511 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
29512 (expand_omp_taskreg): Likewise.
29513 * tree-inline.c (initialize_cfun): Likewise.
29514 * tree-mudflap.c (add_bb_to_loop): Prototype.
29515 (mf_build_check_statement_for): Properly add new basic-blocks
29517 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
29518 if we remove a loop.
29519 (thread_through_loop_header): Likewise.
29520 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
29521 new basic-blocks to existing loops.
29522 (expand_transaction): Likewise.
29523 * Makefile.in (except.o): Add $(CFGLOOP_H).
29524 (expr.o): Likewise.
29525 (cgraph.o): Likewise.
29526 (cprop.o): Likewise.
29527 (cfgexpand.o): Likewise.
29528 (cfganal.o): Likewise.
29529 (trans-mem.o): Likewise.
29530 (tree-eh.o): Likewise.
29532 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
29535 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
29536 (avr_builtin_decl): New static function.
29537 (struct avr_builtin_description, avr_bdesc): Move up.
29538 Add GTY marker. Add field fndecl. Remove redundant field id.
29539 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
29540 (avr_expand_builtin): Code cleanup because .id is removed.
29542 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
29545 * config.gcc (tm_file): Remove avr/multilib.h.
29547 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
29549 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
29550 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
29551 * config/avr/t-avr: Remove generation of multilib.h.
29552 * config/avr/t-multilib: Regenerate.
29553 * config/avr/multilib.h: Remove.
29554 * config/avr/avr.opt (-msp8): New option.
29555 (avr_sp8): New variable.
29556 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
29557 * config/avr/avr.h (AVR_HAVE_SPH): New define.
29558 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
29559 (avr_device_to_sp8): New prototype.
29560 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
29561 (DRIVER_SELF_SPECS): New define.
29562 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
29563 __AVR_SP8__, __AVR_HAVE_SPH__.
29564 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
29565 AVR_HAVE_8BIT_SP to decide if SP_H is present.
29566 (avr_file_start): Ditto.
29568 2012-03-28 Jakub Jelinek <jakub@redhat.com>
29571 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
29572 instead of 8 in adjust_address.
29574 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
29576 PR middle-end/51893
29577 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
29580 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
29583 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
29584 Rearrange conditional logic. Move displacement address calculations
29586 (sh_find_mov_disp_adjust): ... this new function.
29588 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
29590 * config/arm/arm.opt (mapcs): Remove MaskExists.
29591 * config/cris/linux.opt (mno-gotplt): Likewise.
29592 * config/i386/i386.opt (mhard-float): Likewise.
29594 (mno-sse4): Likewise.
29595 * config/m68k/m68k.opt (mhard-float): Likewise.
29596 * config/mep/mep.op (mcop32): Likewise.
29597 * config/pa/pa-hpux.opt (msio): Likewise.
29598 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
29599 * config/picochip/picochip.opt (mlittle): Likewise.
29600 * config/sh/sh.opt (mrenesas): Likewise.
29601 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
29602 * config/sparc/sparc.opt (mhard-float): Likewise.
29603 * config/v850/v850.opt (mv850es): Likewise.
29604 * config/vax/vax.opt (mg-float): Likewise.
29606 2012-03-27 Martin Jambor <mjambor@suse.cz>
29608 PR middle-end/52693
29609 * tree-sra.c (sra_modify_assign): Do not call
29610 load_assign_lhs_subreplacements when working with an unscalarizable
29613 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
29616 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
29618 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
29619 * config/i386/i386.c: Include reload.h.
29620 (ix86_legitimize_reload_address): New function.
29622 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
29624 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
29625 hasn't been allocated. Define a target macro for Mask and
29626 InverseMask if it hasn't been defined. Remove MaskExists handling.
29628 * doc/options.texi: Remove MaskExists.
29630 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
29633 * config/sh/sh.c (find_barrier): Add equality check of last_got
29634 to avoid going above orig insn. Update comments.
29636 2012-03-27 Richard Guenther <rguenther@suse.de>
29638 PR middle-end/52720
29639 * fold-const.c (try_move_mult_to_index): Handle &x.array more
29642 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
29644 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
29645 of a unit before computing the offset in units.
29646 * expr.c (get_bit_range): Return the null range if the enclosing record
29647 is part of a larger bit field.
29649 2012-03-27 Tristan Gingold <gingold@adacore.com>
29651 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
29652 * config/ia64/ia64.md: Remove mode in template.
29653 Sign extend operand in expand_simple_binop.
29654 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
29655 CASE_VECTOR_MODE instead of TARGET_ILP32.
29656 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
29658 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
29660 * varasm.c (assemble_external): #if 0 out the new assert from the
29661 previous commit, it breaks the Java and Go front ends.
29663 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
29665 * toplev.c (check_global_declaration_1): Do not call assemble_external.
29666 * expr.c (emit_block_move_libcall_fn): Likewise.
29667 (clear_storage_libcall_fn): Likewise.
29668 (expand_expr_addr_expr_1): Likewise.
29669 (expand_expr_real_1): Likewise.
29670 * calls.c (rtx_for_function_call): Likewise.
29672 * varasm.c (assemble_external): Assert this function is only called
29673 during or after expanding to RTL.
29675 2012-03-26 Martin Jambor <mjambor@suse.cz>
29677 PR tree-optimization/50052
29678 * tree-sra.c (tree_non_aligned_mem_p): Removed.
29679 (tree_non_aligned_mem_for_access_p): Likewise.
29680 (build_accesses_from_assign): Removed strict alignment requirements
29682 (access_precludes_ipa_sra_p): Likewise.
29684 2012-03-26 Richard Guenther <rguenther@suse.de>
29686 PR tree-optimization/52701
29687 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
29688 compute and set the evolution part of PHI nodes.
29690 2012-03-26 Richard Guenther <rguenther@suse.de>
29692 PR tree-optimization/52721
29693 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
29695 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
29697 PR tree-optimization/52686
29698 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29701 2012-03-26 Tristan Gingold <gingold@adacore.com>
29703 * config/alpha/vms.h (LINK_SPEC): Simplify.
29704 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
29705 (NAME__MAIN, SYMBOL__MAIN): Remove.
29706 (VMS_DEBUG_MAIN_POINTER): Remove.
29707 * config/ia64/vms.h: Likewise.
29708 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
29709 code to vms.c. Call vms_start_function.
29710 * config/ia64/ia64.c (ia64_start_function): Likewise.
29711 * config/vms/vms-protos.h (vms_start_function): Declare.
29712 * config/vms/vms.c (vms_start_function): New function.
29713 * config/vms/vms.h (MATH_LIBRARY): Define.
29714 (VMS_DEBUG_MAIN_POINTER): Define.
29716 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
29718 PR rtl-optimization/52629
29719 * reload1.c (count_pseudo): Short-circuit common case.
29720 (count_spilled_pseudo): Return early for pseudos without hard regs.
29721 Assert that the pseudo has got a hard reg before manipulating it.
29723 2012-03-24 Jan Hubicka <jh@suse.cz>
29726 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
29727 (decide_is_variable_needed): Do not handle toplevel reorder here.
29728 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
29729 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
29732 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
29734 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
29735 and str_bitsize instead of more convoluted expressions.
29737 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
29740 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
29742 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
29745 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
29747 2012-03-23 Martin Jambor <mjambor@suse.cz>
29749 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
29751 2012-03-23 Richard Guenther <rguenther@suse.de>
29753 PR tree-optimization/52678
29754 * tree-vectorizer.h (struct _stmt_vec_info): Add
29755 loop_phi_evolution_part member.
29756 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
29757 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
29758 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
29759 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
29760 Use the cached evolution part and the PHI nodes value from
29761 the loop preheader edge instead of re-analyzing the evolution.
29763 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
29765 * config/mips/mips-tables.opt: Update.
29766 * config/mips/mips.md (processor): Add xlp.
29767 * config/mips/mips-cpus.def: Add xlp.
29768 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
29770 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
29771 * doc/invoke.texi: Mention XLP.
29773 2012-03-22 Jakub Jelinek <jakub@redhat.com>
29775 PR middle-end/52547
29776 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
29777 on any new_local_var_chain vars declared during recursing on
29778 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
29780 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
29782 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
29783 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
29784 (ASM_OUTPUT_LOCAL): Ditto.
29785 (ASM_OUTPUT_COMMON): Remove.
29786 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
29787 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
29789 2012-03-22 Jan Hubicka <jh@suse.cz>
29791 PR middle-end/51737
29792 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
29794 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
29795 * ipa-inline-transform.c (save_inline_function_body): Remove
29796 copied clone if needed.
29797 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
29799 2012-03-22 Richard Guenther <rguenther@suse.de>
29801 PR middle-end/52666
29802 * fold-const.c (fold_ternary_loc): Fix typo.
29804 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
29807 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
29808 (unspecv): Add UNSPECV_MEMORY_BARRIER.
29809 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
29810 (delay_cycles_1, delay_cycles_2): Ditto.
29811 (delay_cycles_3, delay_cycles_4): Ditto.
29812 (nopv, *nopv): Ditto.
29813 (sleep, *sleep): Ditto.
29814 (wdr, *wdr): Ditto.
29816 2012-03-22 Richard Guenther <rguenther@suse.de>
29818 PR tree-optimization/52548
29819 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
29820 because of clobbers.
29821 (prune_clobbered_mems): New function.
29822 (compute_antic_aux): Use it to prune ANTIC_OUT.
29823 (compute_partial_antic_aux): Use it to prune PA_IN.
29824 (compute_avail): Only insert expressions into EXP_GEN that are not
29825 invalidated when translated up to the beginning of the block.
29827 2012-03-22 Richard Guenther <rguenther@suse.de>
29829 PR tree-optimization/52638
29830 * tree-vect-stmts.c (vect_init_vector_1): New function, split
29832 (vect_init_vector): ... here. Handle scalar vector inits.
29833 (vect_get_vec_def_for_operand): Adjust.
29834 (vectorizable_load): Likewise.
29836 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
29838 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
29839 (alpha*-*-freebsd*): Ditto.
29840 (alpha*-*-netbsd*): Ditto.
29841 (alpha*-*-openbsd*): Ditto.
29842 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
29843 (DWARF2_DEBUGGING_INFO): Remove.
29844 (PREFERRED_DEBUGGING_TYPE): Remove.
29845 (ASM_FINAL_SPEC): Remove.
29846 (IDENT_ASM_OP): Remove.
29847 (ASM_OUTPUT_IDENT): Remove.
29848 (SKIP_ASM_OP): Remove.
29849 (ASM_OUTPUT_SKIP): Remove.
29850 (ALIGN_ASM_OP): Remove.
29851 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
29852 (ASM_OUTPUT_CASE_LABEL): Remove.
29853 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
29854 (COMMON_ASM_OP): Remove.
29855 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
29856 (ASCII_DATA_ASM_OP): Remove.
29857 (READONLY_DATA_SECTION_ASM_OP): Remove.
29858 (INIT_SECTION_ASM_OP): Remove.
29859 (FINI_SECTION_ASM_OP): Remove.
29860 (ASM_SECTION_START_OP): Remove.
29861 (ASM_OUTPUT_SECTION_START_FILE): Remove.
29862 (TARGET_ASM_NAMED_SECTION): Remove.
29863 (TARGET_ASM_SELECT_SECTION): Remove.
29864 (MAKE_DECL_ONE_ONLY): Remove.
29865 (TYPE_ASM_OP): Remove.
29866 (SIZE_ASM_OP): Remove.
29867 (ASM_WEAKEN_LABEL): Remove.
29868 (TYPE_OPERAND_FMT): Remove.
29869 (ASM_DECLARE_RESULT): Remove.
29870 (ASM_DECLARE_OBJECT_NAME): Remove.
29871 (ASM_FINISH_DECLARE_OBJECT): Remove.
29872 (ELF_ASCII_ESCAPES): Remove.
29873 (ELF_STRING_LIMIT): Remove.
29874 (STRING_ASM_OP): Remove.
29875 (ASM_OUTPUT_EXTERNAL): Remove.
29876 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
29877 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
29879 (ASM_DECLARE_FUNCTION_NAME): Ditto.
29880 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
29881 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
29882 (ASM_OUTPUT_SKIP): Ditto.
29883 (READONLY_DATA_SECTION_ASM_OP): Remove.
29884 (USER_LABEL_PREFIX): Remove.
29885 (ASM_OUTPUT_ASCII): Remove.
29886 (ASM_OUTPUT_CASE_LABEL): Remove.
29887 (NO_DOLLAR_IN_LABEL): Undefine.
29889 2012-03-22 Richard Guenther <rguenther@suse.de>
29891 PR tree-optimization/52459
29892 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
29893 PHI insertion for calls.
29895 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
29897 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
29898 find_sets_in_insn, canonicalize_insn): Split out from ...
29899 (cse_insn): ... here.
29900 (invalidate_from_clobbers): Take an insn instead of the pattern.
29902 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
29905 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
29906 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
29907 * config/sh/sh.md (sindf2, cosdf2): Remove.
29909 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
29912 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
29913 prologue for unwinder and profiler.
29915 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
29917 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
29918 Introduce emul_name to select the right linker emulation for
29919 powerpc64-*-freebsd*.
29920 * configure: Regenerate.
29921 * config.gcc: Add bits to support powerpc64-*-freebsd*.
29922 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
29923 * config/rs6000/freebsd64.h: New file.
29924 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
29926 (rs6000_savres_strategy): Likewise.
29927 (rs6000_savres_routine_name): Likewise.
29928 (rs6000_elf_file_end): Likewise.
29929 * config/rs6000/t-freebsd64: New file.
29930 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
29931 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
29933 * config/rs6000/freebsd64.h: Remove duplicated entries from last
29935 * config/rs6000/t-freebsd64: Likewise.
29937 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
29939 PR rtl-optimization/52543
29941 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
29942 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
29943 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
29944 (avr_load_libgcc_p): Restrict to __flash loads.
29945 (avr_out_lpm): Only handle 1-byte loads from __flash.
29946 (avr_load_lpm): New function.
29947 (avr_find_unused_d_reg): Remove.
29948 (avr_out_lpm_no_lpmx): Remove.
29949 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
29950 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
29951 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
29952 (load_<mode>, load_<mode>_clobber): New insns.
29953 (mov<mode>): For multi-byte move from non-generic
29954 16-bit address spaces: Expand to load_<mode> resp.
29955 load_<mode>_clobber.
29956 (load<mode>_libgcc): Remove expander.
29957 (split-lpmx): Remove split.
29959 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
29961 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
29962 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
29963 All callers changed.
29964 (Fixed_core_reg): New feature.
29965 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
29967 * neon-testgen.ml: Handle Fixed_core_reg.
29969 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
29971 * config/arm/arm.c (thumb2_reorg): Add complete support
29972 for 16-bit instructions.
29973 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
29975 2012-03-21 Richard Guenther <rguenther@suse.de>
29977 PR tree-optimizer/52636
29978 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
29979 to the appropriate type.
29981 2012-03-21 Richard Guenther <rguenther@suse.de>
29983 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
29985 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
29986 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
29987 * passes.c (init_optimization_passes): Remove pass_init_function,
29988 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
29989 * tree-pass.h (pass_init_function): Remove.
29990 (pass_jump): Remove.
29991 (pass_initial_value_sets): Remove.
29992 (pass_unshare_all_rtl): Remove.
29993 * integrate.c (pass_initial_value_sets): Remove.
29994 * emit-rtl.c (pass_unshare_all_rtl): Remove.
29995 * tree.h (init_function_for_compilation): Remove.
29996 * function.c (init_function_for_compilation): Remove.
29997 (pass_init_function): Remove.
29998 * cfgcleanup.c (rest_of_handle_jump): Remove.
29999 (pass_jump): Remove.
30001 2012-03-20 Jason Merrill <jason@redhat.com>
30003 * tree-streamer-in.c (streamer_alloc_tree): Call
30004 ggc_alloc_zone_cleared_tree_node instead of
30005 ggc_alloc_zone_cleared_tree_node_stat.
30007 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
30009 * doc/extend.texi (Template Instantiation): Remove anachronisms.
30011 2012-03-20 Jakub Jelinek <jakub@redhat.com>
30014 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
30015 (ix86_expand_vec_perm_const_1): Call it.
30017 * config/i386/i386.c (vselect_insn): New variable.
30018 (init_vselect_insn): New function.
30019 (expand_vselect, expand_vselect_insn): Add testing_p argument.
30020 Call init_vselect_insn if vselect_insn is NULL. Adjust
30021 PATTERN (vselect_insn), instead of creating a new insn each time,
30022 only emit a copy of it if not testing and recog has been successful.
30023 (expand_vec_perm_pshufb, expand_vec_perm_1,
30024 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
30028 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
30029 ("enabled" attribute): Handle avx2 and noavx2 isas.
30030 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
30032 (vec_dup<mode>): Add avx2 =x,x alternative.
30033 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
30034 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
30035 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
30036 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
30038 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
30039 if possible, handle also V8SFmode.
30041 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
30043 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
30044 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
30045 reg_or_zero_operand predicate.
30046 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
30048 2012-03-20 Jakub Jelinek <jakub@redhat.com>
30050 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
30051 If operand isn't UNSPEC, return 0.
30053 2012-03-20 Richard Guenther <rguenther@suse.de>
30055 * tree-pass.h (pass_rtl_eh): Remove.
30056 * except.c (gate_handle_eh): Likewise.
30057 (rest_of_handle_eh): Likewise.
30058 (pass_rtl_eh): Likewise.
30059 (finish_eh_generation): Export.
30060 * except.h (finish_eh_generation): Declare.
30061 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
30062 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
30063 after expanding stack alignment. Instead of compacting blocks
30066 2012-03-20 Richard Guenther <rguenther@suse.de>
30068 * stor-layout.c (finish_bitfield_representative): Fallback
30069 to conservative maximum size if the padding up to the next
30070 field cannot be computed as a constant.
30071 (finish_bitfield_layout): If we cannot compute the distance
30072 between the start of the bitfield representative and the
30073 bitfield member start a new representative.
30074 * expr.c (get_bit_range): The distance between the start of
30075 the bitfield representative and the bitfield member is zero
30076 if the field offsets are not constants.
30078 2012-03-20 Tristan Gingold <gingold@adacore.com>
30080 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
30081 convert in lowercase.
30082 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
30083 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
30084 * stor-layout.c (sizetype_tab): Adjust.
30085 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
30086 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
30087 instead of type_kind_last.
30088 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
30089 instead of size_int_kind.
30090 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
30091 * doc/tm.texi: Regenerate.
30092 * defaults.h (SIZETYPE): Provide a default value.
30093 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
30094 (SIZETYPE): Define.
30096 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
30098 * config/sh/sh.md: Use braced string notation where applicable.
30100 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
30102 * config/i386/i386.md (allocate_stack): Simplify.
30104 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
30106 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
30107 copy_to_mode_reg (Pmode, ...).
30108 (expand_builtin_frame_address): Ditto.
30109 * expr.c (emit_block_move_via_libcall): Ditto.
30110 (set_storage_via_libcall): Ditto.
30112 * config/i386/i386.c (ix86_expand_movmem): Ditto.
30113 (ix86_expand_setmem): Ditto.
30114 (ix86_trampoline_init): DItto.
30115 * config/i386/i386.md (cmpstrnsi): Ditto.
30117 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
30119 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
30120 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
30121 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
30122 (SH Options): Likewise.
30124 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
30126 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
30127 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
30128 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
30129 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
30130 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
30133 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30135 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
30136 * config/i386/i386.c (ix86_decompose_address): Use
30137 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
30138 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
30139 thread pointer to a register.
30142 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
30144 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
30145 if Pmode != word_mode.
30146 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
30147 Pmode == SImode for TARGET_X32.
30149 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
30150 (tls_initial_exec_x32): Likewise.
30152 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
30155 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
30156 DISP_ADDR_OFFSET): New macros.
30157 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
30158 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
30159 (sh_legitimize_address): Add QImode displacement handling.
30160 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
30162 (sh_secondary_reload): Add QImode displacement handling.
30163 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
30164 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
30165 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
30166 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
30167 to register operands only.
30168 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
30169 (extendqihi2): Change insn to expander.
30170 (*extendqihi2_compact_reg): New insn.
30171 (movqi_i, movqi): Replace with ...
30172 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
30173 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
30174 Add new peepholes for QImode displacement addressing.
30176 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
30179 * doc/invoke.texi: Document -Wuseless-cast.
30181 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
30183 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
30184 * tree.h (handled_component_p): Reorder cases.
30185 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
30186 not initialize unsignedp.
30187 (loc_list_from_tree): Likewise.
30188 (fortran_common): Likewise.
30189 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
30191 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
30193 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
30194 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
30195 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
30196 (ix86_split_long_move): Ditto.
30197 (legitimize_tls_address): Use ix86_gen_sub3.
30198 (construct_plt_address): Assert that Pmode == DImode.
30200 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
30202 * config/i386/i386.md: Remove empty predicates and/or constraints.
30203 * config/i386/sync.md: Ditto.
30204 * config/i386/sse.md: Ditto.
30205 * config/i386/mmx.md: Ditto.
30206 * config/i386/pentium.md: Ditto.
30207 * config/i386/athlon.md: Ditto.
30209 2012-03-16 Richard Guenther <rguenther@suse.de>
30211 PR tree-optimization/52603
30212 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
30216 2012-03-14 Richard Guenther <rguenther@suse.de>
30218 PR tree-optimization/52571
30219 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
30220 flag_section_anchors check ...
30221 (vect_can_force_dr_alignment_p): ... here.
30223 2012-03-16 Martin Jambor <mjambor@suse.cz>
30225 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
30226 memory through MEM_REFs by calling extract_bit_field.
30228 2012-03-16 Richard Guenther <rguenther@suse.de>
30230 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
30231 and REFERENCE_TYPE interpretations.
30232 (can_native_interpret_type_p): New function.
30233 (fold_ternary_loc): Use native encode/interpret to fold
30234 BIT_FIELD_REFs of constants.
30236 2012-03-16 Richard Guenther <rguenther@suse.de>
30238 PR middle-end/52584
30239 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
30240 of vector constants and constructors.
30242 2012-03-16 Richard Guenther <rguenther@suse.de>
30244 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
30245 VIEW_CONVERT_EXPR to convert constants.
30246 (vect_is_simple_use): Treat all constants as vec_constant_def.
30248 2012-03-16 Richard Guenther <rguenther@suse.de>
30249 Kai Tietz <ktietz@redhat.com>
30251 PR middle-end/48814
30252 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
30253 side-effects completely in the pre-queue and use a temporary
30256 2012-03-16 Richard Guenther <rguenther@suse.de>
30258 * stor-layout.c (finish_bitfield_representative): Fall back
30259 to the conservative maximum size if we cannot compute the
30260 size of the tail padding.
30262 2012-03-16 Tristan Gingold <gingold@adacore.com>
30264 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
30265 __CRTL_VER and __VMS_VER.
30266 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
30267 and vms_c_get_vms_ver.
30268 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
30270 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
30271 (VMS_DEFAULT_VMS_VER): Define.
30272 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
30273 (VMS_DEFAULT_VMS_VER): Define.
30275 2012-03-16 Richard Guenther <rguenther@suse.de>
30277 * tree-vect-loop.c (get_initial_def_for_induction): Use
30278 build_constructor directly.
30279 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
30280 build_vector_from_val.
30281 * tree.c (build_vector_from_val): Avoid creating a constructor
30282 first when we want a constant vector.
30284 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30286 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
30288 2012-03-16 Richard Guenther <rguenther@suse.de>
30290 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
30291 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
30292 (struct tree_vector): Remove elements member, add variable size
30294 (build_vector_stat): Declare.
30295 (build_vector): Define in terms of build_vector_stat.
30296 * tree.c (build_vector): Rename to ...
30297 (build_vector_stat): ... this. Take array of trees as parameter.
30298 (build_vector_from_ctor): Adjust.
30299 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
30300 initializer_zerop): Adjust.
30301 * cfgexpand.c (expand_debug_expr): Likewise.
30302 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
30303 const_vector_from_tree): Likewise.
30304 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
30305 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
30306 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
30307 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
30308 (lto_input_ts_vector_tree_pointers): Adjust.
30309 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
30310 (write_ts_vector_tree_pointers): Adjust.
30311 * varasm.c (const_hash_1, compare_constant, copy_constant,
30312 output_constant): Adjust.
30313 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
30314 * print-tree.c (print_node): Adjust.
30315 * tree-pretty-print.c (dump_generic_node): Adjust.
30316 * tree-vect-generic.c (uniform_vector_p, vector_element,
30317 lower_vec_perm): Adjust.
30318 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
30319 * tree-vect-slp.c (vect_get_constant_vectors,
30320 vect_transform_slp_perm_load): Adjust.
30321 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
30322 * expmed.c (make_tree): Adjust.
30323 * config/i386/i386.c (ix86_expand_builtin): Adjust.
30324 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
30325 and implementation.
30326 (sparc_fold_builtin): Adjust.
30328 2012-03-16 Tristan Gingold <gingold@adacore.com>
30330 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
30331 * config/vms/vms-stdint.h: New file.
30333 2012-03-16 Tristan Gingold <gingold@adacore.com>
30335 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
30336 (ia64-hp-*vms*): Replaced by ...
30337 (*-*-*vms*): ... This new entry.
30339 2012-03-15 Jakub Jelinek <jakub@redhat.com>
30342 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
30343 (ix86_expand_vec_perm_const_1): Use it.
30346 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
30347 (avx2_permv4df): Remove.
30348 (avx2_permv4di): Macroize into...
30349 (avx2_perm<mode>): ... this using VI8F_256 iterator.
30350 (avx2_permv4di_1): Macroize into...
30351 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
30353 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
30355 * combine.c (apply_distributive_law): Do not distribute SUBREG.
30357 2012-03-15 Ira Rosen <irar@il.ibm.com>
30358 Ulrich Weigand <ulrich.weigand@linaro.org>
30360 * tree-vect-patterns.c (widened_name_p): Rename to ...
30361 (type_conversion_p): ... this. Add new argument to determine
30362 if it's a promotion or demotion operation. Check for
30363 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
30364 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
30366 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
30367 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
30369 (vect_recog_mixed_size_cond_pattern): Likewise and allow
30370 non-constant then and else clauses.
30372 2012-03-15 Ira Rosen <irar@il.ibm.com>
30373 Ulrich Weigand <ulrich.weigand@linaro.org>
30375 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
30376 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
30377 vect_pattern_recog.
30378 * tree-vect-patterns.c (widened_name_p): Pass basic block
30379 info to vect_is_simple_use.
30380 (vect_recog_dot_prod_pattern): Fail for basic blocks.
30381 (vect_recog_widen_sum_pattern): Likewise.
30382 (vect_handle_widen_op_by_const): Support basic blocks.
30383 (vect_operation_fits_smaller_type,
30384 vect_recog_over_widening_pattern): Likewise.
30385 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
30386 Update call to vect_is_simple_use.
30387 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
30389 (check_bool_pattern): Add an argument, update call to
30390 vect_is_simple_use and the recursive calls.
30391 (vect_recog_bool_pattern): Update relevant function calls.
30393 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
30394 (vect_pattern_recog_1): Check for reduction only in loops.
30395 (vect_pattern_recog): Add new argument. Support basic blocks.
30396 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
30397 info to vect_is_simple_use_1.
30398 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
30399 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
30401 2012-03-15 Jakub Jelinek <jakub@redhat.com>
30402 Andrew Pinski <apinski@cavium.com>
30404 PR middle-end/52592
30405 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
30406 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
30407 calls instead of __builtin_ir{int,ound}*.
30409 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30411 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
30414 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
30416 * config.gcc (target_type_format_char): New. Document it. Set it for
30418 * configure.ac (gnu_unique_option): Use target_type_format_char
30419 in test. Comment rationale.
30420 * configure: Regenerate .
30422 2012-03-15 Jakub Jelinek <jakub@redhat.com>
30424 PR tree-optimization/52267
30425 * tree-vrp.c (masked_increment): New function.
30426 (register_edge_assert_for_2): Derive ASSERT_EXPRs
30427 from (X & CST1) cmp CST2 tests.
30429 2012-03-15 Richard Guenther <rguenther@suse.de>
30431 PR middle-end/52580
30432 * tree-data-ref.c (subscript_dependence_tester_1): Check
30433 all dimensions for non-conflicting access functions.
30435 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
30438 * doc/invoke.texi [C++ Language Options]: Document
30439 -ftemplate-backtrace-limit.
30441 2012-03-15 Tristan Gingold <gingold@adacore.com>
30443 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
30444 before a parameter.
30446 2012-03-15 Tristan Gingold <gingold@adacore.com>
30448 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
30449 use DW_OP_call_frame_cfa.
30451 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
30454 * config/i386/i386-opts.h (pmode): New.
30456 * config/i386/i386.c (ix86_option_override_internal): Properly
30457 check and set ix86_pmode.
30459 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
30461 * config/i386/i386.opt (maddress-mode=): New.
30463 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
30465 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30467 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
30468 (dwarf2out_do_cfi_asm): Likewise.
30469 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
30471 (add_data_member_location_attribute): Likewise.
30472 (gen_array_type_die): Likewise.
30473 (gen_subprogram_die): Likewise.
30474 (gen_producer_string): Likewise.
30475 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
30476 Remove MIPS_DEBUGGING_INFO handling.
30477 (sdb_debug_hooks): Likewise.
30478 (sdbout_begin_block): Likewise.
30479 (sdbout_end_block): Likewise.
30480 (sdbout_begin_prologue): Likewise.
30481 (sdbout_start_source_file): Likewise.
30482 (sdbout_end_source_file): Likewise.
30483 (sdbout_init): Likewise.
30484 * system.h (MIPS_DEBUGGING_INFO): Poison.
30486 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30488 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
30489 (alpha_file_start) [MS_STAMP]: Remove.
30491 * config/alpha/elf.h (TARGET_GAS): Remove.
30492 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
30493 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
30494 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
30495 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
30496 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
30497 (alpha*-*-freebsd*): Likewise.
30498 (alpha*-*-netbsd*): Likewise.
30499 (alpha*-*-openbsd*): Likewise.
30500 (alpha*-*-*): Remove target_cpu_default2.
30501 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
30503 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
30504 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
30505 * config/alpha/alpha.c (print_operand): Always assume
30506 TARGET_AS_SLASH_BEFORE_SUFFIX.
30507 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
30508 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
30509 ("*builtin_setjmp_receiver_er_1"): Remove.
30510 * config/alpha/alpha.opt (malpha-as): Remove.
30512 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
30514 Remove DEC Unix reference.
30516 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
30517 (EXTENDED_COFF): Remove.
30518 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
30519 (EXTENDED_COFF): Don't undef.
30520 * config/alpha/alpha.c (alpha_file_start): Always assume
30522 Don't set targetm.asm_file_start_file_directive.
30523 [!OBJECT_FORMAT_ELF]: Remove.
30524 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
30526 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
30527 (DBX_DEBUGGING_INFO): Remove.
30528 (MIPS_DEBUGGING_INFO): Remove.
30529 (PREFERRED_DEBUGGING_TYPE): Remove.
30530 (DBX_OUTPUT_SOURCE_LINE): Remove.
30531 (SDB_OUTPUT_SOURCE_LINE): Remove.
30532 (DBX_CONTIN_LENGTH): Remove.
30533 (NO_DBX_FUNCTION_END): Remove.
30534 (ASM_STABS_OP): Remove.
30535 (ASM_STABN_OP): Remove.
30536 (ASM_STABD_OP): Remove.
30537 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
30538 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
30539 (PUT_SDB_DEF): Remove.
30540 (PUT_SDB_PLAIN_DEF): Remove.
30541 (PUT_SDB_TYPE): Remove.
30542 (sdb_label_count): Remove.
30543 (PUT_SDB_BLOCK_START): Remove.
30544 (PUT_SDB_BLOCK_END): Remove.
30545 (PUT_SDB_FUNCTION_START): Remove.
30546 (PUT_SDB_FUNCTION_END): Remove.
30547 (PUT_SDB_EPILOGUE_END): Remove.
30548 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
30549 (MIPS_DEBUGGING_INFO): Don't undef.
30550 (DBX_DEBUGGING_INFO): Don't undef.
30551 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
30552 (MIPS_DEBUGGING_INFO): Don't undef.
30553 (DBX_DEBUGGING_INFO): Don't undef.
30554 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
30555 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
30557 (alpha_start_function): Likewise.
30558 (sdb_label_count): Remove.
30559 (alpha_output_filename): Remove DBX_DEBUG handling.
30560 (alpha_file_start): Likewise.
30562 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30564 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
30565 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
30566 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
30568 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
30569 (ld_tls_support): Remove Solaris 8 references.
30570 (lwp_dir, lwp_spec): Remove support for alternate thread library.
30571 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
30572 * configure: Regenerate.
30573 * config.in: Regenerate.
30575 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
30576 * config/i386/sol2.h: Remove Solaris 8 references.
30578 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
30579 (i?86-*-solaris2.9): ... this.
30580 Remove Solaris 8 references.
30581 (Specific, *-*-solaris2*): Document Solaris 8 removal.
30582 Remove Solaris 8 references.
30584 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30586 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
30587 (mips-sgi-irix6.5*): Remove.
30588 * config.host (mips-sgi-irix*): Remove.
30589 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
30590 (set_have_as_tls): Remove *-*-irix6*.
30591 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
30592 * configure: Regenerate.
30594 * config/mips/iris6.h: Remove.
30595 * config/mips/iris6.opt: Remove.
30596 * config/mips/t-irix6: Remove.
30598 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
30599 (TARGET_IRIX6): Remove.
30600 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
30601 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
30602 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
30604 (mips_file_start): Likewise.
30605 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
30607 * config/mips/driver-native.c [__sgi__]: Remove.
30608 (host_detect_local_cpu) [__sgi__]: Remove.
30610 * config/mips/gnu-user.h: Remove iris5.h reference.
30612 * config/mips/mips-modes.def: Remove IRIX 6 reference.
30613 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
30614 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
30617 * gcc.c (main): Move asm_debug initialization ...
30618 (asm_debug): ... here.
30620 * ginclude/stddef.h (__STDDEF_H__): Don't define.
30622 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
30623 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
30624 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
30625 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
30626 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
30627 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
30629 * doc/tm.texi: Regenerate.
30631 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
30633 (MIPS Options, -march): Remove IRIX reference.
30634 * doc/install.texi (Binaries, SGI IRIX): Remove.
30635 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
30637 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
30639 2012-03-14 Martin Jambor <mjambor@suse.cz>
30641 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
30642 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
30643 (expand_expr_real_1): Do not handle misalignment if modifier is
30646 2012-03-14 Richard Guenther <rguenther@suse.de>
30648 PR middle-end/52584
30649 * tree-vect-generic.c (type_for_widest_vector_mode): Take
30650 element type instead of mode, use build_vector_type_for_mode
30651 instead of the langhook, build a vector of proper signedness.
30652 (expand_vector_operations_1): Adjust.
30654 2012-03-14 Richard Guenther <rguenther@suse.de>
30656 PR middle-end/52582
30657 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
30658 a cgraph node for a FUNCTION_DECL that comes from a constructor.
30659 (gimple_get_virt_method_for_binfo): Likewise.
30661 2012-03-14 Richard Guenther <rguenther@suse.de>
30663 PR tree-optimization/52571
30664 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
30665 flag_section_anchors check ...
30666 (vect_can_force_dr_alignment_p): ... here. Do not re-align
30667 DECL_COMMON variables.
30669 2012-03-14 Richard Guenther <rguenther@suse.de>
30671 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
30672 * stor-layout.c (start_bitfield_representative): New function.
30673 (finish_bitfield_representative): Likewise.
30674 (finish_bitfield_layout): Likewise.
30675 (finish_record_layout): Call finish_bitfield_layout.
30676 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
30677 for QUAL_UNION_TYPE fields.
30678 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
30679 Stream DECL_BIT_FIELD_REPRESENTATIVE.
30680 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
30682 PR middle-end/52080
30683 PR middle-end/52097
30684 PR middle-end/48124
30685 * expr.c (get_bit_range): Unconditionally extract bitrange
30686 from DECL_BIT_FIELD_REPRESENTATIVE.
30687 (expand_assignment): Adjust call to get_bit_range.
30689 2012-03-14 Richard Guenther <rguenther@suse.de>
30691 PR middle-end/52578
30692 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
30693 the outermost conversion is a sign-change only.
30694 (fold_binary_loc): Disregard widening and sign-changing
30695 conversions when we determine if two variables are equal
30697 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
30698 (T1)x if the outermost conversion is a sign-change only.
30700 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
30703 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
30705 * config/i386/predicates.md (constant_call_address_operand): Declare
30706 as special predicate. Update all uses.
30708 2012-03-13 Jakub Jelinek <jakub@redhat.com>
30711 * c-parser.c (c_parser_postfix_expression)
30712 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
30714 * config/i386/smmintrin.h: Avoid /* within a comment.
30715 * config/i386/nmmintrin.h: Likewise.
30717 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30719 * config/i386/i386.md (xbegin): Remove constraint from expander.
30721 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30723 * config/i386/predicates.md (constant_call_address_operand): Declare
30724 as special predicate. Update all uses.
30725 * config/i386/i386.md: Remove mode from constant_call_address_operand
30727 * config/i386/i386.c (ix86_output_call_insn): Call
30728 constant_call_address_operand with VOIDmode.
30730 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30732 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
30733 AND zero extended address correctly.
30735 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30737 * config/i386/predicates.md (tls_symbolic_operand): Declare as
30739 (tls_modbase_operand): Ditto.
30740 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
30741 tls_modbase_operand predicates.
30743 2012-03-13 Martin Jambor <mjambor@suse.cz>
30745 * expr.c (expand_assignment): Handle misaligned scalar writes to
30746 memory through top-level MEM_REFs by calling store_bit_field.
30748 2012-03-13 Richard Guenther <rguenther@suse.de>
30750 PR middle-end/52134
30751 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
30752 if Y is a constant multiple of 1 << CST.
30754 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
30757 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
30758 offset (size) to a value the insns can deal with.
30759 (expand_epilogue): Ditto.
30761 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
30763 * config/arm/neon.ml (ops): Fixup expected instructions for
30764 unsigned vector compares.
30766 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30768 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
30769 addresses only when %reg is not in word mode.
30771 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30773 * config/microblaze/microblaze.md: Fix typo.
30774 * tree-if-conv.c: Likewise.
30775 * tree-vect-patterns.c: Likewise.
30777 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30779 * config.gcc (extra_passes): Remove.
30780 * configure.ac (extra_passes): Don't substitute.
30781 * configure: Regenerate.
30782 * Makefile.in (EXTRA_PASSES): Remove.
30783 (GCC_PASSES): Remove $(EXTRA_PASSES).
30784 (MOSTLYCLEANFILES): Likewise.
30785 (native): Likewise.
30786 (install-common): Likewise.
30788 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30790 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
30791 * config/i386/i386.c (ix86_decompose_address): Use
30792 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
30793 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
30794 thread pointer to a register.
30796 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
30798 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
30799 on tls_symbolic_operand.
30800 (tls_global_dynamic_64_<mode>): Likewise.
30802 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
30805 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
30806 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
30808 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
30811 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
30812 type from reg_class_t to enum reg_class.
30813 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
30815 2012-03-12 Andrew Pinski <apinski@cavium.com>
30817 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
30818 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
30819 (value_replacement): Likewise.
30820 (empty_block_p): Check also if the PHIs for the block are empty.
30822 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
30825 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
30826 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
30827 r184615 from 2012-02-28.
30829 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
30831 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
30832 (ix86_gen_tls_local_dynamic_base_64): Likewise.
30833 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
30834 and ix86_gen_tls_local_dynamic_base_64.
30835 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
30836 ix86_gen_tls_local_dynamic_base_64.
30838 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
30839 (*tls_global_dynamic_64_<mode>): This.
30840 (tls_global_dynamic_64): Renamed to ...
30841 (tls_global_dynamic_64_<mode>): This.
30842 (*tls_local_dynamic_base_64): Renamed to ...
30843 (*tls_local_dynamic_base_64_<mode>): This.
30844 (tls_local_dynamic_base_64): Renamed to ...
30845 (tls_local_dynamic_base_64_<mode>): This.
30847 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
30849 * config/i386/i386.c (ix86_option_override_internal): Properly
30850 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
30851 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
30852 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
30853 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
30855 * config/i386/sse.md (sse3_monitor64): Renamed to ...
30856 (sse3_monitor64_<mode>): This.
30858 2012-03-12 Tristan Gingold <gingold@adacore.com>
30860 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
30861 (ia64_function_arg_advance): Ditto.
30863 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30865 * config.gcc (mips*-*-openbsd*): Remove.
30866 * config/mips/openbsd.h: Remove.
30867 * config/mips/sdb.h: Remove.
30869 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
30870 * config/mips/mips.c (sdb_label_count): Remove.
30871 (mips_debugger_offset): Remove #if 0 code.
30872 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
30873 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
30875 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30877 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
30878 binutils reference.
30879 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
30880 Update binutils references.
30881 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
30882 Update binutils reference.
30883 Update Sun as/GNU ld caveat.
30884 Document binutils largefile requirement for LTO plugin.
30885 Remove reference to alternate libpthread.
30887 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30889 * config.gcc (alpha*-dec-osf5.1*): Remove.
30890 * config.host (alpha*-dec-osf*): Remove.
30891 * configure.ac (*-*-osf*): Remove.
30892 (alpha*-dec-osf*): Remove.
30893 * configure: Regenerate.
30895 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
30896 config/alpha/va_list.h, config/alpha/x-osf: Remove.
30898 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
30899 * config/alpha/alpha.c (struct machine_function): Update comment.
30900 (alpha_start_function): Remove Tru64 UNIX as handling for
30902 * config/alpha/alpha.md ("exception_receiver"): Remove
30903 TARGET_LD_BUGGY_LDGP.
30904 ("*exception_receiver_2"): Likewise.
30905 * except.c (finish_eh_generation): Remove Tru64 reference.
30906 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
30907 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
30908 * target.def (handle_pragma_extern_prefix): Remove.
30910 * Makefile.in (mips-tfile.o-warn): Remove.
30911 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
30912 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
30913 * mips-tdump.c, mips-tfile.c: Remove.
30915 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
30917 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
30918 (Specific, alpha*-dec-osf5.1): Note removal.
30919 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
30921 * doc/tm.texi: Regenerate.
30922 * doc/trouble.texi (Cross-Compiler Problems): Remove.
30924 2012-03-12 Richard Guenther <rguenther@suse.de>
30926 * config/arm/arm.c (neon_dereference_pointer): Do not call
30927 covert during RTL expansion.
30929 2012-03-12 Tristan Gingold <gingold@adacore.com>
30931 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
30932 Options. Mention -mpointer-size.
30934 2012-03-12 Richard Guenther <rguenther@suse.de>
30936 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
30937 build_nonstandard_integer_type.
30939 2012-03-12 Richard Guenther <rguenther@suse.de>
30941 * tree.c (signed_or_unsigned_type_for): Use
30942 build_nonstandard_integer_type.
30943 (signed_type_for): Adjust documentation.
30944 (unsigned_type_for): Likewise.
30945 * tree-pretty-print.c (dump_generic_node): Use standard names
30946 for non-standard integer types if available.
30948 2012-03-12 Tristan Gingold <gingold@adacore.com>
30950 * config/vms/vms.opt: Add vms-opts.h header.
30951 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
30953 (-mvms-return-codes): Document.
30954 (-mpointer-size): New option.
30955 (vms_pointer_size): Add enumeration.
30956 * config/vms/vms-opts.h: New file.
30957 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
30958 __INITIAL_POINTER_SIZE.
30959 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
30960 (C_COMMON_OVERRIDE_OPTIONS): Define.
30961 (DWARF2_ADDR_SIZE): Define.
30962 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
30963 * config/vms/vms-protos.h (vms_c_common_override_options):
30965 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
30966 if -mno-pointer-size.
30967 (vms_c_common_override_options): New function.
30968 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
30969 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
30970 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
30971 and flag_vms_pointer_size.
30972 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
30973 * config.gcc (*-*-*vms*): Define xm_file.
30974 (alpha*-dec-*vms*): Do not define xm_file.
30975 (alpha64-dec-*vms*): Remove.
30976 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
30979 2012-03-12 Jakub Jelinek <jakub@redhat.com>
30981 PR tree-optimization/51721
30982 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
30983 if (int) unsvar cmp CST.
30985 2012-03-12 Richard Guenther <rguenther@suse.de>
30987 * tree-sra.c (create_access_replacement): Only rename the replacement
30988 if we can rewrite it into SSA form. Properly mark register typed
30989 replacements that we cannot rewrite with TREE_ADDRESSABLE.
30990 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
30991 for aggregate or BLKmode results.
30993 2012-03-12 Jakub Jelinek <jakub@redhat.com>
30995 PR tree-optimization/52533
30996 * tree-vrp.c (register_edge_assert_for_2): Use double_int
30997 type for mask, only handle shifts by non-zero in-range
30998 shift count, for LE_EXPR and GT_EXPR if new_val is
30999 maximum, don't add the assertion.
31001 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
31003 * doc/invoke.texi: Document -mrtm option.
31004 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
31005 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
31006 (ix86_handle_option): Handle OPT_mrtm.
31007 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
31009 (x86_64-*-*): Ditto.
31010 * i386-builtin-types.def (INT_FTYPE_VOID): New.
31011 * config/i386/i386-c.c (ix86_target_macros_internal): Define
31013 (ix86_target_string): Define -mrtm option.
31015 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
31017 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
31018 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
31019 IX86_BUILTIN_XTEST.
31020 (bdesc_special_args): Ditto.
31021 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
31022 (ix86_expand_special_args_builtin): Handle new built-in type.
31023 (ix86_expand_builtin): Handle XABORT instruction.
31024 * config/i386/i386.h (TARGET_RTM): New.
31025 * config/i386/i386.md (UNSPECV_XBEGIN): New.
31026 (UNSPECV_XEND): Ditto.
31027 (UNSPECV_XABORT): Ditto.
31028 (UNSPECV_XTEST): Ditto.
31035 * config/i386/i386.opt (mrtm): New.
31036 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
31037 * config/i386/rtmintrin.h: New header.
31038 * config/i386/xtestintrin.h: Ditto.
31040 2012-03-12 Tristan Gingold <gingold@adacore.com>
31042 * ginclude/stddef.h: Adjust previous patch.
31043 Use __VMS__ instead of VMS.
31045 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
31047 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
31048 Also convert sequences with CC setting arithmetic instruction.
31050 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
31052 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
31053 from C Language Options to Preprocessor Options.
31054 (C Dialect Options): Move -no-integrated-cpp documentation
31056 (Preprocessor Options): ...to here. Rewrite the description
31057 so it makes more sense, and remove discussion of merging front ends.
31059 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31061 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
31063 (ix86_expand_setmem): Likewise.
31065 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
31067 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
31070 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31072 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
31073 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
31075 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31077 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
31079 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31081 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
31084 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31085 Uros Bizjak <ubizjak@gmail.com>
31087 * config/i386/predicates.md (call_insn_operand): Allow
31088 constant_call_address_operand in Pmode only.
31089 (sibcall_insn_operand): Ditto.
31090 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
31091 (*call_vzeroupper): Ditto.
31093 (*sibcall_vzeroupper): Ditto.
31094 (*call_value): Ditto.
31095 (*call_value_vzeroupper): Ditto.
31096 (*sibcall_value): Ditto.
31097 (*sibcall_value_vzeroupper): Ditto.
31098 (*indirect_jump): Ditto.
31099 (*tablejump_1): Ditto.
31100 (indirect_jump): Convert memory address to word mode for TARGET_X32.
31101 (tablejump): Ditto.
31102 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
31105 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
31108 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
31109 Use movrt_negc instead of negc pattern for non-SH2A.
31110 (*movnegt): Remove.
31111 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
31113 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
31115 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
31116 if Pmode != word_mode.
31117 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
31118 Pmode == SImode for TARGET_X32.
31120 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
31121 (tls_initial_exec_x32): Likewise.
31123 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
31125 PR rtl-optimization/52528
31126 * combine.c (can_combine_p): Add setting of subst_low_luid
31127 before call to expand_field_assignment().
31129 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
31131 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
31132 and related program names.
31134 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
31136 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
31138 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
31141 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
31142 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
31143 to set code to 'q'.
31144 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
31145 (*movdi_internal_rex64): Use %E operand modifier for lea.
31146 (*movsi_internal): Ditto.
31148 (*lea<mode>_2): Ditto.
31149 (*lea_{3,4,5,6}_zext): Ditto.
31150 (*tls_global_dynamic_32_gnu): Ditto.
31151 (*tls_global_dynamic_64): Ditto.
31152 (*tls_dynamic_gnu2_lea_32): Ditto.
31153 (*tls_dynamic_gnu2_lea_64): Ditto.
31154 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
31156 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
31158 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
31159 redefine to be NULL if the current bit-size is different from the
31160 configured bit-size.
31162 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
31163 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
31164 set the default tuning. Add asserts to make sure the cpu and tune
31165 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
31166 test whether the index is set, instead of > 0.
31167 (rs6000_file_start): Do not reset the default cpu if the current
31168 bit-size is different from the configured bit-size.
31170 2012-03-09 Tristan Gingold <gingold@adacore.com>
31172 * config/vms/vms-crtlmap.map: Add comments.
31173 Add entries needed to build Ada RTS.
31175 2012-03-09 Tristan Gingold <gingold@adacore.com>
31177 * ginclude/stddef.h: Do not define __size_t on VMS.
31179 2012-03-09 Tristan Gingold <gingold@adacore.com>
31181 * c-tree.h (c_default_pointer_mode): New variable.
31182 * c-decl.c (c_default_pointer_mode): New variable.
31183 (c_build_pointer_type): New function.
31184 (grokdeclarator): Call c_build_pointer_type instead
31185 of build_pointer_type.
31187 * config/vms/vms-c.c: Include c-tree.h
31188 (saved_pointer_mode): New variable.
31189 (handle_pragma_pointer_size): New function.
31190 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
31191 (vms_c_register_pragma): Register __pointer_size and
31192 __required_pointer_size pragmas.
31194 2012-03-09 Tristan Gingold <gingold@adacore.com>
31196 * config/vms/vms-c.c (vms_construct_include_filename): New function.
31197 (vms_c_register_includes): Reference it.
31199 2012-03-09 Andrew Pinski <apinski@cavium.com>
31201 PR middle-end/51988
31202 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
31203 print_generic_expr.
31204 (tree_ssa_phiopt_worker): Go through all the PHIs for
31205 value_replacement instead of just the singleton one.
31206 (value_replacement): Change return type to int. Return 0 instead of
31208 Allow the middle basic block to contain more than just the defining
31210 Handle non empty middle basic blocks.
31211 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
31213 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
31215 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
31216 array reference and component reference.
31217 (analyze_scalar_evolution_for_address_of): New.
31219 2012-03-08 Jie Zhang <jzhang918@gmail.com>
31222 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
31223 (hwloop_pattern_reg): Fix set but not used warning.
31224 (bfin_reorg_loops): Remove unused parameter.
31225 (bfin_reorg): Update use of bfin_reorg_loops.
31227 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
31229 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
31230 with integer parameters in registers.
31231 (gen_push): Push register in word_mode instead of Pmode.
31232 (ix86_emit_save_regs): Likewise.
31233 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
31234 (gen_pop): Pop register in word_mode instead of Pmode.
31235 (ix86_emit_restore_regs_using_pop): Likewise.
31236 (ix86_expand_prologue): Replace Pmode with word_mode for push
31237 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
31238 restore RAX and R10 in word_mode.
31239 (ix86_emit_restore_regs_using_mov): Restore integer registers
31241 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
31243 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
31244 (ix86_split_long_move): Likewise.
31246 * config/i386/i386.md (W): New.
31247 (*push<mode>2_prologue): Replace :P with :W.
31248 (*pop<mode>1): Likewise.
31249 (*pop<mode>1_epilogue): Likewise.
31250 (push/pop peephole2): Use word_mode scratch registers.
31252 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
31254 * config/i386/predicates.md (indirect_branch_operand): Simplify.
31256 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
31258 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
31259 for constants in [-63,63].
31261 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
31265 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
31267 * config/i386/i386.c (ix86_print_operand_address): Only handle
31268 zero-extended DImode addresses.
31270 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31272 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
31273 * configure: Regenerate.
31275 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
31278 * config/avr/avr.c (avr_mem_clobber): New static function.
31279 (avr_expand_delay_cycles): Add memory clobber operand to
31280 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
31281 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
31282 (enable_interrupt, disable_interrupt): New expander.
31283 (nopv, sleep, wdr): New expanders.
31284 (delay_cycles_1): Add memory clobber.
31285 (delay_cycles_2): Add memory clobber.
31286 (delay_cycles_3): Add memory clobber.
31287 (delay_cycles_4): Add memory clobber.
31288 (cli_sei): New insn from former "enable_interrupt",
31289 "disable_interrupt" with memory clobber.
31290 (*wdt): New insn from former "wdt" with memory clobber.
31291 (*nopv): Similar, but for "nopv".
31292 (*sleep): Similar, but for "sleep".
31294 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
31295 Kaz Kojima <kkojima@gcc.gnu.org>
31298 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
31299 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
31300 (SUBTARGET_OVERRIDE_OPTIONS): Define.
31302 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
31304 * config/i386/predicates.md (x86_64_zext_general_operand): New.
31305 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
31306 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
31308 2012-03-07 Walter Lee <walt@tilera.com>
31310 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
31311 REG_CFA_* notes for the stack pointer.
31312 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
31313 EH_RETURN_STACKADJ_RTX.
31314 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
31315 generate REG_CFA_* notes for the stack pointer.
31316 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
31317 by EH_RETURN_STACKADJ_RTX.
31319 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31321 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
31322 when __AVR_3_BYTE_PC__ is defined.
31324 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
31326 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
31327 (ix86_print_operand): Handle '^'.
31328 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
31329 using P mode iterator. Add %^ to asm template to conditionally emit
31331 (*rep_movdi_rex64): Ditto.
31332 (*strsetdi_rex_1): Ditto.
31333 (*rep_stosdi_rex64): Ditto.
31334 (*strmov{si,hi,qi}_1): Add %^ to asm template to
31335 conditionally emit addr32 prefix.
31336 (*rep_mov{si,qi}): Ditto.
31337 (*strset{si,hi,qi}): Ditto.
31338 (*rep_stos{si,qi}): Ditto.
31339 (*cmpstrnqi_nz_1): Ditto.
31340 (*cmpstrnqi_1): Ditto.
31341 (*strlenqi_1): Ditto.
31343 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
31345 * config/i386/i386.c (function_value_64): Return pointers in
31346 word_mode instead of Pmode.
31347 (ix86_promote_function_mode): Likewise.
31349 2012-03-07 Richard Guenther <rguenther@suse.de>
31351 * coverage.c (get_gcov_type): Use type_for_mode.
31352 (get_gcov_unsigned_t): Likewise.
31353 * expr.c (store_constructor): Use type_for_mode.
31354 (try_casesi): Likewise.
31355 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
31356 (add_standard_iv_candidates): Use standard type trees.
31357 * dojump.c (do_jump): Remove dead code.
31359 2012-03-07 Richard Guenther <rguenther@suse.de>
31361 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
31363 2012-03-07 Richard Guenther <rguenther@suse.de>
31365 * convert.c (strip_float_extensions): Move ...
31366 * tree.c (strip_float_extensions): ... here.
31368 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31371 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
31373 2012-03-07 Richard Guenther <rguenther@suse.de>
31375 * omp-low.c (extract_omp_for_data): Use signed_type_for.
31376 (expand_omp_for_generic): Likewise.
31377 (expand_omp_for_static_nochunk): Likewise.
31378 (expand_omp_for_static_chunk): Likewise.
31379 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
31380 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31381 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
31382 Use unsigned_type_for.
31383 (vect_create_cond_for_align_checks): Use signed_type_for.
31385 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
31387 PR rtl-optimization/52203
31388 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
31389 all callers to pass NULL except ...
31390 (reset_sched_cycles_in_current_ebb): ... here, save the value
31391 in new variable 'empty'. Increase issue_rate only for
31394 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
31397 * Makefile.in: Let install-gcc-ar depend on installdirs,
31398 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
31399 Don't double canonicalize if cross-compiling.
31401 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31404 * config/avr/avr.c (expand_epilogue): Fix order of restoration
31405 to: RAMPZ, RAMPY, RAMPX, RAMPD.
31406 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
31408 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31411 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
31413 * config/avr/avr.md (xload_8): Adjust insn length.
31415 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31418 * config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
31419 if RAMPZ affects reading from RAM.
31421 2012-03-07 Richard Guenther <rguenther@suse.de>
31425 * doc/invoke.texi (Precompiled Headers): Remove sentence that
31426 suggests you can include PCHs from inside another header.
31428 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
31430 PR middle-end/52515
31431 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
31433 2012-03-07 Kai Tietz <ktietz@redhat.com>
31435 * doc/invoke.texi (fwritable-relocated-rdata): Document
31436 new Cygwin/MinGW target option.
31437 * config/i386/winnt.c (i386_pe_unique_section): Ignore
31438 reloc if flag -fwritable-relocated-rdata is not set.
31439 (i386_pe_section_type_flags): Likewise.
31440 * config/i386/cygming.opt (fwritable-relocated-rdata):
31441 Add new flag variable flag_writable_rel_rdata.
31443 2012-03-07 Richard Guenther <rguenther@suse.de>
31445 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
31446 precision against gimple constraints.
31448 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
31450 PR middle-end/52372
31451 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
31453 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
31454 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
31456 (init_emit_regs): Move associated initialization to...
31457 (init_emit_once): ...here.
31459 2012-03-06 Richard Henderson <rth@redhat.com>
31461 * config/m68k/m68k.h (ISA_HAS_TAS): New.
31462 * config/m68k/sync.md (atomic_test_and_set): Use it.
31463 (atomic_test_and_set_1): Likewise.
31465 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31468 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
31469 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
31470 (vector_ltgt<mode>): Likewise.
31471 (vector_ordered<mode>): Likewise.
31472 (vector_unordered<mode>): Likewise.
31473 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
31475 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
31477 * trans-mem.c: New typedef for tm_region_p.
31478 Define vector types for tm_region_p.
31479 (tm_region_init): Replace region_worklist to a vector called
31482 2012-03-06 Richard Guenther <rguenther@suse.de>
31484 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
31485 MEM_REF with constant pointer operand.
31487 2012-03-06 Richard Guenther <rguenther@suse.de>
31489 PR middle-end/52493
31490 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
31492 2012-03-06 Tristan Gingold <gingold@adacore.com>
31494 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
31495 (external_model_kind): Improve documentation.
31496 (vms_pragma_extern_model): Handle relaxed_redef.
31497 (vms_c_register_pragma): Allow expansion for nomember_alignment.
31499 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
31501 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
31502 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
31503 Some more notes on EIND usage and reorder EIND subsection.
31505 2012-03-06 Tristan Gingold <gingold@adacore.com>
31507 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
31508 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
31510 2012-03-06 Tristan Gingold <gingold@adacore.com>
31512 * config/vms/t-vmsnative (version): Define.
31513 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
31515 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
31517 PR rtl-optimization/52250
31518 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
31519 to put note list into. Unconditionally call move_bb_info.
31520 (move_bb_info): Do not assert the blocks being in the same region,
31521 just drop the note list if they are not.
31523 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
31526 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
31527 and use unified expansion logic.
31528 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
31529 closer to the existing movt insn.
31530 (negc): Rename insn to *negc. Add new expander.
31531 (movnegt): Use xor pattern for T bit negation. Reserve helper
31532 constant for negc pattern.
31533 (*movnegt): New insn and splitter.
31535 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
31537 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
31540 2012-03-05 Richard Henderson <rth@redhat.com>
31542 * genemit.c (main): Include "target.h" in insn-emit.c.
31543 * Makefile.in (insn-emit.o): Depend on TARGET_H.
31544 * config/sh/sync.md (atomic_test_and_set): Reference
31545 targetm.atomic_test_and_set_trueval instead of
31546 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
31548 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
31550 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
31553 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
31555 * langhooks.c (add_builtin_type): New function.
31556 * langhooks.h (add_builtin_type): Export it.
31557 * config/mep/mep.c (mep_init_builtins): Use it.
31558 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
31560 2012-03-05 Jakub Jelinek <jakub@redhat.com>
31563 * tree.h (BLOCK_SAME_RANGE): Define.
31564 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
31565 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
31566 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
31567 isn't equal to supercontext fragment's fragment chain.
31568 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
31570 (blocks_nreverse_all): Likewise.
31571 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
31572 BLOCK_SUPERCONTEXT to supercontext fragment instead of
31573 supercontext fragment's fragment origin.
31574 * dwarf2out.c (add_high_low_attributes): If stmt has the same
31575 range as its parent (or parents thereof etc.), use the parent's
31576 DW_AT_ranges value instead of creating a new .debug_ranges range.
31578 2012-03-05 Richard Henderson <rth@redhat.com>
31581 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
31582 * omp-low.c (expand_omp_atomic): Assume anything aligned to
31583 BIGGEST_ALIGNMENT is aligned.
31585 2012-03-05 Richard Henderson <rth@redhat.com>
31587 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
31588 * config/sh/sh.c: ... here.
31590 2012-03-05 Richard Henderson <rth@redhat.com>
31593 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
31594 instead of calling negqi2 directly.
31596 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
31598 PR middle-end/52463
31599 * trans-mem.c (tm_region_init): Use last_basic_block.
31601 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
31603 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
31604 * config/sh/sync.md (atomic_test_and_set): New expander.
31605 (tasb, atomic_test_and_set_soft): New insns.
31606 * config/sh/sh.opt (menable-tas): New option.
31607 * doc/invoke.texi (SH Options): Document it.
31609 2012-03-05 Richard Guenther <rguenther@suse.de>
31611 * cfgloop.c (verify_loop_structure): Verify dominators before
31613 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
31614 dominators from here.
31615 * graphite-scop-detection.c (create_sese_edges): Likewise.
31616 * loop-doloop.c (doloop_optimize_loops): Likewise.
31617 * loop-init.c (loop_optimizer_init): Likewise.
31618 * loop-unroll.c (unroll_and_peel_loops): Likewise.
31619 * loop-unswitch.c (unswitch_loops): Likewise.
31620 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
31621 * tree-parloops.c (parallelize_loops): Likewise. Verify
31622 only when checking is enabled.
31623 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
31625 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
31627 * genautomata.c (parse_automata_opt): New static function.
31628 (initiate_automaton_gen): Remove all option handling code. Remove
31629 argc argument. All callers changed.
31630 (main): Call init_rtx_reader_args_cb with the new function as argument.
31632 2012-03-05 Richard Guenther <rguenther@suse.de>
31634 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
31635 * tree-if-conv.c (combine_blocks): Free post-dominator info
31637 * tree-parloops.c (create_parallel_loop): Free and re-compute
31638 dominator info after breaking it.
31640 2012-03-05 Richard Guenther <rguenther@suse.de>
31642 PR middle-end/52353
31643 * optabs.h (trapv_unoptab_p): New function.
31644 (trapv_binoptab_p): Likewise.
31645 * optabs.c (expand_binop): Use emit_libcall_block_1 with
31646 a proper equiv_may_trap argument.
31647 (expand_unop): Likewise.
31648 (emit_libcall_block_1): Take extra argument whether the
31649 instruction may trap. Renamed from ...
31650 (emit_libcall_block): ... this. New wrapper.
31652 2012-03-05 Jakub Jelinek <jakub@redhat.com>
31654 PR tree-optimization/51721
31655 * tree-vrp.c (register_edge_assert_for_2): If comparing
31656 lhs of right shift by constant with an integer constant,
31657 add ASSERT_EXPRs for the rhs1 of the right shift.
31659 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
31661 2012-03-05 Richard Guenther <rguenther@suse.de>
31663 * tree.c (integer_zerop): Handle VECTOR_CSTs.
31664 (integer_onep): Likewise.
31665 (integer_all_onesp): Likewise.
31667 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
31669 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
31671 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
31673 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
31674 instead of TARGET_64BIT.
31676 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
31678 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
31681 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
31683 * config/i386/i386.c (ix86_print_operand_address): Only handle
31684 zero-extended DImode addresses.
31686 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
31688 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
31689 taken and cputaken as bool.
31691 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
31693 * config/i386/constraints.md (Ya): New internal constraint.
31694 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
31695 (*zero_extendsidi2_rex64): Add x,x alternative.
31696 (*zero_extendsidi2): Ditto. Add o,0 alternative.
31697 Remove flags reg clobber. Adjust corresponding splits.
31698 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
31699 zero_extendqisi2 expanders using SWI12 mode iterator.
31700 (zero_extend<mode>si2_and): Macroize insn from
31701 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
31703 (*zero_extend<mode>si2): Macroize insn from
31704 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
31705 (*zero_extend*2_movzbl_and): Remove insn patterns.
31706 (zero_extendqihi2_and): Merge corresponding splitter.
31707 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
31708 (*zero_extend*2_movzbl_and): Remove insn patterns.
31709 (*anddi_1): Split TYPE_IMOVX instructions.
31710 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
31712 (and->zext splitter): Add splitter pattern.
31713 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
31715 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
31717 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
31719 (Debugging Options): Likewise.
31720 (Optimize Options): Likewise.
31721 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
31722 with other architectures. Use official processor names with correct
31723 spelling/capitalization. Fix formatting and grammar issues.
31724 (i386 and x86-64 Windows Options): Similar cleanup here.
31726 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31728 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
31730 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31732 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
31733 DBX_REGISTER_NUMBER.
31735 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31737 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
31738 operand is CONST_INT. Take COSTS_N_INSNS into account.
31739 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
31742 2012-03-02 Richard Henderson <rth@redhat.com>
31744 * optabs.c (expand_atomic_test_and_set): Honor
31745 atomic_test_and_set_trueval even when atomic_test_and_set
31746 optab is not in use.
31748 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
31752 * config/sh/sh.c (sh_register_move_cost): Increase cost between
31753 GENERAL_REGS and FP_REGS for SImode.
31755 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
31758 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
31759 (absdi2): New expander.
31760 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
31762 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
31764 * config/sh/sync.md (atomic_exchange<mode>): New expander.
31765 (atomic_exchange<mode>_soft): New insn.
31767 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
31769 * config/sh/sync.md: Update copyright notice dates.
31770 (atomic_compare_and_swap<mode>): Use SImode for return value instead
31772 (atomic_compare_and_swap<mode>_soft): Likewise.
31774 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
31777 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
31778 * config/sh/sh.c: Update copyright notice dates.
31779 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
31780 alignment for TARGET_HARD_SH4.
31781 (sh_option_override): Reduce default function alignment. Set
31782 loop alignment to 4 bytes when not optimizing for size.
31784 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
31786 PR middle-end/50335
31787 * doc/invoke.texi (floop-flatten): Remove.
31788 * toplev.c (process_options): Remove references to flag_loop_flatten.
31789 * tree-ssa-loop.c (gate_graphite_transform): Same.
31790 * common.opt (floop-flatten): Obsolete.
31791 * graphite-poly.c (apply_poly_transforms): Remove reference to
31793 * Makefile.in (graphite-flattening.o): Remove.
31794 * graphite-flattening.c: Remove.
31796 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
31798 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
31799 having mode compatible with the mode of previous compare. Substitute
31800 compare mode of previous compare with the mode, compatible
31801 with eliminated and previous compare.
31803 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
31805 * config/rs6000/dfp.md (floatdidd2): New define_insn.
31807 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
31809 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
31810 compatible with CCGOCmode and CCGCmode.
31812 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
31814 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
31816 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
31818 * config/arm/arm.c (arm_sat_operator_match): New function.
31819 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
31820 * config/arm/arm.md ("insn" attribute): Add "sat" value.
31821 ("SAT", "SATrev"): New code iterators.
31822 ("SATlo", "SAThi"): New code iterator attributes.
31823 ("*satsi_<SAT:code>"): New pattern.
31824 ("*satsi_<SAT:code>_shift"): Likewise.
31825 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
31826 and "shift" attributes.
31827 ("arm_usatsihi"): Add "insn" attribute.
31828 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
31829 by powers of two. Do not allow shift by 32.
31831 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
31834 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
31835 to pass the argument in the register of "natural" mode.
31837 2012-03-02 Richard Guenther <rguenther@suse.de>
31839 PR tree-optimization/52406
31840 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
31841 (struct indices): Add unconstrained_base member.
31842 (struct dr_alias): Remove unused vops member.
31843 (DR_UNCONSTRAINED_BASE): New define.
31844 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
31845 add indices to allow their disambiguation. Make DR_BASE_OBJECT
31846 be an artificial access that covers the whole indexed object,
31847 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
31848 plain decl base-objects to their MEM_REF variant.
31849 (dr_may_alias_p): When the base-object of either data reference
31850 has unknown size use only points-to information.
31851 (compute_affine_dependence): Make dumps easier to read and
31853 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
31854 DR_REF when looking for packed references.
31855 (vect_supportable_dr_alignment): Likewise.
31857 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
31859 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
31860 Improve conditions for peepholes of loads followed by commutative
31862 * config/arm/ldmstm.md: Regenerated.
31864 2012-03-02 Richard Guenther <rguenther@suse.de>
31866 * BASE-VER: Set to 4.8.0.
31868 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
31870 * config.gcc (obsolete): Add all ARM targets using the FPA.
31871 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
31872 * doc/install.texi: Avoid references to obsolete ARM ports.
31874 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
31876 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
31878 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
31879 Joern Rennecke <joern.rennecke@embecosm.com>
31881 * doc/extend.texi: Expand and update information on interrupt
31882 attribute for Epiphany.
31884 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31886 * config/sh/sh-protos.h: Update copyright notice dates.
31887 * config/sh/sh.h: Likewise.
31888 * config/sh/sh.md: Likewise.
31889 * config/sh/constraints.md: Likewise.
31890 * config/sh/predicates.md: Likewise.
31892 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31894 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
31895 * config/sh/sh.c (tertiary_reload_operand): Likewise.
31897 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31899 * config/sh/constraints.md: Fix comment typo.
31901 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31904 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
31905 unsigned HOST_WIDE_INT.
31906 (zvdep_imm64): Likewise.
31907 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
31908 (vdepi_and): Likewise.
31909 Likewise for unamed 64-bit patterns.
31910 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
31912 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
31915 PR rtl-optimization/52417
31916 * cselib.c (cselib_any_perm_equivs): New variable.
31917 (cselib_reset_table): Check that it's not set when not
31918 preserving constants.
31919 (cselib_add_permanent_equiv): Set it.
31920 (cselib_have_permanent_equivalences): New.
31921 (cselib_init, cselib_finish): Reset it.
31922 * cselib.h (cselib_have_permanent_equivalences): Declare.
31923 * alias.c (get_addr): Restore earlier behavior when there
31924 aren't permanent equivalences.
31926 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
31928 * config/mn10300/mn10300-modes.def: Fix copyright notice.
31929 * config/v850/v850-modes.def: Fix copyright notice.
31931 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
31933 * doc/extend.texi (AVR Built-in Functions): Document
31934 __builtin_avr_flash_segment.
31936 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
31937 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
31938 (*split.flash_segment): New insn-and-split.
31939 * config/avr/avr.c (avr_init_builtins): Add local variables:
31940 const_memx_void_node, const_memx_ptr_type_node,
31941 char_ftype_const_memx_ptr.
31943 2012-03-01 Jakub Jelinek <jakub@redhat.com>
31945 PR tree-optimization/52445
31946 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
31947 add ssa_name_ver, offset and size fields and change store field
31949 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
31950 (add_or_mark_expr): Likewise. Only consider previous stores
31951 with the same size and offset.
31952 (nt_init_block): Only look at gimple_assign_single_p stmts,
31953 doesn't look at rhs2.
31955 2012-03-01 Richard Guenther <rguenther@suse.de>
31957 PR middle-end/52443
31958 * tree-cfg.c (verify_gimple_assign_unary): Allow any
31959 conversions from integral types to pointer types.
31961 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
31963 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
31964 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
31965 unintentionally removed in r184616.
31967 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31969 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
31972 2012-02-29 Jakub Jelinek <jakub@redhat.com>
31973 Uros Bizjak <ubizjak@gmail.com>
31976 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
31977 alternatives, add "e" constraint to the new last alternative
31978 and ! to last 3 alternatives.
31980 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
31982 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
31983 DW_AT_artificial attributes at the end of the processing.
31984 (gen_array_type_die): Likewise.
31985 (gen_enumeration_type_die): Likewise.
31986 (gen_struct_or_union_type_die): Likewise.
31987 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
31990 2012-02-29 Jakub Jelinek <jakub@redhat.com>
31992 PR middle-end/52419
31993 * expr.c (expand_assignment): If doing misaligned store that doesn't
31994 cover all mode bits, perform a RMW cycle.
31996 PR tree-optimization/52429
31997 * tree-parloops.c (separate_decls_in_region_debug): Return early
31998 if var is LABEL_DECL.
32000 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32002 PR tree-optimization/52424
32003 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
32004 calling dom_thread_across_edge.
32006 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32008 * config/avr/avr.c: Move definition of TARGET macros to end of file.
32010 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32012 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
32013 * config/avr/avr.c (avr_output_bld): Remove unused function.
32014 (avr_out_sbxx_branch): Use "%T" to print bit position.
32016 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32018 * config/avr/avr.md: Untabify.
32020 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32022 * config/avr/avr.md (eqne): New code iterator.
32023 (*dec-and-branchsi): Use it in text peephole's condition.
32024 (*dec-and-branchhi): Ditto.
32025 (*dec-and-branchqi): Ditto.
32027 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32030 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
32031 the device does not have the skip-bug.
32033 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
32035 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
32036 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
32037 -mpretend-cmove): New.
32039 2012-02-29 Jakub Jelinek <jakub@redhat.com>
32042 * df.h (struct df_d): Adjust comment that hard_regs_live_count
32043 doesn't count DEBUG_INSN refs.
32044 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
32045 for DEBUG_INSN refs.
32047 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32051 2012-02-20 Richard Guenther <rguenther@suse.de>
32052 PR tree-optimization/52298
32053 * tree-vect-stmts.c (vectorizable_load): Properly use
32054 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
32056 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
32058 PR middle-end/51752
32059 * gimple.h (gimple_in_transaction): New.
32060 (gimple_set_in_transaction): New.
32061 (struct gimple_statement_base): Add in_transaction field.
32062 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
32064 (tree_ssa_lim_initialize): Compute transaction bits.
32065 * tree.h (compute_transaction_bits): Protoize.
32066 * trans-mem.c (tm_region_init): Use the heap to store BB
32068 (compute_transaction_bits): New.
32070 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32072 * gcc.c (display_help): Document --help=common and sort entries
32075 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32077 * doc/install.texi: Document check-$LANG specific shortcuts
32079 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
32082 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
32084 * config/arm/arm_neon.h: Regenerate.
32085 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
32086 (neon_vcgeu): New insn.
32087 (neon_vcgtu): Likewise.
32088 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
32089 (ops): Unsigned comparison intrinsics call a different builtin.
32091 2012-02-28 Richard Guenther <rguenther@suse.de>
32094 * config/i386/i386.c (ix86_expand_vector_set): Fix element
32095 ordering for the VEC_CONCAT for two element vectors for
32096 V2SFmode, V2SImode and V2DImode.
32098 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
32101 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
32102 detecting big-endian triplets.
32104 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
32106 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
32107 mode if there is no type information available.
32109 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
32111 PR tree-optimization/53207
32112 * doc/invoke.texi: Document as experimental and relying on graphite.
32114 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
32116 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
32117 of initializer to changes from r184614.
32119 2012-02-28 Richard Guenther <rguenther@suse.de>
32121 PR tree-optimization/52395
32122 * tree-sra.c (build_ref_for_offset): Also look at the base
32123 TYPE_ALIGN when figuring out the alignment of the replacement.
32125 2012-02-28 Richard Guenther <rguenther@suse.de>
32127 PR tree-optimization/52402
32128 * ipa-prop.c (ipa_modify_call_arguments): Properly use
32129 mis-aligned types when creating the accesses at the call site.
32131 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
32133 * config/avr/builtins.def: New file.
32134 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
32135 * config/avr/avr.c (enum avr_builtin_id): Use it.
32136 (avr_init_builtins): Use it. And use avr_bdesc.
32137 (bdesc_1arg): Remove.
32138 (bdesc_2arg): Remove.
32139 (bdesc_3arg): Remove.
32140 (struct avr_builtin_description): Add field n_args.
32141 (avr_bdesc): New static variable using builtins.def.
32142 (avr_expand_builtin): Use it.
32143 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
32144 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
32145 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
32147 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
32150 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
32151 match only one single hard register with respective hard reg rtx.
32152 (movmemx_<mode>): Ditto.
32153 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
32154 insn anatomy of movmem[x]_<mode>.
32155 (avr_out_movmem): Same for printing assembler and operand usage.
32157 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
32161 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
32162 address spaces located outside of device flash.
32164 * config/avr/avr.h (base_arch_s): Remove field n_segments.
32165 (mcu_type_s): Add field n_flash.
32166 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
32167 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
32168 (AVR_MCU): Add N_FLASH argument.
32169 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
32170 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
32171 macro __FLASH<n> if that address space makes sense for the device.
32172 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
32173 outside of target flash.
32174 (avr_asm_named_section): Ditto.
32175 (avr_asm_select_section): Ditto.
32176 (avr_addr_space_convert): Ditto.
32177 (avr_emit_movmemhi): Ditto.
32178 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
32179 address space is outside of device flash.
32180 (avr_insert_attributes): Ditto.
32181 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
32182 avr_current_arch->n_segments.
32184 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
32187 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
32188 (*movabs<mode>_2): Likewise.
32190 2012-02-27 Jakub Jelinek <jakub@redhat.com>
32193 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
32194 s_register_operand in the test instead of REG_P. Don't call
32195 gen_reg_rtx if it won't be used.
32197 PR tree-optimization/52376
32198 * ipa-split.c (split_function): Ignore CLOBBER stmts.
32200 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
32202 * ifcvt.c (noce_get_condition): Check condition variable is not
32203 small_register_classes_for_mode_p before accepting.
32205 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
32207 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
32209 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
32212 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
32213 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
32215 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
32217 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
32219 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
32221 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
32223 * config/sh/predicates.md: Remove blank lines.
32224 * config/sh/sh.c: Fix typos in comments.
32225 * config/sh/constraints.md: Likewise.
32226 * config/sh/sh.md: Remove blank lines.
32227 Fix typos in comments. Use ;; as comment characters.
32229 2012-02-26 Walter Lee <walt@tilera.com>
32231 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
32232 (replace_mov_pcrel_step2): Ditto.
32234 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
32237 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
32238 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
32239 and locs that reference values newer than the non-canonical value
32240 at hand. Return the canonical value as a worst case.
32241 (memrefs_conflict_p): Walk canonical value's locs.
32244 * cselib.c (preserve_only_constants): Rename to...
32245 (preserve_constants_and_equivs): ... this. Split out...
32246 (invariant_or_equiv_p): ... this. Preserve plus expressions
32247 of other preserved expressions too.
32248 (cselib_reset_table): Adjust.
32249 * var-tracking.c (reverse_op): Use canonical value to build
32252 2012-02-23 Kai Tietz <ktietz@redhat.com>
32254 * config/i386/i386.c (ix86_delegitimize_address): Handle
32255 UNSPEC_PCREL plus displacement.
32257 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
32260 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
32261 to test for unusedness in st X addressing.
32263 2012-02-24 Richard Guenther <rguenther@suse.de>
32265 PR middle-end/52361
32266 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
32267 (is_gimple_reg_type): Move inline ...
32268 * gimple.h (is_gimple_reg_type): ... here.
32270 2012-02-24 Richard Guenther <rguenther@suse.de>
32272 PR middle-end/52361
32273 * passes.c (execute_function_todo): When verifying SSA form
32274 verify gimple form first.
32275 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
32277 2012-02-24 Richard Guenther <rguenther@suse.de>
32279 PR middle-end/52355
32280 * fold-const.c (fold_addr_of_array_ref_difference): New function.
32281 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
32283 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32285 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
32287 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32289 * tree-phinodes.c (make_phi_node): Mark static.
32290 * tree-flow.h (make_phi_node): Remove extern decl.
32291 * doc/gimple.texi (make_phi_node): Remove documentation.
32293 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32295 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
32296 * tree-ssa-sccvn.c (print_scc): Ditto.
32298 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32300 * doc/passes.texi (Full redundancy elimination): Fix typo.
32302 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32304 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
32306 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
32309 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
32311 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
32314 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
32316 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
32318 * config/avr/avr.md (code_stdname): Add ior, xor.
32319 (xior): New code iterator.
32320 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
32321 (*<code_stdname><mode>qi.byte1-3): Ditto.
32323 2012-02-23 Jakub Jelinek <jakub@redhat.com>
32325 PR tree-optimization/52019
32326 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
32329 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32331 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
32332 HAVE_INITFINI_ARRAY to work around namespace pollution in
32333 certain versions of newlib system headers.
32334 * config.in: Regenerate.
32335 * configure: Regenerate.
32336 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
32337 instead of HAVE_INITFINI_ARRAY.
32339 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
32342 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
32343 is not offsettable memory reference.
32345 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
32348 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
32349 setting avr_need_clear_bss_p for __gnu_lto* symbols.
32351 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
32353 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
32354 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
32356 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32358 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
32359 library on Solaris 8 even without TLS support.
32360 * configure: Regenerate.
32362 2012-02-22 Richard Guenther <rguenther@suse.de>
32364 PR middle-end/52329
32365 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
32366 for GIMPLE_DEBUG stmts.
32368 2012-02-22 Martin Jambor <mjambor@suse.cz>
32370 PR middle-end/51782
32371 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
32372 according to the base object.
32374 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
32376 PR rtl-optimization/50063
32377 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
32378 and 2 (8-bit SP) in operand 2.
32379 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
32380 setup to use movhi_sp_r instead of vanilla move to write SP.
32381 Adjust REG_CFA notes to superseed unspec.
32382 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
32384 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
32385 known to be off) only with TARGET_NO_INTERRUPTS. Never use
32386 irq_state 1 (IRQ known to be on) here.
32388 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
32390 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
32392 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
32393 assign_hard_reg): Likewise.
32395 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
32397 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
32399 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
32401 * config/avr/avr.md
32402 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
32403 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
32405 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
32407 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
32408 prototype from here to...
32409 * config/avr/avr.h: ...here.
32411 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
32414 * thumb2.md (thumb2_shiftsi3_short): Split register and
32415 immediate shifts. For register shifts tie operands 0 and 1.
32416 (peephole2 for above): Check that register-controlled shifts
32417 have suitably tied operands.
32419 2012-02-21 Quentin Neill <quentin.neill@amd.com>
32422 * config/i386/bdver1.md (bdver1_call, bdver1_push,
32423 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
32424 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
32425 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
32426 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
32427 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
32428 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
32429 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
32430 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
32431 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
32432 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
32433 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
32434 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
32435 bdver1_ssevector_avx256_unaligned_load,
32436 bdver1_ssevector_sse128_unaligned_load,
32437 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
32438 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
32439 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
32440 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
32441 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
32442 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
32443 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
32444 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
32445 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
32446 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
32447 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
32448 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
32449 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
32450 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
32451 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
32452 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
32453 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
32454 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
32455 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
32456 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
32457 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
32458 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
32459 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
32460 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
32461 bdver1_ssediv_double_load, bdver1_ssediv_double,
32462 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
32463 Add "bdver2" attribute.
32465 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32467 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
32468 default if possible and not specified otherwise.
32470 2012-02-21 Richard Guenther <rguenther@suse.de>
32472 PR middle-end/52314
32473 * gimplify.c (create_tmp_from_val): Use the main variant type
32474 for the type of the temporary we create.
32476 2012-02-21 Richard Guenther <rguenther@suse.de>
32478 PR tree-optimization/52324
32479 * gimplify.c (gimplify_expr): When re-gimplifying expressions
32480 do not gimplify a MEM_REF address operand if it is already
32483 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32485 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
32486 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
32488 2012-02-21 Richard Guenther <rguenther@suse.de>
32490 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
32491 nested_in_vect_loop.
32493 2012-02-21 Jakub Jelinek <jakub@redhat.com>
32495 PR tree-optimization/52318
32496 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
32497 vdef also to non-pure/const call stmts in the sequence.
32499 2012-02-21 Tristan Gingold <gingold@adacore.com>
32501 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
32503 2012-02-20 David S. Miller <davem@davemloft.net>
32505 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
32506 don't use the "rd %pc" instruction on v9 for PIC register loads.
32508 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
32510 PR middle-end/52141
32511 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
32512 in a transaction safe function.
32514 2012-02-20 Kai Tietz <ktietz@redhat.com>
32517 * stor-layout.c (place_field): Handle desired_align for
32520 2012-02-20 Richard Guenther <rguenther@suse.de>
32522 PR tree-optimization/52298
32523 * tree-vect-stmts.c (vectorizable_store): Properly use
32524 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
32526 (vectorizable_load): Likewise.
32527 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
32528 Access DR_STEP after ensuring it is not NULL.
32530 2012-02-20 Jakub Jelinek <jakub@redhat.com>
32532 PR tree-optimization/52286
32533 * fold-const.c (fold_binary_loc): For (X & C1) | C2
32534 optimization use double_int_to_tree instead of build_int_cst_wide,
32535 rewrite to use double_int vars.
32537 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32540 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
32542 Remove -e 0 from $gcc_cv_ld invocation.
32543 Only use __GLIBC_PREREQ if defined.
32544 Enable on Solaris since Solaris 8 patch.
32545 (gcc_SUN_LD_VERSION): New macro.
32546 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
32547 gcc_SUN_LD_VERSION for version number format.
32548 * configure: Regenerate.
32549 * varasm.c (get_elf_initfini_array_priority_section): Set
32550 SECTION_NOTYPE for non-default priority.
32551 Use get_section instead of get_unnamed_section to emit
32552 .init_array/.fini_array with default priority.
32554 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
32556 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
32557 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
32558 (mips_start_unique_function, mips_output_mips16_rdhwr)
32559 (mips_code_end): New functions.
32560 (TARGET_ASM_CODE_END): Define.
32562 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
32564 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
32565 to stubs with non-sibling calls.
32567 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
32569 * doc/invoke.texi (-fira-* options): Copy-edit.
32570 (ira-* parameters): Copy-edit.
32572 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
32574 * doc/invoke.texi: Minor copy-edits to bring into conformance with
32575 GCC coding conventions.
32577 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
32579 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
32580 when used as adjectives.
32582 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
32584 * doc/invoke.texi: Clean up "that"/"which" confusion.
32586 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
32588 * system.h: Poison SMALL_REGISTER_CLASSES
32589 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
32590 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
32592 2012-02-16 Jakub Jelinek <jakub@redhat.com>
32594 PR tree-optimization/52285
32595 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
32596 when deciding if a call is a tail call or tail recursion.
32598 2012-02-16 Kai Tietz <ktietz@redhat.com>
32600 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
32601 interger-constant displacement for UNSPEC_PCREL.
32603 2012-02-16 Jakub Jelinek <jakub@redhat.com>
32605 PR rtl-optimization/52208
32606 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
32607 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
32609 PR tree-optimization/52255
32610 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
32611 loop->header has virtual PHI, but exit_e->dest doesn't, add
32612 virtual PHI to exit_e->dest and adjust all uses after the loop.
32615 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
32616 children with clone_tree_hash, not after it.
32618 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
32620 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
32621 extended identifiers.
32623 2012-02-16 Jakub Jelinek <jakub@redhat.com>
32625 PR middle-end/51929
32626 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
32627 a same_body_alias, also test whether e->callee isn't a former
32628 or current clone of the decl this is a same body alias of.
32630 PR translation/52264
32631 * cgraphunit.c (verify_cgraph_node): Fix a typo.
32633 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
32635 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
32637 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32640 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
32641 force_reg instead of copy_to_reg for better optimization. Force
32642 non-register or memory operands into a register.
32644 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
32646 * extend.texi: Reserve upper bits of memory model for future use.
32648 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
32649 Anatoly Sokolov <aesok@post.ru>
32650 Eric Weddington <eric.weddington@atmel.com>
32653 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
32654 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
32655 Rewrite initializers for .macro.
32656 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
32657 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
32658 atxmega32d4, atxmega32x1.
32659 avrxmega4: atxmega64a3, atxmega64d3.
32660 avrxmega5: atxmega64a1, atxmega64a1u.
32661 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
32662 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
32663 avrxmega7: atxmega128a1, atxmega128a1u.
32664 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
32665 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
32666 (struct base_arch_s): Rename reserved to xmega_p.
32667 Rename reserved2 to have_rampd.
32668 (AVR_XMEGA): New define.
32669 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
32670 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
32671 * config/avr/predicates.md (io_address_operand): Take into
32672 account SFR offset.
32673 (low_io_address_operand): Ditto.
32674 (high_io_address_operand): Ditto.
32675 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
32676 (enabled, movhi_sp_r): Use them.
32677 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
32678 cpp_define_formatted to built-in define __AVR_ARCH__.
32679 (__AVR_XMEGA__): New built-in define.
32680 (__AVR_HAVE_RAMPD__): New built-in define.
32681 (__AVR_HAVE_RAMPX__): New built-in define.
32682 (__AVR_HAVE_RAMPY__): New built-in define.
32683 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
32685 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
32686 (avr_option_override): Initialize them.
32687 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
32688 (avr_init_expanders): Initialize them. No more block several calls.
32689 (emit_push_sfr): New static function.
32690 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
32692 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
32693 (avr_print_operand): Print addreeses as symbols for
32694 RAMPX, RAMPY, RAMPD, CCP.
32695 (output_movhi): Handle AVR_XMEGA when writing to SP.
32696 (avr_out_movhi_mr_r_xmega): New static function.
32697 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
32698 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
32699 __RAMPD__, __CCP__ as needed.
32701 * config/avr/multilib.h: Regenerate.
32702 * config/avr/t-multilib: Regenerate.
32703 * config/avr/avr-tables.opt: Regenerate.
32705 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
32707 PR tree-optimization/50561
32708 * graphite-flattening.c (lst_project_loop): Do not
32709 remove old scattering dimensions after flattening.
32710 (lst_do_flatten): Likewise.
32712 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
32714 * doc/extend.texi (AVR Built-in Functions): Remove doc for
32715 __builtin_avr_map8, __builtin_avr_map16.
32716 Document __builtin_avr_insert_bits.
32718 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
32719 (insert_bits): New insn.
32720 (adjust_len.map_bits): Rename to insert_bits.
32721 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
32722 * avr-protos.h (avr_out_map_bits): Remove.
32723 (avr_out_insert_bits, avr_has_nibble_0xf): New.
32724 * config/avr/constraints.md (Cxf,C0f): New.
32725 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
32726 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
32727 New built-in define __BUILTIN_AVR_INSERT_BITS.
32728 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
32729 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
32730 (avr_move_bits): Rewrite.
32731 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
32733 (avr_map_op_t): New typedef.
32734 (avr_map_op): New static variable.
32735 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
32736 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
32737 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
32738 (bdesc_3arg, avr_expand_triop_builtin): New.
32739 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
32740 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
32741 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
32742 (avr_map_equal_p, avr_map_sig_p): Remove.
32743 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
32744 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
32745 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
32746 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
32747 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
32748 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
32750 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
32752 * config/c6x/c6x.md (reserve_cycles): New attribute.
32753 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
32754 don't reserve functional units after the branch occurs.
32756 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
32758 PR middle-end/52142
32759 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
32760 functions into non-tm_pure functions.
32762 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
32765 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
32766 (iterative_hash_canonical_type): Likewise.
32767 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
32770 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
32772 * haifa-sched.c (prune_ready_list): Ensure that if there is a
32773 sched-group insn, it either remains alone or the entire list is pruned.
32775 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
32777 * doc/install.texi (Prerequisites): Fix grammar.
32778 (Configuration): Likewise.
32780 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
32782 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
32783 MPC as part of GCC before describing configuring with --with-gmp etc.
32784 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
32785 sources are present.
32787 2012-02-14 Jakub Jelinek <jakub@redhat.com>
32790 * dwarf2out.c (clone_tree_hash): New function.
32791 (copy_decls_walk): Use it instead of clone_tree.
32793 2012-02-14 Richard Guenther <rguenther@suse.de>
32795 PR tree-optimization/52244
32796 PR tree-optimization/51528
32797 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
32798 replacements for integral types.
32800 2012-02-14 Walter Lee <walt@tilera.com>
32802 * config.gcc: Handle tilegx and tilepro.
32803 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
32804 tilegx and tilepro.
32805 Add HAVE_AS_TLS check for tilegx and tilepro.
32806 * configure: Regenerate.
32807 * doc/contrib.texi: Add Mat Hostetter and self.
32808 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
32809 Document instruction intrinsics and network accessing intrinsics.
32810 (TILEPro Built-in Functions): New node. Document instruction
32811 intrinsics and network accessing intrinsics.
32812 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
32813 (Specific, tilepro-*-linux*): Likewise.
32814 * doc/invoke.texi (TILE-Gx Options): New section.
32815 (TILEPro Options): New section.
32816 * doc/md.texi (TILE-Gx): New section.
32817 (TILEPro): New section.
32818 * common/config/tilegx/tilegx-common.c: New file.
32819 * common/config/tilepro/tilepro-common.c: New file.
32820 * config/tilegx/constraints.md: New file.
32821 * config/tilegx/linux.h: New file.
32822 * config/tilegx/mul-tables.c: New file.
32823 * config/tilegx/predicates.md: New file.
32824 * config/tilegx/sync.md: New file.
32825 * config/tilegx/t-tilegx: New file.
32826 * config/tilegx/tilegx-builtins.h: New file.
32827 * config/tilegx/tilegx-c.c: New file.
32828 * config/tilegx/tilegx-generic.md: New file.
32829 * config/tilegx/tilegx-modes.def: New file.
32830 * config/tilegx/tilegx-multiply.h: New file.
32831 * config/tilegx/tilegx-protos.h: New file.
32832 * config/tilegx/tilegx.c: New file.
32833 * config/tilegx/tilegx.h: New file.
32834 * config/tilegx/tilegx.md: New file.
32835 * config/tilegx/tilegx.opt: New file.
32836 * config/tilepro/constraints.md: New file.
32837 * config/tilepro/gen-mul-tables.cc: New file.
32838 * config/tilepro/linux.h: New file.
32839 * config/tilepro/mul-tables.c: New file.
32840 * config/tilepro/predicates.md: New file.
32841 * config/tilepro/t-tilepro: New file.
32842 * config/tilepro/tilepro-builtins.h: New file.
32843 * config/tilepro/tilepro-c.c: New file.
32844 * config/tilepro/tilepro-generic.md: New file.
32845 * config/tilepro/tilepro-modes.def: New file.
32846 * config/tilepro/tilepro-multiply.h: New file.
32847 * config/tilepro/tilepro-protos.h: New file.
32848 * config/tilepro/tilepro.c: New file.
32849 * config/tilepro/tilepro.h: New file.
32850 * config/tilepro/tilepro.md: New file.
32851 * config/tilepro/tilepro.opt: New file.
32853 2012-02-14 Jakub Jelinek <jakub@redhat.com>
32855 PR tree-optimization/52210
32856 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
32857 vect_model_simple_cost with two entry vect_def_type array instead
32858 of an address of dt.
32860 2012-02-14 Richard Guenther <rguenther@suse.de>
32863 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
32864 Do not stream DECL_QUALIFIER.
32865 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
32866 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
32867 (find_decls_types_r): Do not walk DECL_QUALIFIER.
32869 2012-02-14 Jakub Jelinek <jakub@redhat.com>
32872 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
32875 2012-02-13 Jakub Jelinek <jakub@redhat.com>
32878 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
32879 * cselib.c (cselib_subst_to_values_from_insn): New function.
32880 * sched-deps.c (add_insn_mem_dependence,
32881 sched_analyze_1, sched_analyze_2): Use it.
32883 2012-02-13 Jan Hubicka <jh@suse.cz>
32885 PR middle-end/52214
32886 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
32888 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
32890 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
32891 (GTM_SELF_SPECS): Define if not already defined.
32892 (driver_self_specs): Add GTM_SELF_SPECS.
32893 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
32894 (GTM_SELF_SPECS): Define.
32895 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
32896 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
32898 2012-02-13 Jakub Jelinek <jakub@redhat.com>
32900 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
32903 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
32905 PR middle-end/52230
32906 * omp-low.c (expand_omp_for): If a static schedule without chunk size
32907 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
32909 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
32912 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
32914 2012-02-13 Richard Guenther <rguenther@suse.de>
32916 PR translation/52211
32917 * passes.c (enable_disable_pass): Fix typo.
32919 2012-02-13 Jakub Jelinek <jakub@redhat.com>
32921 PR middle-end/52209
32922 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
32923 XOR for reduce_bit_field if type is unsigned.
32925 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
32927 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
32928 disallow changes from SFmode to mode with different size in FP regs.
32930 2012-02-12 Robert Millan <rmh@gnu.org>
32931 Gerald Pfeifer <gerald@pfeifer.com>
32933 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
32936 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
32938 PR rtl-optimization/52175
32939 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
32940 to frame-related instructions.
32942 2012-02-10 Jason Merrill <jason@redhat.com>
32945 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
32946 (demangle_new_symbols): Fill it.
32947 (scan_linker_output): Walk it.
32948 (start_tweaking): Split out from scan_linker_output.
32949 (maybe_tweak): Update sym->chosen.
32950 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
32952 2012-02-11 Jakub Jelinek <jakub@redhat.com>
32955 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
32957 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
32959 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
32960 having the same mode as previous compare.
32962 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
32964 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
32965 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
32966 (nonlocal_goto_internal): Likewise.
32967 (nonlocal_goto): Emit a use and an indirect jump directly.
32969 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
32972 * doc/extend.texi : Update comments for __atomic_compare_exchange and
32973 __atomic_{is,always}_lock_free.
32975 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
32978 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
32979 negative constant address for TARGET_X32.
32981 2012-02-10 Richard Henderson <rth@redhat.com>
32983 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
32984 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
32985 for GIMPLE_TRANSACTION. Tidy if's into a switch.
32987 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32988 Ira Rosen <irar@il.ibm.com>
32990 PR tree-optimization/50031
32991 * targhooks.c (default_builtin_vectorization_cost): Handle
32992 vec_promote_demote.
32993 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
32994 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
32995 all types of reduction and pattern statements.
32996 (vect_estimate_min_profitable_iters): Likewise.
32997 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
32998 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
32999 for explicit realigns.
33000 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
33001 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
33002 vec_promote_demote.
33003 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
33004 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
33005 vec_perm for VSX and handle vec_promote_demote.
33007 2012-02-10 Jakub Jelinek <jakub@redhat.com>
33009 PR middle-end/52177
33010 * builtins.c (fold_builtin_atomic_always_lock_free,
33011 expand_builtin_atomic_always_lock_free,
33012 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
33013 Return and/or test boolean_true_node/boolean_false_node instead of
33014 integer_one_node/integer_zero_node.
33016 2012-02-10 Jan Hubicka <jh@suse.cz>
33018 PR middle-end/48600
33019 * predict.c (predict_paths_for_bb): Prevent looping.
33020 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
33022 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
33024 * config/arm/arm.c (output_move_double): In one case properly
33025 count number of instructions that will be emitted.
33027 2012-02-10 Richard Guenther <rguenther@suse.de>
33029 PR translation/52193
33030 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
33032 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
33034 PR middle-end/52140
33035 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
33037 2012-02-09 Jakub Jelinek <jakub@redhat.com>
33040 * var-tracking.c (emit_note_insn_var_location): If
33041 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
33042 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
33043 non-NOTE_DURING_CALL_P insn.
33045 2012-02-09 Bin Cheng <bin.cheng@arm.com>
33047 PR middle-end/51867
33048 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
33050 2012-02-08 Magnus Granberg <zorry@gentoo.org>
33053 * gcc.c (switch_matches) Support switches with separated form,
33056 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
33058 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
33060 (RAMPZ_ADDR): Ditto.
33061 * config/avr/avr.c (avr_addr_t): New typedef.
33062 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
33063 (avr_init_expanders): Initialize it.
33064 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
33066 (expand_epilogue): Ditto.
33067 (avr_print_operand): Ditto.
33068 (avr_file_start): Ditto.
33069 (avr_emit_movmemhi): Ditto.
33071 2012-02-08 Richard Guenther <rguenther@suse.de>
33073 PR tree-optimization/46886
33074 * tree-flow.h (do_while_loop_p): Declare.
33075 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
33076 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
33078 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
33080 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
33081 always succeed for integers larger than a native word.
33083 2012-02-08 Richard Guenther <rguenther@suse.de>
33085 PR rtl-optimization/52170
33086 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
33087 properly handle integer vector modes.
33089 2012-02-08 Jakub Jelinek <jakub@redhat.com>
33091 PR gcov-profile/52150
33092 * coverage.c: Include target.h.
33093 (build_var): Call targetm.strip_name_encoding on the assembler name.
33094 Change one _ into . or $ if the target allows it.
33095 * Makefile.in (coverage.o): Depend on $(TARGET_H).
33097 PR rtl-optimization/52139
33098 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
33099 is a BARRIER after emit_insn_after_noloc, move BB_END
33100 to the last non-BARRIER insn before it.
33102 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
33104 PR middle-end/24306
33105 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
33106 (mips_gimplify_va_arg_expr): Call it instead of
33107 std_gimplify_va_arg_expr.
33109 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
33111 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
33112 message for -mno-pointers-to-nested-function.
33114 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
33116 PR middle-end/51994
33117 * expr.c (get_inner_reference): If there is an offset, add a negative
33118 bit position to it (if any).
33120 2012-02-07 Jakub Jelinek <jakub@redhat.com>
33122 PR rtl-optimization/52060
33123 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
33124 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
33125 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
33126 and/or i0src_copy2 when needed.
33128 2012-02-07 Jakub Jelinek <jakub@redhat.com>
33130 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
33131 or LTOPLUGINSONAME if have_c.
33133 * config/freebsd-spec.h: Add comment about what macros can be defined
33135 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
33136 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
33139 2012-02-07 Richard Guenther <rguenther@suse.de>
33141 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
33142 newline in -alias dumps.
33144 2012-02-07 Kai Tietz <ktietz@redhat.com>
33145 Dave Korn <dave.korn.cygwin@gmail.com>
33148 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
33149 Take care that typinfo gets dllexport-attribute.
33151 2012-02-07 Jakub Jelinek <jakub@redhat.com>
33153 PR middle-end/52074
33154 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
33155 if modifier < EXPAND_SUM call force_operand on the result.
33157 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
33159 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
33160 adding __forwarder_dst__ prefix if a forwarder_section attribute is
33162 (epiphany_function_type): Replace types for specific interrupts with
33163 EPIPHANY_FUNCTION_INTERRUPT.
33164 (EPIPHANY_INTERRUPT_P): Update.
33165 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
33166 New static function.
33167 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
33168 <disinterrupt>: Affects type identity.
33169 (epiphany_handle_interrupt_attribute): Handle variable number of
33171 (epiphany_compute_function_type): Update for new
33172 epiphany_function_type definition.
33173 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
33174 handlers with a longcall forwarder.
33175 (epiphany_start_function): Handle multiple interrupt arguments and/or
33176 forwarder_section attribute.
33178 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
33181 2012-02-07 Alan Modra <amodra@gmail.com>
33184 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
33187 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33189 PR tree-optimization/50969
33190 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
33191 use vec_perm rather than vector_stmt.
33192 (vect_model_load_cost): Likewise.
33193 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
33194 vec_perm to be the same as other vector statements.
33195 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
33196 cost of vec_perm for TARGET_VSX.
33198 2012-02-06 Richard Guenther <rguenther@suse.de>
33200 PR tree-optimization/52115
33201 * tree-sra.c (access_has_replacements_p): New function.
33202 (sra_modify_assign): Use it to decide whether a use is uninitialized.
33204 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
33206 PR middle-end/52047
33207 * trans-mem.c (expand_call_tm): Add an assertion.
33208 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
33211 2012-02-06 Richard Guenther <rguenther@suse.de>
33213 PR tree-optimization/50955
33214 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
33215 raise cost of expressions that replace an address with an
33216 expression based on a different pointer.
33218 2012-02-06 Jakub Jelinek <jakub@redhat.com>
33221 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
33222 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
33224 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
33227 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
33228 -Weffc++ and specify guidelines come from second edition.
33230 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
33232 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
33233 (sibcall_value_multiple_internal, call_split, call_internal_direct)
33234 (call_direct_split, call_value_split, call_value_internal_direct)
33235 (call_value_direct_split, call_value_multiple_split): Use jal and
33236 jal_macro attributes.
33238 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
33240 * reload1.c (reload_regs_reach_end_p): Replace with...
33241 (reload_reg_rtx_reaches_end_p): ...this function.
33242 (new_spill_reg_store): Update commentary.
33243 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
33244 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
33245 before setting new_spill_reg_store.
33246 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
33247 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
33248 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
33249 for non-spill reload registers.
33251 2012-02-05 Ira Rosen <irar@il.ibm.com>
33253 PR tree-optimization/52091
33254 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
33255 (vect_is_simple_use_1): Likewise.
33256 * tree-vect-loop.c (vectorizable_reduction): Update calls
33257 to vect_is_simple_use_1 and vect_is_simple_use.
33258 (vectorizable_live_operation): Likewise.
33259 * tree-vect-patterns.c (widened_name_p,
33260 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
33261 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
33262 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
33263 vectorizable_shift,vectorizable_operation, vectorizable_store,
33264 vectorizable_load): Likewise.
33265 (vect_is_simple_cond): Add an argument, pass it to
33266 vect_is_simple_use_1.
33267 (vectorizable_condition): Update calls to vect_is_simple_cond,
33268 vect_is_simple_use.
33269 (vect_is_simple_use): Add an argument, the statement in which
33270 OPERAND is used. Check that if OPERAND's def stmt is a double
33271 reduction phi node, the use is a phi node too.
33272 (vect_is_simple_use_1): Add an argument, pass it to
33273 vect_is_simple_use.
33274 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
33275 to vect_is_simple_use.
33277 2012-02-04 Jakub Jelinek <jakub@redhat.com>
33279 PR rtl-optimization/52095
33280 * modulo-sched.c (dump_insn_locator): New function.
33281 (loop_canon_p, sms_schedule): Use it.
33283 PR rtl-optimization/52113
33284 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
33285 even for decomposable shift/zext insns.
33287 2012-02-03 Jakub Jelinek <jakub@redhat.com>
33288 Zdenek Dvorak <ook@ucw.cz>
33290 PR rtl-optimization/52092
33291 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
33292 on get_iv_value result.
33294 2012-02-02 Andrew Pinski <apinski@cavium.com>
33296 PR middle-end/47982
33297 PR middle-end/43967
33298 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
33300 2012-02-02 Jakub Jelinek <jakub@redhat.com>
33302 PR middle-end/48071
33303 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
33305 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
33307 PR rtl-optimization/49800
33308 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
33309 (sched_finish): Call regstat_free_n_sets_and_refs.
33311 2012-02-02 Jia Liu <proljc@gmail.com>
33313 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
33316 2012-02-02 Jan Hubicka <jh@suse.cz>
33317 Tom de Vries <tom@codesourcery.com>
33319 PR middle-end/51998
33320 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
33321 * varpool.c (varpool_analyze_pending_decls): Likewise.
33323 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
33324 Jayant R Sonar <jayant.sonar@kpitcummins.com>
33326 * config.gcc: Add cr16-* support.
33328 * doc/extend.texi: Document cr16 extensions.
33329 * doc/install.texi: Document cr16 install.
33330 * doc/invoke.texi: Document cr16 options.
33331 * doc/md.texi: Document cr16 constraints.
33333 * common/config/cr16/cr16-common.c: New file.
33334 * config/cr16/cr16.c: New file.
33335 * config/cr16/cr16.h: New file.
33336 * config/cr16/cr16.md: New file.
33337 * config/cr16/cr16.opt: New file.
33338 * config/cr16/cr16-protos.h: New file.
33339 * config/cr16/predicates.md: New file.
33340 * config/cr16/constraints.md: New file.
33341 * config/cr16/t-cr16: New file.
33343 2012-02-02 Jakub Jelinek <jakub@redhat.com>
33346 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
33347 that operands[2] is either immediate, or q_regs_operand.
33349 PR tree-optimization/52073
33350 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
33351 a pattern stmt for pattern uses, ignore uses outside of the loop.
33353 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
33355 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
33356 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
33357 (OUT_AS1, OUT_AS2): Remove.
33359 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
33361 PR rtl-optimization/51374
33362 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
33363 to cross other volatile_refs_p insns.
33365 2012-02-01 Richard Guenther <rguenther@suse.de>
33367 * doc/invoke.texi (fno-inline): Clarify documentation.
33368 (finline-small-functions): Likewise.
33369 (finline-functions): Likewise.
33370 * common.opt (finline): Adjust comment and documentation.
33371 (finline-small-functions): Clarify documentation.
33372 (finline-functions): Likewise.
33373 (finline-functions-called-once): Likewise.
33375 2012-02-01 Tristan Gingold <gingold@adacore.com>
33377 * c-typeck.c (composite_type): Keep mode for pointers.
33379 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
33381 * function.h (regno_reg_rtx): Adjust comment.
33382 * reginfo.c (init_reg_modes_target): Only use the previous mode
33383 if it fits within one register. Remove MIPS comment.
33385 2012-01-31 Jakub Jelinek <jakub@redhat.com>
33388 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
33390 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33392 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
33393 to srak instruction.
33395 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
33397 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
33399 2012-01-31 Jakub Jelinek <jakub@redhat.com>
33404 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
33406 2012-01-31 Richard Guenther <rguenther@suse.de>
33408 PR tree-optimization/51528
33409 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
33412 2012-01-31 Jakub Jelinek <jakub@redhat.com>
33417 * ree.c (add_removable_extension): Change def_map argument
33418 to unsigned *, store in def_map 1 + offset into *insn_list vector
33419 instead of pointers into the vector.
33420 (find_removable_extensions): Adjust caller.
33422 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
33424 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
33425 Transform all "* quoted-c-code" to { c-code }.
33426 Remove redundant test for "optimize" in combine patterns.
33427 Move (include "avr-dimode.md") to end of file.
33429 2012-01-30 Bin Cheng <bin.cheng@arm.com>
33432 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
33433 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
33435 2012-01-30 Richard Guenther <rguenther@suse.de>
33437 PR tree-optimization/52028
33438 * tree-loop-distribution.c (ldist_gen): Properly update
33441 2012-01-30 Jakub Jelinek <jakub@redhat.com>
33444 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
33445 set_cur_line_info_table if not emitting debug info.
33447 PR tree-optimization/52046
33448 * tree-vect-patterns.c (check_bool_pattern): Give up if
33449 a comparison could throw.
33452 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
33454 2012-01-30 Richard Guenther <rguenther@suse.de>
33456 PR tree-optimization/52045
33457 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
33458 SSA form if cfgcleanup did anything.
33460 2012-01-30 Richard Guenther <rguenther@suse.de>
33462 PR tree-optimization/52045
33463 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
33464 before computing final todo.
33466 2012-01-30 Richard Guenther <rguenther@suse.de>
33468 PR tree-optimization/51528
33469 * tree-sra.c (sra_modify_assign): Re-factor in preparation
33472 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
33474 * df-problems.c (df_kill_notes): Check that the use refers
33475 to the note under examination.
33477 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
33480 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
33481 parameter and use short-lived pseudos.
33482 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
33483 (sparc_expand_vector_init): Const-ify local variables and adjust
33484 calls to above functions.
33486 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
33488 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
33490 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
33492 * doc/invoke.texi: Make usage of "compile time" and
33493 "run time"/"runtime" consistent throughout the file.
33495 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
33497 * config/alpha/alpha.c (alpha_option_override): Default to
33498 full IEEE compliance mode for Go language.
33500 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
33502 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
33503 (LINK_SSP_SPEC): Define.
33505 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33508 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
33511 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
33513 * doc/invoke.texi: Correct hyphenation of "floating point",
33514 "double precision", and related terminology throughout the file.
33516 2012-01-28 Jakub Jelinek <jakub@redhat.com>
33519 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
33520 arm_general_register_operand predicate for operand 2 instead of
33523 2012-01-27 Ian Lance Taylor <iant@google.com>
33526 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
33527 * builtins.c (expand_builtin_init_trampoline): Add onstack
33528 parameter. Change caller.
33529 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
33530 * tree.c (build_common_builtin_nodes): Declare
33531 __builtin_init_heap_trampoline.
33533 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
33535 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
33536 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
33537 * config/avr/avr.c: Ditto.
33538 (avr_regnames): Remove because unused.
33539 * config/avr/avr.md (*cpse.ne): New peephole.
33540 (*cpse.eq): New peephole from former cpse peepholes.
33542 2012-01-27 Michael Eager <eager@eagercon.com>
33544 * config/microblaze.c (microblaze_emit_compare): Correct
33545 test after pcmp instruction.
33547 2012-01-27 Richard Guenther <rguenther@suse.de>
33549 PR tree-optimization/52020
33550 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
33552 2012-01-27 Richard Guenther <rguenther@suse.de>
33554 * ipa-pure-const.c (check_stmt): Clobbers do not make a
33555 function non-const/pure.
33557 2012-01-27 Richard Guenther <rguenther@suse.de>
33559 PR tree-optimization/50444
33560 * tree-sra.c (build_ref_for_offset): Properly adjust the
33561 MEM_REF type for unaligned accesses.
33563 2012-01-27 Richard Guenther <rguenther@suse.de>
33565 PR tree-optimization/50444
33566 * expr.c (mem_ref_refers_to_non_mem_p): New function.
33567 (expand_assignment): Use it. Properly handle misaligned
33568 bases when expanding stores to component references.
33569 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
33570 refactor that case.
33572 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
33574 PR middle-end/51389
33575 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
33576 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
33577 * tree-data-ref.c (find_data_references_in_loop): Make static.
33578 (compute_all_dependences): Change return type to bool. Bail out
33579 for too many datarefs in a loop. Move the hunk resetting the data
33580 dependences vector from ...
33581 (compute_data_dependences_for_loop): ... here. Account for
33582 compute_all_dependences returning false.
33583 (compute_data_dependences_for_bb): Likewise.
33584 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
33585 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
33587 2012-01-27 Richard Guenther <rguenther@suse.de>
33589 PR middle-end/51959
33590 * expr.c (store_field): Use the alias-set of the scratch memory
33593 2012-01-27 Tom de Vries <tom@codesourcery.com>
33595 PR tree-optimization/51990
33596 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
33598 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
33600 2012-01-27 Jakub Jelinek <jakub@redhat.com>
33603 * var-tracking.c (reverse_op): Don't add any reverse operation
33604 if V already has any constant locations.
33606 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
33608 * doc/invoke.texi: Correct usage of "command line" (noun)
33609 vs "command-line" (adjective) throughout.
33611 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
33613 * doc/invoke.texi (Language Independent Options): Move
33614 -Wcoverage-mismatch blurb from here....
33615 (Warning Options): ...to here.
33617 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
33619 * config/rs6000/rs6000.c (rs6000_option_override_internal):
33620 Set rs6000_always_hint to false for 476.
33622 2012-01-27 Matthias Klose <doko@ubuntu.com>
33624 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
33626 * incpath.c (add_standard_paths): Likewise.
33628 2012-01-27 Richard Henderson <rth@redhat.com>
33630 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
33631 * config/m68k/sync.md (atomic_test_and_set): Rename from
33632 sync_test_and_setqi and adjust the operands.
33633 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
33634 and unconditionally enable.
33636 2012-01-27 Richard Henderson <rth@redhat.com>
33638 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
33639 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
33640 (ldstub): Rename from ldstubqi.
33641 (ldstub<I24MODE>): Remove.
33643 2012-01-27 Richard Henderson <rth@redhat.com>
33645 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
33646 * c-cppbuiltin.c (cpp_atomic_builtins): Define
33647 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
33648 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
33649 * doc/tm.texi: Rebuild.
33651 2012-01-27 Richard Henderson <rth@redhat.com>
33653 * optabs.c (gen_atomic_test_and_set): Remove default.
33654 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
33656 2012-01-26 Jakub Jelinek <jakub@redhat.com>
33658 PR rtl-optimization/51978
33659 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
33660 (combine_reaching_defs): Likewise.
33661 (struct re_info): Remove.
33662 (add_removable_extension): Remove x and data arguments,
33663 add insn, insn_list and def_map. Use the arguments directly
33664 instead of using struct re_info.
33665 (find_removable_extensions): Don't call add_removable_extension
33666 through note_stores, instead just call it with single_set
33667 result if non-NULL.
33668 (find_and_remove_re): Pass curr_cand->expr instead of
33669 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
33671 2012-01-26 Michael Matz <matz@suse.de>
33673 PR tree-optimization/46590
33674 * cfgexpand.c: Revert last change (r183305).
33675 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
33677 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
33678 checking for emptiness.
33680 2012-01-26 Jakub Jelinek <jakub@redhat.com>
33682 PR middle-end/51895
33683 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
33684 non-addressable non-BLKmode base correctly.
33686 2012-01-26 Michael Matz <matz@suse.de>
33688 PR tree-optimization/48794
33689 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
33690 regions referenced from RESX/EH_DISPATCH.
33692 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33694 * config/s390/s390.h: Make BRANCH_COST an option.
33695 * config/s390/s390.opt: New option -mbranch-cost.
33697 2012-01-26 Richard Henderson <rth@redhat.com>
33699 Revert 2012-01-24 change:
33700 * trans-mem.c (requires_barrier): Do not instrument thread local
33701 variables and emit save/restore for them.
33703 2012-01-25 Jakub Jelinek <jakub@redhat.com>
33705 PR middle-end/51986
33706 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
33709 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33711 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
33714 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
33717 Rename __pgm to __flash.
33718 Rename __pgm1 to __flash1.
33719 Rename __pgm2 to __flash2.
33720 Rename __pgm3 to __flash3.
33721 Rename __pgm4 to __flash4.
33722 Rename __pgm5 to __flash5.
33723 Rename __pgmx to __memx.
33724 * doc/extend.texi (AVR Named Address Spaces)
33725 Rename address space names as indicated above.
33726 * config/avr/avr.c (avr_addrspace): Ditto.
33728 * config/avr/avr-protos.h
33729 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
33730 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
33731 * config/avr/predicates.md: Ditto.
33732 * config/avr/avr.c Ditto, and
33733 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
33734 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
33736 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
33737 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
33738 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
33739 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
33740 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
33741 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
33742 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
33743 * config/avr/avr.c: Ditto.
33744 * config/avr/avr.md: Ditto.
33746 2012-01-25 Jason Merrill <jason@redhat.com>
33749 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
33751 2012-01-25 Jakub Jelinek <jakub@redhat.com>
33753 PR tree-optimization/51987
33754 * tree-data-ref.c (get_references_in_stmt): Handle references in
33755 non-volatile GIMPLE_ASM.
33757 2012-01-25 Richard Guenther <rguenther@suse.de>
33759 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
33760 bases are dereferenced.
33762 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
33764 PR rtl-optimization/48374
33765 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
33767 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
33769 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
33770 compute_data_dependences_for_loop returns false.
33771 * tree-parloops.c (loop_parallel_p): Likewise.
33773 2012-01-25 Richard Guenther <rguenther@suse.de>
33775 * tree.h (get_pointer_alignment_1): Declare.
33776 * builtins.c (get_pointer_alignment_1): New function.
33777 (get_pointer_alignment): Use it.
33779 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
33781 PR rtl-optimization/48308
33782 * combine.c (enum undo_kind): Add UNDO_LINKS.
33783 (struct undo): Add member l to other_contents and where.
33784 (do_SUBST_LINK): New.
33786 (try_combine): Handle LOG_LINKS for the dummy i1 case.
33787 (undo_all): Handle UNDO_LINKS.
33789 2012-01-25 Richard Henderson <rth@redhat.com>
33791 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
33794 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33796 * optabs.c (gen_atomic_test_and_set): Use each argument.
33798 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33800 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
33801 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
33802 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
33803 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
33804 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
33805 TARGET_PAIRED_SINGLE_FLOAT.
33807 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33809 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
33810 (in_struct, return_val): Remove MEM documentation.
33811 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
33812 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
33813 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
33815 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
33816 * cfgexpand.c (add_alias_set_conflicts): Likewise.
33817 * expr.c (store_field): Likewise.
33818 * function.c (assign_stack_temp_for_type): Likewise.
33819 * ifcvt.c (noce_try_cmove_arith): Likewise.
33820 * reload1.c (reload): Likewise.
33821 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
33822 (alpha_set_memflags): Likewise.
33823 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
33825 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33827 * rtl.h (true_dependence, canon_true_dependence): Remove varies
33829 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
33830 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
33831 (true_dependence_1, true_dependence, canon_true_dependence): Remove
33833 * cselib.c (cselib_rtx_varies_p): Delete.
33834 (cselib_invalidate_mem): Update call to canon_true_dependence.
33835 * dse.c (record_store, check_mem_read_rtx): Likewise.
33836 (scan_reads_nospill): Likewise.
33837 * cse.c (check_dependence): Likewise.
33838 (cse_rtx_varies_p): Delete.
33839 * expr.c (safe_from_p): Update call to true_dependence.
33840 * ira.c (validate_equiv_mem_from_store): Likewise.
33841 (memref_referenced_p): Likewise.
33842 * postreload-gcse.c (find_mem_conflicts): Likewise.
33843 * sched-deps.c (sched_analyze_2): Likewise.
33844 * store-motion.c (load_kills_store): Likewise.
33845 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
33846 * gcse.c (mems_conflict_for_gcse_p): Likewise.
33847 (compute_transp): Update call to canon_true_dependence.
33849 2012-01-25 Richard Henderson <rth@redhat.com>
33851 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
33852 (maybe_emit_atomic_test_and_set): New.
33853 (expand_sync_lock_test_and_set): Use it.
33854 (expand_atomic_test_and_set): Likewise.
33855 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
33856 the implementation; clarify implementation defined details.
33857 * doc/md.texi (atomic_test_and_set): Document.
33859 2012-01-25 Richard Henderson <rth@redhat.com>
33861 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
33863 2012-01-25 Richard Henderson <rth@redhat.com>
33866 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
33867 to effect no-op split.
33869 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
33872 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
33873 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
33874 (BT_FN_VOID_PTR_INT_SIZE): New.
33875 (BT_FN_UINT_UINT_VAR): Remove.
33876 (BT_FN_UINT32_UINT32_VAR): New.
33877 (BT_FN_DOUBLE_VPTR): Remove.
33878 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
33880 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
33881 (_ITM_changeTransactionMode): Same.
33882 (_ITM_memmoveRtWt): Change return type to void.
33883 (_ITM_memcpyRtWt): Same.
33884 (_ITM_memsetW): Same.
33885 (_ITM_RaRD): Change types to double.
33890 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
33892 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
33893 Patrick Marlier <patrick.marlier@gmail.com>
33895 * trans-mem.c (requires_barrier): Do not instrument thread local
33896 variables and emit save/restore for them.
33898 2012-01-24 Jason Merrill <jason@redhat.com>
33901 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
33902 output static aliases.
33904 2012-01-24 Jakub Jelinek <jakub@redhat.com>
33907 * common.opt (-pie, -shared, pie, shared): Change from Common to
33909 * gcc.c (display_help): Display help for -pie and -shared.
33911 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
33914 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
33915 Remove note on size/offset limitation.
33916 (AVR Variable Attributes): Add example how to read data located
33917 with progmem. Refer to named address spaces.
33918 * doc/invoke.texi (AVR Options): Fix typo.
33920 2012-01-24 Richard Guenther <rguenther@suse.de>
33922 Forward-port to trunk
33923 2010-09-21 Jakub Jelinek <jakub@redhat.com>
33925 PR middle-end/45678
33926 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
33927 op0 isn't sufficiently aligned and there is movmisalignM
33928 insn for mode, use it to load op0 into a temporary register.
33930 2012-01-24 Jakub Jelinek <jakub@redhat.com>
33933 * target.def (const_not_ok_for_debug_p): New hook.
33934 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
33936 * doc/tm.texi: Regenerated.
33937 * dwarf2out.c (const_ok_for_output_1): If
33938 targetm.const_not_ok_for_debug_p returns true, fail.
33939 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
33941 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
33943 2012-01-23 Kai Tietz <ktietz@redhat.com>
33946 * config/i386/predicates.md (symbolic_operand): Allow
33947 UNSPEC_PCREL as PIC expression for lea.
33948 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
33949 * config/i386/i386.c (ix86_delegitimize_address): Handle
33950 UNSPEC_PCREL for none-MEM, too.
33952 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
33954 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
33955 (ipa_tm_create_version_alias): Same.
33957 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
33960 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
33961 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
33963 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
33964 Patrick Marlier <patrick.marlier@gmail.com>
33965 Iain Sandoe <developer@sandoe-acoustics.co.uk>
33968 * lto-wrapper.c (run_gcc): Pass the LTO section name to
33969 simple_object_start_read.
33971 2012-01-23 Richard Guenther <rguenther@suse.de>
33974 PR tree-optimization/51895
33975 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
33976 parameter decomposition into BLKmode components.
33978 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
33980 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
33981 fake variables for restrict-qualified pointers whose pointed-to type
33982 contains a placeholder.
33984 2012-01-23 Richard Guenther <rguenther@suse.de>
33986 PR tree-optimization/51949
33987 * ipa-split.c (execute_split_functions): Do not split malloc functions.
33989 2012-01-23 Jakub Jelinek <jakub@redhat.com>
33991 PR rtl-optimization/51933
33992 * ree.c (transform_ifelse): Return true right away if dstreg is
33993 already wider or equal to cand->mode.
33994 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
33995 (make_defs_and_copies_lists): Remove defs_list and copies_list
33996 arguments, add state argument, just truncate state->work_list
33997 instead of always allocating and freeing the vector. Assert that
33998 get_defs succeeds instead of returning 2. Changed return type to bool.
33999 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
34000 have ext_src_mode, see if it has been modified already with the
34001 right kind of extension and has been extended before from the
34002 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
34003 just return true. Remember the original mode in state->modified array.
34004 (combine_reaching_defs): Add state argument. Don't allocate and
34005 free here def_list, copied_list and vec vectors, instead just
34006 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
34007 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
34008 Add state variable, clear vectors in it, initialize state.modified
34009 if needed. Free all the vectors at the end and state.modified too.
34010 Don't skip a candidate if the extension expression has been modified.
34012 2012-01-22 Douglas B Rupp <rupp@gnat.com>
34015 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
34016 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
34017 (extra_options) interix.opt -> i386/interix.opt"
34018 (extra_objs):Add winnt-stubs.o
34019 * configure.ac: Add interix to target_os .comm on PE check.
34020 * configure: Regenerate.
34021 * config/interix3.h: Delete and move bits to..
34022 * config/interix.h: Delete and move bits to..
34023 * config/i386/i386-interix3.h: Delete and move bits to..
34024 * config/i386/i386-interix.h: ..here.
34025 (TARGET_CPU_DEFAULT): Remove redefinition.
34026 (TARGET_ASM_CONSTRUCTOR): Undefine.
34027 (SUBTARGET_SWITCHES): Define for ms-bitfields.
34028 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
34029 (PTRDIFF_TYPE): Define.
34030 (LONG_DOUBLE_TYPE_SIZE): Define.
34031 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
34032 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
34033 (TARGET_SECTION_TYPE_FLAGS): Define.
34034 (ASM_DECLARE_FUNCTION_NAME): Define.
34035 (ASM_OUTPUT_EXTERNAL): Define.
34036 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
34037 (ASM_OUTPUT_ALIGNED_BSS): Define.
34038 (PCC_BITFIELD_TYPE_MATTERS): Define.
34039 (USE_CONST_SECTION): Define.
34040 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
34041 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
34042 (SUPPORTS_ONE_ONLY): Remove.
34043 (I386_PE_STRIP_ENCODING): Define.
34044 * config/interix.opt: Delete and move bits to..
34045 * config/i386/interix.opt: ..here. New.
34046 (mpe-aligned-commons): Add.
34047 * config/i386/t-interix: Add copyright header.
34048 (winnt-stubs.o): Add rule.
34050 2012-01-22 Jason Merrill <jason@redhat.com>
34053 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
34054 for extra name aliases.
34056 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
34058 PR rtl-optimization/51924
34059 * ree.c (combine_set_extension): Improve debugging message.
34060 (combine_reaching_defs): Likewise.
34061 (get_defs): Rename confusingly named variable.
34062 (find_and_remove_re): Skip a candidate if the extension expression has
34065 2012-01-21 Robert Millan <rmh@gnu.org>
34066 Gerald Pfeifer <gerald@pfeifer.com>
34068 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
34069 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
34071 2012-01-20 Jakub Jelinek <jakub@redhat.com>
34073 PR tree-optimization/51914
34074 * tree-vect-stmts.c (vectorizable_conversion): For
34075 cvt_type && modifier == WIDEN, put temporary with cvt_type
34076 at the beginning of vec_dsts and set vec_dest to temporary
34079 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
34081 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
34083 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
34085 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
34086 * config/rs6000/rs6000.c: Likewise.
34088 2012-01-20 Jakub Jelinek <jakub@redhat.com>
34091 * config/arm/arm.c (arm_count_output_move_double_insns): Call
34092 output_move_double on a copy of operands array.
34094 2012-01-20 Cary Coutant <ccoutant@google.com>
34095 Dodji Seketeli <dodji@redhat.com>
34098 * dwarf2out.c (copy_declaration_context): Return ref to parent
34099 of declaration DIE, if necessary.
34100 (remove_child_or_replace_with_skeleton): Add new parameter; update
34101 caller. Place skeleton DIE under parent DIE of original declaration.
34102 Move call to copy_declaration_context to here ...
34103 (break_out_comdat_types): ... from here.
34105 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34107 PR rtl-optimization/51856
34108 * reload.c (find_reloads_subreg_address): Set the address_reloaded
34111 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
34114 * config/arm/arm.c (arm_print_operand): Correct output of alignment
34115 hints for neon loads and stores.
34117 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
34121 * doc/extend.texi (Named Address Spaces): Split into subsections.
34122 (AVR Named Address Spaces): New subsection.
34123 (M32C Named Address Spaces): New subsection.
34124 (RL78 Named Address Spaces): New subsection.
34125 (SPU Named Address Spaces): New subsection.
34126 (Variable Attributes): New anchor "AVR Variable Attributes".
34127 (AVR Variable Attributes): Rewrite and avoid wording
34128 "address space" in this context.
34129 * doc/invoke.texi (AVR Options): Rewrite and add documentation
34130 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
34131 (AVR Built-in Macros): New subsubsection therein.
34132 * doc/md.texi (AVR constraints): Remove "C04", "R".
34134 2012-01-20 Richard Guenther <rguenther@suse.de>
34136 PR tree-optimization/51903
34137 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
34138 when removing stmts.
34140 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
34143 * config/arm/arm.c (arm_load_pic_register): Use
34144 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
34145 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
34146 (arm_pic_static_addr): Likewise.
34147 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
34148 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
34149 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
34150 (pic_load_addr_unified): New.
34152 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
34155 * function.c (instantiate_virtual_regs_in_insn): Use
34156 delete_insn_and_edges when removing a wrong asm insn.
34158 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
34160 PR rtl-optimization/40761
34161 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
34162 Add new member loop_num.
34163 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
34164 (ira_build): Remove the parameter.
34166 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
34167 (ira.c): Do not build CFG loops for one region allocation. Remove
34168 argument from ira_build call.
34170 * ira-build.c (init_loop_tree_node): New function.
34171 (create_loop_tree_nodes): Use it. Separate the case when CFG
34172 loops are not built.
34173 (more_one_region_p): Check current_loops.
34174 (finish_loop_tree_nodes): Separate the case when CFG loops are not
34176 (add_loop_to_tree): Process loop equal to NULL too.
34177 (form_loop_tree): Separate the case when CFG loops are not built.
34178 Use explicitly number for the root.
34179 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
34181 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
34182 instead of loop->num.
34183 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
34184 (mark_all_loops_for_removal): Ditto.
34185 (remove_unnecessary_regions): Separate the case when CFG loops
34187 (ira_build): Remove the parameter. Use explicit number of regions
34188 when CFG loops are not built.
34190 * ira-color.c (print_loop_title): Separate the case for the root node.
34191 Use loop_num instead of loop->num.
34192 (move_spill_restore): Use loop_num instead of loop->num.
34194 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
34195 (change_loop): Ditto.
34196 (change_loop): Use loop_num instead of loop->num.
34198 * ira-lives.c (process_bb_node_lives): Ditto.
34200 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
34202 * ira-conflicts.c (print_allocno_conflicts): Ditto.
34204 2012-01-19 Jakub Jelinek <jakub@redhat.com>
34206 PR libmudflap/40778
34207 * tree-mudflap.c (mf_artificial): New function.
34208 (execute_mudflap_function_ops, execute_mudflap_function_decls,
34209 mx_register_decls, mudflap_enqueue_decl): Use it.
34212 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
34213 numbers in the insn pattern.
34215 2012-01-19 Michael Matz <matz@suse.de>
34217 PR tree-optimization/46590
34218 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
34219 use it in remembering which conflicts we already created.
34220 (add_scope_conflicts): Adjust call to above, (de)allocate helper
34223 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
34226 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
34227 (merge_and_complain): Same.
34229 2012-01-19 Jakub Jelinek <jakub@redhat.com>
34232 * config/initfini-array.h: Guard content of the header
34233 with #ifdef HAVE_INITFINI_ARRAY.
34234 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
34235 Add initfini-array.h to tm_file here.
34236 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
34237 * config.gcc: Don't add initfini-array.h to tm_file here.
34238 * configure: Regenerated.
34240 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
34242 PR rtl-optimization/51505
34243 * df-problems.c (df_kill_notes): New parameter live. Update comment.
34244 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
34245 (df_note_bb_compute): Update the call to df_kill_notes.
34247 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
34249 * trans-mem.c (requires_barrier): Remove call to is_global_var.
34251 2012-01-18 Richard Guenther <rguenther@suse.de>
34253 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
34254 of conversions to void *.
34256 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34257 Richard Sandiford <rdsandiford@googlemail.com>
34259 PR middle-end/50325
34260 PR middle-end/51192
34261 * optabs.h (simplify_expand_binop): Declare.
34262 * optabs.c (simplify_expand_binop): Make global.
34263 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
34264 endian targets if the source cannot be exactly covered by word
34267 2012-01-17 Jakub Jelinek <jakub@redhat.com>
34270 * hard-reg-set.h (struct hard_reg_set_container): New type.
34271 * target.h (struct hard_reg_set_container): Forward declare.
34272 * target.def (set_up_by_prologue): New target hook.
34273 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
34274 * doc/tm.texi: Regenerated.
34275 * function.c (thread_prologue_and_epilogue_insns): Change
34276 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
34277 Call targetm.set_up_by_prologue on it.
34278 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
34279 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
34281 2012-01-17 Nick Clifton <nickc@redhat.com>
34283 * config/rx/rx.c (rx_can_use_simple_return): New function.
34284 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
34285 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
34287 2012-01-17 Richard Guenther <rguenther@suse.de>
34289 PR middle-end/51782
34290 * expr.c (expand_assignment): Take address-space information
34291 from the address operand of MEM_REF and TARGET_MEM_REF.
34292 (expand_expr_real_1): Likewise.
34294 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34296 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
34297 reload dump is requested.
34299 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
34302 * trans-mem.c (requires_barrier): Call may_be_aliased.
34304 2012-01-17 Jakub Jelinek <jakub@redhat.com>
34306 PR tree-optimization/51877
34307 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
34308 call arguments and fndecls compare equal, instead return false if they
34309 don't. Return true only if lhs1 and lhs2 are either both NULL, or
34310 both SSA_NAMEs that are valueized the same, or they satisfy
34313 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34315 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
34317 * configure: Regenerate.
34319 2012-01-16 Jan Hubicka <jh@suse.cz>
34323 * convert.c (convert_to_integer): Use fold_convert for
34324 converting an INTEGER_CST to integer type.
34326 2012-01-16 Jason Merrill <jason@redhat.com>
34329 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
34331 2012-01-16 Jakub Jelinek <jakub@redhat.com>
34334 * config/s390/s390.c (s390_chunkify_start): Don't skip
34335 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
34336 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
34337 If insn is followed by NOTE_INSN_VAR_LOCATION or
34338 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
34339 Don't use location of note insns.
34341 PR tree-optimization/51865
34342 * tree-inline.c (tree_function_versioning): Call remap_decl
34343 on DECL_RESULT whenever it has VOID_TYPE_P type.
34345 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
34347 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
34348 for calls to locally-binding MIPS16 functions if only the return
34349 type uses float regs.
34351 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
34352 Richard Sandiford <rdsandiford@googlemail.com>
34354 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
34355 (SYMBOL_32_HIGH): Likewise.
34356 (mips_output_tls_reloc_directive): Declare.
34357 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
34358 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
34359 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
34360 (mips_lo_relocs, mips_hi_relocs): Make extern.
34361 (mips16_stub_function): Move up file.
34362 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
34363 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
34364 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
34365 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
34366 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
34367 (mips_get_tp): Add MIPS16 support.
34368 (mips_legitimize_tls_address): Remove MIPS16 sorry().
34369 Generalize DTPREL and TPREL handling.
34370 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
34371 Add MIPS16 TLS support.
34372 (mips_output_tls_reloc_directive): New function.
34373 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
34374 * config/mips/predicates.md (symbolic_operand_with_high)
34375 (tls_reloc_operand): New predicates.
34376 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
34377 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
34378 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
34379 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
34380 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
34381 (*tls_get_tp_mips16_call_<mode>): Likewise.
34383 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
34385 PR rtl-optimization/51821
34386 * recog.c (peep2_find_free_register): Determine clobbered registers
34389 2012-01-14 Denis Chertykov <chertykov@gmail.com>
34392 * config/avr/avr-protos.h: Revert change of 2012-01-09.
34393 * config/avr/avr.c: Likewise.
34394 * config/avr/avr.h: Likewise.
34396 2012-01-13 Ian Lance Taylor <iant@google.com>
34399 * tree.h (TYPE_QUALS): Add cast to int.
34400 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
34402 2012-01-13 Ian Lance Taylor <iant@google.com>
34404 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
34405 comparing param_index to VEC_length result.
34407 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
34409 * c-decl.c: Do not include tree-mudflap.h
34410 * tree-optimize.c: Likewise.
34411 * Makefile.in: Update dependencies.
34413 2012-01-13 Richard Guenther <rguenther@suse.de>
34416 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
34417 variable-sized result always use RSO.
34419 2012-01-12 DJ Delorie <dj@redhat.com>
34421 * cfgexpand.c (convert_debug_memory_address): Allow any valid
34422 pointer type, not just the default pointer type.
34424 2012-01-09 Richard Henderson <rth@redhat.com>
34425 Denis Chertykov <chertykov@gmail.com>
34428 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
34429 * config/avr/avr.c (avr_can_eliminate): Simplify.
34430 (avr_initial_elimination_offset): Likewise.
34431 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
34432 (expand_epilogue): Likewise.
34433 (avr_legitimize_address): Gut.
34434 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
34435 (avr_hard_regno_nregs): New.
34436 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
34437 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
34438 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
34439 add soft frame pointer.
34440 (CALL_USED_REGISTERS): Likewise.
34441 (REG_CLASS_CONTENTS): Likewise.
34442 (REGISTER_NAMES): Likewise.
34443 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
34444 (HARD_FRAME_POINTER_REGNUM): New.
34445 (FRAME_POINTER_REGNUM): Use soft frame pointer.
34446 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
34447 remove the HARD_FRAME_POINTER self-elimination.
34449 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
34452 * config/avr/avr.c (avr_encode_section_info): Test for absence of
34453 DECL_EXTERNAL when checking for initializers of progmem variables.
34455 2012-01-12 Ira Rosen <irar@il.ibm.com>
34457 PR tree-optimization/51799
34458 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
34459 that the last operation is a type demotion.
34461 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
34463 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
34464 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
34466 2012-01-11 Jakub Jelinek <jakub@redhat.com>
34469 * combine.c (distribute_notes): If i3 is a noreturn call,
34470 allow old_size to be equal to args_size and make sure the
34471 noreturn call gets REG_ARGS_SIZE note.
34472 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
34473 on noreturn calls even when the delta is 0.
34475 2012-01-11 Nathan Sidwell <nathan@acm.org>
34477 * gcov.c (STRING_SIZE): Remove.
34478 (generate_results): Erase annotations for source files with no
34479 coverage information.
34481 (output_lines): Use it.
34483 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
34485 * gimple.h (gimplify_body): Remove first argument.
34486 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
34487 pointer set here, instead just pass DATA to walk_tree.
34488 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
34489 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
34490 (unvisit_body): Likewise, but with unmark_visited.
34491 (gimplify_body): Remove BODY_P argument and adjust.
34492 (gimplify_function_tree): Adjust call to gimplify_body.
34493 * omp-low.c (finalize_task_copyfn): Likewise.
34495 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
34497 * tree.h (build_function_decl_skip_args): Add boolean parameter.
34498 (build_function_type_skip_args): Delete.
34499 * tree.c (build_function_type_skip_args): Make static and add
34500 SKIP_RETURN parameter. Fix thinko in the handling of variants.
34501 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
34502 pass it to build_function_type_skip_args.
34503 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
34504 (tree_function_versioning): Likewise.
34505 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
34506 build_function_decl_skip_args.
34507 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
34508 and pass it to build_function_decl_skip_args/tree_function_versioning.
34509 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
34510 * ipa-inline-transform.c (save_inline_function_body): Likewise.
34511 * trans-mem.c (ipa_tm_create_version): Likewise.
34512 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
34513 * tree-inline.c (declare_return_variable): Remove always-true test.
34514 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
34515 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
34516 * ipa-split.c (split_function): Skip the return value for the split
34517 part if it doesn't return.
34519 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34521 PR tree-optimization/49642
34522 * ipa-split.c (forbidden_dominators): New variable.
34523 (check_forbidden_calls): New function.
34524 (dominated_by_forbidden): Likewise.
34525 (consider_split): Check for forbidden dominators.
34526 (execute_split_functions): Initialize and free forbidden
34527 dominators info; call check_forbidden_calls.
34529 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
34531 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
34533 2012-01-11 Nick Clifton <nickc@redhat.com>
34535 * config/rx/rx.md (return): Define pattern.
34537 2012-01-11 Richard Guenther <rguenther@suse.de>
34539 * doc/extend.texi (malloc attribute): Adjust according to
34542 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
34543 Patrick Marlier <patrick.marlier@gmail.com>
34545 PR middle-end/51516
34546 * trans-mem.c (get_cg_data): Traverse aliases if requested.
34547 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
34548 (ipa_tm_note_irrevocable): Same.
34549 (ipa_tm_scan_irr_block): Same.
34550 (ipa_tm_decrement_clone_counts): Same.
34551 (ipa_tm_scan_irr_function): Same.
34552 (ipa_tm_create_version_alias): Same.
34553 (ipa_tm_create_version): Same.
34554 (ipa_tm_transform_calls_redirect): Same.
34555 (ipa_tm_transform_calls): Same.
34556 (ipa_tm_transform_transaction): Same.
34557 (ipa_tm_execute): Same.
34559 2012-01-10 Richard Guenther <rguenther@suse.de>
34561 PR middle-end/51806
34562 * opts.c (common_handle_option): Handle -Werror.
34564 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
34566 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
34569 2012-01-10 Jason Merrill <jason@redhat.com>
34571 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
34574 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34576 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
34577 supports R_386_TLS_GD_PLT reloc.
34578 (gcc_cv_as_ix86_tlsldmplt): Check if linker
34579 supports R_386_TLS_LDM_PLT reloc.
34580 * configure: Regenerate.
34581 * config.in: Regenerate.
34583 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
34586 Extend __pgmx semantics to linearize memory.
34587 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
34588 determine if code comes inline or from libgcc.
34589 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
34590 (movmem_qi, movmem_qi): Set constraint #2 to "n".
34591 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
34592 (movmemx_qi, movmemx_hi): New insns.
34593 (xload_<mode>_libgcc): Rewrite to new insn condition.
34594 (xload_<mode>): Remove insns.
34595 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
34596 cases that don't satisfy avr_xload_libgcc_p().
34597 (avr_addr_space_convert): Allow converting in any direction.
34598 (avr_addr_space_subset_p): Return always true.
34599 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
34600 (avr_emit_movmemhi): Ditto.
34601 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
34602 (avr_out_movmem): Ditto.
34603 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
34604 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
34605 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
34606 (avr_encode_section_info): Encode 'progmem' in symbol flags.
34607 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
34609 2012-01-10 Richard Guenther <rguenther@suse.de>
34611 PR tree-optimization/50913
34612 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
34613 Require data-refs to be representable by Graphite with respect
34616 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
34618 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
34619 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
34621 2012-01-10 Tom de Vries <tom@codesourcery.com>
34623 PR rtl-optimization/51271
34624 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
34625 handling annulled branch.
34627 2012-01-10 Richard Henderson <rth@redhat.com>
34629 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
34630 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
34631 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
34632 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
34633 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
34634 arm_expand_vec_perm_const): New.
34635 * config/arm/arm-protos.h: Update.
34636 * config/arm/neon.md (UNSPEC_VCONCAT): New.
34637 (*neon_vswp<VDQX>): New.
34638 (neon_vcombine<VDX>): Use neon_split_vcombine.
34639 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
34640 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
34641 (vec_perm<VE>): New.
34643 2012-01-10 Richard Henderson <rth@redhat.com>
34645 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
34646 use it if reload_completed.
34647 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
34648 arm_output_asm_insn, arm_process_output_memory_barrier,
34649 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
34650 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
34651 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
34652 arm_process_output_sync_insn, arm_output_sync_insn,
34653 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
34654 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
34655 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
34656 (emit_unlikely_jump): New.
34657 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
34658 (arm_split_atomic_op): New.
34659 * config/arm/arm-protos.h: Update.
34660 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
34661 (struct arm_sync_generator): Remove.
34662 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
34663 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
34664 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
34665 (VUNSPEC_LL, VUNSPEC_SC): New.
34666 (sync_result, sync_memory, sync_required_value, sync_new_value,
34667 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
34668 (attr length): Don't use arm_sync_loop_insns.
34669 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
34670 (movsfcc, movdfcc): Likewise.
34671 * config/arm/constraints.md (Ua): New.
34672 * config/arm/prediates.md (mem_noofs_operand): New.
34673 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
34674 (sync_clobber, sync_t2_reqd): Remove.
34675 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
34676 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
34677 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
34678 (arm_sync_compare_and_swap<SIDI>): Remove.
34679 (arm_sync_compare_and_swap<NARROW>): Remove.
34680 (arm_sync_lock_test_and_set<SIDI>): Remove.
34681 (arm_sync_lock_test_and_set<NARROW>): Remove.
34682 (arm_sync_new_<syncop><SIDI>): Remove.
34683 (arm_sync_new_<syncop><NARROW>): Remove.
34684 (arm_sync_new_nand<SIDI>): Remove.
34685 (arm_sync_new_nand<NARROW>): Remove.
34686 (arm_sync_old_<syncop><SIDI>): Remove.
34687 (arm_sync_old_<syncop><NARROW>): Remove.
34688 (arm_sync_old_nand<SIDI>): Remove.
34689 (arm_sync_old_nand<NARROW>): Remove.
34690 (*memory_barrier): Merge arm_output_memory_barrier.
34691 (atomic_compare_and_swap<QHSD>): New.
34692 (atomic_compare_and_swap<NARROW>_1): New.
34693 (atomic_compare_and_swap<SIDI>_1): New.
34694 (atomic_exchange<QHSD>): New.
34695 (cas_cmp_operand, cas_cmp_str): New.
34696 (atomic_op_operand, atomic_op_str): New.
34697 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
34698 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
34699 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
34700 (arm_load_exclusive<NARROW>): New.
34701 (arm_load_exclusivesi, arm_load_exclusivedi): New.
34702 (arm_store_exclusive<QHSD>): New.
34704 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
34706 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
34707 reload patterns if -mvsx-scalar-memory.
34709 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
34710 generated, even -mno-vsx-scalar-double was used.
34711 (vsx_xscvdpsp_scalar): Likewise.
34712 (vsx_xscvspdp_scalar2): Likewise.
34714 2012-01-09 Tom de Vries <tom@codesourcery.com>
34715 Andrew Pinski <apinski@cavium.com>
34718 * reorg.c (fill_slots_from_thread): Don't speculate
34719 frame-related insns.
34721 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
34723 * sched-int.h (bb_note): Move to...
34724 * basic-block.h: ...here.
34725 * haifa-sched.c (bb_note): Move to...
34726 * cfgrtl.c: ...here.
34727 * function.c (next_block_for_reg): New function.
34728 (move_insn_for_shrink_wrap): Likewise.
34729 (prepare_shrink_wrap): Rewrite to use the above.
34731 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
34733 * gimple.c (is_gimple_non_addressable): Remove.
34734 * gimple.h: Remove is_gimple_non_addressable.
34735 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
34736 is_gimple_non_addressable.
34737 * trans-mem.c (expand_assign_tm): Same.
34739 2012-01-09 Richard Guenther <rguenther@suse.de>
34741 PR tree-optimization/51775
34742 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
34743 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
34745 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
34747 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
34749 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
34751 2012-01-09 Richard Guenther <rguenther@suse.de>
34753 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
34755 2012-01-08 Jan Hubicka <jh@suse.cz>
34757 PR tree-optimize/51680
34758 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
34759 on when known_vals needs to be computed; cleanup.
34761 2012-01-08 Jan Hubicka <jh@suse.cz>
34763 PR tree-optimize/51694
34764 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
34766 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
34768 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
34769 for -std=c++98 and -std=c++11 too.
34771 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
34773 * cfgloop.c (cancel_loop): Add free() of bbs array.
34775 2012-01-07 Jan Hubicka <jh@suse.cz>
34777 PR tree-optimization/51600
34778 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
34779 that benefits small functions.
34781 2012-01-07 Jan Hubicka <jh@suse.cz>
34783 * ipa-inline.c (want_inline_small_function_p): Fix formating.
34785 2012-01-07 Jan Hubicka <jh@suse.cz>
34787 PR tree-optimization/51680
34788 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
34789 whose inlining reduce unit size.
34791 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
34794 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
34795 Add canonical node to containing_mem chain after the non-canonical
34796 one, even if there weren't any locs to propagate.
34797 (remove_useless_values): Keep only canonical values.
34798 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
34799 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
34800 canonicalize mem_chain elements that are not discarded.
34802 2012-01-06 Jakub Jelinek <jakub@redhat.com>
34805 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
34806 before emitting functions.
34808 PR gcov-profile/50127
34809 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
34810 clear_aux_for_blocks.
34812 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
34815 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
34817 2012-01-06 Arnaud Charlet <charlet@adacore.com>
34819 * c-decl.c (ext_block): Moved up.
34820 (collect_all_refs, for_each_global_decl): Take ext_block into account.
34822 2012-01-06 Han Shen <shenhan@google.com>
34824 Translate built-in include paths for sysroot.
34825 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
34826 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
34828 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
34829 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
34831 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
34832 control whether sysroot should be prepended to gxx include dir.
34834 * configure: Regenerate.
34836 2012-01-06 Torvald Riegel <triegel@redhat.com>
34838 PR rtl-optimization/51771
34839 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
34840 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
34842 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
34844 PR tree-optimization/51315
34845 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
34846 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
34848 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
34851 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
34852 for shrp pattern. Correctly handle and fixup shift variable.
34853 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
34855 2012-01-05 Jakub Jelinek <jakub@redhat.com>
34858 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
34859 note when !ACCUMULATE_OUTGOING_ARGS.
34861 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
34863 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
34865 (extract_range_from_unary_expr_1): Avoid useless computations.
34867 2012-01-05 Jakub Jelinek <jakub@redhat.com>
34869 PR rtl-optimization/51767
34870 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
34871 of jump_block and add an extra edge for degenerated asm gotos.
34873 PR middle-end/51768
34874 * stmt.c (check_unique_operand_names): Don't ICE during error
34875 reporting if i is from labels chain.
34877 PR middle-end/44777
34878 * profile.c (branch_prob): Split bbs that have exit edge
34879 and need a fake entry edge too.
34881 2012-01-05 Jan Hubicka <jh@suse.cz>
34883 PR middle-end/49710
34884 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
34887 2012-01-05 Richard Guenther <rguenther@suse.de>
34890 * tree-streamer-out.c (write_ts_optimization): New function.
34891 (streamer_write_tree_body): Call it.
34892 * tree-streamer-in.c (lto_input_ts_optimization): New function.
34893 (streamer_read_tree_body): Call it.
34894 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
34896 2012-01-05 Jakub Jelinek <jakub@redhat.com>
34898 PR middle-end/51761
34899 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
34900 * gimplify.c (gimplify_cleanup_point_expr): Save and set
34901 in_cleanup_point_expr before gimplify_stmt call and restore it
34903 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
34904 in_cleanup_point_expr is false.
34906 2012-01-05 Richard Guenther <rguenther@suse.de>
34908 PR middle-end/51764
34909 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
34911 * toplev.c (process_options): Reject combining mudflap and LTO.
34912 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
34914 2012-01-05 Richard Guenther <rguenther@suse.de>
34916 PR tree-optimization/51760
34917 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
34919 (bit_value_unop): Handle UNDEFINED operands.
34920 (bit_value_binop): Likewise.
34922 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
34924 * config/avr/avr.c (avr_replace_prefix): Remove.
34925 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
34926 (avr_asm_function_rodata_section): Ditto.
34927 (avr_asm_select_section): Ditto.
34929 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
34931 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
34934 2012-01-05 Jakub Jelinek <jakub@redhat.com>
34937 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
34938 calls that have any non-fake successor edges.
34941 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
34943 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
34945 PR tree-optimization/51624
34946 * tree-sra.c (build_ref_for_model): When replicating a chain of
34947 COMPONENT_REFs, stop as soon as the offset would become negative.
34949 2012-01-04 Jakub Jelinek <jakub@redhat.com>
34952 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
34953 in .debug_loc on the floor.
34955 2012-01-04 Andrew Pinski <apinski@cavium.com>
34957 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
34959 2012-01-04 Andrew Pinski <apinski@cavium.com>
34960 Adam Nemet <anemet@caviumnetworks.com>
34962 * config/mips/mips.md (size): Add SI and DI.
34963 (SIZE): New mode attribute.
34964 (U): New code attribute.
34965 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
34966 (mips_lbux_<mode>): Delete.
34967 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
34968 (mips_lhx): Use gen_mips_lhx_extsi.
34969 (mips_lhx_<mode>): Delete.
34970 (mips_lwx): Delete.
34971 (mips_l<size>x): New expand.
34972 (mips_lwx_<mode>): Delete.
34973 (mips_l<GPR:size>x_<P:mode>): New pattern.
34974 (*mips_lw<u>x_<P:mode>_ext): Likewise.
34975 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
34976 * config/mips/mips.c (mips_lx_address_p): New function.
34977 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
34978 (dsp64): New availability predicate.
34979 (mips_builtins): Add an entry for __builtin_mips_ldx.
34980 * config/mips/mips.h (ISA_HAS_LBX): New define.
34981 (ISA_HAS_LBUX): Likewise.
34982 (ISA_HAS_LHX): Likewise.
34983 (ISA_HAS_LHUX): Likewise.
34984 (ISA_HAS_LWX): Likewise.
34985 (ISA_HAS_LWUX): Likewise.
34986 (ISA_HAS_LDX): Likewise.
34987 * doc/extend.texi (__builtin_mips_ldx): Document.
34989 2012-01-04 Tristan Gingold <gingold@adacore.com>
34991 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
34992 when long pointers are used.
34993 * config.build (*-*-*vms*): Handle all OpenVMS targets.
34994 (alpha64-dec-*vms*, alpha*-dec-*vms*)
34995 (ia64-hp-*vms*): Remove.
34996 * config/vms/xm-vms64.h: Delete.
34998 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
35000 PR middle-end/51472
35001 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
35003 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
35005 * opts.c (finish_options): Remove duplicate sorry.
35007 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
35009 PR middle-end/51696
35010 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
35013 2012-01-04 Richard Guenther <rguenther@suse.de>
35015 PR middle-end/51750
35016 * tree.c (size_low_cst): New function.
35017 * tree.h (size_low_cst): Declare.
35018 * fold-const.c (fold_comparison): Use it to extract the low
35019 part of the POINTER_PLUS_EXPR offset.
35021 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
35023 Fix clearing ZERO_REG
35024 * config/avr/avr.md (cc): Add alternative "ldi".
35025 (movqi_insn): Use it in cc attribute.
35026 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
35027 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
35028 (output_reload_insisf): Use ZERO_REG to pre-clear register.
35030 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35032 * configure: Regenerate.
35034 2012-01-04 Richard Guenther <rguenther@suse.de>
35036 PR tree-optimization/49651
35037 * tree-ssa-structalias.c (type_can_have_subvars): New function.
35038 (var_can_have_subvars): Use it.
35039 (get_constraint_for_1): Only consider subfields if there can be any.
35041 2012-01-03 Jakub Jelinek <jakub@redhat.com>
35044 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
35045 to its new canonical_cselib_val and the cselib_val was in
35046 first_containing_mem chain, but the canonical_cselib_val was not,
35047 add the latter into the chain.
35048 (cselib_invalidate_mem): Compare canonical_cselib_val of
35049 addr_list chain elt with v.
35052 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
35053 dwarf2out_undef): Allocate e.info using ggc_strdup instead
35055 (output_macinfo_op): Don't ggc_strdup fd->filename.
35056 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
35057 then ggc_strdup it. Don't free inc->info or cur->info.
35058 (output_macinfo): Don't free ref->info or file->info.
35060 2012-01-03 Ira Rosen <irar@il.ibm.com>
35062 PR tree-optimization/51269
35063 * tree-vect-loop-manip.c (set_prologue_iterations): Make
35064 first_niters a pointer.
35065 (slpeel_tree_peel_loop_to_edge): Likewise.
35066 (vect_do_peeling_for_loop_bound): Update call to
35067 slpeel_tree_peel_loop_to_edge.
35068 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
35069 here. Remove it from the parameters list.
35070 (vect_do_peeling_for_alignment): Update calls and compute
35071 wide_prolog_niters.
35073 2012-01-03 Richard Guenther <rguenther@suse.de>
35075 PR tree-optimization/51070
35076 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
35077 Properly handle calls.
35079 2012-01-03 Richard Guenther <rguenther@suse.de>
35081 PR tree-optimization/51692
35082 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
35083 the LHS of allocation stmts.
35085 2012-01-03 Olivier Hainque <hainque@adacore.com>
35087 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
35089 2012-01-03 Olivier Hainque <hainque@adacore.com>
35091 * collect2.c (main): In AIX specific computations for vector
35092 insertions, use CONST_CAST2 to cast from char ** to const char **.
35094 2012-01-03 Richard Guenther <rguenther@suse.de>
35097 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
35098 the context of a limbo DIE when it does not already exist.
35100 2012-01-03 Jakub Jelinek <jakub@redhat.com>
35102 PR tree-optimization/51719
35103 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
35104 but direct call is, clear direct call's lhs and don't add fallthrough
35105 edge from dcall_bb to join_bb and PHIs.
35107 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35109 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
35110 the instructions emitted by the pattern.
35111 ("*TDC_insn_<mode>"): Add comment.
35113 2012-01-03 Richard Guenther <rguenther@suse.de>
35115 PR middle-end/51730
35116 * fold-const.c (fold_comparison): Properly canonicalize
35117 tree offset and HOST_WIDE_INT bit position.
35119 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
35121 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
35122 operands for extzv pattern.
35124 2012-01-02 Jakub Jelinek <jakub@redhat.com>
35127 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
35130 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
35132 * doc/invoke.texi (-flto and related options): Copy-edit.
35134 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35136 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
35138 2012-01-02 Jakub Jelinek <jakub@redhat.com>
35140 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
35143 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35145 * expr.h (move_by_pieces_ninsns): Declare.
35146 * expr.c (move_by_pieces_ninsns): Make external.
35147 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
35148 (mips_store_by_pieces_p): Likewise.
35149 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
35150 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
35151 * config/mips/mips.c (mips_move_by_pieces_p): New function.
35152 (mips_store_by_pieces_p): Likewise.
35154 2012-01-02 Jakub Jelinek <jakub@redhat.com>
35156 * passes.c (register_one_dump_file): Free full_name.
35158 * reload1.c (reload): Don't allocate reg_max_ref_width here.
35159 (calculate_elim_costs_all_insns): Free offsets_at and
35160 offsets_known_at at the end and clear the pointers.
35162 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
35164 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
35165 this option introduced in r180739.
35167 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
35170 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
35171 (tmake_file target=avr): Add avr/t-multilib.
35173 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
35174 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
35175 * config/avr/genmultilib.awk: New file.
35176 * config/avr/t-multilib: New auto-generated file.
35177 * config/avr/multilib.h: New auto-generated file.
35178 * config/avr/t-avr (AVR_MCUS): New variable.
35179 (genopt.sh): Use it.
35180 (s-mlib): Depend on t-multilib.
35181 (t-multilib, multilib.h): New dependencies.
35182 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
35183 (MULTILIB_OPTIONS): Remove.
35184 (MULTILIB_MATCHES): Remove.
35185 (MULTILIB_DIRNAMES): Remove.
35186 (MULTILIB_EXCEPTIONS): Remove:
35187 * config/avr/genopt.sh: Don't use hard coded file name;
35188 pass AVR_MCUS from t-avr instead.
35190 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
35192 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
35194 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
35196 Implement light-weight DImode support.
35197 * config/avr/avr-dimode.md: New file.
35198 * config/avr/avr.md: Include it.
35199 (adjust_len): Add plus64, compare64.
35200 (HIDI): Remove code iterator.
35201 (code_stdname): New code attribute.
35202 (rotx, rotsmode): Remove DI.
35203 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
35205 * config/avr/avr-protos.h (avr_have_dimode): New.
35206 (avr_out_plus64, avr_out_compare64): New.
35207 * config/avr/avr.c (avr_out_compare): Handle DImode.
35208 (avr_have_dimode): New variable definition and initialization.
35209 (avr_out_compare64, avr_out_plus64): New functions.
35210 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
35211 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
35212 (avr_compare_pattern): Skip DImode comparisons.
35214 2012-01-02 Revital Eres <revital.eres@linaro.org>
35216 * ddg.c (def_has_ccmode_p): New function.
35217 (add_cross_iteration_register_deps,
35218 create_ddg_dep_from_intra_loop_link): Call it.
35220 2012-01-02 Richard Guenther <rguenther@suse.de>
35223 * invoke.texi (fassociative-math): Remove spurious paranthesis.
35225 2012-01-01 Jakub Jelinek <jakub@redhat.com>
35227 * gcc.c (process_command): Update copyright notice dates.
35228 * gcov.c (print_version): Likewise.
35229 * gcov-dump.c (print_version): Likewise.
35230 * mips-tfile.c (main): Likewise.
35231 * mips-tdump.c (main): Likewise.
35233 2012-01-01 Ira Rosen <irar@il.ibm.com>
35235 PR tree-optimization/51704
35236 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
35237 a use is inside the basic block or loop before accessing its vect info.
35239 2012-01-01 Jan Hubicka <jhjh@suse.cz>
35241 PR rtl-optimization/51069
35242 * cfgloopmanip.c (remove_path): Removing path making irreducible
35243 region unconditional makes BB part of the region.
35245 2012-01-01 Jakub Jelinek <jakub@redhat.com>
35247 PR tree-optimization/51683
35248 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
35249 calls with side-effects.
35250 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
35252 Copyright (C) 2012 Free Software Foundation, Inc.
35254 Copying and distribution of this file, with or without modification,
35255 are permitted in any medium without royalty provided the copyright
35256 notice and this notice are preserved.