1 2012-12-27 Andreas Schwab <schwab@linux-m68k.org>
3 * target.def (supports_function_versions): Fix typo.
5 2012-12-26 Sriraman Tallam <tmsriram@google.com>
7 * doc/tm.texi.in (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Document
9 * doc/tm.texi: Regenerate.
10 * c-family/c-common.c (handle_target_attribute): Retain target attribute
11 for targets that support versioning.
12 * target.def (supports_function_versions): New hook.
13 * cp/class.c (add_method): Remove calls
14 to DECL_FUNCTION_SPECIFIC_TARGET.
15 * config/i386/i386.c (ix86_function_versions): Use target string
16 to check for function versions instead of target flags.
17 * (ix86_supports_function_versions): New function.
18 * (is_function_default_version): Check target string.
19 * TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS: New macro.
21 2012-12-27 Steven Bosscher <steven@gcc.gnu.org>
23 * cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set.
25 2012-12-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28 * config/pa/pa.md (movsi): Reject expansion of TLS symbol references
31 2012-12-22 Jan Hubicka <jh@suse.cz>
34 * cgraph.h (symtab_real_symbol_p): Drop code looking for external functions.
35 * lto-streamer-out.c (output_symbol_p): New function.
36 (produce_symtab) Use it.
38 2012-12-21 Martin Jambor <mjambor@suse.cz>
40 PR tree-optimization/55355
41 * tree-sra.c (type_internals_preclude_sra_p): Also check that
42 bit_position is small enough to fit a single HOST_WIDE_INT.
44 2012-12-21 Eric Botcazou <ebotcazou@adacore.com>
46 * rtlanal.c (volatile_insn_p): Delete commented out code.
47 (side_effects_p): Likewise.
48 (may_trap_p_1) <UNSPEC_VOLATILE>: Return 1 again.
49 * target.def (unspec_may_trap_p): Adjust comment.
50 * targhooks.c (default_unspec_may_trap_p): Don't handle UNSPEC_VOLATILE.
51 * config/ia64/ia64.c (ia64_unspec_may_trap_p): Adjust to above change.
53 2012-12-21 Vladimir Makarov <vmakarov@redhat.com>
56 * lra-assigns.c (improve_inheritance): Do nothing after
57 LRA_MAX_INHERITANCE_PASSES pass.
58 * lra-constraints.c (MAX_CONSTRAINT_ITERATION_NUMBER): Rename to
59 LRA_MAX_CONSTRAINT_ITERATION_NUMBER. Move to lra-int.h.
60 (MAX_INHERITANCE_PASSES): Rename to LRA_MAX_INHERITANCE_PASSES.
62 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Move from
64 (LRA_MAX_INHERITANCE_PASSES): Ditto.
66 2012-12-21 Steve Ellcey <sellcey@mips.com>
69 * ira.c (build_insn_chain): Check only NONDEBUG instructions for
72 2012-12-21 David Edelsohn <dje.gcc@gmail.com>
74 * varasm.c (bss_initializer_p): Remove static.
75 * output.h (bss_initializer_p): Declare.
76 * xcoffout.c (xcoff_tbss_section_name): Define.
77 * xcoffout.h (xcoff_tbss_section_name): Declare.
78 * config/rs6000/xcoff.h (TARGET_ENCODE_SECTION_INFO): Define.
79 (ASM_OUTPUT_TLS_COMMON): Merge strings.
80 * config/rs6000/rs6000.c (tls_private_data_section): New.
81 (output_toc): Only output CSECT decoration for TLS.
82 Output appropriate CSECT for data or bss.
83 (rs6000_xcoff_asm_init_sections) Define tls_private_data_section.
84 (rs6000_xcoff_select_section): Handle TLS bss and private data.
85 (rs6000_xcoff_file_start): Generate xcoff_tbss_section_name.
86 (rs6000_xcoff_encode_section_info): Strip SYMBOL_FLAG_HAS_BLOCK_INFO
87 from native TLS symbols.
89 2012-12-21 Richard Biener <rguenther@suse.de>
91 PR rtl-optimization/52996
92 * cprop.c (bypass_block): When loops are to be preserved
93 do not bypass loop headers. Revert earlier kludge to remove
94 loops when doing that.
96 2012-12-21 Richard Biener <rguenther@suse.de>
99 * system.h: Include gmp.h.
100 * tree-ssa-loop-niter.c: Do not include gmp.h here.
101 * double-int.h: Likewise.
102 * realmpfr.h: Likewise.
104 2012-12-21 Greta Yorsh <Greta.Yorsh@arm.com>
106 * config/arm/cortex-a7.md: New file.
107 * config/arm/t-arm (MD_INCLUDES): Add cortex-a7.md.
108 * config/arm/arm.md: Include cortex-a7.md.
109 (generic_sched): Don't use generic scheduler for Cortex-A7.
110 (generic_vfp): Likewise.
111 * config/arm/arm.c: (TARGET_SCHED_REORDER): Use arm_sched_reorder.
112 (arm_sched_reorder,cortexa7_sched_reorder): New function.
113 (cortexa7_older_only,cortexa7_younger): Likewise.
114 (arm_issue_rate): Add Cortex-A7.
116 2012-12-20 Ian Bolton <ian.bolton@arm.com>
118 * gcc/config/aarch64/aarch64.md
119 (*addsi3_aarch64_uxtw): New pattern.
120 (*addsi3_compare0_uxtw): New pattern.
121 (*add_<shift>_si_uxtw): New pattern.
122 (*add_<optab><SHORT:mode>_si_uxtw): New pattern.
123 (*add_<optab><SHORT:mode>_shft_si_uxtw): New pattern.
124 (*add_<optab><SHORT:mode>_mult_si_uxtw): New pattern.
125 (*add_<optab>si_multp2_uxtw): New pattern.
126 (*addsi3_carryin_uxtw): New pattern.
127 (*addsi3_carryin_alt1_uxtw): New pattern.
128 (*addsi3_carryin_alt2_uxtw): New pattern.
129 (*addsi3_carryin_alt3_uxtw): New pattern.
130 (*add_uxtsi_multp2_uxtw): New pattern.
131 (*subsi3_uxtw): New pattern.
132 (*subsi3_compare0_uxtw): New pattern.
133 (*sub_<shift>_si_uxtw): New pattern.
134 (*sub_mul_imm_si_uxtw): New pattern.
135 (*sub_<optab><SHORT:mode>_si_uxtw): New pattern.
136 (*sub_<optab><SHORT:mode>_shft_si_uxtw): New pattern.
137 (*sub_<optab>si_multp2_uxtw): New pattern.
138 (*sub_uxtsi_multp2_uxtw): New pattern.
139 (*negsi2_uxtw): New pattern.
140 (*negsi2_compare0_uxtw): New pattern.
141 (*neg_<shift>_si2_uxtw): New pattern.
142 (*neg_mul_imm_si2_uxtw): New pattern.
143 (*mulsi3_uxtw): New pattern.
144 (*maddsi_uxtw): New pattern.
145 (*msubsi_uxtw): New pattern.
146 (*mulsi_neg_uxtw): New pattern.
147 (*<su_optab>divsi3_uxtw): New pattern.
149 2012-12-20 Jakub Jelinek <jakub@redhat.com>
152 * gimplify.c (gimplify_self_mod_expr): Don't force lvalue to
153 pass is_gimple_min_lval.
155 2012-12-20 Richard Henderson <rth@redhat.com>
156 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
158 * config/s390/constraints.md (NxxDq, NxxSq): New.
159 * config/s390/predicates.md (contiguous_bitmask_operand): New.
160 * config/s390/s390.c (print_operand) ['e', 'f', 's', 't']: New
162 * config/s390/s390.md (bfstart, bfend): New mode attrs.
163 (*insv<GPR>_zEC12_noshift): Use them.
164 (*insv<GPR>_z10_noshift): Likewise.
165 (*insv<GPR>_or_z10_noshift): Likewise.
167 * config/s390/s390.md (*insv_l_di_reg_extimm): Un-macroize from :P.
169 * config/s390/s390.md (*anddi3_cc): Add risbg alternative.
170 (*anddi3_cconly, *anddi3): Likewise.
171 (*andsi3, *andsi3_cconly, *andsi3_zarch): Likewise.
173 * config/s390/s390.md (bitsize): New mode attr.
174 (*extzv<GPR>, *extzv<GPR>, *insv<GPR>_zEC12, *insv<GPR>_z10): Use it.
175 (extend<HQI><DSI>2, zero_extend<HQI>si2): Likewise.
176 (zero_extend<HQI>di2, fixuns_trunc<BFP><GPR>2): Likewise.
178 * config/s390/predicates.md (nonzero_shift_count_operand): New.
179 * config/s390/s390-protos.h (s390_extzv_shift_ok): Declare.
180 * config/s390/s390.c (s390_extzv_shift_ok): New function.
181 * config/s390/s390.md (extzv): New expander.
182 (*extzv<GPR>_zEC12, *extzv<GPR>_z10): New insns.
183 (*pre_z10_extzv<GPR>): Rename from *extzv<GPR>; simplify with
184 nonzero_shift_count_operand.
185 (*extzv_<GPR>_srl, *extzv_<GPR>_sll): New insns.
187 * config/s390/s390.md (IXOR): New code iterator.
188 (*r<IXOR>sbg_<GPR>_noshift): Rename from *insv<GPR>_or_z10_noshift;
189 macro-ize to handle XOR too.
190 (*r<IXOR>sbg_di_rotl, *r<IXOR>sbg_<GPR>_srl, *r<IXOR>sbg_<GPR>_sll):
193 * config/s390/s390.md (*insv_rnsbg_noshift, *insv_rnsbg_srl): New.
195 2012-12-20 Thomas Schwinge <thomas@codesourcery.com>
198 * configure.ac <PLUGIN_LD_SUFFIX>: Use POSIX shell syntax.
199 * configure: Regenerate.
201 2012-12-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
204 * config/arm/arm.c (arm_canonicalize_comparison): Remove
205 op0_preserve_value check for zero_extend to and transformation.
207 2012-12-20 Teresa Johnson <tejohnson@google.com>
208 Jakub Jelinek <jakub@redhat.com>
210 PR gcov-profile/55734
211 * gcov-io.c (gcov_read_summary): Use __builtin_popcount instead
212 of __builtin_popcountll when building libgcov.a, otherwise use
214 (gcov_histo_index): When not building libgcov.a, use floor_log2
215 instead of __builtin_clzll.
217 2012-12-20 Richard Biener <rguenther@suse.de>
220 * cfghooks.c (merge_blocks): Properly handle merging of
223 2012-12-20 Roland Stigge <stigge@debian.org>
224 Matthias Klose <doko@ubuntu.com>
226 * config/rs6000/t-spe (MULTIARCH_DIRNAME): Remove.
227 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Define name for
228 powerpc-linux-gnuspe.
230 2012-12-19 Matthias Klose <doko@ubuntu.com>
232 * config/i386/t-kfreebsd (MULTIARCH_DIRNAME): Add comma to
233 separate arguments in make function.
235 2012-12-19 Uros Bizjak <ubizjak@gmail.com>
236 Yuri Rumyantsev <ysrumyan@gmail.com>
238 * config/i386/i386.h (enum ix86_tune_indices): Add
239 X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE.
240 (TARGET_AVOID_MEM_OPND_FOR_CMOVE): New define.
241 * config/i386/i386.c (initial_ix86_tune_features)
242 <X86TUNE_AVOID_MEM_OPND_FOR_CMOVE>: Initialize.
243 * config/i386/i386.md (splitters to avoid cmove memory operands): New.
244 (peephole2s to avoid cmove memory operands): New.
246 2012-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
248 * config/arm/arm.md (f_minmaxs, f_minmaxd): New types.
249 * config/arm/vfp.md (smax<mode>3): New pattern.
250 (smin<mode>3): Likewise.
252 2012-12-19 Richard Biener <rguenther@suse.de>
254 * targhooks.h (default_canonicalize_comparison): Fix prototype.
255 * targhooks.c (default_canonicalize_comparison): Define.
257 2012-12-19 Richard Biener <rguenther@suse.de>
259 PR tree-optimization/55736
260 PR tree-optimization/55703
261 * gimplify.c (prune_expr_location): New function.
262 (unshare_expr_without_location): Likewise.
263 * tree.h (unshare_expr_without_location): Declare.
264 * ipa-prop.c (prune_expression_for_jf): Remove.
265 (prune_expression_for_jf_1): Likewise.
266 (ipa_set_jf_constant): Use unshare_expr_without_location.
267 (ipa_set_jf_arith_pass_through): Likewise.
268 (determine_known_aggregate_parts): Likewise.
269 * tree-switch-conversion.c (build_constructors): Use
270 unshare_expr_without_location on all constructor elements.
272 2012-12-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
274 * target.def: Define canonicalize_comparison hook.
275 * targhooks.h (default_canonicalize_comparison): New prototype.
276 * targhooks.c (default_canonicalize_comparison): New function.
277 * doc/tm.texi: Add documentation for the new target hook.
278 * doc/tm.texi.in: Likewise.
279 * combine.c (try_combine): Adjust to use the target hook.
280 * config/alpha/alpha.h (CANONICALIZE_COMPARISON): Remove macro
282 * config/alpha/alpha.c (alpha_canonicalize_comparison): New function.
283 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
284 * config/arm/arm-protos.h (arm_canonicalize_comparison): Remove
286 * config/arm/arm.c (arm_canonicalize_comparison): Add new parameter.
287 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
288 * config/arm/arm.h (CANONICALIZE_COMPARISON): Remove macro definition.
289 * config/s390/s390-protos.h (s390_canonicalize_comparison): Remove
291 * config/s390/s390.c (s390_canonicalize_comparison): Add new parameter.
292 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
293 * config/s390/s390.h (CANONICALIZE_COMPARISON): Remove macro definition.
294 * config/sh/sh-protos.h (sh_canonicalize_comparison): Remove prototype.
295 * config/sh/sh.c (sh_canonicalize_comparison): Add new prototype. New
296 function overloading the old one.
297 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
298 * config/sh/sh.h (CANONICALIZE_COMPARISON): Remove macro definition.
299 * config/spu/spu.c (spu_canonicalize_comparison): New function.
300 (TARGET_CANONICALIZE_COMPARISON): New macro definition.
301 * config/spu/spu.h (CANONICALIZE_COMPARISON): Remove macro definition.
303 2012-12-19 Jakub Jelinek <jakub@redhat.com>
306 * dwarf2out.c (mem_loc_descriptor): Ignore CLOBBER.
307 * valtrack.c (gen_lowpart_for_debug): New function.
308 (propagate_for_debug): Temporarily set rtl_hooks.gen_lowpart_no_emit
309 to gen_lowpart_for_debug.
311 2012-12-18 Jan Hubicka <jh@suse.cz>
313 PR tree-optimization/55683
314 * ipa-prop.c (try_make_edge_direct_virtual_call): Look into constants
317 2012-12-19 Terry Guo <terry.guo@arm.com>
319 * config/arm/arm.c (thumb_find_work_register): Check argument
320 register number based on current PCS.
322 2012-12-18 Jakub Jelinek <jakub@redhat.com>
325 * sbitmap.c (bitmap_and, bitmap_xor, bitmap_ior): Return whether
326 dst sbitmap changed even if it doesn't have popcount.
328 2012-12-18 James Greenhalgh <james.greenhalgh@arm.com>
330 * config/aarch64/aarch64.md (insv_imm<mode>): Add modes
333 2012-12-18 James Greenhalgh <james.greenhalgh@arm.com>
335 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
336 Remove unused variables.
337 (aarch64_split_compare_and_swap): Likewise.
339 2012-12-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
341 * config/arm/driver-arm.c (arm_cpu_table): Add Cortex-A7.
343 2012-12-18 Aldy Hernandez <aldyh@redhat.com>
346 * doc/install.texi (Tools/packages necessary for building GCC):
347 Suggest --disable-stage1-checking for older GCC's.
349 2012-12-18 Aldy Hernandez <aldyh@redhat.com>
352 * tree-ssa-coalesce.c (struct ssa_name_var_hash): Remove "union"
353 from template parameter.
355 2012-12-18 Richard Biener <rguenther@suse.de>
358 * cfgloopmanip.c (fix_loop_structure): Re-discover latch
359 edges first and mark loops for removal if no latch edges remain.
360 Properly re-create LOOPS_HAVE_FALLTHRU_PREHEADERS.
361 * loop-init.c (loop_optimizer_finalize): Set
362 LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
364 2012-12-18 Richard Biener <rguenther@suse.de>
366 PR tree-optimization/55555
367 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Properly
368 analyze evolution of the index for the loop it is used in.
369 * tree-scalar-evolution.c (instantiate_scev_name): Take
370 inner loop we will be creating a chrec for. Generalize
371 fix for PR40281 and prune invalid SCEVs.
372 (instantiate_scev_poly): Likewise - pass down inner loop
373 we will be creating a chrec for.
374 (instantiate_scev_binary): Take and pass through inner loop.
375 (instantiate_array_ref): Likewise.
376 (instantiate_scev_convert): Likewise.
377 (instantiate_scev_not): Likewise.
378 (instantiate_scev_3): Likewise.
379 (instantiate_scev_2): Likewise.
380 (instantiate_scev_1): Likewise.
381 (instantiate_scev_r): Likewise.
382 (resolve_mixers): Adjust.
383 (instantiate_scev): Likewise.
385 2012-12-18 Jakub Jelinek <jakub@redhat.com>
388 * rtlhooks-def.h (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Define to
389 gen_lowpart_if_possible.
390 (gen_lowpart_no_emit_general): Remove prototype.
391 * rtlhooks.c (gen_lowpart_no_emit_general): Removed.
392 * simplify-rtx.c (simplify_unary_operation_1,
393 simplify_binary_operation_1): Continue simplifying if
394 rtl_hooks.gen_lowpart_no_emit returns NULL_RTX.
395 * dwarf2out.c (mem_loc_descriptor) <case TRUNCATE>: Handle
396 truncation like lowpart SUBREG.
398 2012-12-17 Gerald Pfeifer <gerald@pfeifer.com>
400 * doc/contrib.texi (Contributors): Update Kaveh Ghazi's entry;
401 remove broken link to Rutgers University.
403 2012-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
405 * varasm.c (pending_assemble_externals_processed): Guard
406 with ASM_OUTPUT_EXTERNAL.
408 2012-12-17 Andrew Stubbs <ams@codesourcery.com>
409 Ulrich Weigand <ulrich.weigand@linaro.org>
411 * config/arm/arm.md (zero_extend<mode>di2): Add extra alternatives
413 Add alternative for one-instruction extend-in-place.
414 (extend<mode>di2): Likewise.
415 Add constraints for Thumb-mode memory loads.
416 Prevent extend splitters doing NEON alternatives.
417 * config/arm/iterators.md (qhs_extenddi_cstr, qhs_zextenddi_cstr):
418 Adjust constraints to add new alternatives.
419 * config/arm/neon.md: Add splitters for zero- and sign-extend.
421 2012-12-17 Greta Yorsh <Greta.Yorsh@arm.com>
423 * config/arm/arm.md (type): Add "simple_alu_shift" to attribute "type".
424 (core_cycles): Update for simple_alu_shift.
425 (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Use simple_alu_shift
426 instead of a CPU-speicific condition for "type" attribute.
427 (thumb1_zero_extendqisi2_v6,arm_zero_extendqisi2_v6): Likewise.
428 (thumb1_extendhisi2,arm_extendhisi2_v6,arm_extendqisi_v6): Likewise.
429 (thumb1_extendqisi2): Likewise.
430 * config/arm/thumb2.md (thumb2_extendqisi_v6): Likewise.
431 (thumb2_zero_extendhisi2_v6,thumb2_zero_extendqisi2_v6) Likewise.
432 * config/arm/arm1020e.md (alu_shift_op): Use simple_alu_shift.
433 * config/arm/arm1026ejs.md (alu_shift_op): Likewise.
434 * config/arm/arm1136jfs.md (11_alu_shift_op): Likewise.
435 * config/arm/arm926ejs.md (9_alu_op): Likewise.
436 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Likewise.
437 * config/arm/cortex-a5.md (cortex_a5_alu_shift): Likewise.
438 * config/arm/cortex-a8.md (cortex_a8_alu_shift,cortex_a8_mov): Likewise.
439 * config/arm/cortex-a9.md (cortex_a9_dp,cortex_a9_dp_shift): Likewise.
440 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
441 * config/arm/cortex-r4.md (cortex_r4_alu_shift): Likewise.
442 * config/arm/fa526.md (526_alu_shift_op): Likewise.
443 * config/arm/fa606te.md (fa606te_core): Likewise.
444 * config/arm/fa626te.md (626te_alu_shift_op): Likewise.
445 * config/arm/fa726te.md (726te_alu_shift_op): Likewise.
446 * config/arm/fmp626.md (mp626_alu_shift_op): Likewise.
448 2012-12-17 Richard Biener <rguenther@suse.de>
451 * alias.c (ao_ref_from_mem): More appropriately constrain the
452 base object we feed to the tree oracle. Remove dead code.
454 2012-12-17 James Greenhalgh <james.greenhalgh@arm.com>
455 Tejas Belagod <tejas.belagod@arm.com>
457 * config/aarch64/aarch64.c
458 (aarch64_autovectorize_vector_sizes): New.
459 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
461 2012-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
464 Forward port from 4.7 branch:
465 2012-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
468 * varasm.c (process_pending_assemble_externals): Set
469 pending_assemble_externals_processed true.
470 (assemble_external): Call assemble_external_real if the pending
471 assemble externals have been processed.
473 2012-12-16 Eric Botcazou <ebotcazou@adacore.com>
474 Tomash Brechko <tomash.brechko@gmail.com>
477 * config/sparc/sparc.c (sparc_emit_membar_for_model): Fix reversed
478 handling of before and after cases.
479 * config/sparc/sync.md (atomic_store): Fix pasto.
481 2012-12-16 Eric Botcazou <ebotcazou@adacore.com>
483 PR rtl-optimization/55630
484 * expr.c (expand_assignment): Do not call copy_blkmode_to_reg to move
485 BLKmode return values to the return register.
487 2012-12-15 Alexandre Oliva <aoliva@redhat.com>
490 * expr.c (mem_ref_refers_to_non_mem_p): Factor out
491 implementation into...
492 (addr_expr_of_non_mem_decl_p_1): ... this new function.
493 (addr_expr_of_non_mem_decl_p): New.
494 * tree.h (addr_expr_of_non_mem_decl_p): Declare.
495 * tree-mudflap.c (mf_xform_derefs_1): Don't change MEM_REFs
496 and TARGET_MEM_REFs that have an ADDR_EXPR of a non-mem DECL
499 2012-12-14 Yvan Roux <yvan.roux@linaro.org>
501 * optabs.c (expand_atomic_store): Elide redundant model test.
503 2012-12-14 Teresa Johnson <tejohnson@google.com>
505 PR gcov-profile/55674
506 * lto-cgraph.c (merge_profile_summaries): Set min correctly the
507 first time we merge into a histogram entry.
509 2012-12-14 Richard Biener <rguenther@suse.de>
511 PR tree-optimization/55684
512 * tree-ssa-loop-ivcanon.c (remove_redundant_iv_tests): Handle
513 gracefully the case where we cannot compute the number of
514 iterations at an exit.
516 2012-12-14 Richard Biener <rguenther@suse.de>
518 PR tree-optimization/55687
519 * tree-chrec.h (no_evolution_in_loop_p): Properly use
520 tree_contains_chrecs.
522 2012-12-13 Richard Henderson <rth@redhat.com>
525 * optabs.c (expand_atomic_load): Emit acquire barrier after the load.
527 2012-12-13 Richard Henderson <rth@redhat.com>
529 * config/alpha/alpha.c (alpha_pad_function_end): Consider barriers
530 when looking for NOTE_INSN_CALL_ARG_LOCATION.
532 2012-12-13 Richard Biener <rguenther@suse.de>
535 * varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7
538 2012-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
540 * config/arm/unspecs.md: Add copyright notice.
542 2012-12-13 Jakub Jelinek <jakub@redhat.com>
544 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Avoid
545 -Wsign-compare warning.
547 2012-12-13 Richard Biener <rguenther@suse.de>
550 * tree-streamer.c (record_common_node): Check that we are not
551 recursively pre-loading nodes we want to skip. Handle
552 char_type_node appearing as part of va_list_type_node.
554 2012-12-13 Jakub Jelinek <jakub@redhat.com>
556 PR gcov-profile/55650
557 * coverage.c (coverage_obj_init): Return false if no functions
560 2012-12-13 Steven Bosscher <steven@gcc.gnu.org>
562 * bitmap.c (struct bitmap_descriptor): Remove forward declaration.
563 (struct bitmap_head_def): Remove desc pointer. Add descriptor_id
564 field. Reorder fields for pointer alignment.
565 * bitmap.c: Include vec.h.
566 (struct bitmap_descriptor): Rename to bitmap_descriptor_d.
567 (bitmap_descriptor): New typedef, pointer to bitmap_descriptor_d.
568 Update all struct bitmap_descriptor references.
569 (next_bitmap_desc_id): New running index for bitmap desciptors.
570 (bitmap_descriptors): Vec of all bitmap descriptors by descriptor id.
571 (hash_descriptor, eq_descriptor): Update for struct bitmap_descriptor
573 (bitmap_descriptor): Rename function to get_bitmap_descriptor.
574 Stuff newly allocated bitmap descriptor into bitmap_descriptors.
575 Set the bitmap descriptor id.
576 (bitmap_register): Lookup bitmap desciptor and store its ID in
578 (register_overhead): Likewise.
579 (bitmap_find_bit): Lookup descriptor by id in bitmap_descriptors.
580 (print_statistics): Update for struct bitmap_descriptor change.
582 * Makefile.in: Fix bitmap.o dependencies.
584 2012-12-13 Richard Biener <rguenther@suse.de>
586 * tree-ssa-pre.c (get_representative_for): Adjust dumping.
587 Mark created SSA names for release.
588 (eliminate_bb): Insert only when expr is not NULL.
590 2012-12-12 Jakub Jelinek <jakub@redhat.com>
593 * tree-inline.c (remap_decls): Change nonlocalized_list
594 to pointer to pointer to vector from pointer to vector.
595 (remap_block): Pass address of BLOCK_NONLOCALIZED_VARS.
598 * builtin-attrs.def (ATTR_TMPURE_NOTHROW_LEAF_LIST,
599 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): New.
600 * asan.c (ATTR_TMPURE_NOTHROW_LEAF_LIST,
601 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): Define.
602 * sanitizer.def: Make __asan_report_* and __asan_handle_no_return
605 2012-12-12 Steve Ellcey <sellcey@mips.com>
607 * config/mips/mips.c (mips_option_override): Set
608 mips_dbx_regno entries to IGNORED_DWARF_REGNUM by default.
610 2012-12-12 Steven Bosscher <steven@gcc.gnu.org>
612 * graph.c: Include sbitmap.h and cfgloop.h.
613 (draw_cfg_nodes_no_loops): New function to dump basic blocks in
614 topological order if the function does not have a loop tree.
615 Handle unreachable blocks also.
616 (draw_cfg_nodes_for_loop): New function to dump basic blocks in
617 one loop tree node as a named cluster of nodes.
618 (draw_cfg_nodes): New function to draw all CFG nodes.
619 (draw_cfg_edges): New function to draw all CFG edges.
620 (print_graph_cfg): Simplify using the new functions.
621 * Makefile.in (graph.o): Fix dependencies.
623 2012-12-12 Steven Bosscher <steven@gcc.gnu.org>
625 * dumpfile.h (enum tree_dump_index): Remove TDI_vcg.
626 * dumpfile.c (dump_files[]): Remove entry for TDI_vcg.
627 * tree-cfg.c (gimple_cfg2vcg): Remove.
628 (build_gimple_cfg): Don't call it.
629 * doc/invoke.texi (-fdump-tree-vcg): Remove documentation.
630 Correct GraphViz documentation, it does handle multiple functions
633 2012-12-12 Zdenek Dvorak <ook@ucw.cz>
635 PR tree-optimization/55481
636 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall
637 back to general rewriting if we cannot leave an original biv
640 2012-12-12 Jakub Jelinek <jakub@redhat.com>
644 2012-12-11 Jakub Jelinek <jakub@redhat.com>
647 * var-tracking.c (emit_note_insn_var_location): If insn is followed
648 by BARRIER, put note after the BARRIER.
649 (next_non_note_insn_var_location): Skip over BARRIERs.
650 (emit_notes_in_bb): If call is followed by BARRIER, put note after
653 2012-12-06 Jakub Jelinek <jakub@redhat.com>
656 * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb):
657 Clear BLOCK_FOR_INSN on notes emitted in between basic blocks,
658 don't adjust BB_END when inserting note after BB_END of some bb.
660 2012-12-12 Steven Bosscher <steven@gcc.gnu.org>
661 Jakub Jelinek <jakub@redhat.com>
664 * varasm.c (pending_assemble_externals_set): New pointer set.
665 (process_pending_assemble_externals): Destroy the pointer set.
666 (assemble_external): See if decl is in pending_assemble_externals_set,
667 and add it to pending_assemble_externals if necessary.
668 (init_varasm_once): Allocate pending_assemble_externals_set.
670 2012-12-12 Jakub Jelinek <jakub@redhat.com>
673 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
674 Ignore bounds on which bound += double_int_one overflowed.
676 2012-12-11 Eric Botcazou <ebotcazou@adacore.com>
679 * config/sparc/sparc.md (tldo_stb_sp32): Fix pasto.
680 (tldo_stb_sp64): Likewise.
681 (tldo_sth_sp32): Likewise.
682 (tldo_sth_sp64): Likewise.
683 (tldo_stw_sp32): Likewise.
684 (tldo_stw_sp64): Likewise.
685 (tldo_stx_sp64): Likewise.
687 2012-12-11 Jakub Jelinek <jakub@redhat.com>
689 PR rtl-optimization/55193
690 * lra-constraints.c (loc_equivalence_callback): New function.
691 (lra_constraints): Call simplify_replace_fn_rtx instead of
692 loc_equivalence_change_p on DEBUG_INSNs.
694 2012-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
697 * config/arm/thumb2.md (*thumb2_abssi2):
698 Set ce_count attribute to 2.
699 (*thumb2_neg_abssi2): Likewise.
701 2012-12-11 Jakub Jelinek <jakub@redhat.com>
703 * varasm.c (get_variable_section): Don't return lcomm_section
704 for asan_protect_global decls.
705 * asan.c (asan_protect_global): Only avoid public common variables.
706 Don't call get_variable_section here.
710 * var-tracking.c (emit_note_insn_var_location): If insn is followed
711 by BARRIER, put note after the BARRIER.
712 (next_non_note_insn_var_location): Skip over BARRIERs.
713 (emit_notes_in_bb): If call is followed by BARRIER, put note after
716 * sanitizer.def: Add comment about importance of ordering of
717 BUILT_IN_ASAN_REPORT* builtins.
718 * cfgcleanup.c (old_insns_match_p): Don't cross-jump __asan_report_*
721 * sanitizer.def (BUILT_IN_ASAN_HANDLE_NO_RETURN): New builtin.
722 * asan.c (instrument_builtin_call): Change is_gimple_builtin_call
723 gcc_assert to gcc_checking_assert.
724 (maybe_instrument_call): Imit __builtin___asan_handle_no_return ()
725 before noreturn calls other than __builtin_trap () and
726 __builtin_unreachable ().
728 2012-12-11 Richard Biener <rguenther@suse.de>
731 * doc/install.texi (Tools/packages necessary for building GCC):
732 State ISO C++98 host compiler requirement. Increment minimum
733 GCC version required for building all languages for a cross-compiler
736 2012-12-11 Richard Biener <rguenther@suse.de>
738 PR tree-optimization/55079
739 * tree-vrp.c (extract_range_from_binary_expr_1): Handle MAX/MIN_EXPR
741 (register_edge_assert_for_2): Register asserts for post-in/decrement
743 (check_array_ref): Dump what expression we emit array bound
745 (search_for_addr_array): Likewise.
747 2012-12-11 Eric Botcazou <ebotcazou@adacore.com>
749 * tree-ssa-loop-ivopts.c (prepare_decl_rtl) <ADDR_EXPR>: Generate RTL
750 only for a DECL which HAS_RTL_P.
752 2012-12-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
754 * config/s390/predicates.md ("execute_operation"): New predicate.
755 * config/s390/s390.md ("*execute_rl", "*execute"): Use the new
758 2012-12-10 Xinliang David Li <davidxl@google.com>
760 * config/i386/i386.c: Enable push/pop in pro/epilogue for modern CPUs.
762 2012-12-10 Steve Ellcey <sellcey@mips.com>
764 * config/mips/gnu-user.h (NO_SHARED_SPECS): Add space before option.
766 2012-12-10 Steve Ellcey <sellcey@mips.com>
769 * rtl.h (IGNORED_DWARF_REGNUM): New.
770 * dwarf2out.c (reg_loc_descriptor): Check for IGNORED_DWARF_REGNUM.
771 (mem_loc_descriptor): Ditto.
772 * config/mips/mips.h (ALL_COP_REG_FIRST): New.
773 (ALL_COP_REG_LAST): New.
774 (ALL_COP_REG_NUM): Redefine using above macros.
775 * config/mips/mips.c (mips_option_override): Set mips_dbx_regno
776 coprocessor entries to IGNORED_DWARF_REGNUM.
778 2012-12-10 H.J. Lu <hongjiu.lu@intel.com>
781 * lto-symtab.c (lto_symtab_merge_decls_1): Don't record the
783 * lto.c (lto_register_var_decl_in_symtab): Don't record static
785 (lto_main): Record the global variables if WPA isn't enabled.
787 2012-12-10 Richard Biener <rguenther@suse.de>
789 PR tree-optimization/55107
790 * tree-ssa-pre.c (struct pre_stats): Remove constified field.
791 (bitmap_set_replace_value): Add gcc_unreachable.
792 (do_regular_insertion): Re-write all_same handling. Insert
793 an assignment instead of a PHI in this case.
794 (eliminate_bb): Record availability also for SSA names defined
796 (do_pre): Do not record constified events.
797 (execute_fre): Likewise.
799 2012-12-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
801 * config/spu/spu.md: Replace "operands" with "operands != NULL" in
804 2012-12-10 Jakub Jelinek <jakub@redhat.com>
806 * asan.c (asan_init_shadow_ptr_types): Move earlier in the file.
807 Call initialize_sanitizer_builtins at the end.
808 (asan_pp_string): Use TREE_TYPE (shadow_ptr_types[0])
809 as character type instead of char_type_node.
810 (asan_emit_stack_protection): Call asan_init_shadow_ptr_types
811 if shadow_ptr_types isn't initialized.
812 (asan_protect_global): Return true for STRING_CSTs except those
813 created by asan_pp_string.
814 (count_string_csts, add_string_csts): New functions.
815 (struct asan_add_string_csts_data): New type.
816 (asan_finish_file): Clear flag_asan at the beginning, restore at the
817 end. Traverse constant_pool_htab () to look for protected
818 STRING_CSTs. Don't call initialize_sanitizer_builtins,
819 instead call asan_init_shadow_ptr_types if shadow_ptr_types isn't
821 (asan_instrument): Don't call initialize_sanitizer_builtins.
822 * varasm.c (output_constant_def_contents): If STRING_CST should be
823 asan protected, align it sufficiently and emit padding after it.
824 (categorize_decl_for_section): If flag_asan, don't put STRING_CSTs
825 that should be asan protected into mergeable sections. For
826 -fmerge-all-constants, ignore it for -fmudflap or if decl is
829 2012-12-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
831 * config/arm/neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm,
833 (type features): Add Requires_arch type constructor.
834 (ops): Define Vrintn, Vrinta, Vrintp, Vrintm, Vrintz features.
835 * config/arm/neon-docgen.ml (intrinsic_groups): Define Vrintn,
836 Vrinta, Vrintp, Vrintm, Vrintz, Vrintx.
837 * config/arm/neon-testgen.ml (effective_target): Define check for
839 * config/arm/neon-gen.ml (print_feature_test_start): Handle
841 (print_feature_test_end): Likewise.
842 Add 2012 to Copyright notice.
843 * doc/arm-neon-intrinsics.texi: Regenerate.
844 * config/arm/arm_neon.h: Regenerate.
846 2012-12-10 Kai Tietz <ktietz@redhat.com>
848 * stmt.c (expand_sjlj_dispatch_table): Fix off by one.
851 * stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.
852 (expand_case): Likewise.
855 * print-tree.c (print_node): Cast from pointer via uintptr_t.
857 2012-12-10 Jakub Jelinek <jakub@redhat.com>
859 * asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs
860 accesses as reads/writes to their DECL_BIT_FIELD_REPRESENTATIVE.
862 2012-12-08 Eric Botcazou <ebotcazou@adacore.com>
864 * lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of
865 variables in the global constant pool.
867 2012-12-08 Steven Bosscher <steven@gcc.gnu.org>
869 PR rtl-optimization/55158
870 * sched-rgn.c (bb_state_array, bb_state): Add some explaining
871 comment, and initialize to NULL explicitly.
872 (realloc_bb_state_array): New function.
873 (free_bb_state_array): New function.
874 (schedule_region): Call realloc_bb_state_array after schedule_block.
875 (sched_rgn_init): Use realloc_bb_state_array to initialize bb_state.
876 (sched_rgn_finish): Use free_bb_state_array to free it.
878 2012-12-08 Eric Botcazou <ebotcazou@adacore.com>
880 * tree-ssa-loop-im.c (for_each_index) <CONST_DECL>: New case.
882 2012-12-07 Sriraman Tallan <tmsriram@google.com>
884 * toplev.c (process_options): Do not warn when -ffunction-sections
885 and -fprofile are used together.
887 2012-12-07 Steven Bosscher <steven@gcc.gnu.org>
889 * ree.c (struct ext_cand): Remove GTY markers.
891 2012-12-07 Vladimir Makarov <vmakarov@redhat.com>
893 PR rtl-optimization/55141
894 * lra-constraints.c (lra_constraints): Use biggest mode for
895 df_set_regs_ever_live.
897 2012-12-07 Jan Hubicka <jh@suse.cz>
899 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND
901 (try_unroll_loop_completely) Update.
903 2012-12-07 Jakub Jelinek <jakub@redhat.com>
906 * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
907 for -g for any kind of debug info.
909 2012-12-07 Richard Biener <rguenther@suse.de>
911 PR tree-optimization/54886
912 * graphite-sese-to-poly.c (build_loop_iteration_domains): Properly
915 2012-12-07 Martin Jambor <mjambor@suse.cz>
918 * ipa-inline-transform.c (inline_call): Turn #if 0 to
919 #ifdef ENABLE_CHECKING.
920 * ipa-prop.c (try_make_edge_direct_simple_call): Use
921 ipa_value_from_jfunc.
922 (try_make_edge_direct_virtual_call): Likewise.
923 (update_indirect_edges_after_inlining): Lookup new_root_info and pass
924 it to the functions above.
926 2012-12-07 Martin Jambor <mjambor@suse.cz>
928 PR tree-optimization/55590
929 * tree-sra.c (build_ref_for_offset): Use get_object_alignment_1 to
932 2012-12-06 Uros Bizjak <ubizjak@gmail.com>
933 H.J. Lu <hongjiu.lu@intel.com>
936 * config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode,
937 before using it as insn or call equivalent.
939 2012-12-06 Peter Bergner <bergner@vnet.ibm.com>
941 * config/rs6000/sysv4.h (TARGET_ASAN_SHADOW_OFFSET): Define.
942 * config/rs6000/rs6000.c (rs6000_asan_shadow_offset): New function.
943 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Disable if using ASAN.
945 2012-12-06 Jakub Jelinek <jakub@redhat.com>
948 * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
949 if -g and emitting DWARF2+.
951 2012-12-06 Pat Haugen <pthaugen@us.ibm.com>
953 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
954 default loop peeling limits.
956 2012-12-06 Jason Merrill <jason@redhat.com>
960 * tree.c (build_array_type_1): Re-layout if we found it in the
963 2012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
966 * config/darwin.h (LINK_COMMAND_SPEC_A): Remove static libasan support.
968 2012-12-06 Jakub Jelinek <jakub@redhat.com>
971 * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb):
972 Clear BLOCK_FOR_INSN on notes emitted in between basic blocks,
973 don't adjust BB_END when inserting note after BB_END of some bb.
976 * fold-const.c (fold_binary_loc) <associate>: Don't introduce
977 TREE_OVERFLOW through reassociation. If type doesn't have defined
978 overflow, but one or both of the operands do, use the wrapping type
979 for reassociation and only convert to type at the end.
981 2012-12-06 Richard Biener <rguenther@suse.de>
983 * gimple-fold.c (fold_stmt_1): Remove code handling folding stmts away.
985 2012-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
987 * doc/sourcebuild.texi: Document arm_v8_neon_ok.
989 2012-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
991 * config/arm/arm.c (neon_itype): Define NEON_RINT enum element.
992 (neon_builtin_data): Register vrintn, vrinta, vrintp, vrintm,
993 vrintz, vrintx neon builtins.
994 (arm_init_neon_builtins): Handle NEON_RINT.
995 (arm_expand_neon_builtin): Likewise.
996 * config/arm/unspecs.md: New file.
997 * config/arm/arm.md ("unspec"): Move to unspecs.md.
998 * config/arm/iterators.md (NEON_VRINT): New int iterator.
999 (nvrint_variant): New int attribute.
1000 * config/arm/neon.md
1001 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): New pattern.
1002 ("unspec"): Move to unspecs.md.
1003 * config/arm/iwmmxt2.md ("unspec"): Move to unspecs.md.
1005 2012-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1007 * config/pa/pa.md: Use "const_int 0" instead of match_test to simplify
1008 opaque cond in all call insns.
1010 2012-12-05 Steven Bosscher <steven@gcc.gnu.org>
1012 PR rtl-optimization/55604
1013 * lra-lives.c (lra_create_live_ranges): If there are no referenced
1014 pseudos left, do not compute live ranges.
1016 2012-12-05 Steven Bosscher <steven@gcc.gnu.org>
1018 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation.
1019 * doc/tm.texi: Regenerate.
1020 * regs.h (REG_LIVE_LENGTH): Update comments to not refer to no longer
1021 existing files global.c and local-alloc.c.
1022 * regmove.c (copy_src_to_dest): Likewise.
1023 * function.h (struct rtl_data): Likewise.
1024 * ira-color.c (allocno_priority_compare_func): Likewise.
1025 * regstat.c (regstat_compute_ri): Likewise.
1026 * config/epiphany/epiphany.h, config/vax/vax.h, config/cris/cris.h,
1027 config/h8300/h8300.h, config/alpha/alpha.h, config/sparc/sparc.h,
1028 config/rs6000/rs6000.h, config/pdp11/pdp11.h, config/pa/pa.h,
1029 config/v850/v850.h, config/mn10300/mn10300.h, config/m32r/m32r.h,
1030 config/i386/i386.h, config/mcore/mcore.h, config/sh/sh.h,
1031 config/arm/arm.h (REGNO_OK_FOR_BASE_P): Likewise.
1033 2012-12-05 Aldy Hernandez <aldyh@redhat.com>
1036 * config/t-darwin (darwin-c.o): Depend on $(CPP_INTERNAL_H).
1037 * config/darwin-c.c (darwin_cpp_builtins): Only set __OBJC2__ when
1039 Include libcpp/internal.h.
1041 2012-12-05 Michael Eager <eager@eagercon.com>
1043 PR rtl-optimization/54739
1044 * config/microblaze/microblaze.md: (anddi3, iordi3, xordi3): Delete
1047 2012-12-05 James Greenhalgh <james.greenhalgh@arm.com>
1049 * config/aarch64/aarch64-simd-builtins.def: Add new builtins.
1050 * config/aarch64/aarch64-simd.md (simd_type): Add uzp.
1051 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): New.
1052 * config/aarch64/aarch64.c (aarch64_evpc_trn): New.
1053 (aarch64_evpc_uzp): Likewise.
1054 (aarch64_evpc_zip): Likewise.
1055 (aarch64_expand_vec_perm_const_1): Check for trn, zip, uzp patterns.
1056 * config/aarch64/iterators.md (unspec): Add neccessary unspecs.
1058 (perm_insn): Likewise.
1059 (perm_hilo): Likewise.
1061 2012-12-05 James Greenhalgh <james.greenhalgh@arm.com>
1063 * config/aarch64/aarch64-protos.h
1064 (aarch64_split_combinev16qi): New.
1065 (aarch64_expand_vec_perm): Likewise.
1066 (aarch64_expand_vec_perm_const): Likewise.
1067 * config/aarch64/aarch64-simd.md (vec_perm_const<mode>): New.
1068 (vec_perm<mode>): Likewise.
1069 (aarch64_tbl1<mode>): Likewise.
1070 (aarch64_tbl2v16qi): Likewise.
1071 (aarch64_combinev16qi): New.
1072 * config/aarch64/aarch64.c
1073 (aarch64_vectorize_vec_perm_const_ok): New.
1074 (aarch64_split_combinev16qi): Likewise.
1075 (MAX_VECT_LEN): Define.
1076 (expand_vec_perm_d): New.
1077 (aarch64_expand_vec_perm_1): Likewise.
1078 (aarch64_expand_vec_perm): Likewise.
1079 (aarch64_evpc_tbl): Likewise.
1080 (aarch64_expand_vec_perm_const_1): Likewise.
1081 (aarch64_expand_vec_perm_const): Likewise.
1082 (aarch64_vectorize_vec_perm_const_ok): Likewise.
1083 (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Likewise.
1084 * config/aarch64/iterators.md
1085 (unspec): Add UNSPEC_TBL, UNSPEC_CONCAT.
1086 (V_cmp_result): Add mapping for V2DF.
1088 2012-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
1090 * config/aarch64/aarch64.c (aarch64_simd_mangle_map_entry): New
1092 (aarch64_simd_mangle_map): New table.
1093 (aarch64_mangle_type): Locate and return the mangled name for
1094 a given AdvSIMD vector type.
1096 2012-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
1098 * config/aarch64/aarch64.c (aarch64_mangle_type): New function.
1099 (TARGET_MANGLE_TYPE): Define.
1101 2012-12-05 James Greenhalgh <james.greenhalgh@arm.com>
1103 * config/aarch64/aarch64-builtins.c
1104 (aarch64_builtin_vectorized_function): New.
1105 * config/aarch64/aarch64-protos.h
1106 (aarch64_builtin_vectorized_function): Declare.
1107 * config/aarch64/aarch64-simd-builtins.def (frintz, frintp): Add.
1108 (frintm, frinti, frintx, frinta, fcvtzs, fcvtzu): Likewise.
1109 (fcvtas, fcvtau, fcvtps, fcvtpu, fcvtms, fcvtmu): Likewise.
1110 * config/aarch64/aarch64-simd.md
1111 (aarch64_frint_<frint_suffix><mode>): New.
1112 (<frint_pattern><mode>2): Likewise.
1113 (aarch64_fcvt<frint_suffix><su><mode>): Likewise.
1114 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Likewise.
1115 * config/aarch64/aarch64.c (TARGET_VECTORIZE_BUILTINS): Define.
1116 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
1117 * config/aarch64/aarch64.md
1118 (btrunc<mode>2, ceil<mode>2, floor<mode>2)
1119 (round<mode>2, rint<mode>2, nearbyint<mode>2): Consolidate as...
1120 (<frint_pattern><mode>2): ...this.
1121 (lceil<su_optab><mode><mode>2, lfloor<su_optab><mode><mode>2)
1122 (lround<su_optab><mode><mode>2)
1123 (lrint<su_optab><mode><mode>2): Consolidate as...
1124 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): ... this.
1125 * config/aarch64/iterators.md (fcvt_target): New.
1126 (FCVT_TARGET): Likewise.
1129 (frint_pattern): Likewise.
1130 (frint_suffix): Likewise.
1131 (fcvt_pattern): Likewise.
1133 2012-12-05 Steven Bosscher <steven@gcc.gnu.org>
1135 * passes.c (pass_init_dump_file): Only open a clean graph dump file if
1136 the dump was not already initialized.
1139 2012-12-03 Steven Bosscher <steven@gcc.gnu.org>
1140 * passes.c (finish_optimization_passes): Don't finish graph dumps here.
1141 (pass_fini_dump_file): Wrap in TV_DUMP. Finish graph dumps.
1142 (execute_one_pass): Don't set up graph dumps here.
1144 2012-12-05 Richard Biener <rguenther@suse.de>
1147 * gimple-streamer-in.c (input_gimple_stmt): Fixup ARRAY_REFs as well.
1149 2012-12-04 Ian Lance Taylor <iant@google.com>
1151 * godump.c (find_dummy_types): Output a dummy type if we couldn't
1152 output the real type.
1154 2012-12-04 Steven Bosscher <steven@gcc.gnu.org>
1156 * rtl.h (print_insn_with_notes): Remove prototype.
1157 (rtl_dump_bb_for_graph): New prototype.
1158 * sched-vis.c (print_insn_with_notes): Make static again. Fix
1160 (rtl_dump_bb_for_graph): New function.
1161 * cfghooks.h (struct cfg_hooks) <dump_bb_for_graph>: New hook.
1162 (dump_bb_for_graph): New prototype.
1163 * cfghooks.c (dump_bb_for_graph): New function.
1164 * tree-cfg.c (gimple_cfg_hooks): Register gimple_dump_bb_for_graph
1165 as dump_bb_for_graph hook implementation for GIMPLE.
1166 * cfgrtl.c (rtl_cfg_hooks): Likewise for rtl_dump_bb_for_graph.
1167 (cfg_layout_rtl_cfg_hooks): Likewise.
1168 * graph.c (draw_cfg_node): Don't include sbitmap.h, rtl.h, tree.h,
1169 gimple.h, and gimple-pretty-print.h.
1170 (draw_cfg_node, draw_cfg_node_succ_edges): Use the uniqe function
1171 definition number instead of the function declaration UID.
1172 (print_graph_cfg): Take a struct function instead of a tree.
1173 Use the dump_bb_for_graph hook to dump the basic block content.
1174 * graph.h (print_graph_cfg): Update prototype.
1175 * passes.c (execute_function_dump): Update print_graph_cfg call.
1176 * Makefile.in (graph.o): Fixup dependencies.
1178 2012-12-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
1180 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Set
1183 2012-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1185 * config/s390/s390.c (s390_select_ccmode): Enable using CC of
1186 x + imm for higher immediates on z9-109 upwards.
1188 2012-12-04 Richard Earnshaw <rearnsha@arm.com>
1190 * arm.opt (cirrus-fix-invalid-insns): Delete option.
1191 * invoke.texi (cirrus-fix-invalid-insns): Remove documentation.
1193 2012-12-04 Jakub Jelinek <jakub@redhat.com>
1195 * tsan.c (instrument_expr): If expr_ptr isn't a gimple val, first
1196 store it into a SSA_NAME.
1199 * Makefile.in (tsan.o): Depend on tree-ssa-propagate.h.
1200 * sanitizer.def: Add __tsan_atomic* builtins.
1201 * asan.c (initialize_sanitizer_builtins): Adjust to also
1202 initialize __tsan_atomic* builtins.
1203 * tsan.c: Include tree-ssa-propagate.h.
1204 (enum tsan_atomic_action): New enum.
1205 (tsan_atomic_table): New table.
1206 (instrument_builtin_call): New function.
1207 (instrument_gimple): Take pointer to gimple_stmt_iterator
1208 instead of gimple_stmt_iterator. Call instrument_builtin_call
1209 on builtin call stmts.
1210 (instrument_memory_accesses): Adjust instrument_gimple caller.
1211 * builtin-types.def (BT_FN_BOOL_VPTR_PTR_I1_INT_INT,
1212 BT_FN_BOOL_VPTR_PTR_I2_INT_INT, BT_FN_BOOL_VPTR_PTR_I4_INT_INT,
1213 BT_FN_BOOL_VPTR_PTR_I8_INT_INT, BT_FN_BOOL_VPTR_PTR_I16_INT_INT): New.
1215 2012-12-04 Tejas Belagod <tejas.belagod@arm.com>
1217 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment,
1218 aarch64_simd_vector_alignment_reachable): New.
1219 (TARGET_VECTOR_ALIGNMENT, TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE):
1222 2012-12-04 Richard Biener <rguenther@suse.de>
1224 PR tree-optimization/55124
1225 * tree-ssa-pre.c (find_or_generate_expression): Instead of
1226 ICEing when we are not able to generate an expression defer it
1227 by signalling failure. Fix possible wrong-code issue by
1228 not picking random REFERENCE expressions as fallback.
1229 (create_component_ref_by_pieces_1): Adjust. Add failure paths.
1230 (create_expression_by_pieces): Likewise.
1231 (insert_into_preds_of_block): When expression generation failed
1232 for one edge make sure to not insert a PHI node.
1234 2012-12-03 Eric Botcazou <ebotcazou@adacore.com>
1236 * config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch
1237 area if the function allocates dynamic stack space.
1238 (ia64_initial_elimination_offset): Adjust offsets to above change.
1240 2012-12-03 Steven Bosscher <steven@gcc.gnu.org>
1242 * gcse.c (struct reg_use): Remove unused struct.
1243 (gcse_emit_move_after): Do not create REG_EQUAL notes that reference
1244 the SET_DEST of the instruction the note would be attached to.
1245 * cse.c (cse_main): Add the DF_NOTE problem.
1247 2012-12-03 Jakub Jelinek <jakub@redhat.com>
1249 * sanitizer.def: Add Address Sanitizer builtins.
1250 Rename BUILT_IN_TSAN_READ_* to BUILT_IN_TSAN_READ* and
1251 BUILT_IN_TSAN_WRITE_* to BUILT_IN_TSAN_WRITE*.
1252 * Makefile.in (asan.o): Depend on langhooks.h.
1253 (tsan.o): Depend on asan.h.
1254 * asan.h (initialize_sanitizer_builtins): New prototype.
1255 * asan.c: Include langhooks.h.
1256 (report_error_func): Use builtin_decl_implicit of corresponding
1257 BUILT_IN_ASAN_REPORT_{LOAD,STORE}*.
1258 (asan_init_func): Removed.
1259 (initialize_sanitizer_builtins): New function.
1260 (asan_finish_file): Call it. Use builtin_decl_implicit
1261 on BUILT_IN_ASAN_{INIT,{,UN}REGISTER_GLOBALS}.
1262 (asan_instrument): Call initialize_sanitizer_builtins.
1263 * builtins.def (DEF_SANITIZER_BUILTIN): Change condition to
1264 (flag_asan || flag_tsan).
1265 * tsan.c: Include asan.h and tsan.h.
1266 (get_memory_access_decl): Rename BUILT_IN_TSAN_{READ,WRITE}_*
1267 to BUILT_IN_TSAN_{READ,WRITE}*.
1268 (tsan_pass): Call initialize_sanitizer_builtins.
1269 (tsan_gate, tsan_gate_O0): Don't check if
1270 builtin_decl_implicit_p (BUILT_IN_TSAN_INIT) is true.
1271 (tsan_finish_file): Call initialize_sanitizer_builtins.
1272 * builtin-types.def (BT_FN_VOID_PTR_PTRMODE): New fn type.
1274 2012-12-03 Aldy Hernandez <aldyh@redhat.com>
1277 * trans-mem.c (get_tm_region_blocks): Exclude uninstrumented
1278 blocks from vector if requested.
1279 (collect_bb2reg): Pass new argument to get_tm_region_blocks.
1280 (get_bb_regions_instrumented): Add INCLUDE_UNINSTRUMENTED_P
1281 argument, and pass it to expand_regions.
1282 (execute_tm_mark): Pass new argument to get_bb_regions_instrumented.
1283 (execute_tm_edges): Same.
1285 2012-12-03 Jakub Jelinek <jakub@redhat.com>
1287 * asan.c (instrument_mem_region_access): Don't instrument
1288 if base doesn't have pointer type or len integral type.
1289 Add cast if len doesn't have size_t compatible type.
1290 (instrument_builtin_call): Don't instrument BUILT_IN_ATOMIC_LOAD,
1291 BUILT_IN_ATOMIC_TEST_AND_SET, BUILT_IN_ATOMIC_CLEAR,
1292 BUILT_IN_ATOMIC_EXCHANGE, BUILT_IN_ATOMIC_COMPARE_EXCHANGE
1293 and BUILT_IN_ATOMIC_STORE.
1295 * asan.c (instrument_assignment): Instrument lhs only
1296 for gimple_store_p and rhs1 only for gimple_assign_load_p.
1298 2012-12-03 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1300 * Makefile.in: Add target mddump, build/genmddump.o. Extend
1301 genprogrtl with mddump.
1304 2012-12-03 Steven Bosscher <steven@gcc.gnu.org>
1306 * rtl.h (print_insn_with_notes): Prototype.
1307 * sched-vis.c (print_insn_with_notes): Export it.
1309 * gimple-pretty-print.h (gimple_dump_bb_for_graph): Prototype.
1310 * gimple-pretty-print.c (print_gimple_expr): Flush the buffer.
1311 (pp_gimple_stmt_1): Don't do it here.
1312 (gimple_dump_bb_for_graph): New function.
1313 * tree-pretty-print.c (print_generic_expr): Flush the buffer here.
1314 (dump_generic_node): Don't flush the buffer here.
1316 * graph.h (print_rtl_graph_with_bb): Rename to print_graph_cfg.
1317 * graph.c: Include gimple.h, dumpfile.h, and gimple-pretty-print.h.
1318 (draw_cfg_node): Handle GIMPLE basic blocks also.
1319 (print_rtl_graph_with_bb): Rename to print_graph_cfg.
1320 * passes.c (finish_optimization_passes): Don't finish graph dumps here.
1321 (execute_function_dump): Use print_graph_cfg. Enable dumping the CFG
1323 (pass_init_dump_file): Wrap in TV_DUMP. Set up CFG graph dumps.
1324 (pass_fini_dump_file): Wrap in TV_DUMP. Finish graph dumps.
1325 (execute_one_pass): Don't set up graph dumps here.
1327 2012-12-03 Eric Botcazou <ebotcazou@adacore.com>
1329 * tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag
1330 in the non-always executed case.
1332 2012-12-03 Sofiane Naci <sofiane.naci@arm.com>
1334 * config/aarch64/aarch64.c (aarch64_build_constant): Update prototype.
1335 Call emit_move_insn instead of printing movi/movn/movz instructions.
1336 Call gen_insv_immdi instead of printing movk instruction.
1337 (aarch64_add_constant): Update prototype.
1338 Generate RTL instead of printing add/sub instructions.
1339 (aarch64_output_mi_thunk): Update calls to aarch64_build_constant
1340 and aarch64_add_constant.
1342 2012-12-03 Kai Tietz <ktietz@redhat.com>
1345 * ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.
1348 * tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.
1351 * pointer-set.c (hash1): Cast from pointer via uintptr_t.
1353 2012-12-02 Marek Polacek <polacek@redhat.com>
1356 * cprop.c (bypass_block): Determine number of latches. Return
1357 when there is more than one latch edge.
1359 2012-12-02 Teresa Johnson <tejohnson@google.com>
1361 PR gcov-profile/55551
1362 * lto-cgraph.c (merge_profile_summaries): Handle scaled histogram
1363 entries that map to the same index.
1365 2012-12-02 Steven Bosscher <steven@gcc.gnu.org>
1367 * optabs.c (add_equal_note): Do not create self-referencing REG_EQUAL
1369 * fwprop.c (forward_propagate_and_simplify): Likewise.
1371 2012-12-02 Steven Bosscher <steven@gcc.gnu.org>
1373 * function.h (struct rtl_data): Remove epilogue_delay_list.
1374 * reorg.c (find_end_label): Simplify always-true test.
1375 (optimize_skip): Likewise.
1376 * final.c (leaf_function_p): Don't loop over epilogue_delay_list.
1377 (leaf_renumber_regs): Likewise.
1378 * varasm.c (mark_constant_pool): Likewise.
1379 * except.c (set_nothrow_function_flags): Likewise.
1380 * cfgrtl.c (print_rtl_with_bb): Likewise.
1382 2012-12-02 Hans-Peter Nilsson <hp@bitrange.com>
1384 * config/mmix/mmix.c (mmix_function_value): Set the mode of the
1385 returned PARALLEL to that of the return-value, not VOIDmode.
1387 2012-12-02 Sandra Loosemore <sandra@codesourcery.com>
1389 * doc/extend.texi: Various corrections to punctuation and grammar
1390 throughout the file. Use consistent terminology and proper names.
1391 Correct some minor markup issues.
1393 2010-12-01 Xinliang David Li <davidxl@google.com>
1395 * config/i386/i386.c: Allow sign extend instructions (cltd etc)
1398 2012-12-02 Steven Bosscher <steven@gcc.gnu.org>
1400 * reorg.c: Remove an obsolete comment.
1401 * config/pa/pa.md: Add back the HP-PA comment here, with details.
1403 2012-11-30 Eric Botcazou <ebotcazou@adacore.com>
1405 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
1406 Deal with degenerate cases where the bitsize isn't positive.
1409 2012-11-30 David Edelsohn <dje.gcc@gmail.com>
1411 * xcoffout.c (xcoff_tls_data_section_name): Define.
1412 * xcoffout.h (xcoff_tls_data_section_name): Declare.
1413 * config/rs6000/rs6000.c (tls_data_section): Define.
1414 (TARGET_USE_BLOCKS_FOR_DECL_P): Define.
1415 (rs6000_legitimize_tls_address_aix): New function.
1416 (rs6000_legitimize_tls_address): Use new function for AIX.
1417 (rs6000_cannot_force_const_mem): No sum in TLS TOC symbols.
1418 Allow TLS symbol in constant pool other than ELF.
1419 (rs6000_legitimate_address_p): Allow TLS symbol other than ELF.
1420 (rs6000_assemble_visibility): Do not emit anything on AIX.
1421 (output_toc): Handle alias of TLS general-dynamic symbols.
1422 Emit TLS decorations on symbols.
1423 (rs6000_use_blocks_for_decl_p): New function.
1424 (rs6000_xcoff_output_tls_section_asm_op): New function.
1425 (rs6000_xcoff_asm_init_sections): Initialize tls_data_section.
1426 (rs6000_xcoff_select_section): Choose tls_data_section for
1427 thread-local storage.
1428 (rs6000_xcoff_file_start): Generate xcoff_tls_data_section_name.
1429 (rs6000_legitimate_constant_p): Allow TLS symbol other than ELF.
1430 * config/rs6000/rs6000.md (tls_tls_): Restrict to ELF.
1431 (tls_get_tpointer): New.
1432 (tle_get_tpointer_internal): New.
1433 (tls_get_addr<mode>): New.
1434 (tls_get_addr_internal<mode>): New.
1435 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Define.
1437 2012-11-30 Teresa Johnson <tejohnson@google.com>
1439 * lto-cgraph.c (output_profile_summary): Stream out sum_all
1441 (input_profile_summary): Stream in sum_all and histogram.
1442 (merge_profile_summaries): Merge sum_all and histogram, and
1444 (input_symtab): Call compute_working_sets after merging summaries.
1445 * gcov-io.c (gcov_histo_index): Make extern for compiler.
1446 * gcov-io.h (gcov_histo_index): Ditto.
1447 * profile.c (compute_working_sets): Remove static keyword.
1448 * profile.h (compute_working_sets): Ditto.
1449 * Makefile.in (lto-cgraph.o): Depend on profile.h.
1451 2012-11-30 Martin Jambor <mjambor@suse.cz>
1454 PR tree-optimization/55415
1455 PR tree-optimization/54386
1457 * ipa-prop.c (ipa_modify_call_arguments): Be optimistic when
1458 get_pointer_alignment_1 returns false and the base was not a
1460 * tree-sra.c (access_precludes_ipa_sra_p): New parameter req_align,
1461 added check for required alignment. Update the user.
1463 2012-11-30 Ramana Radhakrishnan <Ramana.Radhakrishnan@arm.com>
1464 Greta Yorsh <Greta.Yorsh@arm.com>
1466 * config/arm/arm.md (type): Subdivide "alu" into "alu_reg"
1467 and "simple_alu_imm".
1468 (core_cycles): Use new names.
1469 (arm_addsi3): Set type of patterns to use to alu_reg and simple_alu_imm.
1470 (addsi3_compare0, addsi3_compare0_scratch): Likewise.
1471 (addsi3_compare_op1, addsi3_compare_op2, compare_addsi2_op0): Likewise.
1472 (compare_addsi2_op1, arm_subsi3_insn, subsi3_compare0): Likewise.
1473 (subsi3_compare, arm_decscc,arm_andsi3_insn): Likewise.
1474 (thumb1_andsi3_insn, andsi3_compare0_scratch): Likewise.
1475 (zeroextractsi_compare0_scratch,iorsi3_insn,iorsi3_compare0): Likewise.
1476 (iorsi3_compare0_scratch, arm_xorsi3, thumb1_xorsi3_insn): Likewise.
1477 (xorsi3_compare0, xorsi3_compare0_scratch): Likewise.
1478 (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Likewise.
1479 (thumb1_zero_extendqisi2_v, arm_zero_extendqisi2_v6): Likewise.
1480 (thumb1_extendhisi2, arm_extendqisi_v6): Likewise.
1481 (thumb1_extendqisi2, arm_movsi_insn): Likewise.
1482 (movsi_compare0, movhi_insn_arch4, movhi_bytes): Likewise.
1483 (arm_movqi_insn, thumb1_movqi_insn, arm_cmpsi_insn): Likewise.
1484 (movsicc_insn, if_plus_move, if_move_plus): Likewise.
1485 * config/arm/neon.md (neon_mov<mode>/VDX): Likewise.
1486 (neon_mov<mode>/VQXMOV): Likewise.
1487 * config/arm/arm1020e.md (1020alu_op): Likewise.
1488 * config/arm/fmp626.md (mp626_alu_op): Likewise.
1489 * config/arm/fa726te.md (726te_alu_op): Likewise.
1490 * config/arm/fa626te.md (626te_alu_op): Likewise.
1491 * config/arm/fa606te.md (606te_alu_op): Likewise.
1492 * config/arm/fa526.md (526_alu_op): Likewise.
1493 * config/arm/cortex-r4.md (cortex_r4_alu, cortex_r4_mov): Likewise.
1494 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
1495 * config/arm/cortex-a9.md (cprtex_a9_dp): Likewise.
1496 * config/arm/cortex-a8.md (cortex_a8_alu, cortex_a8_mov): Likewise.
1497 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
1498 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
1499 * config/arm/arm926ejs.md (9_alu_op): Likewise.
1500 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
1501 * config/arm/arm1026ejs.md (alu_op): Likewise.
1503 2012-11-30 Richard Biener <rguenther@suse.de>
1505 * tree-ssa-pre.c (get_expr_value_id): Do not allocate value-ids here.
1507 2012-11-30 Richard Biener <rguenther@suse.de>
1509 * tree-ssa-sccvn.c (run_scc_vn): Remove iteration propagating
1512 2012-11-30 Steven Bosscher <steven@gcc.gnu.org>
1514 * coretypes.h (struct pretty_print_info): Make a coretype.
1515 (typedef pretty_printer): Likewise.
1516 * pretty-print.h (typedef pretty_printer): Not needed here anymore.
1517 * pretty-print.c (pp_write_text_as_dot_label_to_stream): New function.
1518 * rtl.h (str_pattern_slim): New prototype.
1519 (print_value, print_pattern, print_insn): Adjust prototypes to take
1520 a pretty-printer rather than a char buffer.
1521 * sched-vis.c (safe_concat): Remove.
1522 (print_exp): Print into a pretty-printer.
1523 (print_value): Likewise.
1524 (print_pattern): Likewise.
1525 (print_insn): Likewise.
1526 (print_insn_with_notes): New static function.
1527 (init_rtl_slim_pretty_print): New function.
1528 (dump_value_slim): Simplify. Print into and flush a pretty-printer.
1529 (dump_insn_slim): Likewise.
1530 (dump_rtl_slim): Likewise.
1531 (str_pattern_slim): New function.
1532 * haifa-sched.c (model_recompute): Use str_pattern_slim instead of
1534 (model_record_pressures): Likewise.
1535 (schedule_insn): Likewise.
1536 * sel-sched-dump.c (dump_insn_rtx_1): Likewise.
1537 (sel_prepare_string_for_dot_label): Refer to graph.c CFG dumper code.
1538 * graph.c: Include pretty-print.h.
1539 (init_graph_slim_pretty_print): New function.
1540 (print_escaped_line): Removed here, and reincarnated as
1541 pp_write_text_as_dot_label_to_stream.
1542 (draw_cfg_node): Print into a pretty printer.
1543 (draw_cfg_node_succ_edges): Likewise.
1544 (print_rtl_graph_with_bb): Likewise.
1545 * Makefile.in (graph.o): Fix dependencies.
1546 (tree-optimize.o, toplev.o, sched-vis.o): Likewise.
1548 2012-11-30 Jakub Jelinek <jakub@redhat.com>
1550 * tsan.c (is_load_of_const_p): Removed.
1551 (instrument_expr): Use result of get_inner_reference
1552 instead of get_base_address, avoid some unnecessary tests,
1553 use !pt_solution_includes and !may_be_aliased tests to
1554 check whether base might escape current function.
1556 2012-11-30 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1558 * gensupport.c (maybe_eval_c_test): Remove not-null check for expr.
1559 * read-rtl.c (apply_iterators): Initialize condition with "" instead
1562 2012-11-30 Kai Tietz <ktietz@redhat.com>
1564 * config/i386/host-mingw32.c (va_granularity): Make none-const.
1565 (mingw32_gt_pch_alloc_granularity): Return OS' allocation granularity.
1566 (mingw32_gt_pch_use_address): Retry mapping of used address
1567 as multiple instances might interfer.
1569 * config/i386/mingw32.h (SHARED_LIBGCC_SPEC): Synchronize with
1572 2012-11-29 Eric Botcazou <ebotcazou@adacore.com>
1575 * calls.c (emit_library_call_value_1): Mark as no-nonlocal if no-throw.
1577 2012-11-29 Vladimir Makarov <vmakarov@redhat.com>
1580 * lra-int.h (lra_new_regno_start): New external.
1581 * lra.c (lra_new_regno_start): New global.
1582 (lra): Set up lra_new_regno_start.
1583 * lra-constraints.c (match_reload): Sync values only for original
1586 2012-11-29 Kai Tietz <ktietz@redhat.com>
1589 * prefix.c (lookup_key): Replace xmalloc/xrealloc
1590 use by XNEWVEC/XRESIZEVEC.
1592 2012-11-29 Richard Earnshaw <rearnsha@arm.com>
1595 * config/arm/neon.md (neon_vtrn<mode>_internal): Split into expand
1596 and insn patterns. Re-order insn arguments to tie inputs to outputs.
1597 (neon_vzip<mode>_internal): Likewise.
1598 (neon_vuzp<mode>_internal): Likewise.
1600 2012-11-29 Marc Glisse <marc.glisse@inria.fr>
1603 * fold-const.c (fold): Replace a CONSTRUCTOR with a VECTOR_CST.
1605 2012-11-29 Richard Biener <rguenther@suse.de>
1607 * tree-ssa-pre.c (get_expr_value_id): Do not add expr
1608 to the set of value expressions here.
1609 (add_to_exp_gen, make_values_for_phi): Fold into ...
1610 (compute_avail): ... here, and avoid useless work. Dump
1611 avail sets in processing order.
1612 (do_pre): Do not dump avail sets here.
1614 2012-11-29 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1617 * config/arm/arm.md (thumb2_pool_range, pool_range): Add comment on
1619 (thumb1_extendhisi2): Reduce Thumb pool range.
1620 (arm_movdi): Likewise.
1621 (thumb1_movdi_insn): Likewise.
1622 (thumb1_movsi_insn): Likewise.
1623 (pic_load_addr_unified): Likewise.
1624 (pic_load_addr_32bit): Likewise.
1625 (pic_load_addr_thumb1): Likewise.
1626 (thumb1_movhf): Likewise.
1627 (arm_movsf_soft_insn): Likewise.
1628 (thumb1_movsf_soft_insn): Likewise.
1629 (movdf_soft_insn): Likewise.
1630 (thumb1_movdf_soft_insn): Likewise.
1631 * config/arm/neon.md (*neon_mov<mode>): Likewise.
1632 (*neon_mov<mode>): Likwise.
1633 * config/arm/thumb2.md: (*thumb2_movsi_insn): Likewise.
1634 (*thumb2_movhi_insn): Likewise.
1635 (*thumb2_extendqisi_v6): Likewise.
1636 (*thumb2_zero_extendqisi_v6): Likewise.
1637 (*thumb2_zero_extendqisi2_v6): Likewise.
1638 * config/arm/vfp.md: (*thumb2_movsi_vfp): Likewise.
1639 (*movdi_vfp): Likewise.
1640 (*movdi_vfp_cortexa8): Likewise.
1641 (*thumb2_movsf_vfp): Likewise.
1642 (*thumb2_movdf_vfp): Likewise.
1644 2012-11-29 Kai Tietz <ktietz@redhat.com>
1647 * config/i386/i386.c (get_scratch_register_on_entry): Handle
1648 thiscall-convention.
1649 (split_stack_prologue_scratch_regno): Likewise.
1650 (ix86_static_chain): Likewise.
1651 (x86_output_mi_thunk): Likewise.
1653 2012-11-29 Marek Polacek <polacek@redhat.com>
1655 * cprop.c (bypass_block): Improve debug message.
1657 2012-11-29 Oleg Raikhman <oleg@adapteva.com>
1659 * config/epiphany/epiphany.h (FIXED_REGISTERS, CALL_USED_REGISTERS):
1660 Make r40..r43 call-used.
1661 (REG_ALLOC_ORDER): Sort r40..r43 into the call-used registers.
1663 2012-11-29 Joern Rennecke <joern.rennecke@embecosm.com>
1665 * config/epiphany/predicates.md (addsub_operator): New predicate.
1666 * config/epiphany/epiphany-sched.md (sched_use_fpu): New attribute.
1667 * config/epiphany/epiphany.md (isub_i+1): New peephole2.
1668 * config/epiphany/epiphany-protos.h (get_attr_sched_use_fpu): Declare.
1670 * config/epiphany/epiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define.
1671 (EXTRA_SPECS, DRIVER_SELF_SPECS): Likewise.
1672 * config/epiphany/t-epiphany (SPECS): Set.
1675 * config/epiphany/epiphany.md (isub_i+1): Work around generator bug.
1677 * config/epiphany/epiphany.c (epiphany_adjust_cost): Use
1678 reg_overlap_mentioned_p.
1680 2012-11-28 Jakub Jelinek <jakub@redhat.com>
1686 * cselib.c (cselib_process_insn): If cselib_preserve_constants,
1687 don't reset table and exit early on volatile insns and setjmp.
1688 Reset table afterwards on setjmp.
1690 2012-11-28 Andrew Pinski <apinski@cavium.com>
1693 * Makefile.in (${QMTEST_DIR}/context): Use xg++ instead of g++.
1695 2012-11-28 Richard Sandiford <rdsandiford@googlemail.com>
1697 PR rtl-optimization/55052
1698 * simplify-rtx.c (simplify_subreg): Restore SCALAR_INT_MODE_P check.
1700 2012-11-28 David Edelsohn <dje.gcc@gmail.com>
1702 * target.def (use_blocks_for_decl_p): New hook.
1703 * varasm.c (use_blocks_for_decl_p): Apply hook as final condition.
1704 * doc/tm.texi.in (USE_BLOCKS_FOR_DECL_P): New description.
1705 * doc/tm.texi: Regenerated.
1707 2012-11-28 Richard Sandiford <rdsandiford@googlemail.com>
1710 * expmed.c (simple_mem_bitfield_p): New function, extracted from
1711 store_bit_field_1 and extract_bit_field_1. Use GET_MODE_ALIGNMENT
1712 rather than bitsize when checking the alignment.
1713 (store_bit_field_1, extract_bit_field_1): Call it.
1714 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
1715 Don't limit ALIGN_. Assume that memory is mapped in chunks of at
1716 least word size, regardless of BIGGEST_ALIGNMENT.
1717 (bit_field_mode_iterator::get_mode): Use GET_MODE_ALIGNMENT rather
1718 than unit when checking the alignment.
1719 (get_best_mode): Use GET_MODE_ALIGNMENT.
1721 2012-11-28 Vladimir Makarov <vmakarov@redhat.com>
1723 PR rtl-optimization/55512
1724 * lra-assigns.c (assign_by_spills): Assigned arbitrary hard regs
1725 to failed reload pseudos instead of changing asm pattern.
1726 * lra-constraints.c (MAX_CONSTRAINT_ITERATION_NUMBER): Increase value.
1728 2012-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1731 * dse.c (rest_of_handle_dse): Remove superfluous clearing.
1733 2012-11-28 Joern Rennecke <joern.rennecke@embecosm.com>
1735 * config/epiphany/predicates.md (move_double_src_operand):
1736 Check that misaligned addresses are offsettable.
1737 (move_dest_operand): Likewise.
1738 * config/epiphany/epiphany.c (REG_OK_FOR_BASE_P): Don't force a
1739 misaligned stack address to reg+index.
1741 * config/epiphany/epiphany.opt (mfp-iarith): New option.
1742 * config/epiphany/epiphgany.md (addsi3): Check for TARGET_FP_IARITH.
1743 (subsi3, iadd, isub): Rename to ..
1744 (subsi3_i, iadd_i, isub_i): .. This.
1745 (subsi3, iadd, isub): New define_expands.
1747 * config/epiphany/epiphgany.md (attribute type): Add v2fp.
1748 (attribute fp_mode): Test for v2fp.
1749 (<float_operation:insn_opname>v2sf3_i): Change type to v2fp.
1750 * config/epiphany/epiphany-sched.md (fp_arith_nearest,
1751 fp_arith_trunc): Combine to ..
1752 (fp_arith): .. this.
1753 (v2fp_arith): New insn reservation.
1755 * config/epiphany/epiphgany.md (maddsi_combine): Fix output pattern.
1757 2012-11-28 Oleg Raikhman <oleg@adapteva.com>
1759 * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
1761 2012-11-28 Joern Rennecke <joern.rennecke@embecosm.com>
1763 * config/epiphany/epiphany.h (HARD_REGNO_RENAME_OK): Define.
1764 * config/epiphany/epiphany-protos.h (epiphany_regno_rename_ok):
1766 * config/epiphany/epiphany.c (epiphany_regno_rename_ok): New function.
1768 * config/epiphany/epiphany.md (mov<mode>, *mov<mode>_insn): Check
1769 for misaligned memory operands.
1770 * config/epiphany/predicates.md (misaligned_operand): New predicate.
1772 * config/epiphany/epiphany.opt (-may-round-for-trunc): New option.
1773 * config/epiphany/epiphany.md (*fix_truncsfsi2_i): Take it
1776 2012-11-28 Richard Biener <rguenther@suse.de>
1778 PR tree-optimization/54547
1779 * tree-vrp.c (set_and_canonicalize_value_range): Handle
1780 1-bit anti-ranges explicitely.
1781 (extract_range_from_assert): Properly canonicalize all
1784 2012-11-28 Eric Botcazou <ebotcazou@adacore.com>
1786 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not clear TREE_OVERFLOW
1787 on overflowed zeroes, except in one specific case.
1789 2012-11-28 Marc Glisse <marc.glisse@inria.fr>
1792 * fold-const.c (fold_ternary_loc) [BIT_FIELD_REF]: Handle
1793 CONSTRUCTOR with vector elements.
1794 * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle CONSTRUCTOR
1797 2012-11-28 Richard Biener <rguenther@suse.de>
1800 * gimple.h (gimplify_self_mod_expr): Declare.
1801 * gimplify.c (gimplify_self_mod_expr): Export. Take a different
1802 type for performing the arithmetic in.
1803 (gimplify_expr): Adjust.
1804 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Strip
1805 sign conversions we can re-apply after adjusting the IV.
1807 2012-11-28 Steven Bosscher <steven@gcc.gnu.org>
1809 PR rtl-optimization/55006
1810 * loop-unroll.c (struct iv_to_split): Add new 'orig_var' member.
1811 (analyze_iv_to_split_insn): Record it.
1812 (maybe_strip_eq_note_for_split_iv): New function to remove REG_EQUAL
1813 notes that refer to IVs that are being split.
1814 (apply_opt_in_copies): Use maybe_strip_eq_note_for_split_iv. Twice.
1815 Use FOR_BB_INSNS_SAFE.
1817 2012-11-27 Steven Bosscher <steven@gcc.gnu.org>
1819 * rtl.h (debug_bb_n_slim, debug_bb_slim, debug_insn_slim): Remove
1821 (debug_rtl_slim): Rename to dump_rtl_slim.
1822 (print_value_slim): Rename to dump_value_slim.
1823 * ira.c (ira_update_equiv_info_by_shuffle_insn): Update
1824 print_value_slim user.
1825 * lra.c (lra_process_new_insns): Use dump_insn_slim to dump single
1826 insns. Use dump_rtl_slim for insn chains.
1827 * lra-constraints.c (get_reload_reg): Update print_value_slim user.
1828 (process_addr_reg): Likewise.
1829 (equiv_address_substitution): Likewise.
1830 (inherit_reload_reg): Likewise. Use dump_insn_slim to dump single
1832 (check_and_process_move): Likewise.
1833 (lra_constraints): Likewise.
1834 (split_reg): Likewise.
1835 (update_ebb_live_info): Likewise.
1836 (remove_inheritance_pseudos): Likewise.
1837 * sched-vis.c: Don't include sched-int.h.
1838 Remove #ifdef INSN_SCHEDULING tests.
1839 (print_value_slim): Rename to dump_value_slim. Simplify a few
1840 cases using GET_RTX_NAME.
1841 (print_pattern): Do not handle UNSPEC and UNSPECV here, explain why.
1842 (print_insn): Reorganize code to be independent of INSN_SCHEDULING.
1843 Always print CALL_INSN patterns. Harmonize INSN_UID dumping template.
1844 Handle NOTE_INSN_CALL_ARG_LOCATION.
1845 (dump_rtl_slim): Copied from debug_rtl_slim.
1846 (debug_rtl_slim): Wrapper around dump_rtl_slim to stderr.
1847 * haifa-sched.c (schedule_insn): Update print_insn user.
1849 2012-11-27 Vladimir Makarov <vmakarov@redhat.com>
1851 PR rtl-optimization/55458
1852 * lra-assigns.c: Include rtl-error.h.
1853 (assign_by_spills): Report about asm impossible constraints.
1854 * Makefile.in (lra-assigns.c): Add $(RTL_ERROR_H).
1856 2012-11-27 Paolo Bonzini <pbonzini@redhat.com>
1858 PR rtl-optimization/55489
1859 * gcse.c (compute_transp): Precompute a canonical version
1860 of XEXP (x, 0), and pass it to canon_true_dependence.
1862 * alias.c (init_alias_analysis): Fix allocation of reg_known_value.
1864 2012-11-27 Diego Novillo <dnovillo@google.com>
1866 * vec.h: Replace 'class vec' with 'struct vec' everywhere.
1867 (ggc_internal_cleared_alloc_stat): Remove.
1868 (va_gc::reserve): Add PASS_MEM_STAT to ggc_realloc_stat call.
1869 (va_stack::reserve): Add PASS_MEM_STAT to va_heap::reserve call.
1870 (vec<T, A, vl_embed>::copy): Replace ALONE_MEM_STAT_DECL with
1871 ALONE_CXX_MEM_STAT_INFO.
1872 (vec_safe_reserve): Replace MEM_STAT_DECL with CXX_MEM_STAT_INFO.
1873 (vec_safe_reserve_exact): Likewise.
1874 (vec_alloc): Likewise.
1875 (vec_safe_grow): Likewise.
1876 (vec_safe_grow_cleared): Likewise.
1877 (vec_safe_push): Likewise.
1878 (vec_safe_insert): Likewise.
1879 (vec_safe_splice): Likewise.
1880 (vec_alloc): Likewise.
1881 (vec_check_alloc): Likewise.
1883 2012-11-27 Marc Glisse <marc.glisse@inria.fr>
1885 * tree-cfg.c (verify_gimple_comparison): Verify that vector
1886 comparison returns a vector.
1888 2012-11-27 Meador Inge <meadori@codesourcery.com>
1890 * collect2.c (main): Call find_file_set_debug.
1891 (find_a_find, add_prefix, prefix_from_env, prefix_from_string):
1893 * file-find.c (New file): ... here and ...
1894 * file-find.h (New file): ... here.
1895 * gcc-ar.c (standard_exec_prefix): New variable.
1896 (standard_libexec_prefix): Ditto.
1897 (tooldir_base_prefix) Ditto.
1898 (self_exec_prefix): Ditto.
1899 (self_libexec_prefix): Ditto.
1900 (self_tooldir_prefix): Ditto.
1901 (target_version): Ditto.
1903 (target_path): Ditto.
1904 (setup_prefixes): New function.
1905 (main): Rework how wrapped programs are found.
1906 * Makefile.in (OBJS-libcommon-target): Add file-find.o.
1907 (AR_OBJS): New variable.
1908 (gcc-ar$(exeext)): Add dependency on $(AR_OBJS).
1909 (gcc-nm$(exeext)): Ditto.
1910 (gcc-ranlib(exeext)): Ditto.
1911 (COLLECT2_OBJS): Add file-find.o.
1912 (collect2.o): Add file-find.h prerequisite.
1913 (file-find.o): New rule.
1915 2010-11-27 Dehao Chen <dehao@google.com>
1917 * ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.
1918 * emit-rtl.c (last_location): Remove unused variable.
1920 2012-11-27 Uros Bizjak <ubizjak@gmail.com>
1922 * config/i386/i386.md
1923 (*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Remove
1926 2012-11-27 Dehao Chen <dehao@google.com>
1928 * cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly.
1929 (cfg_layout_merge_blocks): Likewise.
1931 2012-11-27 Jakub Jelinek <jakub@redhat.com>
1933 * passes.c (init_optimization_passes): Add pass_asan and pass_tsan
1934 to -Og optimization passes.
1936 2012-11-27 H.J. Lu <hongjiu.lu@intel.com>
1937 Markus Trippelsdorf <markus@trippelsdorf.de>
1940 * lto-opts.c (lto_write_options): Also handle
1941 OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and
1942 OPT_SPECIAL_program_name.
1945 * lto-wrapper.c (merge_and_complain): Handle
1946 OPT_SPECIAL_unknown, OPT_SPECIAL_ignore,
1947 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
1949 2012-11-27 Jakub Jelinek <jakub@redhat.com>
1952 * function.c (instantiate_virtual_regs_in_insn): Don't delete invalid
1953 asm gotos, instead just clear their template and inputs.
1955 PR tree-optimization/55110
1956 * tree-vect-loop.c (vectorizable_reduction): Don't assert
1957 that STMT_VINFO_RELATED_STMT of orig_stmt is stmt.
1959 2012-11-27 Richard Biener <rguenther@suse.de>
1961 * gimple-fold.c (fold_stmt_1): Remove unnecessary code.
1963 2012-11-27 Bin Cheng <bin.cheng@arm.com>
1965 * config/arm/arm.c (thumb1_reorg): New function.
1966 (arm_reorg): Call thumb1_reorg.
1967 (thumb1_final_prescan_insn): Record src operand in thumb1_cc_op0.
1968 * config/arm/arm.md : Remove peephole2 patterns which rewrite move
1969 into subtract of ZERO.
1971 2012-11-27 Richard Biener <rguenther@suse.de>
1974 * gimple-fold.c (gimplify_and_update_call_from_tree): Replace
1975 stmt with a NOP instead of removing it.
1977 2012-11-27 Steven Bosscher <steven@gcc.gnu.org>
1979 * loop-invariant.c (check_invariant_table_size): Take sizeof of
1982 * reorg.c (resource_conflicts_p): Use hard_reg_set_intersect_p.
1983 (rare_destination): Remove.
1984 (mostly_true_jump): Simplify. Base result on REG_BR_PROP notes if
1985 available, otherwise assume branches are not taken.
1986 (fill_eager_delay_slots): Update mostly_true_jump call.
1987 (relax_delay_slots): Likewise.
1989 2012-11-26 Eric Botcazou <ebotcazou@adacore.com>
1991 * reorg.c (redundant_insn): Do not handle DEBUG_INSNs.
1993 2012-11-26 Vladimir Makarov <vmakarov@redhat.com>
1996 * lra-constraints.c (in_class_p): Check reg class contents too.
1998 2012-11-26 James Greenhalgh <james.greenhalgh@arm.com>
2000 * config/aarch64/aarch64-builtins.c (aarch64_builtin_decls): New.
2001 (aarch64_init_simd_builtins): Store declaration after builtin
2003 (aarch64_builtin_decl): New.
2004 * config/aarch64/aarch64-protos.h (aarch64_builtin_decl): New.
2005 * config/aarch64/aarch64.c (TARGET_BUILTIN_DECL): Define.
2007 2012-11-26 Steven Bosscher <steven@gcc.gnu.org>
2009 * doc/invoke.texi: Remove -dv documentation. Fix up graph dump related
2010 documentation. Document the '-graph' dump option. Complete the '-slim'
2011 dump option documentation.
2013 * common.opt (Variable graph_dump_format): Remove.
2014 * flag-types.h (enum graph_dump_types): Remove.
2015 * flags.h (dump_for_graph): Remove.
2016 * opts.c (decode_d_option): Remove -dv handling.
2017 * sched-int.h (print_insn, print_pattern, print_value): Move prototypes
2019 * rtl.h: ...to here. Add note that these functions ought to be in
2021 * sched-vis.c (print_insn): Add detailed dump for insn notes.
2022 * print-rtl.c (dump_for_graph): Remove.
2023 (print_rtx): Remove dump_for_graph related code.
2024 * graph.c: Almost complete re-write to dump DOT (GraphViz) dumps
2025 instead of VCG dumps.
2026 * graph.h (print_rtl_graph_with_bb): Update prototype.
2027 * passes.c (finish_optimization_passes): Fix profile dump finishing.
2028 Unconditionally loop over graph dumps to finalize.
2029 (execute_function_dump): Split code to dump graphs to separate block.
2030 (execute_one_pass): Don't set TDF_GRAPH here, let the dump option
2031 decoders do their job.
2033 * ddg.c (vcg_print_ddg): Make it a DEBUG_FUNCTION.
2034 * toplev.c: Don't include graph.h.
2035 * tree-optimize.c: Don't include graph.h.
2037 2012-11-26 Marek Polacek <polacek@redhat.com>
2039 * cprop.c (hash_set): Remove variable. Use regno variable directly.
2041 2012-11-26 Eric Botcazou <ebotcazou@adacore.com>
2043 * tree.h (DECL_RESTRICTED_P): Delete.
2044 (DECL_READ_P): Add comment.
2045 (DECL_NONSHAREABLE): Likewise.
2046 (TYPE_NO_FORCE_BLK): Fix comment.
2047 (struct tree_decl_common): Remove decl_restricted_flag, add decl_flag_3.
2048 * tree-emutls.c (new_emutls_decl): Do not deal with DECL_RESTRICTED_P.
2049 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
2050 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2052 * alias.c (nonoverlapping_component_refs_p): Fix thinko.
2054 2012-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2056 * doc/sourcebuild.texi: Document arm_v8_vfp_ok.
2058 2012-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2060 * config/arm/arm.h (TARGET_FPU_ARMV8): New macro.
2061 * config/arm/arm.md (UNSPEC_VRINTZ, UNSPEC_VRINTP, UNSPEC_VRINTM)
2062 (UNSPEC_VRINTR, UNSPEC_VRINTX, UNSPEC_VRINTA): New unspecs.
2063 (f_rints, f_rintd): New types.
2064 * config/arm/iterators.md (VRINT): New int iterator.
2065 (F_fma_type): Remove.
2066 (vfp_type): New mode attribute.
2067 (vfp_double_cond): Likewise.
2068 (vrint_pattern, vrint_variant, vrint_predicable): New int attribute.
2069 * config/arm/vfp.md (fma<SDF:mode>4): Use vfp_type iterator
2070 instead of F_fma_type.
2071 (*fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4): Likewise.
2072 (<vrint_pattern><SDF:mode>2): New pattern.
2074 2012-11-26 Eric Botcazou <ebotcazou@adacore.com>
2076 * fold-const.c (const_binop): Adjust comment.
2077 (extract_muldiv_1): Likewise.
2078 (fold_comparison): Likewise.
2079 * stor-layout.c (place_field): Fix typo.
2080 * tree.c (double_int_fits_to_tree_p): Remove obsolete comment.
2081 (force_fit_type_double): Likewise. Fix long line.
2083 2012-11-26 Greta Yorsh <Greta.Yorsh@arm.com>
2085 * config/arm/arm.h (TARGET_LDRD): Reject Thumb1 targets.
2087 2012-11-26 Matthias Klose <doko@ubuntu.com>
2089 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix unbalanced
2092 2012-11-26 Jakub Jelinek <jakub@redhat.com>
2094 PR tree-optimization/54471
2095 * tree-vrp.c (extract_range_from_binary_expr_1): For MULT_EXPR,
2096 don't canonicalize range if min2 is zero.
2098 2012-11-26 Hans-Peter Nilsson <hp@bitrange.com>
2101 * builtins.c (expand_builtin_setjmp_receiver): Update comment
2102 regarding purpose of blockage.
2103 * emit-rtl.c [!HAVE_blockage] (gen_blockage): Similarly for
2105 * rtlanal.c (volatile_insn_p): Ditto.
2106 * doc/md.texi (blockage): Update similarly. Change wording to
2107 require one of two forms, rather than implying a wider choice.
2108 * cse.c (cse_insn): Where checking for blocking insns, use
2109 volatile_insn_p instead of manual check for volatile ASM.
2110 * dse.c (scan_insn): Ditto.
2111 * cselib.c (cselib_process_insn): Ditto.
2113 2012-11-25 Uros Bizjak <ubizjak@gmail.com>
2115 * config/i386/sse.md (<sse>_loadu<ssemodesuffix><avxsizesuffix>):
2116 Do not depend on TARGET_SSE_TYPELESS_STORES.
2117 (<sse2>_loaddqu<avxsizesuffix>): Ditto.
2118 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Fix handling of
2119 TARGET_SSE_TYPELESS_STORES.
2120 (<sse2>_storedqu<avxsizesuffix>): Ditto.
2122 2012-11-25 Steven Bosscher <steven@gcc.gnu.org>
2124 * doc/tm.texi.in (DELAY_SLOTS_FOR_EPILOGUE): Remove documentation.
2125 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
2126 * doc/tm.texi: Regenerate.
2127 * reorg.c (fill_simple_delay_slots): Remove code conditional on
2128 DELAY_SLOTS_FOR_EPILOGUE being defined.
2129 (make_return_insns, dbr_schedule): Likewise.
2130 * system.h (DELAY_SLOTS_FOR_EPILOGUE): Poison.
2131 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
2133 2012-11-24 Jack Howarth <howarth@bromo.med.uc.edu>
2135 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fsanitize=address.
2137 2012-11-24 Matthias Klose <doko@ubuntu.com>
2139 * configure.ac (multiarch): Use $enableval instead of $withval.
2140 * configure: Regenerate.
2141 * config/i386/t-kfreebsd (MULTILIB_OSDIRNAMES): Filter out x32.
2142 * gcc/config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use
2143 x86_64-linux-gnux32 as multiarch name for x32.
2145 2012-11-23 Tobias Burnus <burnus@net-b.de>
2147 * doc/invoke.texi (-fsanitize=address): Remove obsolete remark.
2149 2012-11-23 Jakub Jelinek <jakub@redhat.com>
2152 * Makefile.in (gimple-low.o): Depend on langhooks.h.
2153 * gimple-low.c: Include langhooks.c.
2154 (block_may_fallthru): Handle TARGET_EXPR and ERROR_MARK,
2155 by default call lang_hooks.block_may_fallthru.
2156 * langhooks.h (struct lang_hooks): Add block_may_fallthru langhook.
2157 * langhooks-def.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define.
2158 (LANG_HOOKS_INITIALIZER): Use it.
2160 2012-11-23 Jan Hubicka <jh@suse.cz>
2162 * i386-c.c (ix86_target_macros_internal): Update handling of core
2164 * i386.c (DUMMY_STRINGOP_ALGS): Update
2166 (core_cost): Copy from generic64_cost; fix stringop descriptors.
2167 (m_CORE2_32, m_CORE2_64, m_COREI7_32, m_COREI7_64, m_CORE2I7_32,
2168 m_CORE2I7_64): Remove.
2169 (m_CORE2, m_COREI7, m_CORE2I7): Update.
2170 (initial_ix86_tune_features): Update.
2171 (processor_target): Update.
2172 (ix86_option_override_internal): Update.
2173 (ix86_option_override_internal): Remove PROCESSOR_CORE2_64,
2174 PROCESSOR_COREI7_64 special cases.
2175 (decide_alg): Add noalign parameter; set it.
2176 (ix86_expand_movmem, ix86_expand_setmem): Update noalign handling.
2177 (ix86_issue_rate): Update.
2178 (ia32_multipass_dfa_lookahead): Update.
2179 (ix86_sched_init_global): Update.
2180 (get_builtin_code_for_version): Update.
2181 * i386.h (stringop_strategy): Add noalign flag.
2182 (TARGET_CORE2_32, TARGET_CORE2_64, TARGET_COREI7_32, TARGET_COREI7_64):
2184 (TARGET_CORE2, TARGET_COREI7): New.
2185 (enum processor_type): Remove PROCESSOR_CORE2_32, PROCESSOR_CORE2_64,
2186 PROCESSOR_COREI7_32, PROCESSOR_COREI7_64; add PROCESSOR_CORE2,
2189 2012-11-23 Eric Botcazou <ebotcazou@adacore.com>
2191 PR rtl-optimization/55388
2192 * alias.c (nonoverlapping_component_refs_p): Handle bitfields.
2193 * emit-rtl.c (adjust_address_1): Deal with VOIDmode early.
2194 * expmed.c (store_bit_field): Turn the call to adjust_address
2195 into a call to adjust_bitfield_address_size.
2197 2012-11-23 Vladimir Makarov <vmakarov@redhat.com>
2199 * lra.c (lra): Move init_reg_info and expand_reg_info calls before
2200 init_insn_recog_data.
2202 2012-11-23 Jakub Jelinek <jakub@redhat.com>
2204 * tsan.c: Fix up comment formatting.
2205 (instrument_gimple): Ignore gimple_clobber_p stmts.
2206 (pass_tsan, pass_tsan_O0): Remove TODO_update_address_taken
2207 from todo_flags_finish.
2210 * asan.c (gate_asan): Don't instrument functions with
2211 no_address_safety_analysis attribute.
2212 (gate_asan_O0): Use !optimize && gate_asan ().
2213 * doc/extend.texi (no_address_safety_analysis): Document new
2216 2012-11-22 Teresa Johnson <tejohnson@google.com>
2217 Jan Hubicka <jh@suse.cz>
2219 * predict.c (maybe_hot_count_p): Use threshold from profiled working
2220 set instead of hard limit.
2221 (cgraph_maybe_hot_edge_p): Invoke maybe_hot_count_p() instead of
2222 directly checking limit.
2223 * params.def (HOT_BB_COUNT_FRACTION): Remove.
2224 (HOT_BB_COUNT_WS_PERMILLE): New parameter.
2225 * doc/invoke.texi (hot-bb-count-fraction): Remove.
2226 (hot-bb-count-ws-permille): Document.
2228 2012-11-22 Vladimir Makarov <vmakarov@redhat.com>
2231 * lra.c: Move #include "hard-reg-set.h" before #include "rtl.h".
2232 (new_insn_reg): Update biggest_mode.
2233 (collect_non_operand_hard_regs): Check eliminable regs too.
2234 (initialize_lra_reg_info_element): Initialize biggest_mode.
2235 (add_regs_to_insn_regno_info): Ignore non-allocatable
2236 non-eliminable hard regs.
2237 (lra.c): Move setting lra_no_alloc_regs before
2238 init_insn_recog_data.
2239 * lra-constraints.c (simplify_operand_subreg): Add a comment.
2240 (lra_constraints): Ignore equivalent memory of
2241 regs occuring in paradoxical subregs.
2242 * lra-lives.c (lra_create_live_ranges): Add a comment.
2244 2012-11-22 Dmitry Vyukov <dvyukov@google.com>
2245 Wei Mi <wmi@google.com>
2247 * builtins.def (DEF_SANITIZER_BUILTIN): Define tsan builtins.
2248 * sanitizer.def: Ditto.
2249 * Makefile.in (tsan.o): Add tsan.o target.
2250 (BUILTINS_DEF): Add sanitizer.def.
2251 * passes.c (init_optimization_passes): Add tsan passes.
2252 * tree-pass.h (register_pass_info): Ditto.
2253 * toplev.c (compile_file): Ditto.
2254 * doc/invoke.texi: Document tsan related options.
2255 * gcc.c (LINK_COMMAND_SPEC): Add LIBTSAN_SPEC in link command if
2257 * tsan.c: New file about tsan.
2259 * common.opt: Add -fsanitize=thread.
2261 2012-11-22 Uros Bizjak <ubizjak@gmail.com>
2263 * doc/md.texi (RTL Templates Transformation): Use @pxref for
2264 cross-reference in parentheses.
2266 2012-11-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
2268 * doc/md.texi (AArch64 family): Remove Utf.
2270 2012-11-22 Uros Bizjak <ubizjak@gmail.com>
2272 * config/i386/i386.md (*jcc<mode>_0_i387): Macroize insn
2273 from *fp_jcc_3_387 using X87MODEF mode iterator.
2274 (*jcc<mode>_0_r_i387): New.
2275 (*jccxf_i387): Ditto.
2276 (*jccxf_r_i387): Ditto.
2277 (*jcc<mode>_i387): Macroize insn from *fp_jcc_1_387 using
2278 MODEF mode iterator.
2279 (*jcc<mode>_r_i387): Macroize insn from *fp_jcc_1r_387 using
2280 MODEF mode iterator.
2281 (*jccu<mode>_i387): Macroize insn from *fp_jcc_2_387 using
2282 X87MODEF mode iterator.
2283 (*jccu<mode>_r_i387): Macroize insn from *fp_jcc_2r_387 using
2284 X87MODEF mode iterator.
2285 (*jcc{,u}<mode>_i387 splitters): Macroize splitters using
2286 X87MODEF mode iterator.
2287 (*jcc<X87MODEF:mode>_<SWI24:mode>_i387): Macroize insn
2288 from *fp_jcc_4_<mode>_387 using X87MODEF mode iterator.
2289 (*jcc<X87MODEF:mode>_<SWI24:mode>_r_i387): New.
2290 (*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Macroize
2291 splitters using X87MODEF and SWI24 mode iterators.
2293 2012-11-22 Uros Bizjak <ubizjak@gmail.com>
2295 * config/i386/i386.md (FPCMP): New mode iterator.
2296 (unord): New mode attribute.
2297 (*cmp<mode>_0_i387): Macroize insn from *cmpfp_0
2298 using X87MODEF mode iterator.
2299 (*cmp<mode>_0_cc_i387): Macroize insn from *cmpfp_0_cc using
2300 X87MODEF mode iterator.
2301 (*cmpxf_i387): Rename from *cmpfp_xf.
2302 (*cmpxf_cc_i387): Rename from *cmpfp_xf_cc.
2303 (*cmp<mode>_i387): Rename from *cmpfp_<mode>.
2304 (*cmp<mode>_cc_i387): Rename from *cmpfp_<mode>_cc.
2305 (*cmpu<mode>_i387): Macroize insn from *cmpfp_u using X87MODEF
2307 (*cmpu<mode>_cc_i387): Macroize insn from *cmpfp_u_cc using X87MODEF
2309 (*cmp<X87MODEF:mode>_<SWI24:mode>_i387): Macroize_insn from
2310 *cmpfp_<mode> using X87MODEF mode iterator.
2311 (*cmp<X87MODEF:mode>_<SWI24:mode>_cc_i387): Macroize_insn from
2312 *cmpfp_<mode>_cc using X87MODEF mode iterator.
2313 (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Macroize insn from
2314 *cmpfp_i{,u}_mixed using FPCMP and MODEF mode iterators.
2315 (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Macroize insn from
2316 *cmpfp_i{,u}_sse using FPCMP and MODEF mode iterators.
2317 (*cmpi<CCFPCMP:unord><X87MODEF:mode>_i387): Macroize insn from
2318 *cmpfp_i{,u}_387 using FPCMP and X87MODEF mode iterators.
2320 2012-11-22 Ian Bolton <ian.bolton@arm.com>
2322 * config/aarch64/aarch64.md (bswaphi2): New pattern.
2324 2012-11-22 H.J. Lu <hongjiu.lu@intel.com>
2327 * gcc.c (LINK_COMMAND_SPEC): Issue an error for -static with
2330 2012-11-22 H.J. Lu <hongjiu.lu@intel.com>
2332 * gcc.c (ADD_STATIC_LIBASAN_LIBS): New macro. Defined
2333 with STATIC_LIBASAN_LIBS.
2334 (LIBASAN_SPEC): Add STATIC_LIBASAN_LIBS.
2335 * config/gnu-user.h (STATIC_LIBASAN_LIBS): New macro.
2337 2012-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2339 * config/arm/arm.md (*arm_abssi2): Define predicable attribute.
2340 (*arm_neg_abssi2): Likewise.
2341 * config/arm/thumb2.md (*thumb2_abssi2): Likewise.
2342 (*thumb2_neg_abssi2): Likewise.
2344 2012-11-22 Jakub Jelinek <jakub@redhat.com>
2346 * ree.c (struct ext_modified): Add ATTRIBUTE_PACKED.
2348 2012-11-22 Georg-Johann Lay <avr@gjlay.de>
2350 Adjust decimal point of signed accum mode to GCC default.
2353 * config/avr/avr-modes.def (HA, SA, DA): Remove mode adjustments.
2354 (TA): Move decimal point one bit to the right.
2355 * config/avr/avr.c (avr_out_fract): Rewrite.
2357 2012-11-21 Matthias Klose <doko@ubuntu.com>
2359 * config/alpha/t-linux: New file; define MULTIARCH_DIRNAME.
2360 * config.gcc <alpha*-*-linux*> (tmake_file): Include alpha/t-linux.
2362 2012-11-21 Matthias Klose <doko@ubuntu.com>
2364 * config/m68k/t-linux: Define MULTIARCH_DIRNAME.
2366 2012-11-21 Matthias Klose <doko@ubuntu.com>
2368 * config/ia64/t-linux: New file; define MULTIARCH_DIRNAME.
2369 * config.gcc <ia64*-*-linux*> (tmake_file): Include ia64/t-linux.
2371 2012-11-21 Vladimir Makarov <vmakarov@redhat.com>
2373 PR rtl-optimization/55414
2374 * lra-constraints.c (Index): New function.
2375 (lra_constraints): Check dead equiv init insns.
2377 2012-11-21 Richard Henderson <rth@redhat.com>
2379 * config/alpha/alpha.md (extvmisaligndi): Rename from extv; update
2380 mode of operand 1; remove ancient extract_bit_field workaround.
2381 (insvmisaligndi): Rename from insv and update similarly.
2382 (extzvmisaligndi): Rename from extzv and update similarly; split out...
2383 (extzvdi): New expander.
2385 2012-11-21 H.J. Lu <hongjiu.lu@intel.com>
2387 * doc/cpp.texi: Document __SANITIZE_ADDRESS__.
2389 2012-11-21 H.J. Lu <hongjiu.lu@intel.com>
2392 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2393 Define __SANITIZE_ADDRESS__ for flag_asan.
2395 2012-11-21 Wei Mi <wmi@google.com>
2397 * common.opt: Change faddress-sanitizer to fsanitize=address.
2398 * toplev.c (process_options): Likewise.
2399 * gcc.c (LINK_COMMAND_SPEC): Likewise.
2400 * testsuite/lib/asan-dg.exp
2401 (check_effective_target_faddress_sanitizer): Likewise.
2402 (asan_init): Likewise.
2403 * doc/invoke.texi (-fsanitize=address): Document.
2405 2012-11-21 Martin Jambor <mjambor@suse.cz>
2407 * ipa-prop.h (struct ipa_node_params): Rename clone_for_all_contexts to
2408 do_clone_for_all_contexts. Update all uses. New flag
2409 is_all_contexts_clone.
2410 * ipa-cp.c (cgraph_edge_brings_value_p): Also consider the case when cs
2411 leads to the clone for all contexts.
2412 (perhaps_add_new_callers): Likewise.
2413 (decide_whether_version_node): Remove bogus !plats->aggs test. Set
2414 is_all_contexts_clone when cloning for all contexts.
2416 2012-11-21 Martin Jambor <mjambor@suse.cz>
2418 PR tree-optimization/55260
2419 * ipa-cp.c (intersect_aggregates_with_edge): New function.
2420 (find_aggregate_values_for_callers_subset): Part moved to the function
2422 (cgraph_edge_brings_all_agg_vals_for_node): Reimplemented using
2423 intersect_aggregates_with_edge.
2425 2012-11-21 Matthias Klose <doko@ubuntu.com>
2427 * config/s390/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
2429 2012-11-21 Teresa Johnson <tejohnson@google.com>
2431 PR gcov-profile/55417
2432 * profile.c (compute_working_sets): Check index first
2433 to avoid out-of-bounds array access.
2435 2012-11-21 Matthias Klose <doko@ubuntu.com>
2437 * config/aarch64/t-aarch64-linux: Define MULTIARCH_DIRNAME for
2440 2012-11-21 Uros Bizjak <ubizjak@gmail.com>
2442 * config/i386/i386.md
2443 (*float<SWI48x:mode><MODEF:mode>2_mixed_with_temp): Use SWI48 mode
2444 iterator instead of SWI48x. Update insn constraint.
2445 (*float<SWI48x:mode><MODEF:mode>2_mixed_interunit): Ditto.
2446 (*float<SWI48x:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
2447 (*float<SWI48x:mode><MODEF:mode>2_sse_with_temp): Ditto.
2448 (*float<SWI48x:mode><MODEF:mode>2_sse_interunit): Ditto.
2449 (*float<SWI48x:mode><MODEF:mode>2_sse_nointerunit): Ditto.
2450 (*float<SWI48x:mode><MODEF:mode>2 splitters): Ditto.
2451 (lrint<MODEF:mode><SWI48x:mode>2): Ditto.
2453 2012-11-21 Marcus Shawcroft <marcus.shawcroft@arm.com>
2455 * Makefile.in (gengtype-lex.o): Add dependency on $(BCONFIG_H).
2457 2012-11-21 Bin Cheng <bin.cheng@arm.com>
2459 * config/arm/arm-cores.def (cortex-m1, cortex-m0)
2460 (cortex-m0plus): Use v6m.
2461 * config/arm/arm-protos.h (tune_params): Add
2462 logical_op_non_short_circuit.
2463 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2464 (arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune)
2465 (arm_cortex_tune, arm_cortex_a15_tune, arm_cortex_a5_tune)
2466 (arm_cortex_a9_tune, arm_fa726te_tune): Set
2467 logical_op_non_short_circuit field.
2468 (arm_v6m_tune): New tune_params struct.
2469 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
2471 2012-11-20 Matthias Klose <doko@ubuntu.com>
2473 * configure.ac: Substitute `with_cpu'.
2474 * configure: Regenerate.
2475 * Makefile.in: Define `with_cpu'.
2476 * config/rs6000/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
2477 * config/rs6000/t-linux: New file; define MULTIARCH_DIRNAME.
2478 * config/rs6000/t-fprules (SOFT_FLOAT_CPUS): New macro. Add e300c2
2480 (MULTILIB_MATCHES_FLOAT): Define in terms of SOFT_FLOAT_CPUS.
2481 * config/rs6000/t-spe: Define MULTIARCH_DIRNAME.
2482 * config.gcc <powerpc-*-linux* | powerpc64-*-linux*> (tmake_file):
2483 Include rs6000/t-linux for 32bit non-biarch configurations.
2485 2012-11-20 Matthias Klose <doko@ubuntu.com>
2487 * doc/install.texi: Move multiarch paragraph out of multilib
2490 2012-11-20 Matthias Klose <doko@ubuntu.com>
2492 * config/arm/t-linux-eabi: Define MULTIARCH_DIRNAME for linux target.
2494 2012-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2496 * stor-layout.c (bit_field_mode_iterator::next_mode): Fix signedness.
2498 2012-11-20 Vladimir Makarov <vmakarov@redhat.com>
2500 PR rtl-optimization/55396
2501 * lra-constraints.c (get_reload_reg): Change class if it is
2502 different from reg class.
2504 2012-11-20 Jakub Jelinek <jakub@redhat.com>
2506 * vec.h (class vec_prefix): Change into struct.
2507 Rename field alloc_PRIVATE_ back to alloc_.
2508 Rename field num_PRIVATE_ to num_.
2510 (class vec<T, A, vl_embed>): Rename field pfx_PRIVATE_ to vecpfx_.
2511 Rename field data_PRIVATE_ to vecdata_.
2513 (class vec<T, A, vl_ptr>): Make every field public.
2514 Rename field vec_PRIVATE_ back to vec_.
2517 2012-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2521 * expmed.c (store_bit_field_1): Use adjust_bitfield_address_size
2522 rather than adjust_bitfield_address to change the mode of a reference.
2523 (extract_bit_field_1): Likewise.
2525 2012-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2527 * config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment
2528 explaining the register ordering preferences.
2530 2012-11-20 Aldy Hernandez <aldyh@redhat.com>
2532 PR tree-optimization/55350
2533 * gimple-ssa-strength-reduction.c (replace_dependent): Handle
2534 POINTER_PLUS_EXPR correctly.
2536 2012-11-20 Uros Bizjak <ubizjak@gmail.com>
2538 * config/i386/i386.md (fix_trunc<MODEF:mode><SWI48:mode>_sse): Macroize
2539 insn from fix_trunc<mode>{si,di}_sse using SWI48 mode iterator.
2540 (peephole2 to avoid vector decoded forms): Macroize peephole2
2541 using MODEF mode iterator. Use SWI48 mode iterator instead of SWI48x.
2543 2012-11-20 Uros Bizjak <ubizjak@gmail.com>
2546 * config/i386/i386.md
2547 (peephole2 to shorten x87->SSE reload sequences): Remove peephole2.
2548 * config/i386/i386.h (enum ix86_tune_indices)
2549 <IX86_TUNE_SHORTEN_X87_SSE>: Remove.
2550 (TARGET_SHORTEN_X87_SSE): Remove.
2551 * config/i386/i386.c (initial_ix86_tune_features): Update.
2553 2012-11-20 Vladimir Makarov <vmakarov@redhat.com>
2556 * lra-constraints.c (process_alt_operands): Discourage reloads
2557 through secondary memory.
2559 2012-11-20 David Edelsohn <dje.gcc@gmail.com>
2561 * config/rs6000/rs6000.md (largetoc_low): Revert.
2562 (largetoc_low_aix<mode>): New.
2564 2012-11-20 Diego Novillo <dnovillo@google.com>
2565 Jakub Jelinek <jakub@redhat.com>
2567 * vec.h (struct vnull): Declare.
2569 * vec.c (vNULL): Define.
2570 * bb-reorder.c: Replace all vec<T, A>() initializers with vNULL.
2571 * cfgexpand.c: Likewise.
2572 * cfgloop.c: Likewise.
2573 * cfgloopanal.c: Likewise.
2574 * cfgloopmanip.c: Likewise.
2575 * cgraph.c: Likewise.
2576 * config/c6x/c6x.c: Likewise.
2577 * config/i386/i386.c: Likewise.
2578 * df-core.c: Likewise.
2579 * dominance.c: Likewise.
2580 * dwarf2out.c: Likewise.
2581 * except.c: Likewise.
2582 * function.c: Likewise.
2584 * genautomata.c: Likewise.
2585 * graphds.c: Likewise.
2586 * graphite-scop-detection.c: Likewise.
2587 * graphite.c: Likewise.
2588 * haifa-sched.c: Likewise.
2589 * ifcvt.c: Likewise.
2590 * ipa-cp.c: Likewise.
2591 * ipa-inline-analysis.c: Likewise.
2592 * ipa-inline-transform.c: Likewise.
2593 * ipa-inline.c: Likewise.
2594 * ipa-prop.c: Likewise.
2595 * ipa-split.c: Likewise.
2596 * ipa-utils.c: Likewise.
2597 * ira-build.c: Likewise.
2598 * lto-cgraph.c: Likewise.
2599 * lto-streamer-in.c: Likewise.
2600 * lto-symtab.c: Likewise.
2601 * opts-global.c: Likewise.
2602 * passes.c: Likewise.
2604 * sched-deps.c: Likewise.
2605 * sel-sched-ir.c: Likewise.
2606 * sel-sched-ir.h: Likewise.
2607 * sel-sched.c: Likewise.
2608 * stor-layout.c: Likewise.
2609 * trans-mem.c: Likewise.
2610 * tree-call-cdce.c: Likewise.
2611 * tree-cfg.c: Likewise.
2612 * tree-data-ref.c: Likewise.
2613 * tree-diagnostic.c: Likewise.
2614 * tree-eh.c: Likewise.
2615 * tree-loop-distribution.c: Likewise.
2616 * tree-predcom.c: Likewise.
2617 * tree-ssa-loop-im.c: Likewise.
2618 * tree-ssa-loop-ivcanon.c: Likewise.
2619 * tree-ssa-loop-manip.c: Likewise.
2620 * tree-ssa-loop-niter.c: Likewise.
2621 * tree-ssa-loop-prefetch.c: Likewise.
2622 * tree-ssa-math-opts.c: Likewise.
2623 * tree-ssa-phiopt.c: Likewise.
2624 * tree-ssa-pre.c: Likewise.
2625 * tree-ssa-propagate.c: Likewise.
2626 * tree-ssa-reassoc.c: Likewise.
2627 * tree-ssa-sccvn.c: Likewise.
2628 * tree-ssa-structalias.c: Likewise.
2629 * tree-ssa-threadedge.c: Likewise.
2630 * tree-ssa-uninit.c: Likewise.
2631 * tree-stdarg.c: Likewise.
2632 * tree-switch-conversion.c: Likewise.
2633 * tree-vect-data-refs.c: Likewise.
2634 * tree-vect-loop.c: Likewise.
2635 * tree-vect-slp.c: Likewise.
2636 * tree-vect-stmts.c: Likewise.
2637 * value-prof.c: Likewise.
2638 * varasm.c: Likewise.
2640 2012-11-20 Diego Novillo <dnovillo@google.com>
2642 * Makefile.in (tlink.o): Add dependency on VEC_H.
2644 2012-11-20 Diego Novillo <dnovillo@google.com>
2647 * vec.h (class vec_prefix): Make every field public.
2648 Rename field alloc_ to alloc_PRIVATE_.
2649 Rename field num_ to num_PRIVATE_.
2651 (class vec<T, A, vl_embed>): Make every field public.
2652 Rename field pfx_ to pfx_PRIVATE_.
2653 Rename field data_ to data_PRIVATE_.
2655 (class vec<T, A, vl_ptr>): Make every field public.
2656 Rename field vec_ to vec_PRIVATE_.
2659 2012-11-20 Kai Tietz <ktietz@redhat.com>
2662 * i386.c (ix86_mangle_decl_assembler_name): Use
2663 SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME if defined.
2664 * cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Rename
2665 to SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME.
2667 2012-11-20 Uros Bizjak <ubizjak@gmail.com>
2669 * config/i386/i386.c (ix86_expand_call): Emit CLOBBERs in VOIDmode.
2671 2012-11-20 Nick Clifton <nickc@redhat.com>
2673 * config/v850/v850.c (F): New function. Mark the given insn as
2674 being frame related.
2675 (v850_all_frame_related): New function. Mark the given push insn
2676 as being frame related.
2677 (v850_pass_by_reference): When using the RH850 ABI do not pass
2678 arguments by reference.
2679 (v850_strict_argument_naming): Delete function.
2680 (v850_function_arg): Use word alignment with the RH850 ABI.
2681 (v850_arg_partial_bytes): Likewise.
2682 (v850_function_arg_advance): Likewise.
2683 (v850_print_operand): Handle CONST_INT and CONST_DOUBLE.
2684 (compute_register_save_size): Use df_regs_ever_live_p.
2685 (increment_stack): Mark prologue adjustments as being frame related.
2686 (expand_prologue): Handle pretend args. Mark insns generated as
2687 being frame related.
2688 (expand_epilogue): Likewise.
2689 (v850_return_in_memory): When using the RH850 ABI return
2690 aggregates in memory.
2691 (v850_setup_incoming_varargs): Delete function.
2692 (v850_option_override): New function.
2693 (TARGET_DEBUG_UNWIND_INFO): Delete definition.
2694 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2695 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
2696 (TARGET_OPTION_OVERRIDE): Define.
2697 * config/v850/v850.h (ASM_SPEC): Pass 8byte-align and gcc-abi
2698 options on to assembler.
2699 (LINK_SPEC): Likewise.
2700 (TARGET_CPU_CPP_BUILTINS): Define __V850_8BYTE_ALIGN__ and
2702 (STACK_BOUNDARY): Set to BIGGEST_ALIGNMENT.
2703 (FUNCTION_BOUNDARY): With the RH850 ABI always 32-bit alignment.
2704 (BIGGEST_ALIGNMENT): With -8byte-align set to 64-bits.
2705 (BIGGEST_FIELD_ALIGNMENT): Likewise.
2706 (enum reg_class): Swap EVEN_REGS and GENERAL_REGS.
2707 (REG_CLASS_NAMES): Likewise.
2708 (REG_CLASS_CONTENTS): Likewise.
2709 (struct cum_arg): Delete anonymous_args field.
2710 (INIT_CUMULATIVE_ARGS): Update.
2711 (PREFERRED_DEBUG): Set to DWARF2_DEBUG.
2712 (DWARF2_FRAME_INFO): Define.
2713 (DWARF2_UNWIND_INFO): Define.
2714 (INCOMING_RETURN_ADDR_RTX): Define.
2715 (DWARF_FRAME_RETURN_COLUMN): Define.
2716 (TARGET_USE_FPU): Define.
2717 * config/v850/v850.md: Replace TARGET_V850E2V3 in floating point
2718 insns with TARGET_USE_FPU.
2719 (fixuns_truncsfsi2): New pattern.
2720 (fixuns_truncdfsi2): New pattern.
2721 (fix_truncsfdi2): New pattern.
2722 (fixuns_truncsfdi2): New pattern.
2723 (fix_truncdfdi2): New pattern.
2724 (fixuns_truncdfdi2): New pattern.
2725 (unsfloatsisf2): New pattern.
2726 (unsfloatsidf2): New pattern.
2727 (floatdisf2): New pattern.
2728 (unsfloatdisf2): New pattern.
2729 (floatdidf2): New pattern.
2730 (unsfloatdidf2): New pattern.
2731 (fnmasf4): Fix RTl description.
2732 (fnmssf4): Likewise.
2733 * config/v850/v850.opt (mrelax): New option.
2734 (mlong-jumps): Likewise.
2735 (msoft-float): Likewise.
2736 (mhard-float): Likewise.
2737 (mrh850-abi): Likewise.
2738 (mgcc-abi): Likewise.
2739 (m8byte-align): Likewise.
2740 * config/v850/t-v850 (MULTILIB_OPTIONS): Update multilib options.
2741 (MULTILIB_DIRNAMES): Likewise.
2743 2012-11-20 Nick Clifton <nickc@redhat.com>
2745 * config/rx/rx.c (rx_function_arg_boundary): When using the RX ABI
2746 align stack arguments to their natural alignment.
2747 (rx_narrow_volatile_bitfield): New function. Allows narrow
2749 (rx_ok_to_inline): New function. Do not inline functions with
2750 local variables into a naked caller.
2751 (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2752 (TARGET_CAN_INLINE_P): Define.
2753 * config/rx/rx.c (TARGET_CPU_CPP_BUILTINS): Define __RX_ABI__ or
2755 (ASM_SPEC): Pass -mgcc-abi on to the assembler.
2756 (STRICT_ALIGNMENT): Set to false.
2757 (CTORS_SECTION_ASM_OP): Add executable attribute.
2758 (DTORS_SECTION_ASM_OP): Add executable attribute.
2759 (INIT_ARRAY_SECTION_ASM_OP): Add executable attribute.
2760 (FINI_ARRAY_SECTION_ASM_OP): Add executable attribute.
2761 * config/rx/rx.md (subdi3): Don't allow MEMs as the third operand,
2762 as it causes too much reload pressure.
2763 * config/rx/rx.opt (mgcc-abi): New option.
2764 (mrx-abi): New option.
2765 * config/rx/t-rx (MULTILIB_OPTIONS): Show how to add an ABI multilib.
2766 (MULTILIB_DIRNAMES): Likewise.
2768 2012-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2769 Tejas Belagod <tejas.belagod@arm.com>
2771 * config/aarch64/aarch64-builtins.c
2772 (aarch64_simd_builtin_type_bits): Rename to...
2773 (aarch64_simd_builtin_type_mode): ...this, make sequential.
2774 (aarch64_simd_builtin_datum): Refactor members.
2775 (VAR1, VAR2, ..., VAR12): Update accordingly.
2776 (aarch64_simd_builtin_data): Include from aarch64-simd-builtins.def.
2777 (aarch64_builtins): Update accordingly.
2778 (init_aarch64_simd_builtins): Refactor, rename to...
2779 (aarch64_init_simd_builtins): ...this.
2780 (aarch64_simd_builtin_compare): Remove.
2781 (locate_simd_builtin_icode): Likewise.
2782 * config/aarch64/aarch64-protos.h (aarch64_init_builtins): New.
2783 (aarch64_expand_builtin): New.
2784 * config/aarch64/aarch64-simd-builtins.def: New file.
2785 * config/aarch64/aarch64.c (aarch64_init_builtins):
2786 Move to aarch64-builtins.c.
2787 (aarch64_expand_builtin): Likewise.
2788 * config/aarch64/aarch64.h
2789 (aarch64_builtins): Move to aarch64-builtins.c.
2791 2012-11-20 Martin Jambor <mjambor@suse.cz>
2793 PR tree-optimization/55260
2794 * ipa-cp.c (find_aggregate_values_for_callers_subset): Rename info to
2795 dest_info, use caller_info instead of info when determining whether
2798 2012-11-20 Andrey Turetskiy <andrey.turetskiy@gmail.com>
2800 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3): Merge
2801 *avx2_pmulhrswv16hi3 and *ssse3_pmulhrswv8hi3 into one pattern.
2803 2012-11-20 Sofiane Naci <sofiane.naci@arm.com>
2805 * config/aarch64/aarch64.md
2806 (define_attr "sync_*"): Remove.
2807 (define_attr "length"): Update.
2809 * config/aarch64/aarch64-protos.h
2810 (aarch64_expand_compare_and_swap): Add function prototype.
2811 (aarch64_split_compare_and_swap): Likewise.
2812 (aarch64_split_atomic_op): Likewise.
2813 (aarch64_expand_sync): Remove function prototype.
2814 (aarch64_output_sync_insn): Likewise.
2815 (aarch64_output_sync_lock_release): Likewise.
2816 (aarch64_sync_loop_insns): Likewise.
2817 (struct aarch64_sync_generator): Remove.
2818 (enum aarch64_sync_generator_tag): Likewise.
2819 * config/aarch64/aarch64.c
2820 (aarch64_legitimize_sync_memory): Remove function.
2821 (aarch64_emit): Likewise.
2822 (aarch64_insn_count): Likewise.
2823 (aarch64_output_asm_insn): Likewise.
2824 (aarch64_load_store_suffix): Likewise.
2825 (aarch64_output_sync_load): Likewise.
2826 (aarch64_output_sync_store): Likewise.
2827 (aarch64_output_op2): Likewise.
2828 (aarch64_output_op3): Likewise.
2829 (aarch64_output_sync_loop): Likewise.
2830 (aarch64_get_sync_operand): Likewise.
2831 (aarch64_process_output_sync_insn): Likewise.
2832 (aarch64_output_sync_insn): Likewise.
2833 (aarch64_output_sync_lock_release): Likewise.
2834 (aarch64_sync_loop_insns): Likewise.
2835 (aarch64_call_generator): Likewise.
2836 (aarch64_expand_sync): Likewise.
2837 (* emit_f): Remove variable.
2838 (aarch64_insn_count): Likewise.
2839 (FETCH_SYNC_OPERAND): Likewise.
2840 (aarch64_emit_load_exclusive): New function.
2841 (aarch64_emit_store_exclusive): Likewise.
2842 (aarch64_emit_unlikely_jump): Likewise.
2843 (aarch64_expand_compare_and_swap): Likewise.
2844 (aarch64_split_compare_and_swap): Likewise.
2845 (aarch64_split_atomic_op): Likewise.
2846 * config/aarch64/iterators.md
2847 (atomic_sfx): New mode attribute.
2848 (atomic_optab): New code attribute.
2849 (atomic_op_operand): Likewise.
2850 (atomic_op_str): Likewise.
2851 (syncop): Rename to atomic_op.
2852 * config/aarch64/sync.md: Delete.
2853 * config/aarch64/atomics.md: New file.
2855 2012-11-20 Jakub Jelinek <jakub@redhat.com>
2858 * builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note
2859 on the trap insn for !ACCUMULATE_OUTGOING_ARGS.
2860 * cfgcleanup.c (outgoing_edges_match): Don't look at debug insns
2861 on the first old_insns_match_p call. For !ACCUMULATE_OUTGOING_ARGS
2862 fail if the last real insn doesn't have REG_ARGS_SIZE note.
2864 PR rtl-optimization/54921
2865 * cselib.h (fp_setter_insn): New prototype.
2866 * cselib.c (fp_setter_insn): New function.
2867 (cselib_process_insn): If frame_pointer_needed,
2868 call cselib_invalidate_rtx (stack_pointer_rtx) after
2869 processing a frame pointer setter.
2870 * var-tracking.c (fp_setter): Removed.
2871 (vt_initialize): Use fp_setter_insn instead of fp_setter.
2873 2012-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
2875 * config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move
2876 constraints so that the traditional floating point loads, stores,
2877 and moves are done first, then the VSX loads, stores, and moves,
2878 and finally the GPR loads, stores, and moves so that reload
2879 chooses FPRs over GPRs, and uses the traditional load/store
2880 instructions which provide an offset.
2881 (movdf_hardfloat64): Likewise.
2883 2012-11-19 Richard Sandiford <rdsandiford@googlemail.com>
2886 * simplify-rtx.c (simplify_subreg): Return null for invalid offsets.
2888 2012-11-19 Aldy Hernandez <aldyh@redhat.com>
2890 * trans-mem.c (execute_tm_mark): Release bb_regions.
2892 2012-11-19 Aldy Hernandez <aldyh@redhat.com>
2894 * trans-mem (collect_bb2reg): Stop scanning at irrevocable blocks.
2895 (get_bb_regions_instrumented): Add new traverse_clone argument and
2897 (expand_regions_1): Same.
2898 (expand_region): Same.
2899 (execute_tm_mark): Pass new argument to expand_regions.
2900 (expand_block_edges): Pass new argument to get_bb_regions_instrumented.
2902 2012-11-19 Sofiane Naci <sofiane.naci@arm.com>
2904 * config/aarch64/aarch64.c
2905 (aarch64_output_mi_thunk): Refactor to generate RTL patterns.
2907 2012-11-19 Mans Rullgard <mans@mansr.com>
2910 * config/rs6000/rs6000.c (rs6000_stack_info): Always set vrsave_mask
2911 for TARGET_ALTIVEC_ABI. Zero vrsave_save_offset if
2912 !TARGET_ALTIVEC_VRSAVE.
2913 (rs6000_emit_prologue): For SAVE_INLINE_VLRs, check vrsave_size
2916 2012-11-19 David Edelsohn <dje.gcc@gmail.com>
2919 * system.h (vec_free): Undef.
2921 2012-11-19 Jakub Jelinek <jakub@redhat.com>
2924 * tree-ssa-coalesce.c (coalesce_ssa_name): Remove static
2925 keyword from ssa_name_hash var.
2927 2012-11-19 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2928 Kirill Yukhin <kirill.yukhin@intel.com>
2929 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2931 * doc/md.texi: Document define_subst.
2932 * gensupport.c (MAX_OPERANDS): New define.
2933 (operand_data): New.
2934 (match_operand_entries_in_pattern): New.
2935 (used_operands_numbers): New.
2938 (define_subst_queue): New.
2939 (define_subst_tail): New.
2940 (define_subst_attr_queue): New.
2941 (define_subst_attr_tail): New.
2942 (has_subst_attribute): New.
2943 (subst_pattern_match): New.
2944 (get_alternatives_number): New.
2945 (alter_output_for_subst_insn): New.
2946 (alter_attrs_for_subst_insn): New.
2947 (process_substs_on_one_elem): New.
2949 (process_define_subst): New.
2950 (duplicate_alternatives): New.
2951 (duplicate_each_alternative): New.
2952 (constraints_handler_t): New typedef.
2953 (alter_constraints): New.
2954 (adjust_operands_numbers): New.
2955 (replace_duplicating_operands_in_pattern): New.
2956 (remove_from_queue): New.
2957 (process_rtx): Handle define_subst and define_subst_attr.
2958 (change_subst_attribute): New.
2959 (alter_predicate_for_insn): Fix formatting.
2960 (alter_attrs_for_insn): Likewise.
2961 (alter_output_for_insn): Likewise.
2962 (mark_operands_from_match_dup): New.
2963 (mark_operands_used_in_match_dup): New.
2964 (find_first_unused_number_of_operand): New.
2965 (renumerate_operands_in_pattern): New.
2966 (generate_match_dup): New.
2967 (check_define_attr_duplicates): New.
2968 (init_rtx_reader_args_cb): Add checking for duplicated attrs and
2969 processing of define_subst.
2970 (read_md_rtx): Handle define_subst.
2971 * read-rtl.c (struct subst_attr_to_iter_mapping): New.
2972 (substs): New global.
2973 (apply_subst_iterator): New.
2974 (bind_subst_iter_and_attr): New.
2975 (find_subst_iter_by_attr): New.
2976 (map_attr_string): Handle subst-iterators.
2977 (add_condition_to_rtx): Handle define_subst.
2978 (apply_iterators): Likewise.
2979 (initialize_iterators): Likewise.
2980 (add_define_attr_for_define_subst): New.
2981 (add_define_subst_attr): New.
2982 (read_subst_mapping): New.
2983 (read_rtx): Handle define_subst_attr.
2984 (read_rtx_code): Add subst-attributes recognition during reading of
2986 * rtl.def (DEFINE_EXPAND): Add vector of attributes.
2987 (DEFINE_SUBST): New.
2988 (DEFINE_SUBST_ATTR): New.
2990 2012-11-19 Tom de Vries <tom@codesourcery.com>
2992 PR rtl-optimization/55315
2994 * rtlanal.c (nonzero_address_p): Don't assume a nonzero address plus a
2995 const is a nonzero address.
2997 2012-11-18 Sandra Loosemore <sandra@codesourcery.com>
2999 * doc/extend.texi: Use @smallexample consistently. Add @noindent
3000 when continuing a sentence or paragraph past an example. Change
3001 tabs to spaces in examples.
3003 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3005 * doc/md.texi (extv@var{m}, extvmisalign@var{m}, extzv@var{m})
3006 (extzvmisalign@var{m}, insv@var{m}, insvmisalign@var{m}): Document.
3007 (insv, extv, extzv): Deprecate.
3008 * optabs.def (insv_optab, extv_optab, extzv_optab)
3009 (insvmisalign_optab, extvmisalign_optab, extzvmisalign_optab):
3011 * optabs.c (get_optab_extraction_insn): New function.
3012 (get_extraction_insn): Use it.
3013 * config/mips/mips.md (extv): Split into...
3014 (extvmisalign<mode>, extv<mode>): ...these new patterns. Rename
3015 existing extv<mode> pattern to...
3016 (*extv<mode>): ...this.
3017 (extzv): Split into...
3018 (extzvmisalign<mode>, extzv<mode>): ...these new patterns. Rename
3019 existing extzv<mode> pattern to...
3020 (*extzv<mode>): ...this.
3021 (insv): Split into...
3022 (insvmisalign<mode>, insv<mode>): ...these new patterns. Rename
3023 existing insv<mode> pattern to...
3024 (*insv<mode>): ...this. Use const_int_operand rather than
3026 * config/mips/mips.c (mips_block_move_straight): Use set_mem_size
3027 to set the size of BLKmode accesses.
3028 (mips_get_unaligned_mem): Require OP0 to be a BLKmode memory,
3029 turning it from an "rtx *" to an rtx.
3030 (mips_expand_ext_as_unaligned_load): Simplify for new optab
3031 interface. Update call to mips_get_unaligned_mem.
3032 (mips_expand_ins_as_unaligned_store): Update call to
3033 mips_get_unaligned_mem.
3035 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3037 * Makefile.in (recog.o): Add insn-codes.h.
3038 * expr.h (extraction_pattern): Move to optabs.h.
3039 (mode_for_extraction): Delete.
3040 * optabs.h (extraction_insn): New structure.
3041 (extraction_pattern): Moved from expr.h.
3042 (get_best_reg_extraction_insn, get_best_mem_extraction_insn): Declare.
3043 * optabs.c (HAVE_insv, CODE_FOR_insv, HAVE_extv, CODE_FOR_extv)
3044 (HAVE_extzv, CODE_FOR_extzv): Provide defaults.
3045 (extraction_type): New enum.
3046 (get_traditional_extraction_insn, get_extraction_insn)
3047 (get_best_reg_extraction_insn, get_best_mem_extraction_insn):
3049 * combine.c (make_extraction): Use get_best_reg_extraction_insn
3050 instead of mode_for_extraction.
3051 * expmed.c (HAVE_insv, CODE_FOR_insv, gen_insv, HAVE_extv)
3052 (CODE_FOR_extv, gen_extv, HAVE_extzv, CODE_FOR_extzv, gen_extzv):
3053 Remove fallback definitions.
3054 (mode_for_extraction): Delete.
3055 (adjust_bit_field_mem_for_reg): New function.
3056 (store_bit_field_using_insv): Replace OP_MODE parameter with
3057 an extraction_insn. Pass struct_mode to narrow_bit_field_mem.
3058 (extract_bit_field_using_extv): Likewise EXT_MODE.
3059 (store_bit_field_1): Use get_best_reg_extraction_insn and
3060 get_best_mem_extraction_insn instead of mode_for_extraction.
3061 Use adjust_bit_field_mem_for_reg when forcing memory to a
3062 register and doing a register insertion. Update calls to
3063 store_bit_field_using_insv.
3064 (extract_bit_field_1): Likewise extractions and calls to
3065 extract_bit_field_using_extv.
3066 (store_Bit_field): When narrowing to a bitregion, don't use the
3067 insv mode as a limit.
3068 * recog.c: (HAVE_extv, CODE_FOR_extv, HAVE_extzv, CODE_FOR_extzv):
3070 (simplify_while_replacing): Use insn_data instead of
3071 mode_for_extraction.
3073 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3075 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
3076 Set up a default value of bitregion_end_.
3077 (bit_field_mode_iterator::next_mode): Always apply bitregion_end_
3078 check. Include SLOW_UNALIGNED_ACCESS in the alignment check.
3079 (get_best_mode): Ignore modes that are wider than the alignment.
3081 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3083 * machmode.h (bit_field_mode_iterator): New class.
3084 (get_best_mode): Change final parameter to bool.
3085 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator)
3086 (bit_field_mode_iterator::next_mode): New functions, split out from...
3087 (get_best_mode): ...here. Change final parameter to bool.
3088 Use bit_field_mode_iterator.
3090 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3092 * expmed.c (narrow_bit_field_mem): New function.
3093 (store_bit_field_using_insv, store_bit_field_1, store_fixed_bit_field)
3094 (extract_bit_field_1): Use it.
3096 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3098 * expr.h (adjust_address_1): Add a size parameter.
3099 (adjust_address, adjust_address_nv, adjust_bitfield_address)
3100 (adjust_bitfield_address_nv): Adjust accordingly.
3101 (adjust_bitfield_address_size): Define.
3102 * emit-rtl.c (adjust_address_1): Add a size parameter.
3103 Use it to set the size if MODE has no size. Check whether
3104 the size matches before returning the original memref.
3105 Require the size to be known for adjust_object.
3106 (adjust_automodify_address_1, widen_memory_access): Update calls
3107 to adjust_address_1.
3109 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3111 * combine.c (make_extraction): Handle TRUNCATEd INNERs.
3113 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3115 * expr.c (expand_assignment): Don't set MEM_KEEP_ALIAS_SET_P here.
3116 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle DECL_BIT_FIELDs,
3117 using their size instead of the COMPONENT_REF's.
3119 2012-11-17 Matthias Klose <doko@ubuntu.com>
3121 * config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
3123 2012-11-17 Diego Novillo <dnovillo@google.com>
3125 VEC API overhaul (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
3127 * vec.c (register_overhead): Convert it into
3128 member function of vec_prefix.
3129 (release_overhead): Likewise.
3130 (calculate_allocation): Likewise.
3131 (vec_heap_free): Remove.
3132 (vec_gc_o_reserve_1): Remove.
3133 (vec_heap_o_reserve_1): Remove.
3134 (vec_stack_o_reserve_1): Remove.
3135 (vec_stack_o_reserve_exact): Remove.
3136 (register_stack_vec): New.
3137 (stack_vec_register_index): New.
3138 (unregister_stack_vec): New.
3139 (vec_assert_fail): Remove.
3140 * vec.h: Conditionally include ggc.h. Document conditional hackery.
3141 Update top-level documentation.
3142 (ALONE_VEC_CHECK_INFO): Remove.
3143 (VEC_CHECK_INFO): Remove.
3144 (ALONE_VEC_CHECK_DECL): Remove.
3145 (VEC_CHECK_DECL): Remove.
3146 (ALONE_VEC_CHECK_PASS): Remove.
3147 (VEC_CHECK_PASS): Remove.
3148 (VEC_ASSERT): Remove.
3149 (vec_prefix): Add friends va_gc, va_gc_atomic, va_heap and va_stack.
3150 Mark fields alloc_ and num_ as protected.
3151 (struct vec_t): Remove. Remove all function members.
3152 (struct vl_embed): Declare.
3153 (struct vl_ptr): Declare.
3155 (reserve_exact): Remove.
3157 (safe_splice): Remove.
3158 (safe_push): Remove.
3159 (safe_grow): Remove.
3160 (safe_grow_cleared): Remove.
3161 (safe_insert): Remove.
3162 (DEF_VEC_I): Remove.
3163 (DEF_VEC_ALLOC_I): Remove.
3164 (DEF_VEC_P): Remove.
3165 (DEF_VEC_ALLOC_P): Remove.
3166 (DEF_VEC_O): Remove.
3167 (DEF_VEC_ALLOC_O): Remove.
3168 (DEF_VEC_ALLOC_P_STACK): Remove.
3169 (DEF_VEC_ALLOC_O_STACK): Remove.
3170 (DEF_VEC_ALLOC_I_STACK): Remove.
3171 (DEF_VEC_A): Remove.
3172 (DEF_VEC_ALLOC_A): Remove.
3173 (vec_stack_p_reserve_exact_1): Remove.
3174 (vec_stack_o_reserve): Remove.
3175 (vec_stack_o_reserve_exact): Remove.
3176 (VEC_length): Remove.
3177 (VEC_empty): Remove.
3178 (VEC_address): Remove.
3179 (vec_address): Remove.
3181 (VEC_index): Remove.
3182 (VEC_iterate): Remove.
3183 (VEC_embedded_size): Remove.
3184 (VEC_embedded_init): Remove.
3187 (VEC_space): Remove.
3188 (VEC_reserve): Remove.
3189 (VEC_reserve_exact): Remove.
3190 (VEC_splice): Remove.
3191 (VEC_safe_splice): Remove.
3192 (VEC_quick_push): Remove.
3193 (VEC_safe_push): Remove.
3195 (VEC_truncate): Remove.
3196 (VEC_safe_grow): Remove.
3197 (VEC_replace): Remove.
3198 (VEC_quick_insert): Remove.
3199 (VEC_safe_insert): Remove.
3200 (VEC_ordered_remove): Remove.
3201 (VEC_unordered_remove): Remove.
3202 (VEC_block_remove): Remove.
3203 (VEC_lower_bound): Remove.
3204 (VEC_alloc): Remove.
3205 (VEC_qsort): Remove.
3208 (va_heap::default_layout): New typedef to vl_ptr.
3209 (va_heap::reserve): New.
3210 (va_heap::release): New.
3212 (va_gc::default_layout): New typedef to vl_embed.
3213 (va_gc::reserve): New.
3214 (va_gc::release): New.
3215 (va_gc_atomic): Declare. Inherit from va_gc.
3216 (va_stack): Declare.
3217 (va_stack::default_layout): New typedef to vl_ptr.
3218 (va_stack::alloc): New.
3219 (va_stack::reserve): New.
3220 (va_stack::release): New.
3221 (register_stack_vec): Declare.
3222 (stack_vec_register_index): Declare.
3223 (unregister_stack_vec): Declare.
3225 (vec<T, A = va_heap, L = typename A::default_layout>): Declare
3227 (vec<T, A, vl_embed>): Partial specialization for embedded
3229 (vec<T, A, vl_embed>::allocated): New.
3230 (vec<T, A, vl_embed>::length): New.
3231 (vec<T, A, vl_embed>::is_empty): New.
3232 (vec<T, A, vl_embed>::address): New.
3233 (vec<T, A, vl_embed>::operator[]): New.
3234 (vec<T, A, vl_embed>::last New.
3235 (vec<T, A, vl_embed>::space): New.
3236 (vec<T, A, vl_embed>::iterate): New.
3237 (vec<T, A, vl_embed>::iterate): New.
3238 (vec<T, A, vl_embed>::copy): New.
3239 (vec<T, A, vl_embed>::splice): New.
3240 (vec<T, A, vl_embed>::quick_push New.
3241 (vec<T, A, vl_embed>::pop New.
3242 (vec<T, A, vl_embed>::truncate): New.
3243 (vec<T, A, vl_embed>::quick_insert): New.
3244 (vec<T, A, vl_embed>::ordered_remove): New.
3245 (vec<T, A, vl_embed>::unordered_remove): New.
3246 (vec<T, A, vl_embed>::block_remove): New.
3247 (vec<T, A, vl_embed>::qsort): New.
3248 (vec<T, A, vl_embed>::lower_bound): New.
3249 (vec<T, A, vl_embed>::embedded_size): New.
3250 (vec<T, A, vl_embed>::embedded_init): New.
3251 (vec<T, A, vl_embed>::quick_grow): New.
3252 (vec<T, A, vl_embed>::quick_grow_cleared): New.
3253 (vec_safe_space): New.
3254 (vec_safe_length): New.
3255 (vec_safe_address): New.
3256 (vec_safe_is_empty): New.
3257 (vec_safe_reserve): New.
3258 (vec_safe_reserve_exact): New.
3261 (vec_safe_grow): New.
3262 (vec_safe_grow_cleared): New.
3263 (vec_safe_iterate): New.
3264 (vec_safe_push): New.
3265 (vec_safe_insert): New.
3266 (vec_safe_truncate): New.
3267 (vec_safe_copy): New.
3268 (vec_safe_splice): New.
3270 (vec<T, A, vl_ptr>): New partial specialization for the space
3272 (vec<T, A, vl_ptr>::exists): New.
3273 (vec<T, A, vl_ptr>::is_empty): New.
3274 (vec<T, A, vl_ptr>::length): New.
3275 (vec<T, A, vl_ptr>::address): New.
3276 (vec<T, A, vl_ptr>::operator[]): New.
3277 (vec<T, A, vl_ptr>::operator!=): New.
3278 (vec<T, A, vl_ptr>::operator==): New.
3279 (vec<T, A, vl_ptr>::last): New.
3280 (vec<T, A, vl_ptr>::space): New.
3281 (vec<T, A, vl_ptr>::iterate): New.
3282 (vec<T, A, vl_ptr>::copy): New.
3283 (vec<T, A, vl_ptr>::reserve): New.
3284 (vec<T, A, vl_ptr>::reserve_exact): New.
3285 (vec<T, A, vl_ptr>::splice): New.
3286 (vec<T, A, vl_ptr>::safe_splice): New.
3287 (vec<T, A, vl_ptr>::quick_push): New.
3288 (vec<T, A, vl_ptr>::safe_push): New.
3289 (vec<T, A, vl_ptr>::pop): New.
3290 (vec<T, A, vl_ptr>::truncate): New.
3291 (vec<T, A, vl_ptr>::safe_grow): New.
3292 (vec<T, A, vl_ptr>::safe_grow_cleared): New.
3293 (vec<T, A, vl_ptr>::quick_grow): New.
3294 (vec<T, A, vl_ptr>::quick_grow_cleared): New.
3295 (vec<T, A, vl_ptr>::quick_insert): New.
3296 (vec<T, A, vl_ptr>::safe_insert): New.
3297 (vec<T, A, vl_ptr>::ordered_remove): New.
3298 (vec<T, A, vl_ptr>::unordered_remove): New.
3299 (vec<T, A, vl_ptr>::block_remove): New.
3300 (vec<T, A, vl_ptr>::qsort): New.
3301 (vec<T, A, vl_ptr>::lower_bound): New.
3302 (vec_stack_alloc): Define.
3303 (FOR_EACH_VEC_SAFE_ELT): Define.
3304 * vecir.h: Remove. Update all users.
3305 * vecprim.h: Remove. Update all users.
3306 Move uchar to coretypes.h.
3308 * Makefile.in (VEC_H): Add $(GGC_H).
3309 Remove vecir.h and vecprim.h dependencies everywhere.
3311 2012-11-16 Diego Novillo <dnovillo@google.com>
3313 * gengtype-lex.l (VEC): Remove.
3314 Add characters in the set [\!\>\.-].
3315 * gengtype-parse.c (token_names): Remove "VEC".
3316 (require_template_declaration): Remove handling of VEC_TOKEN.
3318 Call create_user_defined_type when parsing GTY((user)).
3319 * gengtype-state.c (type_lineloc): handle TYPE_UNDEFINED.
3320 (write_state_undefined_type): New.
3321 (write_state_type): Call write_state_undefined_type for TYPE_UNDEFINED.
3322 (read_state_type): Call read_state_undefined_type for TYPE_UNDEFINED.
3323 * gengtype.c (dbgprint_count_type_at): Handle TYPE_UNDEFINED.
3324 (create_user_defined_type): Make extern.
3325 (type_for_name): Factor out of resolve_typedef.
3326 (create_undefined_type): New
3327 (resolve_typedef): Call it when we cannot find a previous
3328 typedef and the type is not a template.
3329 (find_structure): Accept TYPE_UNDEFINED.
3330 (set_gc_used_type): Add argument ALLOWED_UNDEFINED_TYPES,
3332 Emit an error for TYPE_UNDEFINED unless LEVEL is GC_UNUSED or
3333 ALLOWED_UNDEFINED_TYPES is set.
3334 Set ALLOWED_UNDEFINED_TYPES to true for TYPE_USER_STRUCT.
3335 (filter_type_name): Accept templates with more than one argument.
3336 (output_mangled_typename): Handle TYPE_UNDEFINED
3337 (walk_type): Likewise.
3338 (write_types_process_field): Likewise.
3339 (write_func_for_structure): If CHAIN_NEXT is set, ORIG_S
3340 should not be a user-defined type.
3341 (write_types_local_user_process_field): Handle TYPE_ARRAY,
3342 TYPE_NONE and TYPE_UNDEFINED.
3343 (write_types_local_process_field): Likewise.
3344 (contains_scalar_p): Return 0 for TYPE_USER_STRUCT.
3345 (write_root): Reject user-defined types that are not pointers.
3346 Handle TYPE_NONE, TYPE_UNDEFINED, TYPE_UNION, TYPE_LANG_STRUCT
3347 and TYPE_PARAM_STRUCT.
3348 (output_typename): Handle TYPE_NONE, TYPE_UNDEFINED, and TYPE_ARRAY.
3349 (dump_typekind): Handle TYPE_UNDEFINED.
3350 * gengtype.h (enum typekind): Add TYPE_UNDEFINED.
3351 (create_user_defined_type): Declare.
3352 (enum gty_token): Remove VEC_TOKEN.
3354 2012-11-16 Diego Novillo <dnovillo@google.com>
3356 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
3358 * coretypes.h (uchar): Define.
3359 * alias.c: Use new vec API in vec.h.
3361 * attribs.c: Likewise.
3362 * basic-block.h: Likewise.
3363 * bb-reorder.c: Likewise.
3364 * builtins.c: Likewise.
3365 * calls.c: Likewise.
3367 * cfganal.c: Likewise.
3368 * cfgcleanup.c: Likewise.
3369 * cfgexpand.c: Likewise.
3370 * cfghooks.c: Likewise.
3371 * cfghooks.h: Likewise.
3372 * cfgloop.c: Likewise.
3373 * cfgloop.h: Likewise.
3374 * cfgloopanal.c: Likewise.
3375 * cfgloopmanip.c: Likewise.
3376 * cfgrtl.c: Likewise.
3377 * cgraph.c: Likewise.
3378 * cgraph.h: Likewise.
3379 * cgraphclones.c: Likewise.
3380 * cgraphunit.c: Likewise.
3381 * combine.c: Likewise.
3382 * compare-elim.c: Likewise.
3383 * coverage.c: Likewise.
3384 * cprop.c: Likewise.
3385 * data-streamer.h: Likewise.
3386 * dbxout.c: Likewise.
3388 * df-core.c: Likewise.
3389 * df-problems.c: Likewise.
3390 * df-scan.c: Likewise.
3391 * dominance.c: Likewise.
3392 * domwalk.c: Likewise.
3393 * domwalk.h: Likewise.
3395 * dwarf2cfi.c: Likewise.
3396 * dwarf2out.c: Likewise.
3397 * dwarf2out.h: Likewise.
3398 * emit-rtl.c: Likewise.
3399 * except.c: Likewise.
3400 * except.h: Likewise.
3403 * final.c: Likewise.
3404 * fold-const.c: Likewise.
3405 * function.c: Likewise.
3406 * function.h: Likewise.
3407 * fwprop.c: Likewise.
3410 * genattr.c: Likewise.
3411 * genattrtab.c: Likewise.
3412 * genautomata.c: Likewise.
3413 * genextract.c: Likewise.
3414 * genopinit.c: Likewise
3415 * ggc-common.c: Likewise.
3417 * gimple-low.c: Likewise.
3418 * gimple-ssa-strength-reduction.c: Likewise.
3419 * gimple-streamer-in.c: Likewise.
3420 * gimple.c: Likewise.
3421 * gimple.h: Likewise.
3422 * gimplify.c: Likewise.
3423 * graph.c: Likewise.
3424 * graphds.c: Likewise.
3425 * graphds.h: Likewise.
3426 * graphite-blocking.c: Likewise.
3427 * graphite-clast-to-gimple.c: Likewise.
3428 * graphite-dependences.c: Likewise.
3429 * graphite-interchange.c: Likewise.
3430 * graphite-optimize-isl.c: Likewise.
3431 * graphite-poly.c: Likewise.
3432 * graphite-poly.h: Likewise.
3433 * graphite-scop-detection.c: Likewise.
3434 * graphite-scop-detection.h: Likewise.
3435 * graphite-sese-to-poly.c: Likewise.
3436 * graphite.c: Likewise.
3437 * godump.c: Likewise.
3438 * haifa-sched.c: Likewise.
3439 * hw-doloop.c: Likewise.
3440 * hw-doloop.h: Likewise.
3441 * ifcvt.c: Likewise.
3442 * insn-addr.h: Likewise.
3443 * ipa-cp.c: Likewise.
3444 * ipa-inline-analysis.c: Likewise.
3445 * ipa-inline-transform.c: Likewise.
3446 * ipa-inline.c: Likewise.
3447 * ipa-inline.h: Likewise.
3448 * ipa-prop.c: Likewise.
3449 * ipa-prop.h: Likewise.
3450 * ipa-pure-const.c: Likewise.
3451 * ipa-ref-inline.h: Likewise.
3452 * ipa-ref.c: Likewise.
3453 * ipa-ref.h: Likewise.
3454 * ipa-reference.c: Likewise.
3455 * ipa-split.c: Likewise.
3456 * ipa-utils.c: Likewise.
3457 * ipa-utils.h: Likewise.
3459 * ira-build.c: Likewise.
3460 * ira-color.c: Likewise.
3461 * ira-emit.c: Likewise.
3462 * ira-int.h: Likewise.
3464 * loop-invariant.c: Likewise.
3465 * loop-unroll.c: Likewise.
3466 * lower-subreg.c: Likewise.
3467 * lra-lives.c: Likewise.
3469 * lto-cgraph.c: Likewise.
3470 * lto-section-out.c: Likewise.
3471 * lto-streamer-in.c: Likewise.
3472 * lto-streamer-out.c: Likewise.
3473 * lto-streamer.h: Likewise.
3474 * lto-symtab.c: Likewise.
3476 * modulo-sched.c: Likewise.
3477 * omp-low.c: Likewise.
3478 * opts-common.c: Likewise.
3479 * opts-global.c: Likewise.
3482 * passes.c: Likewise.
3483 * predict.c: Likewise.
3484 * print-tree.c: Likewise.
3485 * profile.c: Likewise.
3486 * profile.h: Likewise.
3487 * read-rtl.c: Likewise.
3489 * reg-stack.c: Likewise.
3490 * regrename.c: Likewise.
3491 * regrename.h: Likewise.
3492 * reload.c: Likewise.
3493 * reload.h: Likewise.
3494 * reload1.c: Likewise.
3496 * sched-deps.c: Likewise.
3497 * sched-int.h: Likewise.
3498 * sdbout.c: Likewise.
3499 * sel-sched-dump.c: Likewise.
3500 * sel-sched-ir.c: Likewise.
3501 * sel-sched-ir.h: Likewise.
3502 * sel-sched.c: Likewise.
3505 * statistics.h: Likewise.
3507 * stor-layout.c: Likewise.
3508 * store-motion.c: Likewise.
3509 * tlink.c: Likewise.
3510 * toplev.c: Likewise.
3511 * trans-mem.c: Likewise.
3512 * tree-browser.c: Likewise.
3513 * tree-call-cdce.c: Likewise.
3514 * tree-cfg.c: Likewise.
3515 * tree-cfgcleanup.c: Likewise.
3516 * tree-chrec.c: Likewise.
3517 * tree-chrec.h: Likewise.
3518 * tree-complex.c: Likewise.
3519 * tree-data-ref.c: Likewise.
3520 * tree-data-ref.h: Likewise.
3521 * tree-dfa.c: Likewise.
3522 * tree-diagnostic.c: Likewise.
3523 * tree-dump.c: Likewise.
3524 * tree-eh.c: Likewise.
3525 * tree-emutls.c: Likewise.
3526 * tree-flow.h: Likewise.
3527 * tree-if-conv.c: Likewise.
3528 * tree-inline.c: Likewise.
3529 * tree-inline.h: Likewise.
3530 * tree-into-ssa.c: Likewise.
3531 * tree-iterator.c: Likewise.
3532 * tree-loop-distribution.c: Likewise.
3533 * tree-mudflap.c: Likewise.
3534 * tree-optimize.c: Likewise.
3535 * tree-outof-ssa.c: Likewise.
3536 * tree-parloops.c: Likewise.
3537 * tree-phinodes.c: Likewise.
3538 * tree-predcom.c: Likewise.
3539 * tree-pretty-print.c: Likewise.
3540 * tree-scalar-evolution.c: Likewise.
3541 * tree-sra.c: Likewise.
3542 * tree-ssa-address.c: Likewise.
3543 * tree-ssa-alias.c: Likewise.
3544 * tree-ssa-ccp.c: Likewise.
3545 * tree-ssa-coalesce.c: Likewise.
3546 * tree-ssa-dce.c: Likewise.
3547 * tree-ssa-dom.c: Likewise.
3548 * tree-ssa-forwprop.c: Likewise.
3549 * tree-ssa-live.c: Likewise.
3550 * tree-ssa-live.h: Likewise.
3551 * tree-ssa-loop-im.c: Likewise.
3552 * tree-ssa-loop-ivcanon.c: Likewise.
3553 * tree-ssa-loop-ivopts.c: Likewise.
3554 * tree-ssa-loop-manip.c: Likewise.
3555 * tree-ssa-loop-niter.c: Likewise.
3556 * tree-ssa-loop-prefetch.c: Likewise.
3557 * tree-ssa-math-opts.c: Likewise.
3558 * tree-ssa-operands.c: Likewise.
3559 * tree-ssa-phiopt.c: Likewise.
3560 * tree-ssa-phiprop.c: Likewise.
3561 * tree-ssa-pre.c: Likewise.
3562 * tree-ssa-propagate.c: Likewise.
3563 * tree-ssa-reassoc.c: Likewise.
3564 * tree-ssa-sccvn.c: Likewise.
3565 * tree-ssa-sccvn.h: Likewise.
3566 * tree-ssa-strlen.c: Likewise.
3567 * tree-ssa-structalias.c: Likewise.
3568 * tree-ssa-tail-merge.c: Likewise.
3569 * tree-ssa-threadedge.c: Likewise.
3570 * tree-ssa-threadupdate.c: Likewise.
3571 * tree-ssa-uncprop.c: Likewise.
3572 * tree-ssa-uninit.c: Likewise.
3573 * tree-ssa.c: Likewise.
3574 * tree-ssanames.c: Likewise.
3575 * tree-stdarg.c: Likewise.
3576 * tree-streamer-in.c: Likewise.
3577 * tree-streamer-out.c: Likewise.
3578 * tree-streamer.c: Likewise.
3579 * tree-streamer.h: Likewise.
3580 * tree-switch-conversion.c: Likewise.
3581 * tree-vect-data-refs.c: Likewise.
3582 * tree-vect-generic.c: Likewise.
3583 * tree-vect-loop-manip.c: Likewise.
3584 * tree-vect-loop.c: Likewise.
3585 * tree-vect-patterns.c: Likewise.
3586 * tree-vect-slp.c: Likewise.
3587 * tree-vect-stmts.c: Likewise.
3588 * tree-vectorizer.c: Likewise.
3589 * tree-vectorizer.h: Likewise.
3590 * tree-vrp.c: Likewise.
3593 * value-prof.c: Likewise.
3594 * value-prof.h: Likewise.
3595 * var-tracking.c: Likewise.
3596 * varasm.c: Likewise.
3597 * varpool.c: Likewise.
3598 * vmsdbgout.c: Likewise.
3599 * config/bfin/bfin.c: Likewise.
3600 * config/c6x/c6x.c: Likewise.
3601 * config/darwin.c: Likewise.
3602 * config/i386/i386.c: Likewise.
3603 * config/ia64/ia64.c: Likewise.
3604 * config/mep/mep.c: Likewise.
3605 * config/mips/mips.c: Likewise.
3606 * config/pa/pa.c: Likewise.
3607 * config/rs6000/rs6000-c.c: Likewise.
3608 * config/rs6000/rs6000.c: Likewise.
3609 * config/rx/rx.c: Likewise.
3610 * config/spu/spu-c.c: Likewise.
3611 * config/vms/vms.c: Likewise.
3612 * config/vxworks.c: Likewise.
3613 * config/epiphany/resolve-sw-modes.c: Likewise.
3615 2012-11-17 Jakub Jelinek <jakub@redhat.com>
3617 PR tree-optimization/55236
3618 * fold-const.c (make_range_step) <case NEGATE_EXPR>: For -fwrapv
3619 and signed ARG0_TYPE, force low and high to be non-NULL.
3621 2012-11-17 H.J. Lu <hongjiu.lu@intel.com>
3623 * common.opt (static-libasan): New option.
3624 * gcc.c (LIBASAN_SPEC): New macro.
3625 (LINK_COMMAND_SPEC): Replace -lasan with LIBASAN_SPEC.
3626 * doc/invoke.texi: Document -static-libasan.
3628 2012-11-17 Vladimir Makarov <vmakarov@redhat.com>
3630 PR rtl-optimization/55342
3631 * lra-assigns.c (spill_for): Try to allocate other reload pseudos
3632 before and after spilling.
3634 2012-11-16 Sandra Loosemore <sandra@codesourcery.com>
3636 * doc/extend.texi: Various copy-edits to comply with GCC coding
3637 standards for spelling, terminology, and markup, including use of
3638 American spelling, correct use of terms like "back end" and
3639 "run time", use correct name for GCC, use "@:" markup.
3641 2012-11-16 Jakub Jelinek <jakub@redhat.com>
3643 PR tree-optimization/55329
3644 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Never clear
3645 bits in needed_eh_cleanup while iterating over the bitmap.
3646 Look through all forwarder blocks at once.
3648 2012-11-16 Jan Hubicka <jh@suse.cz>
3650 * params.def (max-peeled-insns, max-completely-peeled-insns): Reduce
3653 2012-11-16 Simon Baldwin <simonb@google.com>
3655 * doc/cppopts.texi: Document -f[no-]canonical-system-headers.
3656 * doc/install.texi: Document --enable-canonical-system-headers.
3658 2012-11-16 Vladimir Makarov <vmakarov@redhat.com>
3660 PR rtl-optimization/55330
3661 * lra-constraints.c (MAX_INHERITANCE_PASSES): New macro.
3662 (lra_inheritance, lra_undo_inheritance): Use it to limit number of
3665 2012-11-16 Matthias Klose <doko@ubuntu.com>
3667 * config/pa/t-linux: New file; define MULTIARCH_DIRNAME.
3668 * config.gcc <hppa*64*-*-linux*, hppa*-*-linux*> (tmake_file):
3671 2012-11-16 Jakub Jelinek <jakub@redhat.com>
3674 * config/i386/i386.md (mov<mode>cc): Use comparison_operator
3675 instead of ordered_comparison_operator resp.
3676 ix86_fp_comparison_operator predicates.
3677 * config/i386/i386.c (ix86_expand_fp_movcc): Reject TImode
3678 or for -m32 DImode comparisons.
3680 2012-11-16 Jan Hubicka <jh@suse.cz>
3682 PR tree-optimization/54717
3683 * tree-ssa-pre.c (do_partial_partial_insertion): Consider also edges
3686 2012-11-16 Uros Bizjak <ubizjak@gmail.com>
3688 * config/i386/i386-protos.h (ix86_emit_mode_set): Add third argument.
3689 * config/i386/i386.h (EMIT_MODE_SET): Update.
3690 * config/i386/i386.c (ix86_avx_emit_vzeroupper): New function.
3691 (ix86_emit_mode_set) <AVX_U128>: Call ix86_avx_emit_vzeroupper.
3693 2012-11-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3696 * doc/extend.texi: Add details about bdver3.
3697 * doc/invoke.texi: Add details about bdver3.
3698 * config.gcc (i[34567]86-*-linux* | ...): Add bdver3.
3699 (case ${target}): Add bdver3.
3700 * config/i386/i386.h (TARGET_BDVER3): New definition.
3701 * config/i386/i386.md (define_attr "cpu"): Add bdver3.
3702 * config/i386/sse.md (sseshuf, sseshuf1): New type attributes.
3703 * config/i386/athlon.md: Handle sseshuf attribute.
3704 * config/i386/atom.md: Likewise.
3705 * config/i386/ppro.md: Likewise.
3706 * config/i386/bdver1.md: Likewise.
3707 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver3.
3708 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3709 bdver3 def_and_undef
3710 * config/i386/driver-i386.c (host_detect_local_cpu): Let
3711 -march=native recognize bdver3 processors.
3712 * config/i386/i386.c (struct processor_costs bdver3_cost): New.
3713 (m_BDVER3): New definition.
3714 (m_AMD_MULTIPLE): Includes m_BDVER3.
3715 (initial_ix86_tune_features): Add bdver3 tune.
3716 (processor_target_table): Add bdver3 entry.
3717 (static const char *const cpu_names): Add bdver3 entry.
3718 (software_prefetching_beneficial_p): Add bdver3.
3719 (ix86_option_override_internal): Add bdver3 instruction sets.
3720 (ix86_option_override_internal): Remove XSAVEOPT for bdver1 and bdver2.
3721 (ix86_issue_rate): Add bdver3.
3722 (ix86_adjust_cost): Add bdver3.
3723 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver3.
3724 (enum processor_type): Add PROCESSOR_BDVER3.
3725 * config/i386/bdver3.md: New file describing bdver3 pipelines.
3727 2012-11-15 David S. Miller <davem@davemloft.net>
3729 * expmed.c (expand_shift_1): Don't strip non-integral SUBREGs.
3731 * configure.ac: Add check for assembler SPARC4 instruction support.
3732 * configure: Rebuild.
3733 * config.in: Add HAVE_AS_SPARC4 section.
3734 * config/sparc/sparc.opt (mcbcond): New option.
3735 * doc/invoke.texi: Document it.
3736 * config/sparc/constraints.md: New constraint 'A' for 5-bit signed
3738 * doc/md.texi: Document it.
3739 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_CBCOND.
3740 (sparc_option_override): Likewise.
3741 (emit_cbcond_insn): New function.
3742 (emit_conditional_branch_insn): Call it.
3743 (emit_cbcond_nop): New function.
3744 (output_ubranch): Use cbcond, remove label arg.
3745 (output_cbcond): New function.
3746 * config/sparc/sparc-protos.h (output_ubranch): Update.
3747 (output_cbcond): Declare it.
3748 (emit_cbcond_nop): Likewise.
3749 * config/sparc/sparc.md (type attribute): New types 'cbcond'
3751 (emit_cbcond_nop): New attribute.
3752 (length attribute): Handle cbcond and uncond_cbcond.
3753 (in_call_delay attribute): Reject cbcond and uncond_cbcond.
3754 (in_branch_delay attribute): Likewise.
3755 (in_uncond_branch_delay attribute): Likewise.
3756 (in_annul_branch_delay attribute): Likewise.
3757 (*cbcond_sp32, *cbcond_sp64): New insn patterns.
3758 (jump): Rewrite into an expander.
3759 (*jump_ubranch, *jump_cbcond): New patterns.
3760 * config/sparc/niagara4.md: Match 'cbcond' in 'n4_cti'.
3761 * config/sparc/sparc.h (AS_NIAGARA4_FLAG): New macro, use it
3762 when target default is niagara4.
3763 (SPARC_SIMM5_P): Define.
3764 * config/sparc/sol2.h (AS_SPARC64_FLAG): Adjust.
3765 (AS_SPARC32_FLAG): Define.
3766 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Use
3767 AS_NIAGARA4_FLAG as needed.
3769 2012-11-15 Steve Ellcey <sellcey@mips.com>
3771 * expr.c (expand_cond_expr_using_cmove): Use promoted mode for temp.
3773 2012-11-15 Tom de Vries <tom@codesourcery.com>
3775 PR tree-optimization/54619
3776 * tree-ssa-loop-ivopts.c (get_use_type): New function.
3777 (get_computation_at): Use get_use_type.
3778 (get_computation_cost_at): Declare and set mem_mode. Use mem_mode.
3780 2012-11-15 Jakub Jelinek <jakub@redhat.com>
3782 * asan.c (report_error_func): Set DECL_IGNORED_P, don't touch
3783 DECL_ASSEMBLER_NAME.
3784 (asan_init_func): Likewise.
3785 (asan_finish_file): Use void * instead of __asan_global * as type of
3786 __asan_{,un}register_globals. Set DECL_IGNORED_P on the decls.
3788 2012-11-15 Matthias Klose <doko@ubuntu.com>
3790 * Makefile.in (if_multiarch): Don't use a GNU make 3.81 feature.
3792 2012-11-14 Jan Hubicka <jh@suse.cz>
3795 * gcov-io.c (gcov_read_summary): Fix array bound check.
3797 2012-11-14 Sterling Augustine <saugustine@google.com>
3800 * dwarf2out.c (index_address_table_entry): Check a node's refcount.
3802 2012-11-14 Jan Hubicka <jh@suse.cz>
3805 * ipa-inline.c (edge_badness): Improve dumping; fix overflow.
3807 2012-11-14 Matthias Klose <doko@ubuntu.com>
3809 * config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
3810 * config/sparc/t-linux: New file; define MULTIARCH_DIRNAME.
3811 * config.gcc <sparc-*-linux*> (tmake_file): Include sparc/t-linux
3812 for 32bit non-biarch configurations.
3814 2012-11-14 Matthias Klose <doko@ubuntu.com>
3816 * doc/invoke.texi: Document -print-multiarch.
3817 * doc/install.texi: Document --enable-multiarch.
3818 * doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME.
3819 * configure.ac: Add --enable-multiarch option.
3820 * configure: Regenerate.
3821 * Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib.
3822 enable_multiarch, with_float: New macros.
3823 if_multiarch: New macro, define in terms of enable_multiarch.
3824 * genmultilib: Add new argument for the multiarch name.
3825 * gcc.c (multiarch_dir): Define.
3826 (for_each_path): Search for multiarch suffixes.
3827 (driver_handle_option): Handle multiarch option.
3828 (do_spec_1): Pass -imultiarch if defined.
3829 (main): Print multiarch.
3830 (set_multilib_dir): Separate multilib and multiarch names
3831 from multilib_select.
3832 (print_multilib_info): Ignore multiarch names in multilib_select.
3833 * incpath.c (add_standard_paths): Search the multiarch include dirs.
3834 * cppdefault.h (default_include): Document multiarch in multilib
3836 * cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an
3837 include directory for multiarch directories.
3838 * common.opt: New options --print-multiarch and -imultilib.
3839 * config.gcc <i[34567]86-*-linux* | x86_64-*-linux*> (tmake_file):
3840 Include i386/t-linux.
3841 <i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu> (tmake_file):
3842 Include i386/t-kfreebsd.
3843 <i[34567]86-*-gnu*> (tmake_file): Include i386/t-gnu.
3844 * config/i386/t-linux64: Add multiarch names in
3845 MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME.
3846 * config/i386/t-gnu: New file.
3847 * config/i386/t-kfreebsd: Likewise.
3848 * config/i386/t-linux: Likewise.
3850 2012-11-14 Jan Hubicka <jh@suse.cz>
3852 * tree.c (set_call_expr_flags): New function.
3853 (local_define_builtin): Use it.
3854 * tree.h (set_call_expr_flags): Declare.
3856 2012-11-14 Uros Bizjak <ubizjak@gmail.com>
3857 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
3860 * config/i386/i386.c (gate_insert_vzeroupper): New function.
3861 (rest_of_handle_insert_vzeroupper): Ditto.
3862 (struct rtl_opt_pass pass_insert_vzeroupper): New.
3863 (ix86_option_override): Register vzeroupper insertion pass here.
3864 (ix86_check_avx256_register): Handle SUBREGs properly.
3865 (ix86_init_machine_status): Remove optimize_mode_switching[AVX_U128]
3868 2012-11-14 David Edelsohn <dje.gcc@gmail.com>
3870 * configure.ac (HAVE_LD_LARGE_TOC): Add AIX test.
3871 * configure: Regenerated.
3872 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Warn if
3873 other toc options used with cmodel. Disable TARGET_NO_FP_IN_TOC
3874 and TARGET_NO_SUM_IN_TOC if not CMODEL_SMALL. CMODEL_MEDIUM means
3875 CMODEL_LARGE on AIX.
3876 (ASM_SPEC): -mvsx implies -mpwr6. Add -many.
3877 (ASM_DEFAULT_SPEC): Use -mpwr4.
3878 (TARGET_CMODEL): Define.
3879 (SET_CMODEL): Define.
3880 * config/rs6000/rs6000.md (largetoc_high_aix<mode>): New.
3881 (largetoc_high_plus_aix<mode>): New.
3882 (largetoc_low<mode>): Change to mode iterator. Test TARGET_TOC
3883 instead of TARGET_ELF.
3884 (tocref): Remove TARGET_ELF test.
3885 * config/rs6000/rs6000.c (output_toc): Use [TE] for large TOC
3887 * config/rs6000/aix64.opt (mcmodel): New.
3889 2012-11-14 Andreas Tobler <andreast@fgznet.ch>
3891 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard
3892 variables with ASM_OUTPUT_TYPE_DIRECTIVE and
3893 HAVE_GNU_INDIRECT_FUNCTION where needed.
3895 2012-11-13 Ian Lance Taylor <iant@google.com>
3897 * common.opt (fPIC, fPIE, fpic, fpie): Create a Negative loop such
3898 that any of these options disables the others.
3900 2012-11-13 Sriraman Tallam <tmsriram@google.com>
3902 * cgraph.c (insert_new_cgraph_node_version): Use cgraph_get_node
3903 instead of cgraph_get_create_node.
3904 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Move
3905 ifunc not supported code to the end.
3907 2012-11-13 Martin Jambor <mjambor@suse.cz>
3909 PR tree-optimization/55253
3910 * ipa-cp.c (merge_aggregate_lattices): Propagate aggs_contain_variable
3913 2012-11-13 Eric Botcazou <ebotcazou@adacore.com>
3914 H.J. Lu <hongjiu.lu@intel.com>
3917 * config/i386/i386.c (legitimize_pic_address): Properly handle
3919 (ix86_print_operand_address): Set code to 'k' when forcing
3920 addr32 prefix. For x32, zero-extend negative displacement if
3923 2012-11-13 Uros Bizjak <ubizjak@gmail.com>
3926 * mode-switching.c (create_pre_exit): Set return_copy to last_insn if
3927 copy_start is not a function return regno. Skip debug instructions
3928 in instruction scan loop.
3930 2012-11-13 Andrew Stubbs <ams@codesourcery.com>
3931 Ulrich Weigand <ulrich.weigand@linaro.org>
3933 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Fix comment.
3934 * config/arm/arm.md (opt, opt_enabled): New attributes.
3935 (enabled): Use opt_enabled.
3936 (ashldi3, ashrdi3, lshrdi3): Add TARGET_NEON case.
3937 (ashldi3): Allow general operands for TARGET_NEON case.
3938 * config/arm/iterators.md (rshifts): New code iterator.
3939 (shift, shifttype): New code attributes.
3940 * config/arm/neon.md (UNSPEC_LOAD_COUNT): New unspec type.
3941 (neon_load_count, ashldi3_neon_noclobber, ashldi3_neon,
3942 signed_shift_di3_neon, unsigned_shift_di3_neon,
3943 ashrdi3_neon_imm_noclobber, lshrdi3_neon_imm_noclobber,
3944 <shift>di3_neon): New patterns.
3946 2012-11-13 Jakub Jelinek <jakub@redhat.com>
3948 * Makefile.in (asan.o): Depend on $(TM_P_H).
3950 PR tree-optimization/55281
3951 * tree-vect-generic.c (expand_vector_condition): Accept any
3952 is_gimple_val rather than just SSA_NAME if not COMPARISON_CLASS_P.
3953 * fold-const.c (fold_ternary_loc): Fold VEC_COND_EXPR if arg0 is
3954 either integer_all_onesp or integer_zerop.
3955 * tree-vect-stmts.c (vectorizable_condition): Build the condition
3956 using corresponding vector integer type instead of vectype.
3958 PR rtl-optimization/54127
3959 * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting
3960 asm goto labels from BB_HEAD (e->dest) to target bb, decrement
3961 LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of
3962 BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or
3963 REG_LABEL_TARGET and REG_LABEL_OPERAND.
3965 2012-11-12 Jakub Jelinek <jakub@redhat.com>
3967 * asan.c (instrument_builtin_call) <case BUILT_IN_BCOPY>: Fix up
3970 2012-11-13 Hans-Peter Nilsson <hp@axis.com>
3973 * config/cris/cris.c (cris_asm_output_mi_thunk): Call
3974 final_start_function and final_end_function.
3976 2012-11-12 David Edelsohn <dje.gcc@gmail.com>
3978 * asan.c: Include tm_p.h.
3980 2012-11-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3983 * config/pa/pa.md (attr type): Add sibcall and sh_func_adrs insn types.
3984 (in_branch_delay): Don't allow sibcall or sh_func_adrs insns.
3985 (in_nullified_branch_delay): Likewise.
3986 (in_call_delay): Likewise.
3987 Define delay for sibcall insns. Adjust Z3 and Z4 insn reservations for
3988 new types. Add opaque cond to mark all calls, sibcalls, dyncalls and
3989 the $$sh_func_adrs call as variable. Update type of sibcalls and
3990 $$sh_func_adrs call.
3991 * config/pa/pa.c (pa_adjust_insn_length): Revise to return updated
3992 length instead of adjustment. Handle negative and undefined call
3993 adjustments for insn_default_length. Remove adjustment for millicode
3994 insn with unfilled delay slot.
3995 (pa_output_millicode_call): Update for revised millicode length.
3996 * config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH.
3998 2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
4000 * tree-ssa-ccp.c (dump_lattice_value) <CONSTANT>: Fix duplication.
4002 2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
4004 * common.opt (fvar-tracking-uninit): Document.
4005 * toplev.c (process_options): Fix handling of flag_var_tracking_uninit.
4006 * config/darwin.c (darwin_override_options): Likewise.
4008 2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
4010 * sched-vis.c (print_pattern): Handle NULL patterns.
4012 2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
4013 Jakub Jelinek <jakub@redhat.com>
4015 PR rtl-optimization/51447
4016 * df-scan.c (df_get_entry_block_def_set): Add global regs to the set.
4017 * df-problems.c (df_lr_local_compute): Make global regs always live.
4018 * dce.c (deletable_insn_p): Make insns setting a global reg
4019 inherently necessary.
4021 2012-11-12 Ian Bolton <ian.bolton@arm.com>
4023 * config/aarch64/aarch64.md (cmov<mode>_insn): Emit CSINC when
4024 one of the alternatives is constant 1.
4025 * config/aarch64/constraints.md: New constraint.
4026 * config/aarch64/predicates.md: Rename predicate
4027 aarch64_reg_zero_or_m1 to aarch64_reg_zero_or_m1_or_1.
4029 2012-11-12 Ian Bolton <ian.bolton@arm.com>
4031 * config/aarch64/aarch64.md (*compare_neg<mode>): New pattern.
4033 2012-11-12 Tobias Burnus <burnus@net-b.de>
4035 * doc/invoke.texi: Move -faddress-sanitizer from Optimization
4036 Options to Debugging Options.
4038 2012-11-12 Jakub Jelinek <jakub@redhat.com>
4040 * asan.c: Formatting cleanups.
4042 2012-11-12 Wei Mi <wmi@google.com>
4044 * gcc.c (LINK_COMMAND_SPEC): Add -lasan to link command if
4045 -faddress-sanitizer is on.
4047 2012-11-12 Dodji Seketeli <dodji@redhat.com>
4049 * gimple.h (is_gimple_builtin_call): Declare ...
4050 * gimple.c (is_gimple_builtin_call): ... new public function.
4051 * asan.c (insert_if_then_before_iter, instrument_mem_region_access,
4052 instrument_strlen_call, maybe_instrument_builtin_call,
4053 instrument_call): New static functions.
4054 (create_cond_insert_point): Renamed
4055 create_cond_insert_point_before_iter into this. Add a new
4056 parameter to decide whether to insert the condition before or
4057 after the statement iterator.
4058 (build_check_stmt): Adjust for the new create_cond_insert_point.
4059 Add a new parameter to decide whether to add the instrumentation
4060 code before or after the statement iterator.
4061 (instrument_assignment): Factorize from ...
4062 (transform_statements): ... here. Use maybe_instrument_call to
4063 instrument builtin function calls as well.
4064 (instrument_derefs): Adjust for the new parameter of
4065 build_check_stmt. Fix detection of bit-field access.
4067 2012-11-12 Dodji Seketeli <dodji@redhat.com>
4069 * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
4070 (build_check_stmt): ... here.
4072 2012-11-12 Dodji Seketeli <dodji@redhat.com>
4074 * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
4075 (build_check_stmt): ... here.
4077 2012-11-12 Dodji Seketeli <dodji@redhat.com>
4079 * asan.c (build_check_stmt): Accept the memory access to be
4080 represented by an SSA_NAME.
4082 2012-11-12 Jakub Jelinek <jakub@redhat.com>
4083 Wei Mi <wmi@google.com>
4085 * varasm.c: Include asan.h.
4086 (assemble_noswitch_variable): Grow size by asan_red_zone_size
4087 if decl is asan protected.
4088 (place_block_symbol): Likewise.
4089 (assemble_variable): If decl is asan protected, increase
4090 DECL_ALIGN if needed, and for decls emitted using
4091 assemble_variable_contents append padding zeros after it.
4092 * Makefile.in (varasm.o): Depend on asan.h.
4093 * asan.c: Include output.h.
4094 (asan_pp, asan_pp_initialized, asan_ctor_statements): New variables.
4095 (asan_pp_initialize, asan_pp_string): New functions.
4096 (asan_emit_stack_protection): Use asan_pp{,_initialized}
4097 instead of local pp{,_initialized} vars, use asan_pp_initialize
4098 and asan_pp_string helpers.
4099 (asan_needs_local_alias, asan_protect_global,
4100 asan_global_struct, asan_add_global): New functions.
4101 (asan_finish_file): Protect global vars that can be protected. Use
4102 asan_ctor_statements instead of ctor_statements
4103 * asan.h (asan_protect_global): New prototype.
4104 (asan_red_zone_size): New inline function.
4106 2012-11-12 Jakub Jelinek <jakub@redhat.com>
4108 * Makefile.in (asan.o): Depend on $(EXPR_H) $(OPTABS_H).
4109 (cfgexpand.o): Depend on asan.h.
4110 * asan.c: Include expr.h and optabs.h.
4111 (asan_shadow_set): New variable.
4112 (asan_shadow_cst, asan_emit_stack_protection): New functions.
4113 (asan_init_shadow_ptr_types): Initialize also asan_shadow_set.
4114 * cfgexpand.c: Include asan.h. Define HOST_WIDE_INT heap vector.
4115 (partition_stack_vars): If i is large alignment and j small
4116 alignment or vice versa, break out of the loop instead of continue,
4117 and put the test earlier. If flag_asan, break out of the loop
4118 if for small alignment size is different.
4119 (struct stack_vars_data): New type.
4120 (expand_stack_vars): Add DATA argument. Change PRED type to
4121 function taking size_t argument instead of tree. Adjust pred
4122 calls. Fill DATA in and add needed padding in between variables
4123 if -faddress-sanitizer.
4124 (defer_stack_allocation): Defer everything for flag_asan.
4125 (stack_protect_decl_phase_1, stack_protect_decl_phase_2): Take
4126 size_t index into stack_vars array instead of the decl directly.
4127 (asan_decl_phase_3): New function.
4128 (expand_used_vars): Return var destruction sequence. Adjust
4129 expand_stack_vars calls, add another one for flag_asan. Call
4130 asan_emit_stack_protection if expand_stack_vars added anything
4132 (expand_gimple_basic_block): Add disable_tail_calls argument.
4133 (gimple_expand_cfg): Pass true to it if expand_used_vars returned
4134 non-NULL. Emit the sequence returned by expand_used_vars after
4136 * asan.h (asan_emit_stack_protection): New prototype.
4137 (asan_shadow_set): New decl.
4138 (ASAN_RED_ZONE_SIZE, ASAN_STACK_MAGIC_LEFT, ASAN_STACK_MAGIC_MIDDLE,
4139 ASAN_STACK_MAGIC_RIGHT, ASAN_STACK_FRAME_MAGIC): Define.
4140 (asan_protect_stack_decl): New inline.
4141 * toplev.c (process_options): Also disable -faddress-sanitizer on
4142 !FRAME_GROWS_DOWNWARDS targets.
4144 2012-11-12 Jakub Jelinek <jakub@redhat.com>
4146 * asan.c (build_check_stmt): Rename join_bb variable to else_bb.
4147 (gate_asan_O0): New function.
4148 (pass_asan_O0): New variable.
4149 * passes.c (init_optimization_passes): Add pass_asan_O0.
4150 * tree-pass.h (pass_asan_O0): New declaration.
4152 2012-11-12 Jakub Jelinek <jakub@redhat.com>
4153 Xinliang David Li <davidxl@google.com>
4154 Dodji Seketeli <dodji@redhat.com>
4156 * Makefile.in (GTFILES): Add $(srcdir)/asan.c.
4157 (asan.o): Update the dependencies of asan.o.
4158 * asan.c (tm.h, tree.h, tm_p.h, basic-block.h, flags.h
4159 function.h, tree-inline.h, tree-dump.h, diagnostic.h, demangle.h,
4160 langhooks.h, ggc.h, cgraph.h, gimple.h): Remove these unused but
4162 (shadow_ptr_types): New variable.
4163 (report_error_func): Change is_store argument to bool, don't append
4164 newline to function name.
4165 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Define.
4166 (build_check_stmt): Change is_store argument to bool. Emit GIMPLE
4167 directly instead of creating trees and gimplifying them. Mark
4168 the error reporting function as very unlikely.
4169 (instrument_derefs): Change is_store argument to bool. Use
4170 int_size_in_bytes to compute size_in_bytes, simplify size check.
4171 Use build_fold_addr_expr instead of build_addr.
4172 (transform_statements): Adjust instrument_derefs caller.
4173 Use gimple_assign_single_p as stmt test. Don't look at MEM refs
4175 (asan_init_shadow_ptr_types): New function.
4176 (asan_instrument): Don't push/pop gimplify context.
4177 Call asan_init_shadow_ptr_types if not yet initialized.
4178 * asan.h (ASAN_SHADOW_SHIFT): Adjust comment.
4180 2012-11-12 Jakub Jelinek <jakub@redhat.com>
4182 * toplev.c (process_options): Warn and turn off
4183 -faddress-sanitizer if not supported by target.
4184 * asan.c: Include target.h.
4185 (asan_scale, asan_offset_log_32, asan_offset_log_64,
4186 asan_offset_log): Removed.
4187 (build_check_stmt): Use ASAN_SHADOW_SHIFT and
4188 targetm.asan_shadow_offset ().
4189 (asan_instrument): Don't initialize asan_offset_log.
4190 * asan.h (ASAN_SHADOW_SHIFT): Define.
4191 * target.def (TARGET_ASAN_SHADOW_OFFSET): New hook.
4192 * doc/tm.texi.in (TARGET_ASAN_SHADOW_OFFSET): Add it.
4193 * doc/tm.texi: Regenerated.
4194 * Makefile.in (asan.o): Depend on $(TARGET_H).
4195 * config/i386/i386.c (ix86_asan_shadow_offset): New function.
4196 (TARGET_ASAN_SHADOW_OFFSET): Define.
4198 2012-11-12 Wei Mi <wmi@google.com>
4199 Diego Novillo <dnovillo@google.com>
4200 Dodji Seketeli <dodji@redhat.com>
4202 * Makefile.in: Add asan.c and its dependencies.
4203 * common.opt: Add -faddress-sanitizer option.
4204 * doc/invoke.texi: Document the new flag.
4205 * passes.c: Add the asan pass.
4206 * toplev.c (compile_file): Call asan_finish_file.
4209 * tree-pass.h: Declare pass_asan.
4211 2012-11-12 Tobias Burnus <burnus@net-b.de>
4213 * diagnostic.c (diagnostic_append_note): Also call va_end when
4214 inhibit_notes_p is true.
4216 2012-11-12 Bin Cheng <bin.cheng@arm.com>
4218 * gcse.c (struct bb_data): Add new fields, old_pressure, live_in
4220 (get_regno_pressure_class): Add prototype.
4221 (update_bb_reg_pressure): New.
4222 (should_hoist_expr_to_dom): Add new parameter from.
4223 Monitor the change of reg pressure and use it to drive hoisting.
4224 (hoist_code): Update LIVE and reg pressure information.
4225 (calculate_bb_reg_pressure): Initialize live_in and backup.
4227 2012-11-12 Oleg Endo <olegendo@gcc.gnu.org>
4229 * doc/md.texi (Standard Pattern Names For Generation): Fix swapped
4230 sine and cosine operands in the sincos description.
4232 2012-11-12 Oleg Endo <olegendo@gcc.gnu.org>
4235 * config/sh/sh.md (sincossf3): Fix swapped sin and cos operands.
4237 2012-11-11 H.J. Lu <hongjiu.lu@intel.com>
4239 * config/i386/i386.md (*movti_internal_rex64): Remove "!" from
4242 2012-11-11 Eric Botcazou <ebotcazou@adacore.com>
4244 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak.
4245 * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto.
4247 2012-11-11 Eric Botcazou <ebotcazou@adacore.com>
4248 H.J. Lu <hongjiu.lu@intel.com>
4250 PR rtl-optimization/55247
4252 * emit-rtl.c (adjust_address_1): If POINTERS_EXTEND_UNSIGNED > 0,
4254 * recog.c (offsettable_address_addr_space_p): Likewise.
4256 2012-11-11 Steven Bosscher <steven@gcc.gnu.org>
4259 * postreload.c (rest_of_handle_postreload): With non-call exceptions,
4260 if edges are purged call cleanup_cfg to remove unreachable blocks.
4262 2012-11-11 Sandra Loosemore <sandra@codesourcery.com>
4264 * doc/extend.texi: Copy-edit to use "built-in function" instead
4265 of "builtin", per GCC coding standards. Also use consistent
4266 capitalization in titles of sections describing built-in functions.
4268 2012-11-11 Martin Jambor <mjambor@suse.cz>
4270 PR tree-optimization/55238
4271 * ipa-cp.c (agg_pass_through_permissible_p): New function.
4272 (propagate_aggs_accross_jump_function): Use it.
4273 (find_aggregate_values_for_callers_subset): Likewise and relax an
4276 2012-11-10 Uros Bizjak <ubizjak@gmail.com>
4279 * config/i386/i386.c (check_avx256_stores): Remove.
4280 (ix86_check_avx256_register): New.
4281 (ix86_avx_u128_mode_needed): Use ix86_check_avx256_register.
4282 Check the whole RTX for 256bit registers using for_each_rtx.
4283 (ix86_check_avx_stores): New.
4284 (ix86_avx_u128_mode_after): Change mode of CALL RTX to AVX_U128_CLEAN
4285 if there are no 256bit registers used in the function return register.
4286 (ix86_avx_u128_mode_entry): Use ix86_check_avx256_register.
4287 (ix86_avx_u128_mode_exit): Ditto.
4289 2012-11-10 Jan Hubicka <jh@suse.cz>
4292 * ipa-inline.c (want_inline_small_function_p): Take aray index hint.
4293 (edge_badness): Likewise.
4294 * ipa-inline.h (inline_hints_vals): Add array_index and comments.
4295 (inline_summary): Add ARRAY_INDEX.
4296 * ipa-inline-analysis.c (dump_inline_hints): Dump array_index hint.
4297 (reset_inline_summary): Handle array_index hint.
4298 (inline_node_duplication_hook): Likewise.
4299 (dump_inline_summary): Likewise.
4300 (array_index_predicate): New function.
4301 (estimate_function_body_sizes): Use it.
4302 (estimate_node_size_and_time): Use array_index hint.
4303 (inline_merge_summary, inline_read_section): Likewise.
4305 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
4307 * doc/extend.texi: Copy-edit to use "bit-field" consistently
4308 instead of "bitfield" or "bit field".
4310 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
4312 * doc/extend.texi: Copy-edit to fix incorrect hyphenation phrases
4313 involving "bit", "byte", "word", "precision", and "floating"
4316 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
4318 * doc/extend.texi: Copy-edit to fix incorrect uses of "which"
4319 and "that" throughout the file.
4321 2012-11-10 Andrew Pinski <apinski@cavium.com>
4324 * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new"
4326 * configure: Regenerate.
4328 2012-11-10 Eric Botcazou <ebotcazou@adacore.com>
4330 * expr.c (store_field): Remove TYPE parameter. Remove block of code
4331 dealing with BLKmode in registers. Reimplement this support using
4332 pseudo-registers and bit-field techniques.
4333 (store_constructor_field): Remove TYPE parameter and adjust calls to
4335 (expand_assignment): Adjust calls to store_field. Add comment.
4336 (store_expr): Add comment.
4337 (store_constructor): Adjust calls to store_constructor_field.
4338 (expand_expr_real_2): Adjust call to store_field.
4340 2012-11-10 Vladimir Makarov <vmakarov@redhat.com>
4341 Uros Bizjak <ubizjak@gmail.com>
4344 * config/i386/i386.md (*movti_internal_rex64): Add "!" to riF->o
4347 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4350 * doc/invoke.texi: Document f[no-]ext-numeric-literals flag.
4352 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
4354 * doc/install.texi (sparc64-x-solaris2): Mention MPC as well.
4356 2012-11-09 Richard Henderson <rth@redhat.com>
4358 * config/i386/i386.c (ix86_lra_p): Remove.
4359 (TARGET_LRA_P): Use hook_bool_void_true.
4361 2012-11-09 Jason Merrill <jason@redhat.com>
4363 * attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST.
4365 2012-11-09 Vladimir Makarov <vmakarov@redhat.com>
4367 PR tree-optimization/55154
4368 * lra-int.h (LRA_LOSER_COST_FACTOR, LRA_MAX_REJECT): New macros.
4369 * lra.c (setup_operand_alternative): Use them.
4370 * lra-constraints.c (LOSER_COST_FACTOR, MAX_OVERALL_COST_BOUND):
4372 (process_alt_operands): Use LRA_LOSER_COST_FACTOR and LRA_MAX_REJECT.
4373 Accumulate reject instead of setting for non-const.
4374 (curr_insn_transform): Initialize best_losers and best_overall by
4377 2012-11-09 Christian Bruel <christian.bruel@st.com>
4379 * config/sh/sh.c (sh_can_use_simple_return_p): Enable with
4380 -freorder-blocks-and-partition.
4382 2012-11-09 Kenneth Zadeck <zadeck@naturalbridge.com>
4384 * rtl.h (CONST_SCALAR_INT_P): New macro.
4385 * cfgexpand.c (expand_debug_locations): Changed to use
4386 CONST_SCALAR_INT_P macro.
4387 * combine.c (try_combine, subst, make_extraction,
4388 gen_lowpart_for_combine): Ditto.
4389 * cselib.c (entry_and_rtx_equal_p, rtx_equal_for_cselib_1): Ditto.
4390 * dwarf2out.c (loc_descriptor): Ditto.
4391 * emit-rtl.c (gen_lowpart_common): Ditto.
4392 * ira-costs.c (record_reg_classes, record_address_regs): Ditto.
4393 * ira-lives.c (single_reg_class): Ditto.
4394 * recog.c (simplify_while_replacing, asm_operand_ok,
4395 constrain_operands): Ditto.
4396 * reload.c (find_reloads): Ditto.
4397 * simplify-rtx.c (simplify_unary_operation_1,
4398 simplify_const_unary_operation, simplify_binary_operation_1,
4399 simplify_const_binary_operation, simplify_relational_operation_1,
4400 simplify_subreg): Ditto.
4402 2012-11-09 Steven Bosscher <steven@gcc.gnu.org>
4405 * postreload.c (reload_cse_simplify): Return a bool indicating
4406 whether the CFG was changed.
4407 (reload_cse_regs_1): Traverse the CFG instead of the insns chain.
4408 Cleanup the CFG if edges may have been removed.
4409 (reload_cse_regs): Update.
4411 2012-11-09 Andrey Belevantsev <abel@ispras.ru>
4413 PR rtl-optimization/54472
4414 * sel-sched-ir.c (has_dependence_note_reg_set): Handle implicit sets.
4415 (has_dependence_note_reg_clobber, has_dependence_note_reg_use):
4418 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
4420 * config/i386/i386.c (release_scratch_register_on_entry): Also adjust
4423 2012-11-08 Christian Bruel <christian.bruel@st.com>
4425 * tree-ssa-tail-merge.c (replace_block_by): Update bb2 profile count.
4426 Do not reset dead bb1->frequency.
4428 2012-11-08 Steven Bosscher <steven@gcc.gnu.org>
4430 PR tree-optimization/55191
4431 * cfganal.c (connect_infinite_loops_to_exit): Call dfs_deadend here.
4432 (flow_dfs_compute_reverse_execute): Don't call it here.
4434 2012-11-08 Jakub Jelinek <jakub@redhat.com>
4437 * dwarf2out.c (gen_compile_unit_die): Don't call gen_producer_string
4438 here, instead add "" if producer_string is NULL.
4439 (dwarf2out_finish): Call gen_producer_string here, unconditionally
4440 decrease refcount of the old indirect string and set val_str to
4441 find_AT_string result.
4444 * cgraphunit.c (assemble_thunk): Don't call source_line debug hook
4445 here, instead call insn_locations_{init,finalize} and initialize
4448 2012-11-08 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4451 * gcc.c (process_command): Use save_switch for synthesized
4452 -fcompare-debug=* option; mark the switch as known.
4454 2012-11-08 Jakub Jelinek <jakub@redhat.com>
4457 * config/rs6000/rs6000.c (legitimate_indirect_address_p): Remove
4460 2012-11-08 Bernd Schmidt <bernds@codesourcery.com>
4462 PR rtl-optimization/54850
4463 * sched-deps.c (find_inc): Add all dependencies from the inc_insn
4466 2012-11-08 Jan Hubicka <jh@suse.cz>
4469 * ipa-inline.c (big_speedup_p): New function.
4470 (want_inline_small_function_p): Use it.
4471 (edge_badness): Dump it.
4472 * params.def (inline-min-speedup): New parameter.
4473 * doc/invoke.texi (inline-min-speedup): Document.
4475 2012-11-08 Martin Jambor <mjambor@suse.cz>
4477 * ipa-prop.c (determine_known_aggregate_parts): Skip writes to
4478 different declarations when tracking writes to a declaration.
4480 2012-11-07 David S. Miller <davem@davemloft.net>
4482 * config/sparc/constraints.md ("U"): Document, in detail,
4483 which this constraint is necessary.
4485 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
4488 * expr.c (store_expr): Do not call emit_block_move for
4491 2012-11-07 Eric Botcazou <ebotcazou@adacore.com>
4494 * fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if
4495 the argument is itself a conditional expression.
4497 2012-11-07 Vladimir Makarov <vmakarov@redhat.com>
4499 PR rtl-optimization/55122
4500 * lra-constraints.c (match_reload): Sync values for dead input pseudos.
4502 2012-11-07 Richard Henderson <rth@redhat.com>
4504 * trans-mem.c (pass_ipa_tm): Don't use TODO_update_ssa.
4506 2012-11-07 Peter Bergner <bergner@vnet.ibm.com>
4508 * doc/invoke.texi (-mcpu=power8): Document.
4509 * config.in (HAVE_AS_POWER8): New.
4510 * config.gcc: Add cpu_type power8.
4511 * configure.ac: (HAVE_AS_POWER8): Check for assembler support for
4512 the POWER8 instructions.
4513 * configure: Regenerate.
4514 * config/rs6000/rs6000.h: (ASM_CPU_POWER8_SPEC): Define.
4515 (ASM_CPU_SPEC): Pass %(asm_cpu_power8) for -mcpu=power8.
4516 (EXTRA_SPECS): Add asm_cpu_power8 spec string.
4517 * config/rs6000/rs6000-cpus.def (processor_target_table): Alias
4519 * config/rs6000/rs6000-tables.opt: Regenerate.
4520 * config/rs6000/driver-rs6000.c (ASM_CPU_SPEC): For -mcpu=power8,
4521 pass %(asm_cpu_power8)/-mpwr8.
4522 * config/rs6000/aix53.h: Likewise.
4523 * config/rs6000/aix61.h: Likewise.
4525 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
4528 * config/i386/i386.c (ix86_function_ok_for_sibcall): Put back exception
4529 to make a sibcall if one of the functions has void return type.
4531 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4534 * doc/invoke.texi (Wformat): Update.
4536 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4538 * optc-gen.awk: Factor code out to...
4539 * opt-functions.awk (lang_enabled_by): ... this new function.
4541 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4544 * common.opt (Wswitch,Wswitch-default,Wswitch-enum): Move to c.opt.
4546 2012-11-07 Yufeng Zhang <yufeng.zhang@arm.com>
4548 * config/aarch64/aarch64.c (aarch64_expand_prologue): Add the missing
4549 argument 'Pmode' to the 'plus_constant' call.
4551 2012-11-07 Martin Jambor <mjambor@suse.cz>
4553 PR tree-optimization/53787
4554 * ipa-cp.c (ipcp_value_source): New field offset.
4555 (ipcp_agg_lattice): New type.
4556 (ipcp_param_lattices): Likewise, move virt_call from ipcp_lattice here.
4557 (ipcp_agg_lattice_pool): New variable.
4558 (ipa_get_parm_lattices): New function.
4559 (ipa_get_lattice): Turned into ipa_get_scalar_lat, use the above.
4560 Adjusted all callers.
4561 (print_lattice): New function.
4562 (print_all_lattices): Use the above, also print aggregate lattices.
4563 (set_agg_lats_to_bottom): New function.
4564 (set_agg_lats_contain_variable): Likewise.
4565 (set_all_contains_variable): Likewise.
4566 (initialize_node_lattices): Also handle aggregate lattices, set
4567 virt_call in ipcp_param_lattices.
4568 (add_value_source): Handle offsets.
4569 (add_value_to_lattice): Likewise.
4570 (add_scalar_value_to_lattice): New function.
4571 (propagate_vals_accross_pass_through): Use add_scalar_value_to_lattice.
4572 (propagate_vals_accross_ancestor): Likewise.
4573 (propagate_accross_jump_function): Renamed to
4574 propagate_scalar_accross_jump_function, use
4575 add_scalar_value_to_lattice.
4576 (set_check_aggs_by_ref): New function.
4577 (merge_agg_lats_step): Likewise.
4578 (set_chain_of_aglats_contains_variable): Likewise.
4579 (merge_aggregate_lattices): Likewise.
4580 (propagate_constants_accross_call): Also handle aggregate lattices.
4581 (hint_time_bonus): New function.
4582 (context_independent_aggregate_values): Likewise.
4583 (gather_context_independent_values): Also handle agggregate values.
4584 (agg_jmp_p_vec_for_t_vec): New function.
4585 (estimate_local_effects): Also handle agggregate values.
4586 (add_all_node_vals_to_toposort): Likewise.
4587 (ipcp_propagate_stage): Use struct ipcp_param_lattices.
4588 (get_clone_agg_value): New function.
4589 (cgraph_edge_brings_value_p): Also handle agggregate values.
4590 (create_specialized_node): Likewise.
4591 (find_more_values_for_callers_subset): Rename to
4592 find_more_scalar_values_for_callers_subset. Modify dump.
4593 (copy_plats_to_inter): New function.
4594 (intersect_with_plats): Likewise.
4595 (agg_replacements_to_vector): Likewise.
4596 (intersect_with_agg_replacements): Likewise.
4597 (find_aggregate_values_for_callers_subset): Likewise.
4598 (known_aggs_to_agg_replacement_list): Likewise.
4599 (cgraph_edge_brings_all_scalars_for_node): Likewise.
4600 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4601 (perhaps_add_new_callers): Old functionality moved to
4602 cgraph_edge_brings_all_scalars_for_node, call it and
4603 cgraph_edge_brings_all_agg_vals_for_node.
4604 (ipcp_val_in_agg_replacements_p): New function.
4605 (decide_about_value): New function.
4606 (decide_whether_version_node): A lot of functionality moved to
4607 decide_about_value. Also handle agggregate values.
4608 (ipcp_driver): Also allocate ipcp_agg_lattice_pool.
4609 (pass_ipa_cp): Fill in new entries.
4610 * ipa-prop.c (ipa_node_agg_replacements): New variable.
4611 (free_parms_ainfo): New function.
4612 (ipa_analyze_node): Use free_parms_ainfo to free stuff.
4613 (ipa_find_agg_cst_for_param): Do not rely on offset ordering.
4614 (ipa_set_node_agg_value_chain): New function.
4615 (ipa_node_removal_hook): Also handle ipa_node_agg_replacements.
4616 (ipa_node_duplication_hook): Likewise.
4617 (ipa_free_all_structures_after_ipa_cp): Also free ipcp_agg_lattice_pool.
4618 (ipa_free_all_structures_after_iinln): Likewise.
4619 (ipa_dump_agg_replacement_values): New function.
4620 (write_agg_replacement_chain): Likewise.
4621 (read_agg_replacement_chain): Likewise.
4622 (ipa_prop_write_all_agg_replacement): Likewise.
4623 (read_replacements_section): Likewise.
4624 (ipa_prop_read_all_agg_replacement): Likewise.
4625 (adjust_agg_replacement_values): Likewise.
4626 (ipcp_transform_function): Likewise.
4627 * ipa-prop.h: Also define heap vector of ipa_agg_jf_item_t and of
4628 ipa_agg_jump_function_t.
4629 (ipa_node_params): Make lattices an array of ipcp_param_lattices.
4630 (ipa_agg_replacement_value): New type and its vector.
4631 (ipa_set_node_agg_value_chain) Declare.
4632 (ipa_node_agg_replacements): Likewise.
4633 (ipa_get_agg_replacements_for_node): New function.
4634 (ipcp_agg_lattice_pool): Declare.
4635 (ipa_dump_agg_replacement_values): Likewise.
4636 (ipa_prop_write_all_agg_replacement): Likewise.
4637 (ipa_prop_read_all_agg_replacement): Likewise.
4638 (ipcp_transform_function): Likewise.
4639 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time): Pass around
4640 known aggregates and hints.
4641 * ipa-inline.h: include ipa-prop.h.
4642 (estimate_ipcp_clone_size_and_time): Adjust declaration.
4643 * lto-streamer.h (lto_section_type): New item
4644 LTO_section_ipcp_transform.
4645 * lto-section-in.c (lto_section_name): New element ipcp_trans.
4646 * params.def (PARAM_IPA_CP_LOOP_HINT_BONUS): New parameter.
4647 * Makefile.in (IPA_INLINE_H): New. Use everywhee instead of
4650 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
4652 * config/i386/i386.c (enum upper_128bits_state): Remove.
4653 (check_avx256_store): Use bool pointer argument.
4654 (ix86_avx_u128_mode_needed): Use note_stores also for CALL insns.
4655 * config/i386/predicates.md (vzeroupper_operation): Use match_test.
4657 2012-11-07 Yufeng Zhang <yufeng.zhang@arm.com>
4659 * config/aarch64/aarch64.c (aarch64_expand_prologue): For the
4660 load-pair with writeback instruction, replace
4661 aarch64_set_frame_expr with add_reg_note (REG_CFA_ADJUST_CFA);
4662 add new local variable 'cfa_reg' and use it.
4664 2012-11-07 Kaz Kojima <kkojima@gcc.gnu.org>
4667 * mode-switching.c (create_pre_exit): Set short_block if there
4670 2012-11-07 Martin Jambor <mjambor@suse.cz>
4672 * lto-cgraph.c: Include tree-pass.h.
4673 (lto_output_node): Stream node->ipa_transforms_to_apply.
4674 (input_node): Likewise.
4675 * tree-pass.h (passes_by_id): Declare.
4676 (passes_by_id_size): Likewise.
4677 * Makefile.in (lto-cgraph.o): Add TREE_PASS_H to dependencies.
4679 2012-11-07 Jan Hubicka <jh@suse.cz>
4681 * ipa-inline-analysis.c (true_predicate, single_cond_predicate,
4682 reset_inline_edge_summary): Fix formatting.
4683 (account_size_time): Bump up the limit on number of size/time
4685 (estimate_function_body_sizes): Work in reverse postorder.
4687 2012-11-07 David S. Miller <davem@davemloft.net>
4691 * config/sparc/constraints.md ("U"): Delete.
4692 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
4693 * config/sparc/sync.md: Likewise.
4694 And revert parts of:
4695 * doc/md.texi: Sync sparc constraint documentation with reality.
4697 2012-11-07 Jakub Jelinek <jakub@redhat.com>
4699 * config/i386/i386.c (ix86_avx_u128_mode_after): Don't
4700 look for reg in CALL operand.
4703 * tree-flow.h (propagate_threaded_block_debug_into): New prototype.
4704 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): No
4706 * tree-ssa-loop-ch.c (copy_loop_headers): Use it.
4708 2012-11-06 Sterling Augustine <saugustine@google.com>
4710 * dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF.
4712 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
4713 Richard Henderson <rth@redhat.com>
4715 * cfg-flags.def (TM_UNINSTRUMENTED, TM_ABORT): New.
4716 * trans-mem.c (PROB_VERY_LIKELY, PROB_UNLIKELY, PROB_LIKELY): New.
4717 (struct tm_region): Add tm_state, restart_block,
4718 original_transaction_was_outer.
4719 (tm_region_init_0): Initialize them.
4720 (collect_bb2reg, get_bb_regions_instrumented): New.
4721 (tm_log_emit_save_or_restores): Merge into ...
4722 (expand_transaction): ... here.
4723 (generate_tm_state, propagate_tm_flags_out): New.
4724 (execute_tm_mark): Avoid processing blocks more than once.
4725 (split_bb_make_tm_edge): Split out from ...
4726 (make_tm_edge): ... here. And merge the rest into ...
4727 (expand_block_edges): ... here.
4728 (execute_tm_edges): Avoid processing blocks more than once.
4729 (ipa_uninstrument_transaction): New.
4730 (ipa_tm_scan_calls_transaction): Use it. Rebuild cgraph and ssa.
4731 (ipa_tm_execute): Init and free original_copy_tables.
4732 * trans-mem.h (PR_MULTIWAYCODE): New.
4733 * tree-cfg.c (make_edges): Use EDGE_TM_ABORT.
4735 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
4737 * cfghooks.c (copy_bbs): Handle a null loop_father.
4739 * cgraph.c (cgraph_debug_gimple_stmt): Handle a null
4740 current_function_decl.
4742 2012-11-06 Richard Henderson <rth@redhat.com>
4744 * tree-ssa-tail-merge.c (find_duplicate): Do not consider
4745 is_tm_ending_fndecl calls as mergable.
4747 2012-11-06 Sterling Augustine <saugustine@google.com>
4748 Cary Coutant <ccoutant@google.com>
4750 * common.opt (gno-split-dwarf, gsplit-dwarf): New switches.
4751 * doc/invoke.texi (Debugging Options): Document them.
4752 * gcc.c (replace_extension_spec_func): New function.
4753 (ASM_FINAL_SPEC): Adjust.
4754 (static_spec_functions): Add new field for replace-extension.
4755 (check_live_switch): Adjust comment. Add case for 'g'.
4756 * opts.c (finish_options): Set x_debug_generate_pub_sections based on
4757 x_dwarf_split_debug_info.
4758 (common_handle_option): Add case for OPT_gsplit_dwarf.
4759 * dwarf2out.h (addr_table_entry_struct): Add forward declaration.
4760 (dw_val_struct): Add val_entry pointer.
4761 * dwarf2out.c (debug_skeleton_info_section,
4762 debug_skeleton_abbrev_section, debug_addr_section,
4763 debug_skeleton_line_section, debug_str_offsets_section): New globals.
4764 (NOT_INDEXED, NO_INDEX_ASSIGNED): New defines.
4765 (indirect_string_node): New field index.
4766 (ate_kind): New enum with fields ate_kind_rtc, ate_kind_rtx_dtprel,
4768 (addr_table_entry): New structure and type.
4769 (dw_loc_list_struct): Add field begin_entry.
4770 (new_loc_desc): Initialize val_entry.
4771 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
4772 Add cases for DW_OP_GNU_addr_index and DW_OP_const_index.
4773 (build_cfa_loc): Initialize val_entry.
4774 (AT_index, add_addr_table_entry, remove_addr_table_entry,
4775 add_AT_lbl_id): New functions.
4776 (add_AT_addr, add_AT_range_list): New parameter force_direct.
4777 (output_die_abbrevs): New function.
4778 (add_ranges_by_labels): New parameter force_direct.
4779 (output_line_info): New parameter prologue_only.
4780 (dtprel_bool): New enum with dtprel_false and dtprel_true.
4781 (dw_addr_op, new_addr_loc_descr): New functions.
4782 (DEBUG_DWO_INFO_SECTION, DEBUG_DWO_ABBREV_SECTION,
4783 DEBUG_ADDR_SECTION, DEBUG_NORM_MACINFO_SECTION,
4784 DEBUG_DWO_MACINFO_SECTION, DEBUG_MACINFO_SECTION,
4785 DEBUG_NORM_MACRO_SECTION, DEBUG_DWO_MACRO_SECTION,
4786 DEBUG_MACRO_SECTION, DEBUG_DWO_LINE_SECTION,
4787 DEBUG_DWO_LOC_SECTION, DEBUG_NORM_STR_OFFSETS_SECTION,
4788 DEBUG_DWO_STR_OFFSETS_SECTION, DEBUG_STR_OFFSETS_SECTION,
4789 DEBUG_DWO_STR_SECTION, DEBUG_NORM_STR_SECTION, DEBUG_STR_SECTION,
4790 DEBUG_MACRO_SECTION_FLAGS, DEBUG_SKELETON_LINE_SECTION_LABEL,
4791 DEBUG_SKELETON_INFO_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL
4792 DEBUG_SKELETON_ABBREV_SECTION_LABEL): New macros.
4793 (DEBUG_STR_SECTION_FLAGS): Adjust.
4794 (TEXT_SECTION_LABEL, COLD_TEXT_SECTION_LABEL,
4795 DEBUG_LINE_SECTION_LABEL, DEBUG_INFO_SECTION_LABEL,
4796 DEBUG_ABBREV_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL,
4797 DEBUG_LOC_SECTION_LABEL, DEBUG_RANGES_SECTION_LABEL,
4798 DEBUG_MACINFO_SECTION_LABEL, DEBUG_MACRO_SECTION_LABEL): Adjust
4800 (debug_skeleton_abbrev_section_label, debug_addr_section_label,
4801 debug_skeleton_line_section_label, debug_skeleton_info_section_label):
4802 New global variables.
4803 (add_AT_flag, add_AT_int, add_AT_unsigned, add_AT_double, add_AT_vec,
4804 add_AT_data8): Initialize val_entry.
4805 (add_AT_low_high_pc): New parameter force_direct. Handle
4806 dwarf_split_debug_info.
4807 (set_indirect_string, find_AT_string_form): New functions.
4808 (AT_string_form): Adjust to call find_AT_string_from.
4809 (add_AT_die_ref, add_AT_fde_ref, add_AT_loc, add_AT_list):
4810 Initialize val_entry.
4811 (addr_index_table): New global variable.
4812 (addr_table_entry_do_hash, addr_table_entry_eq, add_addr_table_entry,
4813 init_addr_table_entry, remove_addr_table_entry, index_addr_table_entry,
4814 remove_loc_list_addr_table_entries): New functions.
4815 (add_AT_addr, add_AT_lbl_id, add_AT_range_list): New parameter
4816 force_direct. Handle dwarf_split_debug_info.
4817 (add_AT_file, add_AT_vms_delta, add_AT_lineptr, add_AT_macptr,
4818 add_AT_offset): Initialize val_entry.
4819 (UNRELOCATED_OFFSET, RELOCATED_OFFSET): New defines.
4820 (size_of_die): Handle dwarf_split_debug_info.
4821 (size_of_aranges, value_format): Call AT_class. Check AT_index.
4822 (output_die_abbrevs): New function.
4823 (output_abbrev_section): Call output_die_abbrevs.
4824 (new_loc_list): Initialize begin_entry.
4825 (output_loc_list): Handle dwarf_split_debug_info.
4826 (output_range_list_offset, output_loc_list_offset,
4827 output_attr_index_or_value, ): New functions.
4828 (output_die): Fix call to dw2_asm_output_data. Call
4829 output_attr_index_or_value and output_range_list_offset.
4830 Adjust logic around dw_val_class_str.
4831 (add_top_lebel_skeleton_die_attrs, get_skeleton_type_unit,
4832 output_skeleton_debug_sections): New functions.
4833 (output_comdat_type_unit, output_pubname, output_aranges): Handle
4834 dwarf_split_debug_info.
4835 (add_ranges_by_labels): New parameter force_direct.
4836 (mem_loc_descriptor, loc_descr): Call new_addr_loc_descr.
4837 (loc_list_from_tree, add_const_value_attribtue): Use dtprel_bools in
4838 place of generic integer.
4839 (dwarf2out_vms_debug_main_pointer, gen_entry_point_die, gen_label_die,
4840 gen_call_site_die, gen_subprogram_die, gen_variable_die,
4841 add_high_low_attributes): Adjust calls to add_AT_lbl_id.
4842 (output_macinfo_op): Adjust indirect_string_logic.
4843 (save_macinfo_strings): New function.
4844 (output_macinfo): Adjust.
4845 (dwarf2out_init): Handle dwarf_split_debug_info.
4846 (index_string, output_index_string_offset, output_index_string): New
4848 (output_indirect_string): Adjust.
4849 (output_indirect_strings, output_addr_table_entry, output_addr_table):
4851 (resolve_addr_in_expr, hash_loc_operands): Handle DW_OP_GNU_addr_index
4852 and DW_OP_GNU_const_index. Handle dwarf_split_debug_info. Call
4853 remove_loc_list_addr_table_entries and remove_addr_table_entry.
4854 (index_location_lists): New function.
4855 (dwarf2out_finish): Handle dwarf_split_debug_info. New variable
4856 main_comp_unit_die. Adjust calls to add_AT_low_high_pc,
4857 add_ranges_by_labels, add_AT_addr, and add_AT_lineptr. Call
4858 save_macinfo_strings and output_indirect_strings.
4860 2012-11-06 Gerald Pfeifer <gerald@pfeifer.com>
4862 * config/i386/i386.c (make_dispatcher_decl): Guard with
4863 ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION.
4865 2012-11-06 Jan Hubicka <jh@suse.cz>
4867 * ipa-inline-analysis.c (estimate_function_body_sizes,
4868 inline_update_overall_summary): Cap time calculations.
4870 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
4872 * config/i386/i386.c (ix86_init_machine_status): Do not
4873 explicitly clear tls_descriptor_call_expanded_p again.
4875 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
4877 * config/i386/sse.md
4878 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
4879 as read and written by the instruction.
4881 2012-11-06 Alexandre Oliva <aoliva@redhat.com>
4884 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
4885 Use a stack vector before allocating a pointer set.
4887 2012-11-06 Martin Jambor <mjambor@suse.cz>
4889 * ipa-prop.c (ipa_get_param_decl_index_1): New function.
4890 (ipa_get_param_decl_index): Just call ipa_get_param_decl_index_1.
4891 (ipa_populate_param_decls): Accept descriptors parameter rather
4892 than the whole info.
4893 (load_from_unmodified_param): Likewise.
4894 (ipa_load_from_parm_agg_1): Likewise.
4895 (ipa_load_from_parm_agg): Extract descriptors from info.
4896 (compute_complex_assign_jump_func): Likewise.
4897 (ipa_analyze_indirect_call_uses): Likewise.
4899 2012-11-06 Jan Hubicka <jh@suse.cz>
4901 * ipa-inline.c (compute_uninlined_call_time): Return gcov_type.
4902 (compute_inlined_call_time): Watch overflows.
4903 (relative_time_benefit): Compute in gcov_type.
4905 2012-11-06 Jan Hubicka <jh@suse.cz>
4907 * cfgloopanal.c (get_loop_hot_path): New function.
4908 * tree-ssa-lop-ivcanon.c (struct loop_size): Add CONSTANT_IV,
4909 NUM_NON_PURE_CALLS_ON_HOT_PATH, NUM_PURE_CALLS_ON_HOT_PATH,
4910 NUM_BRANCHES_ON_HOT_PATH.
4911 (tree_estimate_loop_size): Compute the new values.
4912 (try_unroll_loop_completely): Disable unrolling of loops with only
4913 calls or too many branches.
4914 (tree_unroll_loops_completely): Deal also with outer loops of hot loops.
4915 * cfgloop.h (get_loop_hot_path): Declare.
4916 * params.def (PARAM_MAX_PEEL_BRANCHES): New parameters.
4917 * invoke.texi (max-peel-branches): Document.
4919 2012-11-06 Jan Hubicka <jh@suse.cz>
4921 * ipa-pure-const.c (check_stmt): Fix debug info formatting.
4923 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
4925 * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
4926 (ix86_instantiate_decls): New function.
4927 (ix86_expand_builtin) <case IX86_BUILTIN_LDMXCSR>: Use SLOT_TEMP
4928 stack slot instead of SLOT_VIRTUAL.
4929 <case IX86_BUILTIN_STMXCSR>: Ditto.
4930 (assign_386_stack_local): Do not assert when virtual slot is valid.
4931 * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL.
4932 * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot.
4933 (truncxf<mode>2): Ditto.
4934 (floatunssi<mode>2): Ditto.
4935 (isinf<mode>2): Ditto.
4936 * config/i386/sync.md (atomic_load<mode>): Ditto.
4937 (atomic_store<mode>): Ditto.
4939 2012-11-06 Jan Hubicka <jh@suse.cz>
4941 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound,
4942 vect_do_peeling_for_alignment): Fix loop bound computation.
4943 * tree-vect-loop.c (vect_transform_loop): Maintain loop bounds.
4945 2012-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4948 * config/sh/sh.c (and_xor_ior_costs, addsubcosts): Double the costs for
4949 ops larger than SImode.
4950 * config/sh/sh.md (rotcl, *rotcl): New insns and splits.
4951 (ashldi3_k): Convert to insn_and_split and use new rotcl insn.
4953 2012-11-06 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4956 * config/i386/i386-protos.h (emit_i387_cw_initialization): Delete.
4957 (emit_vzero): Add prototype.
4958 (ix86_mode_entry): Likewise.
4959 (ix86_mode_exit): Likewise.
4960 (ix86_emit_mode_set): Likewise.
4962 * config/i386/i386.c (typedef struct block_info_def): Delete.
4963 (define BLOCK_INFO): Delete.
4964 (check_avx256_stores): Add checking for MEM_P.
4965 (move_or_delete_vzeroupper_2): Delete.
4966 (move_or_delete_vzeroupper_1): Delete.
4967 (move_or_delete_vzeroupper): Delete.
4968 (ix86_maybe_emit_epilogue_vzeroupper): Delete.
4969 (function_pass_avx256_p): Delete.
4970 (ix86_function_ok_for_sibcall): Remove sibcall disabling.
4971 (nit_cumulative_args): Remove initialization of of avx256 fields of
4973 (ix86_emit_restore_sse_regs_using_mov): Remove vzeroupper generation.
4974 (ix86_expand_epilogue): Likewise.
4975 (ix86_avx_u128_mode_needed): New.
4976 (ix86_i387_mode_needed): Rename from ix86_mode_needed.
4977 (ix86_mode_needed): New.
4978 (ix86_avx_u128_mode_after): New.
4979 (ix86_mode_after): New.
4980 (ix86_avx_u128_mode_entry): New.
4981 (ix86_mode_entry): New.
4982 (ix86_avx_u128_mode_exit): New.
4983 (ix86_mode_exit): New.
4984 (ix86_emit_mode_set): New.
4985 (ix86_expand_call): Delete vzeroupper generation.
4986 (ix86_split_call_vzeroupper): Delete.
4987 (ix86_init_machine_status): Initialize optimize_mode_switching.
4988 (ix86_expand_special_args_builtin): Change.
4989 (ix86_reorg): Delete a call of move_or_delete_vzeroupper.
4991 * config/i386/i386.h (VALID_AVX256_REG_OR_OI_MODE): New.
4993 (avx_u128_state): New.
4994 (NUM_MODES_FOR_MODE_SWITCHING): Added AVX_U128_ANY.
4998 (EMIT_MODE_SET): Change.
4999 (machine_function): Delete avx256 fields.
5001 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): Delete.
5002 (define_insn_and_split "*call_vzeroupper"): Delete.
5003 (define_insn_and_split "*call_rex64_ms_sysv_vzeroupper"): Delete.
5004 (define_insn_and_split "*sibcall_vzeroupper"): Delete.
5005 (define_insn_and_split "*call_pop_vzeroupper"): Delete.
5006 (define_insn_and_split "*sibcall_pop_vzeroupper"): Delete.
5007 (define_insn_and_split "*call_value_vzeroupper"): Delete.
5008 (define_insn_and_split "*sibcall_value_vzeroupper"): Delete.
5009 (define_insn_and_split "*call_value_rex64_ms_sysv_vzeroupper"): Delete.
5010 (define_insn_and_split "*call_value_pop_vzeroupper"): Delete.
5011 (define_insn_and_split "*sibcall_value_pop_vzeroupper"): Delete.
5012 (define_expand "return"): Remove vzeroupper emitting.
5013 (define_expand "simple_return"): Delete.
5015 * config/i386/predicates.md (vzeroupper_operation): New.
5017 * config/i386/sse.md (avx_vzeroupper): Change.
5019 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
5020 Kaz Kojima <kkojima@gcc.gnu.org>
5023 * mode-switching.c (create_pre_exit): Set return_copy to
5024 last_insn when copy_start is a pseudo reg.
5026 2012-11-06 Andrey Turetskiy <andrey.turetskiy@gmail.com>
5028 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_avx2_umulhrswv16hi3
5029 to CODE_FOR_avx2_pmulhrswv16hi3.
5030 * config/i386/predicates.md (const1_operand): Extend for vectors.
5031 * config/i386/sse.md (ssse3_avx2): Extend.
5032 (ssedoublemode): Ditto.
5033 (<sse2_avx2>_uavg<mode>3): Merge avx2_uavgv32qi3, sse2_uavgv16qi3,
5034 avx2_uavgv16hi3 and sse2_uavgv8hi3 into one.
5035 (*<sse2_avx2>_uavg<mode>3): Merge *avx2_uavgv32qi3, *sse2_uavgv16qi3,
5036 *avx2_uavgv16hi3 and *sse2_uavgv8hi3 into one.
5038 (<ssse3_avx2>_pmulhrsw<mode>3): Merge avx2_umulhrswv16hi3,
5039 ssse3_pmulhrswv8hi3 and ssse3_pmulhrswv4hi3 into one.
5040 (*avx2_pmulhrswv16hi3): Replace const_vector with const1_operand
5042 (*ssse3_pmulhrswv8hi3): Ditto.
5043 (*ssse3_pmulhrswv4hi3): Ditto.
5045 2012-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
5047 * config/epiphany/epiphany.c (epiphany_address_cost):
5050 2012-11-05 Sriraman Tallam <tmsriram@google.com>
5052 * doc/tm.texi.in (TARGET_OPTION_FUNCTION_VERSIONS): New hook
5054 * (TARGET_COMPARE_VERSION_PRIORITY): New hook description.
5055 * (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New hook description.
5056 * (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New hook description.
5057 * doc/tm.texi: Regenerate.
5058 * target.def (compare_version_priority): New target hook.
5059 * (generate_version_dispatcher_body): New target hook.
5060 * (get_function_versions_dispatcher): New target hook.
5061 * (function_versions): New target hook.
5062 * cgraph.c (cgraph_fnver_htab): New htab.
5063 (cgraph_fn_ver_htab_hash): New function.
5064 (cgraph_fn_ver_htab_eq): New function.
5065 (version_info_node): New pointer.
5066 (insert_new_cgraph_node_version): New function.
5067 (get_cgraph_node_version): New function.
5068 (delete_function_version): New function.
5069 (record_function_versions): New function.
5070 * cgraph.h (cgraph_node): New bitfield dispatcher_function.
5071 (cgraph_function_version_info): New struct.
5072 (get_cgraph_node_version): New function.
5073 (insert_new_cgraph_node_version): New function.
5074 (record_function_versions): New function.
5075 (delete_function_version): New function.
5076 (init_lowered_empty_function): Expose function.
5077 * tree.h (DECL_FUNCTION_VERSIONED): New macro.
5078 (tree_function_decl): New bit-field versioned_function.
5079 * cgraphunit.c (cgraph_analyze_function): Generate body of multiversion
5080 function dispatcher.
5081 (cgraph_analyze_functions): Analyze dispatcher function.
5082 (init_lowered_empty_function): Make non-static. New parameter in_ssa.
5083 (assemble_thunk): Add parameter to call to init_lowered_empty_function.
5084 * config/i386/i386.c (add_condition_to_bb): New function.
5085 (get_builtin_code_for_version): New function.
5086 (ix86_compare_version_priority): New function.
5087 (feature_compare): New function.
5088 (dispatch_function_versions): New function.
5089 (ix86_function_versions): New function.
5090 (attr_strcmp): New function.
5091 (ix86_mangle_function_version_assembler_name): New function.
5092 (ix86_mangle_decl_assembler_name): New function.
5093 (make_name): New function.
5094 (make_dispatcher_decl): New function.
5095 (is_function_default_version): New function.
5096 (ix86_get_function_versions_dispatcher): New function.
5097 (make_attribute): New function.
5098 (make_resolver_func): New function.
5099 (ix86_generate_version_dispatcher_body): New function.
5100 (fold_builtin_cpu): Return integer for cpu builtins.
5101 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): New macro.
5102 (TARGET_COMPARE_VERSION_PRIORITY): New macro.
5103 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New macro.
5104 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New macro.
5105 (TARGET_OPTION_FUNCTION_VERSIONS): New macro.
5107 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
5109 * recog.c (extract_insn): Enabled alternative defaults to 1.
5111 2012-11-05 H.J. Lu <hongjiu.lu@intel.com>
5113 * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with
5116 2012-11-05 Eric Botcazou <ebotcazou@adacore.com>
5118 PR tree-optimization/54986
5119 * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op
5120 conversions on entry but add them back on exit if needed.
5122 2012-11-05 Andreas Schwab <schwab@linux-m68k.org>
5124 * final.c (final_scan_insn) [HAVE_cc0]: Handle all comparison
5125 codes in non-jump and cmove insn.
5127 2012-11-05 Uros Bizjak <ubizjak@gmail.com>
5128 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
5130 * mode-switching.c (create_pre_exit): Force late switching if
5131 __builtin_{apply,return} emitted a load that require mode,
5132 other than MODE_EXIT.
5134 2012-11-05 Richard Sandiford <rdsandiford@googlemail.com>
5137 * config/i386/i386.c (ix86_address_subreg_operand): Remove stack
5139 (print_reg): Use true_regnum rather than REGNO.
5140 (ix86_print_operand_address): Remove SUBREG handling.
5142 2012-11-05 Jan Hubicka <jh@suse.cz>
5144 * tree-ssa-loop-niter.c (finite_loop_p): Revamp to be just wrapper of
5145 max_loop_iterations.
5147 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
5149 * reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
5150 with a return instruction.
5152 2012-11-05 Vladimir Makarov <vmakarov@redhat.com>
5154 PR rtl-optimization/55151
5155 * lra-constraints.c (process_alt_operands): Permit putting reg
5156 value into memory. Increase reject for this case.
5158 2012-11-05 Dehao Chen <dehao@google.com>
5160 * final.c (reemit_insn_block_notes): Do not change scope if insn
5161 location is UNKNOWN_LOCATION.
5163 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
5165 * doc/md.texi (Defining Attributes): Document that we are defining
5166 HAVE_ATTR_name macros as 1 for defined attributes, and as 0
5167 for undefined special attributes.
5168 * final.c (asm_insn_count, align_fuzz): Always define.
5169 (insn_current_reference_address): Likewise.
5170 (init_insn_lengths): Use if (HAVE_ATTR_length) instead of
5171 #ifdef HAVE_ATTR_length.
5172 (get_attr_length_1, shorten_branches, final): Likewise.
5173 (final_scan_insn, output_asm_name): Likewise.
5174 * genattr.c (gen_attr): Define HAVE_ATTR_name macros for
5175 defined attributes as 1.
5176 Remove ancient get_attr_alternative compatibility code.
5177 For special purpose attributes not provided, define HAVE_ATTR_name
5179 In case no length attribute is given, provide stub definitions
5180 for insn_*_length* functions, and also include insn-addr.h.
5181 In case no enabled attribute is given, provide stub definition.
5182 * genattrtab.c (write_length_unit_log): Always write a definition.
5183 * hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions.
5184 * hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare.
5185 * lra-int.h (struct lra_insn_recog_data): Make member
5186 alternative_enabled_p unconditional.
5187 * lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of
5188 #ifdef HAVE_ATTR_length.
5189 (lra_set_insn_recog_data): Likewise. Make initialization of
5190 alternative_enabled_p unconditional.
5191 (lra_update_insn_recog_data): Use #if instead of #ifdef for
5193 * recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define.
5194 (extract_insn): Check HAVE_ATTR_enabled.
5195 (gate_handle_split_before_regstack): Use #if instead of
5196 #if defined for HAVE_ATTR_length.
5198 2012-11-05 Jan Hubicka <jh@suse.cz>
5200 * ipa-inline.c (compute_uninlined_call_time,
5201 compute_inlined_call_time): New functions.
5202 (RELATIVE_TIME_BENEFIT_RANGE): New macro.
5203 (relative_time_benefit): Rewrite.
5204 (edge_badness): Rewrite path with guessed profile and estimated profile.
5205 * ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module):
5207 (struct inline_summary): Add GROWTH filed.
5208 * ipa-inline-analysis.c (dump_inline_hints): Update.
5209 (reset_inline_summary): Update.
5210 (dump_inline_summary): Update.
5211 (will_be_nonconstant_predicate): Cleanup to use gimple_store_p and
5212 gimple_assign_load_p predicates.
5213 (estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint.
5214 (simple_edge_hints): New function.
5215 (do_estimate_edge_time): Return time of invocation of callee rather
5216 than the time scaled by edge frequency; update hints code.
5217 (do_estimate_edge_hints): Update.
5218 (do_estimate_growth): Cleanup.
5220 2012-11-05 Jakub Jelinek <jakub@redhat.com>
5223 * dwarf2out.c (value_format) <case dw_val_class_high_pc>: Handle
5224 also DWARF2_ADDR_SIZE 1 and 2.
5226 2012-11-05 Jan Hubicka <jh@suse.cz>
5228 * tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
5229 (maybe_lower_iteration_bound): Initialize not_executed_last_iteration to NULL
5230 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
5231 just_once_each_iteration_p; record estimated bound when loop has only one
5232 likely exit; test just_once_each_iteration_p before IV canon itself.
5234 2012-11-05 Jan Hubicka <jh@suse.cz>
5236 * ipa-inline.c (leaf_node_p): Rename to ...
5237 (num_calls) ... this one.
5238 (want_early_inline_function_p): Allow smal growth on non-leafs.
5240 2012-11-05 Jakub Jelinek <jakub@redhat.com>
5243 * var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE
5245 (vt_initialize): Look for fp_setter in any bb, not just successor of
5248 2012-11-05 Oleg Endo <olegendo@gcc.gnu.org>
5250 * config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro.
5251 (TARGET_SUPERSCALAR): Add TARGET_SH2A.
5252 (CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
5254 (TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
5256 * config/sh/sh.c (sh_trampoline_init): Likewise.
5258 2012-11-05 David Edelsohn <dje.gcc@gmail.com>
5260 * system.h (loc_t): Poison.
5262 2012-11-05 Marc Glisse <marc.glisse@inria.fr>
5264 * fold-const.c (fold_unary_loc): Disable conversion optimization
5267 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
5269 * configure: Regenerate.
5271 2012-11-04 Eric Botcazou <ebotcazou@adacore.com>
5273 * combine.c: Adjust toplevel comment.
5274 (make_extraction): Adjust head comment and move up canonicalization.
5276 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
5277 Jakub Jelinek <jakub@redhat.com>
5280 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps
5281 for dropped IV sets.
5283 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
5286 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
5287 New, rewritten from debug stmt copying code...
5288 (thread_around_empty_block): ... removed from here.
5289 (thread_across_edge): Call propagate_threaded_block_debug_into.
5291 2012-11-04 Dehao Chen <dehao@google.com>
5293 * expr.c (expand_expr_real_1): Change to not using input_location.
5295 2012-11-03 Jan Hubicka <jh@suse.cz>
5297 * invoke.texi (profile-use): update documentation.
5298 * opts.c (common_handle_option): Enable tree-vectorize
5299 and tree-loop-distribute-patterns.
5300 * tree-loop-distribution.c (tree_loop_distribution): Skip loops
5302 * config/i386/i386.c (ix86_option_override_internal): Enabe
5303 prefetch_lop_arrays for profile-use.
5305 2012-11-03 Robert Mason <rbmj@verizon.net>
5307 * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks)
5309 2012-11-03 Sandra Loosemore <sandra@codesourcery.com>
5311 * doc/extend.texi: Copy-edit to use present tense except when
5312 explicitly describing future or past behavior.
5314 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
5316 * config/sh/sh.c (output_movedouble, output_far_jump,
5317 output_ieee_ccmpeq): Use multi-line strings for asm.
5318 (find_regmode_weight): Wrap lines.
5319 (sh_optimize_target_register_callee_saved): Remove commented out
5321 (emit_load_ptr): Remove prototype.
5323 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
5326 * config/sh/sh.md (*cbranch_t): Allow splitting after reload.
5327 Allow going beyond current basic block before reload when looking for
5329 * config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels.
5331 2012-11-02 Jan Hubicka <jh@suse.cz>
5333 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
5334 missing sign to unsigned.
5336 2012-11-02 Andrew Pinski <apinski@cavium.com>
5339 * simplify-rtx.c (simplify_relational_operation_1): Don't simplify
5340 (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not
5343 2012-11-02 Jan Hubicka <jh@suse.cz>
5345 * tree-ssa-loop-niter.c (double_int_cmp, bound_index,
5346 discover_iteration_bound_by_body_walk): New functions.
5347 (discover_iteration_bound_by_body_walk): Use it.
5349 2012-11-02 Jan Hubicka <jh@suse.cz>
5351 * predict.c (predict_loops): Predict also exits not dominating latch.
5353 2012-11-02 Jan Hubicka <jh@suse.cz>
5355 * predict.c (predict_loops): Do not predict infinite loops.
5357 2012-11-02 Jan Hubicka <jh@suse.cz>
5360 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
5361 MAX field if NITER was folded to contant.
5362 (record_estimate): Sanity check.
5363 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New
5365 (remove_redundant_iv_test): New function.
5366 (loops_to_unloop, loops_to_unloop_nunroll): New static vars.
5367 (unloop_loops): Break out from ...
5368 (try_unroll_loop_completely): ... here; Pass in MAXITER; use
5369 remove_exits_and_undefined_stmts; do not unloop.
5370 (canonicalize_loop_induction_variables): Compute MAXITER;
5371 use remove_redundant_iv_test; remove loop_close_ssa_invalidated
5372 and irred_invalidated arguments.
5373 (canonicalize_induction_variables): Compute fresh bound estimates;
5374 unloop; walk from innermost.
5375 (tree_unroll_loops_completely): Likewise.
5377 2012-11-02 Vladimir Makarov <vmakarov@redhat.com>
5380 * lra-constraints.c (debug_loc_equivalence_change_p): Rename to
5381 loc_equivalence_change_p.
5382 (lra_constraints): Check equiv_insn_bitmap for debug insn. Call
5383 loc_equivalence_change_p for non-transformed insn.
5385 2012-11-02 Eric Botcazou <ebotcazou@adacore.com>
5387 * cfg-flags.def (ABNORMAL_CALL): Fix comment.
5389 (SIBCALL): Likewise.
5390 * cfgrtl.c (rtl_verify_flow_info_1): Adjust error messages.
5391 Deal with EDGE_SIBCALL and fix the EDGE_ABNORMAL check.
5393 2012-11-02 Jakub Jelinek <jakub@redhat.com>
5396 * config/i386/i386.md (bswapdi2): Limit to TARGET_64BIT.
5397 (*bswapdi2_doubleword): Removed.
5399 2012-11-02 Gerald Pfeifer <gerald@pfeifer.com>
5401 * doc/install.texi (Specific): Remove moxie web reference.
5403 2012-11-01 Marc Glisse <marc.glisse@inria.fr>
5406 * tree-vect-generic.c (expand_vector_condition): New function.
5407 (expand_vector_operations_1): Call it.
5409 2012-11-01 Steve Ellcey <sellcey@mips.com>
5411 * target-globals.c (save_target_globals): Save lra_int struct.
5413 2012-11-01 Gerald Pfeifer <gerald@pfeifer.com>
5415 * doc/standards.texi (Standards): Adjust reference to Go specification.
5417 2012-11-01 Lawrence Crowl <crowl@google.com>
5419 * ebitmap.h: Remove unused.
5420 * ebitmap.c: Remove unused.
5421 * Makefile.in: Remove ebitmap.h and ebitmap.c.
5422 * sbitmap.h (SBITMAP_SIZE_BYTES): Move to source file.
5423 (SET_BIT_WITH_POPCOUNT): Remove unused.
5424 (RESET_BIT_WITH_POPCOUNT): Remove unused.
5425 (bitmap_copy_n): Remove unused.
5426 (bitmap_range_empty_p): Remove unused.
5427 (sbitmap_popcount): Remove unused.
5428 (sbitmap_verify_popcount): Make private to source file.
5429 * sbitmap.c (SBITMAP_SIZE_BYTES): Move here from header.
5430 (bitmap_copy_n): Remove unused.
5431 (bitmap_range_empty_p): Remove unused.
5432 (sbitmap_popcount): Remove unused.
5433 (sbitmap_verify_popcount): Make private to source file.
5435 2012-11-01 Lawrence Crowl <crowl@google.com>
5437 * sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add
5438 unused parameter to match bitmap iterator. Update callers.
5439 (sbitmap_iter_cond): Rename bmp_iter_set. Update callers.
5440 (sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to
5441 match bitmap iterator. Update callers.
5442 (EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused.
5443 (EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and
5444 adjust to be identical to the definition in bitmap.h. Conditionalize
5445 the definition based on not having been defined. Update callers.
5446 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition
5447 based on not having been defined. (To match the above.)
5449 2012-11-01 Lawrence Crowl <crowl@google.com>
5451 * sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter
5452 type. Update callers to match.
5453 (SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update
5455 (SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount,
5456 normalizing parameter type. Update callers to match.
5457 (RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type.
5458 Update callers to match.
5459 (RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount,
5460 normalizing parameter type. Update callers to match.
5461 * basic-block.h (sbitmap_intersection_of_succs): Rename
5462 bitmap_intersection_of_succs. Update callers to match.
5463 * basic-block.h (sbitmap_intersection_of_preds): Rename
5464 bitmap_intersection_of_preds. Update callers to match.
5465 * basic-block.h (sbitmap_union_of_succs): Rename
5466 bitmap_union_of_succs. Update callers to match.
5467 * basic-block.h (sbitmap_union_of_preds): Rename
5468 bitmap_union_of_preds. Update callers to match.
5470 2012-11-01 Vladimir Makarov <vmakarov@redhat.com>
5473 * lra-constraints.c (lra_constraints): Check only pseudos with
5474 equivalences. Add insns with equivalence pseudos.
5476 2012-11-01 Sharad Singhai <singhai@google.com>
5479 * dumpfile.h (struct dump_file_info): Fix order of flags.
5481 2012-11-01 Jan Hubicka <jh@suse.cz>
5484 * ipa-inline-transform.c (inline_call): Silence an sanity check until
5485 ipa-cp issue if fixed.
5487 2012-11-01 Sharad Singhai <singhai@google.com>
5489 * doc/invoke.texi: Update -fopt-info documentation.
5490 * dumpfile.c: Move dump_flags here from passes.c.
5491 Rename opt_info_options to optinfo_verbosity_options.
5492 Add optgroup_options.
5493 (dump_files): Add field for optinfo_flags in the static initializer.
5494 (dump_register): Handle additional parameter for optgroup_flags.
5495 (opt_info_enable_passes): Renamed opt_info_enable_all. Handle
5496 optgroup_flags. Fix documentation.
5497 (opt_info_switch_p_1): Handle optgroup options.
5498 (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files.
5499 * dumpfile.h (dump_register): Additional argument for optgroup_flags.
5500 All callers updated.
5501 (struct dump_file_info): Add field for optgroup_flags.
5502 Define OPTGROUP_* flags.
5503 * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags.
5504 All opt_pass static initializers updated.
5505 * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all'
5506 instead of 'optall'.
5507 (handle_common_deferred_options): Fix typo in error message.
5508 * passes.c (register_one_dump_file): Add argument for optgroup_flags.
5509 Turn on OPTGROUP_IPA for IPA passes.
5510 Move dump_flags from here to dumpfile.c.
5511 * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to
5514 2012-11-01 Joern Rennecke <joern.rennecke@embecosm.com>
5517 * config/sh/sh.md (doloop_end): Use emit_jump_insn.
5519 2012-10-31 Jakub Jelinek <jakub@redhat.com>
5521 PR tree-optimization/53708
5522 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
5523 user-supplied alignment when used with an explicit section name.
5525 2012-10-31 Dehao Chen <dehao@google.com>
5527 * tree-eh.c (do_return_redirection): Set location for jump statement.
5528 (do_goto_redirection): Likewise.
5529 (frob_into_branch_around): Likewise.
5530 (lower_try_finally_nofallthru): Likewise.
5531 (lower_try_finally_copy): Likewise.
5532 (lower_try_finally_switch): Likewise.
5533 * expr.c (store_expr): Use current insn location instead of expr
5535 (expand_expr_real): Likewise.
5536 (expand_expr_real_1): Likewise.
5538 2012-10-31 Easwaran Raman <eraman@google.com>
5542 * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note
5543 only if it doesn't already exist.
5544 * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL.
5545 (emit_case_dispatch_table): Handle the case where STMT_BB is NULL.
5546 (expand_sjlj_dispatch_table): Pass BB containing before_case
5547 to emit_case_dispatch_table.
5549 2012-10-31 Lawrence Crowl <crowl@google.com>
5552 (is_a <T> (U*)): New. Test for is-a relationship.
5553 (as_a <T> (U*)): New. Treat as a derived type.
5554 (dyn_cast <T> (U*)): New. Conditionally cast based on is_a.
5555 * cgraph.h (varpool_node): Rename to varpool_node_for_decl.
5556 Adjust callers to match.
5557 (is_a_helper <cgraph_node>::test (symtab_node_def *)): New.
5558 (is_a_helper <varpool_node>::test (symtab_node_def *)): New.
5559 (symtab_node_def::try_function): New. Change most calls to
5560 symtab_function_p with calls to dyn_cast <cgraph_node> (p).
5561 (symtab_node_def::try_variable): New. Change most calls to
5562 symtab_variable_p with calls to dyn_cast <varpool_node> (p).
5563 (symtab_function_p): Remove. Change callers to use
5564 is_a <cgraph_node> (p) instead.
5565 (symtab_variable_p): Remove. Change callers to use
5566 is_a <varpool_node> (p) instead.
5567 * cgraph.c (cgraph_node_for_asm): Remove redundant call to
5568 symtab_node_for_asm.
5569 * cgraphunit.c (symbol_finalized_and_needed): New.
5570 (symbol_finalized): New.
5571 (cgraph_analyze_functions): Split complicated conditionals out into
5572 above new functions.
5573 * Makefile.in (CGRAPH_H): Add is-a.h as used by cgraph.h.
5575 2012-10-31 Steven Bosscher <steven@gcc.gnu.org>
5576 Jakub Jelinek <jakub@redhat.com>
5578 PR tree-optimization/55018
5579 * basic-block.h (dfs_find_deadend): New prototype.
5580 * cfganal.c (dfs_find_deadend): No longer static. Use bitmap
5581 instead of sbitmap for visited.
5582 (flow_dfs_compute_reverse_execute): Use dfs_find_deadend here, too.
5583 * dominance.c (calc_dfs_tree): If saw_unconnected, traverse from
5584 dfs_find_deadend of unconnected b instead of b directly.
5586 2012-10-31 Eric Botcazou <ebotcazou@adacore.com>
5588 * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
5589 special register pushes before frame probing and allocation.
5591 2012-10-31 Vladimir Makarov <vmakarov@redhat.com>
5594 * lra-constraints.c (lra_constraints): Update debug insn info
5595 after equivalence change.
5597 2012-10-31 Jan Hubicka <jh@suse.cz>
5599 * ipa-inline.c (ipa_inline): Avoid infinite loop on inlining
5600 empty virtual functions calling themselves.
5602 2012-10-31 Tom Tromey <tromey@redhat.com>
5605 * doc/gcc.texi: Add @direntry for gcov.
5607 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
5609 * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len.
5611 2012-10-31 Jakub Jelinek <jakub@redhat.com>
5613 PR tree-optimization/19105
5614 PR tree-optimization/21643
5615 PR tree-optimization/46309
5616 * tree-ssa-reassoc.c (init_range_entry): Add STMT argument
5617 and use it if EXP is NULL.
5618 (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL.
5619 (optimize_range_tests): Likewise.
5620 (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops,
5621 maybe_optimize_range_tests): New functions.
5622 (reassociate_bb): Call maybe_optimize_range_tests if last
5623 stmt of bb is GIMPLE_COND that hasn't been visited yet.
5625 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5627 * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename
5629 (insvsi_internal, insvdi_internal, extvsi_internal)
5630 (extvdi_internal): ...this.
5631 (insv, extv): Update accordingly.
5633 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5635 * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume
5636 that zero_extracts of const_ints are doing word-sized extractions.
5638 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5640 * combine.c (make_extraction): Remove dead wanted_inner_mode-
5641 and pos_rtx-related code.
5643 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5645 * expmed.c (store_bit_field_1): Move generation of MEM insvs
5647 (extract_bit_field_1): Likewise extvs and extzvs.
5649 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5651 * expmed.c (store_bit_field_using_insv): New function,
5653 (store_bit_field_1): ...here.
5654 (extract_bit_field_using_extv): New function, split out from...
5655 (extract_bit_field_1): ...here.
5657 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5659 * expmed.c (store_bit_field_1): Use OP_MODE to check whether an
5660 insv pattern is available. Remove redundant checks for OP_MODE
5661 being MAX_MACHINE_MODE.
5662 (extract_bit_field_1): Remove redundant checks for EXT_MODE being
5665 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
5667 * expmed.c (store_bit_field_1): Remove test for BLKmode values.
5669 2012-10-31 Ralf Corsépius <ralf.corsepius@rtems.org>,
5670 Joel Sherrill <joel.sherrill@oarcorp.com>
5672 * config/sparc/t-rtems: New (Custom multilibs).
5673 * config/sparc/t-rtems-64: New (Custom multilibs).
5674 * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
5675 (sparc-*-rtems*): Add sparc/t-rtems.
5677 2012-10-31 Alan Modra <amodra@gmail.com>
5679 * config/rs6000/rs6000.c (legitimize_reload_address): Remove code
5680 handling non-aligned ld/std.
5681 * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'.
5682 * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise.
5683 * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise.
5684 * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'.
5686 2012-10-31 Alan Modra <amodra@gmail.com>
5688 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX.
5690 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
5692 * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to
5696 * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of
5697 last two parameters.
5699 2012-10-30 Alexandre Oliva <aoliva@redhat.com>
5703 * valtrack.c (dead_debug_promote_uses): Assert-check that
5704 global used bit was clear and initialize entry unconditionally.
5706 2012-10-30 Eric Botcazou <ebotcazou@adacore.com>
5708 * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
5710 (hash_rtx): Likewise.
5712 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
5714 PR rtl-optimization/55093
5715 * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress
5716 check for ARG_POINTER_REGNUM.
5718 2012-10-30 Steve Ellcey <sellcey@mips.com>
5720 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order
5722 (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs.
5723 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order.
5724 (MULTILIB_DIRNAMES): Ditto.
5725 (MULTILIB_EXCEPTIONS): New.
5727 2012-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
5729 * lra-constraints.c (check_secondary_memory_needed_p):
5730 Add ATTRIBUTE_UNUSED to parameters.
5732 2012-10-30 Richard Sandiford <rdsandiford@googlemail.com>
5734 * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition.
5735 * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition.
5736 * expr.c (SLOW_UNALIGNED_ACCESS): Likewise.
5737 * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise.
5738 (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here.
5740 2012-10-30 Jan Hubicka <jh@suse.cz>
5742 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup.
5744 2012-10-30 Jan Hubicka <jh@suse.cz>
5746 * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter
5747 EVERY_ITERATION with implicit value of true.
5748 (record_estimate): Check dominance relationship of the basic block
5749 we are estimating on instead of relying on UPPER to be false.
5750 (struct ilb_data): Drop RELIABLE.
5751 (idx_infer_loop_bounds): Update.
5752 (infer_loop_bounds_from_ref): Drop parameter RELIABLE.
5753 (infer_loop_bounds_from_array): Drop parameter RELIABLE.
5754 (infer_loop_bounds_from_undefined): Update comments and handling
5756 (estimate_numbers_of_iterations_loop): Record all bounds.
5758 2012-10-30 Richard Sandiford <r.sandiford@uk.ibm.com>
5760 * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
5761 rather than gen_rtx_SUBREG.
5763 2012-10-30 Richard Biener <rguenther@suse.de>
5765 * gimple.h (gimple_store_p): New predicate.
5766 (gimple_assign_load_p): Likewise.
5767 * tree-inline.c (estimate_num_insns): Use it.
5769 2012-10-30 Marc Glisse <marc.glisse@inria.fr>
5771 * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors.
5772 (fold_binary_loc): Call it for VEC_COND_EXPR.
5774 2012-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5775 Tejas Belagod <tejas.belagod@arm.com>
5777 * config/aarch64/aarch64-simd.md
5778 (aarch64_simd_bsl<mode>_internal): New pattern.
5779 (aarch64_simd_bsl<mode>): Likewise.
5780 (aarch64_vcond_internal<mode>): Likewise.
5781 (vcondu<mode><mode>): Likewise.
5782 (vcond<mode><mode>): Likewise.
5783 * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants.
5785 2012-10-30 Richard Biener <rguenther@suse.de>
5787 PR tree-optimization/55111
5788 * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt.
5790 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
5793 * config/sh/iterators.md (SIDI): New mode iterator.
5794 * config/sh/sh.md (negdi2): Use parallel around operation and T_REG
5795 clobber in expander.
5796 (*negdi2): Mark output operand as early clobbered. Add T_REG clobber.
5797 Split after reload. Simplify split code.
5798 (abssi2, absdi2): Fold expanders into abs<mode>2.
5799 (*abssi2, *absdi2): Fold into *abs<mode>2 insn_and_split. Split insns
5801 (*negabssi2, *negabsdi2): Fold into *negabs<mode>2. Add T_REG clobber.
5802 Split insns before reload.
5803 (negsi_cond): Reformat. Use emit_move_insn instead of gen_movesi.
5804 (negdi_cond): Reformat. Use emit_move_insn instead of a pair
5805 of gen_movsi. Split insn before reload.
5807 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
5810 * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero.
5811 (*tst<mode>_t_zero): New insns.
5812 * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes.
5814 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
5816 * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca.
5818 2012-10-30 Jakub Jelinek <jakub@redhat.com>
5821 * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New.
5822 * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after
5823 even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE.
5824 * dce.c (word_dce_process_block, dce_process_block): Pass
5825 DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore
5826 not going to be eliminated.
5828 2012-10-29 Lawrence Crowl <crowl@google.com>
5830 * sbitmap.h (sbitmap_copy): Rename bitmap_copy.
5831 (sbitmap_copy_n): Rename bitmap_copy_n.
5832 (sbitmap_equal): Rename bitmap_equal_p.
5833 (sbitmap_empty_p): Rename bitmap_empty_p.
5834 (sbitmap_range_empty_p): Rename bitmap_range_empty_p.
5835 (sbitmap_zero): Rename bitmap_clear.
5836 (sbitmap_ones): Rename bitmap_ones.
5837 (sbitmap_vector_zero): Rename bitmap_vector_clear.
5838 (sbitmap_vector_ones): Rename bitmap_vector_ones.
5839 (sbitmap_not): Rename bitmap_not.
5840 (sbitmap_a_and_b_cg): Commented out.
5841 (sbitmap_a_and_b): Rename bitmap_and. Add bool return.
5842 (sbitmap_difference): Rename bitmap_and_compl.
5843 (sbitmap_a_or_b_cg): Commented out.
5844 (sbitmap_a_or_b): Rename bitmap_xor. Add bool return.
5845 (sbitmap_a_xor_b_cg): Commented out.
5846 (sbitmap_a_xor_b): Rename bitmap_xor. Add bool return.
5847 (sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or.
5848 (sbitmap_a_and_b_or_c): Commented out.
5849 (sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and.
5850 (sbitmap_a_or_b_and_c): Commented out.
5851 (sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl.
5852 (sbitmap_union_of_diff): Commented out.
5853 (dump_sbitmap): Rename dump_bitmap.
5854 (dump_sbitmap_file): Rename dump_bitmap_file.
5855 (debug_sbitmap): Rename debug_bitmap.
5856 (dump_sbitmap_vector): Rename dump_bitmap_vector.
5857 (sbitmap_first_set_bit): Rename bitmap_first_set_bit.
5858 (sbitmap_last_set_bit): Rename bitmap_last_set_bit.
5859 (sbitmap_a_subset_b_p): Rename bitmap_subset_p.
5860 (sbitmap_any_common_bits): Rename bitmap_intersect_p.
5861 (#define sbitmap_free): Reimplement as inline function.
5862 (#define sbitmap_vector_free): Reimplement as inline function.
5863 * bitmap.h (#define bitmap_zero): Remove as redundant.
5864 (#define bitmap_empty_p): Reimplement as inline function.
5865 (#define dump_bitmap): Reimplement as inline function.
5867 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5870 * doc/invoke.texi (Warning Options): Document -Wno-return-local-addr.
5872 2012-10-29 H.J. Lu <hongjiu.lu@intel.com>
5874 * lra-assigns.c: Remove trailing white spaces.
5875 * lra-coalesce.c: Likewise.
5876 * lra-constraints.c: Likewise.
5877 * lra-eliminations.c: Likewise.
5878 * lra-int.h: Likewise.
5879 * lra-spills.c: Likewise.
5882 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5885 * tree.h (FUNCTION_POINTER_TYPE_P): New.
5887 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5890 * valtrack.c (dead_debug_insert_temp): Defer rescan of
5891 newly-emitted debug insn.
5893 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5896 * tree-ssa-threadedge.c (thread_around_empty_block): Copy
5897 debug temps from predecessor before threading.
5899 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5903 * valtrack.c (dead_debug_global_find): Accept NULL dtemp.
5904 (dead_debug_global_insert): Return new entry.
5905 (dead_debug_global_replace_temp): Return early if REG is no
5906 longer in place, or if dtemp was already substituted.
5907 (dead_debug_promote_uses): Insert for all defs and replace all
5909 (dead_debug_local_finish): Release used after promotion.
5910 (dead_debug_insert_temp): Stop if dtemp is NULL.
5912 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5915 * loop-unroll.c (loop_exit_at_end_p): Skip debug insns.
5917 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
5920 * config/i386/i386.c (add_parameter_dependencies): Stop
5921 backward scan at the insn before the incoming head.
5922 (ix86_dependencies_evaluation_hook): Skip debug insns. Stop
5923 if first_arg is head.
5925 2012-10-29 Andrew Pinski <apinski@cavium.com>
5927 * config/aarch64/aarch64-protos.h (aarch64_load_tp): New proto.
5928 * config/aarch64/aarch64.c (aarch64_load_tp): Export.
5929 (aarch64_init_builtins): Don't add __builtin_thread_pointer builtin.
5930 * config/aarch64/aarch64.h (aarch64_builtins): Delete
5931 AARCH64_BUILTIN_THREAD_POINTER.
5932 * config/aarch64/aarch64.md (get_thread_pointerdi): New pattern.
5934 2012-10-29 Marc Glisse <marc.glisse@inria.fr>
5937 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
5940 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
5942 * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP.
5944 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
5946 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
5947 for all addresses, zero-extended with AND.
5949 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
5952 * rtlanal.c (strip_address_mutation): Add SUBREG case.
5954 2012-10-29 Jan Hubicka <jh@suse.cz>
5956 * ipa-inline.c (want_inline_function_called_once_p): Rename to ...
5957 (want_inline_function_to_all_callers_p): check also functions with
5959 (ipa_inline): Handle inlining for size into multiple callers.
5961 2012-10-29 Richard Guenther <rguenther@suse.de>
5964 * tracer.c (tracer): Fixup loop structure.
5965 * cfgloopmanip.c (force_single_succ_latches): Add assert.
5966 (fix_loop_structure): Re-compute loop latches and disambiguate
5967 loops with multiple latches if required.
5969 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
5971 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
5972 to check SImode equivalent of address, zero-extended with AND RTX.
5973 * config/i386/i386.md (ashift to lea splitter): Split to SImode mult.
5974 (simple lea to add/shift peephole2s): Remove peephole2s that operate
5975 on subregs of DImode operations.
5977 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
5979 PR rtl-optimization/55106
5980 * lra-constraints.c (skip_usage_debug_insns): New function.
5981 (check_secondary_memory_needed_p): Ditto.
5982 (inherit_reload_reg): Use the new functions. Improve debug output.
5984 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5986 * doc/cpp.texi (Search Path): Fix outdated C++ path.
5988 2012-10-28 Jan Hubicka <jh@suse.cz>
5990 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
5991 &this->field expressions.
5993 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
5995 * rtl.h (struct rtx_def): Add a comment for member unchanging.
5996 * lra-int.h (LRA_TEMP_CLOBBER_P): New macro.
5997 (lra_hard_reg_substitution): Rename to lra_final_code_change.
5998 * lra-constraints.c (match_reload): Mark temporary clobbers.
5999 * lra-spill.c (lra_hard_reg_substitution): Rename to
6000 lra_final_code_change. Remove temporary clobbers.
6001 * lra.c (lra): Rename to lra_final_code_change.
6003 2012-10-28 Jan Hubicka <jh@suse.cz>
6005 * ipa-inline.c (edge_badness): Fix overflow.
6006 (inline_small_functions): Initialize SCCs correctly.
6007 (do_estimate_edge_time, do_estimate_edge_hints): Skip self
6008 recursive functions in SCC hints.
6010 2012-10-28 Steven Bosscher <steven@gcc.gnu.org>
6012 PR rtl-optimization/38711
6013 * ira.c (ira): Remove DF_LIVE if the problem is in the stack.
6014 (do_reload): Add it back at the end for -O2 and higher.
6016 * function.c (thread_prologue_and_epilogue_insns): Use
6017 REG_SET_TO_HARD_REG_SET instead of CLEAR_HARD_REG_SET and
6018 reg_set_to_hard_reg_set.
6020 2012-10-28 Jan Hubicka <jh@suse.cz>
6022 * ipa-inline.c (edge_badness): Reduce precision; use scc hints.
6023 (inline_small_functions): Fix dumps; update all callees after inlining.
6024 * ipa-inline.h (INLINE_HINT_in_scc, INLINE_HINT_same_scc): New
6026 (inline summary): Add SCC_NO.
6027 * ipa-inline-analysis.c (dump_inline_hints): Dump SCC hints.
6028 (reset_inline_summary): Reset scc_no.
6029 (estimate_node_size_and_time): Set in_scc hint.
6030 (do_estimate_edge_time): Add same_scc hint.
6031 (do_estimate_edge_hints): Likewise.
6033 2012-10-28 Andreas Schwab <schwab@linux-m68k.org>
6035 * doc/cppopts.texi: Fix use of @item vs. @itemx inside @table.
6036 * doc/extend.texi: Likewise.
6037 * doc/generic.texi: Likewise.
6038 * doc/invoke.texi: Likewise.
6039 * doc/md.texi: Likewise.
6040 * doc/sourcebuild.texi: Likewise.
6042 * doc/tm.texi.in (Misc): Add newline before @end.
6043 * doc/tm.texi: Update.
6045 2012-10-27 Joern Rennecke <joern.rennecke@embecosm.com>
6047 * lra-assigns.c (find_hard_regno_for): Fix use of WORDS_BIG_ENDIAN.
6049 2012-10-27 Georg-Johann Lay <avr@gjlay.de>
6052 * config/avr/avr.c (avr_out_lpm): Remove unused regno_dest.
6054 2012-10-27 Oleg Endo <olegendo@gcc.gnu.org>
6057 * config/sh/sh.c (sh1_builtin_p): Comment out unused function.
6059 2012-10-27 Uros Bizjak <ubizjak@gmail.com>
6061 * config/i386/i386.md (*lea<mode>): Remove unneeded temporary.
6063 2012-10-26 David S. Miller <davem@davemloft.net>
6065 * config/sparc/constraints.md: Update unused letter list, move
6066 "w" near other memory constraints. Remove no longer relevant
6068 * doc/md.texi: Sync sparc constraint documentation with reality.
6070 2012-10-26 DJ Delorie <dj@redhat.com>
6072 * config/rl78/rl78.c (rl78_as_legitimate_address): Do not allow
6073 reg+addend addresses for the _far namespace.
6075 2012-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6077 * config/rs6000/sync.md (ATOMIC): Correct DI condition.
6079 2012-10-26 Jakub Jelinek <jakub@redhat.com>
6082 * cfgexpand.c (expand_debug_expr): Expand &MEM_REF[&var, n]
6083 as DEBUG_IMPLICIT_PTR + n if &var expands to DEBUG_IMPLICIT_PTR.
6084 * tree-sra.c (create_access_replacement): Allow also MEM_REFs
6085 with ADDR_EXPR first operand in DECL_DEBUG_EXPR expressions.
6086 * var-tracking.c (track_expr_p): Handle MEM_REFs in DECL_DEBUG_EXPR
6088 * dwarf2out.c (add_var_loc_to_decl): Likewise.
6090 2012-10-26 Jeff Law <law@redhat.com>
6092 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Use last stmt.
6094 2012-10-26 Gunther Nikl <gnikl@users.sourceforge.net>
6096 * common/config/m68k/m68k-common.c (m68k_handle_option): Set
6097 gcc_options fields of opts_set for -m68020-40 and -m68020-60.
6099 2012-10-26 Teresa Johnson <tejohnson@google.com>
6101 * ree.c (add_removable_extension): Remove unnecessary
6102 mode check with other extension.
6103 * testsuite/gcc.c-torture/execute/20111227-2.c: New test.
6104 * testsuite/gcc.c-torture/execute/20111227-3.c: Ditto.
6106 2012-10-26 Jan Hubicka <jh@suse.cz>
6108 * ipa-inline-transform.c (inline_call): Only account size changes
6111 2012-10-26 Martin Jambor <mjambor@suse.cz>
6114 * tree-sra.c (struct access): New flag grp_to_be_debug_replaced.
6115 (dump_access): Dump the new flag.
6116 (analyze_access_subtree): Set the new flag when appropriate.
6117 (create_access_replacement): Handle debug replacements differently.
6118 (generate_subtree_copies): Handle the grp_to_be_debug_replaced flag.
6119 (init_subtree_with_zero): Likewise.
6120 (sra_modify_expr): Likewise.
6121 (load_assign_lhs_subreplacements): Likewise.
6122 (sra_modify_assign): Likewise.
6124 2012-10-23 Yuri Rumyantsev <ysrumyan@gmail.com>
6126 * config/i386/i386.c (insn_is_function_arg) : Add check on CALL
6128 (ix86_dependencies_evaluation_hook): Insert dependencies in all
6129 predecessors of call block for non-trivial region avoiding creation
6130 of loop-carried dependency to avoid cross-block motion of HW registers.
6132 2012-10-26 Richard Biener <rguenther@suse.de>
6135 * tree-optimize.c (execute_fixup_cfg): Insert __builtin_unreachable
6136 at the end of blocks with no successors.
6138 2012-10-26 Alexander Ivchenko <alexander.ivchenko@intel.com>
6139 Uros Bizjak <ubizjak@gmail.com>
6141 * common/config/i386/i386-common.c
6142 (OPTION_MASK_ISA_FXSR_SET): New.
6143 (OPTION_MASK_ISA_XSAVE_SET): Likewise.
6144 (OPTION_MASK_ISA_XSAVEOPT_SET): Likewise.
6145 (ix86_handle_option): Handle mfxsr, mxsave, mxsaveopt options.
6146 * config.gcc (i[34567]86-*-*): Add fxsrintrin.h,
6147 xsaveintrin.h, xsaveoptintrin.h.
6148 (x86_64-*-*): Likewise.
6149 * config/i386/fxsrintrin.h: New header.
6150 * config/i386/xsaveintrin.h: Likewise.
6151 * config/i386/xsaveoptintrin.h: Likewise.
6152 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6153 FXSR/XSAVE/XSAVEOPT support.
6154 * config/i386/i386-builtin-types.def
6155 (VOID_FTYPE_PVOID_INT64): New function type.
6156 * config/i386/i386-c.c: Define __FXSR__, __XSAVE__
6157 and __XSAVEOPT__ if needed.
6158 * config/i386/i386.c (ix86_target_string): Define -mfxsr,
6159 -mxsave and -mxsaveopt options.
6161 (PTA_XSAVE): Likewise.
6162 (PTA_XSAVEOPT): Likewise.
6163 (ix86_option_override_internal): Handle new option.
6164 (processor_alias_table): Added PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT.
6165 (ix86_valid_target_attribute_inner_p): Add OPT_mfxsr,
6166 OPT_mxsave, OPT_mxsaveopt.
6167 (ix86_builtins): Add IX86_BUILTIN_FXSAVE, IX86_BUILTIN_FXRSTOR,
6168 IX86_BUILTIN_FXSAVE64, IX86_BUILTIN_XSAVE, IX86_BUILTIN_XSAVE64,
6169 IX86_BUILTIN_XRSTOR, IX86_BUILTIN_XRSTOR64, IX86_BUILTIN_XSAVEOPT,
6170 IX86_BUILTIN_XSAVEOPT64.
6171 (ix86_expand_builtin): Handle these built-ins.
6172 * config/i386/i386.h (TARGET_FXSR): New.
6173 (TARGET_XSAVE): Likewise.
6174 (TARGET_XSAVEOPT): Likewise.
6175 * config/i386/i386.md (ANY_XSAVE): New int iterator.
6176 (ANY_XSAVE64): Likewise.
6177 (xsave): New int attribute.
6178 (fxsave): New instruction.
6179 (fxsave64): Likewise.
6180 (fxrstor): Likewise.
6181 (fxrstor64): Likewise.
6182 (<xsave>): Likewise.
6183 (<xsave>_rex64): Likewise.
6185 (xrstor_rex64): Likewise.
6186 (xrstor64): Likewise.
6187 * config/i386/i386.opt (mfxsr): New.
6189 (mxsaveopt): Likewise.
6190 * config/i386/x86intrin.h: Include
6191 xsaveintrin.h, fxsrintrin.h, xsaveoptintrin.h.
6193 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
6195 * config/avr/t-rtems: Revert previous commit.
6197 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6200 * Makefile.in (rtlanal.o): Add dependency on addresses.h.
6201 * rtl.h (address_info): New structure.
6202 (strip_address_mutations, decompose_address, decompose_lea_address)
6203 (decompose_mem_address, update_address, get_index_scale)
6204 (get_index_code): Declare.
6205 * rtlanal.c: Include addresses.h.
6206 (strip_address_mutations, must_be_base_p, must_be_index_p)
6207 (set_address_segment, set_address_base, set_address_index)
6208 (set_address_disp, decompose_incdec_address, decompose_automod_address)
6209 (extract_plus_operands, baseness, decompose_normal_address)
6210 (decompose_address, decompose_lea_address, decompose_mem_address)
6211 (update_address, get_index_scale, get_index_code): New functions.
6212 * lra-constraints.c (strip_subreg): New function.
6213 (address, extract_loc_address_regs, extract_address_regs)
6214 (get_index_scale): Delete.
6215 (process_addr_reg): Apply strip_subreg to the location.
6216 (uses_hard_regs_p): Use decompose_mem_address.
6217 (valid_address_p, base_plus_disp_to_reg, can_add_disp_p)
6218 (equiv_address_substitution): Take an address_info rather
6219 than an address. Remove other arguments. Avoid using Pmode.
6220 (process_address): Use decompose_mem_address and decompose_lea_address.
6221 Update calls to above functions.
6223 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6225 * lra-constraints.c (process_address): Tighten arguments to
6226 base_reg_class. Use simplify_gen_binary to generate PLUS rtxes.
6228 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6230 * lra-constraints.c (get_index_scale, can_add_disp_p): New functions.
6231 (equiv_address_substitution): Use them.
6233 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6235 * lra-constraints.c (valid_address_p): New function, split out from...
6236 (process_address): ...here.
6238 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
6240 * lra-constraints.c (process_address): Describe the kinds of address
6243 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
6245 * lra-int.h (lra_assert): Redefine it gcc_checking_assert.
6246 * lra-constraints.c (check_and_process_move): Remove #if
6247 ENABLE_ASSERT_CHECKING.
6249 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
6251 * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
6253 * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
6255 2012-10-25 David S. Miller <davem@davemloft.net>
6257 * config/sparc/constraints.md ("U"): Delete.
6258 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
6259 * config/sparc/sync.md: Likewise.
6261 2012-10-25 Lawrence Crowl <crowl@google.com>
6263 * hash-table.h: Add usage documentation.
6264 (template struct typed_free_remove): Clarify documentation.
6265 Rename template parameter.
6266 (struct typed_noop_remove): Likewise.
6267 (descriptor concept): Change typedef T to value_type.
6268 Add typedef compare_type. Use more precise template parameter name,
6269 Descriptor instead of Descr. Update users to match.
6270 (struct hash_table): Change 'find' parameters to use compare_type
6271 instead of the value type.
6273 2012-10-25 Jan Hubicka <jh@suse.cz>
6275 * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned
6276 to direct call update the summary.
6277 * ipa-inline-transform.c (inline_call): Sanity check that summaries
6278 match the predicted effect; fix updating of summary after edge
6280 * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try
6281 to update the summary and recompute it instead.
6282 (estimate_function_body_sizes): Fix self size estimation; double
6283 check that it agrees with inline_update_overall_summary.
6284 (estimate_edge_size_and_time): Handle devirtualizaiton costs.
6285 (estimate_edge_devirt_benefit): Update to be called from
6286 estimate_edge_size_and_time.
6287 (estimate_calls_size_and_time): Update.
6288 (estimate_node_size_and_time): Watch overflows.
6289 (inline_merge_summary): Likewise.
6290 * ipa-prob.c: Include ipa-inline.h
6291 (ipa_make_edge_direct_to_target): After redirection update the summary.
6293 2012-10-25 Cary Coutant <ccoutant@google.com>
6296 * dwarf2out.c (prune_unused_types_prune): Check whether DIE is
6297 already a declaration.
6299 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
6301 * lra-assigns.c (assign_by_spills): Add non-reload pseudos
6302 assigned to hard register to changed_pseudo_bitmap.
6304 2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
6306 * config.gcc (microblaze*-*-rtems*): New target.
6307 * config/microblaze/rtems.h: New.
6308 * config/microblaze/t-rtems: New.
6310 2012-10-25 Jan Hubicka <jh@suse.cz>
6312 PR tree-optimize/54980
6313 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo.
6314 (loop_edge_to_cancel): Be sure that the edge is from an conditional
6315 so we can cancel it.
6317 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
6320 * tree.c (signed_or_unsigned_type_for): Handle vectors.
6322 2012-10-25 Jan Hubicka <jh@suse.cz>
6324 * ipa-inline.c (recursive_inlining): Redirect to master
6325 clone before testing profitability.
6327 2012-10-25 Richard Biener <rguenther@suse.de>
6329 PR tree-optimization/54902
6330 * tree-ssa-pre.c (fini_eliminate): Return TODO.
6332 (execute_fre): Likewise.
6333 * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
6334 blocks before computing dominators.
6336 2012-10-25 Richard Sandiford <rdsandiford@googlemail.com>
6338 * expr.c (emit_block_move_via_loop): Use simplify_gen_binary
6339 rather than gen_rtx_PLUS.
6341 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6345 * ira.c (setup_reg_renumber): Fix assert.
6346 * ira-emit.c (emit_move_list): Update equivalences only for LRA.
6348 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6351 * lra.c: Rename loc to sloc and loc_t to sloc_t.
6353 2012-10-24 Sharad Singhai <singhai@google.com>
6355 * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
6356 instead of dump_kind_p.
6358 2012-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6361 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc):
6362 Use diagnostic_append_note.
6363 * diagnostic.c (diagnostic_build_prefix): Make diagnostic const.
6364 (default_diagnostic_finalizer): Do not destroy prefix here.
6365 (diagnostic_report_diagnostic): Destroy it here.
6366 (diagnostic_append_note): New.
6367 * diagnostic.h (diagnostic_append_note): Declare.
6369 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6371 PR rtl-optimization/55055
6372 * lra-spills.c (alter_subregs): New function.
6373 (lra_hard_reg_substitution): Use it.
6375 2012-10-24 Sharad Singhai <singhai@google.com>
6377 * dumpfile.c (dump_enabled_p): Make it inline and move the definition
6379 (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p.
6380 Make alt_dump_file extern.
6381 * dumpfile.h (dump_enabled_p): Move inline definition here.
6382 (dump_kind_p): Delete declaration.
6383 Add extern declaration of alt_dump_file.
6384 * toplev.c: Move dump_file and dump_file_name to dumpfile.c.
6385 * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with
6387 * tree-vectorizer.c: Likewise.
6388 * tree-vect-loop.c: Likewise.
6389 * tree-vect-data-refs.c: Likewise.
6390 * tree-vect-patterns.c: Likewise.
6391 * tree-vect-stmts.c: Likewise.
6392 * tree-vect-slp.c: Likewise.
6394 2012-10-24 Richard Sandiford <rdsandiford@googlemail.com>
6396 * expmed.c (lowpart_bit_field_p): Add missing == 0 check.
6398 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6401 * lra-constraints.c (extract_loc_address_regs): Pass top_p for
6402 ZERO_EXTEND operand.
6404 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
6407 * lra-constraints.c (update_ebb_live_info): Skip
6408 non-NOTE_INSN_BASIC_BLOCK notes.
6410 2012-10-24 Jakub Jelinek <jakub@redhat.com>
6412 PR rtl-optimization/55010
6413 * cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
6414 before passing it to simplify_relational_operation.
6417 * gimple.h (is_gimple_sizepos): New inline function.
6418 * gimplify.c (gimplify_one_sizepos): Use it. Remove useless
6419 final assignment to expr variable.
6420 * tree.c (RETURN_TRUE_IF_VAR): Return true also if
6421 !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
6422 into a local temporary.
6424 2012-10-23 David S. Miller <davem@davemloft.net>
6426 * config/sparc/constraints.md ("T", "W"): Change
6427 definitions to use define_memory_constraint. Do not match 'reg'.
6428 * config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM
6429 handling code, update comment.
6431 2012-10-23 Ian Lance Taylor <iant@google.com>
6433 * doc/extend.texi (Extended Asm): The '+' constraint does not
6436 2012-10-23 Jeff Law <law@redhat.com>
6438 * tree-ssa-threadedge.c (thread_across_edge): Remove unused
6439 parameter in call to cond_arg_set_in_bb.
6441 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused
6444 PR tree-optimization/54985
6445 * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
6446 from thread_across_edge.
6447 (thread_across_edge): Use it in all cases where we might thread
6450 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
6452 * lra-constraints.c (update_ebb_live_info): Process empty blocks.
6454 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
6456 * expmed.c (store_split_bit_field): Update the calls to
6457 extract_fixed_bit_field. In the big-endian case, always
6458 use the mode of OP0 to count the number of significant bits.
6459 (extract_bit_field_1): Remove unit, offset, bitpos and
6460 byte_offset from the outermost scope. Express conditions in terms
6461 of bitnum rather than offset, bitpos and byte_offset. Move the
6462 computation of MODE1 to the block that needs it. Use MODE unless
6463 the TMODE-based mode_for_size calculation succeeds. Split the
6464 plain move cases into two, one for memory accesses and one for
6465 register accesses. Generalize the memory case, freeing it from
6466 the old register-based endian checks. Move the INT_MODE calculation
6467 above the code that needs it. Use simplify_gen_subreg to handle
6468 multiword OP0s. If the field still spans several words, pass it
6469 directly to extract_split_bit_field. Assume after that point
6470 that both targets and register sources fit within a word.
6471 Replace x-prefixed variables with non-prefixed forms.
6472 Compute the bitpos for ext(z)v register operands directly in the
6473 chosen unit size, rather than going through an intermediate
6474 BITS_PER_WORD unit size. Simplify the containment check
6475 used when forcing OP0 into a register. Update the call to
6476 extract_fixed_bit_field.
6477 (extract_fixed_bit_field): Replace the bitpos and offset parameters
6478 with a single bitnum parameter, of the same form as extract_bit_field.
6479 Assume that OP0 contains the full field. Simplify the memory offset
6480 calculation and containment check for volatile bitfields. Make the
6481 offset explicit when volatile bitfields force a misaligned access.
6482 Remove WARNED and fix long lines. Assert that the processed OP0
6483 has an integral mode.
6484 (store_split_bit_field): Update the call to store_fixed_bit_field.
6486 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
6488 * expmed.c (lowpart_bit_field_p): New function.
6489 (store_bit_field_1): Remove unit, offset, bitpos and byte_offset
6490 from the outermost scope. Express conditions in terms of bitnum
6491 rather than offset, bitpos and byte_offset. Split the plain move
6492 cases into two, one for memory accesses and one for register accesses.
6493 Allow simplify_gen_subreg to fail rather than calling validate_subreg.
6494 Move the handling of multiword OP0s after the code that coerces VALUE
6495 to an integer mode. Use simplify_gen_subreg for this case and assert
6496 that it succeeds. If the field still spans several words, pass it
6497 directly to store_split_bit_field. Assume after that point that
6498 both sources and register targets fit within a word. Replace
6499 x-prefixed variables with non-prefixed forms. Compute the bitpos
6500 for insv register operands directly in the chosen unit size, rather
6501 than going through an intermediate BITS_PER_WORD unit size.
6502 Update the call to store_fixed_bit_field.
6503 (store_fixed_bit_field): Replace the bitpos and offset parameters
6504 with a single bitnum parameter, of the same form as store_bit_field.
6505 Assume that OP0 contains the full field. Simplify the memory offset
6506 calculation. Assert that the processed OP0 has an integral mode.
6507 (store_split_bit_field): Update the call to store_fixed_bit_field.
6509 2012-10-23 Paul Koning <ni1d@arrl.net>
6512 * dwarf2out.c (prune_unused_types_prune): If pruning a class and
6513 not all its children were marked, add DW_AT_declaration flag.
6515 2012-10-23 Ian Bolton <ian.bolton@arm.com>
6516 James Greenhalgh <james.greenhalgh@arm.com>
6517 Jim MacArthur <jim.macarthur@arm.com>
6518 Marcus Shawcroft <marcus.shawcroft@arm.com>
6519 Nigel Stephens <nigel.stephens@arm.com>
6520 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6521 Richard Earnshaw <rearnsha@arm.com>
6522 Sofiane Naci <sofiane.naci@arm.com>
6523 Stephen Thomas <stephen.thomas@arm.com>
6524 Tejas Belagod <tejas.belagod@arm.com>
6525 Yufeng Zhang <yufeng.zhang@arm.com>
6527 * config.gcc: Add AArch64.
6528 * configure.ac: Add AArch64 TLS support detection.
6529 * configure: Regenerate.
6531 2012-10-23 Ian Bolton <ian.bolton@arm.com>
6532 James Greenhalgh <james.greenhalgh@arm.com>
6533 Jim MacArthur <jim.macarthur@arm.com>
6534 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
6535 Marcus Shawcroft <marcus.shawcroft@arm.com>
6536 Nigel Stephens <nigel.stephens@arm.com>
6537 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6538 Richard Earnshaw <rearnsha@arm.com>
6539 Sofiane Naci <sofiane.naci@arm.com>
6540 Stephen Thomas <stephen.thomas@arm.com>
6541 Tejas Belagod <tejas.belagod@arm.com>
6542 Yufeng Zhang <yufeng.zhang@arm.com>
6544 * doc/invoke.texi (AArch64 Options): New.
6545 * doc/md.texi (Machine Constraints): Add AArch64.
6547 2012-10-23 Ian Bolton <ian.bolton@arm.com>
6548 James Greenhalgh <james.greenhalgh@arm.com>
6549 Jim MacArthur <jim.macarthur@arm.com>
6550 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
6551 Marcus Shawcroft <marcus.shawcroft@arm.com>
6552 Nigel Stephens <nigel.stephens@arm.com>
6553 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6554 Richard Earnshaw <rearnsha@arm.com>
6555 Sofiane Naci <sofiane.naci@arm.com>
6556 Stephen Thomas <stephen.thomas@arm.com>
6557 Tejas Belagod <tejas.belagod@arm.com>
6558 Yufeng Zhang <yufeng.zhang@arm.com>
6560 * common/config/aarch64/aarch64-common.c: New file.
6561 * config/aarch64/aarch64-arches.def: New file.
6562 * config/aarch64/aarch64-builtins.c: New file.
6563 * config/aarch64/aarch64-cores.def: New file.
6564 * config/aarch64/aarch64-elf-raw.h: New file.
6565 * config/aarch64/aarch64-elf.h: New file.
6566 * config/aarch64/aarch64-generic.md: New file.
6567 * config/aarch64/aarch64-linux.h: New file.
6568 * config/aarch64/aarch64-modes.def: New file.
6569 * config/aarch64/aarch64-option-extensions.def: New file.
6570 * config/aarch64/aarch64-opts.h: New file.
6571 * config/aarch64/aarch64-protos.h: New file.
6572 * config/aarch64/aarch64-simd.md: New file.
6573 * config/aarch64/aarch64-tune.md: New file.
6574 * config/aarch64/aarch64.c: New file.
6575 * config/aarch64/aarch64.h: New file.
6576 * config/aarch64/aarch64.md: New file.
6577 * config/aarch64/aarch64.opt: New file.
6578 * config/aarch64/arm_neon.h: New file.
6579 * config/aarch64/constraints.md: New file.
6580 * config/aarch64/gentune.sh: New file.
6581 * config/aarch64/iterators.md: New file.
6582 * config/aarch64/large.md: New file.
6583 * config/aarch64/predicates.md: New file.
6584 * config/aarch64/small.md: New file.
6585 * config/aarch64/sync.md: New file.
6586 * config/aarch64/t-aarch64-linux: New file.
6587 * config/aarch64/t-aarch64: New file.
6589 2012-10-23 Michael Matz <matz@suse.de>
6591 * tree-ssa-operands.h (struct def_optype_d, def_optype_p): Remove.
6592 (ssa_operands.free_defs): Remove.
6593 (DEF_OP_PTR, DEF_OP): Remove.
6594 (struct ssa_operand_iterator_d): Remove 'defs', add 'flags' members,
6595 rename 'phi_stmt' to 'stmt', 'phi_i' to 'i' and 'num_phi' to 'numops'.
6596 * gimple.h (gimple_statement_with_ops.def_ops): Remove.
6597 (gimple_def_ops, gimple_set_def_ops): Remove.
6598 (gimple_vdef_op): Don't take const gimple, adjust.
6599 (gimple_asm_input_op, gimple_asm_input_op_ptr,
6600 gimple_asm_set_input_op, gimple_asm_output_op,
6601 gimple_asm_output_op_ptr, gimple_asm_set_output_op): Adjust asserts,
6602 and rewrite to move def operands to front.
6603 (gimple_asm_clobber_op, gimple_asm_set_clobber_op,
6604 gimple_asm_label_op, gimple_asm_set_label_op): Correct asserts.
6605 * tree-ssa-operands.c (build_defs): Remove.
6606 (init_ssa_operands): Don't initialize it.
6607 (fini_ssa_operands): Don't free it.
6608 (cleanup_build_arrays): Don't truncate it.
6609 (finalize_ssa_stmt_operands): Don't assert on it.
6610 (alloc_def, add_def_op, append_def): Remove.
6611 (finalize_ssa_defs): Remove building of def_ops list.
6612 (finalize_ssa_uses): Don't mark for SSA renaming here, ...
6613 (add_stmt_operand): ... but here, don't call append_def.
6614 (get_indirect_ref_operands): Remove recurse_on_base argument.
6615 (get_expr_operands): Adjust call to get_indirect_ref_operands.
6616 (verify_ssa_operands): Don't check def operands.
6617 (free_stmt_operands): Don't free def operands.
6618 * gimple.c (gimple_copy): Don't clear def operands.
6619 * tree-flow-inline.h (op_iter_next_use): Adjust to explicitely
6621 (op_iter_next_tree, op_iter_next_def): Ditto.
6622 (clear_and_done_ssa_iter): Clear new fields.
6623 (op_iter_init): Adjust to setup new iterator structure.
6624 (op_iter_init_phiuse): Adjust.
6626 2012-10-23 Greta Yorsh <Greta.Yorsh@arm.com>
6628 * config/arm/arm.c (offset_ok_for_ldrd_strd): Return false for Thumb1.
6630 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
6632 * dbxout.c (dbxout_symbol_location): Pass new argument to alter_subreg.
6633 * dwarf2out.c: Include ira.h and lra.h.
6634 (based_loc_descr, compute_frame_pointer_to_fb_displacement): Use
6635 lra_eliminate_regs for LRA instead of eliminate_regs.
6636 * expr.c (emit_move_insn_1): Pass an additional argument to
6637 emit_move_via_integer. Use emit_move_via_integer for LRA only if
6638 the insn is recognized.
6639 * emit-rtl.c (gen_rtx_REG): Add lra_in_progress.
6640 (validate_subreg): Don't check offset for LRA and floating point modes.
6641 * final.c (final_scan_insn, cleanup_subreg_operands): Pass new
6642 argument to alter_subreg.
6643 (walk_alter_subreg, output_operand): Ditto.
6644 (alter_subreg): Add new argument.
6645 * gcse.c (calculate_bb_reg_pressure): Add parameter to
6646 ira_setup_eliminable_regset call.
6647 * ira.c: Include lra.h.
6648 (ira_init_once, ira_init, ira_finish_once): Call lra_start_once,
6649 lra_init, lra_finish_once in anyway.
6650 (ira_setup_eliminable_regset): Add parameter. Remove need_fp.
6651 Call lra_init_elimination and mark HARD_FRAME_POINTER_REGNUM as
6652 living forever if frame_pointer_needed.
6653 (setup_reg_class_relations): Set up ira_reg_class_subset.
6654 (ira_reg_equiv_invariant_p, ira_reg_equiv_const): Remove.
6655 (find_reg_equiv_invariant_const): Ditto.
6656 (setup_reg_renumber): Use ira_equiv_no_lvalue_p instead of
6657 ira_reg_equiv_invariant_p. Skip caps for LRA.
6658 (setup_reg_equiv_init, ira_update_equiv_info_by_shuffle_insn): New
6660 (ira_reg_equiv_len, ira_reg_equiv): New externals.
6661 (ira_reg_equiv): New.
6662 (ira_expand_reg_equiv, init_reg_equiv, finish_reg_equiv): New
6664 (no_equiv, update_equiv_regs): Use ira_reg_equiv instead of
6666 (setup_reg_equiv): New function.
6667 (ira_use_lra_p): New global.
6668 (ira): Set up lra_simple_p and ira_conflicts_p. Set up and
6669 restore flag_caller_saves and flag_ira_region. Move
6670 initialization of ira_obstack and ira_bitmap_obstack upper. Call
6671 init_reg_equiv, setup_reg_equiv, and setup_reg_equiv_init instead
6672 of initialization of ira_reg_equiv_len, ira_reg_equiv_invariant_p,
6673 and ira_reg_equiv_const. Call ira_setup_eliminable_regset with a
6674 new argument. Don't flatten IRA IRA for LRA. Don't reassign
6675 conflict allocnos for LRA. Call finish_reg_equiv.
6676 (do_reload): Prepare code for LRA call. Call LRA.
6677 * ira.h (ira_use_lra_p): New external.
6678 (struct target_ira): Add members x_ira_class_subset_p
6679 x_ira_reg_class_subset, and x_ira_reg_classes_intersect_p.
6680 (ira_class_subset_p, ira_reg_class_subset): New macros.
6681 (ira_reg_classes_intersect_p): New macro.
6682 (struct ira_reg_equiv): New.
6683 (ira_setup_eliminable_regset): Add an argument.
6684 (ira_expand_reg_equiv, ira_update_equiv_info_by_shuffle_insn): New
6686 * ira-color.c (color_pass, move_spill_restore, coalesce_allocnos):
6687 Use ira_equiv_no_lvalue_p.
6688 (coalesce_spill_slots, ira_sort_regnos_for_alter_reg): Ditto.
6689 * ira-emit.c (ira_create_new_reg): Call ira_expand_reg_equiv.
6690 (generate_edge_moves, change_loop) Use ira_equiv_no_lvalue_p.
6691 (emit_move_list): Simplify code. Call
6692 ira_update_equiv_info_by_shuffle_insn. Use ira_reg_equiv instead
6693 of ira_reg_equiv_invariant_p and ira_reg_equiv_const. Change assert.
6694 * ira-int.h (struct target_ira_int): Remove x_ira_class_subset_p
6695 and x_ira_reg_classes_intersect_p.
6696 (ira_class_subset_p, ira_reg_classes_intersect_p): Remove.
6697 (ira_reg_equiv_len, ira_reg_equiv_invariant_p): Ditto.
6698 (ira_reg_equiv_const): Ditto.
6699 (ira_equiv_no_lvalue_p): New function.
6700 * jump.c (true_regnum): Always use hard_regno for subreg_get_info
6701 when lra is in progress.
6702 * haifa-sched.c (sched_init): Pass new argument to
6703 ira_setup_eliminable_regset.
6704 * loop-invariant.c (calculate_loop_reg_pressure): Pass new
6705 argument to ira_setup_eliminable_regset.
6709 * lra-assigns.c: Ditto.
6710 * lra-constraints.c: Ditto.
6711 * lra-coalesce.c: Ditto.
6712 * lra-eliminations.c: Ditto.
6713 * lra-lives.c: Ditto.
6714 * lra-spills.c: Ditto.
6715 * Makefile.in (LRA_INT_H): New.
6716 (OBJS): Add lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o,
6717 lra-eliminations.o, lra-lives.o, and lra-spills.o.
6718 (dwarf2out.o): Add dependence on ira.h and lra.h.
6719 (ira.o): Add dependence on lra.h.
6720 (lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o): New entries.
6721 (lra-eliminations.o, lra-lives.o, lra-spills.o): Ditto.
6722 * output.h (alter_subreg): Add new argument.
6723 * rtlanal.c (simplify_subreg_regno): Permit mode changes for LRA.
6724 Permit ARG_POINTER_REGNUM and STACK_POINTER_REGNUM for LRA.
6725 * recog.c (general_operand, register_operand): Accept paradoxical
6726 FLOAT_MODE subregs for LRA.
6727 (scratch_operand): Accept pseudos for LRA.
6728 * rtl.h (lra_in_progress): New external.
6729 (debug_bb_n_slim, debug_bb_slim, print_value_slim): New prototypes.
6730 (debug_rtl_slim, debug_insn_slim): Ditto.
6731 * sdbout.c (sdbout_symbol): Pass new argument to alter_subreg.
6732 * sched-vis.c (print_value_slim): New.
6733 * target.def (lra_p): New hook.
6734 (register_priority): Ditto.
6735 (different_addr_displacement_p): Ditto.
6736 (spill_class): Ditto.
6737 * target-globals.h (this_target_lra_int): New external.
6738 (target_globals): New member lra_int.
6739 (restore_target_globals): Restore this_target_lra_int.
6740 * target-globals.c: Include lra-int.h.
6741 (default_target_globals): Add &default_target_lra_int.
6742 * targhooks.c (default_lra_p): New function.
6743 (default_register_priority): Ditto.
6744 (default_different_addr_displacement_p): Ditto.
6745 * targhooks.h (default_lra_p): Declare.
6746 (default_register_priority): Ditto.
6747 (default_different_addr_displacement_p): Ditto.
6748 * timevar.def (TV_LRA, TV_LRA_ELIMINATE, TV_LRA_INHERITANCE): New.
6749 (TV_LRA_CREATE_LIVE_RANGES, TV_LRA_ASSIGN, TV_LRA_COALESCE): New.
6750 * config/arm/arm.c (load_multiple_sequence): Pass new argument to
6752 (store_multiple_sequence): Ditto.
6753 * config/i386/i386.h (enum ix86_tune_indices): Add
6754 X86_TUNE_GENERAL_REGS_SSE_SPILL.
6755 (TARGET_GENERAL_REGS_SSE_SPILL): New macro.
6756 * config/i386/i386.c (initial_ix86_tune_features): Set up
6757 X86_TUNE_GENERAL_REGS_SSE_SPILL for m_COREI7 and m_CORE2I7.
6758 (ix86_lra_p, ix86_register_priority): New functions.
6759 (ix86_secondary_reload): Add NON_Q_REGS, SIREG, DIREG.
6760 (inline_secondary_memory_needed): Change assert.
6761 (ix86_spill_class): New function.
6762 (TARGET_LRA_P, TARGET_REGISTER_BANK, TARGET_SPILL_CLASS): New macros.
6763 * config/m68k/m68k.c (emit_move_sequence): Pass new argument to
6765 * config/m32r/m32r.c (gen_split_move_double): Ditto.
6766 * config/pa/pa.c (pa_emit_move_sequence): Ditto.
6767 * config/sh/sh.md: Ditto.
6768 * config/v850/v850.c (v850_reorg): Ditto.
6769 * config/xtensa/xtensa.c (fixup_subreg_mem): Ditto.
6770 * doc/md.texi: Add new interpretation of hint * for LRA.
6771 * doc/passes.texi: Describe LRA pass.
6772 * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_PRIORITY,
6773 TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, and TARGET_SPILL_CLASS.
6774 * doc/tm.texi: Update.
6776 2012-10-23 Jan Hubicka <jh@suse.cz>
6778 * loop-unroll.c (decide_peel_simple): Simple peeling makes sense even
6779 with simple loops; bound number of branches only when FDO is not
6781 (decide_unroll_stupid): Mention that num_loop_branches heuristics
6784 2012-10-23 Nick Clifton <nickc@redhat.com>
6787 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress
6788 compile time warning about pointer printing.
6790 2012-10-23 Joseph Myers <joseph@codesourcery.com>
6792 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
6793 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Use
6794 glibc-c.o in c_target_objs and cxx_target_objs. Use t-glibc in
6795 tmake_file. Set target_has_targetcm.
6796 (tilegx-*-linux*, tilepro-*-linux*): Append to c_target_objs and
6797 cxx_target_objs rather than overriding previous value.
6798 * config/glibc-c.c, config/t-glibc: New.
6799 * doc/tm.texi.in (TARGET_C_PREINCLUDE): New @hook.
6800 * doc/tm.texi: Regenerate.
6801 * hooks.c (hook_constcharptr_void_null): New.
6802 * hooks.h (hook_constcharptr_void_null): Declare.
6804 2012-10-23 Eric Botcazou <ebotcazou@adacore.com>
6806 * config/mips/linux-common.h (STACK_CHECK_STATIC_BUILTIN): Define.
6807 (STACK_CHECK_PROTECT): Likewise.
6808 * config/mips/mips.h (MIPS_PROLOGUE_TEMP2_REGNUM): Likewise.
6809 (MIPS_PROLOGUE_TEMP2): Likewise.
6810 * config/mips/mips-protos.h (mips_output_probe_stack_range): Declare.
6811 * config/mips/mips.c: Include common/common-target.h.
6812 (mips_emit_probe_stack_range): New function.
6813 (mips_output_probe_stack_range): Likewise.
6814 (mips_expand_prologue): Invoke mips_emit_probe_stack_range if static
6815 builtin stack checking is enabled.
6816 * config/mips/mips.md (UNSPEC_PROBE_STACK_RANGE): New constant.
6817 (probe_stack_range_<P:mode>): New insn.
6819 2012-10-23 Marc Glisse <marc.glisse@inria.fr>
6821 * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors.
6822 * fold-const.c (fold_relational_const): Handle VECTOR_CST.
6823 * doc/generic.texi (VEC_COND_EXPR): Document current policy.
6825 2012-10-23 Jan Hubicka <jh@suse.cz>
6828 * tree-ssa-loop-niter.c (record_estimate): Do not try to lower
6829 the bound of non-is_exit statements.
6830 (maybe_lower_iteration_bound): Do it here.
6831 (estimate_numbers_of_iterations_loop): Call it.
6833 2012-10-23 Jan Hubicka <jh@suse.cz>
6836 * cfgloopmanip.c (fix_bb_placements): Add loop_closed_ssa_invalidated;
6837 track basic blocks that moved out of their loops.
6839 (remove_path): Update.
6840 (fix_loop_placements): Update.
6841 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add
6842 loop_closed_ssa_invalidated parameter; pass it around.
6843 (canonicalize_loop_induction_variables): Update loop closed
6845 (tree_unroll_loops_completely): Likewise; do irred update out of
6846 the outer loop; verify that SSA form is closed.
6847 * cfgloop.h (unrloop): Update.
6849 2012-10-23 Terry Guo <terry.guo@arm.com>
6852 * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
6855 2012-10-23 Hans-Peter Nilsson <hp@bitrange.com>
6859 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
6860 expand_builtin_setjmp_receiver.
6861 (expand_label): Adjust, call expand_builtin_setjmp_receiver
6862 with NULL for the label parameter.
6863 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
6864 the frame-pointer. Adjust comments.
6865 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
6866 only if LABEL is non-NULL.
6868 2012-10-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6870 PR tree-optimization/55008
6871 * gimple-ssa-strength-reduction.c (find_basis_for_candidate):
6872 Don't allow a candidate to be a basis for itself under another
6875 2012-10-22 Sharad Singhai <singhai@google.com>
6877 * dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update
6879 (dump_enabled_p): A new function to check if any of the dump files
6881 (dump_kind_p): Remove check for current_function_decl. Add check for
6882 dumpfile and alt_dump_file.
6883 * dumpfile.h: Add declaration of dump_enabled_p.
6885 2012-10-22 Richard Biener <rguenther@suse.de>
6888 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove
6891 2012-10-22 Uros Bizjak <ubizjak@gmail.com>
6893 * config/i386/i386.c (memory_address_length): Assert that non-null
6894 base or index RTXes are registers. Do not check for REG RTXes.
6895 Determine addr32 prefix using SImode_address_operand or
6896 from original base and index RTXes. Simplify code.
6898 2012-10-22 Richard Biener <rguenther@suse.de>
6900 PR tree-optimization/55011
6901 * tree-vrp.c (update_value_range): For invalid lattice transitions
6904 2012-10-22 Julian Brown <julian@codesourcery.com>
6906 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
6907 VFP D registers in big-endian mode.
6909 2012-10-22 Georg-Johann Lay <avr@gjlay.de>
6911 * doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
6912 Note __AVR_<device>__ is not defined for cores.
6913 Don't point to --help=target.
6915 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
6916 Greta Yorsh <Greta.Yorsh@arm.com>
6918 * config/arm/arm.c (thumb2_emit_ldrd_pop): New function.
6919 (arm_expand_epilogue): Use the new function.
6921 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
6922 Greta Yorsh <Greta.Yorsh@arm.com>
6924 * config/arm/arm.c (thumb2_emit_strd_push): New function.
6925 (arm_expand_prologue): Use the new function.
6927 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
6928 Greta Yorsh <Greta.Yorsh@arm.com>
6930 * config/arm/arm-protos.h (offset_ok_for_ldrd_strd): New declaration.
6931 (operands_ok_ldrd_strd): Likewise.
6932 * config/arm/arm.c (offset_ok_for_ldrd_strd): New function.
6933 (operands_ok_ldrd_strd): Likewise.
6934 * config/arm/arm.md (thumb2_ldrd, thumb2_ldrd_base): New patterns.
6935 (thumb2_ldrd_base_neg): Likewise.
6936 (thumb2_strd, thumb2_strd_base, thumb_strd_base_neg): Likewise.
6937 * predicates.md (ldrd_strd_offset_operand): New predicate.
6938 * config/arm/constraints.md (Do): New constraint.
6940 2012-10-22 Hans-Peter Nilsson <hp@bitrange.com>
6942 * config/mmix/mmix.md ("nonlocal_goto_receiver"): Refer to the
6943 frame-pointer as an operand.
6944 ("*nonlocal_goto_receiver_expanded"): Ditto. Use
6945 mmix_output_register_setting instead of naked output_asm_insn for
6946 the offset from the frame-pointer to the saved rO.
6947 * config/mmix/mmix.c (mmix_output_register_setting): Emit NEGU for
6949 * config/mmix/predicates.md ("frame_pointer_operand"): New.
6950 * config/mmix/constraints.md ("Yf"): New.
6952 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
6953 expand_builtin_setjmp_receiver.
6954 (expand_label): Adjust, call expand_builtin_setjmp_receiver
6955 with NULL for the label parameter.
6956 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
6957 the frame-pointer. Adjust comments.
6958 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
6959 only if LABEL is non-NULL.
6961 2012-10-21 Uros Bizjak <ubizjak@gmail.com>
6963 * config/i386/i386-protos.h (memory_address_length): Add new bool
6964 argument. Update all uses.
6965 * config/i386/i386.c (memory_address_length): If not LEA insn, then
6966 add length of addr32 prefix based on mode of base or index register.
6967 (ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
6968 addresses here. Update call to memory_address_length.
6969 (ix86_print_address_operand): Use SImode_address_operand predicate.
6970 * config/i386/predicates.md (SImode_address_operand): New.
6971 * config/i386/i386.md (lea<mode>): Use SImode_address_operand
6972 to calculate "mode" attribute. Use SImode_address_operand predicate
6973 instead of open-coding accepted RTX codes.
6975 2012-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
6977 * rtl.def (ADDR_DIFF_VEC): Fix comment typo.
6979 2012-10-21 Eric Botcazou <ebotcazou@adacore.com>
6981 PR rtl-optimization/44194
6982 * calls.c (expand_call): Allow sibling calls in the PARALLEL case.
6984 2012-10-21 Tobias Burnus <burnus@net-b.de>
6987 * Makefile.in (TARGET_SYSTEM_ROOT_DEFINE): New.
6989 2012-10-21 Chung-Lin Tang <cltang@codesourcery.com>
6991 * config/xtensa/xtensa.c (xtensa_expand_builtin): Remove unused 'arg'
6994 2012-10-20 Eric Botcazou <ebotcazou@adacore.com>
6996 PR rtl-optimization/54315
6997 * calls.c (expand_call): Don't deal specifically with BLKmode values
6998 returned in naked registers.
6999 * expr.h (copy_blkmode_from_reg): Adjust prototype.
7000 * expr.c (copy_blkmode_from_reg): Rename first parameter into
7001 TARGET and make it required. Assert that SRCREG hasn't BLKmode.
7002 Add a couple of short-circuits for common cases and be prepared
7003 for sub-word registers.
7004 (expand_assignment): Call copy_blkmode_from_reg for BLKmode values
7005 returned in naked registers.
7006 (store_expr): Likewise.
7007 (store_field): Likewise.
7009 2012-10-20 Jan Hubicka <jh@suse.cz>
7011 * loop-unroll.c (decide_unroll_constant_iterations): Don't
7012 perform unrolling for loops with low iterations bounds or estimates.
7014 2012-10-20 Jan Hubicka <jh@suse.cz>
7016 * loop-iv.c (iv_number_of_iterations): Record the upper bound
7017 only if there are no further conditions on it.
7019 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7023 * opts.c (finish_options): Remove explicit handling from here.
7025 2012-10-20 Joern Rennecke <joern.rennecke@embecosm.com>
7026 Richard Sandiford <rdsandiford@googlemail.com>
7028 * emit-rtl.c (copy_delay_slot_insn): New function.
7029 * emit-rtl.h (copy_delay_slot_insn): Declare.
7030 * reorg.c: Include "emit-rtl.h".
7031 (steal_delay_list_from_target): Use copy_delay_slot_insn.
7032 (fill_slots_from_thread, fill_simple_delay_slots): Likewise.
7034 * final.c (shorten_branches): When optimizing, start with small
7035 length and increase from there, and don't decrease lengths.
7037 2012-10-19 Jan Hubicka <jh@suse.cz>
7039 * builtins.def (BUILT_IN_UNREACHABLE): Make
7040 ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST.
7041 * builtin-attrs.def (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
7043 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
7044 Dominique Dhumieres <dominiq@lps.ens.fr>
7046 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume
7047 OPTION_MASK_STRICT_ALIGN is defined.
7048 (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined,
7049 define this to 0 for the 3 ports that use it.
7051 * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do
7052 check for ports not having -mstrict-align here, move test to
7054 (MASK_STRICT_ALIGN): Likewise.
7055 (rs6000_debug_reg_global): Print out correct target flag words if
7058 2012-10-19 Marek Polacek <polacek@redhat.com>
7061 * fold-const.c (fold_sign_changed_comparison): Punt if folding
7062 pointer/non-pointer comparison.
7064 2012-10-19 Greta Yorsh <Greta.Yorsh@arm.com>
7066 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7067 new effective target keyword arm_prefer_ldrd_strd.
7069 2012-10-19 Richard Guenther <rguenther@suse.de>
7071 PR tree-optimization/54981
7072 * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p):
7073 Do not consider debug stmts as uses.
7075 2012-10-19 Richard Biener <rguenther@suse.de>
7077 PR tree-optimization/54976
7078 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
7079 Robustify against odd inner_mode inputs.
7081 2012-10-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7084 * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
7085 sure the mode is correct when falling through from above cases.
7087 2012-10-19 Bin Cheng <bin.cheng@arm.com>
7089 * common.opt (flag_ira_hoist_pressure): New.
7090 * doc/invoke.texi (-fira-hoist-pressure): Describe.
7091 * ira-costs.c (ira_set_pseudo_classes): New parameter.
7092 * ira.h: Update copyright dates.
7093 (ira_set_pseudo_classes): Update prototype.
7094 * haifa-sched.c (sched_init): Update call.
7095 * ira.c (ira): Update call.
7096 * regmove.c: Update copyright dates.
7097 (regmove_optimize): Update call.
7098 * loop-invariant.c: Update copyright dates.
7099 (move_loop_invariants): Update call.
7100 * gcse.c: (struct bb_data): New structure.
7101 (BB_DATA): New macro.
7102 (curr_bb, curr_reg_pressure): New static variables.
7103 (should_hoist_expr_to_dom): Rename from hoist_expr_reaches_here_p.
7104 Change parameter expr_index to expr.
7105 New parameters pressure_class, nregs and hoisted_bbs.
7106 Use reg pressure to determine the distance expr can be hoisted.
7107 (hoist_code): Use reg pressure to direct the hoist process.
7108 (get_regno_pressure_class, get_pressure_class_and_nregs)
7109 (change_pressure, calculate_bb_reg_pressure): New.
7110 (one_code_hoisting_pass): Calculate register pressure. Allocate
7113 2012-10-19 Bin Cheng <bin.cheng@arm.com>
7115 * gcse.c: Update copyright dates.
7116 (hoist_expr_reaches_here_p): Change parameter type from char *
7119 2012-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
7122 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
7123 "arm*-*-rtemseabi*" to "arm*-*-rtems*".
7125 2012-10-19 Alan Modra <amodra@gmail.com>
7127 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
7128 (HAVE_LD_LARGE_TOC): Likewise.
7129 * configure: Regenerate.
7131 2012-10-19 Alan Modra <amodra@gmail.com>
7133 * config/rs6000/predicates.md (splat_input_operand): Don't call
7134 input_operand for MEMs. Instead check for volatile and call
7135 memory_address_addr_space_p with modified mode.
7137 2012-10-18 Uros Bizjak <ubizjak@gmail.com>
7139 * config/i386/i386.md (rdpmc): Remove expander.
7142 (rdpmc): Rename from *rdpmc.
7143 (rdpmc_rex64): Rename from *rdpmc_rex64.
7144 (rdtsc): Rename from *rdtsc.
7145 (rdtsc_rex64): Rename from *rdtsc_rex64.
7146 (rdtscp): Rename from *rdtscp.
7147 (rdtscp_rex64): Rename from *rdtscp_rex64.
7149 * config/i386/i386.c (struct builtin_description bdesc_special_args)
7150 <IX86_BUILTIN_RDTSC>: Use CODE_FOR_NOTHING.
7151 <IX86_BUILTIN_RDTSCP>: Ditto.
7152 (struct builtin_description bdesc__args) <IX86_BUILTIN_RDPMC>: Ditto.
7153 (ix86_expand_builtin) <IX86_BUILTIN_{RDPMC,RDTSC,RDTSCP}>: Handle here.
7155 2012-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7157 * config/sh/sh.c: Fix comment to silence warning.
7159 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7160 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7161 Sameera Deshpande <sameera.deshpande@arm.com>
7163 * config/arm/cortex-a15-neon.md: New file.
7164 * config/arm/cortex-a15.md (cortex_a15_call): Adjust reservation.
7165 (cortex_a15_load1): Likewise.
7166 (cortex_a15_load3): Likewise.
7167 (cortex_a15_store1): Likewise.
7168 (cortex_a15_store3): Likewise.
7169 (cortex-a15-neon.md): Include.
7171 2012-10-18 Segher Boessenkool <segher@kernel.crashing.org>
7173 * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Add mode.
7174 (altivec_vsumsws_nomode): Delete.
7175 (reduc_splus_<mode>, reduc_uplus_<mode>): Call gen_altivec_vsumsws
7176 instead of gen_altivec_vsumsws_nomode.
7177 (altivec_lvlx, altivec_lvlxl, altivec_lvrx, altivec_lvrxl): Add mode.
7178 * config/rs6000/rs6000.md (probe_stack): Rename to...
7179 (probe_stack_<mode>): ... this. Add mode. Change pattern to
7180 use std instead of stw when appropriate.
7181 (probe_stack): New expander.
7182 (move_from_CR_ov_bit): Add mode.
7183 (splitter for compare_plus_ne0_<mode>, splitter for
7184 compare_plus_ne0_<mode>_1): Remove constraints.
7185 * config/rs6000/sync.md (loadsync): Rename to...
7186 (loadsync_<mode>): ... this. Add mode.
7187 (atomic_load<mode>): Adjust.
7189 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
7191 * loop-invariant.c: Include target.h.
7192 (check_dependency): Return false for an uninitialized argument register
7193 that is likely to be spilled.
7194 * Makefile.in (loop-invariant.o): Add $(TARGET_H).
7196 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
7198 * except.c (sjlj_emit_function_enter): Remove unused variable.
7200 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7201 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7203 * config/arm/arm.c (neon_builtin_data): Add vfma and vfms builtins.
7204 * config/arm/neon-docgen.ml (intrinsic_groups): Add
7205 fused-multiply-* groups.
7206 * config/neon-gen.ml (print_feature_test_start): New function.
7207 (print_feature_test_end): Likewise.
7208 (print_variant): Print feature test macros.
7209 * config/arm/neon-testgen.ml (emit_prologue): Allow different
7210 tests to require different effective targets.
7211 (effective_target): New function.
7212 (test_intrinsic): Specify correct effective targets.
7213 * config/arm/neon.md (fma<VCVTF:mode>4_intrinsic): New pattern.
7214 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
7215 (neon_vfma<VCVFT:mode>): New expand.
7216 (neon_vfms<VCVFT:mode>): Likewise.
7217 * config/neon.ml (opcode): Add Vfma and Vfms.
7218 (features): Add Requires_feature.
7219 (ops): Add VFMA and VFMS intrinsics.
7220 * config/arm/arm_neon.h: Regenerate.
7221 * doc/arm-neon-intrinsics.texi: Likewise.
7223 2012-10-18 Richard Guenther <rguenther@suse.de>
7225 * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst.
7226 * lto-streamer-in.c (lto_input_tree): Use it.
7227 * lto-streamer-out.c (lto_output_tree): Likewise, for
7228 !TREE_OVERFLOW integer constants only.
7229 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function.
7230 (unpack_value_fields): Call it.
7231 (streamer_read_integer_cst): Simplify.
7232 * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function.
7233 (streamer_pack_tree_bitfields): Call it.
7234 (streamer_write_integer_cst): Adjust.
7236 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7237 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7239 * config.gcc: Add support for ARMv8 for arm*-*-* targets.
7240 * config/arm/arm-arches.def: Add armv8-a
7241 * config/arm/arm-fpus.def: Add fp-armv8, neon-fp-armv8,
7242 crypto-neon-fp-armv8. Add crypto field.
7243 * config/arm/arm-tables.opt: Regenerate.
7244 * config/arm/arm.c (FL_FOR_ARCH8A): Likewise.
7245 (arm_arch8): New global variable.
7246 (ARM_FPU): Add crypto parameter.
7247 (arm_option_override): Set arm_arch8, update comments.
7248 * config/arm/arm.h (TARGET_CRYPTO): New macro.
7249 (arm_fpu_desc): Add crypto field.
7250 (base_architecture): Add ARMv8 entry.
7251 (arm_arch8): New variable declaration.
7252 * config/arm/bpabi.h: ARMv8 supports BE8.
7253 * doc/invoke.texi: Document ARMv8 options.
7255 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
7258 * trans-mem.c (diagnose_tm_1_op): Allow volatiles inside relaxed
7261 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
7263 PR rtl-optimization/54900
7264 * ifcvt.c (noce_can_store_speculate_p): Call
7265 memory_must_be_modified_in_insn_p.
7266 * alias.c (memory_must_be_modified_in_insn_p): New.
7267 (set_dest_equal_p): New.
7268 * rtl.h (memory_must_be_modified_in_p): Protoize.
7270 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7272 * config/rs6000/rs6000.opt (rs6000_isa_flags): New flag word to
7273 replace target_flags that gives us 63 possible switches.
7274 (x_rs6000_isa_flags): Save area for rs6000_isa_flags.
7275 (x_rs6000_isa_flags_explicit): Save area for rs6000_isa_flags_explicit.
7276 (rs6000_target_flags_explicit): Delete in favor of
7277 x_rs6000_isa_flags_explicit.
7278 (-mpowerpc64): Change all switches that used to be in target_flags
7279 to now be in rs6000_isa_flags. In using rs6000_isa_flags, the
7280 options machinary will generate names of the form OPITON_<xxx>
7281 instead of TARGET_<xxx> and OPTION_MASK_<xxx> instead of MASK_<xxx>.
7282 (-mpowerpc-gpopt): Likewise.
7283 (-mpowerpc-gfxopt): Likewise.
7284 (-mmfcrf): Likewise.
7285 (-mpopcntb): Likewise.
7286 (-mfprnd): Likewise.
7288 (-mmfpgpr): Likewise.
7289 (-maltivec): Likewise.
7290 (-mhard-dfp): Likewise.
7291 (-mmulhw): Likewise.
7292 (-mdlmzb): Likewise.
7293 (-mmultiple): Likewise.
7294 (-mstring): Likewise.
7295 (-msoft-float): Likewise.
7296 (-mhard-float): Likewise.
7297 (-mpopcntd): Likewise.
7299 (-mno-update): Likewise.
7300 (-mupdate): Likewise.
7301 (-mrecip-precision): Likewise.
7302 (-mminimal-toc): Likewise.
7304 * config/rs6000/aix64.opt (-maix64): Likewise.
7305 (-maix32): Likewise.
7306 * config/rs6000/sysv4.opt (-mstrict-align): Likewise.
7307 (-mrelocatable): Likewise.
7308 (-mlittle-endian): Likewise.
7309 (-mlittle): Likewise.
7310 (-mbig-endian): LIkewise.
7315 * config/rs6000/darwin.opt (-m64): Likewise.
7318 * config/rs6000/rs6000-cpus.def (ISA_2_1_MASKS): Move the various
7319 masks used in rs6000.c here, since they are more logically in this
7320 file. Convert from being enums to just #defines, since the types
7321 of these masks is now HOST_WIDE_INT instead of int. For
7322 POWERPC_MASKS, add MASK_SOFT_FLOAT, since the only use case or'ed
7323 in the mask. Change the use in rs6000.c not to do the OR of
7325 (ISA_2_1_MASKS): Likewise.
7326 (ISA_2_2_MASKS): Likewise.
7327 (ISA_2_4_MASKS): Likewise.
7328 (ISA_2_5_MASKS_EMBEDDED): Likewise.
7329 (ISA_2_5_MASKS_SERVER): Likewise.
7330 (POWERPC_7400_MASK): Likewise.
7331 (POWERPC_MASKS): Likewise.
7332 * config/rs6000/rs6000.c (ISA_2_1_MASKS): Likewise.
7333 (ISA_2_1_MASKS): Likewise.
7334 (ISA_2_2_MASKS): Likewise.
7335 (ISA_2_4_MASKS): Likewise.
7336 (ISA_2_5_MASKS_EMBEDDED): Likewise.
7337 (ISA_2_5_MASKS_SERVER): Likewise.
7338 (POWERPC_7400_MASK): Likewise.
7339 (POWERPC_MASKS): Likewise.
7340 (rs6000_option_override_internal): Likewise.
7342 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Change
7343 all uses of target_flags to rs6000_isa_flags. Change all uses of
7344 target_flags_explicit to rs6000_isa_flags_explicit. Change the
7345 use of MASK_<xxx> to OPTION_MASK_<xxx> that options.h defines when
7346 we use a secondary flags word. Save/restore/print the new flags
7347 word when switching contexts with different target attributes.
7348 (rs6000_option_override_internal): Likewise.
7349 (rs6000_darwin_file_start): Likewise.
7350 (rs6000_opt_masks): Likewise.
7351 (rs6000_inner_target_options): Likewise.
7352 (rs6000_pragma_target_parse): Likewise.
7353 (rs6000_set_current_function): Likewise.
7354 (rs6000_function_specific_save): Likewise.
7355 (rs6000_function_specific_restore): Likewise.
7356 (rs6000_function_specific_print): Likewise.
7357 (rs6000_can_inline_p): Likewise.
7358 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
7359 (rs6000_cpu_cpp_builtins): Likewise.
7360 * common/config/rs6000/rs6000-driver.c (rs6000_handle_option):
7363 * config/rs6000/rs6000.h (MASK_ALTIVEC): In moving to using
7364 Var(...) for all of the isa switches, the options machinery now
7365 uses OPTION_MASK_<xxx> instead of MASK_<xxx> for the mask name.
7366 Use #define to map the old name into the new name. For switches
7367 that are defined in aix64.opt, sysv4.opt, and darwin.opt, only do
7368 the definition if those switches were defined.
7369 (MASK_ALTIVEC): Likewise.
7370 (MASK_CMPB): Likewise.
7371 (MASK_DFP): Likewise.
7372 (MASK_DLMZB): Likewise.
7373 (MASK_EABI): Likewise.
7374 (MASK_FPRND): Likewise.
7375 (MASK_HARD_FLOAT): Likewise.
7376 (MASK_ISEL): Likewise.
7377 (MASK_MFCRF): Likewise.
7378 (MASK_MFPGPR): Likewise.
7379 (MASK_MULHW): Likewise.
7380 (MASK_MULTIPLE): Likewise.
7381 (MASK_NO_UPDATE): Likewise.
7382 (MASK_POPCNTB): Likewise.
7383 (MASK_POPCNTD): Likewise.
7384 (MASK_PPC_GFXOPT): Likewise.
7385 (MASK_PPC_GPOPT): Likewise.
7386 (MASK_RECIP_PRECISION): Likewise.
7387 (MASK_SOFT_FLOAT): Likewise.
7388 (MASK_STRICT_ALIGN): Likewise.
7389 (MASK_STRING): Likewise.
7390 (MASK_UPDATE): Likewise.
7391 (MASK_VSX): Likewise.
7392 (MASK_POWERPC64): Likewise.
7393 (MASK_64BIT): Likewise.
7394 (MASK_RELOCATABLE): Likewise.
7395 (MASK_LITTLE_ENDIAN): Likewise.
7396 (MASK_MINIMAL_TOC): Likewise.
7397 (MASK_REGNAMES): Likewise.
7398 (MASK_PROTOTYPE): Likewise.
7399 (rs6000_isa_flags_explicit): Define in terms of the
7400 global_options_set structure.
7402 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS):
7403 Change use of target_flags to rs6000_isa_flags, target_flags_explicit
7404 to rs6000_isa_flags_explicit, and MASK_<xxx> to OPTION_MASK_<xxx>.
7405 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7406 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7407 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7408 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7409 * config/rs6000/freebsd64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
7410 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7411 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
7412 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
7413 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7414 (OPTION_LITTLE_ENDIAN): Likewise.
7415 (OPTION_RELOCATABLE): Likewise.
7416 (OPTION_EABI): Likewise.
7417 (OPTION_PROTOTYPE): Likewise.
7418 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
7419 * config/rs6000/option-defaults.h (OPTION_MASK_64BIT): Likewise.
7420 (OPT_ARCH32): Likewise.
7421 (OPT_ARCH64): Likewise.
7422 * config/rs6000/sysv4.h (TARGET_TOC): Likewise.
7423 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7424 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7425 (TARGET_OS_SYSV_CPP_BUILTINS): Likewise.
7427 * config/rs6000/t-rs6000 (rs6000.o): Add rs6000-cpus.def as a
7430 2012-10-17 Jan Hubicka <jh@suse.cz>
7432 * cfgloopmanip.c (copy_loop_info): New function.
7433 (duplicate_loop): Use it.
7434 (loop_version): Use it.
7435 * loop-unswitch.c (unswitch_loop): Use it.
7436 * cfgloop.h (copy_loop_info): Declare.
7438 2012-10-17 Jan Hubicka <jh@suse.cz>
7440 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add edge_to_cancel
7441 parameter and use it to estimate code optimized out in the final
7443 (loop_edge_to_cancel): New function.
7444 (try_unroll_loop_completely): New IRRED_IVALIDATED parameter;
7445 handle unrolling loops with bounds given via max_loop_iteratins;
7446 handle unrolling non-inner loops when code size shrinks;
7447 tidy dump output; when the last iteration loop still stays
7448 as loop in the CFG forcongly redirect the latch to
7449 __builtin_unreachable.
7450 (canonicalize_loop_induction_variables): Add irred_invlaidated
7451 parameter; record niter bound derrived; dump
7452 max_loop_iterations bounds; call try_unroll_loop_completely
7453 even if no niter bound is given.
7454 (canonicalize_induction_variables): Handle irred_invalidated.
7455 (tree_unroll_loops_completely): Handle non-innermost loops;
7456 handle irred_invalidated.
7457 * cfgloop.h (unlop): Declare.
7458 * cfgloopmanip.c (unloop): Export.
7459 * tree.c (build_common_builtin_nodes): Build BULTIN_UNREACHABLE.
7461 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7463 * opth-gen.awk (TARGET_* generation): Always generate TARGET_<xxx>
7464 for Mask options, whether they use Var(...) or not.
7466 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): Use
7467 TARGET_<xxx> instead of OPTION_<xxx>.
7468 * config/i386/i386.h (TARGET_64BIT): Likewise.
7469 (TARGET_MMX): Likewise.
7470 (TARGET_3DNOW): Likewise.
7471 (TARGET_3DNOW_A): Likewise.
7472 (TARGET_SSE): Likewise.
7473 (TARGET_SSE2): Likewise.
7474 (TARGET_SSE3): Likewise.
7475 (TARGET_SSSE3): Likewise.
7476 (TARGET_SSE4_1): Likewise.
7477 (TARGET_SSE4_2): Likewise.
7478 (TARGET_AVX): Likewise.
7479 (TARGET_AVX2): Likewise.
7480 (TARGET_FMA): Likewise.
7481 (TARGET_SSE4A): Likewise.
7482 (TARGET_FMA4): Likewise.
7483 (TARGET_XOP): Likewise.
7484 (TARGET_LWP): Likewise.
7485 (TARGET_ROUND): Likewise.
7486 (TARGET_ABM): Likewise.
7487 (TARGET_BMI): Likewise.
7488 (TARGET_BMI2): Likewise.
7489 (TARGET_LZCNT): Likewise.
7490 (TARGET_TBM): Likewise.
7491 (TARGET_POPCNT): Likewise.
7492 (TARGET_SAHF): Likewise.
7493 (TARGET_MOVBE): Likewise.
7494 (TARGET_CRC32): Likewise.
7495 (TARGET_AES): Likewise.
7496 (TARGET_PCLMUL): Likewise.
7497 (TARGET_CMPXCHG16B): Likewise.
7498 (TARGET_FSGSBASE): Likewise.
7499 (TARGET_RDRND): Likewise.
7500 (TARGET_F16C): Likewise.
7501 (TARGET_RTM): Likewise.
7502 (TARGET_HLE): Likewise.
7503 (TARGET_RDSEED): Likewise.
7504 (TARGET_PRFCHW): Likewise.
7505 (TARGET_ADX): Likewise.
7506 (TARGET_64BIT): Likewise.
7507 (TARGET_MMX): Likewise.
7508 (TARGET_3DNOW): Likewise.
7509 (TARGET_3DNOW_A): Likewise.
7510 (TARGET_SSE): Likewise.
7511 (TARGET_SSE2): Likewise.
7512 (TARGET_SSE3): Likewise.
7513 (TARGET_SSSE3): Likewise.
7514 (TARGET_SSE4_1): Likewise.
7515 (TARGET_SSE4_2): Likewise.
7516 (TARGET_AVX): Likewise.
7517 (TARGET_AVX2): Likewise.
7518 (TARGET_FMA): Likewise.
7519 (TARGET_SSE4A): Likewise.
7520 (TARGET_FMA4): Likewise.
7521 (TARGET_XOP): Likewise.
7522 (TARGET_LWP): Likewise.
7523 (TARGET_ROUND): Likewise.
7524 (TARGET_ABM): Likewise.
7525 (TARGET_BMI): Likewise.
7526 (TARGET_BMI2): Likewise.
7527 (TARGET_LZCNT): Likewise.
7528 (TARGET_TBM): Likewise.
7529 (TARGET_POPCNT): Likewise.
7530 (TARGET_SAHF): Likewise.
7531 (TARGET_MOVBE): Likewise.
7532 (TARGET_CRC32): Likewise.
7533 (TARGET_AES): Likewise.
7534 (TARGET_PCLMUL): Likewise.
7535 (TARGET_CMPXCHG16B): Likewise.
7536 (TARGET_FSGSBASE): Likewise.
7537 (TARGET_RDRND): Likewise.
7538 (TARGET_F16C): Likewise.
7539 (TARGET_RTM): Likewise.
7540 (TARGET_HLE): Likewise.
7541 (TARGET_RDSEED): Likewise.
7542 (TARGET_PRFCHW): Likewise.
7543 (TARGET_ADX): Likewise.
7544 (TARGET_LP64): Likewise.
7545 (TARGET_X32): Likewise.
7546 (TARGET_ISA_ROUND): Likewise.
7547 * config/i386/darwin.h (TARGET_64BIT): Likewise.
7549 * doc/options.texi (Mask): Update documentation to specify only
7550 TARGET_<xxx> is generated.
7552 2012-10-17 Greta Yorsh <Greta.Yorsh@arm.com>
7554 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): Rename this...
7555 (UNSPEC_REGISTER_USE): ... to this.
7556 (prologue_use): Rename this...
7557 (force_register_use): ... to this and update output assembly.
7558 (epilogue) Rename gen_prologue_use to gen_force_register_use.
7559 * config/arm/arm.c (arm_expand_prologue): Likewise.
7560 (thumb1_expand_epilogue): Likewise.
7561 (arm_expand_epilogue): Likewise.
7562 (arm_expand_epilogue): Likewise.
7564 2012-10-17 Georg-Johann Lay <avr@gjlay.de>
7566 * config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype.
7567 * config/avr/avr.c (avr_extra_arch_macro): Remove variable.
7568 (avr_option_override): Remove setting of avr_extra_arch_macro.
7569 * config/avr/avr-c.c (avr_extra_arch_macro): Replace with
7570 avr_current_device->macro.
7572 2012-10-17 Richard Biener <rguenther@suse.de>
7574 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
7575 Do not write TREE_CHAIN of PARM_DECLs.
7576 (write_ts_decl_non_common_tree_pointers): Instead stream
7577 the DECL_ARGUMENTS chain.
7578 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7579 Do not read TREE_CHAIN of PARM_DECLs.
7580 (lto_input_ts_decl_non_common_tree_pointes): Instead read
7581 the DECL_ARGUMENTS as chain.
7583 2012-10-17 Steven Bosscher <steven@gcc.gnu.org>
7585 * config/iq2000/iq2000.h (call_used_regs): Remove definition.
7587 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
7589 PR rtl-optimization/54870
7590 * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
7591 * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
7592 SSA_NAME pointer that points to a partition if there is at least
7593 one variable with it set in the partition.
7594 * dse.c (local_variable_can_escape): New predicate.
7595 (can_escape): Call it.
7596 * gimplify.c (mark_addressable): If this is a partitioned decl, also
7597 mark the SSA_NAME pointer that points to a partition.
7599 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
7601 * df-problems.c (df_kill_notes): Split up in two functions.
7602 (df_remove_dead_and_unused_notes): New function, first half of
7603 df_kill notes to remove all REG_DEAD and REG_UNUSED notes.
7604 (df_remove_dead_eq_notes): New function, second half of df_kill_notes
7605 to remove REG_EQUAL and REG_EQUIV notes referring to dead registers.
7606 (df_note_bb_compute): Call df_remove_dead_and_unused_notes instead
7607 of df_kill_notes. Call df_remove_dead_eq_notes after processing insn.
7609 * web.c (web): Re-add DF_RD_PRUNE_DEAD_DEFS;
7611 2012-10-16 Ian Lance Taylor <iant@google.com>
7613 * doc/extend.texi (Return Address): Change
7614 __builtin_extract_return_address to
7615 __builtin_extract_return_addr.
7617 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
7619 * rtl.h (get_call_rtx_from): New prototype.
7620 * rtlanal.c (get_call_rtx_from): New function.
7621 * calls.c (emit_call_1): Use it.
7622 * dse.c (scan_insn): Likewise
7623 * dwarf2out.c (dwarf2out_var_location): Likewise.
7624 * sched-deps.c (call_may_noreturn_p): Likewise.
7625 * var-tracking.c (prepare_call_arguments): Likewise.
7626 * config/sh/sh.c (sh_adjust_cost): Likewise.
7628 2012-10-16 Tom de Vries <tom@codesourcery.com>
7630 * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces)
7631 (store_by_pieces_1): Don't enter loop when no more data is left.
7633 2012-10-16 Joern Rennecke <joern.rennecke@embecosm.com>
7635 * loop-doloop.c (doloop_modify): Pass doloop_end pattern to
7637 (doloop_optimize): Pass flag to indicate if loop is entered at top
7639 * config/arm/thumb2.md (doloop_end): Accept extra operand.
7640 * config/bfin/bfin.md (doloop_end): Likewise.
7641 * config/c6x/c6x.md (doloop_end): Likewise.
7642 * config/ia64/ia64.md (doloop_end): Likewise.
7643 * config/mep/mep.md (doloop_begin, doloop_end): Likewise.
7644 * config/rs6000/rs6000.md (doloop_end): Likewise.
7645 * config/s390/s390.md (doloop_end): Likewise.
7646 * config/sh/sh.md (doloop_end): Likewise.
7647 * config/spu/spu.md (doloop_end): Likewise.
7648 * config/tilegx/tilegx.md (doloop_end): Likewise.
7649 * config/tilepro/tilepro.md (doloop_end): Likewise.
7650 * doc/md.texi (doloop_end): Document new operand.
7651 * basic-block.h (contains_no_active_insn_p): Declare.
7652 * cfgrtl.c (contains_no_active_insn_p): New function, factored
7654 (forwarder_block_p): ... here.
7656 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7660 * doc/options.texi (EnabledBy): Document new form.
7661 * optc-gen.awk: Handle new form of EnabledBy.
7662 * common.opt (Wunused-but-set-parameter): Use EnabledBy.
7663 (Wunused-parameter): Likewise.
7664 * opts.c (finish_options): Do not handle them explicitly.
7665 * opt-functions.awk (search_var_name): New.
7667 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7671 * optc-gen.awk: Handle new form of LangEnabledBy.
7672 * opts.c (set_Wstrict_aliasing): Declare here. Make static.
7673 * common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init.
7674 * doc/options.texi (LangEnabledBy): Document new form.
7675 * flags.h (set_Wstrict_aliasing): Do not declare.
7677 2012-10-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7679 * reload.c (find_reloads_subreg_address): Remove FORCE_REPLACE
7680 parameter. Always replace normal subreg with memory reference
7681 whenever possible. Return NULL otherwise.
7682 (find_reloads_toplev): Always call find_reloads_subreg_address
7683 for subregs of registers equivalent to a memory location.
7684 Only recurse further if find_reloads_subreg_address fails.
7685 (find_reloads_address_1): Only call find_reloads_subreg_address
7686 for subregs of registers equivalent to a memory location.
7687 Properly handle failure of find_reloads_subreg_address.
7689 2012-10-16 Jakub Jelinek <jakub@redhat.com>
7692 * rtl.h: Document jump flag on VALUE.
7693 * cselib.h (cselib_set_value_sp_based,
7694 cselib_sp_based_value_p): New prototypes.
7695 * alias.c (find_base_term): For cselib_sp_based_value_p
7696 return static_reg_base_value[STACK_POINTER_REGNUM].
7697 * cselib.c (SP_BASED_VALUE_P): Define.
7698 (cselib_set_value_sp_based, cselib_sp_based_value_p): New functions.
7699 * var-tracking.c (add_stores): Call cselib_set_value_sp_based
7700 for not yet preserved VALUEs of sp on sp assignments if
7701 hard_frame_pointer_adjustment != -1.
7702 (vt_initialize): When setting hard_frame_pointer_adjustment,
7703 disassociate sp from its previous value and call
7704 cselib_set_value_sp_based on a new VALUE created for sp.
7706 PR tree-optimization/54889
7707 * tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if
7708 ARRAY_REF newref doesn't have compatible type with vectype element
7709 type, use vectype element type for MEM_REF.
7711 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
7713 * combine.c (record_dead_and_set_regs): Iterate over hard register set
7714 with a hard_reg_set_iterator.
7715 * cse.c (invalidate_for_call): Likewise.
7716 * gcse.c (compute_hash_table_work): Likewise.
7717 * loop-iv.c (simplify_using_initial_values): Likewise.
7718 * postreload-gcse.c (record_opr_changes): Likewise.
7719 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
7720 * var-tracking.c (dataflow_set_clear_at_call): Likewise.
7722 2012-10-15 Easwaran Raman <eraman@google.com>
7724 * optabs.c (emit_cmp_and_jump_insn_1): Add a new parameter to
7725 specificy the probability of taking the jump.
7726 (emit_cmp_and_jump_insns): Likewise.
7727 (expand_compare_and_swap_loop): Make the jump predicted not taken.
7728 * dojump.c (do_compare_rtx_and_jump): Remove the code attaching
7729 REG_BR_PROB note and pass probability to emit_cmp_and_jump_insns.
7730 * cfgbuild.c (compute_outgoing_frequencies): Do not guess outgoing
7731 probabilities for branches with more than two successors.
7732 * expr.c (emit_block_move_via_loop): Predict the loop backedge loop
7734 (try_casesi): Pass the probability of jumping to the default label.
7735 (try_tablejump): Likewise.
7736 (do_tablejump): Likewise.
7737 * expr.h (try_tablejump): Add a new parameter.
7738 (try_casesi): Likewise.
7739 (emit_cmp_and_jump_insns): Add probability as default parameter with a
7740 default value of -1.
7741 * except.c (sjlj_emit_function_enter): Pass probability to
7742 emit_cmp_and_jump_insns.
7743 * stmt.c (case_node): Add new fields PROB and SUBTREE_PROB.
7744 (do_jump_if_equal): Pass probability for REG_BR_PROB note.
7745 (add_case_node): Pass estimated probability of jumping to the case
7747 (emit_case_decision_tree): Pass default_prob to emit_case_nodes.
7748 (get_outgoing_edge_probs): New function.
7749 (conditional_probability): Likewise.
7750 (reset_out_edges_aux): Likewise.
7751 (compute_cases_per_edge): Likewise.
7752 (emit_case_dispatch_table): Update probabilities of edges coming out
7753 of the switch statement.
7754 (expand_case): Compute and propagate default edge probability to
7755 emit_case_dispatch_table.
7756 (expand_sjlj_dispatch_table): Update calls to add_case_node and
7757 emit_case_dispatch_table.
7758 (balance_case_nodes): Update subtree_prob values.
7759 (emit_case_nodes): Compute edge probabilities and add pass them to
7760 emit_cmp_and_jump_insns.
7762 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
7765 * config/sh/sh-protos.h (set_of_reg): New struct.
7766 (sh_find_set_of_reg, sh_is_logical_t_store_expr,
7767 sh_try_omit_signzero_extend): Declare...
7768 * config/sh/sh.c (sh_find_set_of_reg, sh_is_logical_t_store_expr,
7769 sh_try_omit_signzero_extend): ...these new functions.
7770 * config/sh/sh.md (*logical_op_t): New insn_and_split.
7771 (*zero_extend<mode>si2_compact): Use sh_try_omit_signzero_extend
7773 (*extend<mode>si2_compact_reg): Convert to insn_and_split.
7774 Use sh_try_omit_signzero_extend in splitter.
7775 (*mov<mode>_reg_reg): Disallow t_reg_operand as operand 1.
7776 (*cbranch_t): Rewrite combine part in splitter using new
7777 sh_find_set_of_reg function.
7779 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
7782 * config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when
7783 hitting a call insn if GBR is marked as call used.
7784 * config/sh/iterators.md (QIHISIDI): New mode iterator.
7785 * config/sh/predicates.md (gbr_address_mem): New predicate.
7786 * config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New
7787 insn_and_split. Use QIHISIDI instead of QIHISI in unnamed GBR
7790 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
7792 * config/sh/sh.c: Update function attribute comments.
7793 * doc/extend.texi (function_vector): Rephrase SH2A specific part.
7794 (nosave_low_regs, renesas, trapa_handler): Document SH specific
7796 (sp_switch, trap_exit): Add to index.
7798 2012-10-15 Matthias Klose <doko@ubuntu.com>
7800 * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
7801 * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.
7803 2012-10-15 Uros Bizjak <ubizjak@gmail.com>
7805 * config/i386/sse.md (UNSPEC_MOVU): Remove.
7806 (UNSPEC_LOADU): New.
7807 (UNSPEC_STOREU): Ditto.
7808 (<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
7809 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
7810 (<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
7811 (<sse2>_movdqu<avxsizesuffix>): Split to ...
7812 (<sse2>_loaddqu<avxsizesuffix>): ... this and ...
7813 (<sse2>_storedqu<avxsizesuffix>): ... this.
7814 (*sse4_2_pcmpestr_unaligned): Update.
7815 (*sse4_2_pcmpistr_unaligned): Ditto.
7817 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
7818 gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
7819 gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
7820 (ix86_expand_vector_move_misalign): Use gen_sse_loadups or
7821 gen_sse2_load{dqu,upd} to load from unaligned memory and
7822 gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
7824 (struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
7825 Use CODE_FOR_sse_loadups.
7826 <IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
7827 <IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
7828 <IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
7829 <IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
7830 <IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
7831 <IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
7832 <IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
7833 <IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
7834 <IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
7835 <IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
7836 <IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.
7838 2012-10-15 Dodji Seketeli <dodji@redhat.com>
7840 * alias.c: Cleanup comments.
7842 2012-10-15 Marc Glisse <marc.glisse@inria.fr>
7844 PR tree-optimization/54915
7845 * tree-ssa-forwprop.c (simplify_vector_constructor): Check
7848 2012-10-15 Richard Biener <rguenther@suse.de>
7850 * data-streamer.h (bp_pack_string_with_length): New function.
7851 (bp_pack_string): Likewise.
7852 (bp_unpack_indexed_string): Likewise.
7853 (bp_unpack_string): Likewise.
7854 * data-streamer-out.c (bp_pack_string_with_length): Likewise.
7855 (bp_pack_string): Likewise.
7856 * data-streamer-in.c (bp_unpack_indexed_string): Likewise.
7857 (bp_unpack_string): Likewise.
7858 * tree-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
7859 Pack TRANSLATION_UNIT_LANGUAGE here, not ...
7860 (write_ts_translation_unit_decl_tree_pointers): ... here. Remove.
7861 (streamer_pack_tree_bitfields): Adjust.
7862 (streamer_write_tree_body): Likewise.
7863 * tree-streamer-in.c (unpack_ts_translation_unit_decl_value_fields):
7864 Unpack TRANSLATION_UNIT_LANGUAGE here, not ...
7865 (lto_input_ts_translation_unit_decl_tree_pointers): ... here. Remove.
7866 (unpack_value_fields): Adjust.
7867 (streamer_read_tree_body): Likewise.
7869 2012-10-15 J"orn Rennecke <joern.rennecke@arc.com>
7871 * genoutput.c (process_template): Process '*' in '@' alternatives.
7872 * doc/md.texi (node Output Statement): Provide example for the above.
7874 2012-10-15 Richard Guenther <rguenther@suse.de>
7876 PR tree-optimization/54920
7877 * tree-ssa-pre.c (create_expression_by_pieces): Properly
7878 allocate temporary storage for all NARY elements.
7880 2012-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
7882 * web.c (union_match_dups): Properly handle OP_INOUT match_dups.
7884 2012-10-15 Eric Botcazou <ebotcazou@adacore.com>
7886 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Do not unnecessarily
7887 copy the object in the MEM_P case.
7889 2012-10-15 Richard Guenther <rguenther@suse.de>
7891 * tree-streamer-out.c (streamer_pack_tree_bitfields): Back
7892 BINFO_BASE_ACCESSES and CONSTRUCTOR lengths here.
7893 (streamer_write_chain): Write TREE_CHAIN as null-terminated list.
7894 (write_ts_exp_tree_pointers): Adjust.
7895 (write_ts_binfo_tree_pointers): Likewise.
7896 (write_ts_constructor_tree_pointers): Likewise.
7897 * tree-streamer-in.c (streamer_read_chain): Read TREE_CHAIN as
7898 null-terminated list.
7899 (unpack_value_fields): Unpack BINFO_BASE_ACCESSES and
7900 CONSTRUCTOR lengths and materialize the arrays.
7901 (lto_input_ts_exp_tree_pointers): Adjust.
7902 (lto_input_ts_binfo_tree_pointers): Likewise.
7903 (lto_input_ts_constructor_tree_pointers): Likewise.
7905 2012-10-14 Hans-Peter Nilsson <hp@bitrange.com>
7907 * config/mmix/mmix.c (mmix_opposite_regno): Handle the
7908 return-value register too.
7910 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
7912 PR rtl-optimization/38711
7913 * df.h (df_get_live_out, df_get_live_in): Make static inline functions.
7914 * df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h.
7915 * ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of
7917 * ira-build.c (create_bb_allocnos): Likewise.
7918 (create_loop_allocnos): Likewise, and use df_get_live_in instead of
7920 * ira-emit.c (generate_edge_moves): Likewise.
7921 (add_ranges_and_copies): Likewise.
7922 * ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of
7923 DF_LR_OUT, and df_get_live_in instead of DF_LR_IN.
7924 * ira.c (mark_elimination): Update DF_LR and DF_LIVE.
7925 (build_insn_chain): Use df_get_live_out instead of DF_LR_OUT.
7926 (do_reload): Remove the DF_LIVE problem for -O1.
7928 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
7930 PR rtl-optimization/54919
7931 * loop-unroll.c (struct var_to_expand): Remove accum_pos field.
7932 (analyze_insn_to_expand_var): Do not record accum_pos.
7933 (expand_var_during_unrolling): Use validate_replace_rtx_group to
7934 perform replacement of all references to SET_DEST (set) with the
7935 new register, including references in REG_EQUAL notes.
7936 (insert_var_expansion_initialization): Insert initializatio insns
7937 at the bottom of the pre-header of the loop.
7939 2012-10-14 Jan Hubicka <jh@suse.cz>
7941 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
7942 predict loops with multiple exits realistically.
7943 * cfgloopanal.c (single_likely_exit): New function.
7945 2012-10-14 Uros Bizjak <ubizjak@gmail.com>
7947 * config/alpha/alpha.md: Remove empty predicates and/or constraints.
7948 * config/alpha/sync.md: Ditto.
7950 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
7952 * config/alpha/alpha.md (I24MODE): New mode iterator.
7953 (any_divmod): New code iterator.
7954 (<code>si3): Macroize expander from {div,mod,udiv,umod}si3 using
7955 any_divmod code iterator.
7956 (<code>si3): Macroize expander from {div,mod,udiv,umod}di3 using
7957 any_divmod code iterator.
7958 (extendqi<mode>2): Macroize insn from extendqi{hi,si}2 using
7959 I24MODE mode iterator.
7960 (unaligned_store<mode>): Macroize expander from unaligned_store{qi,hi}
7961 using I12MODE mode iterator.
7962 (mov<mode>): Macroize expander from mov{qi,hi} using
7963 I12MODE mode iterator.
7965 2012-10-13 Eric Botcazou <ebotcazou@adacore.com>
7967 PR rtl-optimization/54871
7968 * loop-iv.c (simplify_using_initial_values): When scanning previous
7969 basic blocks, prune the recorded conditions if the current insn was
7970 not used to make a replacement.
7972 * loop-unroll.c (decide_unroll_constant_iterations): Clean up message.
7973 (unroll_loop_constant_iterations): Clarify head comment.
7974 (decide_unroll_runtime_iterations): Clean up message.
7975 (unroll_loop_runtime_iterations): Clarify head comment.
7976 (decide_peel_simple): Clean up message.
7977 (peel_loop_simple): Clarify head comment.
7978 (decide_unroll_stupid): Clean up message.
7979 (unroll_loop_stupid): Clarify head comment.
7981 2012-10-13 Andreas Schwab <schwab@linux-m68k.org>
7983 PR gcov-profile/44728
7984 * gcov.c (create_file_names): When stripping extension only look
7987 2012-10-13 Jan Hubicka <jh@suse.cz>
7989 * loop-iv.c (determine_max_iter): Fix handling of AND.
7990 (iv_number_of_iterations): Record upper bounds as unsigned
7993 2012-10-13 Steven Bosscher <steven@gcc.gnu.org>
7995 * ira.c (ira): Set current_loops to &ira_loops before recording
7996 loop exits. Release recorded exits and loops early.
7998 2012-10-13 Chung-Lin Tang <cltang@codesourcery.com>
8000 * builtins.c (expand_builtin_set_thread_pointer): Use
8001 create_input_operand() instead of create_fixed_operand().
8003 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
8005 * config/alpha/alpha.md (FMODE): New mode iterator.
8006 (modesuffix): Handle SF and DF modes.
8007 (opmode): New mode attribute.
8008 (abs<mode>2): Macroize insn from abs{sf,df}2 using FMODE mode iterator.
8009 (*nabs<mode>2): Macroize insn from *nabs{sf,df}2 using
8010 FMODE mode iterator.
8011 (neg<mode>2): Macroize insn from neg{sf,df}2 using FMODE mode iterator.
8012 (copysign<mode>3): Macroize insn from copysign{sf,df}3 using
8013 FMODE mode iterator.
8014 (*ncopysign<mode>3): Macroize insn from *ncopysign{sf,df}3 using
8015 FMODE mode iterator.
8016 (*add<mode>3_ieee): Macroize insn from *add{sf,df}_ieee using
8017 FMODE mode iterator.
8018 (add<mode>3): Macroize insn from add{sf,df}3 using FMODE mode iterator.
8019 (*sub<mode>3_ieee): Macroize insn from *sub{sf,df}3_ieee using
8020 FMODE mode iterator.
8021 (sub<mode>3): Macroize insn from sub{sf,df}3 using FMODE mode iterator.
8022 (*mul<mode>3_ieee): Macroize insn from *mul{sf,df}3_ieee using
8023 FMODE mode iterator.
8024 (mul<mode>3): Macroize insn from mul{sf,df}3 using FMODE mode iterator.
8025 (*div<mode>3_ieee): Macroize insn from *div{sf,df}3_ieee using
8026 FMODE mode iterator.
8027 (div<mode>3): Macroize insn from div{sf,df}3 using FMODE mode iterator.
8028 (*sqrt<mode>2_ieee): Macroize insn from *sqrt{sf,df}2_ieee using
8029 FMODE mode iterator.
8030 (sqrt<mode>2): Macroize insn from sqrt{sf,df}2
8031 using FMODE mode iterator.
8032 (*mov<mode>cc_internal): Macroize insn from *mov{sf,df}cc_internal
8033 using FMODE mode iterator.
8034 (mov<mode>cc): Macroize expander from mov{sf,df}cc
8035 using FMODE mode iterator.
8037 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
8040 * config/sh/sh.md: Correct define_delay for return insns.
8041 (*movsi_pop): Delete.
8043 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
8046 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped
8048 * config/sh/predicates.md (fpul_operand): Add comment.
8049 (fpul_fsca_operand, fsca_scale_factor): New predicates.
8050 * config/sh/sh.md (fsca): Move below sincossf3 expander. Convert to
8051 insn_and_split. Use fpul_fsca_operand and fsca_scale_factor
8052 predicates. Simplify fpul operand in splitter.
8054 2012-10-12 Jan Hubicka <jh@suse.cz>
8056 * tree-ssa-threadupdate.c (def_split_header_continue_p): Do not
8059 2012-10-12 Jan Hubicka <jh@suse.cz>
8061 * web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.
8063 2012-10-12 Aaron Gray <aaronngray.lists@gmail.com>
8064 Diego Novillo <dnovillo@google.com>
8066 * gengtype-lex.l: Support for C++ single line comments.
8067 Support for classes.
8068 (CXX_KEYWORD): New. Support C++ keywords inline, public,
8069 protected, private, template, operator, friend, &, ~.
8070 (TYPEDEF): New. Support typedef.
8071 * gengtype-parser.c: updated 'token_names[]'
8072 (direct_declarator): Add support for parsing functions and ctors.
8074 2012-10-12 Diego Novillo <dnovillo@google.com>
8076 * doc/gty.texi: Document C++ limitations in gengtype.
8077 * gengtype-lex.l (CID): Rename from ID.
8078 (ID): Include scoping '::' as part of the identifier name.
8079 * gengtype-parse.c (token_names): Update.
8080 (token_value_format): Update.
8081 (consume_until_eos): Rename from consume_until_semi.
8082 Remove unused argument IMMEDIATE. Update all callers.
8083 Also consider '}' as a finalizer.
8084 (consume_until_comma_or_eos): Rename from
8085 consume_until_comma_or_semi.
8086 Remove unused argument IMMEDIATE. Update all callers.
8087 Also consider '}' as a finalizer.
8088 (direct_declarator): Add documentation on ctor support.
8089 Add argument IN_STRUCT.
8090 If the token following ID is a '(', consider ID a
8091 function and return NULL.
8092 If the token following '(' is not a '*', and IN_STRUCT is true,
8093 conclude that this is a ctor and return NULL.
8094 If the token is IGNORABLE_CXX_KEYWORD, return NULL.
8095 (inner_declarator): Add argument IN_STRUCT.
8097 (declarator): Add argument IN_STRUCT with default value false.
8099 (type): Document argument NESTED.
8100 Skip over C++ inheritance specifiers.
8101 If a token TYPEDEF is found, emit an error.
8102 If an enum is found inside a class/structure, emit an error.
8103 (typedefs, structures, param_structs, variables): Initialize.
8104 (new_structure): Do not complain about duplicate
8105 structures if S has a line location set.
8106 * gengtype-state.c (write_state_type): Remove default handler.
8107 Add handler for TYPE_NONE.
8108 (read_state_scalar_char_type):
8109 * gengtype.c: Fix spacing.
8110 * gengtype.h (enum gty_token): Add name. Add token
8111 IGNORABLE_CXX_KEYWORD.
8113 2012-10-12 Chung-Lin Tang <cltang@codesourcery.com>
8115 * config/arm/arm.md (get_thread_pointersi): Moved to place with
8116 other TLS related patterns.
8118 2012-10-12 Richard Biener <rguenther@suse.de>
8120 * tree-streamer-out.c (pack_ts_target_option): Rename from ...
8121 (write_ts_target_option): ... this.
8122 (pack_ts_optimization): Rename from ...
8123 (write_ts_optimization): ... this.
8124 (streamer_pack_tree_bitfields): Pack them in the bitfield section ...
8125 (streamer_write_tree_body): ... not here.
8126 * tree-streamer-in.c (unpack_ts_target_option): Rename from ...
8127 (lto_input_ts_target_option): ... this.
8128 (unpack_ts_optimization): Rename from ...
8129 (lto_input_ts_optimization): ... this.
8130 (unpack_value_fields): Unpack them from the bitfield section ...
8131 (streamer_read_tree_body): ... not from here.
8133 2012-10-12 Uros Bizjak <ubizjak@gmail.com>
8135 * config/alpha/alpha.md (vecmodesuffix): New mode attribute.
8136 (modesuffix): Handle V8QI and V4HI modes.
8137 (any_maxmin): New code iterator.
8138 (maxmin): New code attribute.
8139 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{qi,hi}3
8140 using any_maxmin code iterator and I12MODE mode iterator.
8141 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{v8qi,v4hi}3
8142 using any_maxmin code iterator and VEC12 mode iterator.
8144 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
8146 * optabs.c (vector_compare_rtx): Change prototype.
8147 (expand_vec_cond_expr): Handle VEC_COND_EXPR whose first operand
8148 is not a comparison.
8149 * gimplify.c (gimplify_expr): Handle VEC_COND_EXPR.
8151 2012-10-12 Richard Biener <rguenther@suse.de>
8153 PR tree-optimization/54894
8154 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8155 Handle over-aligned scalar types properly.
8157 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
8160 * config/sh/sh.c (bdesc): Remove thread pointer built-ins.
8161 * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode
8164 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
8167 * config/sh/sh.md (negsi_cond, negdi_cond, stack_protect_test): Remove
8168 get_t_reg_rtx when invoking gen_branch_true or gen_branch_false.
8169 (*zero_extend<mode>si2_compact): Convert to insn_and_split. Convert
8170 zero extensions of T bit stores to reg moves in splitter. Remove
8171 obsolete unnamed peephole2 that caught zero extensions after negc T bit
8173 (*branch_true_eq, *branch_false_ne): Delete.
8174 (branch_true, branch_false): Convert insn to expander. Move actual
8176 (*cbranch_t): ...this new insn_and_split. Try to find preceding
8177 redundant T bit stores and tests and combine them with the conditional
8178 branch if possible in the splitter.
8179 (movrt_xor, *movt_movrt): New insn_and_split.
8180 * config/sh/predicates.md (cbranch_treg_value): New predicate.
8181 * config/sh/sh-protos.h (sh_eval_treg_value): Forward declare...
8182 * config/sh/sh.c (sh_eval_treg_value): ...this new function.
8183 (expand_cbranchsi4, expand_cbranchdi4): Remove get_t_reg_rtx
8184 when invoking gen_branch_true or gen_branch_false.
8186 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
8188 * config/alpha/alpha.md (IMODE): New mode iterator.
8191 (modesuffix): Handle QI and HI modes.
8192 (zero_extendqi<mode>2): Macroize insn from zero_extendqi{hi,si,di}2
8193 using I248MODE mode iterator.
8194 (zero_extendhi<mode>2): Macroize insn from zero_extendhi{si,di}2
8195 using I48MODE mode iterator.
8196 (andnot<mode>3): Macroize insn from andnot{si,di}3 using
8197 I48MODE mode iterator.
8198 (ins<modesuffix>l_const): Macroize insn from ins{b,w,l}l_const
8199 using I248MODE mode iterator.
8200 (ins<modesuffix>l): Macroize insn from ins{b,w,l}l
8201 using I248MODE mode iterator.
8202 (*mov<mode>cc_internal): Macroize insn from
8203 *mov{qi,hi,si,di}cc_internal using IMODE mode iterator.
8204 (*mov<mode>cc_lbc): Macroize insn from
8205 *mov{qi,hi,si,di}cc_lbc using IMODE mode iterator.
8206 (*mov<mode>cc_lbs): Macroize insn from
8207 *mov{qi,hi,si,di}cc_lbs using IMODE mode iterator.
8208 (mov<mode>cc): Macroize expander from mov{si,di}cc
8209 using I48MODE mode iterator.
8211 2012-10-11 Steven Bosscher <steven@gcc.gnu.org>
8213 * ira-build.c (ira_loop_tree_body_rev_postorder): New function.
8214 (ira_traverse_loop_tree): Traverse a loop's basic blocks in
8215 reverse post-order of the reversed control-flow direction.
8216 * ira-conflicts.c (ira_build_conflicts): Pass add_copies as
8217 the pre-order function to ira_traverse_loop_tree to preserve
8218 the existing semantics.
8220 * ira-lives.c (remove_some_program_points_and_update_live_ranges):
8221 Squeeze out live range chain elements if their program points are
8224 2012-10-11 Jakub Jelinek <jakub@redhat.com>
8226 * tree.def (REDUC_PLUS_EXPR): Fix up comment.
8228 * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR,
8229 REDUC_MAX_EXPR and REDUC_PLUS_EXPR.
8231 2012-10-11 James Lemke <jwlemke@codesourcery.com>
8233 * config/rs6000/predicates.md (zero_fp_constant): Fix comment.
8234 * config/rs6000/rs6000.md (return_pred): Fix null return.
8235 * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation.
8236 (print_operand): Make FALLTHRU obvious.
8237 (output_cbranch): Correct comment.
8239 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
8241 * config/alpha/alpha.md (DWI): New mode attribute.
8242 (*sadd<modesuffix>): Macroize insn from *saddl and *saddq using
8243 I48MODE mode iterator.
8244 (addv<mode>3): Macroize insn from addvsi3 and addvdi3 using
8245 I48MODE mode iterator.
8246 (neg<mode>2): Macroize insn from negsi2 and negdi2 using
8247 I48MODE mode iterator.
8248 (negv<mode>2): Macroize insn from negvsi2 and negvdi2 using
8249 I48MODE mode iterator.
8250 (sub<mode>3): Macroize insn from subsi3 and subdi3 using
8251 I48MODE mode iterator.
8252 (*ssub<modesuffix>): Macroize insn from *ssubl and *ssubq using
8253 I48MODE mode iterator.
8254 (subv<mode>3): Macroize insn from subvsi3 and subvdi3 using
8255 I48MODE mode iterator.
8256 (mul<mode>3): Macroize insn from mulsi3 and muldi3 using
8257 I48MODE mode iterator.
8258 (mulv<mode>3): Macroize insn from mulvsi3 and mulvdi3 using
8259 I48MODE mode iterator.
8260 (*iornot<mode>3): Macroize insn from *iornotsi3 and *iornotdi3 using
8261 I48MODE mode iterator.
8262 (*xornot<mode>3): Macroize insn from *xornotsi3 and *xornotdi3 using
8263 I48MODE mode iterator.
8265 2012-10-11 Jason Merrill <jason@redhat.com>
8267 * configure.ac (gcc_cv_as_aix_ref): Fix typo.
8268 * configure: Regenerate.
8270 2012-10-11 Chung-Lin Tang <cltang@codesourcery.com>
8272 * builtins.c (expand_builtin_thread_pointer): New.
8273 (expand_builtin_set_thread_pointer): New.
8274 (expand_builtin): Add BUILT_IN_THREAD_POINTER,
8275 BUILT_IN_SET_THREAD_POINTER expand cases.
8276 * builtins.def (BUILT_IN_THREAD_POINTER):
8277 New __builtin_thread_pointer builtin.
8278 (BUILT_IN_SET_THREAD_POINTER):
8279 New __builtin_set_thread_pointer builtin.
8280 * optabs.def (get_thread_pointer,set_thread_pointer):
8282 * doc/md.texi (Standard Names): Document get_thread_pointer and
8283 set_thread_pointer patterns.
8284 * config/alpha/alpha.md (get_thread_pointerdi): Rename from load_tp.
8285 (set_thread_pointerdi): Rename from set_tp.
8286 * config/alpha/alpha.c (alpha_legitimize_address_1): Change
8287 gen_load_tp calls to gen_get_thread_pointerdi.
8288 (alpha_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
8289 ALPHA_BUILTIN_SET_THREAD_POINTER.
8290 (code_for_builtin): Remove CODE_FOR_load_tp, CODE_FOR_set_tp.
8291 (alpha_init_builtins): Remove __builtin_thread_pointer,
8292 __builtin_set_thread_pointer machine-specific builtins.
8293 (alpha_expand_builtin_thread_pointer): Add hook function for
8294 TARGET_EXPAND_BUILTIN_THREAD_POINTER.
8295 (alpha_expand_builtin_set_thread_pointer): Add hook function for
8296 TARGET_EXPAND_BUILTIN_SET_THREAD_POINTER.
8297 (alpha_fold_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
8298 ALPHA_BUILTIN_SET_THREAD_POINTER cases.
8299 * config/arm/arm.md (get_thread_pointersi): New pattern.
8300 * config/arm/arm-protos.h (arm_load_tp): Add extern declaration.
8301 * config/arm/arm.c (arm_load_tp): Remove static.
8302 (arm_builtins): Remove ARM_BUILTIN_THREAD_POINTER.
8303 (arm_init_tls_builtins): Remove function.
8304 (arm_init_builtins): Remove call to arm_init_tls_builtins().
8305 (arm_expand_builtin): Remove ARM_BUILTIN_THREAD_POINTER case.
8306 * config/mips/mips.md (get_thread_pointer<mode>): New pattern.
8307 * config/mips/mips-protos.h (mips_expand_thread_pointer):
8308 Add extern declaration.
8309 * config/mips/mips.c (mips_expand_thread_pointer):
8310 Renamed from mips_get_tp.
8311 (mips_get_tp): New stub calling mips_expand_thread_pointer.
8312 * config/s390/s390.c (s390_builtin,code_for_builtin_64,
8313 code_for_builtin_31,s390_init_builtins,s390_expand_builtin): Remove.
8314 * config/s390/s390.md (get_tp_64,get_tp_31,set_tp_64,set_tp_31):
8316 (get_thread_pointer<mode>,set_thread_pointer<mode>):
8317 New, adapted from removed patterns.
8318 * config/xtensa/xtensa.md (get_thread_pointersi):
8319 Renamed from load_tp.
8320 (set_thread_pointersi): Renamed from set_tp.
8321 * config/xtensa/xtensa.c (xtensa_legitimize_tls_address):
8322 Change gen_load_tp calls to gen_get_thread_pointersi.
8323 (xtensa_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER and
8324 XTENSA_BUILTIN_SET_THREAD_POINTER.
8325 (xtensa_init_builtins): Remove __builtin_thread_pointer,
8326 __builtin_set_thread_pointer machine-specific builtins.
8327 (xtensa_fold_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
8328 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
8329 (xtensa_expand_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
8330 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
8332 2012-10-11 Marc Glisse <marc.glisse@inria.fr>
8334 * doc/extend.texi (Vector Extensions): C++ improvements.
8335 * doc/generic.texi (LSHIFT_EXPR, RSHIFT_EXPR): Mixed vector-scalar.
8336 (LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, NE_EXPR): Specify
8338 (VEC_COND_EXPR): Document it.
8340 2012-10-11 Terry Guo <terry.guo@arm.com>
8342 * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
8344 * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
8347 2012-10-11 Hans-Peter Nilsson <hp@bitrange.com>
8350 * configure.ac (out-of-tree linker .hidden support) Set to "no"
8351 for mmix-knuth-mmixware.
8352 * configure: Regenerate.
8354 * configure.ac (gcc_cv_as_comdat_group_group): Default to no.
8355 * configure: Regenerate.
8357 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Allow a single
8358 character to quote the VERSION= contents. Sanity-check contents.
8359 * configure.ac ("what linker to use" ld version extraction): Ditto.
8360 * configure: Regenerate.
8362 2012-10-10 Segher Boessenkool <segher@kernel.crashing.org>
8364 * config/rs6000/rs6000.h (PRINT_OPERAND_PUNCT_VALID_P): Delete '.'.
8366 2012-10-10 Jakub Jelinek <jakub@redhat.com>
8368 PR tree-optimization/54877
8369 * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
8370 use make_ssa_name instead of copy_ssa_name.
8372 2012-10-10 Richard Biener <rguenther@suse.de>
8374 * lto-streamer-in.c (lto_input_location_bitpack): Rename to ...
8375 (lto_input_location): ... this. Kill original.
8376 (input_eh_region): Adjust.
8377 (input_struct_function_base): Likewise.
8378 (lto_read_tree): Likewise.
8379 * lto-streamer-out.c (lto_output_location_bitpack): Rename to ...
8380 (lto_output_location): ... this. Kill original.
8381 (lto_write_tree): Adjust.
8382 (output_eh_region): Likewise.
8383 (output_struct_function_base): Likewise.
8384 * lto-streamer.c (lto_streamer_hooks_init): Initialize location hooks.
8385 * lto-streamer.h (lto_input_location): Adjust prototype.
8386 (lto_output_location): Likewise.
8387 * streamer-hooks.h (struct streamer_hooks): Adjust prototype
8388 of input_location and output_location hooks.
8389 (stream_input_location): New define.
8390 (stream_output_location): Likewise.
8391 * tree-streamer-in.c (unpack_ts_block_value_fields): Adjust.
8392 (unpack_value_fields): Likewise.
8393 (streamer_read_tree_bitfields): Likewise.
8394 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
8395 (lto_input_ts_exp_tree_pointers): Likewise.
8396 (lto_input_ts_block_tree_pointers): Likewise.
8397 * tree-streamer-out.c (pack_ts_block_value_fields): Adjust.
8398 (streamer_pack_tree_bitfields): Likewise.
8399 (write_ts_decl_minimal_tree_pointers): Likewise.
8400 (write_ts_exp_tree_pointers): Likewise.
8401 (write_ts_block_tree_pointers): Likewise.
8402 * gimple-streamer-in.c (input_phi): Adjust.
8403 (input_gimple_stmt): Likewise.
8404 * gimple-streamer-out.c (output_phi): Adjust.
8405 (output_gimple_stmt): Likewise.
8406 * tree-streamer.h (streamer_read_tree_bitfields): Adjust prototype.
8407 (streamer_pack_tree_bitfields): Likewise.
8409 2012-10-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8411 * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Fix signed
8412 vs. unsigned warnings by using enum type for function code.
8413 (paired_expand_builtin): Likewise.
8414 (spe_expand_builtin): Likewise.
8416 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Change
8417 builtin mask, target flags masks type to HOST_WIDE_INT in
8418 preparation for growing the number of ISA switches from 31 to 63.
8420 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Make mask type
8423 * config/rs6000/rs6000.c (struct builtin_description): Make
8424 builtin mask field HOST_WIDE_INT. Make target flags field
8425 HOST_WIDE_INT in preparation for growing the # of ISA switches.
8426 (struct rs6000_builtin_info_type): Likewise.
8427 (struct rs6000_ptt): Likewise.
8428 (rs6000_builtin_mask_calculate): Likewise.
8429 (rs6000_invalid_builtin): Likewise.
8430 (rs6000_builtin_decl): Likewise.
8431 (rs6000_common_init_builtins): Likewise.
8432 (rs6000_darwin_file_start): Likewise.
8433 (rs6000_final_prescan_insn): Likewise.
8434 (rs6000_inner_target_options): Likewise.
8435 (build_target_option_node): Likewise.
8436 (rs6000_function_specific_print): Likewise.
8437 (DEBUG_FMT_W): New format for printing HOST_WIDE_INT in hex.
8439 * config/rs6000/rs6000-protos.h (rs6000_builtin_mask_calculate):
8440 Make target flags, builtin masks arguments/return values
8441 HOST_WIDE_INT in preparation for growing the number of ISA from 31
8443 (rs6000_target_modify_macros): Likewise.
8444 (rs6000_target_modify_macros_ptr): Likewise.
8446 * config/rs6000/rs6000.c (DEBUG_FMT_ID): Move "-32s" to a separate
8447 define and change DEBUG_FMT_<x> to use it.
8448 (DEBUG_FMT_D): Likewise.
8449 (DEBUG_FMT_S): Likewise.
8450 (DEBUG_FMT_X): Delete, no longer used.
8451 (DEBUG_FMT_W): Likewise.
8452 (DEBUG_FMT_WX): New debug format for printing options in a
8454 (rs6000_debug_reg_global): If -mdebug=reg, print all of the
8455 options in target_flags and target_flags_explicit. Print the
8456 default options for -mcpu=<xxx>, -mtune=<xxx>, and the default
8457 options. Adjust printing out the builtin options.
8458 (rs6000_option_override_internal): Change printing the builtin
8459 options to use rs6000_print_builtin_options.
8460 (rs6000_function_specific_print): Change to use
8461 rs6000_print_isa_options to print ISA flags.
8462 (rs6000_print_options_internal): New function for expanded
8463 -mdebug=reg option printing to print both the ISA options, and the
8464 builtins that are enabled.
8465 (rs6000_print_isa_options): New function to print the ISA options.
8466 (rs6000_print_builtin_options): New function to print the builtin
8469 2012-10-10 Jakub Jelinek <jakub@redhat.com>
8472 * config/i386/bdver1.md (bdver1-mult): Remove.
8475 * combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH
8476 instead of '2' resp. 'c' for GET_RTX_CLASS comparisons.
8479 * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of
8480 INTVAL of second argument with precision resp. op_precision.
8482 2012-10-10 Dodji Seketeli <dodji@redhat.com>
8484 PR middle-end/54860 - Make sure attributes hash table is created
8485 * attribs.c (register_scoped_attributes): Ensure the attribute
8486 hash table is created.
8488 2012-10-10 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8491 * config/i386/bdver1.md (bdver1_int): Automaton has been
8492 split to reduce state transitions.
8494 2012-10-10 Richard Biener <rguenther@suse.de>
8497 * ipa-prop.c (prune_expression_for_jf_1): New function.
8498 (prune_expression_for_jf): Clear EXPR_LOCATION for all
8499 sub-expressions as well.
8501 2012-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8503 * config.gcc: Enable zEC12 for with-arch and with-tune
8505 * common/config/s390/s390-common.c (processor_flags_table): Add
8507 * config/s390/2827.md: New file.
8508 * config/s390/s390-opts.h (enum processor_type): Add
8509 PROCESSOR_2827_ZEC12.
8510 * config/s390/s390.h (enum processor_flags): Add PF_ZEC12.
8511 (TARGET_CPU_ZEC12, TARGET_ZEC12): New macro definitions.
8512 * config/s390/s390.c (zEC12_cost): New definition.
8513 (s390_option_override): Set costs for zEC12.
8514 Set parameter defaults for zEC12.
8515 (legitimate_reload_fp_constant_p): Adjust comment.
8516 (preferred_la_operand_p): Adjust comment.
8517 (s390_expand_insv): Generate insv pattern without CC clobber for zEC12.
8518 (s390_adjust_priority): Add zEC12 check.
8519 (s390_issue_rate): Return 2 for zEC12.
8520 (s390_reorg): Enable code optimizations for zEC12.
8521 (s390_sched_reorder): Reorder insns according to OOO attributes.
8522 (s390_get_sched_attrmask): New function.
8523 (s390_sched_score): New function.
8524 (s390_sched_variable_issue): Update s390_sched_state.
8525 (s390_sched_init): Reset s390_sched_state.
8526 (s390_loop_unroll_adjust): Enable for zEC12.
8527 * config/s390/s390.opt: Add zEC12 processor type value.
8528 * config/s390/s390.md: Enable mnemonic attribute.
8529 (attr cpu, cpu_facility): Add zEC12.
8531 ("*insv<mode>_zEC12", "*insv<mode>_zEC12_noshift")
8532 ("*load_and_trap<mode>"): New insn definition.
8533 ("*cmp_and_trap_unsigned_int<mode>"): Add clt and clgt.
8535 2012-10-09 David S. Miller <davem@davemloft.net>
8537 * config/sparc/sparc.md (type attribute): Add new types 'visl'
8538 (VIS logical operation), 'vismv' (VIS move), and 'pdistn'. Rename
8539 'fgm_pdist' to 'pdist'.
8540 (*movsi_insn): Use vismv and visl.
8541 (*movdi_insn_sp64): Likewise.
8542 (*movsf_insn): Likewise.
8543 (*movdf_insn_sp64): Likewise.
8544 (*mov<VM32:mode>_insn): Likewise, use 'fsrc2s' instead of 'fsrc1s'.
8545 (*mov<VM64:mode>_insn_sp64): Likewise, use 'fsrc2s'
8546 instead of 'fsrc1s'.
8547 (*mov<VM64:mode>_insn_sp32): Likewise, use 'fsrc2s'
8548 instead of 'fsrc1s'.
8549 (VIS logical instructions): Mark as visl.
8550 (pdist_vis): Use 'pdist'.
8551 (pditsn<mode>_vis): Use 'pdistn'.
8552 * config/sparc/ultra1_2.md: Adjust for new VIS attribute types.
8553 * config/sparc/ultra3.md: Likewise.
8554 * config/sparc/niagara.md: Likewise.
8555 * config/sparc/niagara2.md: Likewise.
8556 * config/sparc/niagara4.md: Add cpu units "n4_slot2" and
8557 "n4_load_store" for special store scheduling. Use them in load
8558 and store reservations. Integer divide and multiply can only
8559 issue in slot-1. Represent 1-cycle VIS moves and 3-cycle VIS
8562 2012-10-10 Dehao Chen <dehao@google.com>
8564 * tree-eh.c (lower_try_finally_onedest): Set correct location for
8566 * gimplify.c (gimplify_expr): Set correct location for TRY stmt.
8568 2012-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8571 * config/sh/sh.md (extv, extzv): Check that operands[3] is zero,
8572 regardless of the endianness.
8574 2012-10-09 Lawrence Crowl <crowl@google.com>
8576 * Makefile.in (fold-const.o): Add depencence on hash-table.h.
8579 * fold-const.c (fold_checksum_tree): Change to new
8580 type-safe hash table.
8581 * (print_fold_checksum): Likewise.
8582 * cfg.c (var bb_original): Likewise.
8583 * (var bb_copy): Likewise.
8584 * (var loop_copy): Likewise.
8585 * hash-table.h (template hash_table): Constify parameters for find...
8586 and remove_elt... member functions.
8587 (hash_table::empty) Correct size expression.
8588 (hash_table::clear_slot) Correct deleted entry assignment.
8589 * dse.c (var rtx_group_table): Change to new type-safe hash table.
8591 2012-10-09 Steven Bosscher <steven@gcc.gnu.org>
8593 * basic-block. (profile_record): New struct, moved from passes.c.
8594 * cfghooks.h (struct cfg_hooks) <account_profile_record>: New hook.
8595 (account_profile_record): New prototype.
8596 * cfghooks.c (account_profile_record): New function.
8597 * tree-cfg.c (gimple_account_profile_record): New function
8598 (gimple_cfg_hooks): Add it.
8599 * cfgrtl.c (rtl_account_profile_record): New function
8600 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it.
8601 * passes.c (check_profile_consistency): Simplify. Move IR-dependent
8602 code around using cfghooks machinery.
8604 2012-10-09 Oleg Endo <olegendo@gcc.gnu.org>
8607 * doc/extend.texi (Target Builtins): Add SH built-in section.
8608 Document __builtin_thread_pointer and __builtin_set_thread_pointer.
8610 2012-10-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8613 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
8614 Perform non constant step prefetching in inner loop, only
8615 when it is invariant in the entire loop nest.
8616 * tree-ssa-loop-prefetch.c (dump_mem_details): New function to dump
8617 base, step and delta values of memeory reference analysed for
8619 * tree-ssa-loop-prefetch.c (dump_mem_ref): Call dump_mem_details
8620 to print base, step and delta values of memory reference.
8621 * cfgloop.h (loop_outermost): New function that returns outermost
8622 loop for a given loop in a loop nest.
8624 2012-10-09 Richard Guenther <rguenther@suse.de>
8627 * cfgexpand.c (expand_debug_source_expr): Move checking
8628 code conditional on a found decl_debug_args vector.
8630 2012-10-09 Richard Guenther <rguenther@suse.de>
8632 * tree-streamer.c (streamer_tree_cache_get): Move ...
8633 * tree-streamer.h (streamer_tree_cache_get): ... here as inline.
8635 2012-10-09 Jan Hubicka <jh@suse.cz>
8637 * loop-unroll.c (unroll_loop_constant_iterations): Add
8638 update of loop->nb_iterations_upper_bound I missed in my previous
8639 commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide
8641 (decide_unroll_runtime_iterations): Avoid overflow.
8642 (unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of
8643 FLOOR_DIV_EXPR to update iteration bounds.
8644 (decide_peel_simple): Avoid integer overflow when deciding
8645 on number of peelings.
8646 (decide_unroll_stupid): Likewise.
8648 2012-10-09 Tobias Burnus <burnus@net-b.de>
8650 * lto-cgraph.c (input_node_opt_summary): Remove unused code.
8651 * lto-opts.c (append_to_collect_gcc_options): Fix condition.
8652 * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string
8653 which is passed to fprintf.
8655 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
8658 * tree.h: Add EXPR_LOC_OR_LOC.
8660 2012-10-09 Nick Clifton <nickc@redhat.com>
8662 PR rtl-optimization/54739
8663 * config/mcore/mcore.md: (anddi3, iordi3, xordi3): Delete patterns.
8666 * config/mcore/mcore.c (mcore_output_movedouble): Fix typo.
8668 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
8671 * fold-const.c (fold_binary_loc): Use build_zero_cst instead of
8672 build_int_cst for a potential vector.
8674 2012-10-08 Uros Bizjak <ubizjak@gmail.com>
8676 * config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes.
8677 (atom_sse_5): Ditto.
8679 2012-10-08 Marc Glisse <marc.glisse@inria.fr>
8682 * config/i386/i386.md (type attribute): Add sseadd1.
8683 (unit attribute): Add support for sseadd1.
8684 (memory attribute): Likewise.
8685 * config/i386/athlon.md: Likewise.
8686 * config/i386/core2.md: Likewise.
8687 * config/i386/atom.md: Likewise.
8688 * config/i386/ppro.md: Likewise.
8689 * config/i386/bdver1.md: Likewise.
8690 * config/i386/sse.md (sse3_h<plusminus_insn>v2df3): Split into...
8691 (sse3_haddv2df3): ... expander.
8692 (*sse3_haddv2df3): ... define_insn. Accept permuted operands.
8693 (sse3_hsubv2df3): ... define_insn.
8694 (*sse3_haddv2df3_low): New define_insn.
8695 (*sse3_hsubv2df3_low): New define_insn.
8697 2012-10-08 Jan Hubicka <jh@suse.cz>
8699 * loop-unswitch.c (unswitch_single_loop): Use
8700 estimated_loop_iterations_int to prevent unswitching when loop
8701 is known to not roll.
8702 * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault
8703 when SCEV is not initialized.
8704 (max_loop_iterations): Likewise.
8705 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use
8706 estimated_loop_iterations_int to prevent unswithcing when
8707 loop is known to not roll.
8708 * tree-scalar-evolution.c (scev_initialized_p): New function.
8709 * tree-scalar-evolution.h (scev_initialized_p): Likewise.
8710 * loop-unroll.c (decide_peel_once_rolling): Use
8711 max_loop_iterations_int.
8712 (unroll_loop_constant_iterations): Update
8713 nb_iterations_upper_bound and nb_iterations_estimate.
8714 (decide_unroll_runtime_iterations): Use
8715 estimated_loop_iterations or max_loop_iterations;
8716 (unroll_loop_runtime_iterations): fix profile updating.
8717 (decide_peel_simple): Use estimated_loop_iterations
8718 and max_loop_iterations.
8719 (decide_unroll_stupid): Use estimated_loop_iterations
8720 ad max_loop_iterations.
8721 * loop-doloop.c (doloop_modify): Use max_loop_iterations_int.
8722 (doloop_optimize): Likewise.
8723 * loop-iv.c (iv_number_of_iterations): Use record_niter_bound.
8724 (find_simple_exit): Likewise.
8725 * cfgloop.h (struct niter_desc): Remove niter_max.
8727 2012-10-08 Marek Polacek <polacek@redhat.com>
8730 * var-tracking.c (vt_add_function_parameter): Use condition instead
8733 2012-10-08 Dehao Chen <dehao@google.com>
8735 * predict.c (predict_loops): Predict for short-circuit conditions.
8736 (predict_extra_loop_exits): New Function.
8738 2012-10-08 Steven Bosscher <steven@gcc.gnu.org>
8740 * bitmap.h (bitmap_and_into): Update prototype.
8741 * bitmap.c (bitmap_and_into): Return true if the target bitmap
8742 changed, false otherwise.
8744 * df.h (df_dump_insn_problem_function): New function type.
8745 (struct df_problem): Add two functions, to dump just before and
8747 (DF_RD_PRUNE_DEAD_DEFS): New changable flag.
8748 (df_dump_insn_top, df_dump_insn_bottom): New prototypes.
8749 * df-core (df_dump_region): Use dump_bb.
8750 (df_dump_bb_problem_data): New function.
8751 (df_dump_top, df_dump_bottom): Rewrite using df_dump_bb_problem_data.
8752 (df_dump_insn_problem_data): New function.
8753 (df_dump_insn_top, df_dump_insn_bottom): New functions.
8754 * df-scan.c (problem_SCAN): Add NULL fields for new members.
8755 * df-problems.c (df_rd_local_compute): Ignore hard registers if
8756 DF_NO_HARD_REGS is in effect.
8757 (df_rd_transfer_function): If DF_RD_PRUNE_DEAD_DEFS is in effect,
8758 prune reaching defs using the LR problem.
8759 (df_rd_start_dump): Fix dumping of DEFs map.
8760 (df_rd_dump_defs_set): New function.
8761 (df_rd_top_dump, df_rd_bottom_dump): Use it.
8762 (problem_RD): Add NULL fields for new members.
8763 (problem_LR, problem_LIVE): Likewise.
8764 (df_chain_bb_dump): New function.
8765 (df_chain_top_dump): Dump only for artificial DEFs and USEs,
8766 using df_chain_bb_dump.
8767 (df_chain_bottom_dump): Likewise.
8768 (df_chain_insn_top_dump, df_chain_insn_bottom_dump): New functions.
8769 (problem_CHAIN): Add them as new members.
8770 (problem_WORD_LR, problem_NOTE): Add NULL fields for new members.
8771 (problem_MD): Likewise.
8772 * cfgrtl.c (rtl_dump_bb): Use df_dump_insn_top and df_dump_insn_bottom.
8773 (print_rtl_with_bb): Likewise.
8775 * dce.c (init_dce): Use DF_RD_PRUNE_DEAD_DEFS.
8776 * loop-invariant.c (find_defs): Likewise.
8777 * loop-iv.c (iv_analysis_loop_init): Likewise.
8778 * ree.c (find_and_remove_re): Likewise.
8779 * web.c (web_main): Likewise.
8781 2012-10-08 Jason Merrill <jason@redhat.com>
8783 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
8784 ASM_WEAKEN_DECL with #if RS6000_WEAK.
8786 2012-10-08 Richard Guenther <rguenther@suse.de>
8788 PR tree-optimization/54825
8789 * tree-ssa-sccvn.c (vn_nary_length_from_stmt): Handle BIT_FIELD_REF.
8790 (init_vn_nary_op_from_stmt): Likewise.
8791 * tree-ssa-pre.c (compute_avail): Use vn_nary_op_lookup_stmt.
8792 * tree-ssa-sccvn.h (sizeof_vn_nary_op): Avoid overflow.
8794 2012-10-08 Richard Guenther <rguenther@suse.de>
8796 * tree-ssa-pre.c (postorder_num): New global.
8797 (compute_antic): Initialize all blocks and adjust for
8799 (my_rev_post_order_compute): Remove.
8800 (init_pre): Use inverted_post_order_compute.
8802 2012-10-08 Bernd Schmidt <bernds@codesourcery.com>
8804 * sched-int.h (schedule_block): Adjust declaration.
8805 * sched-rgn.c (bb_state_array, bb_state): New static variables.
8806 (sched_rgn_init): Initialize them.
8807 (sched_rgn_free): Free them.
8808 (schedule_region): Save scheduling state for future blocks, and
8809 pass such state to schedule_block.
8810 * params.def (PARAM_SCHED_STATE_EDGE_PROB_CUTOFF): New.
8811 * doc/invoke.texi (--param): Document it.
8812 * haifa-sched.c (schedule_block): New arg init_state. Use it to
8813 initialize state if nonnull. All callers changed.
8814 Call advance_one_cycle after scheduling.
8816 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
8819 * doc/invoke.texi (AVR Options): Remove -mshort-calls.
8820 * config/avr/avr.opt (-mshort-calls): Remove option.
8821 * config/avr/avr.h (AVR_HAVE_JMP_CALL): Don't depend on
8824 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
8827 * config/sh/sh.md (one_cmplsi2): Make insn_and_split. Add manual
8828 combine matching for an insn sequence where a ge:SI pattern
8831 2012-10-08 Dodji Seketeli <dodji@redhat.com>
8833 PR c++/53528 C++11 attribute support
8834 * plugin.h (register_scoped_attributes): Declare new function.
8835 * tree.h (enu attribute_flags::ATTR_FLAG_CXX_11): New flag.
8836 (lookup_scoped_attribute_spec, cxx_11_attribute_p)
8837 (get_attribute_name, get_attribute_namespace): Declare new functions.
8838 (struct attribute_spec): Remove const qualifier from the members.
8839 * tree.c (comp_type_attributes, private_lookup_attribute)
8840 (lookup_ident_attribute, remove_attribute, merge_attribute)
8841 (attribute_hash_list, attribute_list_contained): Use
8843 * attribs.c (decl_attributes): Don't crash on error_mark_node.
8844 Forbid c++11 attributes appertaining to type-specifiers.
8845 (attribute_hash): Remove global variable.
8846 (attributes_table): New global variable.
8847 (find_attribute_namespace, register_scoped_attribute): New static
8849 (register_scoped_attributes, lookup_scoped_attribute_spec)
8850 (cxx11_attribute_p, get_attribute_name, get_attribute_namespace):
8851 New public functions.
8852 (init_attributes): Register all the GNU attributes into the "gnu"
8854 (register_attribute): Use register_scoped_attribute to register
8855 the attribute into the "gnu" namespace.
8856 (lookup_attribute_spec): Use lookup_scoped_attribute_spec to
8857 lookup the attribute in the "gnu" namespace.
8858 (decl_attributes): Use new get_attribute_namespace and
8859 lookup_scoped_attribute_spec to consider attribute namespaces when
8860 looking up attributes. When operating in c++-11 mode, pass flag
8861 ATTR_FLAG_CXX11 to the spec handler.
8863 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
8866 * config/avr/avr.md (*add<mode>3, add<mode>3, addpsi3): Make
8867 constraint alternative "r,0,r" slighly more expensive.
8868 (sub<mode>3, andqi3, andhi3, andpsi3, andsi3): Ditto.
8869 (iorqi3, iorhi3, iorpsi3, iorsi3): Ditto.
8870 (xorhi3, xorpsi3, xorsi3): Ditto.
8872 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
8875 * config/sh/sh.md (*mov<mode>_gbr_load, *mov<mode>_gbr_store): New
8876 insns and accompanying unnamed splits.
8877 * config/sh/predicates.md (general_movsrc_operand,
8878 general_movdst_operand): Reject GBR addresses.
8879 * config/sh/sh-protos.h (sh_find_equiv_gbr_addr): New declaration.
8880 * config/sh/sh.c (sh_address_cost, sh_legitimate_address_p,
8881 sh_secondary_reload): Handle GBR addresses.
8882 (base_reg_disp): New class.
8883 (sh_find_base_reg_disp, sh_find_equiv_gbr_addr): New functions.
8885 2012-10-08 Hans-Peter Nilsson <hp@bitrange.com>
8887 * config/mmix/mmix.c (mmix_output_octa): Don't assume
8888 HOST_WIDEST_INT_PRINT_HEX starts with "0x". Instead use
8889 HOST_WIDE_INT_PRINT_HEX_PURE, falling back to
8890 HOST_WIDEST_INT_PRINT_UNSIGNED.
8892 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
8894 * machmode.h (GET_MODE_UNIT_PRECISION): New macro.
8895 * simplify-rtx.c (simplify_truncation): New function,
8896 extracted from simplify_subreg and (in small part) from
8897 simplify_unary_operation_1.
8898 (simplify_unary_operation_1) <TRUNCATE>: Use it. Remove sign bit
8899 test for !TRULY_NOOP_TRUNCATION_MODES_P.
8900 (simplify_subreg): Use simplify_truncate for lowpart subregs
8901 where both the inner and outer modes are scalar integers.
8902 * config/mips/mips.c (mips_truncated_op_cost): New function.
8903 (mips_rtx_costs): Adjust test for BADDU.
8904 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
8906 2012-10-07 Jan Hubicka <jh@suse.cz>
8908 * ipa-inline-analysis.c (do_estimate_edge_time): Return actual
8909 time spent by the inlined sequence.
8910 (do_estimate_edge_growth): Rename to ...
8911 (do_estimate_edge_time): ... this one; return size of inlined sequence.
8912 * ipa-inline.h (do_estimate_edge_size): New.
8913 (do_estimate_edge_growth): Remove.
8914 (estimate_edge_size): New function.
8915 (estimate_edge_growth): Use it.
8917 2012-10-07 Jan Hubicka <jh@suse.cz>
8919 * lto-cgraph.c (lto_symtab_encoder_new): New parameter FOR_INPUT.
8920 (lto_symtab_encoder_delete): Update.
8921 (lto_symtab_encoder_encode): Update.
8922 (compute_ltrans_boundary): Update.
8923 (input_symtab): Update.
8924 * lto-streamer.h (lto_symtab_encoder_new): Update.
8926 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
8928 * config/mips/mips-protos.h (mips_split_type): New enum.
8929 (mips_split_64bit_move_p, mips_split_doubleword_move): Delete.
8930 (mips_split_move_p, mips_split_move, mips_split_move_insn_p)
8931 (mips_split_move_insn): Declare.
8932 * config/mips/mips.c (mips_tuning_info): New variable.
8933 (mips_load_store_insns): Use mips_split_move_insn_p instead of
8934 mips_split_64bit_move_p.
8935 (mips_emit_move_or_split, mips_mult_move_p): New functions.
8936 (mips_split_64bit_move_p): Rename to...
8937 (mips_split_move_p): ...this and take a mips_split_type argument.
8938 Generalize to all moves. Call mips_mult_move_p.
8939 (mips_split_doubleword_move): Rename to...
8940 (mips_split_move): ...this and take a mips_split_type argument.
8941 Assert that mips_split_move_p holds.
8942 (mips_insn_split_type, mips_split_move_insn_p, mips_split_move_insn):
8944 (mips_output_move): Use mips_split_move_p instead of
8945 mips_split_64bit_move_p. Handle MULT $0, $0 moves.
8946 (mips_save_reg): Use mips_emit_move_or_split.
8947 (mips_sim_reset): Assign to curr_state. Call targetm.sched.init
8949 (mips_sim_init): Call targetm.sched.init_dfa_pre_cycle_insn and
8950 targetm.sched.init_dfa_post_cycle_insn, if defined.
8951 (mips_sim_next_cycle): Assign to curr_state. Use advance_state
8952 instead of state_transition.
8953 (mips_sim_issue_insn): Assign to curr_state. Use
8954 targetm.sched.variable_issue to see how many more insns can be issued.
8955 (mips_seq_time, mips_mult_zero_zero_cost)
8956 (mips_set_fast_mult_zero_zero_p, mips_set_tuning_info)
8957 (mips_expand_to_rtl_hook): New functions.
8958 (TARGET_EXPAND_TO_RTL_HOOK): Define.
8959 * config/mips/mips.md (move_type): Add imul.
8960 (type): Map imul move_types to imul.
8961 (*movdi_32bit, *movti): Add imul alternatives.
8962 Use mips_split_move_insn_p and mips_split_move_insn instead of
8963 mips_split_64bit_move_p and mips_split_doubleword_move in move
8966 2012-10-06 Segher Boessenkool <segher@kernel.crashing.org>
8968 * config/rs6000/rs6000.c (print_operand) ['A']: Delete.
8970 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
8973 * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define
8974 __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS.
8975 * ginclude/stdint-gcc.h: In C++11 unconditionally define
8976 limit and constant macros.
8978 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
8981 * ginclude/stddef.h: In C++11 mode declare nullptr_t in the global
8984 2012-10-06 Jan Hubicka <jh@suse.cz>
8988 * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack.
8990 2012-10-06 Dehao Chen <dehao@google.com>
8993 * gimple-low.c (lower_stmt): Set the block for call args.
8995 2012-10-06 Jan Hubicka <jh@suse.cz>
8997 * doc/invoke.texi (-fprofile-report): Document.
8998 * common.opt (-fprofile-report): New option.
8999 * toplev.c (finalize): Call dump_profile_report.
9000 * toplev.h (profile_report): Declare.
9001 * passes.c (profile_record): New static var.
9002 (check_profile_consistency): New function.
9003 (dump_profile_record): New function.
9004 (execute_one_ipa_transform_pass): Call check_profile_consistency.
9005 (execute_one_pass): Likewise.
9007 2012-10-06 Jan Hubicka <jh@suse.cz>
9010 * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution,
9011 lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove.
9012 * lto-symtab.c (lto_symtab_register_decl): Remove.
9014 2012-10-06 Andreas Schwab <schwab@linux-m68k.org>
9016 PR rtl-optimization/54739
9017 * config/m68k/m68k.md (anddi3, iordi3, xordi3, one_cmpldi2): Remove.
9019 2012-10-06 Oleg Endo <olegendo@gcc.gnu.org>
9022 * config/sh/sh.md (define_constants): Add UNSPECV_GBR.
9023 (get_thread_pointer, set_thread_pointer): New expanders.
9024 (load_gbr): Rename to store_gbr. Remove GBR_REG use.
9025 (store_gbr): New insn.
9026 * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of
9027 gen_load_gbr in TLS_MODEL_LOCAL_EXEC case.
9028 (sh1_builtin_p): New function.
9029 (signature_args): Add SH_BLTIN_VP.
9030 (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer.
9032 2012-10-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9034 PR rtl-optimization/54739
9035 * config/pa/pa.md: Remove DImode and, not and, ior and xor patterns
9036 for 32-bit targets. Adjust expanders.
9038 * config/pa/pa.md: Adjust unamed HImode add insn pattern.
9040 2012-10-05 Oleg Endo <olegendo@gcc.gnu.org>
9042 * config/sh/sh.c (builtin_description): Add is_enabled member.
9043 (shmedia_builtin_p): New function.
9044 (bdesc): Use shmedia_builtin_p for existing built-ins.
9045 (sh_media_init_builtins, sh_init_builtins): Merge into single function
9046 sh_init_builtins. Add is_enabled checking. Move variable declarations
9047 to where they are actually used.
9048 (sh_media_builtin_decl, sh_builtin_decl): Merge into single function
9049 sh_builtin_decl. Add is_enabled checking.
9050 (sh_expand_builtin): Move variable declarations to where they are
9053 2012-10-05 Jakub Jelinek <jakub@redhat.com>
9055 * tree-inline.c (expand_call_inline): Move VAR_DECLs with
9056 PARM_DECL origins from remapped DECL_INITIAL's BLOCK_VARS
9057 into id->block's BLOCK_VARS.
9060 * ipa-split.c (split_function): Add debug args and debug source
9061 and normal stmts for args_to_skip which are gimple regs.
9062 * tree-inline.c (copy_debug_stmt): When inlining, adjust source
9063 debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL.
9065 2012-10-05 Georg-Johann Lay <avr@gjlay.de>
9067 * config/avr/avr.md: Fix indentations of insn C snippets.
9069 2012-10-05 Richard Guenther <rguenther@suse.de>
9072 * tree-ssa-live.c (clear_unused_block_pointer_1): Look at
9073 DECL_DEBUG_EXPR again.
9075 2012-10-05 Jan Hubicka <jh@suse.cz>
9076 Jakub Jelinek <jakub@redhat.com>
9078 PR tree-optimization/33763
9079 * tree-inline.c (expand_call_inline): Silently ignore always_inline
9080 attribute for redefined extern inline functions.
9082 2012-10-04 Jan Hubicka <jh@suse.cz>
9084 * tree-vectorizer.h (vect_estimate_min_profitable_iters): Remove.
9085 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Declare here.
9086 (vect_analyze_loop_operations): Use loop count estimate to rule out
9087 unprofitable vectorization.
9088 (vect_estimate_min_profitable_iters): Return
9089 ret_min_profitable_estimate.
9091 2012-10-05 Jakub Jelinek <jakub@redhat.com>
9093 PR tree-optimization/54810
9094 * tree-vrp.c (register_edge_assert_for_2): Handle
9095 NAME = (unsigned) NAME2; if (NAME cmp CST) for
9096 narrowing casts to unsigned integral type like
9097 NAME = NAME2 & CST2; if (NAME cmp CST) where CST2
9098 is the max value of the unsigned integral type.
9100 2012-10-04 Jeff Law <law@redhat.com>
9103 * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case.
9105 2012-10-04 Jason Merrill <jason@redhat.com>
9107 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
9108 ASM_WEAKEN_DECL with #if RS6000_WEAK.
9110 2012-10-04 Basile Starynkevitch <basile@starynkevitch.net>
9112 * gengtype.c (walk_type): Emit mark_hook when inside a
9113 struct of a union member.
9115 2012-10-04 Georg-Johann Lay <avr@gjlay.de>
9117 * config/avr/predicates.md (flash_operand): New predicate.
9118 * config/avr/avr.md (reload_in<mode>): Use it in operand 1 instead
9121 2012-10-04 Tobias Burnus <burnus@net-b.de>
9123 * gcc.c (record_temp_file, add_sysrooted_prefix, process_command,
9124 do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks.
9125 (do_spec_1): Ditto, fix out-of-bound access.
9126 * opts.c (common_handle_option): Plug memleak.
9128 2012-10-04 Jason Merrill <jason@redhat.com>
9130 * config/darwin.c (darwin_assemble_visibility): Treat
9131 VISIBILITY_INTERNAL as hidden.
9133 * config/darwin-c.c (find_subframework_file): Add missing const.
9134 (framework_construct_pathname): Likewise.
9136 2012-10-04 Florian Weimer <fweimer@redhat.com>
9138 * doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma
9141 2012-10-04 Richard Guenther <rguenther@suse.de>
9144 * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
9145 cleaning up the CFG.
9147 2012-10-04 Richard Guenther <rguenther@suse.de>
9150 * tree-streamer-out.c (write_ts_block_tree_pointers): For
9151 inlined functions outer scopes write the ultimate origin
9152 as BLOCK_ABSTRACT_ORIGIN and BLOCK_SOURCE_LOCATION.
9153 Do not stream the fragment chains.
9154 * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Likewise.
9155 * dwarf2out.c (gen_subprogram_die): Handle NULL DECL_INITIAL.
9156 (dwarf2out_decl): Always output DECL_ABSTRACT function decls.
9158 2012-10-04 Arnaud Charlet <charlet@adacore.com>
9160 * dumpfile.h, dumpfile.c: Remove TDI_ada.
9162 2012-10-04 Yuri Rumyantsev <ysrumyan@gmail.com>
9164 * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add
9165 check on reload_completed since it can be invoked before
9166 register allocation phase in pre-reload schedule.
9167 (ia32_multipass_dfa_lookahead) : Do not use dfa_lookahead for
9168 pre-reload schedule to save compile time.
9169 (ix86_sched_reorder) : Do not perform ready list reordering for
9170 pre-reload schedule to save compile time.
9171 (insn_is_function_arg) : New function. Returns true if lhs of insn is
9172 HW function argument register.
9173 (add_parameter_dependencies) : New function. Add output dependencies
9174 for chain of function adjacent arguments if only there is a move to
9175 likely spilled HW registers. Return first argument if at least one
9176 dependence was added or NULL otherwise.
9177 (avoid_func_arg_motion) : New function. Add output or anti dependency
9178 from insn to first_arg to restrict code motion.
9179 (add_dependee_for_func_arg) : New function. Avoid cross block motion of
9180 function argument through adding dependency from the first non-jump
9182 (ix86_dependencies_evaluation_hook) : New function. Hook for
9183 pre-reload schedule: avoid motion of function arguments passed in
9184 likely spilled HW registers.
9185 (ix86_adjust_priority) : New function. Hook for pre-reload schedule:
9186 set priority of moves from likely spilled HW registers to maximum to
9187 schedule them as soon as possible.
9188 (ix86_sched_init_global): Do not perform multipass scheduling for
9189 pre-reload schedule to save compile time.
9191 2012-10-04 Uros Bizjak <ubizjak@gmail.com>
9193 * configure.ac (noexception_flags): Add -fasynchronous-unwind-tables.
9194 * configure: Regenerate.
9196 2012-10-04 Kaz Kojima <kkojima@gcc.gnu.org>
9198 * config/sh/sh.c (sh_can_use_simple_return_p): Return false for
9199 SHmedia and SHcompact using call cookie.
9200 * config/sh/sh.md (epilogue): Emit non-inlined return insns for
9201 SHmedia and SHcompact using call cookie.
9203 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
9206 * config/sh/sh.md (*mov_t_msb_neg): New insn and two accompanying
9207 unnamed split patterns.
9209 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
9212 * config/sh/sh.c (parse_validate_atomic_model_option): Handle name
9213 strings in sh_atomic_model.
9214 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation
9216 * config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function.
9217 Add __SH1__ and __SH2__ defines. Add __SH_ATOMIC_MODEL_*__ define.
9218 * config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name
9220 (sh_cpu_cpp_builtins): Declare new function.
9222 2012-10-03 Dehao Chen <dehao@google.com>
9225 * tree-cfg.c (move_block_to_fn): Update lexical block for phi_args.
9227 2012-10-03 Vladimir Makarov <vmakarov@redhat.com>
9229 * reginfo.c (max_regno_since_last_resize): New.
9230 (reg_preferred_class, reg_alternate_class): Add assert.
9231 (allocate_reg_info): Initialize allocated reg info.
9232 (resize_reg_info): Make bigger reg_info and initialize new memory.
9233 (reginfo_init): Initialize max_regno_since_last_resize.
9234 (setup_reg_classes): Change assert.
9236 2012-10-03 Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
9238 * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
9239 in SSE and YMM state support check for -march=native.
9241 2012-10-03 Nick Clifton <nickc@redhat.com>
9243 * config/rx/rx.c (struct decl_chain): New local structure.
9244 (warned_decls): New local variable. Contains a stack of decls for
9245 which warnings have been issued.
9246 (add_warned_decl): Adds a decl to the stack.
9247 (already_warned): Returns true if a given decl is on the stack.
9248 (rx_set_current_function): Issue a warning if multiple fast
9249 interrupt handlers are defined.
9250 * config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option.
9251 * doc/invoke.texi: Document the option.
9253 2012-10-03 Mark Kettenis <kettenis@openbsd.org>
9255 * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
9256 default_use_cxa_atexit to yes.
9258 2012-10-03 Jakub Jelinek <jakub@redhat.com>
9260 PR rtl-optimization/54792
9261 * sched-deps.c (find_modifiable_mems): Scan also TAIL insn.
9263 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
9266 * doc/invoke.texi: Document -mprefer-avx128.
9268 2012-10-02 Andrew Pinski <apinski@cavium.com>
9270 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
9271 Don't optimize a truncate of a mem if it is a vector mode.
9273 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
9276 * Makefile.in (VALTRACK_H): Add hash-table.h.
9277 * valtrack.h: Include hash-table.h.
9278 (struct dead_debug_global_entry): New.
9279 (struct dead_debug_hash_descr): New.
9280 (struct dead_debug_global): New.
9281 (struct dead_debug): Rename to...
9282 (struct dead_debug_local): ... this. Adjust all uses.
9283 (dead_debug_global_init, dead_debug_global_finish): New.
9284 (dead_debug_init): Rename to...
9285 (dead_debug_local_init): ... this. Adjust all callers.
9286 (dead_debug_finish): Rename to...
9287 (dead_debug_local_finish): ... this. Adjust all callers.
9288 * valtrack.c (dead_debug_global_init): New.
9289 (dead_debug_init): Rename to...
9290 (dead_debug_local_init): ... this. Take global parameter.
9291 Save it and initialize used bitmap from it.
9292 (dead_debug_global_find, dead_debug_global_insert): New.
9293 (dead_debug_global_replace_temp): New.
9294 (dead_debug_promote_uses): New.
9295 (dead_debug_finish): Rename to...
9296 (dead_debug_local_finish): ... this. Promote remaining uses.
9297 (dead_debug_global_finish): New.
9298 (dead_debug_add): Try to replace global temps first.
9299 (dead_debug_insert_temp): Support global replacements.
9300 * dce.c (word_dce_process_block, dce_process_block): Add
9301 global_debug parameter. Pass it on.
9302 (fast_dce): Initialize, pass on and finalize global_debug.
9303 * df-problems.c (df_set_unused_notes_for_mw): Adjusted.
9304 (df_create_unused_notes, df_note_bb_compute): Likewise.
9305 (df_note_compute): Justify local-only dead debug analysis.
9307 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
9310 * dwarf2out.c (value_format): Use block4 for dw_val_class_loc
9313 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
9316 * var-tracking.c (vt_add_function_parameter): Bail if
9319 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
9322 * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
9323 (XSTATE_FP): Likewise.
9324 (XSTATE_SSE): Likewise.
9325 (XSTATE_YMM): Likewise.
9326 (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
9327 SSE and YMM states aren't supported.
9329 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9331 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
9332 (*baddu_si): ...this new pattern.
9334 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9336 * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs.
9337 (ira_useful_class_mode_regs): New macro.
9338 * ira.c (clarify_prohibited_class_mode_regs): Set up
9339 ira_useful_class_mode_regs.
9340 * ira-color.c (setup_profitable_hard_regs): Use it to initialise
9341 profitable_hard_regs.
9343 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9345 * ira.h (target_ira): Add x_ira_class_singleton.
9346 (ira_class_singleton): New macro.
9347 * ira.c (setup_prohibited_class_mode_regs): Set up ira_class_singleton.
9348 * ira-build.c (update_conflict_hard_reg_costs): Use
9349 ira_class_singleton to check for classes with a single
9350 allocatable register.
9351 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Likewise.
9352 (single_reg_class): Likewise. When more than one class is specified,
9353 check whether they have the same singleton register.
9354 (process_single_reg_class_operands): Require single_reg_class
9355 to return NO_REGS or a class with a single allocatable register.
9356 Obtain that register from ira_class_singleton.
9358 2012-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9360 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9361 -mcpu=<xxx> is not specified and the compiler is not configured
9362 using --with-cpu=<xxx>, use the bits from the TARGET_DEFAULT to
9363 set the initial options.
9365 2012-10-02 Sharad Singhai <singhai@google.com>
9368 * tree-vect-stmts.c (vectorizable_operation): Add missing return.
9370 2012-10-02 David Edelsohn <dje.gcc@gmail.com>
9372 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9373 set TARGET_ALTIVEC_VRSAVE for TARGET_ELF.
9374 (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE.
9376 2012-10-02 Jakub Jelinek <jakub@redhat.com>
9378 PR tree-optimization/54713
9379 * expr.c (categorize_ctor_elements_1): Don't assume purpose is
9381 * tree-cfg.c (verify_gimple_assign_single): Add verification of
9382 vector CONSTRUCTORs.
9383 * tree-ssa-sccvn.c (vn_reference_lookup_3): For VECTOR_TYPE
9384 CONSTRUCTORs, don't do anything if element type is VECTOR_TYPE,
9385 and don't check index.
9386 * tree-vect-slp.c (vect_get_constant_vectors): VIEW_CONVERT_EXPR ctor
9387 elements first if their type isn't compatible with vector element type.
9389 2012-10-02 Eric Botcazou <ebotcazou@adacore.com>
9391 * tree.h (DECL_NONLOCAL_FRAME): New macro.
9392 * tree-nested.c (get_frame_type): Set DECL_NONLOCAL_FRAME.
9393 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream in
9394 DECL_NONLOCAL_FRAME flag.
9395 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream out
9396 DECL_NONLOCAL_FRAME flag.
9398 2012-10-02 Marc Glisse <marc.glisse@inria.fr>
9400 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
9401 boolean_type_node for vectors.
9403 2012-10-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9405 * config/rs6000/rs6000.c (toplevel): Include dumpfile.h.
9406 (rs6000_density_test): Rework to accommodate 09-30 change by
9409 * config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency.
9411 2012-10-01 Dehao Chen <dehao@google.com>
9414 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use
9415 LOCATION_LOCUS to compare with UNKNOWN_LOCATION.
9416 (slpeel_tree_peel_loop_to_edge): Likewise.
9417 * tree-vectorizer.c (vectorize_loops): Likewise.
9419 2012-10-01 Andrew MacLeod <amacleod@redhat.com>
9422 * optabs.c (expand_atomic_fetch_op_no_fallback): New. Factored code
9423 from expand_atomic_fetch_op.
9424 (expand_atomic_fetch_op): Try atomic_{add|sub} operations in terms of
9425 the other one if direct opcode fails.
9427 2012-10-01 Uros Bizjak <ubizjak@gmail.com>
9429 PR rtl-optimization/54457
9430 * simplify-rtx.c (simplify_subreg):
9431 Simplify (subreg:M (op:N ((x:N) (y:N)), 0)
9432 to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where
9433 the outer subreg is effectively a truncation to the original mode M.
9435 2012-10-01 Richard Guenther <rguenther@suse.de>
9437 * builtins.def (ATTR_MATHFN_FPROUNDING): Do not use no-vops
9438 with -frounding-math.
9439 * builtin-attrs.def (ATTR_PURE_NOTHROW_NOVOPS_LIST): Remove.
9440 (ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST): Likewise.
9442 2012-10-01 Eric Botcazou <ebotcazou@adacore.com>
9444 * tree.h (copy_mem_ref_info): Delete.
9445 * tree-ssa-address.c (copy_mem_ref_info): Likewise.
9446 (maybe_fold_tmr): Copy flags manually.
9447 * tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite.
9449 2012-10-01 Marc Glisse <marc.glisse@inria.fr>
9451 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9452 Detect the identity.
9453 <VEC_CONCAT>: Handle VEC_SELECTs from the same vector.
9455 2012-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9458 * config/sh/sh.opt (matomic-model): New option.
9459 (msoft-atomic): Mark as deprecated and alias to
9460 matomic-model=soft-gusa.
9461 (mhard-atomic): Delete.
9462 * config/sh/predicates.md (gbr_displacement): New predicate.
9463 * config/sh/sh-protos.h (sh_atomic_model): New struct.
9464 (selected_atomic_model): New declaration.
9465 (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT, TARGET_ATOMIC_SOFT_GUSA,
9466 TARGET_ATOMIC_HARD_LLCS, TARGET_ATOMIC_SOFT_TCB,
9467 TARGET_ATOMIC_SOFT_TCB_GBR_OFFSET_RTX, TARGET_ATOMIC_SOFT_IMASK):
9469 * config/sh/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Adapt setting to
9470 default atomic model.
9471 * config/sh/sh.c (selected_atomic_model_): New global variable.
9472 (selected_atomic_model, parse_validate_atomic_model_option): New
9474 (sh_option_override): Replace atomic selection checks with call to
9475 parse_validate_atomic_model_option.
9476 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
9477 UNSUPPORTED_HARD_ATOMIC_CPU): Delete.
9478 (DRIVER_SELF_SPECS): Remove atomic checks.
9479 config/sh/sync.md: Update documentation comments.
9480 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
9481 atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
9482 atomic_<fetchop_name>_fetch<mode>, atomic_nand_fetch<mode>): Use
9483 TARGET_ATOMIC_ANY as condition. Add TARGET_ATOMIC_STRICT check for
9484 SH4A case. Handle new TARGET_ATOMIC_SOFT_TCB and
9485 TARGET_ATOMIC_SOFT_IMASK cases.
9486 (atomic_test_and_set): Handle new TARGET_ATOMIC_SOFT_TCB and
9487 TARGET_ATOMIC_SOFT_IMASK cases.
9488 (atomic_compare_and_swapsi_hard, atomic_exchangesi_hard,
9489 atomic_fetch_<fetchop_name>si_hard, atomic_fetch_nandsi_hard,
9490 atomic_<fetchop_name>_fetchsi_hard, atomic_nand_fetchsi_hard):
9491 Add TARGET_ATOMIC_STRICT check.
9492 (atomic_compare_and_swap<mode>_hard, atomic_exchange<mode>_hard,
9493 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nand<mode>_hard,
9494 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetch<mode>_hard,
9495 atomic_test_and_set_hard): Use TARGET_ATOMIC_HARD_LLCS condition.
9496 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
9497 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
9498 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
9499 atomic_test_and_set_soft): Append _gusa to the insn names and use
9500 TARGET_ATOMIC_SOFT_GUSA as condition.
9501 (atomic_compare_and_swap<mode>_soft_tcb,
9502 atomic_exchange<mode>_soft_tcb,
9503 atomic_fetch_<fetchop_name><mode>_soft_tcb,
9504 atomic_fetch_nand<mode>_soft_tcb,
9505 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
9506 atomic_nand_fetch<mode>_soft_tcb, atomic_test_and_set_soft_tcb):
9508 (atomic_compare_and_swap<mode>_soft_imask,
9509 atomic_exchange<mode>_soft_imask,
9510 atomic_fetch_<fetchop_name><mode>_soft_imask,
9511 atomic_fetch_nand<mode>_soft_imask,
9512 atomic_<fetchop_name>_fetch<mode>_soft_imask,
9513 atomic_nand_fetch<mode>_soft_imask, atomic_test_and_set_soft_imask):
9515 * doc/invoke.texi (SH Options): Document new matomic-model option.
9516 Remove msoft-atomic and mhard-atomic options.
9518 2012-10-01 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9521 * config/s390/s390.c (s390_option_override): Add missing break.
9523 2012-09-30 Sharad Singhai <singhai@google.com>
9525 * dumpfile.c: New file with parts moved from tree-dump.c.
9526 (pflags): New variable.
9528 (alt_dump_file): Ditto.
9529 (dump_files): Update to include additional fields.
9530 (struct dump_option_value_info): Add additional entries.
9531 (get_dump_file_name): Use command line filename if available.
9532 (dump_open_alternate_stream): New function.
9534 (dump_gimple_stmt): Ditto.
9535 (dump_gimple_stmt_loc): Ditto.
9536 (dump_generic_expr): Ditto.
9537 (dump_generic_expr_loc): Ditto.
9538 (dump_printf): Ditto.
9539 (dump_printf_loc): Ditto.
9540 (dump_start): Ditto.
9541 (dump_finish): Ditto.
9542 (dump_begin): Ditto.
9543 (dump_enabled_p): Return true if either of the dump types is enabled.
9544 (dump_initialized_p): Return true if either type of dump is
9546 (dump_end): Do not close standard streams.
9547 (dump_enable_all): Handle filenames for regular dumps.
9548 (dump_switch_p_1): Handle command-line dump filenames.
9549 (opt_info_enable_all): New function.
9550 (opt_info_switch_p_1): Ditto.
9551 (opt_info_switch_p): Ditto.
9552 (dump_kind_p): Ditto.
9553 (dump_basic_block): Ditto.
9554 (dump_combine_total_stats): Ditto.
9555 (dump_remap_tree_vectorizer_verbose): Ditto.
9556 * gimple-pretty-print.h: Rename dump_gimple_stmt to
9557 pp_gimple_stmt_1. All callers updated.
9559 2012-09-30 Sharad Singhai <singhai@google.com>
9561 * doc/invoke.texi: Add documentation for the new -fopt-info option.
9562 * tree-dump.c: Move general dump file related functionality into
9563 dumpfile.c. Remove unneeded headers.
9564 * tree-dump.h: Move function declarations into dumpfile.h.
9565 * dumpfile.h: Include "line-map.h". Add defines for MSG flags.
9566 (struct dump_file_info): Move here from tree-dump.c. Rename flags
9567 to pflags, state to pstate, stream to pstream, filename to
9568 pfilename. All callers updated. Add alt_flags, alt_state,
9569 alt_filenmae, alt_stream.
9570 * tree-vectorizer.c: Include "dumpfile.h". Remove vect_dump.
9571 (vect_set_dump_settings): Remove.
9572 (vect_print_dump_info): Ditto.
9573 * tree-vectorizer.h: Remove declaration of vect_dump and
9574 vect_print_dump_info.
9575 * tree-vect-loop.c: Include "dumpfile.h". Use new dump style.
9576 * tree-vect-data-refs.c: Ditto.
9577 * tree-vect-stmts.c: Ditto.
9578 * tree-vect-slp.c: Ditto.
9579 * tree-vect-patterns.c: Ditto.
9580 * tree-vect-loop-manip.c: Ditto.
9581 * opts.c (vect_set_verbosity_level): Remove.
9582 (common_handle_option): Handle -fopt-info flag. Deprecate
9583 -ftree-vectorizer-verbose.
9584 * tree-parloops.c (gather_scalar_reductions): Remove reference to
9586 * flag-types.h: Remove vect_verbosity_levels.
9587 * common.opt: Add -fopt-info. Deprecate -ftree-vectorizer-verbose.
9588 * opts-global.c (dump_remap_tree_vectorizer_verbose): New function.
9589 (handle_common_deferred_options): Handle -fopt-info and
9590 -ftree-vectorizer-verbose.
9591 * Makefile.in: Add dumpfile.o.
9592 (tree-dump.o): Update dependencies.
9593 (tree-vect-loop.o): Ditto.
9594 (tree-vect-loop-manip.o): Ditto.
9595 (tree-vect-slp.o): Ditto.
9596 (tree-vect-stmts.o): Ditto.
9597 (tree-vectorizer.o): Ditto.
9599 * passes.c (finish_optimization_passes): Instead of using
9600 dump_begin/dump_end, use dump_start/dump_finish. Do not use dump_file.
9601 (pass_init_dump_file): Ditto.
9603 2012-09-30 Joern Rennecke <joern.rennecke@embecosm.com>
9605 PR rtl-optimization/38449:
9606 * hooks.c (hook_bool_const_rtx_const_rtx_true): New function.
9607 * hooks.h (hook_bool_const_rtx_const_rtx_true): Declare.
9608 * target.def: Merge in definitions and documentation for
9609 TARGET_CAN_FOLLOW_JUMP.
9610 * doc/tm.texi.in: Add documentation locations for the above.
9611 * doc/tm.texi: Regenerate.
9612 * reorg.c (follow_jumps): New parameters jump and crossing.
9613 Changed all callers.
9615 2012-09-30 Eric Botcazou <ebotcazou@adacore.com>
9617 * reorg.c (relax_delay_slots): Use delay_insn consistently.
9619 * config/sparc/sparc.c (gen_stack_pointer_dec): Delete.
9620 (sparc_expand_epilogue): Use gen_stack_pointer_inc and adjust.
9621 (sparc_flat_expand_epilogue): Likewise.
9622 (emit_and_preserve): Likewise.
9623 (sparc_fold_builtin): Fix thinko in latest change.
9625 2012-09-30 Andreas Schwab <schwab@linux-m68k.org>
9627 * config/m68k/m68k.md: Add names to bitfield insert and extract
9629 (*insv_8_16_reg): Remove constraints and conditions that assume
9630 that operand 0 could be a MEM.
9631 (*extzv_8_16_reg, *extv_8_16_reg): Likewise, for operand 1.
9633 2012-09-30 Jan Hubicka <jh@suse.cz>
9635 * cfgloop.c (scale_loop_profile): Move to...
9636 * cfgloopmanip.c (scale_loop_profile): .. here; use
9637 scale_loop_frequencies.
9638 (loopify): Use RDIV.
9640 2012-09-28 Jan Hubicka <jh@suse.cz>
9642 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Update profile.
9644 2012-09-28 Jan Hubicka <jh@suse.cz>
9646 * function.c (dup_block_and_redirect): Update profile.
9648 2012-09-29 Andreas Tobler <andreast@fgznet.ch>
9650 * config.gcc: Replace 'host' with 'target' when configuring for
9651 powerpc64*-*-freebsd.
9653 2012-09-29 Marc Glisse <marc.glisse@inria.fr>
9655 * tree.c (truth_type_for): New function.
9656 * tree.h (truth_type_for): Declare.
9657 * gimple-fold.c (and_comparisons_1): Call it.
9658 (or_comparisons_1): Likewise.
9659 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
9660 boolean_type_node for vectors.
9662 2012-09-28 Jan Hubicka <jh@suse.cz>
9664 * basic-block.h (RDIV): Define.
9665 (EDGE_FREQUENCY): Simplify.
9666 (check_probability, combine_probabilities, apply_probability,
9667 inverse_probability): New.
9668 * cfgloop.c (scale_loop_profile): New function.
9669 * cfgloop.h (scale_loop_profile): Declare.
9670 (slpeel_add_loop_guard): Add probability parameter.
9671 (set_prologue_iterations): Add probability parameter.
9672 (slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters;
9673 update probabilities correctly.
9674 (vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New.
9676 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
9679 * sched-deps.c (parse_add_or_inc): Remove MINUS handling. Take
9680 STACK_GROWS_DOWNWARD into account.
9682 2012-09-28 Jakub Jelinek <jakub@redhat.com>
9685 * config/i386/predicates.md (nonimmediate_or_const_vector_operand):
9687 * config/i386/i386.c (ix86_expand_vector_logical_operator): New
9689 * config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New
9691 * config/i386/sse.md (<code><mode>3 VI logic): Use it.
9693 PR tree-optimization/54713
9694 * fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR
9695 has vector elements.
9696 (fold_ternary_loc) <case BIT_FIELD_REF>: Likewise.
9697 * tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts
9698 indexes. Use BIT_FIELD_REF if CONSTRUCTOR has vector elements.
9699 (lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes.
9701 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
9703 * config/avr/avr.md (adjust_len): Add lpm.
9704 (reload_in<mode>): Use avr_out_lpm for output. Use "lpm" for
9706 * config/avr/avr-protos.h (avr_out_lpm): New prototype.
9707 * config/avr/avr.c (avr_out_lpm): Make global.
9708 (adjust_insn_length): Handle ADJUST_LEN_LPM.
9710 2012-09-28 Richard Guenther <rguenther@suse.de>
9713 * lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global.
9714 (lto_output_tree_ref): Handle references to them.
9715 (output_function): Do not output function arguments again.
9716 * lto-streamer-in.c (input_function): Do not input arguments
9717 again, nor overwrite them.
9719 2012-09-28 Richard Guenther <rguenther@suse.de>
9721 * cgraph.h (symtab_node_base): Re-order and pack fields.
9723 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
9725 * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
9727 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
9729 PR rtl-optimization/52543
9730 * config/avr/avr.c (avr_mode_dependent_address_p): Return true for
9731 all non-generic address spaces.
9732 (TARGET_SECONDARY_RELOAD): New hook define to...
9733 (avr_secondary_reload): ...this new static function.
9734 * config/avr/avr.md (reload_in<mode>): New insns.
9736 Undo r185605 (mostly):
9737 * config/avr/avr-protos.h (avr_load_lpm): Remove.
9738 * config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash
9740 (avr_out_lpm): Also handle loads > 1 byte.
9741 (avr_load_lpm): Remove.
9742 (avr_find_unused_d_reg): New static function.
9743 (avr_out_lpm_no_lpmx): New static function.
9744 (adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM.
9745 * config/avr/avr.md (unspec): Remove UNSPEC_LPM.
9746 (load_<mode>_libgcc): Use MEM instead of UNSPEC_LPM.
9747 (load_<mode>, load_<mode>_clobber): Remove.
9748 (mov<mode>): For multi-byte move from non-generic
9749 16-bit address spaces: Expand to *mov<mode> again.
9750 (load<mode>_libgcc): New expander.
9751 (split-lpmx): Remove split.
9753 2012-09-27 Dehao Chen <dehao@google.com>
9755 * tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION.
9756 (extern void protected_set_expr_location): Likewise.
9757 (function_args_iter_next): Likewise.
9758 (inlined_function_outer_scope_p): Likewise.
9759 * input.h (IS_UNKNOWN_LOCATION): Likewise.
9760 * fold-const.c (expr_location_or): Likewise.
9761 * lto-cgraph.c (output_node_opt_summary): Likewise.
9762 * dwarf2out.c (add_src_coords_attributes): Likewise.
9763 * tree-eh.c (lower_try_finally_dup_block): Likewise.
9764 * profile.c (branch_prob):
9765 * cfgexpand.c (expand_gimple_cond): Likewise.
9766 (expand_gimple_basic_block): Likewise.
9767 (construct_exit_block): Likewise.
9768 (gimple_expand_cfg): Likewise.
9769 * cfgcleanup.c (try_forward_edges): Likewise.
9770 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9771 (dump_scope_block): Likewise.
9772 * ipa-prop.c (ipa_write_jump_function): Likewise.
9773 * rtl.h (extern void rtl_check_failed_flag): Likewise.
9774 * gimple.h (gimple_set_location): Likewise.
9775 (gimple_has_location): Likewise.
9776 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
9777 (force_nonfallthru_and_redirect): Likewise.
9778 (fixup_reorder_chain): Likewise.
9779 (cfg_layout_merge_blocks): Likewise.
9781 2012-09-27 Meador Inge <meadori@codesourcery.com>
9783 * gcc-ar.c (main): Handle the returning of the sub-process error
9786 2012-09-27 Ulrich Weigand <ulrich.weigand@linaro.org>
9788 * lower-subreg.c (enum classify_move_insn): Rename
9789 SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE.
9790 (find_decomposable_subregs): Update.
9791 (decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter.
9792 Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE
9793 if that parameter is true.
9794 (rest_of_handle_lower_subreg): Call decompose_multiword_subregs
9795 with DECOMPOSE_COPIES false.
9796 (rest_of_handle_lower_subreg2): Call decompose_multiword_subregs
9797 with DECOMPOSE_COPIES true.
9799 2012-09-27 Marek Polacek <polacek@redhat.com>
9801 * doc/gcov.texi (Gcov Data Files): Fix a typo.
9803 2012-09-27 Jakub Jelinek <jakub@redhat.com>
9806 * simplify-rtx.c (simplify_binary_operation_1): Perform
9807 (x - (x & y)) -> (x & ~y) optimization only for integral modes.
9809 2012-09-27 Marc Glisse <marc.glisse@inria.fr>
9813 * doc/extend.texi (Vector Extensions): C++ improvements.
9814 Power of 2 size requirement.
9816 2012-09-27 Richard Guenther <rguenther@suse.de>
9819 * lto-symtab.c (resolution_guessed_p): Remove.
9820 (set_resolution_guessed): Likewise.
9821 (lto_symtab_register_decl): Remove assert.
9822 (lto_symtab_resolve_symbols): Do not alter symbol resolutions
9823 and return the prevailing symbol, checking for multiple prevailing
9825 (lto_symtab_merge_decls_1): Use the result from
9826 lto_symtab_resolve_symbols. Do not alter symbol resolutions.
9828 2012-09-26 Steve Ellcey <sellcey@mips.com>
9831 * doc/install.texi: Fix example.
9833 2012-09-26 Dehao Chen <dehao@google.com>
9835 * tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void)
9836 for function parameter.
9837 (remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL.
9839 2012-09-26 Oleg Endo <olegendo@gcc.gnu.org>
9841 * doc/extend.texi (bswap Builtins): Change signed types to unsigned
9844 2012-09-26 Ian Lance Taylor <iant@google.com>
9846 * diagnostic.c (bt_callback): Cast pc when calling fprintf.
9848 2012-09-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9850 PR tree-optimization/54674
9851 * gimple-ssa-strength-reduction.c (analyze_increments): Don't
9852 introduce a multiplication with a pointer operand.
9854 2012-09-26 Georg-Johann Lay <avr@gjlay.de>
9857 * doc/tm.texi.in (TARGET_MODE_DEPENDENT_ADDRESS_P): Document new
9858 parameter addrspace.
9859 * doc/tm.texi: Regenerate.
9860 * target.def (mode_dependent_address_p): Add addr_space_t parameter.
9861 * targhooks.h (default_mode_dependent_address_p): Ditto.
9862 * targhooks.c (default_mode_dependent_address_p): Ditto.
9863 * expr.c (convert_move): Pass address space to
9864 mode_dependent_address_p.
9865 * combine.c (combine_simplify_rtx): Ditto.
9866 (make_extraction): Ditto.
9867 (simplify_shift_const_1): Ditto.
9868 (gen_lowpart_for_combine): Ditto.
9869 * lower-subreg.c (simple_move_operand): Ditto.
9870 * recog.c (simplify_while_replacing): Ditto.
9871 (offsettable_address_addr_space_p): Ditto.
9872 (mode_dependent_address_p): Ditto.
9873 * simplify-rtx.c (simplify_unary_operation_1): Ditto.
9874 (simplify_subreg): Ditto.
9875 * config/m68k/m68k.md: Ditto.
9876 * config/vax/vax.md: Ditto.
9877 * config/vax/constraints.md (Q): Ditto.
9878 * config/vax/predicates.md (indexed_memory_operand): Ditto.
9879 * config/alpha/alpha.c (alpha_mode_dependent_address_p): Add
9880 unused addr_space_t parameter.
9881 * config/avr/avr.c (avr_mode_dependent_address_p): Ditto.
9882 * config/h8300/h8300.c (h8300_mode_dependent_address_p): Ditto.
9883 * config/m32r/m32r.c (m32r_mode_dependent_address_p): Ditto.
9884 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): Ditto.
9885 * config/rx/rx.c (rx_mode_dependent_address_p): Ditto.
9886 * config/sparc/sparc.c (sparc_mode_dependent_address_p): Ditto.
9887 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9889 * config/vax/vax.c (vax_mode_dependent_address_p): Ditto.
9890 * config/xtensa/xtensa.c (xtensa_mode_dependent_address_p): Ditto.
9892 2012-09-26 Christophe Lyon <christophe.lyon@linaro.org>
9894 * tree-ssa-math-opts.c (bswap_stats): Add found_16bit field.
9895 (execute_optimize_bswap): Add support for builtin_bswap16.
9897 2012-09-26 Richard Guenther <rguenther@suse.de>
9899 * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.
9901 2012-09-26 Ian Lance Taylor <iant@google.com>
9903 * diagnostic.c: Include "demangle.h" and "backtrace.h".
9904 (bt_stop): New static array.
9905 (bt_callback, bt_err_callback): New static functions.
9906 (diagnostic_action_after_output): Call backtrace_full for DK_ICE.
9907 * Makefile.in (BACKTRACE): New variable.
9908 (BACKTRACEINC, LIBBACKTRACE): New variables.
9909 (BACKTRACE_H): New variable.
9910 (LIBDEPS, LIBS): Add $(LIBBACKTRACE).
9911 (INCLUDES): Add $(BACKTRACEINC).
9912 (diagnostic.o): Depend upon $(DEMANGLE_H) and $(BACKTRACE_H).
9914 2012-09-25 Segher Boessenkool <segher@kernel.crashing.org>
9918 * config/rs6000/rs6000.md (ne0si): Remove unnecessary
9919 earlyclobber. Merge with...
9922 (plus_ne0si): Merge with...
9923 (plus_ne0di): ... to...
9924 (plus_ne0_<mode>): New.
9925 (compare_plus_ne0si): Merge with...
9926 (compare_plus_ne0di)... to...
9927 (compare_plus_ne0_<mode>): New.
9928 (compare_plus_ne0_<mode>_1): New.
9929 (plus_ne0si_compare): Merge with...
9930 (plus_ne0di_compare)... to...
9931 (plus_ne0_<mode>_compare): New.
9933 2012-09-25 Oleg Endo <olegendo@gcc.gnu.org>
9936 * config/sh/constraints.md (Jhb): New constraint.
9937 * config/sh/predicates.md (negt_reg_shl31_operand): New predicate.
9938 * config/sh/sh.md (rotrsi3): New expander.
9939 (rotrsi3_1, *rotrsi3_1, *rotlsi3_1): New insns.
9940 (rotlsi3, rotlhi3): Use const_int_operand predicate instead of
9941 immediate_operand and remove CONST_INT_P checks in expansion code.
9942 (*rotcr): Cleanup variable usage. Handle preceding nott insn. Add
9943 split with swapped operands.
9944 (*rotcr_neg_t, *movt_msb, *negt_msb): New insns and splits.
9946 2012-09-25 Aldy Hernandez <aldyh@redhat.com>
9949 * trans-mem.c (expand_call_tm): Handle late built built-ins.
9951 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
9954 * config/avr/avr-log.c (avr_double_int_pop_digit): Rewrite using
9955 double_int::udivmod.
9957 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
9959 * config/avr/avr.c (avr_set_current_function): Check cfun->machine
9962 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
9965 * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS
9966 for sources compiled with COMPILER.
9968 2012-09-25 Richard Guenther <rguenther@suse.de>
9971 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge
9972 cgraph nodes for builtins.
9974 2012-09-25 Jakub Jelinek <jakub@redhat.com>
9976 PR tree-optimization/54676
9977 * tree-vrp.c (set_and_canonicalize_value_range): Handle
9978 one bit precision properly.
9981 * configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og properly.
9982 * configure: Regenerated.
9984 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
9987 * config/avr/avr.c (avr_map_decompose): Use double_int::from_uhwi
9988 instead of uhwi_to_double_int.
9990 2012-09-25 Richard Guenther <rguenther@suse.de>
9992 * lto-symtab.c (lto_symtab_merge_decls_1): Properly merge
9995 2012-09-25 Richard Guenther <rguenther@suse.de>
9997 PR tree-optimization/53663
9998 * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
9999 native encode/interpret translation on VN_WALKREWRITE.
10001 2012-09-24 Dehao Chen <dehao@google.com>
10003 * tree-cfg.c (move_stmt_op): Reset the expr block only when necessary.
10004 (move_block_to_fn): Reset the edge's goto block even
10005 when the goto locus is unknown.
10007 2012-09-24 Lawrence Crowl <crowl@google.com>
10009 * double-int.h (double_int::from_pair): New.
10010 (double_int::wide_mul_with_sign): New.
10011 (double_int::sub_with_overflow): New.
10012 (double_int::neg_with_overflow): New.
10013 (double_int::divmod_with_overflow): New.
10014 (shwi_to_double_int): Remove.
10015 (uhwi_to_double_int): Remove.
10016 (double_int_to_shwi): Remove.
10017 (double_int_to_uhwi): Remove.
10018 (double_int_fits_in_uhwi_p): Remove.
10019 (double_int_fits_in_shwi_p): Remove.
10020 (double_int_fits_in_hwi_p): Remove.
10021 (double_int_mul): Remove.
10022 (double_int_mul_with_sign): Remove.
10023 (double_int_add): Remove.
10024 (double_int_sub): Remove.
10025 (double_int_neg): Remove.
10026 (double_int_div): Remove.
10027 (double_int_sdiv): Remove.
10028 (double_int_udiv): Remove.
10029 (double_int_mod): Remove.
10030 (double_int_smod): Remove.
10031 (double_int_umod): Remove.
10032 (double_int_divmod): Remove.
10033 (double_int_sdivmod): Remove.
10034 (double_int_udivmod): Remove.
10035 (double_int_multiple_of): Remove.
10036 (double_int_setbit): Remove.
10037 (double_int_ctz): Remove.
10038 (double_int_not): Remove.
10039 (double_int_ior): Remove.
10040 (double_int_and): Remove.
10041 (double_int_and_not): Remove.
10042 (double_int_xor): Remove.
10043 (double_int_lshift): Remove.
10044 (double_int_rshift): Remove.
10045 (double_int_lrotate): Remove.
10046 (double_int_rrotate): Remove.
10047 (double_int_negative_p): Remove.
10048 (double_int_cmp): Remove.
10049 (double_int_scmp): Remove.
10050 (double_int_ucmp): Remove.
10051 (double_int_max): Remove.
10052 (double_int_smax): Remove.
10053 (double_int_umax): Remove.
10054 (double_int_min): Remove.
10055 (double_int_smin): Remove.
10056 (double_int_umin): Remove.
10057 (double_int_ext): Remove.
10058 (double_int_sext): Remove.
10059 (double_int_zext): Remove.
10060 (double_int_mask): Remove.
10061 (double_int_max_value): Remove.
10062 (double_int_min_value): Remove.
10063 (double_int_zero_p): Remove.
10064 (double_int_one_p): Remove.
10065 (double_int_minus_one_p): Remove.
10066 (double_int_equal_p): Remove.
10067 (double_int_popcount): Remove.
10068 (extern add_double_with_sign): Remove.
10069 (#define add_double): Remove.
10070 (extern neg_double): Remove.
10071 (extern mul_double_with_sign): Remove.
10072 (extern mul_double_wide_with_sign): Remove.
10073 (#define mul_double): Remove.
10074 (extern lshift_double): Remove.
10075 (extern div_and_round_double): Remove.
10076 * double-int.c (add_double_with_sign): Make static.
10077 (#defined add_double): Localized from header.
10078 (neg_double): Make static.
10079 (mul_double_with_sign): Make static.
10080 (mul_double_wide_with_sign): Make static.
10081 (#defined mul_double): Localized from header.
10082 (lshift_double): Make static.
10083 (div_and_round_double): Make static.
10084 (double_int::wide_mul_with_sign): New.
10085 (double_int::sub_with_overflow): New.
10086 (double_int::neg_with_overflow): New.
10087 (double_int::divmod_with_overflow): New.
10088 * emit-rtl.c (init_emit_once): Change to new double_int API.
10089 * explow.c (plus_constant): Likewise.
10090 * expmed.c (choose_multiplier): Likewise.
10091 * fold-const.c (#define OVERFLOW_SUM_SIGN): Remove.
10092 (int_const_binop_1): Change to new double_int API.
10093 (fold_div_compare): Likewise.
10094 (maybe_canonicalize_comparison): Likewise.
10095 (pointer_may_wrap_p): Likewise.
10096 (fold_negate_const): Likewise.
10097 (fold_abs_const): Likewise.
10098 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10099 (simplify_const_binary_operation): Likewise.
10100 * tree-chrec.c (tree_fold_binomial): Likewise.
10101 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
10102 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
10103 * config/avr/avr.c (avr_double_int_push_digit): Likewise.
10104 (avr_map): Likewise.
10105 (avr_map_decompose): Likewise.
10106 (avr_out_insert_bits): Likewise.
10108 2012-09-24 Janis Johnson <janisjo@codesourcery.com>
10110 * doc/sourcebuild.texi (Selectors): Document the use of target
10111 and xfail used together.
10113 2012-09-24 Richard Guenther <rguenther@suse.de>
10115 PR middle-end/54632
10116 * tree-ssa-live.c (clear_unused_block_pointer_1): Do not
10117 handle DECL_DEBUG_EXPR_IS_FROM here...
10118 (clear_unused_block_pointer): ... but here when walking all
10121 2012-09-24 Richard Guenther <rguenther@suse.de>
10123 PR tree-optimization/54684
10124 * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts.
10126 2012-09-24 Marc Glisse <marc.glisse@inria.fr>
10128 * tree-ssa-forwprop.c: Include tree-ssa-propagate.h.
10129 (simplify_bitfield_ref): Handle constructors.
10130 * Makefile.in (tree-ssa-forwprop.o): Depend on tree-ssa-propagate.h.
10132 2012-09-24 Richard Guenther <rguenther@suse.de>
10134 * tree-ssa-pre.c (bitmap_find_leader, create_expression_by_pieces,
10135 find_or_generate_expression): Remove dominating stmt argument.
10136 (find_leader_in_sets, phi_translate_1, bitmap_find_leader,
10137 create_component_ref_by_pieces_1, create_component_ref_by_pieces,
10138 do_regular_insertion, do_partial_partial_insertion): Adjust.
10139 (compute_avail): Do not set uids.
10141 2012-09-24 Eric Botcazou <ebotcazou@adacore.com>
10143 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
10144 TYPE_NONALIASED_COMPONENT flag.
10145 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
10146 TYPE_NONALIASED_COMPONENT flag.
10148 2012-09-24 Jia Liu <proljc@gmail.com>
10150 * doc/lto.texi: Separate sections.
10151 * doc/plugins.texi: Likewise.
10153 2012-09-24 Richard Guenther <rguenther@suse.de>
10155 PR middle-end/52173
10156 * gimple.c (gimple_copy): Properly mark the copy modified
10157 if SSA operands are present.
10159 2012-09-23 Eric Botcazou <ebotcazou@adacore.com>
10161 PR tree-optimization/54669
10162 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke
10163 maybe_clean_or_replace_eh_stmt on the modified use statements.
10165 2012-09-23 Marc Glisse <marc.glisse@inria.fr>
10167 * expr.c (do_store_flag): Remove duplicated code.
10169 2012-09-22 Segher Boessenkool <segher@kernel.crashing.org>
10171 * config/rs6000/predicates.md (altivec_register_operand,
10172 vsx_register_operand, vfloat_operand, vint_operand,
10173 vlogical_operand, gpc_reg_operand, cc_reg_operand,
10174 cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand):
10175 If op is a SUBREG, consider its SUBREG_REG instead.
10177 2012-09-22 Uros Bizjak <ubizjak@gmail.com>
10179 * optabs.c (prepare_cmp_insn): Expand comparison of the result
10180 of memcmp through generic comparison expansion code.
10182 2012-09-21 Anthony Green <green@moxielogic.com>
10184 * config/moxie/moxie.opt: Add -mno-crt0 option.
10185 * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option.
10186 * doc/invoke.texi (Option Summary): Document -mno-crt0 option.
10188 2012-09-21 Jack Howarth <howarth@bromo.med.uc.edu>
10191 * Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency.
10193 2012-09-21 Dehao Chen <dehao@google.com>
10196 * tree-eh.c (lower_try_finally_dup_block): Set the correct block for
10197 stmts in the duplicated EH block.
10199 2012-09-21 Richard Guenther <rguenther@suse.de>
10201 PR tree-optimization/54647
10202 * tree-ssa-pre.c (compute_avail): Do not put COND_EXPR
10203 or VEC_COND_EXPR into EXP_GEN again.
10205 2012-09-21 Jakub Jelinek <jakub@redhat.com>
10207 PR tree-optimization/54629
10208 * tree-loop-distribution.c (classify_partition): Free loop nest only
10209 after freeing ddr. Free ddr and loop nest also if successful.
10211 2012-09-21 Matthias Klose <doko@ubuntu.com>
10213 * config/arm/arm.c (arm_mangle_type): Don't warn anymore that
10214 4.4 has changed the `va_list' mangling.
10216 2012-09-21 Eric Botcazou <ebotcazou@adacore.com>
10218 PR rtl-optimization/54290
10219 PR rtl-optimization/54644
10220 * reload1.c (choose_reload_regs): Fix thinko in previous change.
10222 2012-09-20 Segher Boessenkool <segher@kernel.crashing.org>
10224 * config/rs6000/rs6000.md (define_split for plus_eqsi):
10225 Fix output pattern.
10227 2012-09-20 Eric Botcazou <ebotcazou@adacore.com>
10229 * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair.
10231 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
10234 * haifa-sched.c (schedule_block): Skip find_modifiable_mems if using
10235 SCHED_PRESSURE_MODEL.
10237 2012-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
10239 * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.
10241 2012-09-20 Marek Polacek <polacek@redhat.com>
10243 * tree-ssa-operands.c (get_expr_operands): Merge identical cases.
10245 2012-09-20 Marek Polacek <polacek@redhat.com>
10247 * tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's
10249 (create_edge_and_update_destination_phis): Likewise.
10251 2012-09-20 Martin Jambor <mjambor@suse.cz>
10253 * function.c (push_cfun): Check old current_function_decl matches
10254 old cfun, set new current_function_decl to the decl of the new cfun.
10255 (push_struct_function): Likewise.
10256 (pop_cfun): Likewise.
10257 (allocate_struct_function): Move call to
10258 invoke_set_current_function_hook to the end of the function.
10259 * cfgexpand.c (estimated_stack_frame_size): Do not set and restore
10260 current_function_decl.
10261 * cgraph.c (cgraph_release_function_body): Likewise.
10262 * cgraphunit.c (cgraph_process_new_functions): Likewise.
10263 (cgraph_add_new_function): Likewise.
10264 (cgraph_analyze_function): Likewise.
10265 (assemble_thunk): Set cfun to NULL at the end.
10266 (expand_function): Move call to set_cfun downwards.
10267 * gimple-low.c (record_vars_into): Only check current_function_decl
10268 before possibly doing push_cfun.
10269 * gimplify.c (gimplify_function_tree): Do not set and restore
10270 current_function_decl.
10271 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
10272 (inline_analyze_function): Likewise.
10273 * ipa-prop.c (ipa_analyze_node): Likewise.
10274 * ipa-pure-const.c (analyze_function): Likewise.
10275 * lto-streamer-in.c (lto_input_function_body): Do not set
10276 current_function_decl.
10277 * lto-streamer-out.c (output_function): Do not set and restore
10278 current_function_decl.
10279 * omp-low.c (finalize_task_copyfn): Likewise.
10280 (expand_omp_taskreg): Likewise.
10281 (create_task_copyfn): Likewise, move push_cfun up quite a bit.
10282 * passes.c (dump_passes): Do not set and restore current_function_decl.
10283 (do_per_function): Likewise.
10284 (do_per_function_toporder): Likewise.
10285 * trans-mem.c (ipa_tm_scan_irr_function): Likewise.
10286 (ipa_tm_transform_transaction): Likewise.
10287 (ipa_tm_transform_clone): Likewise.
10288 (ipa_tm_execute): Likewise.
10289 * tree-emutls.c (lower_emutls_function_body): Likewise.
10290 * tree-inline.c (initialize_cfun): Do not call pop_cfun.
10291 (tree_function_versioning): Do not call push_cfun, do not set and
10292 restore current_function_decl. Remove assert checking consistency of
10293 cfun and current_function_decl.
10294 * tree-profile.c (tree_profiling): Do not set and restore
10295 current_function_decl.
10296 * tree-sra.c (convert_callers_for_node): Do not set
10297 current_function_decl.
10298 (convert_callers): Do not restore current_function_decl.
10299 (modify_function): Do not set current_function_decl.
10300 * tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore
10301 current_function_decl.
10303 2012-09-20 Diego Novillo <dnovillo@google.com>
10306 * config/vxworks.c (vxworks_emutls_var_init): Update for new
10307 VEC_quick_push interface.
10309 2012-09-20 Richard Guenther <rguenther@suse.de>
10311 PR tree-optimization/54634
10312 * tree-data-ref.c (get_references_in_stmt): For now give
10313 up for pure functions.
10315 2012-09-20 Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
10317 * doc/lto.texi: Correct typo.
10319 2012-09-19 Dehao Chen <dehao@google.com>
10321 * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR.
10322 * config/spu/spu.c (emit_nop_for_insn): Likewise.
10323 (pad_bb): Likewise.
10324 (spu_emit_branch_hint): Likewise.
10325 (insert_hbrp_for_ilb_runout): Likewise.
10326 * config/mep/mep.c (mep_make_bundle): Likewise.
10327 (mep_bundle_insns): Likewise.
10328 * config/sh/sh.c (gen_block_redirect): Likewise.
10329 * config/c6x/c6x.c (gen_one_bundle): Likewise.
10330 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise.
10331 * config/picochip/picochip.c (picochip_reorg): Likewise.
10332 * config/arm/arm.c (require_pic_register): Likewise.
10333 * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise.
10334 * config/bfin/bfin.c (gen_one_bundle): Likewise.
10336 2012-09-19 Mark Kettenis <kettenis@openbsd.org>
10338 * config.gcc (hppa*-*-openbsd*): New target.
10339 * config/pa/pa-openbsd.h: New file.
10340 * config/pa/pa32-openbsd.h: New file.
10341 * config/host-openbsd.c: Update copyright year.
10342 (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa.
10344 2012-09-19 Martin Jambor <mjambor@suse.cz>
10346 * ipa-prop.c (prune_expression_for_jf): New function.
10347 (ipa_set_jf_constant): Use it.
10348 (ipa_set_jf_arith_pass_through): Likewise.
10349 (determine_known_aggregate_parts): Likewise.
10351 2012-09-19 Steve Ellcey <sellcey@mips.com>
10353 * config.gcc (mips*-mti-elf*): New target.
10354 * config/mips/mti-elf.h: New file.
10355 * config/mips/t-mti-elf: New file.
10357 2012-09-19 Dehao Chen <dehao@google.com>
10359 * toplev.c (general_init): Init block_locations.
10360 * tree.c (tree_set_block): New.
10361 (tree_block): Change to use LOCATION_BLOCK.
10362 * tree.h (TREE_SET_BLOCK): New.
10363 * final.c (reemit_insn_block_notes): Change to use LOCATION_BLOCK.
10364 (final_start_function): Likewise.
10365 * input.c (expand_location_1): Likewise.
10366 * input.h (LOCATION_LOCUS): New.
10367 (LOCATION_BLOCK): New.
10368 (IS_UNKNOWN_LOCATION): New.
10369 * fold-const.c (expr_location_or): Change to use new location.
10370 * reorg.c (emit_delay_sequence): Likewise.
10371 (try_merge_delay_insns): Likewise.
10372 * modulo-sched.c (dump_insn_location): Likewise.
10373 * lto-streamer-out.c (lto_output_location_bitpack): Likewise.
10374 * lto-cgraph.c (output_node_opt_summary): Likewise.
10375 * jump.c (rtx_renumbered_equal_p): Likewise.
10376 * ifcvt.c (noce_try_move): Likewise.
10377 (noce_try_store_flag): Likewise.
10378 (noce_try_store_flag_constants): Likewise.
10379 (noce_try_addcc): Likewise.
10380 (noce_try_store_flag_mask): Likewise.
10381 (noce_try_cmove): Likewise.
10382 (noce_try_cmove_arith): Likewise.
10383 (noce_try_minmax): Likewise.
10384 (noce_try_abs): Likewise.
10385 (noce_try_sign_mask): Likewise.
10386 (noce_try_bitop): Likewise.
10387 (noce_process_if_block): Likewise.
10388 (cond_move_process_if_block): Likewise.
10389 (find_cond_trap): Likewise.
10390 * ipa-prop.c (ipa_set_jf_constant): Likewise.
10391 (ipa_write_jump_function): Likewise.
10392 * dwarf2out.c (add_src_coords_attributes): Likewise.
10393 * expr.c (expand_expr_real): Likewise.
10394 * tree-parloops.c (create_loop_fn): Likewise.
10395 * recog.c (peep2_attempt): Likewise.
10396 * function.c (free_after_compilation): Likewise.
10397 (expand_function_end): Likewise.
10398 (set_insn_locations): Likewise.
10399 (thread_prologue_and_epilogue_insns): Likewise.
10400 * print-rtl.c (print_rtx): Likewise.
10401 * profile.c (branch_prob): Likewise.
10402 * trans-mem.c (ipa_tm_scan_irr_block): Likewise.
10403 * gimplify.c (gimplify_call_expr): Likewise.
10404 * except.c (duplicate_eh_regions_1): Likewise.
10405 * emit-rtl.c (try_split): Likewise.
10406 (make_insn_raw): Likewise.
10407 (make_debug_insn_raw): Likewise.
10408 (make_jump_insn_raw): Likewise.
10409 (make_call_insn_raw): Likewise.
10410 (emit_pattern_after_setloc): Likewise.
10411 (emit_pattern_after): Likewise.
10412 (emit_debug_insn_after): Likewise.
10413 (emit_pattern_before): Likewise.
10414 (emit_insn_before_setloc): Likewise.
10415 (emit_jump_insn_before): Likewise.
10416 (emit_call_insn_before_setloc): Likewise.
10417 (emit_call_insn_before): Likeise.
10418 (emit_debug_insn_before_setloc): Likewise.
10419 (emit_copy_of_insn_after): Likewise.
10420 (insn_locators_alloc): Remove.
10421 (insn_locators_finalize): Remove.
10422 (insn_locators_free): Remove.
10423 (set_curr_insn_source_location): Remove.
10424 (get_curr_insn_source_location): Remove.
10425 (set_curr_insn_block): Remove.
10426 (get_curr_insn_block): Remove.
10427 (locator_scope): Remove.
10428 (insn_scope): Change to use new location.
10429 (locator_location): Remove.
10430 (insn_line): Change to use new location.
10431 (locator_file): Remove.
10432 (insn_file): Change to use new location.
10433 (locator_eq): Remove.
10434 (insn_locations_init): New.
10435 (insn_locations_finalize): New.
10436 (set_curr_insn_location): New.
10437 (curr_insn_location): New.
10438 * cfgexpand.c (gimple_assign_rhs_to_tree): Change to use new location.
10439 (expand_gimple_cond): Likewise.
10440 (expand_call_stmt): Likewise.
10441 (expand_gimple_stmt_1): Likewise.
10442 (expand_gimple_basic_block): Likewise.
10443 (construct_exit_block): Likewise.
10444 (gimple_expand_cfg): Likewise.
10445 * cfgcleanup.c (try_forward_edges): Likewise.
10446 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10447 (dump_scope_block): Likewise.
10448 (remove_unused_locals): Likewise.
10449 * rtl.c (rtx_equal_p_cb): Likewise.
10450 (rtx_equal_p): Likewise.
10451 * rtl.h (XUINT): New.
10452 (INSN_LOCATOR): Remove.
10453 (CURR_INSN_LOCATION): Remove.
10454 (INSN_LOCATION): New.
10455 (INSN_HAS_LOCATION): New.
10456 * tree-inline.c (remap_gimple_op_r): Change to use new location.
10457 (copy_tree_body_r): Likewise.
10458 (copy_phis_for_bb): Likewise.
10459 (expand_call_inline): Likewise.
10460 * tree-streamer-in.c (lto_input_ts_exp_tree_pointers): Likewise.
10461 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
10462 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10463 * combine.c (try_combine): Likewise.
10464 * tree-outof-ssa.c (set_location_for_edge): Likewise.
10465 (insert_partition_copy_on_edge): Likewise.
10466 (insert_value_copy_on_edge): Likewise.
10467 (insert_rtx_to_part_on_edge): Likewise.
10468 (insert_part_to_rtx_on_edge): Likewise.
10469 * basic-block.h (edge_def): Remove field.
10470 * gimple.h (gimple_statement_base): Remove field.
10471 (gimple_bb): Change to use new location.
10472 (gimple_set_block): Likewise.
10473 (gimple_has_location): Likewise.
10474 * tree-cfg.c (make_cond_expr_edges): Likewise.
10475 (make_goto_expr_edges): Likewise.
10476 (gimple_can_merge_blocks_p): Likewise.
10477 (move_stmt_op): Likewise.
10478 (move_block_to_fn): Likewise.
10479 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
10480 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10481 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10482 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10483 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10484 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10485 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10486 * config/score/score.c (score_output_mi_thunk): Likewise.
10487 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10488 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10489 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
10490 (unique_locus_on_edge_between_p): Likewise.
10491 (emit_nop_for_unique_locus_between): Likewise.
10492 (force_nonfallthru_and_redirect): Likewise.
10493 (fixup_reorder_chain): Likewise.
10494 (cfg_layout_merge_blocks): Likewise.
10495 * stmt.c (emit_case_nodes): Likewise.
10497 2012-09-19 Bernd Schmidt <bernds@codesourcery.com>
10499 * dbgcnt.def (sched_breakdep): New counter.
10500 * haifa-sched.c (update_insn_after_change): New static function,
10501 broken out of haifa_change_pattern.
10502 (haifa_change_pattern): Call it.
10503 (dep_t heap vecs): Declare.
10504 (INSN_COST): Define earlier.
10505 (next_cycle_replace_deps, next_cycle_apply): New static variables.
10506 (apply_replacement): New static function.
10507 (recompute_todo_spec): New argument FOR_BACKTRACK. All callers
10508 changed. Handle DEP_REPLACE deps.
10509 (contributes_to_priority_p): False for replaceable deps.
10510 (must_restore_pattern_p, restore_pattern): New static functions.
10511 (schedule_insn): Use them. Apply replacements for broken deps.
10512 (struct haifa_saved_data): Add new fields to keep track of
10514 (save_backtrack_point): Initialize them.
10515 (undo_replacements_for_backtrack): New static function.
10516 (restore_last_backtrack_point, free_topmost_backtrack_point):
10517 Use it and keep track of replacements.
10518 (perform_replacements_new_cycle, undo_all_replacements): New static
10520 (schedule_block): Call these two as necessary. Call
10521 find_modifiable_mems.
10522 (try_ready): Tweak the assert. Check for DEP_POSTPONED.
10523 * sched-deps.c: Include "emit-rtl.h".
10524 (init_dep_1): Initialize DEP_NONREG, DEP_MULTIPLE and DEP_REPLACE.
10525 (dep_spec_p): True for DEP_REPLACE deps.
10526 (mark_as_hard): New static variable.
10527 (update_dep): Update DEP_NONREG and DEP_MULTIPLE.
10528 (add_dependence_list): New argument hard. All callers changed. Set
10529 and clear mark_as_hard around function body.
10530 (add_dependence_list_and_free): Likewise.
10531 (haifa_note_mem_dep): Set DEP_NONREG.
10532 (haifa_note_dep): Likewise if mark_as_hard is true.
10533 (sched_analyze_insn): Switch loop with if statement testing for
10535 (struct mem_inc_info): New.
10536 (attempt_change, parse_add_or_inc, find_inc, find_mem): New static
10538 (find_modifiable_mems): New function.
10539 * sched-int.h (struct dep_replacement): New.
10540 (struct _dep): Add replace, nonreg and multiple fields. Make type and
10542 (UNKNOWN_DEP_COST): Change to match the bitfield.
10543 (DEP_NONREG, DEP_MULTIPLE, DEP_REPLACE): New macros.
10544 (DEP_POSTPONED): New macro.
10545 (DEP_CANCELLED): Renumber.
10546 (find_modifiable_mems): Declare.
10547 (enum SCHED_FLAGS): Add DONT_BREAK_DEPENDENCIES.
10548 * sched-rgn.c (init_ready_list): Set TODO_SPEC here.
10549 (new_ready): Don't set HARD_DEP, use DEP_POSTPONED.
10550 (debug_dependencies): Dump DEP_NONREG and DEP_MULTIPLE.
10551 * Makefile.in (sched-deps.o): Update dependencies.
10552 * config/c6x/c6x.c (in_hwloop): New static variable.
10553 (c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES.
10554 (hwloop_optimize): Set and clear it around preliminary scheduling pass.
10556 2012-09-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10558 * config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase
10559 and __builtin_ppc_mftb.
10560 * config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function
10561 to expand an expression that calls a built-in without arguments.
10562 (rs6000_expand_builtin): Add __builtin_ppc_get_timebase and
10563 __builtin_ppc_mftb.
10564 (rs6000_init_builtins): Likewise.
10565 * config/rs6000/rs6000.md (rs6000_get_timebase): New pattern.
10566 (rs6000_get_timebase_ppc32): New pattern.
10567 (rs6000_mftb_<mode>): New pattern.
10569 * doc/extend.texi (PowerPC Built-in Functions): New section.
10570 (PowerPC AltiVec/VSX Built-in Functions): Move some built-ins
10571 unrelated to Altivec/VSX to the new section.
10573 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
10575 * rs6000.md (mac*): Remove extra spaces.
10578 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
10581 * config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate.
10582 * config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate.
10583 Handle the case where one of the operands is T_REG.
10584 Add new pattern to handle MSB extraction.
10586 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
10589 * config/sh/sh.md (*addc): Add pattern to handle one bit left shifts.
10591 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
10593 * config/sh/sh.md (prologue, epilogue): Use braced strings.
10595 2012-09-19 Eric Botcazou <ebotcazou@adacore.com>
10597 PR rtl-optimization/54290
10598 * reload1.c (choose_reload_regs): Also take into account secondary MEMs
10599 to remove address replacements for inherited reloads.
10600 (replaced_subreg): Move around.
10602 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
10604 * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT,
10605 MASK_PPC_GFXOPT, and MASK_MFCRF.
10607 2012-09-19 Richard Guenther <rguenther@suse.de>
10609 * passes.c (init_optimization_passes): For -Og move
10610 pass_object_sizes inbetween CCP and copyprop.
10612 2012-09-19 Richard Guenther <rguenther@suse.de>
10614 * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify.
10616 2012-09-19 Jan Hubicka <jh@suse.cz>
10618 * symtab.c (insert_to_assembler_name_hash): Do not insert
10620 (unlink_from_assembler_name_hash): NULL out pointers of unlinked var.
10621 (symtab_prevail_in_asm_name_hash): New.
10622 (symtab_initialize_asm_name_hash): Break out from ...
10623 (symtab_node_for_asm): ... here.
10624 (dump_symtab_base): Dump LTO file data.
10625 (verify_symtab_base): Register vars are not in symtab.
10626 * cgraph.h (symtab_initialize_asm_name_hash,
10627 symtab_prevail_in_asm_name_hash): New functions.
10628 (symtab_real_symbol_p): New inline.
10629 * lto-symtab.c: Do not include gt-lto-symtab.h.
10630 (lto_symtab_entry_def): Remove.
10631 (lto_symtab_entry_t): Remove.
10632 (lto_symtab_identifiers): Remove.
10633 (lto_symtab_free): Remove.
10634 (lto_symtab_entry_hash): Remove.
10635 (lto_symtab_entry_eq): Remove.
10636 (lto_symtab_entry_marked_p): Remove.
10637 (lto_symtab_maybe_init_hash_table): Remove.
10638 (resolution_guessed_p, set_resolution_guessed): New functions.
10639 (lto_symtab_register_decl): Only set resolution info.
10640 (lto_symtab_get, lto_symtab_get_resolution): Remove.
10641 (lto_symtab_merge): Reorg to work across symtab; do nothing if decls
10643 (lto_symtab_resolve_replaceable_p): Reorg to work on symtab.
10644 (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can
10646 (lto_symtab_resolve_symbols): Reorg to work on symtab.
10647 (lto_symtab_merge_decls_2): Likewise.
10648 (lto_symtab_merge_decls_1): Likewise; add debug dumps.
10649 (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
10650 (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
10651 (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans
10653 (lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
10654 * lto-streaer.h (lto_symtab_free): Remove.
10655 * lto-cgraph.c (add_references): Cleanup.
10656 * varpool.c (varpool_assemble_decl): Skip hard regs.
10658 2012-09-19 Richard Guenther <rguenther@suse.de>
10661 * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add.
10663 2012-09-19 Richard Guenther <rguenther@suse.de>
10666 * common.opt (optimize_debug): New variable.
10667 (Og): New optimization level.
10668 * doc/invoke.texi (Og): Document.
10669 * opts.c (maybe_default_option): Add debug parameter.
10670 (maybe_default_options): Likewise.
10671 (default_options_optimization): Handle -Og.
10672 (common_handle_option): Likewise.
10673 * passes.c (gate_all_optimizations): Do not run with -Og.
10674 (gate_all_optimizations_g): New gate, run with -Og.
10675 (pass_all_optimizations_g): New container pass, run with -Og.
10676 (init_optimization_passes): Schedule pass_all_optimizations_g
10677 alongside pass_all_optimizations.
10679 2012-09-19 Richard Guenther <rguenther@suse.de>
10681 PR tree-optimization/54132
10682 * tree-loop-distribution.c (classify_partition): Properly
10683 check dependences for memmove.
10684 * tree-data-ref.h (compute_affine_dependence): Declare.
10685 * tree-data-ref.c (compute_affine_dependence): Export.
10687 2012-09-19 Zhenqiang Chen <zhenqiang.chen@arm.com>
10689 PR middle-end/54364
10690 * bb-reorder.c (connect_better_edge_p): New added.
10691 (find_traces_1_round): When optimizing for size, ignore edge frequency
10692 and probability, and handle all in one round.
10693 (bb_to_key): Use bb->index as key when optimizing for size.
10694 (better_edge_p): The bb with smaller index is better when optimizing
10696 (connect_traces): When optimizing for size, connect block n with
10697 block n + 1; connect trace m with trace m + 1 if falling through.
10698 (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os.
10700 2012-09-19 Bin Cheng <bin.cheng@arm.com>
10702 * fold-const.c (fold_truth_andor): Remove duplicated check on
10705 2012-09-18 Eric Botcazou <ebotcazou@adacore.com>
10707 PR middle-end/54617
10708 * expr.c (store_field): Handle a PARALLEL in more cases.
10710 2012-09-18 Segher Boessenkool <segher@kernel.crashing.org>
10712 * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete.
10713 (abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
10714 nabs_nopower): Delete.
10715 (absdi2, absdi2_internal, nabsdi2): Delete.
10716 (smindi3, smaxdi3, umindi3, umaxdi3): Delete.
10718 2012-09-18 Georg-Johann Lay <avr@gjlay.de>
10720 * config/avr/avr.md: Tidy up empty "". Fix C code indentation.
10721 * config/avr/avr-fixed.md: Ditto.
10723 2012-09-18 Maciej W. Rozycki <macro@codesourcery.com>
10725 * config/rs6000/rs6000.c (print_operand) <'c'>: Remove.
10726 * config/rs6000/spe.md: Remove a leftover comment.
10728 2012-09-18 Jakub Jelinek <jakub@redhat.com>
10731 * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD
10732 AND/IOR/XOR cost calculation to MODE_INT class modes.
10734 2012-09-18 Thomas Quinot <quinot@adacore.com>
10736 * doc/invoke.texi: Document -fada-spec-parent.
10738 2012-09-18 Jakub Jelinek <jakub@redhat.com>
10740 PR tree-optimization/54610
10741 * tree-ssa-forwprop.c: Include optabs.h. Don't include
10743 (simplify_vector_constructor): Don't use vect_gen_perm_mask,
10744 instead create the mask constant here.
10745 * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H).
10746 Don't depend on $(TREE_VECTORIZER_H).
10748 2012-09-18 Florian Weimer <fweimer@redhat.com>
10750 * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.
10752 2012-09-18 Richard Guenther <rguenther@suse.de>
10754 * statistics.h (CXX_MEM_STAT_INFO): New define.
10755 * gimple.h (gimple_build_assign_with_ops_stat,
10756 gimple_build_assign_with_ops, gimple_build_assign_with_ops3):
10757 Turn into an overload of the function gimple_build_assign_with_ops.
10758 * gimple.c (gimple_build_assign_with_ops_stat): Rename to ...
10759 (gimple_build_assign_with_ops): ... this.
10760 * tree-ssa-loop-im.c (move_computations_stmt): Adjust.
10761 * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
10762 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
10763 (vect_permute_load_chain): Likewise.
10764 * tree-vect-generic.c (expand_vector_divmod): Likewise.
10765 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
10766 (vect_recog_divmod_pattern): Likewise.
10767 (vect_recog_mixed_size_cond_pattern): Likewise.
10768 (adjust_bool_pattern): Likewise.
10769 * tree-vect-slp.c (vect_create_mask_and_perm): Likewise.
10770 * tree-vect-stmts.c (vectorizable_operation): Likewise.
10771 (permute_vec_elements): Likewise.
10772 (vectorizable_load): Likewise.
10774 2012-09-17 Paul Koning <ni1d@arrl.net>
10776 * doc/invoke.text (-feliminate-unused-debug-types): Update to
10777 reflect that this is enabled by default.
10779 2012-09-17 Ben Cheng <bccheng@google.com
10781 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the
10782 dynamic linker commands for statically linked programs.
10784 2012-09-17 Ulrich Weigand <ulrich.weigand@linaro.org>
10786 * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
10788 * config/arm/arm.md ("vec_set<mode>_internal"): Support memory source
10789 operands, implemented via vld1 instruction.
10790 ("vec_extract<mode>"): Support memory destination operands, implemented
10791 via vst1 instruction.
10792 ("neon_vst1_lane<mode>"): Use UNSPEC_VST1_LANE instead of vec_select.
10793 * config/arm/predicates.md ("neon_lane_number"): Remove.
10795 2012-09-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10796 Ulrich Weigand <ulrich.weigand@linaro.org>
10798 * config/arm/arm.c (output_move_neon): Update comment.
10799 Use vld1.64/vst1.64 instead of vldm/vstm where possible.
10800 (neon_vector_mem_operand): Support double-word modes.
10801 * config/arm/neon.md (*neon_mov VD): Call output_move_neon
10802 instead of output_move_vfp. Change constraint from Uv to Un.
10804 2012-09-17 Richard Guenther <rguenther@suse.de>
10807 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
10808 FIXED_VALUE_TYPE instead of struct fixed_value.
10810 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
10812 * config/avr/avr.c (CONST_FIXED_P): Remove define.
10813 * config/avr/avr.md (add<mode>3): Use CONST_FIXED_P.
10815 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
10818 * config.gcc (tm_file,avr): Add avr/avr-arch.h.
10819 * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to
10820 compile. Don't depend on TM_H. Use CFLAGS_FOR_BUILD.
10821 * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out
10823 * config/avr/avr-arch.h: ...this new file.
10824 * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h,
10826 * comparator: Make letters smaller than digits.
10827 * config/avr/avr-devices.c: Don't include headers if used in
10828 gen-avr-mmcu-texi.c.
10829 * doc/avr-mmcu.texi: Regenerate.
10831 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
10833 * rtl.h (CONST_FIXED_P): New predicate macro.
10835 2012-09-17 Eric Botcazou <ebotcazou@adacore.com>
10837 * tree-cfgcleanup. (cleanup_control_expr_graph) <GIMPLE_COND>: Remove
10838 code doing propagation from degenerate PHI nodes.
10839 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function.
10840 (propagate_constants_for_unrolling): Likewise.
10841 (tree_unroll_loops_completely): If the current loop has been unrolled
10842 and its father isn't the entire function, propagate constants within
10843 the new basic blocks by means of propagate_constants_for_unrolling.
10845 2012-09-17 Jakub Jelinek <jakub@redhat.com>
10847 PR tree-optimization/54563
10848 * tree-ssa-math-opts.c (execute_cse_sincos): Call
10849 gimple_purge_dead_eh_edges if last call has been changed.
10851 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
10854 * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode.
10855 (avr_out_plus_1): Remove log comments from assembler output.
10857 2012-09-17 Ruben Buchatskiy <ruben@ispras.ru>
10859 * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands
10862 2012-09-16 Richard Sandiford <rdsandiford@googlemail.com>
10864 * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL
10867 2012-09-15 Tom de Vries <tom@codesourcery.com>
10869 * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of
10870 LSHIFT_EXPR with shift range. Handle more LSHIFT_EXPR cases with shift
10873 2012-09-15 Georg-Johann Lay <avr@gjlay.de>
10876 * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S,
10877 ALL124U): New mode iterators.
10878 (<code_stdname><mode>3): New insns for SS_PLUS, SS_MINUS.
10879 (<code_stdname><mode>3): New insns for US_PLUS, US_MINUS.
10880 (usneg<mode>2): New insns.
10881 (<code_stdname><mode>2): New expanders for SS_NEG, SS_ABS.
10882 (*<code_stdname><mode>2): New insns for SS_NEG, SS_ABS.
10883 * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators.
10884 (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead.
10885 (<code_stdname><mode>3): New expanders for SS_PLUS, SS_MINUS.
10886 (<code_stdname><mode>3): New expanders for US_PLUS, US_MINUS.
10887 (<code_stdname><mode>3_insn): New insns.
10888 (<code_stdname><mode>3_const_insn): New insns.
10889 * config/avr/avr.md (cc): Add: plus. Remove: out_plus,
10890 out_plus_noclobber, minus.
10891 (length): Add: plus. Remove: out_plus, out_plus_noclobber,
10892 plus64, minus, minus64.
10893 (abelian): New code_attr.
10894 (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs,
10895 us_plus, us_minus, us_neg.
10896 (*add<mode>3, add<mode>3_clobber, add<mode>3, addpsi3, sub<mode>3):
10897 Use avr_out_plus to output.
10898 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
10899 (avr_out_plus_noclobber, avr_out_minus): Remove.
10900 (avr_out_plus64, avr_out_minus64): Remove.
10901 * config/avr/avr.c (avr_out_plus_1): Add new default arguments
10902 code_sat, sign. Saturate after operation if code_sat != UNKNOWN.
10903 (avr_out_plus_symbol): New static function.
10904 (avr_out_plus): Rewrite.
10905 (adjust_insn_length): Handle: ADJUST_LEN_PLUS. Remove handling
10906 of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS,
10907 ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER.
10908 (notice_update_cc): Handle: CC_PLUS. Remove handling of: CC_MINUS,
10909 CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER
10910 (avr_out_plus_noclobber, avr_out_minus): Remove.
10911 (avr_out_plus64, avr_out_minus64): Remove.
10912 (avr_print_operand): Print raw REGNO if 'r' is used with REG.
10914 2012-09-15 Oleg Endo <olegendo@gcc.gnu.org>
10916 * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND,
10917 ZERO_EXTEND and PARALLEL cases.
10918 (sh_address_cost): Correct rtx parsing and tweak cost estimations.
10920 2012-09-14 Sandra Loosemore <sandra@codesourcery.com>
10922 * doc/tm.texi.in (Stack Arguments): Update obsolete references
10923 to current_function_outgoing_args_size.
10924 (Function Entry): Likewise for current_function_pops_args,
10925 current_function_pretend_args_size,
10926 current_function_outgoing_args_size, and
10927 current_function_epilogue_delay_list.
10928 (Misc): Fix garbled sentence referencing nonexistent
10929 current_function_leaf_function.
10930 * doc/tm.texi: Regenerated.
10932 2012-09-14 Dehao Chen <dehao@google.com>
10934 * tree-eh.c (goto_queue_node): New field.
10935 (record_in_goto_queue): New parameter.
10936 (record_in_goto_queue_label): New parameter.
10937 (lower_try_finally_dup_block): New parameter.
10938 (maybe_record_in_goto_queue): Update source location.
10939 (lower_try_finally_copy): Likewise.
10940 (honor_protect_cleanup_actions): Likewise.
10941 * gimplify.c (gimplify_expr): Reset the location to unknown.
10943 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
10945 * configure: Regenerated.
10947 2012-09-14 Walter Lee <walt@tilera.com>
10949 * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
10950 option for TILEPro and TILE-Gx.
10951 (TILE-Gx Options): Fix grammar and spellings in documentation for
10954 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
10957 * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE.
10958 (fold_binary_loc): Likewise.
10959 * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE.
10960 (or_comparisons_1): Likewise.
10962 2012-09-14 Richard Earnshaw <rearnsha@arm.com>
10965 PR rtl-optimization/54540
10966 * reload.c (find_dummy_reload): Don't use OUT as a reload reg
10967 for IN if it overlaps a fixed register.
10969 2012-09-14 Eric Botcazou <ebotcazou@adacore.com>
10971 PR rtl-optimization/44194
10972 * calls.c (expand_call): In the PARALLEL case, copy the return value
10973 into pseudos instead of spilling it onto the stack.
10974 * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and
10975 add new ADJUST_OBJECT parameter.
10976 If ADJUST_OBJECT is set, drop the underlying object if it cannot be
10977 proved that the adjusted memory access is still within its bounds.
10978 (adjust_automodify_address_1): Adjust call to adjust_address_1.
10979 (widen_memory_access): Likewise.
10980 * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead
10981 of adjust_address. Do not drop the underlying object of a MEM.
10982 (store_fixed_bit_field): Likewise.
10983 (extract_bit_field_1): Likewise. Fix oversight in recursion.
10984 (extract_fixed_bit_field): Likewise.
10985 * expr.h (adjust_address_1): Adjust prototype.
10986 (adjust_address): Adjust call to adjust_address_1.
10987 (adjust_address_nv): Likewise.
10988 (adjust_bitfield_address): New macro.
10989 (adjust_bitfield_address_nv): Likewise.
10990 * expr.c (expand_assignment): Handle a PARALLEL in more cases.
10991 (store_expr): Likewise.
10992 (store_field): Likewise.
10994 * dse.c: Fix typos in the head comment.
10996 2012-09-14 Christian Bruel <christian.bruel@st.com>
10999 * config/sh/sh-protos.h (sh_need_epilogue): Delete.
11000 (sh_can_use_simple_return_p): Declare.
11001 * config/sh/sh.c (sh_can_use_simple_return_p): Define.
11002 (sh_need_epilogue, sh_need_epilogue_known): Delete.
11003 (sh_output_function_epilogue): Remove sh_need_epilogue_known.
11004 * config/sh/sh.md (simple_return, return): Define.
11005 (epilogue): Use inline return rtl.
11006 (sh_expand_epilogue): Cleanup parameters boolean type.
11007 * config/sh/iterators.md (any_return): New iterator.
11009 2012-09-14 Christian Bruel <christian.bruel@st.com>
11011 * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
11012 * config/sh/sh.c (sequence_insn_p): Check INSNP_P for SEQUENCE.
11014 2012-09-14 Jakub Jelinek <jakub@redhat.com>
11017 * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
11018 instead of (match_dup 0) as second argument to vec_merge.
11019 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
11020 Remove third alternative.
11021 (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise. Negate
11022 operand 2 instead of operand 1, but put it as first argument of fma.
11023 * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
11024 _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
11027 2012-09-14 Richard Guenther <rguenther@suse.de>
11029 PR tree-optimization/54565
11030 * passes.c (init_optimization_passes): Adjust comments.
11031 (execute_function_todo): Do not execute execute_update_addresses_taken
11032 before processing TODO_rebuild_alias.
11033 * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken.
11035 2012-09-14 Richard Guenther <rguenther@suse.de>
11037 * tree-vrp.c (register_new_assert_for): Simplify for backward walk.
11038 (find_assert_locations_1): Walk the basic-block backwards, properly
11039 add/prune from live. Use live for asserts derived from stmts.
11041 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
11043 * tree-ssa-forwprop.c (simplify_bitfield_ref): Call
11044 get_prop_source_stmt.
11045 (simplify_permutation): Likewise.
11046 (simplify_vector_constructor): Likewise.
11048 2012-09-14 Richard Guenther <rguenther@suse.de>
11050 * builtin-types.def (BT_FN_CONST_STRING): Add.
11051 * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION,
11052 BUILT_IN_LINE): New builtins.
11053 * gimplify.c (gimplify_call_expr): Expand them.
11054 * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION,
11055 __builtin_FILE): Document.
11057 2012-09-13 Anthony Green <green@moxielogic.com>
11059 * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support.
11060 (MULTILIB_DEFAULTS): Define.
11061 (ASM_SPEC): Define.
11062 (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support.
11063 (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and
11064 __MOXIE_BIG_ENDIAN__.
11065 * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define.
11066 * config/moxie/moxie.opt: New file.
11067 * doc/invoke.texi (Moxie Options): Add section documenting -mel
11070 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
11071 Manuel López-Ibáñez <manu@gcc.gnu.org>
11074 * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++.
11076 2012-09-13 Eric Botcazou <ebotcazou@adacore.com>
11078 * config/sparc/predicates.md (input_operand): Do not consider TImode
11079 constants as 1-instruction integer constants.
11080 Use register_or_zero_operand instead of register_operand and tidy up.
11081 * config/sparc/sparc.md (movti): New expander.
11082 (movti_insn_sp64): New instruction.
11083 (movti_insn_sp64_hq): Likewise.
11084 (TImode splitters): New splitters.
11085 * config/sparc/sparc.c (sparc_expand_move) <TImode>: New case.
11086 (sparc_legitimate_address_p): Return 0 for REG+REG in TImode.
11088 * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete.
11089 (arith_4096_operand): Likewise.
11090 (zero_operand): Likewise.
11091 (fp_zero_operand): Likewise.
11092 (reg_or_0_operand): Likewise.
11094 2012-09-13 Jakub Jelinek <jakub@redhat.com>
11096 * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping.
11097 * configure: Regenerated.
11099 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
11101 * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
11102 (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
11104 (*prefetch_sse): ... this.
11105 (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
11107 (*prefetch_3dnow): ... this.
11109 2012-09-13 Steven Bosscher <steven@gcc.gnu.org>
11111 * ipa-pure-const.c (state_from_flags, local_pure_const): Use
11112 current_function_name instead of lang_hooks.decl_printable_name.
11114 * function.h (fndecl_name): New prototype.
11115 * function.c (fndecl_name): New function.
11116 * vecir.h (cgraph_node_p): New standard IR VEC type.
11117 * trans-mem.c (cgraph_node_p): No need anymore to define it here.
11118 * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype.
11119 * ipa-utils.c (ipa_get_nodes_in_cycle): New function.
11120 * ipa-reference.c: Don't include langhooks.h, and certainly not twice.
11121 Fix many formatting issues (long lines, short lines, spacing, etc.).
11122 (get_static_name): Use fndecl_name.
11123 (dump_static_vars_set_to_file): New function split out from propagate.
11124 (union_static_var_sets): New function, union two sets and collapse
11125 to all_module_statics as quickly as possible.
11126 (intersect_static_var_sets): New function, similar to above.
11127 (copy_static_var_set): Renamed from copy_global_bitmap and rewritten
11128 to allocate a copy on the same bitmap_obstack as the source set.
11129 (propagate_bits): Simplify, and clarify by using union_static_var_sets.
11130 (generate_summary): Remove bm_temp. Print UID of promotable globals.
11131 (read_write_all_from_decl): Use pass-by-reference, bless C++.
11132 (get_read_write_all_from_node): New function, split out from propagate.
11133 (propagate): Simplify and clarify with helper functions. Use
11134 ipa_get_nodes_in_cycle to walk all nodes in a reduced node.
11135 (ipa_reference_read_optimization_summary): Use fndecl_name instead of
11136 lang_hooks.decl_printable_name.
11138 * rtl.h (print_rtl_single_with_indent): New prototype.
11139 * print-rtl.c (print_rtl_single_with_indent): New function.
11140 * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks.
11141 * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement.
11142 * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump):
11143 Implement RTL specific hooks.
11144 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks.
11145 * tree-cfg.c (gimple_empty_block_p,
11146 gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks.
11147 (gimple_cfg_hooks): Register the new hooks.
11148 * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook.
11150 2012-09-13 Richard Guenther <rguenther@suse.de>
11152 * tree-ssa-sccvn.h (enum vn_kind): New.
11153 (vn_get_stmt_kind): Likewise.
11154 * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust
11155 ADDR_EXPR handling.
11156 (visit_use): Use it.
11157 * tree-ssa-pre.c (compute_avail): Likewise, simplify further.
11159 2012-09-13 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11161 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
11162 for targets bdver1, bdver2, btver1 and btver2.
11164 2012-09-13 Christophe Lyon <christophe.lyon@linaro.org>
11165 Richard Earnshaw <rearnsha@arm.com>
11167 * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm
11168 variants for rev instruction..
11169 (thumb1_rev): Delete pattern.
11170 (arm_revsh): New pattern to support builtin_bswap16.
11171 (arm_rev16, bswaphi2): Likewise.
11173 2012-09-12 Teresa Johnson <tejohnson@google.com>
11175 PR gcov-profile/54487
11176 * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
11177 test using F_SETLKW with fcntl.
11178 * configure, config.in: Regenerate.
11180 2012-09-12 Jan Hubicka <jh@suse.cz>
11183 * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride.
11184 (set_hint_predicate): New function.
11185 (reset_inline_summary): Reset loop stride.
11186 (remap_predicate_after_duplication): New function.
11187 (remap_hint_predicate_after_duplication): New function.
11188 (inline_node_duplication_hook): Update.
11189 (dump_inline_summary): Dump stride summaries.
11190 (estimate_function_body_sizes): Compute strides.
11191 (remap_hint_predicate): New function.
11192 (inline_merge_summary): Use it.
11193 (inline_read_section): Read stride.
11194 (inline_write_summary): Write stride.
11195 * ipa-inline.c (want_inline_small_function_p): Handle strides.
11196 (edge_badness): Likewise.
11197 * ipa-inline.h (inline_hints_vals): Add stride hint.
11198 (inline_summary): Update stride.
11200 2012-09-12 Uros Bizjak <ubizjak@gmail.com>
11202 * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char.
11203 * config/i386/i386.h (x86_prefetch_sse): Ditto.
11205 2012-09-12 H.J. Lu <hongjiu.lu@intel.com>
11208 * config/i386/predicates.md (x86_64_immediate_operand): Allow
11209 negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF.
11211 2012-09-12 Jan Hubicka <jh@suse.cz>
11213 * common.opt (flto-partition): Add "max".
11214 * invoke.texi (flto-partition): Document "max"
11216 2012-09-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11218 * config/i386/i386.md : Comments on fma4 instruction selection
11219 reflect requirement on register pressure based cost model.
11221 * config/i386/driver-i386.c (host_detect_local_cpu): fma4
11222 flag is set-reset as informed by the cpuid flag.
11224 * config/i386/i386.c (processor_alias_table): fma4
11225 flag is enabled for bdver2.
11227 2012-09-12 Richard Guenther <rguenther@suse.de>
11229 PR tree-optimization/54489
11230 * tree-ssa-pre.c: Include domwalk.h.
11232 (sccvn_valnum_from_value_id): New function.
11233 (debug_bitmap_sets_for): Simplify.
11234 (get_representative_for): Properly initialize the SCCVN valnum.
11235 (create_expression_by_pieces): Likewise.
11236 (insert_into_preds_of_block): Likewise.
11237 (can_PRE_operation): Remove.
11238 (make_values_for_phi): Simplify.
11239 (compute_avail): Likewise.
11240 (do_SCCVN_insertion): Remove.
11241 (eliminate_avail, eliminate_push_avail, eliminate_insert):
11243 (eliminate): Split and perform a domwalk.
11244 (eliminate_bb): Former eliminate part that is now dom-enter.
11245 (eliminate_leave_block): New function.
11246 (fini_eliminate): Likewise.
11247 (init_pre): Simplify.
11248 (fini_pre): Likewise.
11249 (execute_pre): Fold into do_pre and do_fre.
11250 (do_pre): Consume execute_pre.
11251 (do_fre): Likewise.
11252 * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency.
11254 2012-09-12 Diego Novillo <dnovillo@google.com>
11256 * vec.h: Remove compatibility notes for previous distinction
11257 between vectors of objects and vectors of pointers.
11259 2012-09-12 Christian Bruel <christian.bruel@st.com>
11261 * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
11263 2012-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11265 * rtl.h (FFS, FLOAT, ABS, PC): Don't undef.
11266 * system.h (FFS, FLOAT, ABS, PC): Undef.
11268 2012-09-12 Richard Guenther <rguenther@suse.de>
11270 PR middle-end/54553
11271 * common.opt (finline): Mark with Optimization.
11273 2012-09-12 Jakub Jelinek <jakub@redhat.com>
11275 * config.gcc: Obsolete picochip-*.
11277 2012-09-12 Nathan Froyd <froydnj@gcc.gnu.org>
11278 Hans-Peter Nilsson <hp@bitrange.com>
11280 * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete.
11281 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete.
11282 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
11283 * config/mmix/mmix-protos.h (mmix_intval): Declare.
11284 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
11285 (mmix_const_double_ok_for_letter_p): Delete.
11286 * config/mmix/constraints.md: New file.
11287 * config/mmix/mmix.md: Include it.
11288 (iordi3): Fix typo; use "I" instead of undefined "H" constraint.
11289 ("*call_real"): Update comment about not using the "p" constraint.
11290 * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use
11291 satisfies_constraint_I.
11292 (mmix_address_operand): New predicate.
11293 (mmix_symbolic_or_address_operand): Use it instead of address_operand.
11294 * config/mmix/mmix.c: #include tm-constrs.h.
11295 (mmix_intval): Delete declaration. Make non-static.
11296 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
11297 (mmix_const_double_ok_for_letter_p): Delete.
11298 (mmix_legitimate_address_p): Use satisfies_constraint_I.
11299 (mmix_print_operand_address): Likewise.
11300 (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint
11301 when matching "L" constraint.
11303 2012-09-11 Steven Bosscher <steven@gcc.gnu.org>
11305 * tree.h (expand_case): Move prototype ...
11306 * expr.h (expand_case): ...here.
11307 (expand_sjlj_dispatch_table): New prototype.
11308 * stmt.c: Include pointer-set.h instead of bitmap.h.
11309 (expand_case): Use a pointer set instead of a bitmap for
11310 already-seen labels. Fold label values here.
11311 (add_case_node): Don't fold label values here.
11312 (expand_sjlj_dispatch_table): New function.
11313 * except.c (sjlj_emit_dispatch_table): Use it.
11315 2012-09-11 Marc Glisse <marc.glisse@inria.fr>
11317 * tree-ssa-forwprop.c (simplify_vector_constructor): New function.
11318 (ssa_forward_propagate_and_combine): Call it.
11320 2012-09-11 Diego Novillo <dnovillo@google.com>
11322 * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes.
11324 2012-09-11 Dominique Dhumieres <dominiq@lps.ens.fr>
11326 * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes.
11327 (darwin_asm_dwarf_section): Likewise.
11329 2012-09-11 Martin Jambor <mjambor@suse.cz>
11331 * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun.
11332 (premark_used_types): New parameter fun, use it instead of cfun.
11333 (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun,
11334 also pass it to premark_used_types.
11336 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11338 * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line.
11340 2012-09-11 Tobias Burnus <burnus@net-b.de>
11342 * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor.
11344 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11345 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11347 * config/arm/neon.md (fma<VCVTF:mode>4): New pattern.
11348 (*fmsub<VCVTF:mode>4): Likewise.
11349 * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw): Document it.
11351 2012-09-11 Aldy Hernandez <aldyh@redhat.com>
11353 PR middle-end/54149
11354 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set
11357 2012-09-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11359 PR tree-optimization/55492
11360 * doc/invoke.texi (max-slsr-cand-scan): New description.
11361 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit
11362 the time spent searching for a basis.
11363 * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param.
11365 2012-09-11 Richard Guenther <rguenther@suse.de>
11367 * gimple.h (gimple_register_type): Remove.
11368 (print_gimple_types_stats): Adjust prototype.
11369 * lto-streamer.h (print_lto_report): Likewise.
11370 * lto-streamer.c (print_lto_report): Adjust.
11371 * gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
11372 struct type_pair_d, lookup_type_pair, struct sccs,
11373 next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
11374 gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
11375 gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
11376 visit, iterative_hash_name, struct type_hash_pair,
11377 type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
11378 gimple_type_eq, gimple_register_type_1, gimple_register_type):
11380 (print_gimple_types_stats): Adjust.
11381 (free_gimple_type_tables): Likewise.
11383 2012-09-11 Richard Guenther <rguenther@suse.de>
11385 * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes.
11386 (scopdet_basic_block_info): Likewise.
11387 (build_scops_1): Likewise.
11388 (limit_scops): Likewise.
11390 2012-09-11 Richard Guenther <rguenther@suse.de>
11392 PR middle-end/54515
11393 * gimple.c (get_base_address): Do not return NULL_TREE apart
11394 from for WITH_SIZE_EXPR.
11395 * gimple-fold.c (canonicalize_constructor_val): Do not call
11396 get_base_address when not necessary.
11398 2012-09-10 Andrew Pinski <apinski@cavium.com>
11401 * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also.
11403 2012-09-10 Maxim Kuvyrkov <maxim@codesourcery.com>
11405 * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support
11406 starting scheduling from a pre-existing state.
11408 2012-09-10 Diego Novillo <dnovillo@google.com>
11410 * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'.
11412 (vec_t::safe_push): Likewise.
11413 (vec_t::quick_insert): Likewise.
11414 (vec_t::lower_bound): Likewise.
11415 (vec_t::safe_insert): Likewise.
11416 (vec_t::replace): Change second argument to 'T &'.
11418 2012-09-10 Maciej W. Rozycki <macro@codesourcery.com>
11420 * config/rs6000/rs6000.md: Move a splitter next to its insn.
11422 2012-09-10 Oleg Endo <olegendo@gcc.gnu.org>
11425 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if
11426 dynamic shifts are available.
11427 (SHIFT_COUNT_TRUNCATED): Always define to 0. Correct comment.
11428 * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments.
11429 * config/sh/predicates.md (shift_count_operand): Allow
11430 arith_reg_operand even if TARGET_DYNSHIFT is false.
11431 * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns
11433 (ashlsi3_d_call, lshrsi3_d_call): New insns.
11435 2012-09-10 Richard Sandiford <rdsandiford@googlemail.com>
11437 * ira.c (setup_pressure_classes): Handle synonymous classes.
11439 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
11441 * tree-ssa-forwprop.c (simplify_bitfield_ref): New function.
11442 (ssa_forward_propagate_and_combine): Call it.
11444 2012-09-10 Steve Ellcey <sellcey@mips.com>
11446 * config.gcc: Add mips*-mti-linux* target
11447 Handle with_synci like other options.
11448 * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New.
11449 (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS.
11450 * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New.
11451 * config/mips/mti-linux.h: New file.
11452 * config/mips/t-mti-linux: New file.
11454 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
11456 * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR.
11458 2012-09-10 Martin Jambor <mjambor@suse.cz>
11460 * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter.
11461 * ipa-prop.c: Include params.h.
11462 (IPA_MAX_AFF_JF_ITEMS): Removed.
11463 (determine_known_aggregate_parts): Use param value of
11464 PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS.
11465 * Makefile.in (ipa-prop.o): Add PARAMS_H dependency.
11467 2012-09-10 Richard Guenther <rguenther@suse.de>
11469 PR tree-optimization/54520
11470 * tree-ssa-threadupdate.c (def_split_header_continue_p):
11471 Properly consider sub-loops.
11473 2012-09-10 Richard Henderson <rth@redhat.com>
11475 * config/alpha/predicates.md (small_symbolic_operand): Disallow
11478 2012-09-10 Georg-Johann Lay <avr@gjlay.de>
11481 * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
11483 2012-09-10 Jan Hubicka <jh@suse.cz>
11485 * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases.
11486 * symtab.c (symtab_make_decl_local): Remove user defined visibility
11487 when making symbol local.
11489 2012-09-09 Mark Kettenis <kettenis@gnu.org>
11491 * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define.
11493 2012-09-09 Jan Hubicka <jh@suse.cz>
11495 * passes.c (ipa_write_summaries_1): Set state;
11496 do not call compute_ltrans_boundary.
11497 (ipa_write_optimization_summaries): Likewise.
11498 (ipa_write_summaries): compute_ltrans_boundary here.
11499 * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
11500 (compute_ltrans_boundary): Update prototype.
11502 2012-09-09 Ulrich Drepper <drepper@gmail.com>
11504 * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for
11505 matching results of level 0 calls to __cpuid to processor
11507 * config/i386/driver-i386.c (vendor_signatures): Removed.
11508 (processor_signatures): Removed.
11509 (host_detect_local_cpu): Replace uses of now-removed SIG_*
11510 constants with the new signature_*_ebx constants.
11512 2012-09-08 Jan Hubicka <jh@suse.cz>
11514 Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
11516 * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove
11517 forward declaration.
11518 (lto_symtab_encoder_d): Forward declare.
11519 (ipa_write_optimization_summaries): Update.
11520 * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize
11521 body, initializer and in_partition.
11522 (lto_symtab_encoder_delete): Update.
11523 (lto_symtab_encoder_encode): Update.
11524 (lto_symtab_encoder_lookup): Move inline.
11525 (lto_symtab_encoder_delete_node): New function.
11526 (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body,
11527 lto_symtab_encoder_encode_initializer_p,
11528 lto_set_symtab_encoder_encode_initializer,
11529 lto_symtab_encoder_in_partition_p,
11530 lto_symtab_encoder_in_partition_p): Update.
11531 (compute_ltrans_boundary): Take encoder as an input.
11532 * passes.c (ipa_write_summaries_1): Update.
11533 (ipa_write_summaries_1): Update.
11534 (ipa_write_summaries): Update.
11535 (ipa_write_optimization_summaries): Update.
11536 * lto-streamer.c (print_lto_report): Report number of cgraph nodes.
11537 * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by
11538 num_output_symtab_nodes.
11539 (lto_encoder_entry): New structure.
11540 (struct lto_symtab_encoder_d): Reorg.
11541 (lto_symtab_encoder_delete_node): Declare.
11542 (lto_symtab_encoder_lookup): Bring inline.
11543 (compute_ltrans_boundary): Update.
11544 (lto_symtab_encoder_size): Update.
11545 (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update.
11546 (lto_symtab_encoder_deref): Update.
11548 2012-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11550 * config/pa/pa.c (hppa_rtx_costs): Update costs for large
11553 2012-09-08 Andi Kleen <ak@linux.intel.com>
11555 * lto/lto.c (do_whole_program_analysis): Fix last broken patch.
11557 2012-09-08 Andi Kleen <ak@linux.intel.com>
11559 * common.opt (-fmem-report-wpa): Add
11560 * doc/invoke.texi (-fmem-report-wpa): Document.
11561 * lto/lto.c (do_whole_program_analysis): Run mem_report
11562 when mem_report_wpa is set.
11564 2012-09-07 Anthony Green <green@moxielogic.com>
11566 * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue
11567 for functions with large static stack requirements.
11568 (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved
11569 values off of the stack.
11571 2012-09-07 Nick Clifton <nickc@redhat.com>
11573 * config/v850/v850.h (DBX_DEBUGGING_INFO): Define.
11574 (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.
11575 * config/v850/v850.c (compute_register_save_size): Always include
11577 (increment_stack): New function - emits insns to increment or
11578 decrement the stack pointer.
11579 (expand_prologue, expand_epilogue): Use it.
11580 (expand_prologue): Set the function stack size, if requested.
11581 (v850_debug_unwind_info): New function.
11582 (TARGET_DEBUG_UNWIND_INFO): Define.
11584 2012-09-07 Richard Earnshaw <rearnsha@arm.com>
11587 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
11588 Sign-extension of a zero-extended value can be simplified to
11589 just zero-extension.
11591 2012-09-07 Richard Guenther <rguenther@suse.de>
11593 PR middle-end/53667
11594 * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
11595 EAF_NOESCAPED arguments. Transitively close non-EAF_DIRECT
11596 arguments separately.
11598 2012-09-07 Steven Bosscher <steven@gcc.gnu.org>
11600 * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
11602 * graphite.c (print_global_statistics): Use EDGE_COUNT instead
11604 (print_graphite_scop_statistics): Likewise.
11605 * graphite-scop-detection.c (get_bb_type): Use single_succ_p.
11606 (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
11607 (canonicalize_loop_closed_ssa): Use single_pred_p.
11609 * alias.c (reg_seen): Make this an sbitmap.
11610 (record_set, init_alias_analysis): Update.
11612 * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
11614 2012-09-07 Tom de Vries <tom@codesourcery.com>
11616 PR tree-optimization/53986
11617 * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow
11619 (extract_range_from_binary_expr_1): Handle LSHIFT with constant
11620 range as shift amount.
11622 2012-09-07 Segher Boessenkool <segher@kernel.crashing.org>
11624 * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete.
11625 * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete.
11626 * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete.
11627 * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete.
11628 * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete.
11629 * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete.
11630 * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete.
11631 * config/rs6000/rs6000.c (print_operand) ['.']: Delete.
11632 * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete.
11633 * config/rs6000/rs6000.md (tls_gd_aix<TLSmode:tls_abi_suffix>):
11634 Replace %. with nop.
11635 (tls_gd_call_aix<TLSmode:tls_abi_suffix>): Ditto.
11636 (tls_ld_aix<TLSmode:tls_abi_suffix>): Ditto.
11637 (tls_ld_call_aix<TLSmode:tls_abi_suffix>): Ditto.
11638 (call_nonlocal_aix32): Ditto.
11639 (call_nonlocal_aix64): Ditto.
11640 (call_value_nonlocal_aix32): Ditto.
11641 (call_value_nonlocal_aix64): Ditto.
11643 2012-09-06 Andi Kleen <ak@linux.intel.com>
11645 * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar
11646 et.al. should be used.
11648 2012-09-06 Andi Kleen <ak@linux.intel.com>
11650 * lto-streamer.h (res_pair): Add.
11651 (lto_file_decl_data): Replace resolutions with respairs.
11653 * lto/lto.c (lto_resolution_read): Remove max_index. Add rp.
11654 Initialize respairs.
11655 (lto_file_finalize): Set up resolutions vector lazily from respairs.
11657 2012-09-06 Lawrence Crowl <crowl@google.com>
11659 * double-int.h (double_int::operator &=): New.
11660 (double_int::operator ^=): New.
11661 (double_int::operator |=): New.
11662 (double_int::mul_with_sign): Modify overflow parameter to bool*.
11663 (double_int::add_with_sign): New.
11664 (double_int::ule): New.
11665 (double_int::sle): New.
11666 (binary double_int::operator *): Remove parameter name.
11667 (binary double_int::operator +): Likewise.
11668 (binary double_int::operator -): Likewise.
11669 (binary double_int::operator &): Likewise.
11670 (double_int::operator |): Likewise.
11671 (double_int::operator ^): Likewise.
11672 (double_int::and_not): Likewise.
11673 (double_int::from_shwi): Tidy formatting.
11674 (double_int::from_uhwi): Likewise.
11675 (double_int::from_uhwi): Likewise.
11676 * double-int.c (double_int::mul_with_sign): Modify overflow parameter
11678 (double_int::add_with_sign): New.
11679 (double_int::ule): New.
11680 (double_int::sle): New.
11681 * builtins.c: Modify to use the new double_int interface.
11682 * cgraph.c: Likewise.
11683 * combine.c: Likewise.
11684 * dwarf2out.c: Likewise.
11685 * emit-rtl.c: Likewise.
11686 * expmed.c: Likewise.
11687 * expr.c: Likewise.
11688 * fixed-value.c: Likewise.
11689 * fold-const.c: Likewise.
11690 * gimple-fold.c: Likewise.
11691 * gimple-ssa-strength-reduction.c: Likewise.
11692 * gimplify-rtx.c: Likewise.
11693 * ipa-prop.c: Likewise.
11694 * loop-iv.c: Likewise.
11695 * optabs.c: Likewise.
11696 * stor-layout.c: Likewise.
11697 * tree-affine.c: Likewise.
11698 * tree-cfg.c: Likewise.
11699 * tree-dfa.c: Likewise.
11700 * tree-flow-inline.h: Likewise.
11701 * tree-object-size.c: Likewise.
11702 * tree-predcom.c: Likewise.
11703 * tree-pretty-print.c: Likewise.
11704 * tree-sra.c: Likewise.
11705 * tree-ssa-address.c: Likewise.
11706 * tree-ssa-alias.c: Likewise.
11707 * tree-ssa-ccp.c: Likewise.
11708 * tree-ssa-forwprop.c: Likewise.
11709 * tree-ssa-loop-ivopts.c: Likewise.
11710 * tree-ssa-loop-niter.c: Likewise.
11711 * tree-ssa-phiopt.c: Likewise.
11712 * tree-ssa-pre.c: Likewise.
11713 * tree-ssa-sccvn: Likewise.
11714 * tree-ssa-structalias.c: Likewise.
11715 * tree-ssa.c: Likewise.
11716 * tree-switch-conversion.c: Likewise.
11717 * tree-vect-loop-manip.c: Likewise.
11718 * tree-vrp.c: Likewise.
11719 * tree.h: Likewise.
11720 * tree.c: Likewise.
11721 * varasm.c: Likewise.
11723 2012-09-06 Uros Bizjak <ubizjak@gmail.com>
11725 * configure.ac (hle prefixes): Remove .code64 directive.
11726 * configure: Regenerated.
11728 2012-09-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11730 * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
11731 LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
11732 * config/arm/arm.h: Use REG_P, MEM_P consistently.
11733 * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
11735 * config/arm/neon.md: Use REG_P consistently.
11736 * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently.
11737 * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
11738 * config/arm/vec-common.md: Use REG_P consistently.
11740 2012-09-06 Richard Guenther <rguenther@suse.de>
11742 PR tree-optimization/54498
11743 * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
11744 abort when reaching an already visited region.
11745 * tree-ssa-alias.c (maybe_skip_until): Likewise. And do it.
11746 (get_continuation_for_phi_1): Likewise.
11747 (walk_non_aliased_vuses): When we translated the reference,
11748 abort when we re-visit a region.
11749 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
11751 2012-09-06 David Edelsohn <dje.gcc@gmail.com>
11753 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
11755 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
11756 arguments to TARGET_ADDRESS_COST call.
11758 2012-09-06 Richard Guenther <rguenther@suse.de>
11760 * tree.h (MOVE_NONTEMPORAL): Remove.
11761 * tree-pretty-print.c (dump_generic_node): Remove
11762 MOVE_NONTEMPORAL handling.
11763 * expr.c (expand_expr_real_1): Likewise.
11765 2012-09-06 Richard Guenther <rguenther@suse.de>
11767 * passes.c (execute_function_todo): Call compute_may_aliases
11768 only if flag_tree_pta is set.
11770 2012-09-06 Andrew Pinski <apinski@cavium.com>
11773 * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
11775 2012-09-06 Jakub Jelinek <jakub@redhat.com>
11777 PR rtl-optimization/54455
11778 * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
11779 bb ends up with asm goto referencing bb's label.
11781 2012-09-06 Chen Liqin <liqin.gcc@gmail.com>
11783 * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and
11784 score_legitimize_address function, use compiler default code instead.
11786 2012-09-05 Jan Hubicka <jh@suse.cz>
11788 * ipa-inline.c (want_inline_small_function_p): Use
11789 INLINE_HINT_loop_iterations hint.
11791 2012-09-05 Andrew Pinski <apinski@cavium.com>
11793 * optabs.c (emit_conditional_add): Correct comment about the arguments.
11794 Remove code which might swap op2 and op3 since they cannot be swapped.
11795 * doc/md.texi (add@var{mode}cc): Fix document about how the arguments
11798 2012-09-05 Oleg Endo <olegendo@gcc.gnu.org>
11800 * hooks.c (hook_int_rtx_mode_as_bool_0): New function.
11801 * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it.
11802 * output.h (default_address_cost): Add machine_mode and address space
11804 * target.def (address_cost): Likewise.
11805 * rtlanal.c (address_cost): Pass mode and address space to target hook.
11806 (default_address_cost): Add unnamed machine_mode and address space
11808 * doc/tm.texi: Regenerate.
11809 * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use
11810 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11811 * config/arm/arm.c (arm_address_cost): Add machine_mode and address
11813 * config/avr/avr.c (avr_address_cost): Likewise.
11814 * config/bfin/bfin.c (bfin_address_cost): Likewise.
11815 * config/cr16/cr16.c (cr16_address_cost): Likewise.
11816 * config/cris/cris.c (cris_address_cost): Likewise.
11817 * config/epiphany/epiphany.c (epiphany_address_cost): Likewise.
11818 * config/i386/i386.c (ix86_address_cost): Likewise.
11819 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use
11820 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11821 * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and
11822 address space arguments. Pass them on in recursive invocation.
11823 * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use
11824 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11825 * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address
11827 * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use
11828 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11829 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise.
11830 * config/mep/mep.c (mep_address_cost): Add machine_mode and address
11832 * config/microblaze/microblaze.c (microblaze_address_cost): Likewise.
11833 * config/mips/mips.c (mips_address_cost): Likewise.
11834 * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use
11835 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11836 * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and
11837 address space arguments.
11838 (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to
11839 mn10300_address_cost.
11840 * config/pa/pa.c (hppa_address_cost): Add machine_mode and address
11842 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise.
11843 (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of
11844 hook_int_rtx_bool_0.
11845 * config/rx/rx.c (rx_address_cost): Add machine_mode and address
11847 * config/s390/s390.c (s390_address_cost): Likewise.
11848 * config/score/score-protos.h (score_address_cost): Likewise.
11849 * config/score/score.c (score_address_cost): Likewise.
11850 * config/sh/sh.c (sh_address_cost): Likewise.
11851 * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use
11852 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11853 * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise.
11854 * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode
11855 and address space arguments.
11856 * config/v850/v850.c (TARGET_ADDRESS_COST): Use
11857 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11858 * config/vax/vax.c (vax_address_cost): Add machine_mode and address
11860 * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use
11861 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
11863 2012-09-05 Diego Novillo <dnovillo@google.com>
11866 * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument.
11868 2012-09-05 Jakub Jelinek <jakub@redhat.com>
11870 PR middle-end/54486
11871 * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
11872 build_int_cst with size_type_node instead of size_int.
11874 2012-09-05 Uros Bizjak <ubizjak@gmail.com>
11876 * config/i386/sse.md (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>):
11877 Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}.
11878 Use nonimmediate_operand instead of
11879 nonimm_not_xmm0_operand{,_maybe_avx}.
11880 (<sse4_1_avx2>_pblendvb): Ditto.
11881 (sse4_2_pcmpestr): Ditto.
11882 (*sse4_2_pcmpestr_unaligned): Ditto.
11883 (sse4_2_pcmpistr): Ditto.
11884 (*sse4_2_pcmpistr_unaligned): Ditto.
11885 * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate.
11886 (nonimm_not_xmm0_operand): Ditto.
11887 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
11888 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
11889 * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx.
11891 2012-09-05 Eric Botcazou <ebotcazou@adacore.com>
11893 * bb-reorder.c: Clarify a few points in the head comment and fix
11894 long lines in other comments.
11895 (find_traces): Fix long line.
11896 (find_traces_1_round): Likewise.
11897 (better_edge_p): Likewise.
11898 (connect_traces): Likewise.
11899 (duplicate_computed_gotos): Likewise.
11900 (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces.
11901 (fix_up_fall_thru_edges): Fix formatting.
11903 2012-09-05 Richard Guenther <rguenther@suse.de>
11905 PR tree-optimization/46590
11906 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not
11907 update SSA form here.
11908 (canonicalize_induction_variables): Assert we do not need to
11910 (tree_unroll_loops_completely): Update SSA form here.
11911 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11912 Do not verify loop-closed SSA form if SSA form is not up-to-date.
11914 2012-09-05 Georg-Johann Lay <avr@gjlay.de>
11917 * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
11918 not configured --with-avrlibc=no.
11919 (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
11921 * config/avr/avrlibc.h: New file.
11922 * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
11923 not configured --with-avrlibc=no.
11924 * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
11926 2012-09-04 Teresa Johnson <tejohnson@google.com>
11928 * gcov-io.c (gcov_write_summary): Write out non-zero histogram
11929 entries to function summary along with an occupancy bit vector.
11930 (gcov_read_summary): Read in the histogram entries.
11931 (gcov_histo_index): New function.
11932 (void gcov_histogram_merge): Ditto.
11933 * gcov-io.h (gcov_type_unsigned): New type.
11934 (struct gcov_bucket_type): Ditto.
11935 (struct gcov_ctr_summary): Include histogram.
11936 (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
11937 (GCOV_HISTOGRAM_SIZE): New macro.
11938 (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
11939 * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
11940 (gcov_working_sets): New global variable.
11941 (compute_working_sets): New function.
11942 (find_working_set): Ditto.
11943 (get_exec_counts): Invoke compute_working_sets.
11944 * coverage.c (read_counts_file): Merge histograms, and
11945 fix bug with accessing summary info for non-summable counters.
11946 * basic-block.h (gcov_type_unsigned): New type.
11947 (struct gcov_working_set_info): Ditto.
11948 (find_working_set): Declare.
11949 * gcov-dump.c (tag_summary): Dump out histogram.
11951 2012-09-04 Diego Novillo <dnovillo@google.com>
11954 * vec.h (vec_t::embedded_init): Move default argument value
11955 to function declaration.
11957 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
11959 * bb-reorder.c (gate_handle_reorder_blocks): Move around.
11960 (rest_of_handle_reorder_blocks): Likewise.
11961 (pass_reorder_blocks): Likewise.
11962 (gate_handle_partition_blocks): Likewise.
11964 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
11966 PR rtl-optimization/54456
11967 * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
11969 2012-09-04 Diego Novillo <dnovillo@google.com>
11972 * vec.h (vec_t::alloc): Remove explicit type specification
11973 in call to reserve.
11974 (vec_t::copy): Likewise.
11975 (vec_t::reserve): Likewise.
11976 (vec_t::reserve_exact): Likewise.
11977 (vec_t::safe_splice): Likewise.
11978 (vec_t::safe_push): Likewise.
11979 (vec_t::safe_grow): Likewise.
11980 (vec_t::safe_grow_cleared): Likewise.
11981 (vec_t::safe_insert): Likewise.
11983 2012-09-04 Richard Henderson <rth@redhat.com>
11985 * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
11987 2012-09-04 Richard Guenther <rguenther@suse.de>
11989 * tree-ssa-pre.c (value_expressions): Make it a vector of
11990 bitmaps containing expression IDs.
11991 (add_to_value): Adjust.
11992 (sorted_array_from_bitmap_set): Likewise.
11993 (bitmap_set_replace_value): Likewise.
11994 (print_value_expressions): Likewise.
11995 (get_constant_for_value_id): Likewise.
11996 (get_representative_for): Likewise.
11997 (phi_translate_1): Likewise.
11998 (bitmap_find_leader): Likewise.
11999 (find_or_generate_expression): Likewise.
12000 (do_regular_insertion): Likewise.
12001 (init_pre): Likewise.
12002 (fini_pre): Likewise.
12004 2012-09-04 Diego Novillo <dnovillo@google.com>
12007 * vec.h (vec_t::copy): Add cast in call to reserve_exact.
12009 2012-09-04 Richard Guenther <rguenther@suse.de>
12011 * tree-ssa-pre.c (add_to_exp_gen): Adjust.
12012 (make_values_for_phi): Do not add to PHI_GEN for FRE.
12013 (compute_avail): Stop processing after adding all defs to
12015 (init_pre): Do not allocate not needed bitmap sets for FRE.
12017 2012-09-04 Diego Novillo <dnovillo@google.com>
12019 Rewrite VEC_* functions as member functions of vec_t.
12021 * vec.h: Update documentation.
12022 (ALONE_VEC_CHECK_INFO): Define.
12023 (ALONE_VEC_CHECK_DECL): Define.
12024 (ALONE_VEC_CHECK_PASS): Define.
12025 (struct vec_prefix): Rename field NUM to NUM_.
12026 Rename field ALLOC to ALLOC_.
12028 (struct vec_t): Rename field PREFIX to PREFIX_.
12029 Rename field VEC to VEC_.
12031 (vec_t::length): Rename from VEC_length_1. Update all users.
12032 (vec_t::empty): Rename from VEC_empty_1. Update all users.
12033 (vec_t::address): Rename from VEC_address_1. Update all users.
12034 (vec_address): New.
12035 (vec_t::last): Rename from VEC_last_1. Update all users.
12036 (vec_t::operator[]): Rename from VEC_index_1. Update all users.
12037 (vec_t::iterate): Rename from VEC_iterate_1. Update all users.
12038 (vec_t::embedded_size): Rename from VEC_embedded_size_1.
12040 (vec_t::embedded_init): Rename from VEC_embedded_init_1.
12042 (vec_t::alloc): Rename from VEC_alloc_1. Update all users.
12043 (vec_t::free): Rename from VEC_free_1. Update all users.
12044 (vec_t::copy): Rename from VEC_copy_1. Update all users.
12045 (vec_t::space): Rename from VEC_space_1. Update all users.
12046 (vec_t::reserve): Rename from VEC_reserve_1. Update all users.
12047 (vec_t::reserve_exact): Rename from VEC_reserve_exact_1.
12049 (vec_t::splice): Rename from VEC_splice_1. Update all users.
12050 (vec_t::safe_splice): Rename from VEC_safe_splice_1. Update all users.
12051 (vec_t::quick_push): Rename from VEC_quick_push_1. Update all users.
12052 (vec_t::safe_push): Rename from VEC_safe_push_1. Update all users.
12053 (vec_t::pop): Rename from VEC_pop_1. Update all users.
12054 (vec_t::truncate): Rename from VEC_truncate_1. Update all users.
12055 (vec_t::safe_grow): Rename from VEC_safe_grow_1. Update all users.
12056 (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1.
12058 (vec_t::replace): Rename from VEC_replace_1. Update all users.
12059 (vec_t::quick_insert): Rename from VEC_quick_insert_1.
12061 (vec_t::safe_insert): Rename from VEC_safe_insert_1. Update all users.
12062 (vec_t::ordered_remove): Rename from VEC_ordered_remove_1.
12064 (vec_t::unordered_remove): Rename from VEC_unordered_remove_1.
12066 (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users.
12067 (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users.
12069 2012-09-04 Steven Bosscher <steven@gcc.gnu.org>
12071 * gimple.h (gimple_build_switch): Remove.
12072 (gimple_build_switch_vec): Promote to the new gimple_build_switch.
12073 (gimple_switch_default_label): Assert the default case label is
12074 really a default case label.
12075 (gimple_switch_set_default_label): Likewise.
12076 * gimple.c (gimple_build_switch_nlabels): Make sure a default label
12077 is passed in, and simplify accordingly.
12078 (gimple_build_switch): Removed.
12079 (gimple_build_switch_vec): Rename to gimple_build_switch.
12080 * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use.
12081 * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL
12083 * stmt.c (expand_case): Simplify using the fact that every GIMPLE
12084 switch must have a default case.
12085 * tree-cfg.c (group_case_labels_stmt): Likewise.
12086 (verify_gimple_switch): Use gimple_switch_label in verifier to get
12087 the label at index 0, and verify that it is a valid default case.
12088 * except.c (sjlj_emit_dispatch_table): Rewrite construction of the
12089 switch for dispatching.
12090 * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use.
12091 (lower_eh_dispatch): Likewise.
12092 * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case
12093 label at index 0 before turning it into a default case label.
12094 * omp-low.c (expand_omp_sections): Update gimple_build_switch use.
12095 * tree-switch-conversion.c (emit_case_bit_tests): Get the default case
12096 label using gimple_switch_default_label.
12097 (collect_switch_conv_info): Likewise.
12098 (process_switch): Likewise.
12099 * doc/gimple.texi: Update documentation of gimple_build_switch.
12101 2012-09-04 Georg-Johann Lay <avr@gjlay.de>
12104 * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
12107 2012-09-04 Bin Cheng <bin.cheng@arm.com>
12110 * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
12111 of size less than 4 bytes by using macro ARM_NUM_INTS.
12112 (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
12114 2012-09-04 Richard Guenther <rguenther@suse.de>
12116 PR tree-optimization/54458
12117 * tree-ssa-threadupdate.c (thread_through_loop_header): If we
12118 turn the loop into one with multiple latches mark it so.
12120 2012-09-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12123 * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
12125 (avr_allocate_stack_slots_for_args): ...this new static function.
12127 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
12129 * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT
12131 (arm_emit_coreregs_64bit_shift): Likewise.
12133 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
12135 * config/arm/arm.c (arm_evpc_neon_vext): New function.
12136 (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext.
12138 2012-09-04 Oleg Endo <olegendo@gcc.gnu.org>
12141 * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
12142 canonicalization code into...
12143 * (sh_canonicalize_comparison): This new function.
12144 * config/sh/sh-protos.h: Declare it.
12145 * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
12146 * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
12147 always invoke expand_cbranchsi4.
12149 2012-09-03 Andi Kleen <ak@linux.intel.com>
12151 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
12152 addr_offset always.
12154 2012-09-03 Andrew Pinski <apinski@cavium.com>
12157 * tree-if-conv.c (constant_or_ssa_name): New function.
12158 (fold_build_cond_expr): New function.
12159 (predicate_scalar_phi): Use fold_build_cond_expr instead of build3.
12160 (predicate_mem_writes): Likewise.
12162 2012-09-03 Marc Glisse <marc.glisse@inria.fr>
12164 * fold-const.c (fold_ternary_loc): Constant-propagate after
12165 removing dead operands.
12167 2012-09-03 Michael Matz <matz@suse.de>
12169 PR tree-optimization/46590
12170 * tree-cfg.c (gimple_duplicate_sese_region): Don't update
12172 * tree-ssa-loop-ch.c (copy_loop_headers): ... but here.
12174 2012-09-03 Sandra Loosemore <sandra@codesourcery.com>
12176 * doc/invoke.texi: Fix numerous typos and punctuation/grammatical
12177 errors throughout the file. Re-word some awkward sentences and
12180 2012-09-03 Richard Guenther <rguenther@suse.de>
12182 PR tree-optimization/54362
12183 * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR.
12185 2012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12187 * config/s390/s390.c (s390_loadrelative_operand_p): New function.
12188 (s390_check_qrst_address, print_operand_address): Use
12189 s390_loadrelative_operand_p instead of s390_symref_operand_p.
12190 (s390_check_symref_alignment): Accept pointer size alignment for
12192 (legitimize_pic_address): Use load relative on z10 or later.
12194 2012-09-03 Jakub Jelinek <jakub@redhat.com>
12197 * valtrack.c (dead_debug_insert_temp): Drop non-reg uses
12200 2012-09-03 Joseph Myers <joseph@codesourcery.com>
12202 * common.opt (--no-sysroot-suffix): New driver option.
12203 * doc/invoke.texi (--no-sysroot-suffix): Document.
12204 * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not
12205 needing spec processing.
12206 (main): Do not process sysroot suffixes if no_sysroot_suffix.
12208 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
12211 * common/config/sh/sh-common.c: Update copyright years.
12212 (sh_option_init_struct): Delete.
12213 (TARGET_OPTION_INIT_STRUCT): Likewise.
12215 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
12218 * config/sh/sh.md (cmpgeusi_t): Remove N alternative.
12219 Check operands[1] in split condition instead of operands[0].
12222 2012-09-02 Mark Kettenis <kettenis@openbsd.org>
12224 * config.gcc (x86_64-*-openbsd*): New target.
12225 * config.host (*-*-openbsd*): New target.
12226 * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
12227 * config/i386/openbsdelf.h: Remove some superfluous defines and
12228 group things together in a more logical fashion.
12229 (DBX_REGISTER_NUMBER): Provide a
12230 definition that works on both 32-bit and 64-bit targets.
12231 (WCHAR_TYPE_SIZE): Hardcode as 32.
12232 (NO_DOLLAR_IN_LABEL): Remove undef.
12233 (TARGET_DEFAULT): Remove.
12234 (SET_ASM_OP): Remove.
12235 (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
12236 (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
12237 (DWARF2_UNWIND_INFO): Remove define.
12238 (HAVE_ENABLE_EXECUTE_STACK): Define.
12239 * config/host-openbsd.c: New file.
12240 * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
12241 * config/x-openbsd: New file.
12243 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
12245 * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
12246 mode to sh_legitimate_index_p instead of QImode.
12248 2012-09-02 Eric Botcazou <ebotcazou@adacore.com>
12250 PR rtl-optimization/54369
12251 * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
12252 calling dbr_schedule.
12253 * config/sparc/sparc.c (sparc_reorg): Likewise.
12255 2012-09-01 Jakub Jelinek <jakub@redhat.com>
12258 * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
12259 operands[1] is CONST_INT_P, convert it to QImode before printing.
12261 2012-09-01 Andrew Pinski <apinski@cavium.com>
12263 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
12264 A truncate of a memory is just loading the low part of the memory.
12266 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
12270 * config/i386/i386.c (ix86_legitimate_combined_insn): New function.
12271 (TARGET_LEGITIMATE_COMBINED_INSN): New macro.
12273 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
12275 * target.def (legitimate_combined_insn): New target hook.
12276 * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
12277 * doc/tm.texi: Regenerated.
12278 * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
12279 to allow targets to reject combined insn.
12280 * hooks.h (hook_bool_rtx_true): New.
12281 * hooks.c (hook_bool_rtx_true): Ditto.
12283 2012-08-31 Martin Jambor <mjambor@suse.cz>
12285 * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
12286 nonconstant_names after calculate_dominance_info and
12287 loop_optimizer_init.
12289 2012-08-31 Greta Yorsh <Greta.Yorsh@arm.com>
12291 * config/arm/arm.c (arm_expand_epilogue): Remove unused variable
12294 2012-08-31 Martin Jambor <mjambor@suse.cz>
12296 PR middle-end/54409
12297 * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
12298 checking condition.
12300 2012-08-31 Martin Jambor <mjambor@suse.cz>
12302 * ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
12303 (predicate_for_phi_result): Likewise.
12304 (estimate_function_body_sizes): Use the above two functions.
12306 2012-08-31 Martin Jambor <mjambor@suse.cz>
12308 PR middle-end/54394
12309 * ipa-inline-analysis.c (estimate_function_body_sizes): Compute
12310 dominance info and loops whenever optimizing.
12312 2012-08-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12313 Richard Earnshaw <richard.earnshaw@arm.com>
12316 * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
12317 element size. Use elem_type from the formal parameter. New parameter
12319 (neon_expand_args): Adjust call to neon_dereference_pointer.
12321 2012-08-29 Steven Bosscher <steven@gcc.gnu.org>
12323 * cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
12325 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
12328 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
12329 mapping style, add ../lib/mips16.
12330 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
12331 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
12333 2012-08-29 Richard Sandiford <rdsandiford@googlemail.com>
12335 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
12338 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
12340 * config/sh/sh.opt (menable-tas): Rename to mtas.
12341 * doc/invoke.texi (SH options): Likewise.
12342 * config/sh/sync.md: Update comments.
12344 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
12346 * config/sh/iterators.md: New file.
12347 * config/sh/sync.md (I124, I12, i124suffix): Delete. Replace usage
12348 with new iterators QIHISI, QIHI, bw, bwl respectively throughout
12350 * config/sh/sh.md: Include new file iterators.md.
12351 (zero_extendhisi2, zero_extendqisi2): Fold into zero_extend<mode>si2.
12352 (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into
12353 *zero_extend<mode>si2_compact.
12354 (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into
12355 *zero_extend<mode>si2_disp_mem.
12356 (extendhisi2, extendqisi2): Fold into extend<mode>si2.
12357 (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into
12358 *extend<mode>si2_compact_reg.
12359 (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold
12360 into *extend<mode>si2_compact_mem_disp.
12361 (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into
12362 *extend<mode>si2_compact_snd.
12363 (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename
12364 to *movsi_index_disp_load, *movhi_index_disp_load,
12365 *mov<mode>_index_disp_store.
12366 (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov<mode>_reg_reg.
12367 (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into
12368 *mov<mode>_store_mem_disp04.
12369 (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into
12370 *mov<mode>_store_mem_disp12.
12371 (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into
12372 *mov<mode>_load_mem_disp04 and *mov<mode>_load_mem_disp12.
12374 2012-08-29 Martin Jambor <mjambor@suse.cz>
12376 * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not
12377 do_estimate_edge_time.
12379 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
12381 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm
12382 directives, remove #ifndef __mips16 guards.
12383 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
12384 mapping style, add ../lib/mips16.
12385 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
12386 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
12388 2012-08-28 Walter Lee <walt@tilera.com>
12389 * confg/tilegx/tilegx.md: Fix code style.
12390 (*zero_extendsidi_truncdisi): Fix typo.
12391 * config/tilegx/tilegx.c: Fix code style.
12392 (tilegx_function_profiler): Fix typo.
12394 2012-08-28 Walter Lee <walt@tilera.com>
12396 * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
12397 * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
12398 (CRT_CALL_STATIC_FUNCTION): Define.
12399 * config/tilegx/predicates.md (const_last_symbolic_operand):
12400 Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
12401 UNSPEC_HW2_LAST_PLT_PCREL.
12402 (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
12403 UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
12404 * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
12405 and renumber the constants that follow.
12406 (UNSPEC_HW1_PCREL): Ditto.
12407 (UNSPEC_HW2_LAST_PCREL): Ditto.
12408 (UNSPEC_HW0_PLT_PCREL): Define.
12409 (UNSPEC_HW1_PLT_PCREL): Define.
12410 (UNSPEC_HW1_LAST_PLT_PCREL): Define.
12411 (UNSPEC_HW2_LAST_PLT_PCREL): Define.
12412 (mov_large_pcrel_step1): Define.
12413 (mov_large_pcrel_step2): Define.
12414 (mov_large_pcrel_step3): Define.
12415 (mov_large_pcrel_step4): Define.
12416 (mov_plt_pcrel_step1): Define.
12417 (mov_plt_pcrel_step2): Define.
12418 (mov_plt_pcrel_step3): Define.
12419 (mov_plt_pcrel_step1_32bit): Define.
12420 (mov_plt_pcrel_step2_32bit): Define.
12421 (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
12422 (call_value): Ditto.
12423 * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
12424 (mcmodel): New option.
12425 (enum cmodel): Define.
12426 (CM_SMALL): Define.
12427 (CM_LARGE): Define.
12428 * config/tilegx/tilegx-opts.h: New file.
12429 * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
12431 (tilegx_compute_pcrel_plt_address): Declare.
12432 * config/tilegx/tilegx.c (tilegx_option_override): Handle
12434 (tilegx_function_ok_for_sibcall): Ditto.
12435 (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
12436 and don't declare static. Handle tilegx_cmodel.
12437 (tilegx_compute_pcrel_plt_address): Define.
12438 (tilegx_legitimize_pic_address): Rename calls to
12439 compute_pcrel_address.
12440 (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
12441 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
12442 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
12443 (load_pic_register): Rename call to compute_pcrel_address.
12444 (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
12445 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
12446 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
12448 2012-08-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12450 * sched-deps.c (add_dependence_list_and_free): Simplify.
12451 (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free
12452 lists when add_dependence_list_and_free doesn't free them.
12454 2012-08-27 Uros Bizjak <ubizjak@gmail.com>
12457 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
12458 true for TARGET_64BIT or !flag_pic.
12459 * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
12460 (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
12461 to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator.
12462 Add insn constraint. Conditionally emit xchg asm insns.
12463 (atomic_compare_and_swap<mode>): Update calls. Check only
12464 cmpxchg8b_pic_memory_operand in memory address fixup.
12465 (DCASMODE): Remove.
12466 (CASHMODE): Rename from DCASHMODE.
12467 (doublemodesuffix): Update modes.
12468 (regprefix): New mode attribute.
12470 (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
12471 <UNSPECV_CMPXCHG>: New constant.
12472 (atomic_compare_and_swap<mode>_1): Rename from
12473 atomic_compare_and_swap_single<mode>. Update calls and
12474 unspec_volatile constants.
12475 (atomic_compare_and_swap<mode>_doubleword): Rename from
12476 atomic_compare_and_swap_double<mode>. Update calls and
12477 unspec_volatile constants.
12479 2012-08-27 Walter Lee <walt@tilera.com>
12481 * doc/md.texi (TILE-Gx): Fix typo.
12483 2012-08-27 Walter Lee <walt@tilera.com>
12485 * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
12486 * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
12488 2012-08-27 Walter Lee <walt@tilera.com>
12490 * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
12491 (insn_bfins): Delete.
12493 2012-08-27 Walter Lee <walt@tilera.com>
12495 * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
12496 atomic_exchange_bare<mode>,
12497 atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
12498 * config/tilegx/tilegx-generic.md (X1_remote): New
12500 * config/tilegx/tilegx.md (type): Add X1_remove.
12501 (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
12502 insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
12503 insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
12506 2012-08-27 Andreas Schwab <schwab@linux-m68k.org>
12508 * gdbinit.in: Fix syntax of skip command.
12510 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
12512 * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
12513 SYMBOL_REF SET_SRCs.
12515 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
12517 * config/mips/mips.c (vr4130_align_insns): Don't simulate
12518 ghost instructions. Assert that the required instructions exist.
12520 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12522 * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
12524 * config/mips/mips.c (machine_function): Add next_fcc.
12525 (mips_output_move): Remove handling of fcc moves.
12526 (mips_allocate_fcc): New function.
12527 (mips_emit_compare, mips_expand_vcondv2sf): Use it.
12528 (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
12529 Remove special case for CCmode reloads.
12530 (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
12531 the result a fixed operand.
12532 * config/mips/mips.md (move_type): Remove lui_movf.
12533 (type, length): Remove references to it.
12534 (movcc, reload_incc, reload_outcc): Delete.
12536 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12538 * config/mips/mips.c (mips_has_long_branch_p): New function,
12540 (mips_expand_ghost_gp_insns): ...here. Look inside sequences.
12542 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12544 * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
12546 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12548 * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
12550 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12552 * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
12553 to the size cost of multiplication.
12555 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12557 * doc/install.texi (Specific): Clarify what needs to be added to
12560 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12562 * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
12563 and NO_DOT_IN_LABEL from here...
12564 (Label Output): ...to here.
12565 * doc/tm.texi: Regenerate.
12567 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12569 * doc/invoke.texi (C++ Dialect Options): Add missing space.
12571 2012-08-25 Eric Botcazou <ebotcazou@adacore.com>
12573 PR rtl-optimization/54088
12574 * jump.c (delete_related_insns): Robustify latest change.
12576 2012-08-25 Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
12578 * doc/extend.texi (__atomic Builtins): Remove space before comma.
12580 2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
12581 Andrew Pinski <apinski@cavium.com>
12583 * config/mips/mips.h (CASE_VECTOR_MODE): For not
12584 TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
12585 (CASE_VECTOR_SHORTEN_MODE): Likewise.
12587 2012-08-25 Uros Bizjak <ubizjak@gmail.com>
12589 * config/i386/i386.h (FP_REG_P): Remove macro.
12590 (FP_REGNO_P): Ditto.
12591 (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
12592 (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
12593 (ANY_FP_REGNO_P): Ditto.
12594 (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
12595 * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
12596 instead of FP_REGNO_P.
12597 (ix86_hard_regno_mode_ok): Ditto.
12598 * config/i386/predicates.md (fp_register_operand): Ditto.
12599 (register_and_not_fp_reg_operand): Ditto.
12600 * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
12603 * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
12605 2012-08-24 Jason Merrill <jason@redhat.com>
12607 * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
12608 on TREE_VEC or SSA_NAME.
12610 2012-08-24 Jakub Jelinek <jakub@redhat.com>
12613 * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
12614 if init is a CONSTRUCTOR.
12616 2012-08-24 Steven Bosscher <steven@gcc.gnu.org>
12618 * tree-ssa-live.c (dump_var_map): Do not dump the partition
12619 map of virtual operands.
12621 2012-08-24 Yuri Rumyantsev <ysrumyan@gmail.com>
12623 * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
12624 case for Atom processor.
12626 2012-08-24 Simon Baldwin <simonb@google.com>
12628 * dwarf2out.c (gen_producer_string): Omit command line switch if
12629 CL_NO_DWARF_RECORD flag set.
12630 * opts.h (CL_NO_DWARF_RECORD): New.
12631 * opt-functions.awk (switch_flags): Add NoDWARFRecord.
12632 * doc/options.texi: Document NoDWARFRecord option flag.
12634 2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
12637 * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
12638 frame_pointer_rtx for based_loc_descr.
12640 2012-08-24 Martin Jambor <mjambor@suse.cz>
12642 * predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl
12643 instead of current_function_decl, use profile_status_for_function and
12644 ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
12645 (maybe_hot_count_p): New parameter fun, use
12646 profile_status_for_function instead of its cfun_variant.
12647 (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
12649 (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
12650 maybe_hot_frequency_p.
12651 (probably_never_executed_bb_p): New parameter fun, use its decl
12652 instead of current_function_decl.
12653 (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
12654 (rtl_profile_for_bb): Likewise.
12655 (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
12656 probably_never_executed_bb_p.
12657 * tree-ssa-operands.c (ssa_operands_active): New operator fun. Use it
12659 (update_stmt_operands): Pass cfun as an argument of
12660 ssa_operands_active.
12661 (swap_tree_operands): Likewise.
12662 * gimple-iterator.c (update_modified_stmt): Likewise.
12663 (update_modified_stmts): Likewise.
12664 * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
12665 * tree-ssa.c (delete_tree_ssa): Likewise.
12666 * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
12667 (push_to_next_round_p): Likewise.
12668 (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
12669 * cfg.c: Inlude tree.h.
12670 (check_bb_profile): Use profile_status_for_function,
12671 EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
12672 DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
12674 (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
12675 maybe_hot_bb_p and probably_never_executed_bb_p.
12676 * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
12677 DECL_STRUCT_FUNCTION (current_function_decl) is not NULL. Pass it to
12678 dump_histograms_for_stmt.
12679 (dump_gimple_mem_ops): Pass
12680 DECL_STRUCT_FUNCTION (current_function_decl)
12681 as an argument to dump_gimple_mem_ops.
12682 * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
12683 Do not change cfun. Change and restore current_function_decl.
12684 * Makefile.in (cfg.o): Include TREE_H in dependencies.
12686 2012-08-24 Georg-Johann Lay <avr@gjlay.de>
12689 * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
12690 * avr/avr-fixed.md: New file.
12691 * avr/avr.md: Include it.
12693 (adjust_len): Add: minus, minus64, ufract, sfract.
12694 (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
12695 (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
12696 (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
12697 (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
12698 subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
12699 cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
12700 (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
12701 ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
12702 *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
12703 16-bit modes in ALL2.
12704 (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
12705 (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
12706 ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
12707 *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
12708 32-bit modes in ALL4.
12709 * avr-dimode.md (ALL8): New mode iterator.
12710 (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
12711 subdi3_const_insn, cbranchdi4, compare_di2,
12712 compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
12713 ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
12714 all 64-bit modes in ALL8.
12715 * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
12716 (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
12717 * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
12718 (avr_fixed_point_supported_p): ...this new static function.
12719 (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
12720 (avr_build_builtin_va_list): ...this new static function.
12721 (avr_adjust_type_node): New static function.
12722 (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
12723 (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
12724 pseudo instead of gen_rtx_MINUS.
12725 (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
12726 (notice_update_cc): Handle: CC_MINUS.
12727 (output_movqi): Generalize to handle respective fixed-point modes.
12728 (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
12729 (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
12730 (avr_assemble_integer): Ditto.
12731 (output_reload_in_const, output_reload_insisf): Ditto.
12732 (avr_compare_pattern): Skip all modes > 4 bytes.
12733 (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
12734 (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
12735 (avr_to_int_mode): New function.
12736 (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
12737 ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
12738 * config/avr/predicates.md (const0_operand): Allow const_fixed.
12739 (const_operand, const_or_immediate_operand): New.
12740 (nonmemory_or_const_operand): New.
12741 * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
12743 * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
12745 2012-08-23 Kenneth Zadeck <zadeck@naturalbridge.com>
12747 * alias.c (rtx_equal_for_memref_p): Convert constant cases.
12748 * combine.c (find_single_use_1, mark_used_regs_combine): Convert
12750 * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
12751 count_reg_usage): Convert constant cases.
12752 * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
12753 (cselib_subst_to_values): Convert constant cases.
12754 * df-scan.c (df_uses_record): Ditto.
12755 * dse.c (const_or_frame_p): Convert case statements to explicit
12756 if-then-else using mode classes.
12757 * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
12758 * explow.c (convert_memory_address_addr_space): Ditto.
12759 * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
12760 * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
12761 * ira.c (equiv_init_varies_p, contains_replace_regs,
12762 memref_referenced_p, rtx_moveable_p): Ditto.
12763 * jump.c (mark_jump_label_1): Remove constant cases.
12764 (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
12765 * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
12766 invariant_expr_equal_p): Convert to CASE_CONST_ANY.
12767 * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
12768 * reginfo.c (reg_scan_mark_refs): Ditto.
12769 * regrename.c (scan_rtx): Ditto.
12770 * reload1.c (eliminate_regs_1, elimination_effects,
12771 scan_paradoxical_subregs): Ditto.
12772 * reload.c (operands_match_p, subst_reg_equivs): Ditto.
12773 * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
12774 * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
12775 (reg_mentioned_p, modified_between_p, modified_in_p)
12776 (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
12777 inequality_comparisons_p, computed_jump_p_1): Ditto.
12778 * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
12779 * sched-deps.c (sched_analyze_2): Ditto.
12780 * valtrack.c (cleanup_auto_inc_dec): Ditto.
12781 * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
12782 CASE_CONST_ANY): New macros.
12784 2012-08-23 Julian Brown <julian@codesourcery.com>
12785 Sandra Loosemore <sandra@codesourcery.com>
12787 * config/mips/mips.md
12788 (UNSPEC_CASESI_DISPATCH): New.
12789 (MIPS16_T_REGNUM): New constant.
12790 (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
12792 (casesi_internal_mips16_<mode>): New.
12793 * config/mips/mips.c (mips16_split_long_branches): Adjust test
12794 to ignore casesi jump tables.
12795 * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
12797 (CASE_VECTOR_MODE): Use SImode unconditionally.
12798 (CASE_VECTOR_SHORTEN_MODE): Define.
12799 (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
12800 when necessary for MIPS16_SHORT_JUMP_TABLES.
12802 2012-08-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12804 * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
12806 2012-08-23 H.J. Lu <hongjiu.lu@intel.com>
12809 * doc/invoke.texi: Add -da and remove -dm.
12811 2012-08-23 Richard Guenther <rguenther@suse.de>
12813 * tree-vect-stmts.c (vect_finish_stmt_generation): Update
12816 2012-08-23 Jakub Jelinek <jakub@redhat.com>
12818 * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
12820 2012-08-23 Mingjie Xing <mingjie.xing@gmail.com>
12822 * doc/gty.texi: Fix typo.
12824 2012-08-23 Richard Guenther <rguenther@suse.de>
12826 * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
12827 (find_uses_to_rename_use): Likewise.
12828 (find_uses_to_rename_bb): Likewise.
12829 (find_uses_to_rename_stmt): Walk over all operands.
12831 2012-08-22 Oleg Endo <olegendo@gcc.gnu.org>
12834 * config/sh/predicates (p27_rshift_count_operand,
12835 not_p27_rshift_count_operand): New predicates.
12836 * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
12837 sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
12838 case when shift amount is 31.
12839 (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
12840 * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
12842 (ashlsi_c): Rename to shll. Adapt calls to gen_ashlsi_c throughout
12844 (lshrsi3): Remove clobber from expander. Use shift_count_operand
12845 instead of nonmemory_operand predicate for second operand. Add
12846 handling of case lshrsi3_n_clobbers_t.
12847 (lshrsi3_k): Use p27_rshift_count_operand for second operand.
12848 (lshrsi3_d): Make insn_and_split. Split dynamic shift to constant
12849 shift sequences if beneficial.
12850 (lshrsi3_n): Make insn_and_split. Split constant shift sequence to
12851 dynamic shift if beneficial.
12852 (lshrsi3_n_clobbers_t): New insn_and_split.
12853 (lshrsi3_m): Delete.
12855 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
12857 * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
12859 * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
12860 or rather a lack thereof.
12861 (init_alias_analysis): Propagate the latest information across
12862 the CFG in topological order to propagate as far as possible in
12863 each iteration. Ignore debug insns.
12865 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
12867 * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
12869 * config/i386/i386.c (flag_opts): Add -mlong-double-64.
12870 (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
12872 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
12873 TARGET_LONG_DOUBLE_64 is true.
12874 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
12875 (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
12877 * config/i386/i386.opt (mlong-double-80): New option.
12878 (mlong-double-64): Likewise.
12880 * config/i386/i386-c.c (ix86_target_macros): Define
12881 __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
12883 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
12886 * config/i386/i386.c (ix86_split_to_parts): Replace
12887 REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
12889 2012-08-22 Richard Guenther <rguenther@suse.de>
12891 * tree-vectorizer.c (vectorize_loops): Do not call
12892 mark_virtual_operands_for_renaming.
12893 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
12894 Do not update SSA form here.
12896 2012-08-22 Dodji Seketeli <dodji@redhat.com>
12898 * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
12900 2012-08-22 Richard Guenther <rguenther@suse.de>
12902 PR tree-optimization/46590
12903 * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
12904 counter output argument.
12905 (walk_non_aliased_vuses): Add alias query counter argument
12906 to the walker callback.
12907 * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
12908 output argument and count alias queries.
12909 (get_continuation_for_phi_1): Likewise.
12910 (get_continuation_for_phi): Likewise.
12911 (walk_non_aliased_vuses): Add alias query counter argument
12912 to the walker callback and allow it to abort the walk by
12914 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12915 * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
12916 counter parmeter, abort walk if that is bigger than
12917 --param sccvn-max-alias-queries-per-access.
12918 * params.def (sccvn-max-alias-queries-per-access): New param.
12919 * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
12921 2012-08-22 Richard Guenther <rguenther@suse.de>
12923 * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
12924 * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
12925 instead of gcc_assert.
12926 (mark_block_for_update): Likewise.
12927 (add_new_name_mapping): Likewise.
12928 (mark_def_sites): Likewise.
12929 (insert_phi_nodes_for): Likewise.
12930 (rewrite_debug_stmt_uses): Likewise.
12931 (rewrite_stmt): Likewise.
12932 (maybe_register_def): Likewise.
12933 (rewrite_update_phi_arguments): Likewise.
12934 (rewrite_update_enter_block): Likewise.
12935 (mark_def_interesting): Likewise.
12936 (prepare_def_site_for): Likewise.
12937 (insert_updated_phi_nodes_for): Likewise.
12939 2012-08-22 Jakub Jelinek <jakub@redhat.com>
12941 * tree-vect-loop.c (vect_transform_loop): Initialize
12942 check_profitability to false.
12944 * tree-predcom.c (try_combine_chains): Free the worklist vector
12947 2012-08-22 Marc Glisse <marc.glisse@inria.fr>
12949 PR tree-optimization/54317
12950 * tree-vrp.c (extract_range_from_binary_expr_1): Test for
12951 double_int overflow.
12954 2012-08-22 Jakub Jelinek <jakub@redhat.com>
12956 * tree-vrp.c (find_assert_locations): Skip also edges
12957 from the entry block.
12959 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
12960 free_stmt_vec_info on orig_cond after gsi_removing it.
12961 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
12962 free body_cost_vec vector.
12963 (vect_analyze_data_refs): If gather is unsuccessful,
12964 free_data_ref (dr).
12965 * tree-inline.c (tree_function_versioning): Free
12966 old_transforms_to_apply vector.
12968 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
12970 * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
12971 of this a VEC and add a bitmap obstack.
12972 (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
12974 (ssa_conflicts_delete): Free the VEC and release the obstack.
12975 (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
12976 ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
12977 (truct live_track_d): Add another bitmap obstack here.
12978 (new_live_track): Initialize it and use it for all bitmaps.
12979 (delete_live_track): Don't free the bitmaps one at a time, just
12980 release the obstack.
12981 (create_outofssa_var_map): Fix to conform to GCC code style rules.
12983 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
12985 * config/m32c/constraints.md: New file.
12986 * config/m32c/t-m32c (MD_FILES): Add constraints.
12987 * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
12988 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
12989 (m32c_reg_class_from_constraint): Delete.
12990 (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
12991 (m32c_matches_constraint_p): Declare.
12992 * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
12993 (REG_CLASS_FROM_CONSTRAINT): Delete.
12994 (CONST_OK_FOR_CONSTRAINT_P): Delete.
12995 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
12996 (EXTRA_CONSTRAINT_STR): Delete.
12997 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
12998 * config/m32c/m32c.c: Include tm-constrs.h
12999 (m32c_reg_class_from_constraint): Delete.
13000 (m32c_const_ok_for_constraint_p): Delete.
13001 (m32c_extra_constraint_p2): Rename to...
13002 (m32c_matches_constraint_p): ...this. Make it return bool. Tweak
13004 (m32c_extra_constraint_p): Delete.
13005 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
13006 (m32c_split_move): Use satisfies_constraint_Ss.
13007 * config/m32c/predicates.md (memsym_operand): Use
13008 satisfies_constraint_Si.
13009 (memimmed_operand): Use satisfies_constraint_Sp.
13010 (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
13011 (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
13012 (m32c_1mask8_operand): Use satisfies_constraint_ImB.
13013 (m32c_1mask16_operand): Use satisfies_constraint_Imw.
13015 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
13017 * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
13018 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13019 (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
13020 * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
13021 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
13022 * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
13023 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
13025 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
13027 * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
13028 cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
13029 truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
13030 ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
13031 call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
13032 sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
13033 casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
13034 sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
13035 stack_protect_set_di_media, stack_protect_test_si,
13036 stack_protect_test_si_media, stack_protect_test_di_media): Convert to
13037 multi-line asm output strings.
13038 (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
13040 (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
13041 call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
13042 bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13043 bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
13044 Use tab char instead of '\\t'.
13045 (iordi3): Use braced string.
13046 (*movsi_pop): Use tab chars instead of spaces.
13048 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
13051 * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
13054 2012-08-21 H.J. Lu <hongjiu.lu@intel.com>
13056 PR middle-end/54332
13057 * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
13058 inside the insn traversal loop.
13060 * vec.h (vec_reserve): Remove the stack allocation check.
13062 2012-08-21 Marc Glisse <marc.glisse@inria.fr>
13064 * fold-const.c (fold_ternary_loc): Detect identity permutations.
13065 Canonicalize permutations more.
13066 * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
13067 (simplify_permutation): Likewise.
13068 (ssa_forward_propagate_and_combine): Call it.
13070 2012-08-21 Richard Guenther <rguenther@suse.de>
13072 * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
13073 the affine expansion cache.
13074 * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
13076 (free_expr_hash_elt): ... this one.
13077 (record_cond): Properly free a not needed hashtable element.
13078 (lookup_avail_expr): Likewise.
13079 * tree-into-ssa.c (init_ssa_renamer): Specify a free function
13080 for the var_infos hashtable.
13081 (update_ssa): Likewise.
13083 2012-08-21 Richard Guenther <rguenther@suse.de>
13085 * alloc-pool.c (pool_alloc): Fix valgrind annotation.
13086 * tree.h: Fix typo and complete flags documentation.
13088 2012-08-21 Richard Guenther <rguenther@suse.de>
13090 * tree.h (struct tree_base): Add union to make it possible to
13091 re-use the upper 4 bytes for tree codes that do not need as
13092 many flags as others. Move visited and default_def_flag to
13093 common bits section in exchange for saturating_flag and
13094 unsigned_flag. Add SSA name version and tree vec length
13096 (struct tree_vec): Remove length field here.
13097 (struct tree_ssa_name): Remove version field here.
13099 2012-08-20 Jan Hubicka <jh@suse.cz>
13102 * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
13104 (edge_badness): Likewise.
13105 * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
13106 (inline_summary): Add loop_iterations.
13107 * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
13108 (dump_inline_hints): Dump loop_iterations.
13109 (reset_inline_summary): Free loop_iterations.
13110 (inline_node_duplication_hook): Update loop_iterations.
13111 (dump_inline_summary): Dump loop_iterations.
13112 (will_be_nonconstant_expr_predicate): New function.
13113 (estimate_function_body_sizes): Analyze loops.
13114 (estimate_node_size_and_time): Set hint loop_iterations.
13115 (inline_merge_summary): Merge loop iterations.
13116 (inline_read_section): Stream in loop_iterations.
13117 (inline_write_summary): Stream out loop_iterations.
13119 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
13122 * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
13123 (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
13124 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
13125 * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
13127 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
13130 * config/sh/sh.md (*cset_zero): New insns.
13132 2012-08-20 Mark Wielaard <mjw@redhat.com>
13134 * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
13135 * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
13136 (add_AT_low_high_pc): New function.
13137 (AT_lbl): Handle dw_val_class_high_pc.
13138 (print_die): Likewise.
13139 (attr_checksum): Likewise.
13140 (attr_checksum_ordered): Likewise.
13141 (same_dw_val_p): Likewise.
13142 (size_of_die): Likewise.
13143 (value_format): Likewise.
13144 (output_die): Likewise.
13145 (gen_subprogram_die): Use add_AT_low_high_pc.
13146 (add_high_low_attributes): Likewise.
13147 (dwarf2out_finish): Likewise.
13149 2012-08-20 Jakub Jelinek <jakub@redhat.com>
13151 PR rtl-optimization/54294
13152 * fwprop.c (all_uses_available_at): Ignore debug insns in between
13153 def_insn and target_insn when checking whether the shortcut is
13156 2012-08-20 Eric Botcazou <ebotcazou@adacore.com>
13158 * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
13160 2012-08-20 Patrick Marlier <patrick.marlier@gmail.com>
13162 PR middle-end/53992
13163 * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
13165 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
13168 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
13169 declaration and setter.
13171 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
13174 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
13176 (is_widening_mult_rhs_p): Use it.
13178 2012-08-20 Joseph Myers <joseph@codesourcery.com>
13180 * configure.ac (ffs): Check for declaration.
13181 * configure, config.in: Regenerate.
13183 2012-08-20 Richard Guenther <rguenther@suse.de>
13185 * tree-flow.h (register_new_name_mapping): Remove.
13186 * tree-into-ssa.c (register_new_name_mapping): Likewise.
13187 (add_new_name_mapping): Do not push/pop timevar here.
13188 (create_new_def_for): Instead do it here. Initialize
13189 update-ssa here, handle a NULL def.
13190 * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
13192 2012-08-20 Richard Guenther <rguenther@suse.de>
13194 PR tree-optimization/54327
13195 * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
13196 if the use is registered for SSA update.
13198 2012-08-20 Jakub Jelinek <jakub@redhat.com>
13200 PR tree-optimization/54321
13201 * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
13202 as second argument to tree_low_cst call on val2.
13204 2012-08-20 Richard Guenther <rguenther@suse.de>
13206 * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
13208 2012-08-20 Richard Guenther <rguenther@suse.de>
13211 * genoutput.c (note_constraint): Properly use CONST_CAST.
13213 2012-08-19 Nick Clifton <nickc@redhat.com>
13216 * config/arm/mmintrin.h: Remove spurious #endif.
13218 2012-08-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13220 * config/avr/avr-log.c (avr_log_vadump): Properly use
13221 int-promoted enum values.
13222 * config/avr/avr.h (struct mcu_type_s): Change `arch' from
13223 int to enum avr_arch.
13224 * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
13226 2012-08-18 Jan Hubicka <jh@suse.cz>
13229 * ipa-inline.c (want_inline_small_function_p): Bypass
13230 inline limits for hinted functions.
13231 (edge_badness): Dump hints; decrease badness for hinted funcitons.
13232 * ipa-inline.h (enum inline_hints_vals): New enum.
13233 (inline_hints): New type.
13234 (edge_growth_cache_entry): Add hints.
13235 (dump_inline_summary): Update.
13236 (dump_inline_hints): Declare.
13237 (do_estimate_edge_hints): Declare.
13238 (estimate_edge_hints): New inline function.
13239 (reset_edge_growth_cache): Update.
13240 * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
13241 * ipa-inline-analysis.c (dump_inline_hints): New function.
13242 (estimate_edge_devirt_benefit): Return true when function should be
13244 (estimate_calls_size_and_time): New hints argument; set it when
13245 devritualization happens.
13246 (estimate_node_size_and_time): New hints argument.
13247 (do_estimate_edge_time): Cache hints.
13248 (do_estimate_edge_growth): Update.
13249 (do_estimate_edge_hints): New function
13251 2012-08-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13253 PR middle-end/53823
13254 * expmed.c (expand_mult): Skip synth_mult for negative coefficients
13255 if the mode is larger than a wide int and it is too costly to multiply
13256 by a positive multiplier and negate the result.
13258 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
13260 * sparseset.c (sparseset_alloc): Use non-clearing allocation. Tell
13261 valgrind not to worry about reading from unitialized memory.
13263 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
13265 PR middle-end/54313
13266 * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
13267 freed when its obstack is release.
13269 2012-08-18 Andrew Pinski <pinskia@gmail.com>
13271 * alloc-pool.c (pool_alloc): Add valgrind markers.
13272 (pool_free): Likewise.
13274 2012-08-17 Walter Lee <walt@tilera.com>
13276 * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
13277 (FEEDBACK_ENTER): Define.
13278 (FEEDBACK_REENTER): Define.
13279 (FEEDBACK_ENTRY): Define.
13280 * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
13281 (FEEDBACK_ENTER): Define.
13282 (FEEDBACK_REENTER): Define.
13283 (FEEDBACK_ENTRY): Define.
13285 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
13286 Gary Funck <gary@intrepid.com>
13289 * config/i386/i386.c (ix86_member_type_forces_blk): New function.
13290 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
13292 * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
13294 2012-08-17 Marc Glisse <marc.glisse@inria.fr>
13296 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
13299 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
13301 * stor-layout.c (compute_record_mode): Replace
13302 MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
13303 (layout_type): Likewise.
13305 * system.h: Poison MEMBER_TYPE_FORCES_BLK.
13307 * target.def (member_type_forces_blk): New target hook.
13309 * targhooks.c (default_member_type_forces_blk): New.
13310 * targhooks.h (default_member_type_forces_blk): Likewise.
13312 * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
13313 (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
13314 * doc/tm.texi: Regenerated.
13316 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
13318 * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
13319 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
13321 * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
13322 (rs6000_member_type_forces_blk): New function.
13324 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
13326 * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
13327 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
13329 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
13331 2012-08-17 Diego Novillo <dnovillo@google.com>
13334 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
13335 * config.in: Regenerate.
13336 * configure: Regenerate.
13337 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
13339 2012-08-17 Richard Guenther <rguenther@suse.de>
13341 * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
13342 (struct bitmap_head_def): GTY skip current field.
13344 2012-08-17 Steven Bosscher <steven@gcc.gnu.org>
13346 PR middle-end/54146
13347 * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
13348 (memref_free): Don't free the bitmaps individually here.
13349 (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
13350 (analyze_memory_references): Likewise.
13351 (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
13352 (tree_ssa_lim_finalize): Release it.
13353 * dse.c (dse_bitmap_obstack): New bitmap obstack.
13354 (dse_obstack): New obstack.
13355 (get_group_info): Allocate the bitmaps on the new bitmap obstack.
13356 (dse_step0): Allocate the scratch bitmap on reg_obstack. Initialize
13357 the new bitmap obstack and normal obstack. Use XNEWVEC for bb_table.
13358 (record_store): Allocate regs_set on reg_obstack.
13359 (dse_step1): Allocate regs_live on reg_obstack.
13360 (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
13362 (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
13363 (dse_step3): Likewise.
13364 (dse_confluence_0): Likewise.
13365 (dse_confluence_n): Likewise.
13366 (dse_transfer_function): Likewise.
13367 (dse_step7): Destroy the new obstacks, and everything allocated on
13368 them, in one big sweep.
13369 (rest_of_handle_dse): Update.
13370 * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
13371 (add_stack_var_conflict): Allocate bitmaps on it.
13372 (add_scope_conflicts_1): Likewise.
13373 (add_scope_conflicts): Likewise.
13374 (update_alias_info_with_stack_vars): Likewise.
13375 (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
13376 Initialize the new bitmap obstack.
13377 (fini_vars_expansion): Release it.
13378 (estimated_stack_frame_size): Use init_vars_expansion to set things up
13379 and always clean up at the end.
13380 (expand_used_vars): Do the TREE_USED trickery here. Always call
13381 fini_vars_expansion.
13382 * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
13383 arrays of bitmap_head to avoid one indirection per bitmap access.
13384 (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
13385 make_live_on_entry): Update.
13386 * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
13387 (liveness_bitmap_obstack): New bitmap obstack.
13388 (remove_unused_locals): Use it to allocate all bitmaps on. Update
13389 for livein/liveout changes in tree-ssa-live.h.
13390 (delete_tree_live_info): Release the bitmap obstack.
13391 (loe_visit_block, live_worklist, set_var_live_on_entry,
13392 calculate_live_on_exit, dump_live_info): Update.
13393 (calculate_live_ranges): Initialize the bitmap.
13394 * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
13395 (new_temp_expr_table): Allocate bitmap on it.
13396 (make_dependent_on_partition, add_to_partition_kill_list,
13397 add_dependence, process_replaceable): Likewise.
13398 (find_replaceable_exprs): Initialize and release the new obstack here.
13399 * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
13400 for out_of_date_transfer_functions on df_bitmap_obstack.
13401 (df_live_add_problem): Likewise.
13402 (df_chain_add_problem): Likewise.
13403 (df_word_lr_add_problem): Likewise.
13405 2012-08-17 Nick Clifton <nickc@redhat.com>
13407 * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
13408 (branch_true): Likewise.
13409 (branch_false): Likewise.
13411 * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
13413 * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
13414 comparison and label.
13415 (branch_zero): Likewise.
13416 (branch_zero_inverted): Likewise.
13417 (branch_equality): Likewise.
13418 (branch_equality_inverted): Likewise.
13419 (extend-and-compare): Disable until reload issues can be resolved.
13420 * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
13422 (iq2000_function_arg_advance): Remove CONST_CAST2.
13424 * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
13427 2012-08-17 Georg-Johann Lay <avr@gjlay.de>
13429 * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
13430 gen-avr-mmcu-texi.c.
13432 2012-08-17 Richard Earnshaw <rearnsha@arm.com>
13434 * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
13435 * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
13438 2012-08-17 Richard Guenther <rguenther@suse.de>
13440 * hash-table.h (class hash_table): Use a descriptor template
13441 argument instead of decomposed element type and support functions.
13442 (struct pointer_hash): New generic typed pointer-hash.
13443 (struct typed_free_remove, struct typed_noop_remove): Generic
13444 hash_table support pieces.
13445 * coverage.c (struct counts_entry): Add hash_table support members.
13446 * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
13447 * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
13448 SSA name by SSA_NAME_VAR hash.
13449 (coalesce_ssa_name): Use it.
13450 * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
13451 (expression_to_id): Adjust.
13452 (struct expr_pred_trans_d): Add hash_table support.
13453 (phi_translate_table): Adjust.
13454 (phi_trans_lookup): Likewise.
13455 (phi_trans_add): Likewise.
13456 (do_regular_insertion): Likewise.
13457 * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
13458 (same_succ_htab): Adjust.
13459 (find_same_succ_bb): Likewise.
13460 (find_same_succ): Likewise.
13461 (update_worklist): Likewise.
13462 * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
13464 (redirection_data): Adjust.
13466 2012-08-17 Richard Guenther <rguenther@suse.de>
13468 * params.def (integer-share-limit): Decrease from 256 to 251,
13471 2012-08-17 Richard Guenther <rguenther@suse.de>
13473 * tree-sra.c (modify_function): Free redirect_callers vector.
13474 * ipa-split.c (split_function): Free args_to_pass vector.
13475 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
13476 body_cost_vec properly.
13477 (vect_enhance_data_refs_alignment): Likewise.
13478 * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
13480 (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
13481 * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
13482 (vect_analyze_slp_instance): Free everything.
13483 (destroy_bb_vec_info): Free the SLP instances.
13485 2012-08-17 Iain Sandoe <iain@codesourcery.com>
13487 * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
13490 2012-08-17 Jakub Jelinek <jakub@redhat.com>
13492 * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
13494 2012-08-16 Sandra Loosemore <sandra@codesourcery.com>
13496 * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
13497 (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
13498 (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
13499 (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
13500 (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
13502 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
13505 * config/sh/sh.md (addc): Add commutative modifier.
13506 (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
13508 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
13511 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
13512 potential T_REG clobber. Convert zero extending split to
13515 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
13518 * config/sh/sh.md (ashlsi3_d): Do not split if it would result
13519 in a T_REG clobber. Correct comment.
13520 (ashlsi3_n): Correct comment.
13522 2012-08-16 Hans-Peter Nilsson <hp@axis.com>
13524 PR middle-end/54261
13525 * optabs.c (expand_atomic_fetch_op): Save and restore code when
13526 retrying after failed attempt.
13528 2012-08-16 Yuri Rumyantsev <ysrumyan@gmail.com>
13530 * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
13531 additional argument.
13532 * config/i386/i386.md (ix86_split_lea_for_addr) : Add
13533 additional argument curr_insn.
13534 * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
13535 register first, depending on their defintion distances.
13536 (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
13538 (find_nearest_reg-def): New function. Find register with
13539 nearest definition.
13541 2012-08-16 Walter Lee <walt@tilera.com>
13543 * config.gcc (tilegx-*-linux*): Add feedback.h.
13544 (tilepro-*-linux*): Likewise.
13545 * config/tilegx/feedback.h: New file.
13546 * config/tilepro/feedback.h: New file.
13548 2012-08-16 Diego Novillo <dnovillo@google.com>
13553 * double-int.h: Move including of gmp.h ...
13554 * system.h: ... here.
13555 * realmpfr.h: Do not include gmp.h.
13556 * tree-ssa-loop-niter.c: Do not include gmp.h.
13558 2012-08-16 Segher Boessenkool <segher@kernel.crashing.org>
13560 * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
13562 2012-08-16 Richard Guenther <rguenther@suse.de>
13564 PR middle-end/54146
13565 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
13567 * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
13568 * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
13569 * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
13570 * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
13571 * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
13572 (tree_ssa_lim_finalize): Free all mem_refs.
13573 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
13574 scc when bailing out.
13575 * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
13576 * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
13577 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
13578 FOR_EACH_LOOP_BREAK.
13580 2012-08-16 Diego Novillo <dnovillo@google.com>
13583 * double-int.h: Move including of gmp.h ...
13584 * system.h: ... here.
13585 * realmpfr.h: Do not include gmp.h.
13586 * tree-ssa-loop-niter.c: Do not include gmp.h.
13588 2012-08-16 Steven Bosscher <steven@gcc.gnu.org>
13590 PR middle-end/54146
13591 * tree-flow.h (compute_global_livein): Remove prototype.
13592 * tree-into-ssa.c (compute_global_livein): Remove function.
13593 * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
13594 (find_sibling_superloop): New function.
13595 (compute_live_loop_exits): New function.
13596 (add_exit_phis_edge): Rename to add_exit_phi. Do not allow
13597 inserting a PHI in a block that is not a loop exit for VAR.
13598 Add dumping if TDF_DETAILS.
13599 (add_exit_phis_var): Rewrite.
13600 (add_exit_phis): Update.
13601 (get_loops_exits): Rewrite to return an array of per-loop exits
13602 rather than one bitmap with all loop exits.
13603 (find_uses_to_rename_bb): Ignore virtual PHI nodes.
13604 (rewrite_into_loop_closed_ssa): Update.
13606 2012-08-16 Nick Clifton <nickc@redhat.com>
13608 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
13609 before passing it to ASM_OUTPUT_LIMITED_STRING.
13611 * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
13613 * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
13614 * config/avr/avr.c (avr_legitimize_reload_address): Add casts
13615 for reload_type enums.
13616 (DEF_BUILTIN): Cast the icode to enum insn_code.
13618 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13620 * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
13622 * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
13624 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13626 * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13627 (RS6000_CALL_GLUE): Adjust for single assembler syntax.
13628 * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
13629 * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
13630 * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
13631 * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
13632 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
13633 * config/rs6000/darwin.md (whole file): Adjust to single
13635 * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13636 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
13637 * config/rs6000/dfp.md: (whole file): Adjust to single
13639 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13640 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
13641 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
13642 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
13643 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
13644 * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
13645 * config/rs6000/rs6000-tables.opt: Regenerate.
13646 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
13647 (num_insns_constant_wide): Adjust comments.
13648 (whole file): Adjust to single assembler syntax.
13649 (output_cbranch): Adjust comment.
13650 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
13651 * config/rs6000/rs6000.md: (whole file): Adjust to single
13653 * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
13654 (mold-mnemonics): Delete.
13655 * config/rs6000/spe.md: (whole file): Adjust to single
13657 * config/rs6000/sync.md: (whole file): Adjust to single
13659 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13660 (ASM_OUTPUT_REG_PUSH): Adjust.
13661 (ASM_OUTPUT_REG_POP): Adjust.
13662 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13663 * config/rs6000/vsx.md: (whole file): Adjust to single
13665 * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
13666 * doc/invoke.texi: Adjust documentation to reflect the
13667 removal of -mnew-mnemonics and -mold-mnemonics.
13669 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13671 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
13672 Delete handling for -mno-powerpc and -mpowerpc.
13673 * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
13674 (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
13675 * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
13676 * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
13677 * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
13678 * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
13679 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
13680 * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
13681 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
13682 * config/rs6000/driver-rs6000.c (asm_names): Delete handling
13683 for -mcpu=common and -mpowerpc.
13684 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
13685 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
13686 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
13687 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
13688 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
13689 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
13690 Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
13691 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
13692 (rs6000_cpu_cpp_builtins): Adjust.
13693 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
13694 (rs6000_builtin_mask_calculate): Adjust.
13695 (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
13696 (rs6000_init_libfuncs): Ditto.
13697 (rs6000_output_function_prologue): Ditto.
13698 (rs6000_opt_masks): Delete MASK_POWERPC.
13699 (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
13700 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
13701 (RS6000_BTM_POWERPC): Delete.
13702 (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
13703 * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
13704 TARGET_POWERPC always on.
13705 (extendqihi2 patterns): Similar.
13706 (various unnamed subtract patterns): Similar.
13707 (bswaphi2 patterns): Similar.
13708 (divmodsi4): Similar.
13709 (udiv<GPR:mode>3): Similar.
13710 (div<GPR:mode>3 patterns): Similar.
13711 (udivmodsi4): Similar.
13712 (mulhcall): Delete.
13713 (mullcall): Delete.
13714 (divss_call): Delete.
13715 (divus_call): Delete.
13716 (quoss_call): Delete.
13717 (quous_call): Delete.
13718 (insvsi patterns): Adjust.
13719 (addsf3 patterns): Adjust.
13720 (subsf3 patterns): Adjust.
13721 (mulsf3 patterns): Adjust.
13722 (divsf3 patterns): Adjust.
13723 (*fmasf4_fpr): Adjust.
13724 (*fmssf4_fpr): Adjust.
13725 (*nfmasf4_fpr): Adjust.
13726 (*nfmssf4_fpr): Adjust.
13727 (*floatunssidf2_internal): Adjust.
13728 (fix_trunc<SFDF:mode>si2_internal): Adjust.
13729 (fctiwz_<SFDF:mode>): Adjust.
13730 (mulsidi3 patterns): Adjust.
13731 (smulsi3_highpart patterns): Adjust.
13732 (umulsi3_highpart patterns): Adjust.
13733 (fix_trunctfsi2 patterns): Adjust.
13734 (prefetch): Adjust.
13735 * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
13736 (mno-powerpc): Delete.
13737 * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
13738 (store_conditional<ATOMIC:mode>): Adjust.
13739 (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
13740 (atomic_exchange<ATOMIC:mode>): Adjust.
13741 (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
13742 (atomic_nand<ATOMIC:mode>): Adjust.
13743 (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
13744 (atomic_fetch_nand<ATOMIC:mode>): Adjust.
13745 (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
13746 (atomic_nand_fetch<ATOMIC:mode>): Adjust.
13747 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
13748 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
13749 * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
13750 * doc/invoke.texi: Adjust documentation.
13752 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13754 * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
13756 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13758 * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
13759 * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
13760 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
13761 * config/rs6000/driver-rs6000.c (asm_names): Ditto.
13763 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13766 * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
13768 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
13770 2012-08-15 Sandra Loosemore <sandra@codesourcery.com>
13771 Maxim Kuvyrkov <maxim@codesourcery.com>
13772 Julian Brown <julian@codesourcery.com>
13773 MIPS Technologies, Inc.
13775 * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
13776 (dspalusat): Add insn types.
13777 * config/mips/mips-dsp.md (add<DSPV:mode>3)
13778 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
13779 (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
13780 (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
13781 (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
13782 (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
13783 (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
13784 (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
13785 (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
13786 (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
13787 (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
13788 (mips_repl_qb, mips_repl_ph)
13789 (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
13790 (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
13791 (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
13792 (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
13793 (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
13794 (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
13795 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
13796 (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
13798 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
13800 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
13801 Set type to accext.
13802 (mips_shilo, mips_mthlip): Set type to accmod.
13803 * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
13804 (mips_adduh_r_qb): Set type to dspalusat.
13805 (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
13806 (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
13807 (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
13808 (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
13809 (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
13810 (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
13811 (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
13812 (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
13813 (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
13814 dspmac. Set accum_in attribute.
13815 (mips_subu_s_ph): Set type to dspalusat.
13816 (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
13817 Set accum_in attribute.
13818 * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
13819 * config/mips/mips.c (dspalu_bypass_table): New.
13820 (mips_dspalu_bypass_p): New.
13821 * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
13822 (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
13823 (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
13824 (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
13825 * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
13826 (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
13828 (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
13829 (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
13831 2012-08-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13833 * config/spu/spu.c: Include "cfgloop.h".
13834 (spu_machine_dependent_reorg): Call loop_optimizer_init and
13835 loop_optimizer_finalize. Use bb_loop_depth instead of loop_depth.
13836 Directly compare loop_father values where appropriate.
13837 * config/spu/t-spu-elf (spu.o): Update dependencies.
13839 2012-08-15 H.J. Lu <hongjiu.lu@intel.com>
13841 * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
13843 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13845 PR tree-optimization/54245
13846 * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
13847 (legal_cast_p): Split out logic to legal_cast_p_1.
13848 (analyze_increments): Avoid introducing multiplies in smaller types.
13850 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13852 PR tree-optimization/54240
13853 * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
13854 existence of conditional move with given mode.
13856 2012-08-15 Richard Guenther <rguenther@suse.de>
13858 * double-int.h (double_int::from_unsigned): Rename to ...
13859 (double_int::from_uhwi): ... this.
13860 (double_int::from_signed): Rename to ...
13861 (double_int::from_shwi): ... this.
13862 (double_int::to_signed): Rename to ...
13863 (double_int::to_shwi): ... this.
13864 (double_int::to_unsigned): Rename to ...
13865 (double_int::to_uhwi): ... this.
13866 (double_int::fits_unsigned): Rename to ...
13867 (double_int::fits_uhwi): ... this.
13868 (double_int::fits_signed): Rename to ...
13869 (double_int::fits_shwi): ... this.
13870 (double_int::fits): Rename to ...
13871 (double_int::fits_hwi): ... this.
13872 * double-int.c: Likewise.
13874 2012-08-15 Steven Bosscher <steven@gcc.gnu.org>
13876 * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
13877 TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
13878 TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
13879 TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
13880 (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
13881 TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
13882 * timevar.c (timevar_print): Make printing width of timevar names
13883 more flexible, but enforce maximum length.
13884 * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
13885 (pass_ipa_inline): Use TV_IPA_INLINING.
13886 * ipa-inline-analysis.c (pass_inline_parameters): Use
13887 TV_INLINE_HEURISTICS.
13888 * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
13889 (pass_tree_loop_done): Likewise.
13890 * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
13891 * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
13892 (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
13894 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13896 * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
13897 (neon_vabal<mode> VDQIW): Likewise.
13899 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13902 * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
13903 mark as predicable. Adjust asm template.
13904 (vec_setv2di_internal): Likewise.
13905 (vec_extract<mode> VD, VQ): Likewise.
13906 (vec_extractv2di): Likewise.
13907 (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
13908 (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
13909 (neon_vdup_n<mode> VX, V32): Likewise.
13910 (neon_vdup_nv2di): Likewise.
13912 2012-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
13914 * config/mips/mips.md (define_attr accum_in): New instruction
13915 attribute. Set it for imadd and fmadd patterns.
13916 * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
13917 accumulator register.
13919 2012-08-14 Diego Novillo <dnovillo@google.com>
13921 Merge from cxx-conversion branch. Configury.
13923 * configure.ac (CXX_FOR_BUILD): Define and substitute.
13924 (BUILD_CXXFLAGS): Define.
13925 Remove all handlers of ENABLE_BUILD_WITH_CXX.
13926 Force all build to be with C++.
13927 * Makefile.in (BUILD_CXXFLAGS): Use it.
13928 Remove all handlers of ENABLE_BUILD_WITH_CXX.
13929 * configure: Regenerate.
13930 * config.in: Regenerate.
13931 * doc/install.texi: Remove documentation for --enable-build-with-cxx
13932 and --enable-build-poststage1-with-cxx.
13934 2012-08-14 Diego Novillo <dnovillo@google.com>
13936 Merge from cxx-conversion branch. Re-implement VEC in C++.
13938 * vec.c (vec_heap_free): Convert into a template function.
13939 (vec_gc_o_reserve_1): Make extern.
13940 (vec_gc_p_reserve): Remove.
13941 (vec_gc_p_reserve_exact): Remove.
13942 (vec_gc_o_reserve): Remove.
13943 (vec_gc_o_reserve_exact): Remove.
13944 (vec_heap_o_reserve_1): Make extern.
13945 (vec_heap_p_reserve): Remove.
13946 (vec_heap_p_reserve_exact): Remove.
13947 (vec_heap_o_reserve): Remove.
13948 (vec_heap_o_reserve_exact): Remove.
13949 (vec_stack_p_reserve): Remove.
13950 (vec_stack_p_reserve_exact): Remove.
13951 * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
13952 VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
13953 (VEC): Define to vec_t<T>.
13954 (vec_allocation_t): Define.
13955 (struct vec_prefix): Move earlier in the file.
13956 (vec_t<T>): New template.
13957 (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
13958 DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
13959 DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
13960 DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
13961 (DEF_VEC_A): Provide template instantiations for
13962 GC/PCH markers that do not traverse the vector.
13963 (vec_stack_p_reserve): Remove.
13964 (vec_stack_p_reserve_exact): Remove.
13965 (vec_stack_p_reserve_exact_1): Remove.
13966 (vec_stack_o_reserve): Remove.
13967 (vec_stack_o_reserve_exact): Remove.
13968 (vec_stack_free): Re-write as a template function.
13969 (vec_reserve): New template function.
13970 (vec_reserve_exact): New template function.
13971 (vec_heap_free): New template function if GATHER_STATISTICS is
13972 defined. Otherwise, macro that expands to free().
13973 (VEC_length_1): New template function.
13974 (VEC_length): Call it.
13975 (VEC_empty_1): New template function.
13976 (VEC_empty): Call it.
13977 (VEC_address_1): New template function.
13978 (VEC_address): Call it.
13979 (VEC_last_1): New template function.
13980 (VEC_last): Call it. Change return type to T&.
13981 Change all users that used VEC_Os.
13982 (VEC_index_1): New template function.
13983 (VEC_index): Call it. Return a T& instead of a T*.
13984 Update all callers that were using VEC_O before.
13985 (VEC_iterate_1): New template function.
13986 (VEC_iterate): Call it.
13987 (VEC_embedded_size_1): New template function.
13988 (VEC_embedded_size): Call it.
13989 (VEC_embedded_init_1): New template function.
13990 (VEC_embedded_init): Call it.
13991 (VEC_alloc_1): New template function.
13992 (VEC_alloc): Call it. If A is 'stack', call XALLOCAVAR to
13994 (VEC_free_1): New template function.
13995 (VEC_free): Call it.
13996 (VEC_copy_1): New template function.
13997 (VEC_copy): Call it.
13998 (VEC_space_1): New template function
13999 (VEC_space): Call it.
14000 (VEC_reserve_1): New template function.
14001 (VEC_reserve): Call it.
14002 (VEC_reserve_exact_1): New template function.
14003 (VEC_reserve_exact): Call it.
14004 (VEC_splice_1): New template function.
14005 (VEC_splice): Call it.
14006 (VEC_safe_splice_1): New template function.
14007 (VEC_safe_splice): Call it.
14008 (VEC_quick_push_1): New template function. Create two overloads, one
14009 accepting T, the other accepting T *. Update all callers
14010 where T and T * are ambiguous.
14011 (VEC_quick_push): Call it.
14012 (VEC_safe_push_1): New template function. Create two overloads, one
14013 accepting T, the other accepting T *. Update all callers
14014 where T and T * are ambiguous.
14015 (VEC_safe_push): Call it.
14016 (VEC_pop_1): New template function.
14017 (VEC_pop): Call it.
14018 (VEC_truncate_1): New template function.
14019 (VEC_truncate): Call it.
14020 (VEC_safe_grow_1): New template function.
14021 (VEC_safe_grow): Call it.
14022 (VEC_safe_grow_cleared_1): New template function.
14023 (VEC_safe_grow_cleared): Call it.
14024 (VEC_replace_1): New template function.
14025 (VEC_replace): Call it. Always accept T instead of T*.
14026 Update all callers that used VEC_Os.
14027 (VEC_quick_insert_1): New template function.
14028 (VEC_quick_insert): Call it.
14029 (VEC_safe_insert_1): New template function.
14030 (VEC_safe_insert): Call it.
14031 (VEC_ordered_remove_1): New template function.
14032 (VEC_ordered_remove): Call it.
14033 (VEC_unordered_remove_1): New template function.
14034 (VEC_unordered_remove): Call it.
14035 (VEC_block_remove_1): New template function.
14036 (VEC_block_remove): Call it.
14037 (VEC_lower_bound_1): New template function.
14038 (VEC_lower_bound): Call it.
14040 (DEF_VEC_FUNC_P): Remove.
14041 (DEF_VEC_ALLOC_FUNC_P): Remove.
14042 (DEF_VEC_NONALLOC_FUNCS_P): Remove.
14043 (DEF_VEC_FUNC_O): Remove.
14044 (DEF_VEC_ALLOC_FUNC_O): Remove.
14045 (DEF_VEC_NONALLOC_FUNCS_O): Remove.
14046 (DEF_VEC_ALLOC_FUNC_I): Remove.
14047 (DEF_VEC_NONALLOC_FUNCS_I): Remove.
14048 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
14049 (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
14050 (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
14051 (vec_reserve_exact): New template function.
14053 * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
14054 * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
14055 (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
14056 (def_vec_alloc): Remove. Update all callers.
14057 * gengtype.c (filter_type_name): New.
14058 (output_mangled_typename): Call it.
14059 (write_func_for_structure): Likewise.
14060 (write_types): Likewise.
14061 (write_root): Likewise.
14062 (write_typed_alloc_def): Likewise.
14063 (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
14064 (note_def_vec_alloc): Remove.
14065 * gengtype.h (note_def_vec_alloc): Remove.
14066 (DEFVEC_ALLOC): Remove token code.
14068 * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
14069 inside the insn traversal loop.
14070 * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
14071 * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
14072 * reg-stack.c (stack): Rename to STACK_PTR. Update all users.
14073 * tree-vrp.c (stack): Rename to EQUIV_STACK. Update all users.
14075 * config/bfin/bfin.c (hwloop_optimize): Update some calls to
14076 VEC_* for vectors of non-pointers.
14077 * config/c6x/c6x.c (try_rename_operands): Likewise.
14078 (reshuffle_units): Likewise.
14079 * config/mips/mips.c (mips_multi_start): Likewise.
14080 (mips_multi_add): Likewise.
14081 (mips_multi_copy_insn): Likewise.
14082 (mips_multi_set_operand): Likewise.
14083 * hw-doloop.c (discover_loop): Likewise.
14084 (discover_loops): Likewise.
14085 (reorg_loops): Likewise.
14087 2012-08-14 Diego Novillo <dnovillo@google.com>
14089 Merge from cxx-conversion branch. C++ support in gengtype.
14091 * coretypes.h (gt_pointer_operator): Move from ...
14093 * doc/gty.texi: Document support for C++ templates and
14094 user-provided markers.
14095 * gengtype-lex.l: Update copyright year.
14096 Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
14097 * gengtype-parse.c: Update copyright year.
14098 (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
14099 (require_template_declaration): New.
14100 (typedef_name): Call it.
14101 (type): Replace IS_UNION with KIND. Replace all users.
14102 (def_vec): Remove. Update all users.
14103 * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
14104 (write_state_user_struct_type): New.
14105 (write_state_type): Call it.
14106 (read_state_user_struct_type): New.
14107 (read_state_type): Call it.
14108 * gengtype.c: Update copyright year.
14109 (dump_pair): Move declaration to the top.
14110 (dump_type): Likewise.
14111 (dump_type_list): Likewise.
14112 (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
14113 (create_user_defined_type): New.
14114 (resolve_typedef): Call it.
14115 (new_structure): Replace argument ISUNION with KIND.
14116 Change users to refer to KIND directly.
14117 Update all callers.
14118 (find_structure): Likewise.
14119 (set_gc_used_type): Handle TYPE_USER_STRUCT.
14120 (create_file): Update HDR to include new copyright year.
14121 (struct walk_type_data): Add field IN_PTR_FIELD.
14122 (output_mangled_typename): Handle TYPE_USER_STRUCT.
14123 (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
14124 Clear it afterwards.
14125 Handle TYPE_USER_STRUCT.
14126 (write_types_process_field): Handle TYPE_USER_STRUCT.
14127 (get_type_specifier): Move earlier in the file.
14128 (write_type_decl): New.
14129 (write_marker_function_name): New.
14130 (write_user_func_for_structure_ptr): New.
14131 (write_user_func_for_structure_body): New.
14132 (write_user_marking_functions): New.
14133 (write_func_for_structure): Call write_marker_function_name
14134 and write_type_decl.
14135 Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
14137 Call write_user_marking_functions on TYPE_USER_STRUCTs.
14138 (write_types_local_user_process_field): New.
14139 (write_pch_user_walking_for_structure_body): New.
14140 (write_pch_user_walking_functions): New.
14141 (write_types_local_process_field): Handle TYPE_USER_STRUCT.
14142 (write_local_func_for_structure): Do not call walk_type for
14143 TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
14144 Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
14145 (write_root): Handle TYPE_USER_STRUCT.
14146 (vec_prefix_type): Remove. Update all users.
14147 (note_def_vec): Remove. Update all users.
14148 (dump_typekind): Handle TYPE_USER_STRUCT.
14149 (dump_type): Initialize SEEN_TYPES, if needed.
14150 Handle TYPE_USER_STRUCT.
14151 (dump_everything): Do not initialize SEEN_TYPES.
14152 * gengtype.h: Update copyright year.
14153 (enum typekind): Add TYPE_USER_STRUCT.
14154 (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
14155 Convert into function.
14156 Add an overload taking const_type_p.
14157 Update all callers.
14158 (new_structure): Change second field to type enum typekind.
14160 (find_structure): Likewise.
14161 (note_def_vec): Remove.
14162 (DEFVEC_OP): Remove.
14163 (DEFVEC_I): Remove.
14164 * ggc-page.c (gt_ggc_mx): Add entry points for marking
14165 'const char *&', 'unsigned char *&' and 'unsigned char&'.
14166 * ggc-zone.c (gt_ggc_mx): Add entry points for marking
14167 'const char *&' and 'unsigned char *&'.
14168 * stringpool.c (gt_pch_nx): Add entry points for marking
14169 'const char *&', 'unsigned char *&' and 'unsigned char&'.
14170 Add an entry point for the overload taking arguments 'unsigned char
14171 *', 'gt_pointer_operator' and 'void *'.
14172 * vec.h (struct vec_prefix): Remove GTY marker.
14173 (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
14174 (gt_ggc_mx (vec_t<T> *)): New template function.
14175 (gt_pch_nx (vec_t<T> *)): New template function.
14176 (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
14178 (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
14181 * basic-block.h (struct edge_def): Mark GTY((user)).
14182 Remove all GTY markers from fields.
14183 (gt_ggc_mx): Declare.
14184 (gt_pch_nx): Declare.
14185 * tree-cfg.c (gt_ggc_mx): New.
14188 * gengtype-lex.l (USER_GTY): Add pattern for "user".
14189 * gengtype-parse.c (option): Handle USER_GTY.
14192 If the keyword 'user' is used, do not walk the fields
14194 * gengtype.h (USER_GTY): Add.
14195 * doc/gty.texi: Update.
14197 2012-08-14 Lawrence Crowl <crowl@google.com>
14199 Merge cxx-conversion branch. Implement C++ hash table.
14201 * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
14202 * hash-table.c: Likewise.
14203 * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
14204 (static htab_t same_succ_htab): Change type to hash_table;
14205 move specification of helper functions from create call to declaration.
14206 Change users to invoke member functions.
14207 (same_succ_print_traverse): Make extern ssa_.... Change callers.
14208 Remove void* casting.
14209 (same_succ_hash): Likewise.
14210 (same_succ_equal): Likewise.
14211 (same_succ_delete): Likewise.
14212 * tree-ssa-threadupdate.c: Include hash-table.h.
14213 (struct local_info): Rename to ssa_local_info_t to avoid overloading
14214 the type name local_info with the variable name local_info.
14215 (static htab_t redirection_data): Change type to hash_table.
14216 Move specification of helper functions from create call to declaration.
14217 Change users to invoke member functions.
14218 (redirection_data_hash): Make extern ssa_.... Change callers.
14219 Remove void* casting.
14220 (redirection_data_eq): Likewise.
14221 (fix_duplicate_block_edges): Likewise.
14222 (create_duplicates): Likewise.
14223 (fixup_template_block): Likewise.
14224 (redirect_edges): Likewise.
14225 (lookup_redirection_data): Change types associated with the hash table
14226 from void* to their actual type. Remove unnecessary casts.
14227 * tree-ssa-ccp.c: Include hash-table.h.
14228 (typedef gimple_htab): New. Uses hash_table. Replace specific uses
14229 of htab_t with gimple_htab. Change users to invoke member functions.
14230 Move specification of helper functions from create call to declaration.
14231 * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
14232 (hash_ssa_name_by_var): Make extern. Remove void* casting.
14233 (eq_ssa_name_by_var): Likewise.
14234 (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
14235 to hash_table. Change users to invoke member functions.
14236 Move specification of helper functions from create call to declaration.
14237 * coverage.c: Include hash-table.h instead of hashtab.h.
14238 (static htab_t counts_hash): Change type to hash_table;
14239 move specification of helper functions from create call to declaration.
14240 Change users to invoke member functions.
14241 (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
14242 of htab_... Remove void* casting.
14243 (htab_counts_entry_eq): Likewise.
14244 (htab_counts_entry_del): Likewise.
14245 * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
14246 (static htab_t expression_to_id): Change type to hash_table.
14247 Move specification of helper functions from create call to declaration.
14248 Change users to invoke member functions.
14249 (static htab_t phi_translate_table): Likewise.
14250 (pre_expr_eq): Make extern ssa_.... Change callers.
14251 Remove void* casting.
14252 (pre_expr_hash): Likewise.
14253 (expr_pred_trans_hash): Likewise.
14254 (expr_pred_trans_eq): Likewise.
14255 (alloc_expression_id): Change types associated with the hash table
14256 from void* to their actual type. Remove unnecessary casts.
14257 (lookup_expression_id): Likewise.
14258 (phi_trans_lookup): Likewise.
14259 (phi_trans_add): Likewise.
14260 * stringpool.c: Rename uses of libcpp typedef hash_table to
14262 * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
14263 Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
14265 2012-08-14 Lawrence Crowl <crowl@google.com>
14267 Merge from cxx-conversion branch. Re-write double_int in C++.
14270 (typedef double_int): Change to struct (POD).
14271 (double_int::make): New overloads for int to double-int conversion.
14272 (double_int::mask): New.
14273 (double_int::max_value): New.
14274 (double_int::min_value): New.
14275 (double_int::operator ++): New.
14276 (double_int::operator --): New.
14277 (double_int::operator *=): New.
14278 (double_int::operator +=): New.
14279 (double_int::operator -=): New.
14280 (double_int::to_signed): New.
14281 (double_int::to_unsigned): New.
14282 (double_int::fits_unsigned): New.
14283 (double_int::fits_signed): New.
14284 (double_int::fits): New.
14285 (double_int::trailing_zeros): New.
14286 (double_int::popcount): New.
14287 (double_int::multiple_of): New.
14288 (double_int::set_bit): New.
14289 (double_int::mul_with_sign): New.
14290 (double_int::operator * (binary)): New.
14291 (double_int::operator + (binary)): New.
14292 (double_int::operator - (binary)): New.
14293 (double_int::operator - (unary)): New.
14294 (double_int::operator ~ (unary)): New.
14295 (double_int::operator & (binary)): New.
14296 (double_int::operator | (binary)): New.
14297 (double_int::operator ^ (binary)): New.
14298 (double_int::and_not): New.
14299 (double_int::lshift): New.
14300 (double_int::rshift): New.
14301 (double_int::alshift): New.
14302 (double_int::arshift): New.
14303 (double_int::llshift): New.
14304 (double_int::lrshift): New.
14305 (double_int::lrotate): New.
14306 (double_int::rrotate): New.
14307 (double_int::div): New.
14308 (double_int::sdiv): New.
14309 (double_int::udiv): New.
14310 (double_int::mod): New.
14311 (double_int::smod): New.
14312 (double_int::umod): New.
14313 (double_int::divmod): New.
14314 (double_int::sdivmod): New.
14315 (double_int::udivmod): New.
14316 (double_int::ext): New.
14317 (double_int::zext): New.
14318 (double_int::sext): New.
14319 (double_int::is_zero): New.
14320 (double_int::is_one): New.
14321 (double_int::is_minus_one): New.
14322 (double_int::is_negative): New.
14323 (double_int::cmp): New.
14324 (double_int::ucmp): New.
14325 (double_int::scmp): New.
14326 (double_int::ult): New.
14327 (double_int::ugt): New.
14328 (double_int::slt): New.
14329 (double_int::sgt): New.
14330 (double_int::max): New.
14331 (double_int::smax): New.
14332 (double_int::umax): New.
14333 (double_int::min): New.
14334 (double_int::smin): New.
14335 (double_int::umin): New.
14336 (double_int::operator ==): New.
14337 (double_int::operator !=): New.
14338 (shwi_to_double_int): Change implementation to use member function.
14339 (double_int_minus_one): Likewise.
14340 (double_int_zero): Likewise.
14341 (double_int_one): Likewise.
14342 (double_int_two): Likewise.
14343 (double_int_ten): Likewise.
14344 (uhwi_to_double_int): Likewise.
14345 (double_int_to_shwi): Likewise.
14346 (double_int_to_uhwi): Likewise.
14347 (double_int_fits_in_uhwi_p): Likewise.
14348 (double_int_fits_in_shwi_p): Likewise.
14349 (double_int_fits_in_hwi_p): Likewise.
14350 (double_int_mul): Likewise.
14351 (double_int_mul_with_sign): Likewise.
14352 (double_int_add): Likewise.
14353 (double_int_sub): Likewise.
14354 (double_int_neg): Likewise.
14355 (double_int_div): Likewise.
14356 (double_int_sdiv): Likewise.
14357 (double_int_udiv): Likewise.
14358 (double_int_mod): Likewise.
14359 (double_int_smod): Likewise.
14360 (double_int_umod): Likewise.
14361 (double_int_divmod): Likewise.
14362 (double_int_sdivmod): Likewise.
14363 (double_int_udivmod): Likewise.
14364 (double_int_multiple_of): Likewise.
14365 (double_int_setbit): Likewise.
14366 (double_int_ctz): Likewise.
14367 (double_int_not): Likewise.
14368 (double_int_ior): Likewise.
14369 (double_int_and): Likewise.
14370 (double_int_and_not): Likewise.
14371 (double_int_xor): Likewise.
14372 (double_int_lshift): Likewise.
14373 (double_int_rshift): Likewise.
14374 (double_int_lrotate): Likewise.
14375 (double_int_rrotate): Likewise.
14376 (double_int_cmp): Likewise.
14377 (double_int_scmp): Likewise.
14378 (double_int_ucmp): Likewise.
14379 (double_int_max): Likewise.
14380 (double_int_smax): Likewise.
14381 (double_int_umax): Likewise.
14382 (double_int_min): Likewise.
14383 (double_int_smin): Likewise.
14384 (double_int_umin): Likewise.
14385 (double_int_ext): Likewise.
14386 (double_int_sext): Likewise.
14387 (double_int_zext): Likewise.
14388 (double_int_mask): Likewise.
14389 (double_int_max_value): Likewise.
14390 (double_int_min_value): Likewise.
14391 (double_int_zero_p): Likewise.
14392 (double_int_one_p): Likewise.
14393 (double_int_minus_one_p): Likewise.
14394 (double_int_equal_p): Likewise.
14395 (double_int_popcount): Likewise.
14397 (double_int_mask): Reuse implementation for double_int::mask.
14398 (double_int_max_value): Likewise.
14399 (double_int_min_value): Likewise.
14400 (double_int_ext): Likewise.
14401 (double_int_zext): Likewise.
14402 (double_int_sext): Likewise.
14403 (double_int_mul_with_sign): Likewise.
14404 (double_int_divmod): Likewise.
14405 (double_int_sdivmod): Likewise.
14406 (double_int_udivmod): Likewise.
14407 (double_int_div): Likewise.
14408 (double_int_sdiv): Likewise.
14409 (double_int_udiv): Likewise.
14410 (double_int_mod): Likewise.
14411 (double_int_smod): Likewise.
14412 (double_int_umod): Likewise.
14413 (double_int_multiple_of): Likewise.
14414 (double_int_lshift): Likewise.
14415 (double_int_rshift): Likewise.
14416 (double_int_lrotate): Likewise.
14417 (double_int_rrotate): Likewise.
14418 (double_int_cmp): Likewise.
14419 (double_int_ucmp): Likewise.
14420 (double_int_scmp): Likewise.
14421 (double_int_max): Likewise.
14422 (double_int_smax): Likewise.
14423 (double_int_umax): Likewise.
14424 (double_int_min): Likewise.
14425 (double_int_smin): Likewise.
14426 (double_int_umin): Likewise.
14427 (double_int_min): Likewise.
14428 (double_int_min): Likewise.
14429 (double_int_min): Likewise.
14430 (double_int_min): Likewise.
14431 (double_int_min): Likewise.
14432 (double_int_min): Likewise.
14433 (double_int::alshift): New.
14434 (double_int::arshift): New.
14435 (double_int::llshift): New.
14436 (double_int::lrshift): New.
14437 (double_int::ult): New.
14438 (double_int::ugt): New.
14439 (double_int::slt): New.
14440 (double_int::sgt): New.
14441 (double_int_setbit): Reuse implementation for double_int::set_bit,
14442 which avoids a name conflict with a macro.
14443 (double_int_double_int_ctz): Reuse implementation for
14444 double_int::trailing_zeros.
14445 (double_int_fits_in_shwi_p): Reuse implementation for
14446 double_int::fits_signed.
14447 (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
14448 (double_int_mul): Reuse implementation for binary
14449 double_int::operator *.
14450 (double_int_add): Likewise.
14451 (double_int_sub): Likewise.
14452 (double_int_neg): Reuse implementation for unary
14453 double_int::operator -.
14454 (double_int_max_value): Likewise.
14455 * fixed-value.c: Change to use member functions introduced above.
14457 2012-08-14 Lawrence Crowl <crowl@google.com>
14459 Merge cxx-conversion branch. Support tree macro calling from gdb.
14461 * tree.h (tree_check): New.
14462 (TREE_CHECK): Use inline function above instead of __extension__.
14463 (tree_not_check): New.
14464 (TREE_NOT_CHECK): Use inline function above instead of __extension__.
14465 (tree_check2): New.
14466 (TREE_CHECK2): Use inline function above instead of __extension__.
14467 (tree_not_check2): New.
14468 (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
14469 (tree_check3): New.
14470 (TREE_CHECK3): Use inline function above instead of __extension__.
14471 (tree_not_check3): New.
14472 (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
14473 (tree_check4): New.
14474 (TREE_CHECK4): Use inline function above instead of __extension__.
14475 (tree_not_check4): New.
14476 (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
14477 (tree_check5): New.
14478 (TREE_CHECK5): Use inline function above instead of __extension__.
14479 (tree_not_check5): New.
14480 (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
14481 (contains_struct_check): New.
14482 (CONTAINS_STRUCT_CHECK): Use inline function above instead of
14484 (tree_class_check): New.
14485 (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
14486 (tree_range_check): New.
14487 (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
14488 (omp_clause_subcode_check): New.
14489 (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
14491 (omp_clause_range_check): New.
14492 (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
14495 (EXPR_CHECK): Use inline function above instead of __extension__.
14496 (non_type_check): New.
14497 (NON_TYPE_CHECK): Use inline function above instead of __extension__.
14498 (tree_vec_elt_check): New.
14499 (TREE_VEC_ELT_CHECK): Use inline function above instead of
14501 (omp_clause_elt_check): New.
14502 (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
14504 (tree_operand_check): New.
14505 (TREE_OPERAND_CHECK): Use inline function above instead of
14507 (tree_operand_check_code): New.
14508 (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
14510 (TREE_CHAIN): Simplify implementation.
14511 (TREE_TYPE): Simplify implementation.
14512 (tree_operand_length): Move for compilation dependences.
14513 * gdbinit.in: (macro define __FILE__): New.
14514 (macro define __LINE__): New.
14515 (skip "tree.h"): New.
14517 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
14520 * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
14521 *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
14522 * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
14524 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
14527 * config/sh/constraints.md (Sra): New constraint.
14528 * config/sh/predicates.md (simple_mem_operand,
14529 displacement_mem_operand, zero_extend_movu_operand): New predicates.
14530 (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
14531 * config/sh/sh.md (*zero_extendqisi2_disp_mem,
14532 *zero_extendhisi2_disp_mem): Add new insns and two new related
14533 peephole2 patterns.
14535 2012-08-14 Steven Bosscher <steven@gcc.gnu.org>
14537 * graphite-scop-detection.c (create_sese_edges): Compute dominance
14538 info before trying to fix loop structure.
14539 * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
14540 * tree-cfgcleanup.c (repair_loop_structures): Likewise.
14541 * cfgloop.c (verify_loop_structure): Verify loop fathers.
14543 * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
14544 (dom_convert_dir_to_idx, compute_dom_fast_query,
14545 get_immediate_dominator, set_immediate_dominator, get_dominated_by,
14546 redirect_immediate_dominators, nearest_common_dominator,
14547 (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
14548 iterate_fix_dominators, add_to_dominance_info,
14549 delete_from_dominance_info): Likewise.
14551 2012-08-14 Richard Guenther <rguenther@suse.de>
14553 * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
14554 * gimple-pretty-print.c (dump_phi_nodes): Likewise.
14555 * gimple-streamer-out.c (output_bb): Likewise.
14556 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
14557 (rewrite_reductions_out_of_ssa): Likewise.
14558 (rewrite_commutative_reductions_out_of_ss): Likewise.
14559 * ipa-split.c (verify_non_ssa_vars): Likewise.
14560 (consider_split): Likewise.
14561 (visit_bb): Likewise.
14562 (split_function): Likewise.
14563 * lto-streamer-out.c (output_ssa_names): Likewise.
14564 * sese.c (rename_uses): Likewise.
14565 * tree-cfg.c (replace_uses_by): Likewise.
14566 (gimple_merge_blocks): Likewise.
14567 (gimple_cfg2dot): Likewise.
14568 (verify_gimple_phi): Likewise.
14569 (replace_ssa_name): Likewise.
14570 (move_block_to_fn): Likewise.
14571 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
14572 * tree-if-conv.c (if_convertible_phi_p): Likewise.
14573 (predicate_scalar_phi): Likewise.
14574 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
14575 (copy_phis_for_bb): Likewise.
14576 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
14577 (destroy_loop): Likewise.
14578 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
14579 (insert_backedge_copies): Likewise.
14580 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
14581 (gather_scalar_reductions): Likewise.
14582 (try_create_reduction_list): Likewise.
14583 * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
14585 (scev_const_prop): Likewise.
14586 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
14587 (get_default_value): Likewise.
14588 (ccp_initialize): Likewise.
14589 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
14590 * tree-ssa-copy.c (may_propagate_copy): Likewise.
14591 (init_copy_prop): Likewise.
14592 * tree-ssa-dce.c (propagate_necessity): Likewise.
14593 (remove_dead_phis): Likewise.
14594 (forward_edge_to_pdom): Likewise.
14595 (eliminate_unnecessary_stmts): Likewise.
14596 * tree-ssa-live.c (partition_view_init): Likewise.
14597 (remove_unused_locals): Likewise.
14598 (register_ssa_partition_check): Likewise.
14599 * tree-ssa-loop-im.c (movement_possibility): Likewise.
14600 (move_computations_stmt): Likewise.
14601 * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
14602 (record_invariant): Likewise.
14603 (find_interesting_uses_outside): Likewise.
14604 (determine_set_costs): Likewise.
14605 * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
14606 (find_uses_to_rename_use): Likewise.
14607 (check_loop_closed_ssa_use): Likewise.
14608 (rewrite_phi_with_iv): Likewise.
14609 (canonicalize_loop_ivs): Likewise.
14610 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
14611 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
14612 * tree-ssa-pre.c (make_values_for_phi): Likewise.
14613 (compute_avail): Likewise.
14614 (eliminate): Likewise.
14615 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
14616 * tree-ssa-reassoc.c (phi_rank): Likewise.
14617 * tree-ssa-strlen.c (strlen_enter_block): Likewise.
14618 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
14619 (ipa_pta_execute): Likewise.
14620 * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
14621 (release_last_vdef): Likewise.
14622 (same_phi_alternatives_1): Likewise.
14623 (bb_has_non_vop_phi): Likewise.
14624 (vop_phi): Likewise.
14625 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
14627 * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
14628 (execute_late_warn_uninitialized): Likewise.
14629 * tree-ssa.c (verify_ssa_name): Likewise.
14630 (verify_phi_args): Likewise.
14631 (verify_ssa): Likewise.
14632 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14633 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
14635 (slpeel_tree_peel_loop_to_edge): Likewise.
14636 (vect_can_advance_ivs_p): Likewise.
14637 (vect_update_ivs_after_vectorizer): Likewise.
14638 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
14639 * tree-vrp.c (remove_range_assertions): Likewise.
14640 * value-prof.c (gimple_divmod_values_to_profile): Likewise.
14642 2012-08-14 Richard Guenther <rguenther@suse.de>
14644 PR tree-optimization/54146
14645 * tree-ssa-pre.c (do_regular_insertion): Use a VEC
14646 indexed by pred edge index for avail.
14647 (do_partial_partial_insertion): Likewise.
14648 (insert_into_preds_of_block): Adjust.
14650 2012-08-14 Richard Guenther <rguenther@suse.de>
14652 * gimplify.c (create_tmp_from_val): Mark temporary with
14653 DECL_GIMPLE_REG_P here ...
14654 (internal_get_tmp_var): ... instead of here. If we go into
14655 SSA create an SSA name instead of a VAR_DECL.
14656 (gimplify_modify_expr): Do not create SSA names here, assert
14657 we already got them.
14658 (force_gimple_operand_1): Create an SSA name if we go into SSA.
14659 * sese.c (rename_uses): Simplify.
14661 2012-08-14 Richard Guenther <rguenther@suse.de>
14663 * tree-into-ssa.c: Include diagnostic-core.h.
14664 * Makefile.in (tree-into-ssa.o): Adjust.
14666 2012-08-14 Richard Guenther <rguenther@suse.de>
14668 * tree-into-ssa.c (update_ssa): Verify we do not rename
14669 symbols that are already partly in SSA form.
14671 2012-08-14 Jakub Jelinek <jakub@redhat.com>
14673 PR middle-end/53411
14674 PR rtl-optimization/53495
14675 * ira.c (ira): Move delete_trivially_dead_insns call before
14676 find_moveable_pseudos call.
14678 2012-08-13 Steven Bosscher <steven@gcc.gnu.org>
14680 * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
14681 of potentially huge memset overhead.
14682 (do_partial_partial_insertion): Likewise.
14683 * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
14684 * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
14685 for arrays to be filled by pre_and_rev_post_order_compute. Allocate
14686 the right number of slots, not that number plus NUM_FIXED_BLOCKS.
14687 * tree-ssa-reassoc.c (init_reassoc): Likewise.
14688 * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
14689 array used as stack.
14690 * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
14691 arrays to be filled by pre_and_rev_post_order_compute.
14692 * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
14693 array to be filled by dfs_enumerate_from.
14694 (remove_path): Likewise.
14695 (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
14696 array of loops that is filled on the next lines.
14697 * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
14698 array of basic blocks to be returned.
14699 (get_loop_body_in_dom_order): Likewise.
14700 (get_loop_body_in_bfs_order): Likewise.
14701 * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
14702 for all bitmaps used for rewriting into loop-closed SSA form.
14703 (add_exit_phis_var): Allocate the def bitmap on it. Clear the livein
14704 bitmap at the end to release a lot of memory.
14705 (add_exit_phis): Allocate the exits bitmap on the new obstack.
14706 (get_loops_exits): Allocate the exits bitmap on the new obstack.
14707 (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
14708 seen for the first time.
14709 (find_uses_to_rename): Add "???" for why the whole function must
14710 be re-scanned if changed_bbs is empty.
14711 (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
14712 Use XNEWVEC to allocate the use_blocks array. Initialize the new
14713 obstack, and free it at the end. Remove loop over all SSA names.
14714 (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
14715 * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
14716 xcalloc to allocate edge_pred and edge_flag arrays.
14718 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
14720 * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
14721 (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
14722 for different ABIs.
14723 (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
14724 (REG_CLASS_NAMES): Update.
14725 (REG_CLASS_CONTENTS): Update. Clear CLOBBERED_REGS members.
14726 * config/i386/i386.c (ix86_conditional_register_usage): Disable
14727 REX registers on 32bit targets. Handle bitmaps from
14728 CALL_USED_REGISTERS initializer. Calculate CLOBBERED_REGS register
14729 set from GENERAL_REGS also for 32bit targets. Do not change call
14730 used register set for TARGET_64BIT_MS_ABI separately.
14732 2012-08-13 Richard Guenther <rguenther@suse.de>
14734 * basic-block.h (struct basic_block): Remove loop_depth
14735 member, move flags and index members next to each other.
14736 * cfgloop.h (bb_loop_depth): New inline function.
14737 * cfghooks.c (split_block): Do not set loop_depth.
14738 (duplicate_block): Likewise.
14739 * cfgloop.c (flow_loop_nodes_find): Likewise.
14740 (flow_loops_find): Likewise.
14741 (add_bb_to_loop): Likewise.
14742 (remove_bb_from_loops): Likewise.
14743 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14744 * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
14745 * gimple-streamer-out.c (output_bb): Likewise.
14746 * bt-load.c: Include cfgloop.h.
14747 (migrate_btr_defs): Use bb_loop_depth.
14748 * cfg.c (dump_bb_info): Likewise.
14749 * final.c (compute_alignments): Likewise.
14750 * ira.c (update_equiv_regs): Likewise.
14751 * tree-ssa-copy.c (init_copy_prop): Likewise.
14752 * tree-ssa-dom.c (loop_depth_of_name): Likewise.
14753 * tree-ssa-forwprop.c: Include cfgloop.h.
14754 (forward_propagate_addr_expr): Use bb_loop_depth.
14755 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
14756 * tree-ssa-sink.c (select_best_block): Likewise.
14757 * ipa-inline-analysis.c: Include cfgloop.h.
14758 (estimate_function_body_sizes): Use bb_loop_depth.
14759 * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
14760 (ipa-inline-analysis.o): Likewise.
14761 (bt-load.o): Likewise.
14763 2012-08-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14764 Jakub Jelinek <jakub@redhat.com>
14767 * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
14768 bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
14769 * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
14770 0x80000001 %ecx flags.
14772 2012-08-13 Richard Guenther <rguenther@suse.de>
14774 * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
14775 removal and loops with multiple latches.
14777 2012-08-13 Jakub Jelinek <jakub@redhat.com>
14780 * tree.c (integer_pow2p): Avoid undefined signed overflows.
14781 * simplify-rtx.c (neg_const_int): Likewise.
14782 * expr.c (fixup_args_size_notes): Likewise.
14783 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
14784 * double-int.c (mul_double_wide_with_sign): Likewise.
14785 (double_int_mask): Likewise.
14786 * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
14788 2012-08-13 Richard Guenther <rguenther@suse.de>
14790 PR tree-optimization/54200
14791 * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
14792 PHI results to another partition if not all PHI arguments
14793 have the same partition.
14795 2012-08-12 Jan Hubicka <jh@suse.cz>
14797 * tree-pass.h (write_summary, write_optimization_summary): Remove
14798 set and vset arguments.
14799 * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
14800 (write_node_summary_p): Likewise; use the encoder.
14801 (ipa_reference_write_optimization_summary): Likewise.
14802 * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
14803 (lto_symtab_encoder_new): Initialize in_partition field.
14804 (lto_symtab_encoder_delete): Destroy in_partition field.
14805 (LCC_NOT_FOUND): Move to lto-streamer.h
14806 (lto_symtab_encoder_deref): Likewise.
14807 (lto_symtab_encoder_in_partition_p,
14808 lto_set_symtab_encoder_in_partition): New functions.
14809 (referenced_from_other_partition_p): Rewrite to use encoder.
14810 (reachable_from_other_partition_p): Likewise.
14811 (referenced_from_this_partition_p): Likewise.
14812 (reachable_from_this_partition_p): Likewise.
14813 (lto_output_node): Likewise.
14814 (lto_output_varpool_node): Likewise.
14815 (output_refs): Likewise.
14816 (compute_ltrans_boundary): Initialize in_partition fileds of
14818 (output_symtab): Likewise.
14819 (input_refs): Match the changes in output_refs.
14820 (output_cgraph_opt_summary_p): Remove set argument.
14821 (output_node_opt_summary): Replace set by encoder.
14822 (output_cgraph_opt_summary): Remove set argument; use
14824 * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
14825 arguments; use the encoder.
14826 * lto-streamer-out.c (lto_output): Remove set and vset argument; use
14828 (produce_symtab): Likewise.
14829 * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
14830 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14831 * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
14833 * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
14834 * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
14835 (ipa_write_summaries_1): Update.
14836 (ipa_write_optimization_summaries_1): Likewise.
14837 (ipa_write_optimization_summaries): Likewise.
14838 * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
14839 (lto_symtab_encoder_iterator): New type.
14840 (lto_symtab_encoder_deref): Make inline.
14841 (output_symtab, referenced_from_other_partition_p,
14842 reachable_from_other_partition_p, referenced_from_this_partition_p,
14843 reachable_from_this_partition_p): Update.
14844 (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
14845 lsei_varpool_node): New inline functions.
14846 (LCC_NOT_FOUND): New macro.
14847 (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
14848 lsei_start_in_partition, lsei_next_function_in_partition,
14849 lsei_start_function_in_partition, lsei_next_variable_in_partition,
14850 lsei_start_variable_in_partition): New inline functions.
14852 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
14854 * config/sh/sh.md (prefetch): Simplify expander. Fix condition to
14856 (*prefetch_media): Move insn below expander.
14857 (*prefetch): Fix condition to allow SH3.
14859 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
14862 * config/sh/sh.md: Add splits for inverted compare and branch
14864 (*cmpeqsi_t): New insn.
14865 (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
14866 (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in
14867 replacement insn list and not in the preparation statements.
14868 (clrt, sett): Add mt_group attribute.
14870 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
14872 PR middle-end/54193
14873 * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
14875 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
14878 * config/sh/predicates.md (mem_index_disp_operand): Check for
14879 arith_reg_operand instead of REG_P.
14881 2012-08-11 Bernd Schmidt <bernds@codesourcery.com>
14883 * reload1.c (replaced_subreg, gen_reload): Add
14884 SECONDARY_MEMORY_NEEDED ifdefs as necessary.
14886 2012-08-11 Jan Hubicka <jh@suse.cz>
14888 * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
14889 symtab_node sectoin name; it confuses plugin.
14891 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
14893 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
14894 index in the va_list_vars bitmap by num_ssa_names.
14896 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
14898 * config/i386/sse.md (xop integer multiply/add insns): Use
14899 register_operand for operand 3 predicate.
14900 (xop_phadd<u>bq): Fix vec_select selectors.
14902 2012-08-11 Martin Jambor <mjambor@suse.cz>
14905 * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
14906 * ipa-inline-analysis.c (agg_position_info): New type.
14907 (add_condition): New parameter aggpos, also store agg_contents, by_ref
14909 (dump_condition): Also dump aggregate conditions.
14910 (evaluate_conditions_for_known_args): Also handle aggregate
14911 conditions. New parameter known_aggs.
14912 (evaluate_properties_for_edge): Gather known aggregate contents.
14913 (inline_node_duplication_hook): Pass NULL known_aggs to
14914 evaluate_conditions_for_known_args.
14915 (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
14916 (unmodified_parm_or_parm_agg_item): New function.
14917 (set_cond_stmt_execution_predicate): Handle values passed in
14919 (set_switch_stmt_execution_predicate): Likewise.
14920 (will_be_nonconstant_predicate): Likewise.
14921 (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
14922 ipa_get_indirect_edge_target.
14923 (estimate_calls_size_and_time): New parameter known_aggs, pass it
14924 recrsively to itself and to estimate_edge_devirt_benefit.
14925 (estimate_node_size_and_time): New vector known_aggs, pass it o
14926 functions which need it.
14927 (remap_predicate): New parameter offset_map, use it to remap aggregate
14929 (remap_edge_summaries): New parameter offset_map, pass it recursively
14930 to itself and to remap_predicate.
14931 (inline_merge_summary): Also create and populate vector offset_map.
14932 (do_estimate_edge_time): New vector of known aggregate contents,
14933 passed to functions which need it.
14934 (inline_read_section): Stream new fields of condition.
14935 (inline_write_summary): Likewise.
14936 * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
14937 contents. Let all local callers pass NULL for known_aggs.
14939 2012-08-11 Jan Hubicka <jh@suse.cz>
14941 * lto-cgraph.c (output_cgraph): Rename to ...
14942 (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
14943 (input_cgraph): Rename to ...
14944 (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
14945 * lto-streamer-out.c (create_output_block): Do not set
14947 (produce_asm): Likewise.
14948 (lto_output_toplevel_asms): Likewise.
14949 (produce_asm_for_decls): Likewise.
14950 (lto_output): Use output_symtab.
14951 * lto-section-in.c (lto_section_name): Update.
14952 * lto-section-out.c (lto_destroy_simple_output_block): Remove
14954 * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
14955 rename LTO_section_cgraph to LTO_section_symtab_nodes.
14956 (struct lto_header): Remove section_type.
14958 2012-08-11 Jan Hubicka <jh@suse.cz>
14960 * cgraph.h (vector types for symtab_node): Add.
14961 * ipa-reference.c (ipa_reference_write_optimization_summary): Update
14962 for new symtab encoder.
14963 (ipa_reference_read_optimization_summary): Likewise.
14964 * lto-cgraph.c (output_varpool): Remove.
14965 (input_cgraph_opt_summary): Take symtab nodes vector as argument.
14966 (LTO_cgraph_tags): Rename to ...
14967 (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
14968 (lto_cgraph_encoder_new): Rename to ...
14969 (lto_symtab_encoder_new): ... this on.
14970 (lto_cgraph_encoder_encode): Rename to ...
14971 (lto_symtab_encoder_encode): ... this one.
14972 (lto_cgraph_encoder_delete): Rename to ...
14973 (lto_symtab_encoder_delete): ... this one.
14974 (lto_cgraph_encoder_deref): Rename to ...
14975 (lto_symtab_encoder_deref): ... this one.
14976 (lto_cgraph_encoder_encode_body_p): Rename to ...
14977 (lto_symtab_encoder_encode_body_p): ... this one.
14978 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
14979 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
14980 lto_varpool_encoder_deref): Remove.
14981 (lto_varpool_encoder_encode_initializer_p): Rename to ...
14982 (lto_symtab_encoder_encode_initializer_p): ... this one.
14983 (lto_set_varpool_encoder_encode_initializer): Rename to ...
14984 (lto_set_symtab_encoder_encode_initializer): ... this one.
14985 (lto_output_edge): Update.
14986 (lto_output_node): Update.
14987 (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
14988 (lto_output_ref): Drop varpool_encoder; update.
14989 (add_node_to): Update.
14990 (add_references): Update.
14991 (output_outgoing_cgraph_edges): Update.
14992 (output_refs): Update.
14993 (compute_ltrans_boundary): Update.
14994 (output_cgraph): Update; output varpools too.
14995 (input_overwrite_node): Update.
14996 (output_varpool): Remove.
14997 (input_node): Update.
14998 (input_ref): Update.
14999 (input_edge): Update.
15000 (input_cgraph_1): Update; input varpool too; unify fixup code.
15001 (input_varpool_1): Remove.
15002 (input_refs): Update.
15003 (input_cgraph): Update.
15004 (output_node_opt_summary): Update.
15005 (input_cgraph_opt_section): Update.
15006 (input_cgraph_opt_summary): Update.
15007 * ipa-pure-const.c (pure_const_write_summary): Update.
15008 (pure_const_read_summary): Update.
15009 * lto-streamer-out.c (lto_write_tree): Update.
15010 (lto_output): Likewise.
15011 (produce_symtab): Update.
15012 (produce_asm_for_decls): Update.
15013 * ipa-inline-analysis.c (inline_read_section): Update.
15014 (inline_write_summary): Update.
15015 * ipa-prop.c (ipa_write_node_info): Update.
15016 (ipa_prop_read_section): Update.
15017 * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
15018 (lto_symtab_encoder_d): ... this one; add initializer.
15019 (lto_cgraph_encoder_t): Rename to ...
15020 (lto_symtab_encoder_t): ... this one.
15021 (lto_cgraph_encoder_size): Rename to ...
15022 (lto_symtab_encoder_size): ... this one.
15023 (lto_varpool_encoder_d): ... remove.
15024 (lto_varpool_encoder_t): Remove.
15025 (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
15026 add symtab_node_encoder.
15027 (lto_file_decl_data): Likewise.
15028 (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
15029 lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
15030 lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
15031 lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
15032 lto_varpool_encoder_lookup, lto_varpool_encoder_new,
15033 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15034 lto_varpool_encoder_encode_initializer_p): Remove.
15035 (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
15036 lto_symtab_encoder_t, lto_symtab_encoder_encode,
15037 lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
15038 lto_symtab_encoder_encode_initializer_p): New.
15040 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
15042 * config/i386/i386.md (isa): Add fma and fma4.
15043 (enabled): Handle fma and fma4.
15044 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
15045 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
15046 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
15047 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
15048 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
15049 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
15051 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
15053 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
15054 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
15055 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
15057 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
15059 * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
15060 variants of PLUS and MULT simple LEA patterns. Disable PLUS
15061 patterns for TARGET_OPT_AGU.
15063 2012-08-10 Richard Guenther <rguenther@suse.de>
15065 * Makefile.in (OBJS): Remove matrix-reorg.o.
15066 (matrix-reorg.o): Remove dependence rule.
15067 (GTFILES): Remove matrix-reorg.c.
15068 * matrix-reorg.c: Remove.
15069 * passes.c (init_optimization_passes): Do not schedule
15070 pass_ipa_matrix_reorg.
15071 * tree-pass.h (pass_ipa_matrix_reorg): Remove.
15072 * common.opt (fipa-matrix-reorg): Stub out.
15073 * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
15075 2012-08-10 Richard Guenther <rguenther@suse.de>
15077 PR middle-end/54219
15078 * fold-const.c (fold_ternary_loc): Do not reverse the mask
15079 when canonicalizing it when folding VEC_PERM_EXPR.
15081 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15083 PR middle-end/54211
15084 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
15085 Use cand_type to determine whether pointer arithmetic will be generated.
15087 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15089 * doc/sourcebuild.texi: Document long_neq_int effective target.
15091 2012-08-10 Richard Guenther <rguenther@suse.de>
15093 PR tree-optimization/54109
15094 * tree-ssa-forwprop.c
15095 (forward_propagate_addr_into_variable_array_index): Remove.
15096 (forward_propagate_addr_expr_1): Adjust.
15098 2012-08-10 Richard Guenther <rguenther@suse.de>
15100 * tree-cfg.c (dump_function_to_file): Make sure to dump
15101 anonymous SSA names when there are no local decls.
15103 2012-08-10 Steven Bosscher <steven@gcc.gnu.org>
15105 * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
15106 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
15107 (mark_phi_for_rewrite): Likewise.
15108 (compute_global_livein): Use VEC_reserve outside the innermost
15109 loop and VEC_quick_push instead of VEC_safe_push in that loop.
15110 (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
15111 of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to
15112 the correct initial size.
15114 2012-08-10 Richard Guenther <rguenther@suse.de>
15116 * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
15117 (need_creation): Remove.
15118 (get_representative_for): Use anonymous named SSA names.
15119 (create_expression_by_pieces): Likewise.
15120 (insert_into_preds_of_block): Likewise.
15121 (init_pre): Do not init removed vars.
15122 (fini_pre): Do not free need_creation.
15123 * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
15125 * tree-ssa-loop-manip.c (create_iv): Likewise.
15126 * value-prof.c (gimple_divmod_fixed_value): Likewise.
15127 (gimple_mod_pow2): Likewise.
15128 (gimple_mod_subtract): Likewise.
15129 (gimple_ic): Likewise.
15130 (gimple_stringop_fixed_value): Likewise.
15131 * tree-ssa-phiopt.c (condstoretemp): Remove.
15132 (tree_ssa_phiopt_worker): Use anonymous named SSA names.
15133 (conditional_replacement): Likewise.
15134 (abs_replacement): Likewise.
15135 (cond_store_replacement): Likewise.
15136 (cond_if_else_store_replacement_1): Likewise.
15137 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
15138 (rewrite_bittest): Likewise.
15139 * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
15140 and build anonymous SSA names.
15141 (undistribute_ops_list): Adjust.
15142 (eliminate_redundant_comparison): Use anonymous SSA names.
15143 (rewrite_expr_tree_parallel): Likewise.
15144 (get_reassoc_pow_ssa_name): Remove.
15145 (attempt_builtin_powi): Adjust.
15146 (reassociate_bb): Likewise.
15147 * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
15148 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15149 (build_arrays): Likewise.
15150 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
15151 (create_tailcall_accumulator): Likewise.
15152 * tree-vect-generic.c (expand_vector_divmod): Likewise.
15153 * tree-profile.c (gcov_type_tmp_var): Remove.
15154 (gimple_init_edge_profiler): Do not initialize it and use anonymous
15156 (gimple_gen_ic_profiler): Likewise.
15157 (tree_profiling): Adjust.
15158 * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
15159 * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
15160 (powi_as_mults_1): Likewise.
15161 (powi_as_mults): Likewise.
15162 (build_and_insert_call): Adjust.
15163 (build_and_insert_binop): Likewise.
15164 (build_and_insert_ref): Likewise.
15165 (build_and_insert_cast): Likewise.
15166 (gimple_expand_builtin_pow): Likewise.
15167 (gimple_expand_builtin_cabs): Likewise.
15168 (execute_optimize_bswap): Use anonymous SSA names.
15169 (convert_mult_to_widen): Likewise.
15170 (convert_plusminus_to_widen): Likewise.
15171 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
15172 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
15173 * tree-if-conv.c (ifc_temp_var): Likewise.
15174 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
15175 * tree-parloops.c (take_address_of): Likewise.
15176 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
15177 (vect_permute_load_chain): Likewise.
15178 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
15179 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
15180 (vect_handle_widen_op_by_const): Likewise.
15181 (vect_operation_fits_smaller_type): Likewise.
15182 (vect_recog_over_widening_pattern): Likewise.
15183 * tree-vect-stmts.c (vect_init_vector): Likewise.
15184 * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
15185 (simplify_float_conversion_using_ranges): Likewise.
15187 2012-08-10 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15189 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
15190 target mask of __builtin_ia32_rdseed_di_step builtin.
15192 2012-08-10 Richard Guenther <rguenther@suse.de>
15194 PR tree-optimization/54027
15195 * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
15196 and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
15197 to handle LSHIFT_EXPR with a constant.
15199 2012-08-10 Richard Guenther <rguenther@suse.de>
15201 * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
15202 is recorded as var.
15203 (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
15204 or its SSA_NAME_VAR.
15205 (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
15206 * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
15207 SSA names by passing a type instead of a variable decl.
15208 (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
15209 (copy_ssa_name_fn): Handle anonymous SSA names.
15210 (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
15211 * tree-flow-inline.h (make_temp_ssa_name): New inline function.
15212 * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
15213 dump SSA names without a name as <anon>.
15214 * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
15215 going to expand a decl.
15216 (gimple_expand_cfg): Assign all SSA names of a partition the
15217 decl we created for its leader.
15218 * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
15219 (verify_ssa_name): Handle anonymous SSA names.
15220 (verify_def): Likewise.
15221 * tree-predcom.c (eliminate_temp_copies): Likewise.
15222 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
15223 * tree-ssa-live.c (var_map_base_init): Compute conflicts for
15224 anonymous SSA names with the same type.
15225 (mark_all_vars_used_1): Handle anonymous SSA names.
15226 (verify_live_on_entry): Likewise.
15227 * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
15228 (create_outofssa_var_map): Adjust with respect to conflicts we
15229 compute for anonymous SSA names. Do not restrict abnormal
15231 (coalesce_partitions): Do not restrict abnormal coalescing.
15232 Assert we only ever coalesce variables we computed conflicts for.
15233 * tree-ssa-ter.c (process_replaceable): Do not restrict TER
15234 of anonymous names.
15235 * expr.c (expand_expr_real_1): Handle anonymous SSA names
15236 expanded from IVOPTs by creating a raw REG here.
15237 * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
15238 (dump_function_to_file): Dump anonymous SSA names alongside
15239 with their types in the variable list.
15240 (verify_gimple_return): Guard use of SSA_NAME_VAR.
15241 * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
15242 (rewrite_into_ssa): Make SSA names anonymous.
15243 * tree-ssa-structalias.c (alias_get_name): Rewrite.
15244 * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
15246 (warn_uninitialized_phi): Likewise.
15247 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
15248 anonymous SSA names to the expander.
15249 (determine_iv_cost): Anonymous SSA names are artificial.
15250 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
15251 Handle anonymous SSA names.
15252 * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
15253 or if NULL, the type of the SSA name.
15254 * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
15255 remap names as anonymous where appropriate.
15256 (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
15257 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
15258 according to what we create conflicts for in out-of-SSA
15260 * tree-parloops.c (separate_decls_in_region_name): Handle
15261 anonymous SSA names.
15262 (add_field_for_name): Likewise.
15263 * tree.c (get_name): Handle SSA names.
15264 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
15266 * tree-vect-loop-manip.c (adjust_debug_stmts): Use
15268 * tree-sra.c (create_access_replacement): Give up generating
15269 a DECL_DEBUG_EXPR for SSA names in the memory reference.
15270 (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
15271 * tree-complex.c (get_component_ssa_name): Handle anonymous
15273 (set_component_ssa_name): Likewise.
15274 * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
15275 * tree-object-size.c (collect_object_sizes_for): Handle
15276 uninitialized SSA names properly.
15277 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
15279 * ipa-split.c (test_nonssa_use): Likewise.
15280 (consider_split): Likewise.
15281 (mark_nonssa_use): Likewise.
15283 2012-08-09 Jan Hubicka <jh@suse.cz>
15285 PR middle-end/54146
15286 * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
15287 parameter; honnor it.
15288 * ipa-inline.c (recursive_inlining): Update call
15290 (inline_small_functions): Likewise.
15291 (ipa_inline): Likewise.
15292 (inline_always_inline_functions): Likewise.
15293 (early_inline_small_functions): Likewise.
15294 (flatten_function): Do separate update of summary info.
15295 * ipa-inline.h (inline_update_overall_summary): Declare.
15296 (inline_call): Update.
15297 * ipa-inline-analysis.c (inline_merge_summary): Break out
15298 updating code to ...
15299 (inline_update_overall_summary): Likewise.
15301 2012-08-09 Richard Henderson <rth@redhat.com>
15303 * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
15305 * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
15306 performing the compare for the restart loop.
15308 2012-08-09 DJ Delorie <dj@redhat.com>
15310 * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
15311 SET before extracting SET_SRC.
15312 (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
15314 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
15317 * config/sh/sh-protos (shift_insns_rtx): Delete.
15318 (sh_ashlsi_clobbers_t_reg_p): Add.
15319 * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
15320 ext_shift_amounts): Merge arrays of ints to array of structs.
15321 Adapt usage of arrays throughout the file.
15322 (shift_insns_rtx): Delete unused function.
15323 (sh_ashlsi_clobbers_t_reg_p): New function.
15324 * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
15325 final shift sequence will clobber T_REG.
15326 (ashlsi3_n): Split only if the final shift sequence will not
15328 (ashlsi3_n_clobbers_t): New insn_and_split.
15330 2012-08-09 Steven Bosscher <steven@gcc.gnu.org>
15332 * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
15333 instead of looking at sbitmap n_bits member directly.
15334 * gcse.c (hoist_code): Likewise.
15335 * sched-rgn.c (split_edges): Likewise.
15336 * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
15337 update_ssa): Likewise.
15339 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
15341 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
15342 single unit register class for classes that contain registers form
15344 (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
15345 INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
15347 2012-08-09 Martin Jambor <mjambor@suse.cz>
15349 * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
15350 offset, updated all users. New field agg_contents.
15351 * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
15352 (ipa_pass_through_data): New field agg_preserved.
15353 (ipa_ancestor_jf_data): Likewise.
15354 (ipa_member_ptr_cst): Removed.
15355 (ipa_agg_jf_item): New type.
15356 (ipa_agg_jump_function): Likewise.
15357 (ipa_jump_func): New field agg. Removed field member_cst.
15358 (ipa_get_jf_pass_through_agg_preserved): New function.
15359 (ipa_get_jf_ancestor_agg_preserved): Likewise.
15360 (ipa_get_jf_member_ptr_pfn): Removed.
15361 (ipa_find_agg_cst_for_param): Declare.
15362 (ipa_load_from_parm_agg): Likewise.
15363 * ipa-prop.c (param_analysis_info): Fields modified and
15364 visited_statements rename to parm_modified and parm_visited_statements
15365 respectively, added fields ref_modified, ref_visited_statements,
15366 pt_modified and pt_visited_statements.
15367 (ipa_print_node_jump_functions_for_edge): Do not dump const member
15368 functions. Dump agg_preserved flags and aggregate jump functions.
15369 (ipa_set_jf_simple_pass_through): Set also agg_preserved.
15370 (ipa_set_ancestor_jf): Likewise.
15371 (ipa_set_jf_arith_pass_through): Clear agg_preserved.
15372 (ipa_set_jf_member_ptr_cst): Removed.
15373 (is_parm_modified_before_stmt): Logic reversed, renamed to
15374 parm_preserved_before_stmt_p. Cache visited bitmap only for
15375 naked DECL parameters. All callers updated.
15376 (load_from_unmodified_param): Allow NULL parms_ainfo.
15377 (parm_ref_data_preserved_p): New function.
15378 (parm_ref_data_pass_through_p): Likewise.
15379 (ipa_load_from_parm_agg_1): Likewise.
15380 (ipa_load_from_parm_agg): Likewise.
15381 (compute_complex_assign_jump_func): Check if aggregate contents are
15383 (compute_complex_ancestor_jump_func): Likewise.
15384 (compute_scalar_jump_functions): Removed.
15385 (type_like_member_ptr_p): Also check field position are known and sane.
15386 (compute_pass_through_member_ptrs): Removed.
15387 (determine_cst_member_ptr): Likewise.
15388 (ipa_known_agg_contents_list): New type.
15389 (determine_known_aggregate_parts): New function.
15390 (compute_cst_member_ptr_arguments): Removed.
15391 (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
15392 functions (scalar, aggregate and member pointer).
15393 (ipa_get_member_ptr_load_param): Incorporate into
15394 ipa_get_stmt_member_ptr_load_param, also pass back an offset.
15395 (ipa_note_param_call): Clear agg_contents.
15396 (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
15397 from aggregates. In such cases, store offset of the called field.
15398 (ipa_analyze_node): Initialize new fields of param_analysis_info.
15399 (update_jump_functions_after_inlining): Handle aggregate contents.
15400 (ipa_find_agg_cst_for_param): New function.
15401 (try_make_edge_direct_simple_call): Handle called aggregate values.
15402 (update_indirect_edges_after_inlining): Make sure aggregate preserving
15403 jump functions comply with type compatibility requirements.
15404 (ipa_edge_duplication_hook): Copy also aggregate jump functions.
15405 (ipa_write_jump_function): Stream agg_preserved flags and aggregate
15406 jump functions. Do not stream member pointer constant jump functions.
15407 (ipa_read_jump_function): Likewise.
15408 (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
15410 (ipa_read_indirect_edge_info): Likewise.
15412 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
15415 * config/sh/predicates.md (mem_index_disp_operand): New predicate.
15416 * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
15417 mem_index_disp_operand predicate.
15419 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
15422 * config/sh/sh.md: Add negc extu sequence peephole.
15423 (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
15424 (*movrt_negc): New insn.
15425 * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
15427 * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
15428 sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
15430 (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
15432 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
15435 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
15436 Use arith_reg_operand predicate instead of register_operand.
15437 * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
15438 only mem, simplify.
15440 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
15442 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
15443 (alpha_pad_function_end): ... this. Also insert NOP between
15444 sibling call and GP load.
15445 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
15447 2012-08-09 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15449 * config/i386/adxintrin.h: Remove guarding __ADX__ check.
15450 * config/i386/x86intrin.h: Likewise.
15451 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
15452 OPTION_MASK_ISA_ADX from needed options for
15453 __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
15454 (ix86_expand_builtin): Use add<mode>3_carry in expanding of
15455 IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
15457 2012-08-09 Andrey Belevantsev <abel@ispras.ru>
15459 PR rtl-optimization/53701
15460 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
15461 Process not only expr's vinsns but all old vinsns from expr's
15462 history of changes.
15463 (update_and_record_unavailable_insns): Clarify comment.
15465 2012-08-09 Bernd Schmidt <bernds@codesourcery.com>
15467 * reload.c (find_valid_class_1): New static function.
15468 (push_reload): Use it when reloading a SYMBOL_REG as the inner
15469 of a subreg. Keep better track of needed classes for the
15470 secondary memory case.
15471 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
15473 * reload1.c (replaced_subreg): New static function.
15474 (gen_reload): Use it when deciding whether to use secondary
15477 2012-08-09 Richard Guenther <rguenther@suse.de>
15479 * tree.h (SSA_VAR_P): Simplify.
15480 * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
15481 * fold-const.c (fold_comparison): Check for default def first
15482 before checking for PARM_DECL.
15483 * tree-complex.c (get_component_ssa_name): Likewise.
15484 * tree-inline.c (remap_ssa_name): Likewise.
15485 * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
15486 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
15487 (find_what_p_points_to): Likewise.
15488 * tree-ssa-operands.c (add_stmt_operand): Simplify.
15490 2012-08-08 Joseph Myers <joseph@codesourcery.com>
15492 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
15493 IOR to a constant if one operand has side effects.
15495 2012-08-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15497 * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
15498 value operand as MEM to expand_atomic_compare_and_swap.
15500 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
15501 nonimmediate_operand for old value; generate load and store if
15503 * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
15506 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
15508 PR middle-end/54146
15509 * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
15511 * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
15512 a gimple_reg if checking is enabled.
15513 (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
15514 * tree-into-ssa (compute_global_livein): Change the worklist
15515 type from an array to a VEC.
15517 2012-08-08 Richard Guenther <rguenther@suse.de>
15519 * tree-ssa-operands.h (virtual_operand_p): Declare.
15520 * tree-ssa-operands.c (virtual_operand_p): New predicate.
15521 * gimple.c (is_gimple_reg): Use virtual_operand_p.
15522 * tree-into-ssa.c (prepare_block_for_update): Likewise.
15523 * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
15525 2012-08-08 Richard Guenther <rguenther@suse.de>
15527 * tree-call-cdce.c (check_pow): Simplify.
15528 (gen_conditions_for_pow_int_base): Likewise.
15529 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
15530 virtual operands here.
15531 * tree-ssa-operands.c (get_name_decl): Remove unused function.
15532 * gimplify.c (gimple_regimplify_operands): Remove dead code.
15533 * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
15534 * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
15535 * value-prof.c (gimple_ic): Use duplicate_ssa_name.
15536 (gimple_stringop_fixed_value): Likewise.
15537 * tree.c (needs_to_live_in_memory): Remove SSA name handling.
15538 * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
15539 in the bitmap alongside shifted DECL_UIDs.
15540 (va_list_counter_struct_op): Likewise.
15541 (va_list_ptr_read): Likewise.
15542 (va_list_ptr_write): Likewise.
15543 (check_va_list_escapes): Likewise.
15544 (check_all_va_list_escapes): Likewise.
15545 (execute_optimize_stdarg): Likewise.
15546 * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
15548 2012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
15549 H.J. Lu <hongjiu.lu@intel.com>
15551 PR rtl-optimization/54157
15552 * combine.c (gen_lowpart_for_combine): Don't return identity
15553 for CONST or symbolic reference.
15555 2012-08-08 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15557 * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
15558 (OPTION_MASK_ISA_ADX_UNSET): Likewise.
15559 (ix86_handle_option): Handle madx option.
15560 * config.gcc (i[34567]86-*-*): Add adxintrin.h.
15561 (x86_64-*-*): Likewise.
15562 * config/i386/adxintrin.h: New header.
15563 * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
15565 * config/i386/i386-builtin-types.def
15566 (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
15567 (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
15568 * config/i386/i386-c.c: Define __ADX__ if needed.
15569 * config/i386/i386.c (ix86_target_string): Define -madx option.
15571 (ix86_option_override_internal): Handle new option.
15572 (ix86_valid_target_attribute_inner_p): Add OPT_madx.
15573 (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
15574 IX86_BUILTIN_ADDCARRYX64.
15575 (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
15576 (ix86_expand_builtin): Handle these built-ins.
15577 (ix86_expand_args_builtin): Handle new function types.
15578 * config/i386/i386.h (TARGET_ADX): New.
15579 * config/i386/i386.md (adcx<mode>3): New define_insn.
15580 * config/i386/i386.opt (madx): New.
15581 * config/i386/x86intrin.h: Include adxintrin.h.
15583 2012-08-08 Nick Clifton <nickc@redhat.com>
15585 * config/rl78/rl78.c: Include tree-pass.h.
15587 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
15589 PR middle-end/54146
15590 * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
15591 (build_insn_chain): Make live_subregs_used a bitmap.
15592 Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
15593 Use sbitmap_free to free the live_subreg sbitmaps.
15595 PR middle-end/54146
15596 * ifcvt.c: Include pointer-set.h.
15597 (cond_move_process_if_block): Change type of then_regs and
15598 else_regs from alloca'd array to pointer_sets.
15599 (check_cond_move_block): Update for this change.
15600 (cond_move_convert_if_block): Likewise.
15601 * Makefile.in: Fix dependencies for ifcvt.o.
15603 2012-08-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15605 * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
15606 (incr_vec): New static var.
15607 (incr_vec_len): Likewise.
15608 (address_arithmetic_p): Likewise.
15609 (stmt_cost): Remove dead assignment.
15610 (dump_incr_vec): New function.
15611 (cand_abs_increment): Likewise.
15612 (lazy_create_slsr_reg): Likewise.
15613 (incr_vec_index): Likewise.
15614 (count_candidates): Likewise.
15615 (record_increment): Likewise.
15616 (record_increments): Likewise.
15617 (unreplaced_cand_in_tree): Likewise.
15618 (optimize_cands_for_speed_p): Likewise.
15619 (lowest_cost_path): Likewise.
15620 (total_savings): Likewise.
15621 (analyze_increments): Likewise.
15622 (ncd_for_two_cands): Likewise.
15623 (nearest_common_dominator_for_cands): Likewise.
15624 (profitable_increment_p): Likewise.
15625 (insert_initializers): Likewise.
15626 (introduce_cast_before_cand): Likewise.
15627 (replace_rhs_if_not_dup): Likewise.
15628 (replace_one_candidate): Likewise.
15629 (replace_profitable_candidates): Likewise.
15630 (analyze_candidates_and_replace): Handle candidates with SSA-name
15633 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
15635 * cfg.c (debug_bb): Do not set TDF_BLOCKS.
15636 * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
15637 * pretty-print.c (pp_base_flush): Do not add a newline, and do not
15638 clear pp_needs_newline.
15639 * pretty-print.h (pp_newline_and_flush): New macro with the behavior
15640 of pp_base_flush before the above change.
15641 * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
15642 instead of pp_flush.
15643 * diagnostic.c (diagnostic_finish): Likewise.
15644 (diagnostic_report_diagnostic): Likewise.
15645 (verbatim): Likewise.
15646 (error_recursion): Likewise.
15647 * tree-pretty-print.c (print_generic_stmt): Likewise.
15648 (print_generic_stmt_indented): LIkewise.
15649 * gimple-pretty-print.c (print_gimple_stmt): Likewise.
15650 (print_gimple_seq): Likewise.
15651 (gimple_dump_bb_buff): Likewise.
15653 2012-08-07 Uros Bizjak <ubizjak@gmail.com>
15656 * var-tracking.c (var_lowpart): Exit early for matched modes.
15658 2012-08-07 Richard Henderson <rth@redhat.com>
15660 * config/s390/s390.c (s390_emit_compare_and_swap): Update for
15661 atomic_compare_and_swapsi_internal name change.
15662 (s390_expand_insv): Try RISBG last, not requiring operands in
15663 registers but forcing them there. Try a limited form of ICM.
15664 (s390_two_part_insv): New.
15665 (s390_expand_cs_hqi): Use it. Update for atomic optabs.
15666 * config/s390/s390.md (UNSPEC_MOVA): New.
15667 (TDSI): Remove mode iterator.
15668 (DGPR, DINT, TDI): New mode iterators.
15669 (td): New mode attribute.
15670 (mem_signal_fence): New.
15671 (mem_thread_fence): Rename from memory_barrier; update for model arg.
15672 (mem_thread_fence_1): Rename from *memory_barrier.
15673 (atomic_load<DINT>, atomic_store<DINT>): New expanders.
15674 (atomic_loaddi_1, atomic_loadti_1): New.
15675 (atomic_storedi_1, atomic_storeti_1): New.
15676 (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
15677 (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
15678 (atomic_compare_and_swap<DGPR>_internal): New.
15679 (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
15680 (*atomic_compare_and_swap<TDI>_1): New.
15681 (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
15682 (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
15683 (atomic_fetch_<ATOMIC_Z196><GPR>): New.
15684 (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
15685 (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
15686 (sync_new_<ATOMIC><HQI>): Remove.
15687 (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
15688 (atomic_<ATOMIC>_fetch<HQI>): New.
15689 (sync_lock_test_and_set<HQI>): Remove.
15690 (atomic_exchange<HQI>): New.
15692 2012-08-07 Paul Brook <paul@codesourcery.com>
15693 Sandra Loosemore <sandra@codesourcery.com>
15695 * except.c (switch_to_exception_section): Place tables for
15696 DECL_ONE_ONLY functions in comdat groups.
15698 2012-08-07 Richard Guenther <rguenther@suse.de>
15700 * tree-flow.h (copy_ssa_name_fn): New function.
15701 (duplicate_ssa_name_fn): Likewise.
15702 * tree-flow-inline.h (copy_ssa_name): New function.
15703 (duplicate_ssa_name): Likewise.
15704 * tree-ssanames.c (copy_ssa_name_fn): New function.
15705 (duplicate_ssa_name): Rename to ...
15706 (duplicate_ssa_name_fn): ... this and adjust.
15707 * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
15708 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
15710 (slpeel_update_phi_nodes_for_guard2): Likewise.
15711 (slpeel_tree_peel_loop_to_edge): Likewise.
15712 (vect_loop_versioning): Likewise.
15713 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
15714 (create_parallel_loop): Likewise.
15715 * ipa-split.c (split_function): Likewise.
15716 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
15717 (vect_create_epilog_for_reduction): Likewise.
15718 * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
15719 (vect_setup_realignment): Likewise.
15720 * tree-vect-stmts.c (vectorizable_load): Likewise.
15721 * tree-switch-conversion.c (build_one_array): Likewise.
15722 (gen_def_assigns): Likewise.
15723 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
15724 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
15725 create_zero_dim_array with the SSA name.
15726 (rewrite_phi_out_of_ssa): Likewise.
15727 (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
15729 2012-08-07 Richard Guenther <rguenther@suse.de>
15731 * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
15732 bit of the old name when we clear the slot.
15733 * tree-ssa-live.c (remove_unused_locals): Release any default
15734 def associated with an unused var.
15735 * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
15737 2012-08-07 Richard Guenther <rguenther@suse.de>
15739 * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
15740 we rewrite into SSA form.
15741 (rewrite_enter_block): Adjust.
15742 * gimple-iterator.c (gsi_replace): Also allow replacement with
15743 a stmt without a lhs.
15744 * tree-ssa-live.c (remove_unused_locals): Remove code handling
15745 clobbers of SSA names.
15746 * tree-nested.c (convert_local_reference_stmt): Remove clobbers
15747 for variables we access through the local chain.
15748 * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
15749 clobber full decls only.
15751 2012-08-07 Richard Guenther <rguenther@suse.de>
15753 * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
15754 * tree-phinodes.c (make_phi_node): Allow a NULL var.
15755 * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
15756 * tree-complex.c (update_phi_components): Likewise.
15757 * tree-ssa-loop-manip.c (create_iv): Likewise.
15758 (add_exit_phis_edge): Likewise.
15759 (split_loop_exit_edge): Likewise.
15760 (tree_transform_and_unroll_loop): Likewise.
15761 * value-prof.c (gimple_ic): Likewise.
15762 (gimple_stringop_fixed_value): Likewise.
15763 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15764 * omp-low.c (expand_parallel_call): Likewise.
15765 (expand_omp_for_static_chunk): Likewise.
15766 (expand_omp_atomic_pipeline): Likewise.
15767 * tree-parloops.c (create_phi_for_local_result): Likewise.
15768 (transform_to_exit_first_loop): Likewise.
15769 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15770 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
15771 * tree-predcom.c (initialize_root_vars): Likewise.
15772 (initialize_root_vars_lm): Likewise.
15773 * sese.c (sese_add_exit_phis_edge): Likewise.
15774 * gimple-streamer-in.c (input_phi): Likewise.
15775 * tree-inline.c (copy_phis_for_bb): Likewise.
15776 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
15777 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
15778 (gimple_duplicate_bb): Likewise.
15780 2012-08-07 Nick Clifton <nickc@redhat.com>
15782 * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
15783 stack usage if requested.
15785 2012-08-06 Cary Coutant <ccoutant@google.com>
15787 * cgraphunit.c (assemble_thunk): Add source line info.
15788 * final.c (final): Check for non-null cfg pointer.
15790 2012-08-06 Sandra Loosemore <sandra@codesourcery.com>
15791 Maxim Kuvyrkov <maxim@codesourcery.com>
15792 Julian Brown <julian@codesourcery.com>
15794 * config/mips/24k.md (r24k_unknown_store): Delete special handling
15796 (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
15797 (r24k_int_cop, r24k_int_multi)
15798 (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
15799 (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
15800 instead of store_data_bypass_p.
15801 * config/mips/74k.md (r74k_int_store): Delete special handling for
15803 (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
15804 Use mips_store_data_bypass_p instead of store_data_bypass_p.
15806 2012-08-06 Marc Glisse <marc.glisse@inria.fr>
15808 PR tree-optimization/51938
15809 PR tree-optimization/52005
15810 * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
15811 inverted conditions.
15812 (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
15813 (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
15814 and !a||b patterns.
15816 2012-08-06 Olivier Hainque <hainque@adacore.com>
15818 * tree-emutls.c (new_emutls_decl): When a var_section is requested by
15819 the target, attach the new decl to that, not to the template section.
15821 2012-08-06 Tom de Vries <tom@codesourcery.com>
15823 * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
15826 2012-08-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15828 * doc/invoke.texi: Document AMD btver2.
15829 * doc/extend.texi: Document AMD btver1 and btver2.
15831 2012-08-04 Sandra Loosemore <sandra@codesourcery.com>
15832 Richard Sandiford <rdsandiford@googlemail.com>
15834 * config/mips/mips.c (mips_option_override): Check -fpic
15835 for compatibility with -mabicalls and ABI.
15837 2012-08-04 Catherine Moore <clm@codesourcery.com>
15838 Sandra Loosemore <sandra@codesourcery.com>
15840 * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
15841 (ir_xlr_alu): Remove clz.
15842 * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
15844 2012-08-04 Richard Earnshaw <rearnsha@arm.com>
15846 * arm.c (arm_gen_constant): Use SImode when preparing operands for
15849 2012-08-04 Uros Bizjak <ubizjak@gmail.com>
15851 * config/i386/i386.h (QI_REGNO_P): New define.
15852 (ANY_QI_REGNO_P): Ditto.
15853 (GENERAL_REGNO_P): Use IN_RANGE macro.
15854 (QI_REG_P): Use QI_REGNO_P.
15855 (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
15856 (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
15857 * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
15858 (x86_extended_QIreg_mentioned_p): Ditto. Also check if
15859 register is a general register.
15861 2012-08-03 Uros Bizjak <ubizjak@gmail.com>
15863 * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
15864 incdec_operand predicate to return INC or DEC insn mnemonic.
15865 Add %K operand modifier.
15866 (atomic_add<mode>): Use incdec_operand predicate to
15867 return INC or DEC insn mnemonic.
15868 (atomic_dec<mode>): Ditto.
15870 2012-08-03 Michael Matz <matz@suse.de>
15872 PR tree-optimization/54146
15873 * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
15874 (add_scope_conflicts): Iterate in RPO order.
15875 (add_stack_protection_conflicts): Iterate over the other triangle.
15876 (fini_vars_expansion): Clear stack_vars_sorted.
15878 2012-08-03 Marc Glisse <marc.glisse@inria.fr>
15880 PR tree-optimization/30318
15881 * double-int.c (mul_double_wide_with_sign): New function.
15882 (mul_double_with_sign): Call the new function.
15883 * double-int.h (mul_double_wide_with_sign): Declare the new function.
15884 * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
15885 Handle integer types that wrap on overflow.
15886 (quad_int_cmp): New helper function.
15887 (quad_int_pair_sort): Likewise.
15889 2012-08-03 Richard Guenther <rguenther@suse.de>
15891 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
15892 is_gimple_reg on the SSA name, not its variable.
15893 (vect_update_ivs_after_vectorizer): Likewise.
15894 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
15895 * tree-if-conv.c (if_convertible_phi_p): Likewise.
15896 (predicate_scalar_phi): Likewise.
15897 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
15898 (vect_analyze_scalar_cycles_1): Likewise.
15899 * tree-ssa-live.c (register_ssa_partition_check): Likewise.
15900 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
15901 * tree-ssa-reassoc.c (phi_rank): Likewise.
15902 * tree-parloops.c (separate_decls_in_region_name): Use
15903 replace_ssa_name_symbol.
15904 * tree-predcom.c (base_names_in_chain_on): Likewise.
15905 * matrix-reorg.c (update_type_size): Query the type of the SSA name,
15907 * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
15908 (create_mul_imm_cand): Likewise.
15909 (create_add_ssa_cand): Likewise.
15910 (create_add_imm_cand): Likewise.
15911 (slsr_process_add): Likewise.
15912 * tree-inline.c (remap_ssa_name): Do not set the type of the
15914 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
15915 Check for default def first.
15917 2012-08-04 Steven Bosscher <steven@gcc.gnu.org>
15919 * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
15921 * sched-vis.c (print_pattern): Handle SEQUENCE also.
15923 2012-08-02 Richard Henderson <rth@redhat.com>
15927 * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
15928 * cfgexpand.c (gimple_expand_cfg): Initialise it.
15929 * explow.c (allocate_dynamic_stack_space): Set it. Simplify
15930 alignment requirements given the known alignment of dynamic_offset.
15931 * function.c (instantiate_virtual_regs): Align dtnamic_offset.
15933 2012-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
15935 * cfgexpand.c (expand_debug_locations): Encapsulate test for
15936 CONST_DOUBLE in macro.
15937 * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
15938 * cprop.c (implicit_set_cond_p): Ditto.
15939 * cselib.c (rtx_equal_for_cselib_1): Ditto.
15940 * expmed.c (expand_mult): Ditto.
15941 * expr.c (convert_modes): Ditto.
15942 * ira-costs.c (record_reg_classes): Ditto.
15943 * ira-lives.c (single_reg_class): Ditto.
15944 * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
15945 * print-rtl.c (print_rtx): Ditto.
15946 * recog.c (simplify_while_replacing, const_double_operand)
15947 (asm_operand_ok, constrain_operands): Ditto.
15948 * reg-stack.c (subst_stack_regs_pat): Ditto.
15949 * reload.c (find_reloads, find_equiv_reg): Ditto.
15950 * rtlanal.c (replace_rtx): Remove test.
15951 * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
15952 test for CONST_DOUBLE in macro.
15953 * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
15954 (simplify_unary_operation_1, simplify_const_unary_operation)
15955 (simplify_binary_operation_1, simplify_const_binary_operation)
15956 (simplify_relational_operation_1)
15957 (simplify_const_relational_operations)
15958 (implify_subreg): Ditto.
15959 * varasm.c (output_constant_pool_2): Ditto.
15960 * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
15961 * rtl.def (CONST_DOUBLE): Updated comments.
15963 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
15966 * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
15967 * config/mips/mips.c (mips_strip_unspec_address): Make extern.
15968 (mips16_rewrite_pool_constant): Make a copy of the pool constant
15969 before adding to a PC-relative table.
15970 (mips16_lay_out_constants): Add a SPLIT_P parameter.
15971 (mips16_load_branch_target, mips16_split_long_branches): New functions.
15972 (mips_reorg): Update call to mips16_lay_out_constants.
15973 Call mips16_split_long_branches.
15974 * config/mips/predicates.md (pc_or_label_operand): Delete.
15975 * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
15976 Move the extended_mips16 handling further down.
15977 (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
15978 with explicit label_ref and pc. Follow the usual operand numbering.
15979 (*branch_equality<mode>_mips16_inverted): New pattern.
15980 (*jump_mips16): Add length attribute.
15981 (indirect_jump_and_restore_<mode>): New pattern.
15982 (consttable_int): Call mips_strip_unspec_address on the operand.
15984 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
15986 * recog.c (split_insn): Copy the original SET_SRC before using
15989 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
15991 * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
15993 2012-08-02 Marc Glisse <marc.glisse@inria.fr>
15995 PR tree-optimization/53805
15996 * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
15997 UNORDERED_EXPR even for trapping floating point.
15999 2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
16001 PR middle-end/53321
16002 PR middle-end/53865
16003 * ipa-inline-analysis.c (inline_free_summary): Return if
16004 inline_edge_summary_vec is NULL.
16006 * ipa-split.c (execute_split_functions): Check if a function
16007 is inlinable only if inline_edge_summary_vec != NULL.
16009 * ipa.c (symtab_remove_unreachable_nodes): Restore
16010 cgraph_propagate_frequency call when something was changed.
16011 (free_inline_summary): New function.
16012 (pass_ipa_free_inline_summary): New pass.
16014 * passes.c (init_optimization_passes): Add
16015 pass_ipa_free_inline_summary before pass_ipa_tree_profile.
16017 * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
16019 * tree-pass.h (pass_ipa_free_inline_summary): New.
16021 2012-08-02 Richard Earnshaw <rearnsha@arm.com>
16023 * arm.c (arm_gen_constant): Use UBFX for some AND operations when
16026 2012-08-02 Richard Guenther <rguenther@suse.de>
16028 * tree-into-ssa.c (struct common_info_d): New struct.
16029 (struct var_info_d, struct ssa_name_info): Use it.
16030 (get_ssa_name_ann): Adjust.
16031 (get_phi_state, set_phi_state): Remove.
16032 (get_common_info): New function.
16033 (get_current_def, set_current_def): Adjust.
16034 (get_def_blocks_for): Take a common info as param.
16035 (set_def_block): Call get_common_info once.
16036 (set_livein_block): Likewise.
16037 (find_def_blocks_for): Adjust.
16038 (insert_phi_nodes): Likewise.
16039 (register_new_def): Call get_common_info once.
16040 (get_reaching_def): Likewise.
16041 (rewrite_debug_stmt_uses): Likewise.
16042 (rewrite_leave_block): Likewise.
16043 (dump_currdefs): Likewise.
16044 (debug_var_infos_r): Adjust.
16045 (register_new_update_single): Call get_common_info once.
16046 (maybe_replace_use_in_debug_stmt): Likewise.
16047 (rewrite_update_leave_block): Likewise.
16048 (mark_use_interesting): Adjust.
16049 (create_new_def_for): Likewise.
16050 (update_ssa): Likewise.
16052 2012-08-02 Michael Matz <matz@suse.de>
16054 * tree-ssa-live.c (set_is_used): Return a bool.
16055 (mark_all_vars_used): Don't take data argument.
16056 (mark_all_vars_used_1): Adjust calls to above, merge handling
16057 of local and global vars.
16058 (remove_unused_scope_block_p): Don't take global_unused_vars,
16059 merge handling of local and global vars.
16060 (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
16061 use is_used_p for local and global vars.
16063 2012-08-02 Richard Guenther <rguenther@suse.de>
16065 * tree-flow.h (make_rename_temp): Remove.
16066 * tree-dfa.c (make_rename_temp): Likewise.
16067 * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
16068 instead of make_rename_temp.
16069 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
16070 expand_omp_atomic_pipeline): Likewise.
16071 * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
16072 build_tm_store, expand_call_tm, expand_transaction,
16073 ipa_tm_insert_gettmclone_call): Likewise.
16074 * tree-complex.c (expand_complex_div_wide): Likewise.
16075 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
16077 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
16079 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
16080 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
16081 gimple_mod_subtract): Likewise.
16083 2012-08-02 Richard Guenther <rguenther@suse.de>
16085 * tree-flow.h (set_default_def): Rename to ...
16086 (set_ssa_default_def): ... this. Take a struct function argument.
16087 (gimple_default_def): Rename to ...
16088 (ssa_default_def): ... this.
16089 (get_or_create_ssa_default_def): New function.
16090 * tree-dfa.c: Likewise.
16091 (dump_variable): Adjust.
16092 * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
16093 for used parameters.
16094 * ipa-split.c (consider_split): Adjust, avoid repeated default-def
16096 (split_function): Likewise.
16097 * lto-streamer-in.c (input_ssa_names): Adjust.
16098 * omp-low.c (expand_omp_taskreg): Likewise.
16099 * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
16100 * tree-complex.c (init_parameter_lattice_values): Adjust.
16101 (get_component_ssa_name): Likewise.
16102 (update_parameter_components): Likewise.
16103 * tree-inline.c (remap_ssa_name): Likewise.
16104 (setup_one_parameter): Likewise.
16105 (initialize_inlined_parameters): Likewise.
16106 (declare_return_variable): Likewise.
16107 (expand_call_inline): Likewise.
16108 (tree_function_versioning): Likewise.
16109 * tree-into-ssa.c (get_default_def_for): Remove.
16110 (get_reaching_def): Use get_or_create_ssa_default_def instead.
16111 * tree-predcom.c (replace_ref_with): Adjust.
16112 * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
16113 (is_unused_scalar_param): Likewise.
16114 (ptr_parm_has_direct_uses): Likewise.
16115 (sra_ipa_reset_debug_stmts): Likewise.
16116 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
16117 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
16118 * tree-ssa-live.c (verify_live_on_entry): Likewise.
16119 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
16120 avoid repeated default def lookups.
16121 * tree-ssa-sccvn.c (run_scc_vn): Likewise.
16122 * tree-tailcall.c (arg_needs_copy_p): Adjust.
16123 (tree_optimize_tail_calls_1): Likewise.
16125 2012-08-02 Richard Guenther <rguenther@suse.de>
16127 PR tree-optimization/50672
16129 2012-08-01 Richard Guenther <rguenther@suse.de>
16131 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
16132 (replace_block_by): Adjust.
16134 2012-08-02 Richard Guenther <rguenther@suse.de>
16136 * tree-dfa.c (referenced_var_lookup): Remove.
16137 (find_referenced_vars): Remove.
16138 (pass_referenced_vars): Likewise.
16139 (make_rename_temp): Do not add referenced vars.
16140 (dump_referenced_vars): Remove.
16141 (debug_referenced_vars): Likewise.
16142 (dump_dfa_stats): Do not dump referenced var stats.
16143 (find_vars_r): Remove.
16144 (find_referenced_vars_in): Likewise.
16145 (referenced_var_check_and_insert): Likewise.
16146 (add_referenced_var_1): Likewise.
16147 (remove_referenced_var): Likewise.
16148 * tree-flow.h (referenced_var_lookup): Likewise.
16149 (struct gimple_df): Remove referenced_vars member.
16150 (typedef referenced_var_iterator): Remove.
16151 (FOR_EACH_REFERENCED_VAR): Likewise.
16152 (num_referenced_vars): Likewise.
16153 (debug_referenced_vars, dump_referenced_vars): Likewise.
16154 (add_referenced_var_1, add_referenced_var): Likewise.
16155 (remove_referenced_var): Likewise.
16156 (find_referenced_vars_in): Likewise.
16157 * tree-flow-inline.h (gimple_referenced_vars): Remove.
16158 (first_referenced_var): Likewise.
16159 (end_referenced_vars_p): Likewise.
16160 (next_referenced_var): Likewise.
16161 * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
16162 * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
16164 * tree-into-ssa.c (dump_decl_set): Likewise.
16165 (pass_build_ssa): Do not require PROP_referenced_vars.
16166 * tree-ssa.c (target_for_debug_bind): Virtual operands are
16167 not suitable, but all register type vars are.
16168 (init_tree_ssa): Do not allocate referenced vars.
16169 (delete_tree_ssa): Do not free referenced vars.
16170 * cgraphunit.c (init_lowered_empty_function): Do not set
16171 PROP_referenced_vars.
16172 (assemble_thunk): Do not add referenced vars.
16173 * gimple-fold.c (canonicalize_constructor_val): Likewise.
16174 (gimplify_and_update_call_from_tree): Likewise.
16175 * gimple-streamer-in.c (input_bb): Likewise.
16176 * passes.c (init_optimization_passes): Do not run
16177 pass_referenced_vars.
16178 (dump_properties): Do not dump PROP_referenced_vars.
16179 * tree-inline.c (remap_decl): Do not add referenced vars.
16180 (remap_gimple_op_r): Likewise.
16181 (copy_tree_body_r): Likewise.
16182 (copy_bb): Likewise.
16183 (setup_one_parameter): Likewise.
16184 (declare_return_variable): Likewise.
16185 (copy_decl_for_dup_finish): Likewise.
16186 (copy_arguments_for_versioning): Likewise.
16187 (tree_function_versioning): Likewise.
16188 * tree-pass.h (PROP_referenced_vars): Remove.
16189 (pass_referenced_vars): Likewise.
16190 * tree-profile.c (gimple_gen_edge_profiler): Do not add
16192 (gimple_gen_interval_profiler): Likewise.
16193 (gimple_gen_pow2_profiler): Likewise.
16194 (gimple_gen_one_value_profiler): Likewise.
16195 (gimple_gen_ic_profiler): Likewise.
16196 (gimple_gen_average_profiler): Likewise.
16197 (gimple_gen_ior_profiler): Likewise.
16198 * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
16199 * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
16200 (move_stmt_op): Likewise.
16201 * tree-ssa-operands.c (create_vop_var): Likewise.
16202 * gimple-low.c (record_vars_into): Likewise.
16203 * gimplify.c (gimple_regimplify_operands): Likewise.
16204 (force_gimple_operand_1): Likewise.
16205 * omp-low.c (expand_omp_for_generic): Likewise.
16206 (expand_omp_for_static_chunk): Likewise.
16207 (expand_omp_atomic_pipeline): Likewise.
16208 * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
16209 (translate_clast_assignment): Likewise.
16210 * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
16211 (handle_scalar_deps_crossing_scop_limits): Likewise.
16212 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
16213 * ipa-split.c (split_function): Likewise.
16214 * matrix-reorg.c (transform_access_sites): Likewise.
16215 * trans-mem.c (tm_log_add): Likewise.
16216 (ipa_tm_insert_gettmclone_call): Likewise.
16217 * tree-complex.c (create_one_component_var): Likewise.
16218 * tree-if-conv.c (ifc_temp_var): Likewise.
16219 * tree-parloops.c (take_address_of): Likewise.
16220 (initialize_reductions): Likewise.
16221 (separate_decls_in_region_name): Likewise.
16222 (create_call_for_reduction_1): Likewise.
16223 (separate_decls_in_region): Likewise.
16224 * tree-predcom.c (predcom_tmp_var): Likewise.
16225 (reassociate_to_the_same_stmt): Likewise.
16226 * tree-sra.c (build_ref_for_offset): Likewise.
16227 (create_access_replacement): Likewise.
16228 (get_replaced_param_substitute): Likewise.
16229 (sra_ipa_reset_debug_stmts): Likewise.
16230 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
16231 (rewrite_bittest): Likewise.
16232 * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
16233 * tree-ssa-loop-manip.c (create_iv): Likewise.
16234 (tree_transform_and_unroll_loop): Likewise.
16235 * tree-ssa-math-opts.c (powi_as_mults): Likewise.
16236 (build_and_insert_call): Likewise.
16237 (gimple_expand_builtin_cabs): Likewise.
16238 (execute_optimize_bswap): Likewise.
16239 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
16240 (abs_replacement): Likewise.
16241 (cond_store_replacement): Likewise.
16242 (cond_if_else_store_replacement_1): Likewise.
16243 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
16244 * tree-ssa-pre.c (get_representative_for): Likewise.
16245 (create_expression_by_pieces): Likewise.
16246 (insert_into_preds_of_block): Likewise.
16247 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
16248 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16249 (eliminate_redundant_comparison): Likewise.
16250 (rewrite_expr_tree_parallel): Likewise.
16251 (get_reassoc_pow_ssa_name): Likewise.
16252 * tree-ssa-strlen.c (get_string_length): Likewise.
16253 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
16254 (build_arrays): Likewise.
16255 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
16256 (create_tailcall_accumulator): Likewise.
16257 * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
16258 (vect_create_addr_base_for_vector_ref): Likewise.
16259 (vect_permute_store_chain): Likewise.
16260 (vect_permute_load_chain): Likewise.
16261 * tree-vect-generic.c (expand_vector_divmod): Likewise.
16262 * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
16263 (vect_build_loop_niters): Likewise.
16264 (vect_generate_tmps_on_preheader): Likewise.
16265 (vect_update_ivs_after_vectorizer): Likewise.
16266 (vect_gen_niters_for_prolog_loop): Likewise.
16267 (vect_do_peeling_for_alignment): Likewise.
16268 (vect_create_cond_for_align_checks): Likewise.
16269 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
16270 (vect_handle_widen_op_by_const): Likewise.
16271 (vect_operation_fits_smaller_type): Likewise.
16272 (vect_recog_over_widening_pattern): Likewise.
16273 * tree-vect-stmts.c (vect_init_vector): Likewise.
16275 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
16278 * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
16280 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
16283 * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
16284 falling back to copy_rtx on non-autoinc machines.
16285 (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
16287 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
16290 * valtrack.h, valtrack.c: New.
16291 * Makefile.in (VALTRACK_H): New.
16292 (OBJS): Add valtrack.o.
16294 (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
16295 * combine.c: Include valtrack.h.
16296 (make_compound_operation): Publish.
16297 (cleanup_auto_inc_dec): Move to valtrack.c.
16298 (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
16299 (propagate_for_debug): Likewise. Add this_basic_block parameter.
16300 Adjust all callers.
16301 * cselib.c: Include valtrack.h.
16303 * df-problems.c: Likewise.
16304 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
16305 (dead_debug_finish, dead_debug_add): Likewise.
16306 (dead_debug_insert_temp): Likewise.
16307 * df.h (struct dead_debug_use): Move to valtrack.h.
16308 (struct dead_debug, enum debug_temp_where): Likewise.
16309 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
16310 (dead_debug_finish, dead_debug_add): Likewise.
16311 (dead_debug_insert_temp): Likewise.
16312 * rtl.h (make_compound_operation): Declare.
16314 2012-08-01 Catherine Moore <clm@codesourcery.com>
16315 Sandra Loosemore <sandra@codesourcery.com>
16317 * config/mips/mips-cpus.def (34kn): New.
16318 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
16319 (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
16320 * config/mips/mips-tables.opt: Regenerate.
16321 * doc/invoke.texi (MIPS Options): Document -march=34kn.
16323 2012-08-01 Richard Henderson <rth@redhat.com>
16325 * expmed.h (NUM_MODE_PARTIAL_INT): New.
16326 (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
16327 (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
16328 (struct expmed_op_costs): Likewise.
16329 (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
16330 (expmed_mode_index): New.
16331 (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
16332 (convert_cost_ptr): Likewise.
16333 * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
16334 (init_expmed_one_conv): Split out from ...
16335 (init_expmed_one_mode): ... here. Iterate conversions over
16336 partial integer modes too.
16337 (init_expmed): Iterate over partial integer modes too.
16339 2012-08-01 Richard Henderson <rth@redhat.com>
16341 * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
16342 (m32c_init_libfuncs): Remove.
16343 * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
16344 (cstore<QHPSI>4): New expander.
16346 2012-08-01 Richard Guenther <rguenther@suse.de>
16348 * tree-flow-inline.h (referenced_var): Remove.
16349 * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
16351 * tree-sra.c (candidates): New global hashtable.
16352 (candidate): New function.
16353 (sra_initialize): Initialize candidates.
16354 (sra_deinitialize): Free candidates.
16355 (disqualify_candidate): Remove candidate from candidates.
16356 (maybe_add_sra_candidate): New function.
16357 (find_var_candidates): Walk over all local decls and parameters,
16358 add candidates to candidates hashtable.
16359 (find_param_candidates): Add candidates to candidates hashtable.
16360 (analyze_all_variable_accesses): Use candidate instead of
16363 2012-08-01 Tom de Vries <tom@codesourcery.com>
16365 * tree-vrp.c (find_case_label_ranges): New function.
16366 (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
16367 find_case_label_ranges instead of find_case_label_range. Handle second
16370 2012-08-01 Michael Matz <matz@suse.de>
16372 * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
16373 * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
16374 (dump_dfa_stats): Don't dump stats about var anns.
16375 (collect_dfa_stats): Don't collect them.
16376 (add_referenced_var_1): Don't set var annotation pointers.
16377 (remove_referenced_var): Ditto, and only remove it it's in the
16380 * tree-flow-inline.h (var_ann): Remove.
16381 * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
16383 * tree-inline.c (remapped_type): Remove.
16384 (can_be_nonlocal): Most variable will be considered live here,
16385 return false earlier.
16386 (remap_decls): Don't call var_ann, all variables will be considered
16388 (copy_debug_stmt): Ditto, and use is_global_var.
16390 * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
16391 determine if a variable was referred to, not var_ann.
16392 * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
16393 (remove_unused_locals): Ditto.
16394 * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
16395 * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
16396 * tree.c (copy_node_stat): Don't clear var ann pointer.
16397 * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
16399 (DECL_VAR_ANN_PTR): Remove.
16401 2012-08-01 Michael Matz <matz@suse.de>
16403 * tree-flow.h (struct var_ann_d): Rename used member.
16404 (set_is_used): Don't declare.
16405 * tree-flow-inline.h (clear_is_used): Remove.
16406 (set_is_used, is_used_p): Move to ...
16407 * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
16408 on the side bitmap.
16409 (usedvars): New bitmap.
16410 (dump_scope_block): Don't dump unusedness.
16411 (remove_unused_locals): Allocate and free usedvars.
16412 * tree-nrv.c (tree_nrv): Don't clear used flags here.
16414 2012-08-01 Michael Matz <matz@suse.de>
16416 * tree-flow.h (struct var_ann_d): Remove base_var_processed and
16417 base_index members.
16418 * tree-ssa-live.h (struct _var_map): Remove basevars member.
16419 (VAR_ANN_BASE_INDEX): Remove.
16420 * tree-ssa-live.c (var_map_base_init): Use a hash table instead
16421 of var annotation to compress index space. Don't deal with above
16423 (var_map_base_fini): Don't free basevars.
16424 (init_var_map): Don't clear basevars.
16426 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
16428 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
16429 base_name to base_expr.
16430 (struct cand_chain_d): Likewise.
16431 (base_cand_hash): Likewise.
16432 (base_cand_eq): Likewise.
16433 (record_potential_basis): Likewise.
16434 (alloc_cand_and_find_basis): Likewise.
16435 (create_mul_ssa_cand): Likewise.
16436 (create_mul_imm_cand): Likewise.
16437 (create_add_ssa_cand): Likewise.
16438 (create_add_imm_cand): Likewise.
16439 (slsr_process_cast): Likewise.
16440 (slsr_process_copy): Likewise.
16441 (dump_candidate): Likewise.
16442 (base_cand_dump_callback): Likewise.
16443 (unconditional_cands_with_known_stride_p): Likewise.
16444 (cand_increment): Likewise.
16446 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
16448 PR tree-optimization/46556
16449 * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
16450 (base_cand_map): Change to hash table.
16451 (base_cand_hash): New function.
16452 (base_cand_free): Likewise.
16453 (base_cand_eq): Likewise.
16454 (lookup_cand): Change base_cand_map to hash table.
16455 (find_basis_for_candidate): Likewise.
16456 (base_cand_from_table): Exclude CAND_REF.
16457 (restructure_reference): New function.
16458 (slsr_process_ref): Likewise.
16459 (find_candidates_in_block): Call slsr_process_ref.
16460 (dump_candidate): Handle CAND_REF.
16461 (base_cand_dump_callback): New function.
16462 (dump_cand_chains): Change base_cand_map to hash table.
16463 (replace_ref): New function.
16464 (replace_refs): Likewise.
16465 (analyze_candidates_and_replace): Call replace_refs.
16466 (execute_strength_reduction): Change base_cand_map to hash table.
16468 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
16470 * config/i386/i386.c (ix86_address_subreg_operand): Reject
16472 (ix86_print_operand_address): Assert that parts.base and parts.index
16473 are non-NULL after call to simplify_subreg.
16475 2012-08-01 Richard Guenther <rguenther@suse.de>
16477 * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
16479 2012-08-01 Richard Guenther <rguenther@suse.de>
16481 * graphite-clast-to-gimple.c (translate_clast_user): Rename
16483 * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
16485 * tree-call-cdce.c (tree_call_cdce): Use
16486 mark_virtual_operands_for_renaming.
16487 * tree-eh.c (sink_clobbers): Simplify.
16488 * tree-flow.h (mark_sym_for_renaming): Remove.
16489 (mark_virtual_operands_for_renaming): New function.
16490 * tree-if-conv.c (tree_if_conversion): Use
16491 mark_virtual_operands_for_renaming.
16492 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
16493 * tree-into-ssa.c (mark_sym_for_renaming): Remove.
16494 (mark_virtual_operands_for_renaming): New function.
16495 * tree-loop-distribution.c (tree_loop_distribution): Use
16496 mark_virtual_operands_for_renaming.
16497 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
16498 update stmts, use mark_virtual_operands_for_renaming.
16499 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
16500 (replace_block_by): Adjust.
16501 (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
16502 * tree-tailcall.c (tree_optimize_tail_calls_1): Use
16503 mark_virtual_operands_for_renaming.
16504 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
16505 * tree-vectorizer.c (vectorize_loops): Likewise.
16507 2012-08-01 Richard Guenther <rguenther@suse.de>
16509 * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
16510 add ssa_renaming_needed and rename_vops flags.
16511 (SYMS_TO_RENAME): Remove.
16512 (symbol_marked_for_renaming): Likewise.
16513 (mark_virtual_ops_for_renaming): Likewise.
16514 * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
16516 (mark_for_renaming, marked_for_renaming): New functions.
16517 (symbol_marked_for_renaming): Remove.
16518 (dump_currdefs): Adjust.
16519 (maybe_replace_use): Likewise.
16520 (maybe_replace_use_in_debug_stmt): Likewise.
16521 (maybe_register_def): Likewise.
16522 (rewrite_update_phi_arguments): Likewise.
16523 (rewrite_update_enter_block): Likewise.
16524 (fini_ssa_renamer): Clear update SSA status here ...
16525 (delete_update_ssa): ... not here. Free rename set.
16526 (prepare_block_for_update): Compute which decls need renaming.
16527 (dump_update_ssa): Adjust.
16528 (mark_sym_for_renaming): Adjust update SSA status for virtuals.
16529 (need_ssa_update_p): Adjust.
16530 (insert_updated_phi_nodes_for): Likewise.
16531 (update_ssa): Likewise.
16532 * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
16533 for virtual and real operands.
16534 (finalize_ssa_uses): Likewise.
16535 * tree-ssanames.c (init_ssanames): Adjust.
16536 * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
16537 execute_update_addresses_taken): Add bitmap to keep track of which
16538 candidates are suitable for rewriting and later renaming by SSA update.
16539 * matrix-reorg.c (transform_access_sites): Do not rename all defs.
16540 * tree-dfa.c (make_rename_temp): Do not mark real operands for
16542 * cgraphunit.c (assemble_thunk): Likewise.
16543 * gimplify.c (gimple_regimplify_operands): Likewise.
16544 (force_gimple_operand_1): Likewise.
16545 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
16546 * tree-inline.c (declare_return_variable): Likewise.
16547 * tree-parloops.c (separate_decls_in_region_stmt): Do not call
16548 mark_virtual_ops_for_renaming.
16549 (create_stores_for_reduction): Likewise.
16550 (create_loads_and_stores_for_name): Likewise.
16551 * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
16552 (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
16553 (execute_load_motion): Likewise.
16554 (remove_stmt): Likewise.
16555 (execute_pred_commoning_chain): Likewise.
16556 * tree-sra.c (create_access_replacement): Do not rename real operands.
16557 (get_unrenamed_access_replacement): Unify with ...
16558 (get_access_replacement): ... this.
16559 (get_repl_default_def_ssa_name): Adjust.
16560 * tree-ssa-loop-im.c (move_computations_stmt): Manually update
16562 (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
16563 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
16565 2012-07-31 DJ Delorie <dj@redhat.com>
16567 * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
16568 extensions for TPF, unless specifically selected.
16570 2012-08-01 Alan Modra <amodra@gmail.com>
16573 * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
16574 of lo_sum offsets. Comment. Assert mode at least word size
16575 rather than bypassing powerpc64 word offset check.
16577 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
16579 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
16580 costs for vec_perm and vec_promote_demote down to more natural values.
16581 (struct _rs6000_cost_data): New data structure.
16582 (rs6000_density_test): New function.
16583 (rs6000_init_cost): Change to use rs6000_cost_data.
16584 (rs6000_add_stmt_cost): Likewise.
16585 (rs6000_finish_cost): Perform density test when vectorizing a loop.
16587 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
16589 * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling
16590 of RTX_UNARY function-like operations. Print unknown expression
16591 RTX classes as pseudo-functions.
16592 (print_pattern): Simplify return pattern printing.
16593 (dump_insn_slim): Print the value of notes as a pattern for proper
16594 printing of CFA notes.
16596 2012-07-31 Dehao Chen <dehao@google.com>
16598 * predict.c (tree_estimate_probability_driver): Normalize the
16599 loop when initializing the loop optimizer.
16601 2012-07-31 Richard Guenther <rguenther@suse.de>
16603 * tree-flow.h (struct var_ann_d): Remove need_phi_state
16604 and current_def members.
16605 * tree-into-ssa.c (struct def_blocks_d): Remove var member.
16606 (def_blocks): Remove.
16607 (struct var_info_d): New.
16608 (var_infos): New hashtable.
16609 (struct ssa_name_info): Add def_blocks member.
16610 (get_ssa_name_ann): Adjust.
16611 (get_var_info): New function.
16612 (get_phi_state, set_phi_state, get_current_def,
16613 set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
16614 (insert_phi_nodes_compare_def_blocks): Rename to ...
16615 (insert_phi_nodes_compare_var_infos): ... this and adjust.
16616 (insert_phi_nodes): Adjust.
16617 (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
16618 (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
16619 (debug_def_blocks_r): Rename to ...
16620 (debug_var_infos_r): ... this and adjust.
16621 (var_info_hash): New function.
16622 (var_info_eq): Likewise.
16623 (rewrite_blocks): Adjust.
16624 (init_ssa_renamer): Likewise.
16625 (fini_ssa_renamer): Likewise.
16626 (delete_update_ssa): Likewise.
16627 (update_ssa): Likewise.
16628 * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
16630 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
16632 PR tree-optimization/53773
16633 * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
16634 (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
16635 * tree-vect-loop.c (new_loop_vec_info): Initialize
16636 LOOP_VINFO_OPERANDS_SWAPPED field.
16637 (destroy_loop_vec_info): Restore canonical form.
16638 (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
16639 (vect_is_simple_reduction_1): Likewise.
16641 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
16643 * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
16644 start of each new line.
16645 * final.c (final_scan_insn): If the final dump is requested as
16646 slim RTL, dump slim RTL to the assembly file also.
16648 2012-07-31 Andrey Belevantsev <abel@ispras.ru>
16652 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
16655 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
16657 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
16658 only if producer writes to the register given by regno.
16660 2012-07-31 Nick Clifton <nickc@redhat.com>
16662 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
16663 support for reporting stack usage.
16665 * config/frv/frv.c (QUAD): Fix typo.
16666 (frv_expand_prologue): Report stack usage.
16668 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
16671 * gengtype.c (struct walk_type_data): Add have_this_obj field.
16672 (walk_type): For functions that take a this_obj argument and
16673 that process fields with a GTY((length)) argument, write the
16674 test that write_types_local_process_field will write also at the
16675 head of the loop, effectively unswitching the loop.
16676 (write_func_for_structure, write_local_func_for_structure): Clear
16677 have_this_obj before calling walk_type.
16678 (write_local_func_for_structure): Set have_this_obj before walk_type.
16679 (write_array): Set have_this_obj for output of local pointer walking
16680 functions but not for marker functions.
16681 (write_types_local_process_field): Assert have_this_obj is set.
16683 * rtl.h (simplify_using_condition): Adjust prototype using bitmap
16686 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
16689 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16690 * targhooks.c (default_mode_dependent_address_p): Delete code
16691 for GO_IF_MODE_DEPENDENT_ADDRESS.
16692 * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
16693 * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
16694 * doc/tm.texi: Regenerate.
16695 * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
16696 * config/alpha.c (alpha_mode_dependent_address_p): ...here. New
16698 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16699 * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16700 * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16701 * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
16702 * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16703 * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
16705 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16707 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
16709 * expmed.h (NUM_MODE_VECTOR_INT): Define.
16710 (struct expmed_op_cheap, struct expmed_op_costs): New structures.
16711 (struct target_expmed): Convert x_mul_highpart_cost and
16712 x_mul_widen_cost fields to be indexed by integer modes.
16713 Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
16714 of type struct expmed_op_cheap. Convert other cost fields to be
16715 of type struct_expmed_op_costs.
16716 (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
16717 indexing of respective fields.
16718 (expmed_op_cheap_ptr): New function.
16719 (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
16720 (expmed_op_cost_ptr): New function.
16721 (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
16722 shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
16723 sdiv_cost_ptr, udiv_cost_ptr): Call it.
16725 2012-07-30 Sandra Loosemore <sandra@codesourcery.com>
16726 Julian Brown <julian@codesourcery.com>
16728 * doc/invoke.texi (MIPS Options): Document -mno-float.
16729 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
16732 2012-07-30 Joseph Myers <joseph@codesourcery.com>
16734 * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
16736 2012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16738 PR middle-end/53823
16739 * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
16740 for special cases. Don't initialize coeff and is_neg.
16742 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
16743 Richard Earnshaw <rearnsha@arm.com>
16745 * target.def (vector_alignment): New target hook.
16746 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
16747 * doc/tm.texi: Regenerate.
16748 * targhooks.c (default_vector_alignment): New function.
16749 * targhooks.h (default_vector_alignment): Add prototype.
16750 * stor-layout.c (layout_type): Use targetm.vector_alignment.
16751 * config/arm/arm.c (arm_vector_alignment): New function.
16752 (TARGET_VECTOR_ALIGNMENT): Define.
16754 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
16755 vector type alignment instead of size.
16756 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
16757 element type size directly instead of computing it from alignment.
16758 Fix variable naming and comment.
16760 2012-07-30 Kirill Yukhin <kirill.yukhin@intel.com>
16761 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16763 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
16764 (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
16765 (ix86_handle_option): Handle mrdseed option.
16766 * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
16767 (x86_64-*-*): Likewise.
16768 * config/i386/prfchwintrin.h: New header.
16769 * config/i386/cpuid.h (bit_RDSEED): New.
16770 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16772 * config/i386/i386-c.c: Define __RDSEED__ if needed.
16773 * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
16775 (ix86_option_override_internal): Handle new option.
16776 (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
16777 (ix86_builtins): Add enum entries for RDSEED* builtins.
16778 (ix86_init_mmx_sse_builtins): Define new builtins.
16779 (ix86_expand_builtin): Expand RDSEED* builtins.
16780 * config/i386/i386.h (TARGET_RDSEED): New.
16781 * config/i386/i386.md (rdseed<mode>_1): New.
16782 * config/i386/i386.opt (mrdseed): New.
16783 * config/i386/x86intrin.h: Include rdseedintrin.h.
16785 2012-07-30 Richard Guenther <rguenther@suse.de>
16787 * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
16788 (rewrite_stmt): Likewise.
16789 (rewrite_enter_block): Likewise.
16790 (pass_build_ssa): Do not update virtual SSA form during TODO.
16791 (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
16792 * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
16794 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
16797 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
16800 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
16803 * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
16804 Use t_reg_operand predicate. Add split for negated case.
16805 (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
16806 * config/sh/sh.c (expand_ashiftrt): Likewise.
16808 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
16811 * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
16812 of trying to emit ashlsi3_n.
16814 2012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16815 Steven Bosscher <steven@gcc.gnu.org>
16817 * gengtype.c (adjust_field_type): Diagnose duplicate "length"
16818 option applications and option being applied to arrays of atomic types.
16819 (walk_type): Allow "atomic" option on strings too.
16820 * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
16821 for the array field.
16822 * vec.h: Describe the atomic object "A" type of the macros in
16823 the header comment.
16824 (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
16825 * emit-rtl.c (locations_locators_vals): use the atomic object vector.
16826 * doc/gty.texi: Clarify that GTY option "length" is only for
16827 arrays of non-atomic objects. Fix typo in the description of the
16830 2012-07-27 Uros Bizjak <ubizjak@gmail.com>
16832 * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
16833 zero-extended addresses. Return false if the address has less
16834 than two components.
16835 (ix86_split_lea_for_addr): Unconditionally convert target and
16836 all address operands to requested mode.
16837 * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
16838 Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
16840 (zero-extended add splitter): New splitter to conditionally split
16841 non-destructive adds.
16842 (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
16844 2012-07-28 Alan Modra <amodra@gmail.com>
16847 * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
16848 multi-gpr reload to cases where predicate passes. Do the same for
16849 64-bit multi-gpr reload.
16851 2012-07-27 Nathan Froyd <froydnj@gcc.gnu.org>
16853 * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
16854 smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
16855 shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
16856 sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
16857 macro definitions and re-purpose as inline functions.
16858 (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
16859 set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
16860 zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
16861 neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
16862 shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
16863 set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
16864 mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
16865 udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
16866 set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
16868 (convert_cost_ptr): New function, split out from...
16869 (set_convert_cost, convert_cost): ...here.
16870 * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
16871 * gimple-ssa-strength-reduction.c: Likewise.
16873 2012-07-20 Ryan Mansfield <rmansfield@qnx.com>
16875 * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
16876 diagnostic_initialize.
16878 2012-07-27 Oleg Endo <olegendo@gcc.gnu.org>
16881 * config/sh/sh.c (shiftcosts): Remove case where first operand
16882 is a const_int. Move COSTS_N_INSNS usage into caller ...
16883 (sh_rtx_costs) ... here. Return false when shiftcosts cannot be
16884 calculated instead of MAX_COST.
16886 2012-07-27 Richard Guenther <rguenther@suse.de>
16888 * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
16889 check whether SSA form is not up-to-date.
16890 * tree-flow.h (name_mappings_registered_p): Remove.
16891 * tree-into-ssa.c (struct repl_map_d): Remove.
16892 (repl_tbl): Likewise.
16893 (struct ssa_name_info): Add repl_set member.
16894 (update_ssa_obstack): New static global.
16895 (get_ssa_name_ann): Initialize repl_set.
16896 (clear_ssa_name_info): Assert age did not wrap.
16897 (repl_map_hash, repl_map_eq, repl_map_free): Remove.
16898 (names_replaced_by): Adjust.
16899 (add_to_repl_tbl): Likewise.
16900 (dump_tree_ssa_stats): Likewise.
16901 (init_update_ssa): Initialize update_ssa_obstack.
16902 (delete_update_ssa): Free update_ssa_obstack.
16903 (name_mappings_registered_p): Remove.
16904 (update_ssa): Adjust.
16906 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
16908 * config/rs6000/constraints.md: Delete "q" constraint.
16909 * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
16910 Delete the "q" alternative.
16911 * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
16912 * config/rs6000/rs6000.c (rs6000_debug_reg_global)
16913 (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
16914 adjust to MQ_REGNO removal.
16915 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
16917 (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order.
16918 (enum reg_class): Adjust comment. Delete MQ_REGS.
16919 (REG_CLASS_CONTENTS): Adjust.
16920 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
16921 * config/rs6000/rs6000.md: Delete MQ_REGNO.
16922 (movsi_internal1, movsi_internal1_single, movhi_internal,
16923 movqi_internal, movcc_internal1, movsf_hardfloat,
16924 movsf_softfloat): Delete the "q" alternative.
16925 (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
16926 ctr<mode>_internal6): Delete "q" constraint.
16928 2012-07-27 Richard Guenther <rguenther@suse.de>
16930 * tree-into-ssa.c (def_blocks_p): New typedef.
16931 (insert_phi_nodes_compare_def_blocks): New function.
16932 (insert_phi_nodes): Do not walk over referenced vars, instead
16933 walk over recorded def_blocks, record relevant ones and sort
16934 them to avoid repeated hashtable lookups.
16936 2012-07-27 Richard Guenther <rguenther@suse.de>
16938 * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
16939 Remove param documentation.
16940 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
16941 PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
16942 * tree-flow.h (mark_set_for_renaming): Remove.
16943 * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
16944 (add_new_name_mapping): Remove bookkeeping code.
16945 (dump_update_ssa): Remove stats dumping code.
16946 (init_update_ssa): Remove stats allocation code.
16947 (delete_update_ssa): Remove stats freeing code.
16948 (mark_set_for_renaming): Remove.
16949 (switch_virtuals_to_full_rewrite_p): Likewise.
16950 (switch_virtuals_to_full_rewrite): Likewise.
16951 (update_ssa): Do not call switch_virtuals_to_full_rewrite.
16953 2012-07-27 Marek Polacek <polacek@redhat.com>
16955 * cgraphunit.c: Rename varpool_finalize_variable to
16956 varpool_finalize_decl in a comment.
16958 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
16960 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
16961 Delete code for -mno-power, -mpower, and -mpower2.
16962 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
16963 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16965 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
16966 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
16967 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16969 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
16970 * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
16971 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16973 (TARGET_POWER): Delete.
16974 * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
16975 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16977 (TARGET_POWER): Delete.
16978 * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
16979 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16981 (TARGET_POWER): Delete.
16982 * config/rs6000/darwin.h (TARGET_POWER): Delete.
16983 * config/rs6000/driver-rs6000.c (struct asm_names): Delete
16984 support for -mpower, -mpower2, and -mno-power.
16985 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
16987 (rs6000_cpu_cpp_builtins): Likewise.
16988 * config/rs6000/rs6000-cpus.def: Likewise.
16989 * config/rs6000/rs6000-tables.opt: Regenerate.
16990 * config/rs6000/rs6000.c (POWER_MASKS): Delete.
16991 (rs6000_option_override_internal): Adjust.
16992 (rs6000_conditional_register_usage): Adjust.
16993 (rs6000_emit_move): Adjust.
16994 (rs6000_common_init_builtins): Adjust.
16995 (rs6000_init_libfuncs): Adjust.
16996 (rs6000_output_function_prologue): Adjust.
16997 (rs6000_adjust_cost): Adjust.
16998 (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
16999 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
17001 (TARGET_DEFAULT): Adjust.
17002 (PROCESSOR_POWER): Delete.
17003 (SHIFT_COUNT_TRUNCATED): Adjust.
17004 * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
17005 (extendqisi2_power): Delete.
17006 (extendqisi2_no_power): Adjust.
17007 (extendqihi2, extendqihi2_power, extendqihi2_no_power):
17009 (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
17010 (anonymous doz insn patterns): Delete.
17012 (abssi2_power): Delete.
17013 (abssi2_nopower): Adjust.
17014 (nabs_power, nabs_nopower): Likewise.
17015 (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
17016 Likewise. Delete anonymous post-reload splitter.
17017 (mulsi3_no_mq_internal1): rename to...
17018 (mulsi3_internal1): New define_insn.
17019 (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
17021 (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
17022 udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
17023 udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
17024 (mulh_call, mull_call, divss_call, divus_call, quoss_call,
17025 quous_call): Likewise.
17026 (maskir_internal1, maskir_internal2, maskir_internal3,
17027 maskir_internal4, maskir_internal5, maskir_internal6,
17028 maskir_internal7, maskir_internal8): Delete.
17029 (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
17030 (anonymous sl insn patterns): Delete.
17031 (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
17032 (lshrsi3_64): Adjust.
17033 (anonymous sr insn patterns): Delete.
17034 (anonymous rrib insn patterns): Delete.
17035 (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
17036 (anonymous sra insn patterns): Delete.
17037 (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
17038 (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
17039 fctiwz_<mode>): Adjust.
17040 (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
17041 umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
17042 smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
17043 umulsi3_highpart_no_mq): Adjust.
17044 (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
17045 (ashrdi3_no_power, ashldi3, ashldi3_internal1,
17046 lshrdi3_internal1): Adjust.
17047 (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
17048 (movti_power): Delete.
17049 (movti_string): Adjust.
17050 (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
17051 (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
17052 stmsi4_power, stmsi3_power): Delete.
17053 (anonymous movmemsi insn patterns): Adjust.
17054 (lfq_power2, stfq_power2): Delete.
17055 (eq<mode>, eq<mode>_compare): Adjust.
17056 (eqsi_power): Delete.
17058 (anonymous le, lt, ge, gt insn patterns): Delete.
17059 * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
17060 * config/rs6000/sysv4.h (TARGET_POWER): Delete.
17061 * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17062 MULTILIB_MATCHES): Adjust.
17063 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
17064 -mpower, -mno-power, -mpower2, -mno-power2 documentation.
17065 Delete -mcpu=power and -mcpu=power2 documentation.
17067 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
17069 * config/rs6000/601.md: New file.
17070 * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
17072 * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
17073 * config/rs6000/driver-rs6000.c (detect_processor_aix,
17074 struct asm_names): Likewise.
17075 * config/rs6000/rios1.md: Delete file.
17076 * config/rs6000/rios2.md: Delete file.
17077 * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
17079 * config/rs6000/rs6000-opts.h (enum processor_type): Delete
17080 PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
17081 * config/rs6000/rs6000-tables.opt: Regenerated.
17082 * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
17084 (rs6000_option_override_internal): Delete support for RIOS CPUs.
17085 (rs6000_conditional_register_usage): Adjust comment.
17086 (rs6000_issue_rate):Delete support for RIOS CPUs.
17087 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
17089 (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
17090 (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
17091 * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
17093 (include "rios1.md", include "rios2.md"): Delete.
17094 (include "601.md"): New.
17095 * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
17097 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
17099 * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
17100 rios2.md . Add 601.md .
17102 2012-07-26 Richard Henderson <rth@redhat.com>
17104 * doc/extend.texi (attribute): Document hot/cold for labels.
17105 * predict.c (tree_estimate_probability_bb): Handle hot/cold
17106 attributes on user labels.
17107 * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
17109 2012-07-26 Andrew Jenner <andrew@codesourcery.com>
17110 Sandra Loosemore <sandra@codesourcery.com>
17112 * cse.c (find_comparison_args): Check for cycles of any length.
17114 2012-07-26 Nick Clifton <nickc@redhat.com>
17116 * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
17117 (mn10300_get_live_callee_saved_regs): If requested return a count
17118 of the number of bytes in the mask.
17119 (mn10300_expand_prologue): Add argument to invocation of
17120 mn10300_get_live_callee_regs.
17121 (mn10300_expand_epilogue): Compute reg_save_bytes by calling
17122 mn10300_get_live_callee_saved_regs.
17123 (mn10300_initial_offset): Likewise.
17124 * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
17126 * config/mn10300/mn10300.md (return_ret): Add argument to
17127 invocation of mn10300_get_live_callee_saved_regs.
17129 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
17131 PR regression/54084
17132 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
17133 pointer difference check.
17135 2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
17137 * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
17138 (mbc_entry_eq): Likewise.
17139 (mult_costs): Likewise.
17140 (cost_tables_exist): Likewise.
17141 (initialize_costs): Likewise.
17142 (finalize_costs): Likewise.
17143 (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
17144 (add_regs_cost): Remove.
17145 (multiply_regs_cost): Likewise.
17146 (add_const_cost): Likewise.
17147 (extend_or_trunc_reg_cost): Likewise.
17148 (negate_reg_cost): Likewise.
17149 (struct mbc_entry): Likewise.
17150 (multiply_by_const_cost): Likewise.
17151 (get_address_cost): Change add_regs_cost calls to add_cost lookups;
17152 change multiply_by_const_cost to mult_by_coeff_cost.
17153 (force_expr_to_var_cost): Likewise.
17154 (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
17155 (get_computation_cost_at): Change add_regs_cost calls to add_cost
17156 lookups; change multiply_by_const_cost to mult_by_coeff_cost.
17157 (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
17158 (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
17159 * tree-ssa-address.c (expmed.h): New #include.
17160 (most_expensive_mult_to_index): Change multiply_by_const_cost to
17161 mult_by_coeff_cost.
17162 * gimple-ssa-strength-reduction.c (expmed.h): New #include.
17163 (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
17164 neg_cost, and convert_cost instead of IVOPTS interfaces.
17165 (execute_strength_reduction): Remove calls to initialize_costs and
17167 * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
17168 (init_expmed_one_mode): Initialize convert rtx_def; initialize
17169 x_convert_cost for related modes.
17170 (mult_by_coeff_cost): New function.
17171 * expmed.h (NUM_MODE_INT): New #define.
17172 (struct target_expmed): Add x_convert_cost matrix.
17173 (set_convert_cost): New inline function.
17174 (convert_cost): Likewise.
17175 (mult_by_coeff_cost): New extern decl.
17176 * tree-flow.h (initialize_costs): Remove decl.
17177 (finalize_costs): Likewise.
17178 (multiply_by_const_cost): Likewise.
17179 (add_regs_cost): Likewise.
17180 (multiply_regs_cost): Likewise.
17181 (add_const_cost): Likewise.
17182 (extend_or_trunc_reg_cost): Likewise.
17183 (negate_reg_cost): Likewise.
17184 * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
17185 (tree-ssa-address.o): Update dependencies.
17187 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
17189 * bitmap.h: Add explanation of sparse set as linked-list bitmap.
17190 * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
17191 (TEST_BIT): Make a static inline function for stronger type checking.
17192 (SET_BIT): Don't handle sbitmaps with popcount.
17193 (RESET_BIT): Likewise.
17194 (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
17195 (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
17196 * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
17197 RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
17198 (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
17199 ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
17200 * sparseset.h: Add explanation of sparse set representation.
17202 2012-07-26 Richard Guenther <rguenther@suse.de>
17204 PR tree-optimization/54098
17205 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
17206 original range was UNDEFINED.
17208 2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17210 * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
17211 vld1Q_dupu64 tests.
17213 2012-07-26 Oleg Endo <olegendo@gcc.gnu.org>
17216 * config/sh/sh.opt (mzdcbranch): New option.
17217 * doc/invoke.texi: Document it.
17218 * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
17219 instead of TARGET_HARD_SH4.
17220 * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
17221 for TARGET_HARD_SH4.
17223 2012-07-25 Oleg Endo <olegendo@gcc.gnu.org>
17226 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
17228 (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
17229 * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
17230 from expander. Do not emit shift insn for not-SHMEDIA case.
17231 (ashlsi3_std): Replace with ...
17232 (ashlsi3_k, ashlsi3_d): ... these new insns.
17233 * config/sh/sh.c (gen_ashift): Make static. Add sanity checks.
17234 Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
17235 (gen_ashift_hi): Make static.
17236 * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
17239 2012-07-25 Bharathi Seshadri <bseshadr@cisco.com>
17240 Jim Wilson <jimwilso@cisco.com>
17242 * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
17243 TARGET_BIG_ENDIAN_DEFAULT.
17245 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
17247 * gimple-low.c (lower_try_catch): New function.
17248 (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
17249 <GIMPLE_CATCH>: Delete.
17250 <GIMPLE_EH_FILTER>: Likewise.
17252 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
17254 * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
17255 of BIT_FIELD_REF for ignored results.
17256 * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
17257 CONSTRUCTOR has vector type before using vector accessors on it.
17258 * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
17259 #2 of BIT_FIELD_REF.
17260 (gimplify_expr) <BIT_FIELD_REF>: Likewise.
17261 * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
17262 not process operand #1 and #2.
17263 (convert_local_reference_op): Likewise.
17264 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
17266 <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
17267 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
17269 (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
17270 (build6_stat): Delete.
17271 * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
17273 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
17275 PR tree-optimization/30318
17276 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
17278 [MINUS_EXPR]: Merge with PLUS_EXPR.
17280 2012-07-25 Sandra Loosemore <sandra@codesourcery.com>
17281 Paul Brook <paul@codesourcery.com>
17284 * target.def (warn_func_return): New hook.
17285 * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
17286 * doc/tm.texi: Regenerate.
17287 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17289 * ipa-pure-const.c (warn_function_noreturn): Check
17290 targetm.warn_func_return.
17291 * tree-cfg.c (execute_warn_function_return): Likewise.
17292 * config/spu/spu.c (spu_warn_func_return): New.
17293 (TARGET_WARN_FUNC_RETURN): Define.
17294 * config/rx/rx.c (rx_warn_func_return): New.
17295 (TARGET_WARN_FUNC_RETURN): Define.
17296 * config/avr/avr.c (avr_warn_func_return): New.
17297 (TARGET_WARN_FUNC_RETURN): Define.
17298 * config/arm/arm.c (arm_warn_func_return): New.
17299 (TARGET_WARN_FUNC_RETURN): Define.
17300 * config/mcore/mcore.c (mcore_warn_func_return): New.
17301 (TARGET_WARN_FUNC_RETURN): Define.
17302 (saved_warn_return_type, saved_warn_return_type_count): Remove.
17303 (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
17305 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
17307 * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
17308 function to implement assembler dialects.
17309 (output_asm_insn): Use do_assembler_dialects.
17310 (asm_fprintf): Likewise.
17312 2012-07-25 Richard Henderson <rth@redhat.com>
17315 * libfuncs.h: Don't include optabs.h.
17316 (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
17317 * optabs.c (hash_libfunc): Don't cast members to int.
17318 * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
17320 2012-07-25 Dodji Seketeli <dodji@redhat.com>
17322 * basic-block.c: Fix typo in comment.
17324 2012-07-25 Kirill Yukhin <kirill.yukhin@intel.com>
17325 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17327 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
17328 (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
17329 (ix86_handle_option): Handle mprfchw option.
17330 * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
17331 (x86_64-*-*): Likewise.
17332 * config/i386/prfchwintrin.h: New header.
17333 * config/i386/cpuid.h (bit_PRFCHW): New.
17334 (bit_BMI): Formatting fix.
17335 (bit_HLE): Likewise.
17336 (bit_RTM): Likewise.
17337 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17339 * config/i386/i386-c.c: Define __PRFCHW__ if needed.
17340 * config/i386/i386.c (ix86_target_string): Define
17341 -mprfchw option. Formatting fixes.
17342 (PTA_HLE): Formatting fix.
17344 (ix86_option_override_internal): Handle new option.
17345 (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
17346 * config/i386/i386.h (TARGET_PRFCHW): New.
17347 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
17348 * config/i386/i386.opt (mprfchw): New.
17349 * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
17350 * config/i386/x86intrin.h: Include prfchwintrin.h.
17352 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
17354 * config/i386/i386.md (stack_protect_set): Disable the pattern
17355 for Android since Android libc (bionic) does not provide random
17356 value for stack protection guard at gs:0x14. Guard value
17357 will be provided from external symbol (default implementation).
17358 (stack_protect_set_<mode>): Likewise.
17359 (stack_protect_test): Likewise.
17360 (stack_protect_test_<mode>): Likewise.
17361 * defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
17362 not have Bionic by default
17363 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
17364 Macro OPTION_BIONIC is defined in this file and provides Bionic
17365 accessibility status
17367 2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
17369 * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
17371 2012-07-25 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17374 * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
17375 (case ${target}): Add btver2.
17376 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17377 -march=native recognize btver2 processors.
17378 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17379 btver2 def_and_undef
17380 * config/i386/i386.c (struct processor_costs btver2_cost): New
17382 (m_BTVER2): New definition.
17383 (m_AMD_MULTIPLE): Includes m_BTVER2.
17384 (initial_ix86_tune_features): Add btver2 tune.
17385 (processor_target_table): Add btver2 entry.
17386 (static const char *const cpu_names): Add btver2 entry.
17387 (software_prefetching_beneficial_p): Add btver2.
17388 (ix86_option_override_internal): Add btver2 instruction sets.
17389 (ix86_issue_rate): Add btver2.
17390 (ix86_adjust_cost): Add btver2.
17391 * config/i386/i386.h (TARGET_BTVER2): New definition.
17392 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
17393 (enum processor_type): Add PROCESSOR_BTVER2.
17394 * config/i386/i386.md (define_attr "cpu"): Add btver2.
17396 2012-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
17398 * doc/tm.texi: Regenerate.
17399 * targhooks.c (default_init_cost): Add prologue and epilogue costs.
17400 (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
17401 (default_finish_cost): Add prologue and epilogue costs.
17402 * targhooks.h (default_add_stmt_cost): Change parameter list.
17403 (default_finish_cost): Likewise.
17404 * target.def (init_cost): Change documentation string.
17405 (add_stmt_cost): Change documentation string and parameter list.
17406 (finish_cost): Likewise.
17407 * target.h (vect_cost_model_location): New enum.
17408 * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
17409 (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
17411 (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
17412 (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
17413 (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
17414 (struct _vect_peel_extended_info): Rename stmt_cost_vec to
17416 (struct _stmt_vec_info): Remove cost substruct.
17417 (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
17418 (stmt_vinfo_set_outside_of_loop_cost): Remove.
17419 (builtin_vectorization_cost): New function.
17420 (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
17421 (add_stmt_cost): Change parameter list.
17422 (finish_cost): Likewise.
17423 (vect_model_simple_cost): Likewise.
17424 (vect_model_store_cost): Likewise.
17425 (vect_model_load_cost): Likewise.
17426 (record_stmt_cost): Likewise.
17427 (vect_get_load_cost): Likewise.
17428 (vect_get_known_peeling_cost): Likewise.
17429 * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
17430 list; call record_stmt_cost for prologue and epilogue costs.
17431 (vect_estimate_min_profitable_iters): Call add_stmt_cost for
17432 prologue and epilogue costs; remove computation of vec_outside_cost;
17433 return vec_prologue_cost and vec_epilogue_cost from finish_cost.
17434 (vect_model_reduction_cost): Revise call to add_stmt_cost for body
17435 costs; call add_stmt_cost for prologue and epilogue costs.
17436 (vect_model_induction_cost): Revise call to add_stmt_cost for body
17437 costs; call add_stmt_cost for prologue costs.
17438 * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
17439 list for function and arguments for calls to vect_get_load_cost and
17440 vect_get_store_cost.
17441 (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
17442 vect_get_data_access_cost and vect_get_known_peeling_cost; use
17443 temporary vectors prologue_cost_vec and epilogue_cost_vec for the
17444 latter call and discard their results; rename stmt_cost_vec to
17445 body_cost_vec; correct possible storage leak for body_cost_vec.
17446 (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
17448 (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
17449 body_cost_vec; add extra dummy parameter on calls to
17450 vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
17451 argument list on call to add_stmt_cost.
17452 * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
17453 rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
17454 builtin_vectorization_cost; add "where" parameter on call to
17456 (vect_model_simple_cost): Change parameter list; call record_stmt_cost
17457 for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
17458 rename stmt_cost_vec to body_cost_vec.
17459 (vect_model_promotion_demotion_cost): Add vect_body argument to call
17460 to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
17461 to stmt_vinfo_set_outside_of_loop_cost.
17462 (vect_model_store_cost): Change parameter list; call record_stmt_cost
17463 for prologue costs; add vect_body argument to call to record_stmt_cost;
17464 rename stmt_cost_vec to body_cost_vec; remove call to
17465 stmt_vinfo_set_outside_of_loop_cost.
17466 (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
17467 vect_body argument to calls to record_stmt_cost.
17468 (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
17469 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
17470 remove call to stmt_vinfo_set_outside_of_loop_cost.
17471 (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
17472 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
17473 call record_stmt_cost for prologue costs.
17474 (vectorizable_store): Change argument list for call to
17475 vect_model_store_cost.
17476 (vectorizable_load): Change argument list for call to
17477 vect_model_load_cost.
17478 (new_stmt_vec_info): Remove assignment to
17479 STMT_VINFO_OUTSIDE_OF_LOOP_COST.
17480 * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
17481 (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
17482 (spu_finish_cost): Add prologue and epilogue costs.
17483 * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
17484 (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
17485 (i386_finish_cost): Add prologue and epilogue costs.
17486 * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
17488 (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
17489 (rs6000_finish_cost): Add prologue and epilogue costs.
17490 * tree-vect-slp.c (vect_free_slp_instance): Rename
17491 SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
17492 (vect_create_new_slp_node): Remove assignment to
17493 SLP_TREE_OUTSIDE_OF_LOOP_COST.
17494 (vect_get_and_check_slp_defs): Change parameter list; change argument
17495 lists to calls to vect_model_store_cost and vect_model_simple_cost.
17496 (vect_build_slp_tree): Change parameter list; change argument lists
17497 to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
17498 recursive self-calls; remove setting of outside_cost from
17499 SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
17501 (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
17502 rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
17503 remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
17505 (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
17506 body_cost_vec; handle null ci->stmt; add vect_body argument to call
17507 to add_stmt_cost; simplify calls to targetm.vectorize.
17508 builtin_vectorization_cost; return vec_prologue_cost and
17509 vec_epilogue_cost from finish_cost.
17510 (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
17511 body_cost_vec; add vect_body argument to call to add_stmt_cost.
17513 2012-07-24 Richard Henderson <rth@redhat.com>
17515 * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
17516 * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17517 * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17518 * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17519 * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
17521 * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17522 * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
17523 (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
17524 * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17525 * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
17526 * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
17527 * doc/tm.texi: Rebuild.
17529 2012-07-24 Richard Henderson <rth@redhat.com>
17531 * optabs.def: New file.
17532 * Makefile.in (OPTABS_H): Add insn-opinit.h.
17533 (MOSTLYCLEANFILES): Likewise.
17534 (insn-opinit.o): Remove reload.h
17535 (simple_rtl_generated_c): Remove insn-opinit.c.
17536 (s-opinit): New rule.
17537 (build/genopinit.o): Add optabs.def.
17538 * genopinit.c (rtx_upname): New.
17539 (optabs): Extract to optabs.def
17540 (enum optab_tag, struct optab_def_d, optabs): New.
17541 (struct pattern_d, patterns): New.
17542 (match_pattern): Split out from ...
17543 (gen_insn): ... here. Push matches on patterns vec.
17544 (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
17545 (header_file_name, source_file_name, handle_arg): New.
17546 (open_outfile): New.
17547 (main): Sort and emit new tables. Generate lookup_handler,
17548 raw_optab_handler, swap_optab_enable.
17549 * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
17550 * optabs.c (code_to_optab_): Remove.
17551 (hash_libfunc): Update for optab name change.
17552 (eq_libfunc): Likewise.
17553 (convert_optab_libfunc): Update computation of optab member;
17554 use the new convlib_def table.
17555 (optab_libfunc): Similarly.
17556 (set_optab_libfunc, set_conv_libfunc): Likewise.
17557 (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
17558 (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
17559 (init_optabs): Don't call them; export the data to optabs.def.
17560 (gen_int_libfunc, gen_fp_libfunc): Export non-static.
17561 (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
17562 (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
17563 (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
17564 (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
17565 (gen_int_signed_fixed_libfunc): Likewise.
17566 (gen_int_unsigned_fixed_libfunc): Likewise.
17567 (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
17568 (gen_ufloat_conv_libfunc): Likewise.
17569 (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
17570 (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
17571 (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
17572 (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
17573 (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
17574 (debug_optab_libfuncs): Update for optab representation change.
17575 * optabs.h: Include insn-opinit.h.
17576 (optab, convert_optab, direct_optab): New typedefs.
17577 (struct optab_handlers, struct widening_optab_handlers): Remove.
17578 (struct optab_libcall_d): Rename from optab_d; remove code_,
17579 handlers, widening members.
17580 (struct convert_optab_libcall_d): Rename from convert_optab_d;
17581 remove code_ and handlers members.
17582 (enum optab_index, enum convert_optab_index): Remove.
17583 (enum direct_optab_index): Remove.
17584 (code_to_optab_): Fix array range.
17585 (optab_to_code): Covert to inline function.
17586 (optab_to_code_, convlib_def, normlib_def): Declare.
17587 (raw_optab_handler, swap_optab_enable): Declare.
17588 (unknown_optab): Remove; export to optabs.def
17589 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
17590 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
17591 ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
17592 addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
17593 smul_widen_optab, umul_widen_optab, usmul_widen_optab,
17594 smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
17595 usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
17596 ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
17597 sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
17598 umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
17599 ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
17600 rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
17601 vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
17602 atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
17603 movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
17604 negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
17605 ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
17606 parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
17607 cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
17608 ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
17609 log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
17610 ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
17611 tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
17612 cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
17613 lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
17614 cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
17615 reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
17616 reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
17617 usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
17618 vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
17619 vec_realign_load_optab, vec_widen_umult_hi_optab,
17620 vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
17621 vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
17622 vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
17623 vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
17624 vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
17625 vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
17626 vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
17627 vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
17628 vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
17629 vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
17630 vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
17631 sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
17632 sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
17633 sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
17634 sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
17635 sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
17636 ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
17637 ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
17638 fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
17639 vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
17640 movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
17641 setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
17642 sync_lock_release_optab, sync_add_optab, sync_sub_optab,
17643 sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
17644 atomic_exchange_optab, atomic_compare_and_swap_optab,
17645 atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
17646 atomic_sub_fetch_optab, atomic_and_fetch_optab,
17647 atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
17648 atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
17649 atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
17650 atomic_add_optab, atomic_sub_optab, atomic_and_optab,
17651 atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
17652 atomic_always_lock_free_optab, atomic_is_lock_free_optab,
17653 atomic_thread_fence_optab, atomic_signal_fence_optab,
17654 vec_perm_optab, vec_perm_const_optab): Likewise.
17655 (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
17656 and x_direct_optab_table members; add pat_enable.
17657 (optab_table, convert_optab_table, direct_optab_table): Remove.
17658 (optab_handler): Use raw_optab_handler.
17659 (widening_optab_handler, convert_optab_handler): Likewise.
17660 (set_optab_handler, set_widening_optab_handler): Remove.
17661 (set_convert_optab_handler, set_direct_optab_handler): Remove.
17662 (direct_optab_handler): Defer to optab_handler.
17663 * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
17665 2012-07-24 Jason Merrill <jason@redhat.com>
17667 * bitmap.c (bitmap_descriptor): Adjust order of parameters to
17668 match MEM_STAT_DECL.
17669 * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
17671 2012-07-24 Richard Henderson <rth@redhat.com>
17673 * optabs.h (struct optab_d): Rename code member to code_.
17674 (struct convert_optab_h): Likewise.
17675 (code_to_optab_): Rename from code_to_optab.
17676 (code_to_optab, optab_to_code): New.
17677 * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
17678 * ifcvt.c (noce_emit_move_insn): Likewise.
17679 * optabs.c (simplify_expand_binop): Use optab_to_code.
17680 (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
17681 (avoid_expensive_constant, expand_binop_directly): Likewise.
17682 (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
17683 (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
17684 (have_insn_for, debug_optab_libfuncs): Likewise.
17685 (init_optab, init_optabv, init_convert_optab): Update for optab
17686 member name change.
17688 * libfuncs.h: Include optabs.h.
17689 * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
17690 * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
17691 (lto-streamer-in.o, dwarf2out.o): Update deps.
17693 * optabs.h (unknown_optab): New.
17694 * builtins.c (interclass_mathfn_icode): Use it.
17695 * dojump.c (do_compare_rtx_and_jump): Likewise.
17696 * optabs.c (optab_for_tree_code, expand_binop): Likewise.
17697 * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
17698 (expand_vector_operations_1): Likewise.
17699 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17700 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
17702 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
17704 * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
17706 2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17709 * config/arm/arm.c (arm_print_operand_address): Remove superfluous
17711 * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
17713 ("neon_vld3_lane<mode>":VMQ): Likewise.
17714 ("neon_vld3_dup<mode>":VDX): Likewise.
17715 ("neon_vst3_lane<mode>":VD): Likewise.
17716 ("neon_vst3_lane<mode>":VMQ): Likewise.
17718 2012-07-24 Roland McGrath <mcgrathr@google.com>
17720 * arm.c (arm_get_frame_offsets): Don't use fixed regs for
17721 stack alignment padding.
17723 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
17726 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
17727 negative constant address for TARGET_X32 ...
17728 (ix86_decompose_address): ... here. Reject constant addresses
17729 that don't satisfy x86_64_immediate_operand predicate.
17731 2012-07-24 Julian Brown <julian@codesourcery.com>
17733 * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
17735 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
17737 * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
17738 Move test to check that there is a popcount function for the the number
17739 of bits in SBITMAP_ELT_BITS to sbitmap.c.
17740 * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
17741 MEM_STAT_INFO): Define in terms of their ALONE counterparts.
17743 * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
17744 * configure: Regenerate.
17745 * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
17746 (GCC_MEM_STAT_ARGUMENTS): New define.
17747 (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
17748 (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
17749 (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
17750 FINAL_PASS_MEM_STAT): Define.
17751 * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
17752 * ggc.h (ggc_record_overhead, ggc_free_overhead,
17753 ggc_prune_overhead_list): Remove internal prototypes, they are defined
17754 already in ggc-internal.h.
17755 * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
17757 (add_statistics): Likewise.
17758 (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
17759 * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
17760 wrappers around "survived" and "stats" members.
17761 (alloc_large_page): Always initialize survived.
17762 (ggc_internal_alloc_zone_stat): Likewise.
17763 Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if
17764 GATHER_STATISTICS is non-0.
17765 (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
17766 (sweep_pages): Always increase survived.
17767 (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
17768 (calculate_average_page_survival): Always define.
17769 (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
17770 (ggc_print_statistics): Likewise.
17771 (ggc_pch_read): Likewise.
17772 * ggc-page.c (struct globals): Always define "stats" member.
17773 (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
17774 (ggc_free): Likewise.
17775 (ggc_collec): Likewise.
17776 (ggc_print_statistics): Likewise.
17777 * bitmap.h (struct bitmap_head_def): Always define "desc" member.
17778 (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
17779 * gimple.h (enum gimple_alloc_kind): Always define.
17780 (gimple_alloc_kind): Likewise.
17781 * tree-flow.h (phinodes_print_statistics): Always define.
17782 (ssanames_print_statistics): Likewise.
17783 * vec.h (vec_heap_free): Always define.
17784 (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
17785 * alloc-pool.c (alloc_pool_descriptor): Always define.
17786 (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
17787 (empty_alloc_pool): Likewise.
17788 (pool_alloc): Likewise.
17789 (pool_free): Likewise.
17790 (dump_alloc_pool_statistics): Likewise.
17791 (print_statistics): Always define.
17792 * bitmap.c (struct bitmap_descriptor): Always define.
17793 (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
17794 (register_overhead): Always define.
17795 (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
17796 (bitmap_element_allocate): Likewise.
17797 (bitmap_elt_clear_from): Likewise.
17798 (bitmap_obstack_alloc_stat): Likewise.
17799 (bitmap_gc_alloc_stat): Likewise.
17800 (bitmap_obstack_free): Likewise.
17801 (bitmap_find_bit): Likewise.
17802 (bitmap_ior_and_into): Likewise.
17803 (bitmap_print): Likewise.
17804 (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
17805 * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
17806 (gimple_alloc_kind_names): Likewise.
17807 (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
17808 (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
17809 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
17810 rtvec_alloc_sizes): Always define.
17811 (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
17812 (rtx_alloc_stat): Likewise.
17813 (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
17814 * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
17815 tree_node_sizes, tree_node_kind_names): Always define.
17816 (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
17818 (type_hash_canon): Likewise.
17819 (dump_tree_statistics): Likewise.
17820 * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
17822 (ssanames_print_statistics): Likewise.
17823 (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
17824 * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
17825 (phinodes_print_statistics): Likewise.
17826 (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
17827 * vec.c (struct vec_descriptor): Always define.
17828 (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
17829 vec_descriptor, rester_overhead, free_overhead): Likewise.
17830 (cmp_statistic): Likewise.
17831 (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
17832 (vec_heap_o_reserve_1): Likewise.
17833 (dump_vec_loc_statistics): Likewise.
17835 2012-07-24 Richard Guenther <rguenther@suse.de>
17837 PR tree-optimization/53616
17838 * tree-loop-distribution.c (ldist_gen): Do not change
17839 partition ordering when merging partitions.
17841 2012-07-24 Alan Modra <amodra@gmail.com>
17845 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
17846 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
17847 Adjust all rs6000_legitimate_offset_address_p calls.
17848 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
17849 (rs6000_secondary_reload_gpr): Declare.
17850 (rs6000_legitimate_offset_address_p): Update prototype.
17851 (rs6000_offsettable_memref_p): Delete.
17852 (rs6000_secondary_reload_ppc64): Delete.
17853 * config/rs6000/rs6000.c (address_offset): New function.
17854 (mem_operand_gpr): Likewise.
17855 (rs6000_legitimate_offset_address_p): Add worst_case param. When
17856 not worst_case assume class of regs with least restrictive offsets.
17858 (legitimate_lo_sum_address_p): Simplify register mode tests.
17859 (rs6000_legitimize_address): Likewise. Assume best case offset
17860 addressing. Combine ELF and MACHO lo_sum code.
17861 (rs6000_mode_dependent_address): Correct offset addressing limits.
17862 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
17863 Use reg_mode to help rs6000_legitimate_offset_address_p.
17864 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
17865 gpr load/store when offset too large.
17866 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
17867 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
17868 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
17869 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
17870 d->m,m->d,d->d. Correct size of gpr load/store.
17871 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
17873 (movti_ppc64): Likewise.
17874 (movdi_internal32): Likewise. Also disparage fprs.
17875 (movdi_mfpgpr, movdi_internal64): Likewise.
17876 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
17877 (movtf_softfloat): Order alternatives.
17878 (extenddftf2_internal): Use 'm' and 'Y' for store.
17879 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
17880 (stack_protect_setdi, stack_protect_testdi): Likewise.
17881 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
17882 (movdf_softfloat64): Likewise.
17883 (reload_<mode>_store): Adjust reload_di_store to provide
17884 reload_si_store as well.
17885 (reload_<mode>_load): Likewise.
17887 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
17890 * config/sh/predicates.md (general_movsrc_operand,
17891 general_movdst_operand): Reject T_REG.
17892 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
17893 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
17894 Remove T_REG alternatives.
17895 (*negtstsi): New insn.
17897 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
17900 * config/sh/sh.md (mulsf3_ie): Delete.
17901 (mulsf3_i4): Rename to mulsf3_i.
17902 (mulsf3): Emit mulsf3_i insn.
17904 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
17906 * config/sh/sh.md (addc1, subc1): Delete.
17907 (adddi3_compact): Use addc instead of addc1.
17908 (subdi3_compact): Use subc instead of subc1.
17910 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
17912 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
17913 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
17914 split_cost argument signed.
17915 (ix86_avoid_lea_for_add): Cleanup.
17916 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
17917 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
17918 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
17920 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
17922 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
17924 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
17927 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
17928 * config/i386/i386.c (ix86_print_operand_address): Ditto.
17929 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
17930 addresses. Prevent zero extensions of CONST_INT operands.
17932 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
17934 * sbitmap.h (struct int_list): Remove.
17935 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
17936 Remove prototypes of non-existing function.
17937 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
17938 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
17940 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
17941 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
17942 * basic-block.h: ... here.
17943 * sbitmap.c: Do not include basic-block.h.
17944 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
17945 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
17946 * cfganal.c: ... here.
17947 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
17948 * gcse.c (compute_code_hoist_vbeinout): Likewise.
17949 * lcm.c (compute_antinout_edge, compute_available): Likewise.
17950 * Makefile.in: Fix sbitmap.o dependencies.
17952 2012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17953 Nick Clifton <nickc@redhat.com>
17955 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
17956 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
17957 (unused) parameter to void *.
17959 2012-07-23 Richard Guenther <rguenther@suse.de>
17961 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
17962 instead of referenced vars.
17964 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
17966 * coverage.c: Refer to "notes file" instead of "graph file"
17967 in all comments. Explain history of bbg prefix.
17968 * gcov-io.h: Likewise.
17969 * gcov.c: Likewise.
17970 (find_source): Likewise in fnotice.
17971 (read_graph_file): Likewise.
17972 (read_count_file): Likewise.
17973 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
17974 and "data file" explicitly in the explanation of the files.
17976 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
17978 PR tree-optimization/53881
17979 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
17980 for each label and compare them instead of labels.
17982 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
17984 * opts.c (common_handle_option): Do not set
17985 flag_value_profile_transformations for -fprofile-generate.
17986 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
17987 (BB_TO_GCOV_INDEX): Remove.
17988 (output_location): Don't use it.
17989 (branch_prob): Likewise. Don't fiddle with the index of
17990 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
17991 (find_spanning_tree):
17992 * gcov.c (struct function_info): Document that blocks 0 and 1
17993 are the entry resp. exit blocks in gcov, too, like in GCC itself.
17994 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
17995 blocks identification.
17996 (output_lines): Likewise.
17997 * value-prof.c (gimple_value_profile_transformations): Do not
17998 test flag_value_profile_transformations again.
17999 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
18000 transformation functions.
18001 (gimple_values_to_profile):
18002 Don't test flag_value_profile_transformations
18003 * tree-profile.c (tree_profiling): Assert that the cgraph is in
18004 the CGRAPH_STATE_IPA_SSA state.
18005 Do not set, or look at, after_tree_profile.
18006 * function.h (struct function): Remove after_tree_profile bit.
18007 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
18008 * tree-inline.c (initialize_cfun): Don't copy it.
18009 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
18010 * lto-streamer-in.c (input_struct_function_base): Likewise.
18012 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
18014 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
18015 (SH_DYNAMIC_SHIFT_COST): Use it.
18016 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
18017 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
18018 Add sanity check for input value. Add function description.
18019 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
18020 lshrsi3_d): Use TARGET_DYNSHIFT.
18022 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
18024 * config/sh/sh.md (negc): Delete expander.
18025 (*negc): Rename insn to negc.
18027 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
18030 * config/i386/i386.md (*lea): New insn pattern.
18032 (*lea<mode>_2): Ditto.
18033 (*lea_{3,4,5,6}_zext): Ditto.
18034 * config/i386/predicates.md (lea_address_operand): Do not reject
18035 zero-extended address operands.
18036 * config/i386/constraints.md (j): Remove address constraint.
18037 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
18039 (ix86_print_operand_address): Handle SImode subreg of an address.
18040 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
18042 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
18044 Emit executable-stack note correctly for CRIS targets.
18045 * config/cris/cris.c (cris_file_end): New function.
18046 (TARGET_ASM_FILE_END): Define.
18048 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
18049 Maxim Kuvyrkov <maxim@codesourcery.com>
18050 NetLogic Microsystems Inc.
18052 * config/mips/mips.c (mips_issue_rate): Handle XLP.
18053 * config/mips/mips.md: Include xlp.md.
18054 * config/mips/xlp.md: New file.
18056 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
18058 PR gcov-profile/32543
18059 * profile.c (branch_prob): Update total_num_edges_instrumented and
18060 report the number of edges to instrument.
18062 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
18064 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
18066 2012-07-21 Andrew Pinski <apinski@cavium.com>
18068 * config/mips/mips.md (*popcountdi2_trunc): New pattern
18069 to handle popcount of a truncation.
18071 2012-07-21 Andrew Pinski <apinski@cavium.com>
18073 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
18074 Add a bool argument.
18075 * config/mips/mips.c (mips_block_move_straight): Update call to
18076 mips_expand_ext_as_unaligned_load.
18077 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
18078 Accept DImode dest when the width is that of SImode.
18079 * config/mips/mips.md (extv): Update call to
18080 mips_expand_ext_as_unaligned_load.
18083 2012-07-21 Andrew Pinski <apinski@cavium.com>
18085 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
18088 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
18090 * config/mips/mips.md (define_attr sync_*): Move before "type".
18091 (define_attr "type"): New values "atomic" and "syncloop".
18092 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
18093 Set "type" attribute.
18094 * config/mips/generic.md (generic_atomic, generic_syncloop):
18096 * config/mips/10000.md, config/mips/20kc.md,
18097 * config/mips/24k.md, config/mips/4130.md,
18098 * config/mips/4k.md, config/mips/5400.md,
18099 * config/mips/5500.md, config/mips/5k.md,
18100 * config/mips/7000.md, config/mips/74k.md,
18101 * config/mips/9000.md, config/mips/loongson2ef.md,
18102 * config/mips/loongson3a.md, config/mips/octeon.md,
18103 * config/mips/sb1.md, config/mips/sr71k.md,
18104 * config/mips/xlr.md: Handle "atomic" and "syncloop" types.
18106 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
18108 * config/sh/sh.md: Group and sort shift related patterns.
18109 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
18111 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
18113 * config/cris/cris.c (cris_asm_output_ident): Remove unused
18114 local variables section_asm_op, size, buf.
18116 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
18117 Steven Bosscher <steven@gcc.gnu.org>
18119 * config/rs6000/power4.md (power4-store-update): Fix reservation.
18120 (power4-three): Likewise.
18122 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
18123 Greta Yorsh <Greta.Yorsh@arm.com>
18125 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
18126 * config/arm/arm-cores.def (cortex-a15): Use it.
18128 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
18129 Greta Yorsh <Greta.Yorsh@arm.com>
18131 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
18132 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
18133 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
18134 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
18135 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
18136 (arm_fa726te_tune): Likewise.
18138 2012-07-20 Richard Guenther <rguenther@suse.de>
18140 * tree-dfa.c (collect_dfa_stats): Simplify.
18141 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
18143 * cfgexpand.c (estimated_stack_frame_size): Walk over local
18144 decls instead of referenced vars.
18145 * tree-ssa.c (delete_tree_ssa): Simplify.
18146 * tree-tailcall.c (find_tail_calls): Walk over local decls
18147 instead of referenced vars.
18148 (add_virtual_phis): Remove.
18149 (tree_optimize_tail_calls_1): Instead mark the virtual operand
18152 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
18154 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
18155 (brief_dump_cfg): Update prototype to take flags argument.
18156 (check_bb_profile): Remove prototype.
18157 * tracer.c (tracer): Update brief_dump_cfg calls.
18158 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
18159 Call dump_bb_info before and after the cfghook dump_bb. Terminate
18160 the dump with a newline.
18161 (dump_flow_info): Do not call check_bb_profile.
18162 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
18163 (check_bb_profile): Make static. Take indent and flags arguments.
18164 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
18165 check_bb_profile. Print one edge per line.
18166 (brief_dump_cfg): Take a flags argument, and filter out
18167 TDF_COMMENT and TDF_DETAILS.
18168 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
18169 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
18170 dump_bb_info here, it is already called from dump_bb. Idem for
18172 (dump_gimple_bb_footer): Likewise.
18173 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
18174 avoid broken dumps for statement histograms.
18175 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
18176 not call pp_flush here, the buffer should be empty.
18177 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
18178 * sched-vis.c (debug_bb_slim): Likewise.
18179 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
18180 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
18181 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
18182 (dump_function_to_file): Do not call check_bb_profile on
18183 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
18184 Use dump_bb instead of gimple_dump_bb.
18185 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
18186 * passes.c (execute_function_dump): Always call print_rtl_with_bb
18188 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
18189 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
18190 bottom of each basic block.
18192 2012-07-20 Richard Guenther <rguenther@suse.de>
18194 PR tree-optimization/54031
18195 * tree-ssa-ccp.c (get_value_from_alignment): Use
18196 get_pointer_alignment_1.
18198 2012-07-20 Richard Guenther <rguenther@suse.de>
18200 * tree-inline.c (add_local_variables): Remove check_var_ann
18201 parameter and dead code.
18202 (expand_call_inline): Adjust.
18203 (tree_function_versioning): Likewise.
18205 2012-07-20 Jakub Jelinek <jakub@redhat.com>
18208 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
18209 of just the first one.
18211 2012-07-20 Richard Guenther <rguenther@suse.de>
18213 * builtins.c (get_object_alignment_2): Correct offset handling
18214 when using type alignment of a MEM_REF kind base.
18216 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
18219 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
18220 (_lzcnt_u64): Ditto.
18222 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
18224 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
18226 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
18228 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
18229 defining statement is a SSA name that occurs in abnormal PHIs.
18231 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
18233 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
18236 2012-07-19 Jakub Jelinek <jakub@redhat.com>
18238 PR rtl-optimization/53942
18239 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
18240 directly from likely spilled non-fixed hard registers, move them
18243 2012-07-19 Steve Ellcey <sellcey@mips.com>
18245 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
18248 2012-07-19 Jason Merrill <jason@redhat.com>
18251 * dwarf2out.c (get_die_parent): New.
18252 (generate_type_signature): Use it.
18254 2012-07-19 Richard Henderson <rth@redhat.com>
18256 * config/ia64/vect.md (smulv4hi3_highpart): New.
18257 (umulv4hi3_highpart): New.
18258 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
18259 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
18260 (udot_prodv8qi, sdot_prodv8qi): Remove.
18261 (sdot_prodv4hi, udot_prodv4hi): Remove.
18262 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
18263 * config/ia64/ia64-protos.h: Update.
18265 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
18266 vectors larger than UNITS_PER_WORD.
18268 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
18269 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
18270 dummy != CODE_FOR_nothing value.
18272 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
18274 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
18275 * doc/tm.texi: Regenerate.
18276 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
18277 * config/sh/sh.h (MODE_AFTER): Update.
18278 * config/epiphany/epiphany.h (MODE_AFTER): Update.
18280 2012-07-19 Jakub Jelinek <jakub@redhat.com>
18282 PR middle-end/54017
18283 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
18284 (cleanup_tree_cfg_bb): Don't call it.
18285 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
18288 2012-07-19 Christian Bruel <christian.bruel@st.com>
18291 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
18293 2012-07-19 Richard Guenther <rguenther@suse.de>
18294 Eric Botcazou <ebotcazou@adacore.com>
18296 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
18297 about transition from invariant to known bits.
18298 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
18300 2012-07-19 Richard Guenther <rguenther@suse.de>
18302 PR tree-optimization/53970
18303 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
18305 2012-07-19 Tristan Gingold <gingold@adacore.com>
18306 Richard Henderson <rth@redhat.com>
18308 * opts.c (finish_options): Handle UI_SEH.
18309 * expr.c (build_personality_function): Handle UI_SEH.
18310 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
18311 * coretypes.h (unwind_info_type): Add UI_SEH.
18312 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
18314 (i386_pe_seh_init_sections): Likewise.
18315 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
18316 (TARGET_ASM_INIT_SECTIONS): Define.
18317 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
18318 (i386_except_unwind_info): New function.
18320 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
18321 Chao-ying Fu <fu@mips.com>
18323 * config/mips/mips.opt (mmcu): New option.
18324 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
18325 _mips_mcu when TARGET_MCU.
18326 (ASM_SPEC): Pass mcu options to the assembler.
18327 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
18329 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
18331 * config.gcc (v850-*-rtems*): New target.
18332 * config/v850/rtems.h: New.
18333 * config/v850/t-rtems: New.
18335 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
18337 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
18338 of flags controlling optimization; add -ftree-slsr to list of flags
18339 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
18340 enabled by default at -O2; add -fvect-cost-model to list of flags
18341 enabled by default at -O3; document -fhoist-adjacent-loads and
18343 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
18344 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
18346 * common.opt: Add -ftree-slsr with flag_tree_slsr.
18348 2012-07-18 Jie Zhang <jzhang918@gmail.com>
18349 Julian Brown <julian@codesourcery.com>
18351 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
18352 (arm_size_rtx_costs): Likewise.
18353 (neon_valid_immediate): Add a case for double 0.0.
18355 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
18356 Mark Shinwell <shinwell@codesourcery.com>
18357 Julian Brown <julian@codesourcery.com>
18359 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
18360 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
18361 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
18362 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
18364 * config/arm/arm.md (neon_type): Update comment.
18366 2012-07-18 Richard Guenther <rguenther@suse.de>
18368 PR tree-optimization/53970
18369 * tree.h (contains_packed_reference): Remove.
18370 * expr.c (contains_packed_reference): Likewise.
18371 * tree-vect-data-refs.c (not_size_aligned): New function.
18372 (vector_alignment_reachable_p): Use it.
18373 (vect_supportable_dr_alignment): Likewise.
18375 2012-07-18 Richard Guenther <rguenther@suse.de>
18377 * tree.h (get_object_or_type_alignment): Remove.
18378 * builtins.c (get_object_alignment_2): New function copied from
18379 get_object_alignment_1. Take extra argument to indicate whether
18380 we take the address of EXP. Rework to use type alignment information
18381 if not, and return whether the result is an approximation or not.
18382 (get_object_alignment_1): Wrap around get_object_alignment_2.
18383 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
18384 we take the address.
18385 (get_object_or_type_alignment): Remove.
18386 * expr.c (expand_assignment): Call get_object_alignment.
18387 (expand_expr_real_1): Likewise.
18389 2012-07-18 Nick Clifton <nickc@redhat.com>
18391 * doc/invoke.texi (ARM Options): Document -munaligned-access.
18393 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
18395 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
18396 expander. Use arith_reg_dest predicate.
18397 (rotldi3, rotrdi3): Remove constraints in expander.
18398 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
18399 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
18402 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
18405 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
18407 * config/sh/sh.c (sh_option_override): Do not change
18408 flag_finite_math_only. Set TARGET_IEEE to complement of
18409 flag_finite_math_only.
18410 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
18411 of mieee and mno-ieee behavior.
18413 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
18415 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
18417 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
18419 * dumpfile.h (TDF_COMMENT): New define.
18420 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
18421 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
18422 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
18423 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
18424 Move to new file cfg-flags.h.
18425 (enum cfg_edge_flags): New enum, using cfg-flags.h.
18426 (EDGE_ALL_FLAGS): Compute value automatically.
18427 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
18428 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
18429 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
18430 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
18431 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
18432 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
18433 (BB_ALL_FLAGS): New, compute value automatically.
18434 (dump_bb_info): Update prototype.
18435 (dump_edge_info): Update prototype.
18436 * cfg-flags.h: New file.
18437 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
18438 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
18439 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
18440 (debug_bb): Update dump_bb call.
18441 (dump_cfg_bb_info): Remove.
18442 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
18443 Adjust verbosity using TDF_* flags. Check that the basic block flags
18444 are within the range of BB_ALL_FLAGS.
18445 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
18446 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
18447 first for consistency with other dump functions.
18448 (dump_bb): Update prototype accordingly.
18449 * cfghooks.c: Include dumpfile.h.
18450 (verify_flow_info): Update dump_edge_info calls.
18451 (dump_bb): Take a flags argument and pass it around.
18452 Use dump_bb_info to dump common information about a basic block.
18453 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
18454 (debug_flow_info): Moved here from cfgrtl.c.
18455 * profile.c (is_edge_inconsistent): Update dump_bb calls.
18456 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
18457 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
18458 print_rtl_slim_with_bb): Remove prototypes.
18459 (dump_insn_slim): Adjust prototype to take a const_rtx.
18460 (print_rtl_with_bb): Adjust prototype.
18461 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
18462 * sched-vis.c (dump_insn_slim): Take a const_rtx.
18463 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
18464 (print_rtl_slim_with_bb): Remove.
18465 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
18466 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
18467 for that. Prototype here near DEBUG_FUNCTION marker.
18468 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
18470 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
18471 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
18472 (remove_bb): Update dump_bb call.
18473 (gimple_debug_bb): Use dump_bb.
18474 (dump_function_to_file): Update gimple_dump_bb call.
18475 (print_loops_bb): Likewise.
18476 * tree-flow.h (gimple_dump_bb): Update prototype.
18477 * gimple-pretty-print.c (dump_bb_header): Rename to
18478 dump_gimple_bb_header. Write to a stream instead of a pretty
18479 printer. Use dump_bb_info to dump basic block info.
18480 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
18481 stream instead of a pretty printer. Use dump_bb_info.
18482 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
18483 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
18484 dump_gimple_bb_footer.
18485 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
18486 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
18487 (print_rtl_with_bb): Take a flags argument and pass it around.
18488 Use dump_insn_slim if TDF_SLIM.
18489 (dump_bb_info): Removed and re-incarnated in cfg.c.
18490 (dump_flow_info): Moved to cfghooks.c.
18491 (debug_flow_info): Moved to cfghooks.c.
18492 * passes.c (execute_function_dump): Unconditionally use
18493 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
18494 * final.c (dump_basic_block_info): Update dump_edge_info calls.
18495 * tree-vrp.c (dump_asserts_for): Likewise.
18496 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
18497 * tree-if-conv.c (if_convertible_bb_p): Don't look at
18498 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
18499 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
18500 for the same reason.
18501 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
18503 2012-07-17 Richard Guenther <rguenther@suse.de>
18505 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
18506 vars here, use create_tmp_reg where appropriate.
18507 (vect_create_addr_base_for_vector_ref): Do not add referenced
18508 vars here, use create_tmp_reg where appropriate.
18509 (vect_create_data_ref_ptr): Likewise.
18510 (vect_create_destination_var): Likewise.
18511 (vect_permute_store_chain): Likewise.
18512 (vect_permute_load_chain): Likewise.
18513 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18515 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
18516 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
18517 (vect_handle_widen_op_by_const): Likewise.
18518 * tree-vect-stmts.c (vect_init_vector): Likewise.
18519 (vectorizable_load): Likewise.
18521 2012-07-17 Tom de Vries <tom@codesourcery.com>
18523 * hwint.c: Fix loop range.
18525 2012-07-17 Tom de Vries <tom@codesourcery.com>
18527 * double-int.h (double_int_popcount): New inline function.
18528 * hwint.c (popcount_hwi): New function.
18529 * hwint.h (popcount_hwi): Declare function. New inline function.
18531 2012-07-17 Richard Henderson <rth@redhat.com>
18533 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
18535 (vectorizable_conversion): Update supportable_widening_operation call.
18536 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
18537 (vect_recog_widen_shift_pattern): Likewise.
18538 * tree-vectorizer.h: Update decl.
18540 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18541 Ulrich Weigand <ulrich.weigand@linaro.org>
18543 * common/config/arm/arm-common.c (arm_option_optimization_table):
18544 Enable -fsched-pressure by default while optimizing.
18545 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
18546 pressure algorithm by default.
18548 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
18550 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
18551 (CONST_OK_FOR_I10): Move macro to ...
18552 * config/sh/sh.c: ... here.
18553 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
18556 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
18558 * config/sh/sh.md: Delete mov related define_peephole patterns.
18560 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
18563 * doc/install.texi (Installing GCC): Refer to instructions for
18564 released versions. Fix hyphenation.
18566 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18568 * config/spu/spu.c (targetm): Move to bottom of file.
18569 (spu_attribute_table): Likewise.
18570 (spu_option_override, spu_init_builtins, spu_builtin_decl,
18571 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
18572 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
18573 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
18574 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
18575 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
18576 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
18577 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
18578 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
18579 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
18580 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
18581 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
18582 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
18583 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
18584 spu_encode_section_info, spu_legitimize_address,
18585 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
18586 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
18587 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
18588 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
18589 spu_section_type_flags, spu_select_section, spu_unique_section,
18590 spu_trampoline_init, spu_conditional_register_usage,
18591 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
18592 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
18593 spu_setup_incoming_varargs): Remove prototypes.
18594 (spu_legitimize_address): Add "static" to definition.
18596 2012-07-16 Jakub Jelinek <jakub@redhat.com>
18598 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
18600 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
18602 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
18603 before calling gsi_stmt.
18605 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
18608 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
18610 * config/i386/i386.md (stack_protect_set): Disable the pattern
18611 for Android since Android libc (bionic) does not provide random
18612 value for stack protection guard at gs:0x14. Guard value
18613 will be provided from external symbol (default implementation).
18614 (stack_protect_set_<mode>): Likewise.
18615 (stack_protect_test): Likewise.
18616 (stack_protect_test_<mode>): Likewise.
18618 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
18620 PR middle-end/53959
18622 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
18625 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18627 * opts.c (default_option): Add -fvect-cost-model to default options
18630 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
18632 * graphite-clast-to-gimple.c, graphite-dependences.c,
18633 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
18634 for pass TODO flags.
18635 * Makefile.in: Fix dependencies.
18637 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
18639 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
18640 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
18642 * function.c (stack_protect_epilogue): Use expand_call to expand
18643 targetm.stack_protect_fail.
18644 * stmt.c (expand_expr_stmt): Remove now-unused function.
18645 * tree.h (expand_expr_stmt): Remove prototype.
18646 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
18647 hook must return a CALL_EXPR.
18648 * doc/tm.texi: Regenerate.
18650 * emit-rtl.c (emit_label_before): Do not allow the same label
18651 to be emitted twice.
18652 (emit_label_after): Likewise.
18653 (emit_label): Likewise.
18655 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
18656 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
18657 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
18658 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
18660 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
18662 * system.h (dump_file): Do not define.
18663 * tree-pass.h: Include dumpfile.h, which is a new file containing...
18664 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
18665 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
18666 dump_flag_name, dump_file, dump_flags, dump_file_name,
18667 get_dump_file_info, struct dump_file_info): all of this, moved to...
18668 * dumpfile.h: Here, new file.
18669 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
18670 (dump_stmt): Remove prototype for C++ specific function.
18671 (dump_enumerated_decls): Move prototype from here...
18672 * tree-flow.h (dump_enumerated_decls): ... to here.
18673 (get_ref_base_and_extent) Move prototype from here ...
18674 * tree.h (get_ref_base_and_extent) ... to here.
18675 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
18676 gimple-pretty-print.h is enough. Do not include tree-dump.h,
18677 include timevar.h and dumpfile.h instead.
18678 (struct numbered_tree_d, compare_decls_by_uid,
18679 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
18680 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
18681 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
18682 Do not include timevar.h.
18683 * tree.c: Do not include timevar.h.
18684 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
18686 (dump_cfg_stats): Use current_function_name.
18687 (gimple_cfg2vcg): Likewise.
18688 (dump_function_to_file): Likewise.
18689 * df-scan.c: Do not include tree-pass.h and timevar.h.
18690 Include dumpfile.h.
18691 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
18692 use print_current_pass.
18693 * df-problems.c: Include dumpfile.h.
18694 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
18695 leads to errors in the code not selected.
18696 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
18697 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
18698 * lcm.c: Include dumpfile.h.
18699 Remove obsolete include of insn-attr.h.
18700 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
18701 missing probability notes.
18702 * stmt.c: Include dumpfile.h.
18703 (emit_case_decision_tree): Re-enable printing expand details only
18705 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
18706 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
18707 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
18708 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
18709 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
18710 function.c, fwprop.c, gcse.c, gimple-fold.c,
18711 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18712 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
18713 graphite-dependences.c, graphite-interchange.c,
18714 graphite-optimize-isl.c, graphite-poly.c,
18715 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
18716 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
18717 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
18718 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
18719 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
18720 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
18721 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
18722 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
18723 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
18724 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
18725 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
18726 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
18727 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
18728 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
18729 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
18730 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
18731 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
18732 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
18733 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
18734 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
18735 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
18736 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
18737 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
18738 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18739 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
18740 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
18741 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
18742 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
18743 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
18744 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
18745 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
18746 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
18747 tree-ssa-uncprop.c, tree-ssa-uninit.c,
18748 tree-switch-conversion.c, tree-tailcall.c,
18749 tree-vect-data-refs.c, tree-vect-loop.c,
18750 tree-vect-loop-manip.c, tree-vectorizer.c,
18751 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
18752 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
18753 only if needed. If tree-pass.h is included, do not include timevar.h
18754 and dumpfile.h. If tree-pass.h is not included but dump_file, or
18755 dump_flags, or the TDF_* flags are used, include dumpfile.h.
18756 If gimple-pretty-print.h is included, don't include
18757 tree-pretty-print.h. Remove assorted unnecessary includes.
18759 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
18760 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
18761 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
18762 Include dumpfile.h.
18763 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
18764 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
18765 spu/t-spu-elf: Fix dependencies.
18767 2012-07-16 Dehao Chen <dehao@google.com>
18770 2012-07-10 Dehao Chen <dehao@google.com>
18772 * tree.h (phi_arg_d): New field.
18773 * tree-flow-inline.h (gimple_phi_arg_block): New function.
18774 (gimple_phi_arg_block_from_edge): New function.
18775 (gimple_phi_arg_set_block): New function.
18776 (gimple_phi_arg_has_block): New function.
18777 (redirect_edge_var_map_block): New function.
18778 * tree-flow.h (_edge_var_map): New field.
18779 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
18780 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
18781 redirect_edge_var_map_add.
18782 * tree-outof-ssa.c (_elim_graph): New field.
18783 (insert_partition_copy_on_edge): New parameter.
18784 (insert_value_copy_on_edge): New parameter.
18785 (insert_rtx_to_part_on_edge): New parameter.
18786 (insert_part_to_rtx_on_edge): New parameter.
18787 (elim_graph_add_edge): New parameter.
18788 (elim_graph_remove_succ_edge): New parameter.
18789 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
18790 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
18791 (new_elim_graph): Add block debug info.
18792 (clear_elim_graph): Likewise.
18793 (delete_elim_graph): Likewise.
18794 (elim_graph_add_node): Likewise.
18795 (elim_graph_add_edge): Likewise.
18796 (elim_graph_remove_succ_edge): Likewise.
18797 (eliminate_build): Likewise.
18798 (elim_forward): Likewise.
18799 (elim_unvisited_predecessor): Likewise.
18800 (elim_backward): Likewise.
18801 (elim_create): Likewise.
18802 (eliminate_phi): Likewise.
18803 (insert_backedge_copies): Likewise.
18804 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
18806 (rewrite_add_phi_arguments): Likewise.
18807 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
18808 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
18809 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
18810 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
18811 * tree-ssa-loop-manip.c (create_iv): Likewise.
18812 (add_exit_phis_edge): Likewise.
18813 (split_loop_exit_edge): Likewise.
18814 (copy_phi_node_args): Likewise.
18815 (tree_transform_and_unroll_loop): Likewise.
18816 * value-prof.c (gimple_ic): Likewise.
18817 (gimple_stringop_fixed_value): Likewise.
18818 * tree-tailcall.c (add_successor_phi_arg): Likewise.
18819 (eliminate_tail_call): Likewise.
18820 (create_tailcall_accumulator): Likewise.
18821 (tree_optimize_tail_calls_1): Likewise.
18822 * tree-phinodes.c (add_phi_arg): Likewise.
18823 (make_phi_node): Likewise.
18824 (resize_phi_node): Likewise.
18825 (remove_phi_arg_num): Likewise.
18826 * omp-low.c (expand_parallel_call): Likewise.
18827 (expand_omp_for_static_chunk): Likewise.
18828 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
18830 (slpeel_update_phi_nodes_for_guard1): Likewise.
18831 (slpeel_update_phi_nodes_for_guard2): Likewise.
18832 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
18833 (set_prologue_iterations): Likewise.
18834 (slpeel_tree_peel_loop_to_edge): Likewise.
18835 (vect_loop_versioning): Likewise.
18836 * tree-parloops.c (create_phi_for_local_result): Likewise.
18837 (transform_to_exit_first_loop): Likewise.
18838 (create_parallel_loop): Likewise.
18839 * ipa-split.c (split_function): Likewise.
18840 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
18841 (vect_create_epilog_for_reduction): Likewise.
18842 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
18843 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
18844 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
18845 (cond_if_else_store_replacement_1): Likewise.
18846 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
18847 (remove_forwarder_block_with_phi): Likewise.
18848 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
18849 * tree-predcom.c (initialize_root_vars): Likewise.
18850 (initialize_root_vars_lm): Likewise.
18851 * sese.c (sese_add_exit_phis_edge): Likewise.
18852 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18853 * tree-ssa.c (flush_pending_stmts): Likewise.
18854 (redirect_edge_var_map_add): Likewise.
18855 (ssa_redirect_edge): Likewise.
18856 * gimple-streamer-in.c (input_phi): Likewise.
18857 * tree-vect-stmts.c (vectorizable_load): Likewise.
18858 * tree-inline.c (copy_phis_for_bb): Likewise.
18859 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
18860 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
18861 * tree-cfg.c (reinstall_phi_args): Likewise.
18862 (gimple_make_forwarder_block): Likewise.
18863 (add_phi_args_after_copy_edge): Likewise.
18864 (gimple_duplicate_sese_tail): Likewise.
18866 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
18868 * config/i386/i386.md (stack_protect_set): Disable the pattern
18869 for Android since Android libc (bionic) does not provide random
18870 value for stack protection guard at gs:0x14. Guard value
18871 will be provided from external symbol (default implementation).
18872 (stack_protect_set_<mode>): Likewise.
18873 (stack_protect_test): Likewise.
18874 (stack_protect_test_<mode>): Likewise.
18876 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
18878 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
18879 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
18880 CONSTANT_P and cris_legitimate_address_p.
18881 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
18882 (cris_preferred_reload_class): Don't return GENERAL_REGS as
18883 preferred to MOF_SRP_REGS.
18885 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
18886 of library functions for basic atomic compare-and-swap.
18887 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
18888 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
18889 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
18890 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
18891 ("atomic_compare_and_swap<mode>")
18892 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
18893 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
18894 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
18895 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
18896 (atomic_op_op_pred): Ditto.
18897 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
18898 reflect the change to include %2 in expansion. All callers changed.
18899 (qm3): New mode_attr.
18900 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
18901 as predicate for operand 2.
18902 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
18903 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
18904 constraint for operand 2.
18905 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
18906 nonmemory_operand for operand 3.
18907 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
18908 exclude memory. Improve emitted sync code for v10 and v32. Use
18909 <qm3> instead of <m> for size designator for cmp.
18910 ("atomic_compare_and_swap<mode>"): Change predicate to
18911 nonmemory_operand for operand 3. Add FIXME.
18912 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
18913 constraints for operand 3 to exclude memory.
18914 ("atomic_fetch_<atomic_op_name><mode>")
18915 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
18916 calls on result of call to need_atomic_barrier_p.
18918 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
18920 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
18921 with mflo and mtlo.
18922 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
18923 and mtlo. Adjust move_type->type mapping.
18924 (may_clobber_hilo): Split mthilo into mthi and mtlo.
18925 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
18926 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
18927 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
18928 instead of mthilo and mfhilo.
18929 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
18930 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
18931 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
18932 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
18933 Use mflo instead of mfhilo.
18934 * config/mips/10000.md (r10k_arith): Split mthilo.
18935 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
18936 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
18937 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
18938 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
18940 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
18941 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
18943 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
18944 * config/mips/5400.md (ir_vr54_hilo): Likewise.
18945 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
18946 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
18947 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
18948 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
18949 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
18950 * config/mips/generic.md (generic_hilo): Likewise.
18951 * config/mips/loongson2ef.md (ls2_alu): Likewise.
18952 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
18953 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
18954 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
18955 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
18956 * config/mips/xlr.md (xlr_hilo): Likewise.
18958 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
18959 Sandra Loosemore <sandra@codesourcery.com>
18961 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
18963 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
18965 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
18968 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
18970 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
18972 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
18975 * config/spu/spu.c (spu_init_cost): Mark static.
18976 (spu_add_stmt_cost): Likewise.
18977 (spu_finish_cost): Likewise.
18978 (spu_destroy_cost_data): Likewise.
18979 * config/i386/i386.c (ix86_init_cost): Mark static.
18980 (ix86_add_stmt_cost): Likewise.
18981 (ix86_finish_cost): Likewise.
18982 (ix86_destroy_cost_data): Likewise.
18983 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
18984 (rs6000_add_stmt_cost): Likewise.
18985 (rs6000_finish_cost): Likewise.
18986 (rs6000_destroy_cost_data): Likewise.
18988 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
18990 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
18991 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
18992 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
18994 * alloc-pool.h (pool_alloc): Likewise.
18996 * final.c (final): Do not loop to find max_uid.
18998 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
19000 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
19001 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
19003 2012-07-13 Richard Guenther <rguenther@suse.de>
19005 PR tree-optimization/53907
19006 * tree-ssa-forwprop.c (associate_pointerplus): New function.
19007 (ssa_forward_propagate_and_combine): Call it.
19009 2012-07-13 Richard Guenther <rguenther@suse.de>
19011 PR tree-optimization/53922
19012 * tree-vrp.c (value_inside_range): Change prototype to take
19013 min/max instead of value-range.
19014 (range_includes_zero_p): Likewise. Return the result from
19015 value_inside_range.
19016 (extract_range_from_binary_expr_1): Adjust to handle dont-know
19017 return value from range_includes_zero_p.
19018 (extract_range_from_unary_expr_1): Likewise.
19019 (compare_range_with_value): Likewise.
19020 (vrp_meet_1): Likewise.
19022 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
19024 * doc/tm.texi: Regenerate.
19025 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
19026 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
19027 (TARGET_VECTORIZE_FINISH_COST): Likewise.
19028 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
19029 * targhooks.c (default_init_cost): New function.
19030 (default_add_stmt_cost): Likewise.
19031 (default_finish_cost): Likewise.
19032 (default_destroy_cost_data): Likewise.
19033 * targhooks.h (default_init_cost): New decl.
19034 (default_add_stmt_cost): Likewise.
19035 (default_finish_cost): Likewise.
19036 (default_destroy_cost_data): Likewise.
19037 * target.def (init_cost): New DEFHOOK.
19038 (add_stmt_cost): Likewise.
19039 (finish_cost): Likewise.
19040 (destroy_cost_data): Likewise.
19041 * target.h (struct _stmt_vec_info): New extern decl.
19042 (stmt_vectype): Likewise.
19043 (stmt_in_inner_loop_p): Likewise.
19044 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
19045 (stmt_vector_for_cost): New VEC/typedef.
19046 (add_stmt_info_to_vec): New function.
19047 (struct _slp_tree): Remove cost.inside_of_loop field.
19048 (struct _slp_instance): Remove cost.inside_of_loop field; add
19049 stmt_cost_vec field.
19050 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
19051 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
19052 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
19053 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
19054 (struct _loop_vec_info): Add target_cost_data field.
19055 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
19056 (struct _bb_vec_info): Add target_cost_data field.
19057 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
19058 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
19059 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
19060 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
19061 (init_cost): New function.
19062 (add_stmt_cost): Likewise.
19063 (finish_cost): Likewise.
19064 (destroy_cost_data): Likewise.
19065 (vect_model_simple_cost): Change parameter list.
19066 (vect_model_store_cost): Likewise.
19067 (vect_model_load_cost): Likewise.
19068 (record_stmt_cost): New extern decl.
19069 (vect_get_load_cost): Change parameter list.
19070 (vect_get_store_cost): Likewise.
19071 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
19072 (destroy_loop_vec_info): Call destroy_cost_data.
19073 (vect_estimate_min_profitable_iters): Remove old calculation of
19074 inside costs; call finish_cost instead.
19075 (vect_model_reduction_cost): Call add_stmt_cost instead of old
19076 inside-costs calculation.
19077 (vect_model_induction_cost): Likewise.
19078 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
19079 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
19080 and vect_get_store_cost to obtain the value to return.
19081 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
19082 vect_get_data_access_cost and store it in the minimum peeling
19084 (vect_peeling_hash_choose_best_peeling): Change the parameter list
19085 to add a (stmt_vector_for_cost *) output parameter, and set its value.
19086 (vect_enhance_data_refs_alignment): Ignore the new return value from
19087 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
19088 vect_peeling_hash_choose_best_peeling and pass its contents to the
19090 * tree-vect-stmts.c (stmt_vectype): New function.
19091 (stmt_in_inner_loop_p): Likewise.
19092 (record_stmt_cost): Likewise.
19093 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
19094 record_stmt_cost instead of old calculation; don't call
19095 stmt_vinfo_set_inside_of_loop_cost.
19096 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
19097 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
19098 (vect_model_store_cost): Add stmt_cost_vec parameter; call
19099 record_stmt_cost instead of old calculation; add stmt_cost_vec
19100 parameter to vect_get_store_cost call; don't call
19101 stmt_vinfo_set_inside_of_loop_cost.
19102 (vect_get_store_cost): Add stmt_cost_vec parameter; call
19103 record_stmt_cost instead of old calculation.
19104 (vect_model_load_cost): Add stmt_cost_vec parameter; call
19105 record_stmt_cost instead of old calculation; add stmt_cost_vec
19106 parameter to vect_get_load_cost call; don't call
19107 stmt_vinfo_set_inside_of_loop_cost.
19108 (vect_get_load_cost): Add stmt_cost_vec parameter; call
19109 record_stmt_cost instead of old calculation.
19110 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
19111 (vectorizable_conversion): Likewise.
19112 (vectorizable_assignment): Likewise.
19113 (vectorizable_shift): Likewise.
19114 (vectorizable_operation): Likewise.
19115 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
19116 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
19117 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
19118 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
19119 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
19120 (TARGET_VECTORIZE_FINISH_COST): Likewise.
19121 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
19122 (spu_init_cost): New function.
19123 (spu_add_stmt_cost): Likewise.
19124 (spu_finish_cost): Likewise.
19125 (spu_destroy_cost_data): Likewise.
19126 * config/i386/i386.c (ix86_init_cost): New function.
19127 (ix86_add_stmt_cost): Likewise.
19128 (ix86_finish_cost): Likewise.
19129 (ix86_destroy_cost_data): Likewise.
19130 (TARGET_VECTORIZE_INIT_COST): New macro def.
19131 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
19132 (TARGET_VECTORIZE_FINISH_COST): Likewise.
19133 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
19134 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
19135 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
19136 (TARGET_VECTORIZE_FINISH_COST): Likewise.
19137 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
19138 (rs6000_init_cost): New function.
19139 (rs6000_add_stmt_cost): Likewise.
19140 (rs6000_finish_cost): Likewise.
19141 (rs6000_destroy_cost_data): Likewise.
19142 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
19143 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
19144 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
19145 stmt_cost_vec parameter to vect_model_store_cost and
19146 vect_model_simple_cost calls.
19147 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
19148 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
19149 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
19150 calculating cost more than once for loads; remove inside_cost
19151 parameter from recursive vect_build_slp_tree calls; call
19152 record_stmt_cost instead of old calculation.
19153 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
19154 the instance; free it on premature exit; remove inside_cost parameter
19155 from vect_build_slp_tree call; add stmt_cost_vec parameter to
19156 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
19157 (new_bb_vec_info): Call init_cost.
19158 (destroy_bb_vec_info): Call destroy_cost_data.
19159 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
19160 statement recorded with an SLP instance; call finish_cost instead of
19161 the old calculation.
19162 (vect_update_slp_costs_according_to_vf): Record statement costs from
19163 SLP instances, multiplying by the appropriate number of copies; don't
19164 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
19166 2012-07-13 Richard Guenther <rguenther@suse.de>
19168 PR middle-end/53937
19169 * builtins.c (get_pointer_alignment_1): Handle constant
19172 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
19173 Steven Bosscher <steven@gcc.gnu.org>
19174 Bernd Schmidt <bernds@codesourcery.com>
19176 PR rtl-optimization/53908
19177 * df-problems.c (can_move_insns_across): When doing
19178 memory-reference book-keeping, handle call insns.
19180 2012-07-13 Richard Guenther <rguenther@suse.de>
19182 * gimple.c (gimple_types_compatible_p_1): Remove redundant
19183 type attribute comparisons.
19184 (gimple_canonical_types_compatible_p): Likewise.
19186 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
19188 PR rtl-optimization/53176
19189 * rtlanal.c (rtx_cost): Adjust default cost for X with a
19190 UNITS_PER_WORD factor for all X according to the size of
19191 its mode, not just for SUBREGs with untieable modes.
19192 Handle SET. Use factor * factor for MULT, DIV, UDIV,
19195 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
19197 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
19198 QImode and HImode splitters. Use ix86_comparison_operator.
19199 Explicitly match FLAGS_REG.
19200 (DFmode cmove splitter): Explicitly match FLAGS_REG.
19202 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
19204 * expr.h (can_move_by_pieces): Move prototype from here ...
19205 * tree.h (can_move_by_pieces): ... to here.
19206 * optabs.h (set_widening_optab_handler): Use XCNEW.
19207 * gimplify.c: Do not include expr.h.
19209 * toplev.c: Do not include dwarf2out.h.
19210 * config/ia64/ia64.c: Likewise.
19211 * config/sparc/sparc.c: Likewise.
19212 * config/sparc/t-sparc (sparc.o): Fix dependencies.
19214 * Makefile.in (toplev.o): Fix dependencies
19215 (c-family/c-gimplify.o): Likewise.
19216 (c-family/c-common.o): Likewise.
19218 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
19220 * basic-block.h (struct edge_def): Use basic_block instead of
19222 * cfgloop.h (struct loop_exit, struct loop): Likewise.
19223 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
19224 instead of union tree_node *.
19225 * rtl.h (union rtunion_def, emit_insn_before_noloc,
19226 emit_insn_after_noloc, add_insn_before, add_insn_after,
19227 debug_bb_slim): Likewise.
19228 * tree-inline.h (struct copy_body_data): Likewise.
19229 * sched-rgn.c (dump_region_dot): Likewise.
19230 * gimple.h (struct gimple_statement_base, gimple_set_bb,
19231 gsi_move_to_bb_end): Likewise.
19232 * sched-vis.c (debug_bb_slim): Likewise.
19233 (debug_bb_n_slim): Likewise.
19234 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
19235 (mn10300_block_contains_call):
19237 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
19240 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
19243 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
19245 * doc/extend.texi (Namespace Association): Alter cautionary text.
19247 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
19250 * config/sh/sh.md: Remove displacement addresssing related splits.
19252 2012-07-10 Xinliang David Li <davidxl@google.com>
19254 * doc/invoke.texi: New option documented.
19255 * flag-types.h: New enum type.
19256 * gimplify.c (gimplify_bind_expr): Control
19257 clobber generation with new option.
19258 (gimplify_target_expr): Ditto.
19259 * common.opt: New option.
19261 2012-07-10 Julian Brown <julian@codesourcery.com>
19263 * config/arm/arm.md (movsi): Don't split symbol refs here.
19264 (define_split): New.
19266 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
19269 * config/m68k/m68k.c (m68k_epilogue_uses): New.
19270 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
19271 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
19273 2012-07-10 Richard Henderson <rth@redhat.com>
19275 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
19276 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
19277 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
19278 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
19279 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
19280 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
19281 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
19282 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
19283 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
19284 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
19285 (bdesc_args): Remove entries to match.
19286 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
19287 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
19288 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
19289 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
19290 (rs6000_builtin_mul_widen_odd): Remove.
19291 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
19292 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
19293 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
19294 (spu_builtin_mul_widen_odd): Remove.
19295 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
19296 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
19297 * doc/tm.texi.in: Don't document the removed hooks.
19299 * tree-vect-stmts.c (supportable_widening_operation): Expand
19300 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
19302 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
19303 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
19304 * optabs.c (can_mult_highpart_p): New.
19305 (expand_mult_highpart): New.
19306 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
19307 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
19308 by pieces if can_mult_highpart_p.
19309 (expand_vector_divmod): Use can_mult_highpart_p and always
19310 generate MULT_HIGHPART_EXPR.
19311 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
19312 * tree-vect-stmts.c (vectorizable_operation): Likewise.
19314 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
19315 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
19316 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
19317 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
19318 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
19319 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
19320 * config/spu/spu-builtins.def: Update pattern names to match.
19322 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
19323 from altivec_vmuleub.
19324 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
19325 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
19326 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
19327 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
19328 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
19329 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
19330 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
19331 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
19333 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
19334 avx2_umulv4siv4di3.
19335 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
19336 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
19337 (mulv4si3): Remove XOP test shadowed by SSE4 test.
19338 * config/i386/i386.c (bdesc_args): Update pattern names.
19339 (ix86_expand_sse2_mulvxdi3): Likewise.
19340 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
19341 shadowed by SSE4 test.
19343 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
19344 * cfgexpand.c (expand_debug_expr): Handle them.
19345 * expr.c (expand_expr_real_2): Likewise.
19346 * fold-const.c (fold_binary_loc): Likewise.
19347 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
19348 * optabs.c (optab_for_tree_code): Likewise.
19349 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
19350 * tree-inline.c (estimate_operator_cost): Likewise.
19351 * tree-pretty-print.c (dump_generic_node): Likewise.
19352 * tree.c (commutative_tree_code): Likewise.
19353 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
19354 Handle type change before looking up optab.
19355 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
19356 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
19357 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
19358 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
19359 * genopinit.c (optabs): Initialize them.
19360 * doc/md.texi: Document them.
19362 2012-07-10 Dehao Chen <dehao@google.com>
19364 * tree.h (phi_arg_d): New field.
19365 * tree-flow-inline.h (gimple_phi_arg_block): New function.
19366 (gimple_phi_arg_block_from_edge): New function.
19367 (gimple_phi_arg_set_block): New function.
19368 (gimple_phi_arg_has_block): New function.
19369 (redirect_edge_var_map_block): New function.
19370 * tree-flow.h (_edge_var_map): New field.
19371 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
19372 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
19373 redirect_edge_var_map_add.
19374 * tree-outof-ssa.c (_elim_graph): New field.
19375 (insert_partition_copy_on_edge): New parameter.
19376 (insert_value_copy_on_edge): New parameter.
19377 (insert_rtx_to_part_on_edge): New parameter.
19378 (insert_part_to_rtx_on_edge): New parameter.
19379 (elim_graph_add_edge): New parameter.
19380 (elim_graph_remove_succ_edge): New parameter.
19381 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
19382 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
19383 (new_elim_graph): Add block debug info.
19384 (clear_elim_graph): Likewise.
19385 (delete_elim_graph): Likewise.
19386 (elim_graph_add_node): Likewise.
19387 (elim_graph_add_edge): Likewise.
19388 (elim_graph_remove_succ_edge): Likewise.
19389 (eliminate_build): Likewise.
19390 (elim_forward): Likewise.
19391 (elim_unvisited_predecessor): Likewise.
19392 (elim_backward): Likewise.
19393 (elim_create): Likewise.
19394 (eliminate_phi): Likewise.
19395 (insert_backedge_copies): Likewise.
19396 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
19398 (rewrite_add_phi_arguments): Likewise.
19399 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
19400 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
19401 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
19402 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
19403 * tree-ssa-loop-manip.c (create_iv): Likewise.
19404 (add_exit_phis_edge): Likewise.
19405 (split_loop_exit_edge): Likewise.
19406 (copy_phi_node_args): Likewise.
19407 (tree_transform_and_unroll_loop): Likewise.
19408 * value-prof.c (gimple_ic): Likewise.
19409 (gimple_stringop_fixed_value): Likewise.
19410 * tree-tailcall.c (add_successor_phi_arg): Likewise.
19411 (eliminate_tail_call): Likewise.
19412 (create_tailcall_accumulator): Likewise.
19413 (tree_optimize_tail_calls_1): Likewise.
19414 * tree-phinodes.c (add_phi_arg): Likewise.
19415 (make_phi_node): Likewise.
19416 (resize_phi_node): Likewise.
19417 (remove_phi_arg_num): Likewise.
19418 * omp-low.c (expand_parallel_call): Likewise.
19419 (expand_omp_for_static_chunk): Likewise.
19420 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
19422 (slpeel_update_phi_nodes_for_guard1): Likewise.
19423 (slpeel_update_phi_nodes_for_guard2): Likewise.
19424 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
19425 (set_prologue_iterations): Likewise.
19426 (slpeel_tree_peel_loop_to_edge): Likewise.
19427 (vect_loop_versioning): Likewise.
19428 * tree-parloops.c (create_phi_for_local_result): Likewise.
19429 (transform_to_exit_first_loop): Likewise.
19430 (create_parallel_loop): Likewise.
19431 * ipa-split.c (split_function): Likewise.
19432 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
19433 (vect_create_epilog_for_reduction): Likewise.
19434 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
19435 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
19436 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
19437 (cond_if_else_store_replacement_1): Likewise.
19438 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
19439 (remove_forwarder_block_with_phi): Likewise.
19440 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
19441 * tree-predcom.c (initialize_root_vars): Likewise.
19442 (initialize_root_vars_lm): Likewise.
19443 * sese.c (sese_add_exit_phis_edge): Likewise.
19444 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
19445 * tree-ssa.c (flush_pending_stmts): Likewise.
19446 (redirect_edge_var_map_add): Likewise.
19447 (ssa_redirect_edge): Likewise.
19448 * gimple-streamer-in.c (input_phi): Likewise.
19449 * tree-vect-stmts.c (vectorizable_load): Likewise.
19450 * tree-inline.c (copy_phis_for_bb): Likewise.
19451 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
19452 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
19453 * tree-cfg.c (reinstall_phi_args): Likewise.
19454 (gimple_make_forwarder_block): Likewise.
19455 (add_phi_args_after_copy_edge): Likewise.
19456 (gimple_duplicate_sese_tail): Likewise.
19458 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
19461 * config/sh/sh.c (sequence_insn_p): New function.
19462 (find_barrier, sh_insn_length_adjustment): Use it.
19464 2012-07-09 Iain Sandoe <iain@codesourcery.com>
19467 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
19469 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
19470 SUBTARGET_FOLD_BUILTIN.
19471 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
19472 SUBTARGET_FOLD_BUILTIN.
19474 2012-07-09 Iain Sandoe <iain@codesourcery.com>
19476 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
19477 runtime exceptions model setting from here ...
19478 * config/darwin.c (darwin_override_options): ... to here.
19480 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
19482 PR tree-optimization/53887
19483 * tree-cfg.c (group_case_labels_stmt): Make non-static.
19484 * tree-flow.h (group_case_labels_stmt): Add prototype.
19485 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
19486 to pre-process every switch.
19488 2012-07-09 Jason Merrill <jason@redhat.com>
19491 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
19492 (type_hash_eq): Likewise.
19494 2012-07-09 Tom de Vries <tom@codesourcery.com>
19495 Richard Guenther <rguenther@suse.de>
19497 * tree-ssa-ccp.c (optimize_unreachable): New function.
19498 (execute_fold_all_builtins): Use optimize_unreachable to optimize
19499 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
19501 2012-07-09 Richard Guenther <rguenther@suse.de>
19504 * graphite-optimize-isl.c: Make sure CU is not empty.
19506 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
19508 * gensupport.c (init_rtx_reader_args_cb): Start counting code
19509 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
19510 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
19511 the LAST_INSN_CODE marker at the end.
19512 * genoutput.c (nothing): New static struct data.
19513 (idata): Initialize to ¬hing.
19514 (idata_end): Initialize to ¬hing.next.
19515 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
19517 * genpeep.c (insn_code_number): Remove global variable.
19518 (gen_peephole): Take it as an argument instead.
19519 (main): Take insn_code_number from read_md_rtx.
19520 * optabs.h: Revert r161809:
19521 (optab_handlers): Change type of insn_code back to insn_code.
19522 (optab_handler, widening_optab_handler, set_optab_handler,
19523 set_widening_optab_handler, convert_optab_handler,
19524 set_convert_optab_handler, direct_optab_handler,
19525 set_direct_optab_handler): Remove int casts.
19526 Revert to treating the insn_code field as "insn_code".
19528 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
19530 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
19531 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
19532 * config/sh/sh-protos.h: Declare it.
19534 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
19536 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
19537 (dump_fixup_graph): Use current_function_name.
19538 (adjust_cfg_counts): Likewise.
19539 * ira-conflicts.c: Do not include tree.h.
19540 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
19542 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
19545 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
19547 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
19549 * basic-block.h: Re-group most prototypes per file.
19550 (struct edge_list): Remove num_blocks field.
19551 (dump_bb_info): Adjust prototypes.
19552 (dump_reg_info): Move prototype to regs.h.
19553 * function.h: Do not include tree.h.
19554 Include vec.h, vecir.h, input.h and machmode.h to compensate.
19555 (function_name): New prototype.
19556 * gimple.h: Include tree.h to compensate for basic-block.h change.
19557 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
19558 * regs.h (dump_reg_info): Prototype here.
19559 * regset.h: Adjust file reference in comment.
19560 (debug_regset): Remove prototype.
19561 * rtl.h: Include flags.h for flag_var_tracking_assignments.
19562 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
19563 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
19564 (dump_reg_info, dump_flow_info): Remove prototypes.
19565 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
19566 to here, the only user. Make static.
19567 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
19568 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
19569 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
19570 tree-pass.h, cfgloop.h, and tree-flow.h.
19571 Include basic-block.h, the first header I'd expect to be included.
19572 (reg_obstack): Move to df-core.c.
19573 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
19574 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
19575 (redirect_edge_succ_nodup): Move to cfghooks.c.
19576 (dump_regset, debug_regset): Move to df-core.c.
19577 (dump_bb_info): Move to cfgrtl.c.
19578 (dump_reg_info): Move to regstat.c.
19579 (dump_flow_info): Move to cfgrtl.c.
19580 (debug_flow_info): Likewise.
19581 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
19582 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
19583 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
19584 (flow_active_insn_p, forwarder_block_p, can_fallthru,
19585 could_fall_through): Move to cfgrtl.c.
19586 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
19587 (create_edge_list): Do not set edge_list's removed num_blocks.
19588 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
19589 (flow_nodes_print): Remove.
19590 (flow_edge_list_print): Remove.
19591 (inverted_post_order_compute): Use FOR_ALL_BB.
19592 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
19593 Do not call dump_reg_info.
19594 (debug_flow_info): Moved from cfg.c
19595 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
19596 to avoid looking at TDF_* flags from tree-pass.h.
19597 (flow_active_insn_p, forwarder_block_p, can_fallthru,
19598 could_fall_through): Moved from cfganal.c.
19599 (print_rtl_with_bb): Adjust dump_bb_info calls.
19600 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
19601 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
19602 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
19603 * cselib.c: Include tree.h with a FIXME.
19604 * df-core.c (reg_obstack): Moved from cfg.c.
19605 (dump_regset): Likewise.
19606 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
19607 * final.c (compute_alignments): Call dump_reg_info before
19609 * function.c (function_name): New function.
19610 (current_function_name): Use it.
19611 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
19613 * ira-conflicts.c: Include tree.h with a note.
19614 * regstat.c (dump_reg_info): Moved here from cfg.c.
19615 * loop-init.c: Include regs.h instead of hard-reg-set.h.
19616 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
19617 (rtl_loop_done): Likewise.
19618 * mcf.c: Include tree.h before langhooks.h.
19619 * predict.c (maybe_hot_count_p): Assert we have cfun.
19620 (probably_never_executed_bb_p): Likewise.
19621 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
19622 instead of dump_flow_info.
19623 * sched-deps.c: Include tree.h with a FIXME.
19624 (call_may_noreturn_p): Add FIXME note why this function has to
19625 look at function decls instead of function decl flags.
19626 * sched-vis.c: Include tree.h with a FIXME.
19627 (print_rtl_slim): Adjust dump_bb_info uses.
19628 * statistics.c (statistics_fini_pass_2): Use current_function_name
19629 to avoid including tree.h.
19630 (statistics_counter_event): Use function_name for the same reason.
19631 (statistics_histogram_event): Likewise.
19632 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
19633 instead of dump_flow_info.
19634 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
19635 before dump_flow_info.
19636 * doc/cfg.texi: Update CFG documentation.
19637 * Makefile.in (RTL_H): Depend on FLAGS_H.
19638 (GIMPLE_H): Depend on TREE_H.
19639 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
19640 but no longer on TREE_H.
19641 (C_COMMON_H): Depend on TREE_H.
19642 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
19643 sched-deps.o, sched-vis.o): Fixup dependencies.
19645 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
19647 * alias.h: Do not include coretypes.h in header files.
19648 * cppbuiltin.h: Likewise.
19649 * double-int.h: Likewise.
19650 * gimple-fold.h: Likewise.
19651 * flags.h: Likewise.
19652 * tree-ssa-alias.h: Likewise.
19653 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
19654 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
19655 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
19656 (TREE_H): Likewise.
19657 (ALIAS_H): Do not depend on coretypes.h.
19658 (FLAGS_H): Likewise.
19659 (realmpfr.o): Depend on coretypes.h.
19661 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
19663 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
19664 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
19666 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
19668 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
19669 (TARGET_FPA): Delete definition.
19670 (TARGET_MAVERICK): Likewise.
19671 (TARGET_FPA_EMU2): Likewise.
19672 (arm_fp_model): Remove FPA and Maverick models.
19673 (arm_arch_cirrus): Delete declaration.
19674 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
19675 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
19676 (CALL_USED_REGISTERS): Likewise.
19677 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
19678 (FIRST_VFP_REGNUM): Renumbered.
19679 (D7_VFP_REGNUM): Chain definition.
19680 (LAST_LO_VFP_REGNUM): Likewise.
19681 (FIRST_HI_VFP_REGNUM): Likewise.
19682 (LAST_HI_VFP_REGNUM): Likewise.
19683 (FIRST_IWMMXT_GR_REGNUM): Likewise.
19684 (LAST_IWMMXT_GR_REGNUM): Likewise.
19685 (FIRST_IWMMXT_REGNUM): Likewise.
19686 (LAST_IWMMXT_REGNUM): Likewise.
19687 (FRAME_POINTER_REGNUM): Renumbered.
19688 (ARG_POINTER_REGNUM): Renumbered.
19689 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
19690 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
19691 (HARD_REGNO_REGNUM): Remove FPA support.
19692 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
19693 (reg_class): Likewise.
19694 (REG_CLASS_NAMES): Likewise.
19695 (REG_CLASS_CONTENTS): Likewise.
19696 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
19697 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
19698 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
19699 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
19700 Reorganize. Use AAPCS preferred names.
19701 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
19703 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
19704 * arm.c (FL_CIRRUS): Delete definition.
19705 (arm_arch_cirrus): Delete variable.
19706 (arm_float_words_big_endian): Delete function.
19707 (cirrus_memory_offset): Delete function.
19708 (output_mov_long_double_fpa_from_arm): Delete function.
19709 (output_mov_long_double_arm_from_fpa): Delete function.
19710 (output_mov_double_fpa_from_arm): Delete function.
19711 (output_mov_double_arm_from_fpa): Delete function.
19712 (emit_sfm): Delete function.
19713 (maybe_get_arm_condition_code): Update comment.
19714 (arm_file_start): Always use softvfp for softfloat systems.
19715 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
19716 (arm_option_override): Remove FPA and Maverick support. Always
19717 default to vfp as the fallback FPU format.
19718 (use_return_insn): Remove FPA support.
19719 (arm_get_frame_offsets): Likewise.
19720 (arm_save_coproc_regs): Likewise.
19721 (arm_canonicalize_comparison): Remove Maverick support.
19722 (arm_select_cc_mode): Likewise.
19723 (arm_gen_compare_reg): Likewise.
19724 (arm_print_operand): Likewise.
19725 (arm_libcall_value_1): Remove FPA and Maverick support.
19726 (arm_function_value_regno_p): Likewise.
19727 (arm_apply_result_size): Likewise.
19728 (arm_legitimate_index_p): Likewise.
19729 (thumb2_legitimate_index_p): Likewise.
19730 (legitimize_reload_address): Likewise.
19731 (arm_register_move_cost): Likewise.
19732 (arm_hard_regno_mode_ok): Likewise.
19733 (arm_regno_class): Likewise.
19734 (arm_dbx_register_number): Likewise.
19735 (arm_emit_unwind_sequence): Likewise.
19736 (arm_conditional_register_usage): Likewise.
19737 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
19738 (cirrus_memory_offset): Likewise.
19739 (output_move_long_double_fpa_from_arm): Likewise.
19740 (output_move_long_double_arm_from_fpa): Likewise.
19741 (output_move_double_fpa_from_arm): Likewise.
19742 (output_move_double_arm_from_fpa): Likewise.
19743 (arm_float_words_big_endian): Likewise.
19744 * arm.md (CC_REGNUM): Renumbered.
19745 (VFPCC_REGNUM): Moved here. Renumbered.
19746 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
19747 (attr fpu): Remove FPA and Maverick support.
19748 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
19749 * arm-cores.def (ep9312): Remove Maverick support.
19750 * arm-arches.def (ep9312): Delete architecture.
19751 * arm-tables.opt: Regenerated.
19753 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
19755 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
19757 PR tree-optimization/53881
19758 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
19759 comparing labels to establish uniqueness of a switch case target,
19760 use the CFG instead.
19762 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
19764 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
19765 due to negative shift amount.
19767 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
19769 Fix configure test for "stack protector support in target C library".
19770 * configure.ac (test_prefix, test_exec_prefix): Move setting from
19771 inside sysroot handling to before and outside it.
19772 * configure: Regenerate.
19774 2012-07-06 Kai Tietz <ktietz@redhat.com>
19777 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
19778 as "/mingw/include".
19780 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
19783 * var-tracking.c (vt_add_function_parameter): Convert
19784 internal_arg_pointer into arg_pointer-based address even
19787 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
19789 PR rtl-optimization/53827
19792 * alias.c (memrefs_conflict_p): Adjust offset and size by the
19793 same amount for alignment ANDs.
19795 2012-07-06 Tom de Vries <tom@codesourcery.com>
19797 PR tree-optimization/51879
19798 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
19799 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
19800 (visit_use): Also call visit_reference_op_call for calls with a vdef.
19802 2012-07-06 Tom de Vries <tom@codesourcery.com>
19804 PR tree-optimization/52009
19805 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
19806 value numbers of gimple_vdef.
19807 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
19809 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
19810 (vn_reference_insert): Add and handle vdef parameter.
19811 (visit_reference_op_load): Add argument to vn_reference_insert call.
19812 (visit_reference_op_store): Find value number of vdef of store. Insert
19813 value number of vdef of store.
19815 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
19817 * config/i386/i386.md (simple lea to add peephole): Also transform
19818 RTXes where second PLUS operand matches output.
19820 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
19822 * config/i386/i386.c (construct_plt_address): Make static.
19823 * config/i386/i386-protos.h (construct_plt_address): Remove.
19825 2012-07-06 Nick Clifton <nickc@redhat.com>
19827 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
19828 default_encode_section_info.
19830 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
19833 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
19834 emit PIC sequence for fnaddr symbol reference in advance.
19836 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
19839 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
19841 * dwarf2out.c (function_possibly_abstracted_p): New static function.
19842 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
19843 cgraph_function_possibly_inlined_p.
19844 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
19845 (process_scope_var): Do not emit concrete instances of abstracted
19846 nested functions from here.
19847 (gen_decl_die): Emit the abstract instance if the function is possibly
19848 abstracted and not only possibly inlined.
19849 (dwarf2out_finish): Find the first non-abstract parent instance and
19850 attach concrete instances on the limbo list to it.
19852 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19853 Julian Brown <julian@codesourcery.com>
19857 * config/arm/neon-gen.ml (return_by_ptr): Delete.
19858 (print_function): Handle empty strings.
19859 (return): Delete use of return_by_ptr.
19860 (mask_shape_for_shuffle): New function.
19861 (mask_elems): Likewise.
19862 (shuffle_fn): Likewise.
19863 (params): Simplify and remove use of return_by_ptr.
19864 (get_shuffle): New function.
19865 (print_variant): Update.
19866 * config/arm/neon.ml (rev_elems): New function.
19867 (permute_range): Likewise.
19868 (zip_range): Likewise.
19869 (uzip_range): Likewise.
19870 (trn_range): Likewise.
19871 (zip_elems): Likewise.
19872 (uzip_elems): Likewise.
19873 (trn_elems): Likewise.
19874 (features): New enumeration Use_shuffle. Delete ReturnPtr.
19877 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
19878 * config/arm/arm_neon.h: Regenerate.
19880 2012-07-05 Richard Guenther <rguenther@suse.de>
19882 * tree-pretty-print.c (dump_generic_node): Properly test
19883 the result of exact_log2.
19885 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19887 * config/s390/s390-protos.h (s390_expand_movmem)
19888 (s390_expand_cmpmem): Add return value.
19889 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
19890 Return FALSE to use the library function in some cases.
19891 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
19894 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19896 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
19898 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
19900 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
19901 * stmt.c (dump_case_nodes): New.
19902 (expand_case): Split out code generation parts into new functions.
19903 (expand_switch_as_decision_tree_p): Split out from expand_case.
19904 (emit_case_decision_tree): Likewise.
19905 (emit_case_dispatch_table): Likewise.
19907 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
19909 * config/arm/iterators.md (SDF): New mode iterator.
19910 (V_if_elem): Add support for SF and DF modes.
19912 (F_constraint): New mode iterator attribute.
19913 (F_fma_type): Likewise.
19914 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
19915 (*fmsub<SDF:mode>4): Likewise.
19916 (*fmnsub<SDF:mode>4): Likewise.
19917 (*fmnadd<SDF:mode>4): Likewise.
19919 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
19921 * expmed.c (expand_mult): Initialize coeff and is_neg.
19923 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
19925 * config/sh/predicates.md (zero_extend_operand): New predicate.
19926 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
19927 zero_extend_operand predicate.
19928 (zero_extendqisi2): Likewise.
19930 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
19932 PR middle-end/53321
19933 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
19934 to not call cgraph_propagate_frequency if something was changed.
19936 2012-07-04 Richard Guenther <rguenther@suse.de>
19938 PR middle-end/53433
19939 * gimple-fold.c (get_base_constructor): Do not return an
19940 error_mark_node DECL_INITIAL.
19942 2012-07-04 Richard Guenther <rguenther@suse.de>
19944 PR tree-optimization/53844
19945 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
19946 the loop virtual PHI.
19948 2012-07-04 Richard Guenther <rguenther@suse.de>
19950 PR tree-optimization/53849
19951 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
19952 for duplicated locals. Use add_referenced_var_1 to avoid
19953 pushing/popping cfun.
19955 2012-07-04 Kai Tietz <ktietz@redhat.com>
19957 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
19958 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
19960 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
19961 as i386_pe_reloc_rw_mask.
19963 2012-07-04 Richard Guenther <rguenther@suse.de>
19965 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
19966 as in free_lang_data_in_type.
19968 2012-07-04 Tobias Grosser <tobias@grosser.es>
19969 Michael Matz <matz@suse.de>
19971 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
19972 (graphite-optimize-isl.o): Add dependencies.
19973 * common.opt (floop-nest-optimize): New flag.
19974 * doc/invoke.texi (floop-nest-optimize): Document.
19975 * graphite-dependences.c (compute_deps): Export.
19976 * graphite-poly.h (compute_deps): Declare.
19977 * graphite-optimize-isl.c: New file.
19978 * graphite-poly.c (apply_poly_transforms): Run the loop
19980 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
19981 if -floop-nest-optimize is enabled.
19983 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
19985 * config/sh/predicates.md (logical_and_operand): New predicate.
19986 * config/sh/constraints.md (Jmb, Jmw): New constraints.
19987 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
19988 of 0xFFFF constant. Use logical_and_operand predicate and
19989 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
19990 (*andsi3_compact): Make it an insn_and_split. Use
19991 logical_and_operand predicate. Add Jmb,Jmw alternatives.
19993 2012-07-03 Jason Merrill <jason@redhat.com>
19996 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
19998 2012-07-03 Nick Clifton <nickc@redhat.com>
20000 * config/mep/mep.c (mep_reorg_regmove): Use
20001 next_nonnote_non_debug_insn to advance to the next insn. Do not
20002 expect delete_insn to return an rtx.
20004 2012-07-03 Richard Guenther <rguenther@suse.de>
20006 * doc/install.texi (CLooG): Clarify how CLooG needs to be
20007 configured and that it needs to be built against ISL 0.10.
20009 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
20011 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
20012 code model string in the error message.
20014 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
20017 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
20018 sibcall_insn_operand. Move it to a temporary register if not.
20020 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
20023 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
20026 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
20028 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
20030 2012-07-03 Roland McGrath <mcgrathr@google.com>
20032 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
20033 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
20034 * configure: Regenerated.
20035 * config/i386/i386.md (simple_return_internal_long): Use %;
20036 (ctz<mode>2): Likewise.
20037 (*pause): Likewise.
20039 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
20042 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
20044 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
20045 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
20046 gen_branch_true and gen_branch_false.
20047 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
20049 (branch_true, branch_false): Use t_reg_operand predicate.
20050 (*branch_true, *branch_false): Delete.
20051 (movt): Use t_reg_operand predicate.
20052 (*negnegt): Use negt_reg_operand predicate and fold little and big
20054 (*movtt): Use t_reg_operand and fold little and big endian variants.
20055 (*movt_qi): Delete.
20057 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
20059 * stmt.c (emit_case_bit_tests): Remove.
20060 (expand_case): Remove expand_switch_using_bit_tests_p code.
20061 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
20062 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
20063 (lshift_cheap_p): Likewise.
20064 (expand_switch_using_bit_tests_p): Likewise.
20065 (struct case_bit_test): Likewise.
20066 (case_bit_test_cmp): Likewise.
20067 (emit_case_bit_tests): New implementation for GIMPLE.
20068 (gen_inbound_check): Do not release post-dominator info here.
20069 (process_switch): Reorder code. Expand as bit tests if it
20071 (do_switchconv): Release post-dominator info here if something changed.
20072 (struct gimple_opt_pass): Verify more.
20073 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
20075 2012-07-02 Martin Jambor <mjambor@suse.cz>
20077 PR middle-end/38474
20078 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
20079 dynamic type change check.
20081 2012-07-02 Richard Guenther <rguenther@suse.de>
20082 Michael Matz <matz@suse.de>
20083 Tobias Grosser <tobias@grosser.es>
20084 Sebastian Pop <sebpop@gmail.com>
20086 * Makefile.in: Remove PPL flags in favor of ISL ones.
20087 (BACKENDLIBS): Remove PPL libs.
20088 (INCLUDES): Remove PPL includes in favor of ISL ones.
20089 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
20090 graphite-cloog-compat.h dependencies.
20091 (graphite-dependences.o): Likewise.
20092 (graphite-poly.o): Likewise.
20093 * configure.ac: Declare ISL vars instead of PPL ones.
20094 * configure: Regenerated.
20095 * doc/install.texi: Replace PPL requirement documentation with ISL one.
20096 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
20097 * graphite-clast-to-gimple.c: Likewise.
20098 * graphite-dependences.c: Likewise.
20099 * graphite-interchange.c: Likewise.
20100 * graphite-poly.h: Likewise.
20101 * graphite-poly.c: Likewise.
20102 * graphite-sese-to-poly.c: Likewise.
20103 * graphite.c: Likewise.
20104 * graphite-scop-detection.c: Re-arrange includes.
20105 * graphite-cloog-util.c: Remove.
20106 * graphite-cloog-util.h: Likewise.
20107 * graphite-ppl.h: Likewise.
20108 * graphite-ppl.c: Likewise.
20109 * graphite-dependences.h: Likewise.
20111 2012-07-02 Richard Guenther <rguenther@suse.de>
20113 Merge from graphite branch
20114 2011-07-21 Tobias Grosser <tobias@grosser.es>
20116 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
20117 Remove graphite-cloog-util.h.
20118 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
20119 build_iv_mapping, translate_clast_user, translate_clast,
20120 free_scattering, initialize_cloog_names, build_cloog_prog,
20121 create_params_index): Do not use old compatibility functions.
20122 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
20123 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
20124 compatibility functions.
20125 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
20127 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
20128 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
20130 * graphite-cloog-compat.h: Remove.
20132 2011-08-09 Tobias Grosser <tobias@grosser.es>
20134 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
20135 of the string, no just a reference.
20136 (clast_name_index): Add a new field, that specifies if we need to free
20138 (free_clast_name_index): If necessary, free the name string.
20139 (clast_name_index_elt_info): Calculate the hash based on the string
20140 content, not the memory location it is stored in.
20141 (clast_name_to_level): Specify that we do not need to free the name.
20142 (clast_name_to_index): Dito.
20143 (clast_name_to_lb_ub): Dito.
20144 (eq_clast_name_indexes): Compare the strings, not their base pointers.
20145 (free_scattering): Removed.
20146 (initialize_cloog_names): Renamed to add_names_to_union_domain().
20147 (add_names_to_union_domain): Changed to work on a union_domain,
20148 instead of a CloogNames structure.
20149 (build_cloog_prog): Removed.
20150 (build_cloog_union_domain): New.
20151 (generate_cloog_input): New.
20152 (scop_to_clast): Use CloogInput instead of CloogProgram.
20153 (print_generated_program): Adapt to new scop_to_clast() and do not
20154 print the CloogProgram any more.
20155 (create_params_index): Removed, functionality integrated in
20156 add_names_to_union_domain().
20157 (gloog): Adapt to new scop_to_clast().
20158 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
20160 2012-01-11 Tobias Grosser <tobias@grosser.es>
20162 * graphite-clast-to-gimple.c (clast_name_to_index,
20163 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
20164 (clast_to_gcc_expression): Add clast_expr_name as a new
20165 case. Do not assume a clast_expr_term points always to a
20167 (type_for_clast_term): Do not assume a clast_expr_term points always to
20169 (type_for_clast_name): New.
20170 (type_for_clast_expr): Add clast_expr_name as a new case.
20172 2011-08-03 Sebastian Pop <sebpop@gmail.com>
20174 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
20175 new_Cloog_Scattering_from_ppl_Polyhedron,
20176 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
20178 2012-07-02 Jakub Jelinek <jakub@redhat.com>
20180 PR tree-optimization/53645
20181 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
20182 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
20184 2012-07-01 Wei Guozhi <carrot@google.com>
20187 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
20188 * config/arm/arm.c (const_ok_for_dimode_op): New function.
20189 * config/arm/constraints.md (Dd): New constraint.
20190 * config/arm/predicates.md (arm_adddi_operand): New predicate.
20191 * config/arm/arm.md (adddi3): Extend it to handle constants.
20192 (arm_adddi3): Likewise.
20193 (addsi3_carryin_<optab>): Extend it to handle sbc case.
20194 (addsi3_carryin_alt2_<optab>): Likewise.
20195 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
20197 2012-06-30 Nathan Sidwell <nathan@acm.org>
20199 * coverage.c (bbg_file_stamp): New.
20200 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
20201 (build_info): Write bbg_file_stamp.
20202 (coverage_init): Initialize bbg_file_stamp. Read counts file
20203 before writing graph header.
20204 (coverage_finish): Don't unlink the data file if we can generate a
20206 * tree.h (crc32_unsigned): Declare.
20207 * tree.c (crc32_unsigned_bits): New, broken out of ...
20208 (crc32_byte): ... here. Use it.
20209 (crc32_unsigned): New.
20211 2012-06-29 Cary Coutant <ccoutant@google.com>
20213 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
20214 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
20215 (gen_variable_die): Likewise.
20216 (gen_namespace_die): Likewise.
20218 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
20220 * tree-eh.c (lower_try_finally_switch): Really put the location of the
20221 last statement of the finally block onto the switch.
20223 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
20226 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
20229 2012-06-29 Sterling Augustine <saugustine@google.com>
20231 * dwarf2out.c (add_pubname): Add comment.
20232 (add_pubtype): Fix indentation.
20233 (gen_enumeration_type_die): Likewise.
20235 2012-06-29 Jakub Jelinek <jakub@redhat.com>
20237 * tree-vect-generic.c (expand_vector_divmod): For even/odd
20238 widening multiply, put even always as first argument to VEC_PERM_EXPR.
20240 2012-06-29 Richard Henderson <rth@redhat.com>
20242 * tree-vect-generic.c: Include target.h.
20243 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
20244 * Makefile.in (tree-vect-generic.o): Update.
20246 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
20248 * configure.ac: Remove special gtfiles case for C.
20249 * configure: Regenerate.
20250 * Makefile.in: Remove C front-end hooks and build hooks that
20251 will be picked up from c/Make-lang.in now.
20252 Add tree-mudflap to C_COMMON_OBJS.
20253 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
20254 * config/vms/vms.c: Look for c-tree.h in c/.
20255 * doc/gty.texi: Remove reference to c-config-lang.in.
20256 * doc/sourcebuild.texi: Document the c/ subdirectory.
20258 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
20260 * system.h (CASE_USE_BIT_TESTS): Poison.
20261 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
20262 (expand_switch_using_bit_tests_p): ...here.
20263 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
20264 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
20266 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
20268 * system.h (IFCVT_EXTRA_FIELDS): Poison.
20269 (IFCVT_INIT_EXTRA_FIELDS): Poison.
20270 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
20271 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
20272 IFCVT_INIT_EXTRA_FIELDS.
20273 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
20274 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
20275 IFCVT_MACHDEP_INIT.
20276 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
20277 frv_ifcvt_machdep_init.
20278 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
20279 Remove documentation.
20280 (IFCVT_MACHDEP_INIT): Document.
20281 * doc/tm.texi: Regenerate.
20283 2012-06-29 Nick Clifton <nickc@redhat.com>
20285 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
20287 2012-06-29 Jakub Jelinek <jakub@redhat.com>
20289 * tree-vect-stmts.c (vectorizable_operation): Check both
20290 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
20291 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
20293 2012-06-28 Richard Henderson <rth@redhat.com>
20295 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
20297 2012-06-28 Jakub Jelinek <jakub@redhat.com>
20299 PR tree-optimization/51581
20300 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
20301 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
20302 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
20303 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
20304 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
20305 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
20307 PR tree-optimization/53645
20308 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
20309 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
20312 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
20315 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
20316 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
20317 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
20318 avr_hard_regno_call_part_clobbered.
20320 2012-06-28 Richard Guenther <rguenther@suse.de>
20322 PR middle-end/53790
20323 * expr.c (expand_expr_real_1): Verify if the type is complete
20324 before inspecting its size.
20326 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
20328 * doc/include/gpl.texi: Remove.
20329 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
20331 2012-06-28 Jakub Jelinek <jakub@redhat.com>
20333 PR tree-optimization/53645
20334 * tree-vect-generic.c (add_rshift): New function.
20335 (expand_vector_divmod): New function.
20336 (expand_vector_operation): Use it for vector integer
20337 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
20338 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
20339 unused lguup variable with dummy_int.
20341 2012-06-28 OLivier Hainque <hainque@adacore.com>
20343 * expr.c (convert_move): Latch mem integer inputs into a
20344 register before expanding a multi-instructions sequence.
20346 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
20347 Uros Bizjak <ubizjak@gmail.com>
20348 Jakub Jelinek <jakub@redhat.com>
20352 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
20353 (vt_finalize): ... here instead, if needed.
20355 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
20360 * dce.c (word_dce_process_block): Check whether inserting debug
20361 temps are needed even for needed insns.
20362 (dce_process_block): Likewise.
20363 * df-problems.c (dead_debug_add): Add comment about multi-regs.
20364 (dead_debug_insert_temp): Likewise. Don't subreg when we're
20365 setting fewer regs than a multi-reg requires.
20367 2012-06-27 Richard Henderson <rth@redhat.com>
20369 * config/alpha/alpha.c (alpha_dimode_u): New.
20370 (alpha_init_builtins): Initialize it, and use it.
20371 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
20372 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
20373 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
20374 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
20375 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
20376 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
20377 (alpha_fold_builtin_ctpop): Likewise.
20378 (alpha_fold_builtin_umulh): Remove.
20379 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
20380 typo in MAX_ARGS check.
20382 2012-06-27 Richard Henderson <rth@redhat.com>
20384 * tree.def (MULT_HIGHPART_EXPR): New.
20385 * cfgexpand.c (expand_debug_expr): Ignore it.
20386 * expr.c (expand_expr_real_2): Handle it.
20387 * fold-const.c (int_const_binop_1): Likewise.
20388 * optabs.c (optab_for_tree_code): Likewise.
20389 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
20390 * tree-inline.c (estimate_operator_cost): Likewise.
20391 * tree-pretty-print.c (dump_generic_node): Likewise.
20392 (op_code_prio, op_symbol_code): Likewise.
20393 * tree.c (commutative_tree_code): Likewise. Also handle
20394 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
20396 2012-06-27 Richard Henderson <rth@redhat.com>
20399 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
20400 in 2012-06-23 change. Adjust two other DImode tests as well.
20402 2012-06-27 Nick Clifton <nickc@redhat.com>
20404 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
20407 2012-06-27 Richard Guenther <rguenther@suse.de>
20409 PR middle-end/53676
20410 * tree-chrec.c (chrec_convert_1): Represent truncation to
20411 a type with undefined overflow as truncation to an unsigned
20412 type converted to the type with undefined overflow.
20413 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
20414 the scalar evolution of a truncated widened operation avoid
20415 looking at the non-existing evolution of the widened operation
20418 2012-06-27 Richard Guenther <rguenther@suse.de>
20420 PR tree-optimization/53774
20421 * tree-ssa-reassoc.c (get_rank): All default defs have
20423 (init_reassoc): Precompute rank for all SSA default defs.
20425 2012-06-27 Nick Clifton <nickc@redhat.com>
20427 * config/rx/rx.md (simple_return): Use the simple_return rtx.
20429 2012-06-26 Richard Henderson <rth@redhat.com>
20431 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
20432 and don't fall thru from standard_80387_constant_p to the memory
20435 2012-06-26 Richard Henderson <rth@redhat.com>
20437 * config/i386/i386.c (bdesc_args): Update. Change
20438 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
20439 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
20440 (ix86_builtin_mul_widen_even): Use it.
20441 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
20442 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
20443 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
20445 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
20446 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
20447 (vec_widen_smult_even_v4si): New.
20449 2012-06-26 Richard Henderson <rth@redhat.com>
20451 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
20452 to expander; move guts to ...
20453 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
20454 highparts before shifting up.
20455 * config/i386/i386-protos.h: Update.
20457 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
20459 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
20460 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
20461 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
20463 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
20465 * var-tracking.c (vt_add_function_parameter): Use a preserved
20466 VALUE for the MEM address of an incoming parameter.
20468 2012-06-26 Sterling Augustine <saugustine@google.com>
20470 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
20471 (prune_unused_types): Likewise.
20473 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
20475 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
20476 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
20477 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
20478 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
20479 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
20480 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
20481 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
20482 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
20483 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
20485 * doc/tm.texi: Regenerate.
20486 * doc/cpp.texi: Make example for #error generic.
20487 * config/frv/frv.h: Fix example text to match tm.texi.
20489 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
20491 * tree-pass.h (pass_strength_reduction): New decl.
20492 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
20493 (finalize_costs): Likewise.
20494 * timevar.def (TV_TREE_SLSR): New timevar.
20495 * gimple-ssa-strength-reduction.c: New.
20496 * tree-flow.h (initialize_costs): New decl.
20497 (finalize_costs): Likewise.
20498 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
20499 * passes.c (init_optimization_passes): Add pass_strength_reduction.
20501 2012-06-26 Matt Turner <mattst88@gmail.com>
20503 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
20504 (__builtin_arm_tinsrh): Likewise.
20505 (__builtin_arm_tinsrw): Likewise.
20506 (__builtin_arm_wsadb): Add missing v2si parameter.
20507 (__builtin_arm_wsadh): Likewise.
20508 (__builtin_arm_getwcx): Delete.
20509 (__builtin_arm_setwcx): Delete.
20510 (__builtin_arm_getwcgr0): Add.
20511 (__builtin_arm_getwcgr1): Add.
20512 (__builtin_arm_getwcgr2): Add.
20513 (__builtin_arm_getwcgr3): Add.
20514 (__builtin_arm_setwcgr0): Add.
20515 (__builtin_arm_setwcgr1): Add.
20516 (__builtin_arm_setwcgr2): Add.
20517 (__builtin_arm_setwcgr3): Add.
20519 2012-06-26 Richard Guenther <rguenther@suse.de>
20522 2012-06-21 Richard Guenther <rguenther@suse.de>
20524 * tree-inline.c (estimate_num_insns): Estimate call cost for
20525 tailcalls properly.
20527 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
20530 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
20531 * doc/tm.texi: Regenerate.
20533 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
20536 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
20537 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
20538 * doc/tm.texi.in: Remove documentation for unused target macros
20539 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
20540 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
20541 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
20542 TARGET_NARROW_VOLATILE_BITFIELDS.
20543 Document that MD_HANDLE_UNWABI is a macro in libgcc.
20544 * doc/tm.texi: Regenerate.
20545 * system.h: Poison target macros
20546 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
20547 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
20548 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
20549 TARGET_NARROW_VOLATILE_BITFIELDS
20551 2012-06-26 Jan Hubicka <jh@suse.cz>
20554 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
20557 2012-06-26 Dehao Chen <dehao@google.com>
20559 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
20560 source location is consistant with the call stmt.
20562 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
20564 PR tree-optimization/53729
20565 PR tree-optimization/53636
20566 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
20567 vect_verify_datarefs_alignment until after statements have
20568 been marked as relevant/irrelevant.
20569 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
20570 Skip irrelevant statements.
20571 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
20572 instead of STMT_VINFO_RELEVANT.
20573 (vect_get_data_access_cost): Do not check for supportable
20574 alignment before calling vect_get_load_cost/vect_get_store_cost.
20575 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
20576 handling unsupported alignment.
20577 (vect_get_load_cost): Likewise.
20579 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
20581 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
20582 Do not define JMP_BUF_SIZE.
20584 2012-06-26 Jakub Jelinek <jakub@redhat.com>
20586 PR tree-optimization/53748
20587 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
20588 if arg0/arg1 have integral or pointer types.
20590 2012-06-25 Richard Henderson <rth@redhat.com>
20592 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
20593 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
20594 (sdot_prodv4si): New; handle only XOP.
20596 2012-06-25 Richard Henderson <rth@redhat.com>
20598 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
20599 (V2UDI_FUNC_V4USI_V4USI): New.
20600 (V4UDI_FUNC_V8USI_V8USI): New.
20601 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
20602 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
20603 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
20604 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
20605 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
20606 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
20607 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
20608 (bdesc_args): Add them.
20609 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
20610 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
20611 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
20612 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
20613 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
20615 2012-06-25 Richard Henderson <rth@redhat.com>
20617 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
20619 2012-06-25 Richard Henderson <rth@redhat.com>
20621 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
20623 (ix86_expand_vec_interleave): New.
20624 (ix86_expand_mul_widen_evenodd): New.
20625 (ix86_expand_mul_widen_hilo): New.
20626 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
20627 * config/i386/i386.md (u_bool) New code attr.
20628 * config/i386/predicates.md
20629 (nonimmediate_or_const_vector_operand): Remove.
20630 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
20631 both AVX and SSE4_1.
20632 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
20633 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
20634 (vec_widen<s>mult_hi_v8si): Remove.
20635 (vec_widen<s>mult_lo_v8si): Remove.
20636 (vec_widen_smult_hi_v4si): Remove.
20637 (vec_widen_smult_lo_v4si): Remove.
20638 (vec_widen_umult_hi_v4si): Remove.
20639 (vec_widen_umult_lo_v4si): Remove.
20640 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
20641 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
20642 * config/i386/i386-protos.h: Update.
20644 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
20646 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
20647 (neon_vld1_dup): Restrict to VQ operands.
20648 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
20650 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
20651 James Greenhalgh <james.greenhalgh@arm.com>
20653 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
20654 (TARGET_FMA): New macro.
20655 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
20656 (TARGET_ARM_ARCH): Likewise.
20657 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
20658 (TARGET_V6M, TARGET_V7M): Likewise.
20659 (TARGET_ARM_ARCH_PROFILE): Likewise.
20660 (TARGET_ARM_FEATURE_LDREX): Likewise.
20661 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
20662 (ARM_MIN_ENUM_SIZE): Likewise.
20663 * config/arm/arm.c (arm_file_start): Refactor appropriately.
20664 (base_architecture): New enumeration.
20665 (arm_base_arch): New global variable.
20666 (processors): Add field base_arch.
20667 (ARM_ARCH, ARM_CORE): Adjust accordingly.
20668 (arm_option_override): Add initialization of arm_base_arch.
20669 * doc/cpp.texi (system-specific predefined macros.): Change.
20671 2012-06-25 Jakub Jelinek <jakub@redhat.com>
20674 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
20675 of x x x in the vmovlps load alternative.
20677 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
20680 * df.h (dead_debug_add): Remove third argument.
20681 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
20682 REG that we want to replace instead.
20683 (dead_debug_insert_temp): Use the REGNO of the reg that we want
20684 to replace instead of DF_REF_REGNO. Require there to always be
20685 at least one such use. Check for cases where the same location
20686 has more than df_ref associated with it.
20687 (df_note_bb_compute): Remove third dead_debug_add argument.
20688 * dce.c (word_dce_process_block): Likewise.
20690 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
20692 * config/v850/v850.c: Remove redundant extern declarations for
20693 last_assemble_variable_decl and size_directive_output.
20695 * doc/tm.texi.in: Document JMP_BUF_SIZE.
20696 * doc/tm.texi: Regenerate.
20697 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
20698 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
20699 * config/stormy16/stormy16.h: Likewise.
20701 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
20703 * doc/sourcebuild.texi: Add missing subdirectories.
20705 2012-06-25 Tristan Gingold <gingold@adacore.com>
20707 * config/i386/i386.h: Fix typo.
20709 2012-06-25 Tristan Gingold <gingold@adacore.com>
20711 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
20712 (seh_cfa_adjust_cfa): ... that function.
20713 (seh_emit_stackalloc): Do not emit out of range values.
20714 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
20715 UNSPEC_DEF_CFA constants.
20716 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
20717 * config/i386/i386.c (ix86_frame_pointer_required): Required
20718 for very large frames on SEH target.
20719 (ix86_compute_frame_layout): Save area is before frame pointer
20720 on SEH target. Handle very large frames.
20721 (ix86_expand_prologue): Likewise.
20723 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
20725 * output.h: (current_function_is_leaf,
20726 current_function_sp_is_unchanging,
20727 current_function_uses_only_leaf_regs): Remove.
20728 * function.c (current_function_is_leaf,
20729 current_function_sp_is_unchanging,
20730 current_function_uses_only_leaf_regs): Remove.
20731 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
20732 instead of current_function_uses_only_leaf_regs.
20733 * function.h (struct rtl_data): New fields sp_is_unchanging,
20734 is_leaf, uses_only_leaf_regs.
20735 * resource.c (init_resource_info): Replace current_function_is_leaf,
20736 current_function_sp_is_unchanging, and
20737 current_function_uses_only_leaf_regs with new crtl fields.
20738 * sdbout.c (sdbout_symbol): Likewise.
20739 * df-core.c (rest_of_handle_df_initialize): Likewise.
20740 * ira.c (ira): Likewise.
20741 * final.c (final_start_function): Likewise.
20742 * reorg.c (fill_simple_delay_slots): Likewise.
20743 * regrename.c (check_new_reg_p): Likewise.
20744 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
20745 (notice_stack_pointer_modification): Likewise.
20746 * dbxout.c (dbxout_symbol): Likewise.
20747 (dbxout_parms): Likewise.
20748 * sel-sched.c (init_regs_for_mode): Likewise.
20749 * dwarf2out.c (dbx_reg_number): Likewise.
20750 (multiple_reg_loc_descriptor): Likewise.
20751 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
20752 (gen_pop): Likewise.
20753 (ix86_select_alt_pic_regnum): Likewise.
20754 (ix86_compute_frame_layout): Likewise.
20755 (ix86_finalize_stack_realign_flags): Likewise.
20756 (ix86_expand_epilogue): Likewise.
20757 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
20758 * config/h8300/h8300.c (byte_reg): Likewise.
20759 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
20760 (c6x_save_reg): Likewise.
20761 (c6x_compute_frame_layout): Likewise.
20762 * config/pa/pa.c (pa_compute_frame_size): Likewise.
20763 (pa_output_function_prologue): Likewise.
20764 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
20765 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
20766 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
20767 (sparc_expand_prologue): Likewise.
20768 (sparc_flat_expand_prologue): Likewise.
20769 (sparc_asm_function_prologue): Likewise.
20770 (sparc_output_mi_thunk): Likewise.
20771 (sparc_frame_pointer_required): Likewise.
20772 * config/epiphany/epiphany.c (epiphany_compute_function_type):
20774 (epiphany_compute_frame_size): Likewise.
20775 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
20776 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
20777 (cris_frame_pointer_required): Likewise.
20778 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
20779 (tilepro_current_function_is_leaf): Likewise.
20780 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
20781 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
20782 * config/ia64/ia64.c (find_gr_spill): Likewise.
20783 (ia64_compute_frame_size): Likewise.
20784 (ia64_can_eliminate): Likewise.
20785 (ia64_initial_elimination_offset): Likewise.
20786 * config/m68k/m68k.c (m68k_save_reg): Likewise.
20787 (m68k_expand_epilogue): Likewise.
20788 * config/rx/rx.c (rx_get_stack_layout): Likewise.
20789 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
20790 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
20792 (picochip_output_frame_debug): Likewise.
20793 * config/sh/sh.c (sh_media_register_for_return): Likewise.
20794 (sh_allocate_initial_value): Likewise.
20795 (sh_output_mi_thunk): Likewise.
20796 * config/microblaze/microblaze.c (microblaze_must_save_register):
20798 (compute_frame_size): Likewise.
20799 (microblaze_initial_elimination_offset): Likewise.
20800 (microblaze_expand_prologue): Likewise.
20801 (microblaze_expand_epilogue): Likewise.
20802 * config/frv/frv.c (frv_expand_epilogue): Likewise.
20803 (frv_frame_pointer_required): Likewise.
20804 * config/spu/spu.c (get_pic_reg): Likewise.
20805 (direct_return): Likewise.
20806 (spu_expand_prologue): Likewise.
20807 (spu_expand_epilogue): Likewise.
20808 (spu_initial_elimination_offset): Likewise.
20809 * config/mips/mips.c (mips_global_pointer): Likewise.
20810 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
20811 (mips_compute_frame_info): Likewise.
20812 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
20813 (mep_reload_pointer): Likewise.
20814 * config/rl78/rl78.c (need_to_save): Likewise.
20815 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
20816 * config/score/score.c (score_compute_frame_size): Likewise.
20817 (score_function_prologue): Likewise.
20818 * config/bfin/bfin.c (must_save_p): Likewise.
20819 (expand_prologue_reg_save): Likewise.
20820 (expand_epilogue_reg_restore): Likewise.
20821 (bfin_frame_pointer_required): Likewise.
20822 (n_regs_saved_by_prologue): Likewise.
20823 (add_to_reg): Likewise.
20824 (expand_interrupt_handler_prologue): Likewise.
20825 (expand_interrupt_handler_epilogue): Likewise.
20826 (bfin_expand_prologue): Likewise.
20827 * config/avr/avr.c (avr_regs_to_save): Likewise.
20828 (avr_prologue_setup_frame): Likewise.
20829 (expand_epilogue): Likewise.
20830 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
20831 (s390_register_info): Likewise.
20832 (s390_frame_info): Likewise.
20833 (s390_init_frame_layout): Likewise.
20834 (s390_emit_prologue): Likewise.
20837 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
20839 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
20840 * vmsdbgout: Do not undefine it if defined.
20841 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
20842 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
20843 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
20845 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
20847 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
20849 2012-06-23 Richard Henderson <rth@redhat.com>
20852 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
20853 V*QImode shifts and multiply.
20854 (ix86_expand_vecop_qihi): Support shifts.
20855 * config/i386/i386.md (any_shift): New code iterator.
20856 * config/i386/sse.md (ashlv16qi3): Merge ...
20857 (<any_shiftrt>v16qi3): ... into ...
20858 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
20859 to support SSE and AVX.
20861 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
20862 parameter into src and dest.
20863 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
20864 (vec_unpacks_hi_<V124_AVX2>): Likewise.
20865 (vec_unpacku_lo_<V124_AVX2>): Likewise.
20866 (vec_unpacks_lo_<V124_AVX2>): Likewise.
20867 * config/i386/i386-protos.h: Update.
20869 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
20870 pure expander; move expansion code ...
20871 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
20872 * config/i386/i386-protos.h: Update.
20874 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
20876 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
20877 (popcntb<mode>2): Add attribute type popcnt.
20878 (popcntd<mode>2): Ditto.
20879 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
20880 * config/rs6000/power5.md (define_insn_reservation): Ditto.
20881 * config/rs6000/power7.md (define_insn_reservation): Ditto.
20882 * config/rs6000/476.md (define_insn_reservation): Ditto.
20883 * config/rs6000/power6.md (define_insn_reservation): New
20884 reservation for popcnt instructions.
20886 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
20888 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
20890 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
20893 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
20895 * config/i386/i386.c (ix86_option_override_internal): Allow
20896 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
20898 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
20899 if SSE is disabled.
20901 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
20903 * double-int.c (double_int_multiple_of): New function.
20904 * double-int.h (double_int_multiple_of): New decl.
20905 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
20906 (mbc_entry_hash): New forward decl.
20907 (mbc_entry_eq): Likewise.
20908 (zero_cost): Change to no_cost.
20909 (mult_costs): New static var.
20910 (cost_tables_exist): Likewise.
20911 (initialize_costs): New function.
20912 (finalize_costs): Likewise.
20913 (tree_ssa_iv_optimize_init): Call initialize_costs.
20914 (add_cost): Change to add_regs_cost; distinguish costs by speed.
20915 (multiply_regs_cost): New function.
20916 (add_const_cost): Likewise.
20917 (extend_or_trunc_reg_cost): Likewise.
20918 (negate_reg_cost): Likewise.
20919 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
20921 (get_address_cost): Change add_cost to add_regs_cost; change
20922 multiply_by_cost to multiply_by_const_cost.
20923 (force_expr_to_var_cost): Change zero_cost to no_cost; change
20924 add_cost to add_regs_cost; change multiply_by_cost to
20925 multiply_by_const_cost.
20926 (split_cost): Change zero_cost to no_cost.
20927 (ptr_difference_cost): Likewise.
20928 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
20929 to multiply_by_const_cost.
20930 (get_computation_cost_at): Change add_cost to add_regs_cost; change
20931 multiply_by_cost to multiply_by_const_cost.
20932 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
20933 (determine_iv_cost): Change add_cost to add_regs_cost.
20934 (iv_ca_new): Change zero_cost to no_cost.
20935 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
20936 * tree-ssa-address.c (most_expensive_mult_to_index): Change
20937 multiply_by_cost to multiply_by_const_cost.
20938 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
20939 (add_regs_cost): New decl.
20940 (multiply_regs_cost): Likewise.
20941 (add_const_cost): Likewise.
20942 (extend_or_trunc_reg_cost): Likewise.
20943 (negate_reg_cost): Likewise.
20945 2012-06-22 Richard Guenther <rguenther@suse.de>
20947 Merge from graphite branch
20948 2011-08-10 Sebastian Pop <sebpop@gmail.com>
20950 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
20952 2012-01-13 Tobias Grosser <tobias@grosser.es>
20954 * tree-flow.h (parallelized_function_p): Declare.
20955 * tree-parloops.c (parallelized_function_p): Export.
20956 * graphite.c (graphite_transform_loops): Do not run graphite on
20957 already parallel functions.
20959 2012-06-22 Alan Modra <amodra@gmail.com>
20961 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
20962 return mem. Convert to indirect addressing if not indirect or
20963 indexed. Adjust all callers.
20965 2012-06-22 Richard Guenther <rguenther@suse.de>
20967 * gcov-iov.c: Include bconfig.h and system.h.
20969 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
20971 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
20973 2012-06-22 Richard Guenther <rguenther@suse.de>
20975 PR gcov-profile/53744
20976 * gcov-iov.c (main): Treat "" and "prerelease" the same.
20978 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
20981 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
20982 for GNU Fortran if in strict DWARF2 mode.
20984 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
20986 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
20987 DECL_IGNORED_P non-reg vars even if they are used.
20989 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
20993 * var-tracking.c (vt_get_canonicalize_base): New.
20994 (vt_canonicalize_addr, vt_stack_offset_p): New.
20995 (vt_canon_true_dep): New.
20996 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
20997 (clobber_overlaping_mems): Use vt_canonicalize_addr.
20999 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
21003 * var-tracking.c (vt_initialize): Record initial offset between
21004 arg pointer and stack pointer.
21006 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
21010 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
21013 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
21017 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
21019 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
21021 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
21023 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
21026 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
21028 2012-06-21 Meador Inge <meadori@codesourcery.com>
21031 * c-decl.c (c_push_function_context): Restore the behavior to reuse
21032 the language function allocated for -Wunused-local-typedefs.
21033 (c_pop_function_context): If necessary, clear the language function
21034 created in c_push_function_context. Always clear out the
21035 x_cur_stmt_list field of the restored language function.
21037 2012-06-21 Sterling Augustine <saugustine@google.com>
21038 Cary Coutant <ccoutant@google.com>
21040 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
21041 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
21042 (comdat_type_struct): New field 'skeleton_die'.
21043 (breakout_comdat_types): Update it.
21044 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
21045 is_namespace_die. Fix minor style violation. Call want_pubnames.
21046 (add_pubname_string): Call want_pubnames.
21047 (add_pubtype): Rework logic for calculating type name. Call
21048 is_namespace_die. Call want_pubnames.
21049 (output_pubnames): Move conditional logic deciding when to produce the
21050 section from dwarf2out_finish. Use new skeleton_die field.
21051 (base_type_die): Call add_pubtype.
21052 (gen_enumeration_type_die): Unconditionally call add_pubtype.
21053 (gen_subprogram_die): Adjust calls to add_pubname.
21054 (gen_namespace_die): Call add_pubname_string.
21055 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
21056 produce pubnames and pubtypes sections to output_pubnames.
21057 * common.opt (-gpubnames): New option.
21058 * doc/invoke.texi: Document it.
21060 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
21062 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
21064 2012-06-21 Michael Matz <matz@suse.de>
21066 PR middle-end/53688
21067 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
21070 2012-06-21 Richard Guenther <rguenther@suse.de>
21072 * tree-inline.c (estimate_num_insns): Estimate call cost for
21073 tailcalls properly.
21075 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
21077 * tree.h (DECL_SOURCE_COLUMN): New accessor.
21079 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
21081 * config/i386/i386.md (SINCOS): New int iterator.
21082 (sincos): New int attribute.
21083 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
21084 SINCOS int iterator.
21085 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
21086 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
21088 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
21090 * config/i386/i386.md (RDFSGSBASE): New int iterator.
21091 (WRFSGSBASE): Ditto.
21092 (fsgs): New int attribute.
21093 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
21094 RDFSGSBASE int iterator.
21095 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
21096 WRFSGSBASE int iterator.
21098 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
21100 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
21101 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
21102 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
21103 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
21106 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
21108 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
21110 2012-06-20 Richard Guenther <rguenther@suse.de>
21112 PR tree-optimization/30318
21113 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
21115 (range_int_cst_singleton_p): But explicitely here.
21116 (zero_nonzero_bits_from_vr): And here.
21117 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
21118 to cover all cases we can perform arbitrary precision
21119 arithmetic with double-ints.
21120 (intersect_ranges): Handle adjacent anti-ranges.
21122 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
21124 * config/i386/i386.md (rounding_insn): New int attribute.
21125 (<rounding_insn>xf2): Macroize insn from
21126 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
21127 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
21129 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
21131 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
21132 (ieee_maxmin): New int attribute.
21133 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
21134 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
21136 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
21138 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
21139 * config/arm/arm.c: Do not include c-pragma.h.
21140 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
21141 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
21142 to arm_emit_eabi_attribute.
21143 * arm-c.c: Do not include output.h.
21144 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
21145 call to arm_emit_eabi_attribute.
21146 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
21148 2012-06-20 Richard Guenther <rguenther@suse.de>
21150 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
21151 Allow adjusting alignment of user-aligned decls again.
21153 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
21155 * config/rl78/rl78-c.c: Remove unnecessary includes.
21157 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
21159 * config/cris/cris.c: Include cgraph.h.
21160 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
21162 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
21164 * emit-rtl.c (need_atomic_barrier_p): New function.
21165 * emit-rtl.h (need_atomic_barrier_p): Declare it.
21166 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
21167 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
21168 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
21169 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
21170 (mips_process_sync_loop): Use generic version instead.
21172 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
21174 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
21177 2012-06-19 Tom de Vries <vries@codesourcery.com>
21178 Maxim Kuvyrkov <maxim@codesourcery.com>
21180 * config/mips/constraints.md (ZR): New constraint.
21181 * config/mips/predicates.md (mem_noofs_operand): New predicate.
21182 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
21183 * config/mips/mips.h (TARGET_XLP): Define.
21184 (TARGET_SYNC_AFTER_SC): Update.
21185 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
21186 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
21187 XLP-specific swap and ldadd patterns.
21188 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
21190 2012-06-19 Tom de Vries <vries@codesourcery.com>
21191 Maxim Kuvyrkov <maxim@codesourcery.com>
21193 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
21194 (mips_emit_post_atomic_barrier_p): New static functions.
21195 (mips_process_sync_loop): Use them. Emit sync memory barriers in
21196 accordance with memory model semantics. Add return of CMP result for
21198 * config/mips/mips.md: Update comment.
21199 (sync_cmp): New attribute.
21200 (sync_memmodel): New attribute replacing sync_release_barrier.
21201 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
21202 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
21203 (sync_lock_test_and_set, test_and_set_12): Update.
21204 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
21205 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
21207 2012-06-19 Joseph Myers <joseph@codesourcery.com>
21209 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
21210 mov_si<mode>_e500_subreg0.
21211 (*mov_si<mode>_e500_subreg0_elf_low)
21212 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
21214 2012-06-19 Richard Henderson <rth@redhat.com>
21216 * config/alpha/alpha.c: Include params.h.
21217 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
21218 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
21220 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
21222 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
21223 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
21224 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
21226 * doc/tm.texi: Regenerate.
21227 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
21228 .objc_class_name_*.
21229 * config/darwin-c.c: Include target.h.
21230 (darwin_objc_declare_unresolved_class_reference): New function.
21231 (darwin_objc_declare_class_definition): New function.
21232 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
21233 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
21235 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
21237 * target.def (output_ident): New hook.
21238 * targhooks.h (default_asm_output_ident_directive): Add prototype.
21239 * varasm.c (assemble_asm): Only prefix a tab if the string does not
21240 already start with one.
21241 (default_asm_output_ident_directive): New function to emit
21242 .ident as a top-level asm node while parsing, or directly to
21243 asm_out_file after parsing.
21244 * toplev.c (compile_file): Print a GCC .ident with
21245 targetm.asm_out.output_ident.
21246 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
21247 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
21248 * doc/tm.texi: Update.
21250 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
21251 (TARGET_ASM_OUTPUT_IDENT): Define.
21252 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
21253 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
21254 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
21255 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
21256 (TARGET_ASM_OUTPUT_IDENT): Define.
21257 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
21258 (TARGET_ASM_OUTPUT_IDENT): Define.
21260 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
21261 * config/cris/cris.c (cris_asm_output_ident): New function.
21262 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
21264 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
21266 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
21267 (microblaze_asm_output_ident): Rewrite to work similar to
21268 default_asm_output_ident_directive for front-end .idents.
21269 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
21270 (TARGET_ASM_OUTPUT_IDENT): Define.
21272 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
21273 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
21275 * config/rx/rx.c: Include cgraph.h for add_asm_node.
21276 (rx_asm_output_ident): New function, similar to
21277 default_asm_output_ident_directive, but handle AS100 syntax also, so
21278 that #ident also works for rx in AS100 syntax.
21279 (TARGET_ASM_OUTPUT_IDENT): Define.
21280 * config/rx/rx.h (IDENT_ASM_OP): Remove.
21282 * Makefile.in: Fix dependencies for c-family/c-lex.o.
21284 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
21286 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
21287 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
21289 (*fist<mode>2_<rounding>_1): Macroize insn from
21290 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
21291 (fistdi2_<rounding>): Macroize insn from
21292 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
21293 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
21294 corresponding splitters from fistdi2_{floor,ceil} and corresponding
21295 splitters using FIST_ROUNDING int iterator.
21296 (fist<mode>2_<rounding>): Macroize insn from
21297 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
21298 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
21299 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
21300 splitters using FIST_ROUNDING int iterator.
21301 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
21302 using FIST_ROUNDING int iterator.
21304 2012-06-19 Richard Henderson <rth@redhat.com>
21306 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
21307 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
21308 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
21309 * config/i386/sse.md (sse2_mulv4si3): Delete.
21310 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
21311 nonimmediate_or_const_vector_operand.
21313 2012-06-19 Richard Henderson <rth@redhat.com>
21315 * expmed.c (struct init_expmed_rtl): Split ...
21316 (init_expmed_one_mode): ... out of ...
21317 (init_expmed): ... here. Initialize integer vector modes also.
21318 (synth_mult): Handle integer vector modes.
21319 (choose_mult_variant): Likewise.
21320 (expand_mult_const): Likewise.
21321 (expand_mult): Likewise.
21322 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
21324 2012-06-19 Richard Henderson <rth@redhat.com>
21326 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
21327 integral vector modes.
21329 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
21331 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
21332 (rounding): New int attribute.
21334 (frndintxf2_<rounding>): Macroize insn from
21335 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
21336 (frndintxf2_<rounding>_i387): Macroize insn from
21337 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
21339 2012-06-19 Richard Guenther <rguenther@suse.de>
21341 * tree-vrp.c (union_ranges): New function.
21342 (vrp_meet_1): Use union_ranges.
21343 (vrp_meet): Dump what we union and call vrp_meet_1.
21345 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
21347 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
21348 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
21349 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
21350 (attr write_conflict, attr core_cycles): Update.
21351 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
21353 2012-06-19 Richard Guenther <rguenther@suse.de>
21355 * tree-vrp.c (intersect_ranges): Handle more cases.
21356 (vrp_intersect_ranges): Dump what we intersect and call ...
21357 (vrp_intersect_ranges_1): ... this.
21359 2012-06-19 Richard Guenther <rguenther@suse.de>
21361 PR tree-optimization/53708
21362 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
21363 user-supplied alignment and alignment of decls with the used
21366 2012-06-18 Lawrence Crowl <crowl@google.com>
21368 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
21369 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
21370 (TV_PHASE_STREAM_IN): New.
21371 (TV_PHASE_STREAM_OUT): New.
21372 * timevar.c (validate_phases): New.
21373 (timevar_print): Call validate_phases.
21374 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
21375 to TV_PHASE_OPT_GEN.
21376 * langhooks.c (write_global_declarations): Rename use of
21377 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
21378 TV_PHASE_CHECK_DBGINFO.
21379 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
21380 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
21381 lang_hooks.decls.final_write_globals.
21383 2012-06-18 David Edelshn <dje.gcc@gmail.com>
21385 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
21387 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
21390 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
21391 (*sse4_2_pcmpistr_unaligned): New.
21393 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21394 Sameera Deshpande <sameera.deshpande@arm.com>
21395 Greta Yorsh <greta.yorsh@arm.com>
21397 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
21398 * config/arm/arm.c (print_multi_reg): Remove.
21399 (vfp_output_fldmd): Likewise.
21400 (arm_output_epilogue): Likewise.
21401 * config/arm/arm.md (epilogue_insns): Update condition and code.
21403 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21404 Sameera Deshpande <sameera.deshpande@arm.com>
21405 Greta Yorsh <greta.yorsh@arm.com>
21407 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
21408 * config/arm/arm.c (thumb2_expand_return): New function.
21409 * config/arm/arm.md (return): Update condition and code.
21411 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21412 Sameera Deshpande <sameera.deshpande@arm.com>
21413 Greta Yorsh <greta.yorsh@arm.com>
21415 * config/arm/arm-protos.h (output_return_instruction): New parameter
21416 and int to bool change of parameter types.
21417 * config/arm/arm.c (output_return_instruction): Likewise.
21418 * config/arm/arm.md (arm_simple_return): New pattern.
21419 (arm_return, cond_return, cond_return_inverted): Add new arguments.
21420 * config/arm/thumb2.md (thumb2_return): Update condition and code.
21422 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21423 Sameera Deshpande <sameera.deshpande@arm.com>
21424 Greta Yorsh <greta.yorsh@arm.com>
21426 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
21427 * config/arm/arm.c (arm_expand_epilogue): New function.
21428 * config/arm/arm.md (epilogue): Update condition and code.
21429 (sibcall_epilogue): Likewise.
21431 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21432 Sameera Deshpande <sameera.deshpande@arm.com>
21433 Greta Yorsh <greta.yorsh@arm.com>
21435 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
21436 * config/arm/arm.md (arm_addsi3) Add an alternative.
21438 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21439 Sameera Deshpande <sameera.deshpande@arm.com>
21440 Greta Yorsh <greta.yorsh@arm.com>
21442 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
21443 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
21444 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
21446 2012-06-18 Ian Bolton <ian.bolton@arm.com>
21447 Sameera Deshpande <sameera.deshpande@arm.com>
21448 Greta Yorsh <greta.yorsh@arm.com>
21450 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
21451 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
21452 (pop_multiple_with_return, ldr_with_return) Likewise.
21453 * config/arm/predicates.md (pop_multiple_return) New special predicate.
21454 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
21455 * config/arm/arm.c (arm_output_multireg_pop) New function.
21456 (arm_emit_multi_reg_pop): New function.
21458 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
21460 * config/arm/arm.c (ldm_stm_operation_p): Require SP
21461 as base register for loads if SP is in the register list.
21463 2012-06-18 Richard Guenther <rguenther@suse.de>
21465 PR tree-optimization/53693
21466 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
21467 Reject operands with more than one use.
21469 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
21471 PR tree-optimization/53703
21472 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
21473 correctly set bb_for_def[12].
21475 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
21477 * config/vax/vax.h (VMS_TARGET): Remove.
21479 2012-06-18 Richard Guenther <rguenther@suse.de>
21481 * tree-vrp.c (extract_range_from_assert): Split out range
21483 (intersect_ranges): New function.
21484 (vrp_intersect_ranges): Likewise.
21486 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21488 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
21491 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
21493 * doc/md.texi: Document int iterators.
21494 * read-rtl.c (ints): New iterator group.
21495 (find_int): Int iterator group callback.
21496 (apply_int_iterator): Likewise.
21497 (apply_iterators): Traverse int iterator table and add all the used
21499 (initialize_iterators): Initialize data structures and callbacks for
21501 (read_rtx): Parse and read mappings for int iterators.
21502 (read_rtx_code): Record int iterator usage.
21504 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
21506 PR middle-end/53698
21507 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
21508 performing an addition.
21510 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21512 * output.h (split_double): Move prototype to rtl.h.
21513 (constructor_static_from_elts_p): Move prototype to tree.c.
21514 * rtl.h (split_double): Moved here from output.h.
21515 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
21516 * final.c (split_double): Move from here ...
21517 * rtlanal.c (split_double): ... to here.
21518 * expr.c: Do not include output.h.
21520 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21522 * cfglayout.h: Remove.
21523 * cfglayout.c: Remove.
21524 * function.h (struct function): Remove x_last_location field.
21525 * function.c: Do not include cfglayout.h.
21526 (expand_function_start): Do not call no-op force_next_line_note.
21527 (expand_function_end): Likewise.
21528 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
21529 (unlink_insn_chain): Moved here from cfglayout.c.
21530 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
21531 into_cfg_layout_mode, outof_cfg_layout_mode,
21532 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
21533 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
21534 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
21535 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
21536 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
21537 cfg_layout_finalize): Likewise.
21538 (rtl_can_remove_branch_p): Likewise.
21539 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
21540 (duplicate_insn_chain): Likewise.
21541 (force_next_line_note): Remove prototype.
21542 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
21543 (last_location): Remove #define to emit.x_last_location.
21544 (force_next_line_note): Remove no-op function.
21545 (init_emit): Don't set x_last_location.
21546 (block_locators_locs, block_locators_blocks, locations_locators_locs,
21547 locations_locators_vals, prologue_locator, epilogue_locator,
21548 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
21549 Move POD to here from cfglayout.c.
21550 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
21551 set_curr_insn_source_location, get_curr_insn_source_location,
21552 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
21553 locator_scope, insn_scope, locator_location, locator_line, insn_line,
21554 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
21555 * cfghooks.h: Remove double-include protection.
21556 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
21557 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
21558 * final.c: Do not include cfglayout.h.
21559 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
21560 (reemit_insn_block_notes): Likewise. Make static.
21561 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
21562 operation_could_trap_p, tree_could_throw_p): Move from here...
21563 * tree.h: ... to here.
21564 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
21565 * profile.c: Do not include cfghooks.h.
21566 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
21567 * modulo-sched.c: Likewise.
21568 * loop-unswitch.c: Do not include cfglayout.h.
21569 * sched-ebb.c: Likewise.
21570 * tracer.c: Likewise.
21572 * tree-vect-loop-manip.c: Likewise.
21573 * loop-init.c: Likewise.
21574 * dwarf2out.c: Likewise.
21575 * hw-doloop.c: Likewise.
21576 * loop-unroll.c: Likewise.
21577 * cfgcleanup.c: Likewise.
21578 * bb-reorder.c: Likewise.
21579 * sched-rgn.c: Likewise.
21580 * tree-cfg.c: Likewise.
21581 * config/alpha/alpha.c: Likewise.
21582 * config/spu/spu.c: Likewise.
21583 * config/sparc/sparc.c: Likewise.
21584 * config/sh/sh.c: Likewise.
21585 * config/c6x/c6x.c: Likewise.
21586 * config/ia64/ia64.c: Likewise.
21587 * config/rs6000/rs6000.c: Likewise.
21588 * config/score/score.c: Likewise.
21589 * config/mips/mips.c: Likewise.
21590 * config/bfin/bfin.c: Likewise.
21591 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
21592 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
21593 * config/spu/t-spu-elf (spu.o: $): Likewise.
21594 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
21596 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21598 * cfgloop.h: Do not include rtl.h.
21599 (enum iv_extend_code): New.
21600 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
21601 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
21602 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
21603 an IV_EXTEND_CODE to an RTX_CODE.
21604 (dump_iv_info): Update for rtx_iv field type change.
21605 (iv_constant): Likewise.
21606 (iv_subreg): Likewise.
21607 (iv_extend): Likewise.
21608 (iv_neg): Likewise.
21609 (iv_add): Likewise.
21610 (iv_mult): Likewise.
21611 (iv_shift): Likewise.
21612 (get_biv_step_1): Likewise.
21613 (get_biv_step): Likewise.
21614 (iv_analyze_biv): Likewise.
21615 (get_iv_value): Likewise.
21616 (shorten_into_mode): Likewise.
21617 (canonicalize_iv_subregs): Likewise.
21618 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
21619 of MAY_HAVE_DEBUG_INSNS.
21620 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
21621 * tree-ssa-loop-prefetch.c: Likewise.
21623 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21625 * expmed.c (ceil_log2): Move from here...
21626 * hwint.c: ... to here for older GCCs...
21627 * hwint.h: ... and here for newer GCCs.
21628 * rtl.h (ceil_log2): Remove prototype.
21630 * tree-phinodes.c: Do not include rtl.h.
21631 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
21633 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
21635 * config/cris/cris.h (TARGET_ELF): Remove.
21636 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
21637 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
21638 (LOCAL_LABEL_PREFIX): Likewise.
21639 * config/cris/cris.c (cris_target_asm_named_section): Remove.
21640 (cris_option_override): Simpify using TARGET_ELF==1.
21641 (cris_file_start): Likewise.
21642 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
21644 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
21646 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
21648 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
21650 PR middle-end/53590
21651 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
21653 2012-06-15 Easwaran Raman <eraman@google.com>
21655 * passes.c (init_optimization_passes): Remove pass_call_cdce
21656 from its current position and insert after pass_dce.
21658 2012-06-15 Walter Lee <walt@tilera.com>
21660 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
21662 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
21664 * arm.c (note_invalid_constants): Don't return a result.
21665 (arm_memory_load_p): Delete function.
21666 (arm_const_double_rtx): Delete iterator variable i;
21667 (fp_immediate_constant): Likewise.
21668 (fp_const_from_val): Likewise.
21670 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
21672 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
21675 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
21676 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
21678 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
21680 * config/avr/avr.c (avr_default_expand_builtin): New function.
21681 (avr_expand_builtin): Use it.
21682 (avr_expand_unop_builtin): Remove.
21683 (avr_expand_binop_builtin): Remove.
21684 (avr_expand_triop_builtin): Remove.
21686 2012-06-15 Michael Matz <matz@suse.de>
21688 PR middle-end/38474
21689 * cfgexpand.c (add_alias_set_conflicts): Remove.
21690 (expand_used_vars): Don't call it.
21691 (aggregate_contains_union_type): Remove.
21692 * function.c (n_temp_slots_in_use): New static data.
21693 (make_slot_available, assign_stack_temp_for_type): Update it.
21694 (init_temp_slots): Zero it.
21695 (remove_unused_temp_slot_addresses): Use it for quicker removal.
21696 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
21698 2012-06-15 Michael Matz <matz@suse.de>
21700 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
21701 argument, don't emit assign statement if value is directly usable.
21702 (gimplify_expr): Adjust.
21704 2012-06-15 Michael Matz <matz@suse.de>
21706 * gimplify.c (gimplify_modify_expr): Fold generated statements.
21707 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
21709 2012-06-15 Richard Guenther <rguenther@suse.de>
21711 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
21712 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
21713 we assert for in set_value_range to VR_VARYING.
21715 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
21717 * arm.md (addsf3, adddf3): Use s_register_operand.
21718 (subsf3, subdf3): Likewise.
21719 (mulsf3, muldf3): Likewise.
21720 (difsf3, divdf3): Likewise.
21721 (movsfcc, movdfcc): Likewise.
21722 * predicates.md (f_register_operand): Delete.
21723 (arm_float_rhs_operand): Delete.
21724 (arm_float_add_operand): Delete.
21725 (arm_float_compare_operand): Use s_register_operand when
21727 (cirrus_register_operand): Delete.
21728 (cirrus_fp_register): Delete.
21729 (cirrus_shift_const): Delete.
21730 (cmpdi_operand): Remove Maverick support.
21731 * constraints.md (f, v, H): Delete constraints.
21732 (G): Update documentation.
21733 * arm.c (fp_consts_inited): Convert to bool.
21734 (strings_fp): Delete.
21735 (values_fp): Delete.
21736 (value_fp0): New variable.
21737 (init_fp_table): Simplify logic.
21738 (arm_const_double_rtx): Likewise.
21739 (fp_immediate_constant): Likewise.
21740 (fp_const_from_val): Likewise.
21741 (neg_const_double_rtx_ok_for_fpa): Delete.
21742 * doc/md.texi (ARM constraints): Update documentation.
21744 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
21746 PR tree-optimization/53636
21747 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
21748 stride when doing basic-block vectorization.
21750 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21752 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
21753 into VEC_PERM_EXPR.
21755 2012-06-15 Jakub Jelinek <jakub@redhat.com>
21757 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
21758 allocate and free bbs array for the SLP case.
21760 PR tree-optimization/51581
21761 * expr.h (choose_multiplier): New prototype.
21762 * expmed.c (choose_multiplier): No longer static.
21763 Change multiplier_ptr from rtx * to UHWI *.
21764 (expand_divmod): Adjust callers.
21765 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
21766 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
21767 argument to new_stmt_vec_info. Attempt to optimize also divisions
21768 by non-pow2 constants if integer vector division isn't supported.
21769 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
21770 don't look at pattern stmts and sequences.
21772 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
21774 PR middle-end/53590
21775 * common.opt (-fdelete-dead-exceptions): New switch.
21776 * doc/invoke.texi (Code Gen Options): Document it.
21777 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
21778 insn_could_throw_p predicate. Do not skip an insn that could throw
21779 if dead exceptions can be deleted.
21780 (insn_live_p): Likewise, do not return true in that case.
21781 * dce.c (can_alter_cfg): New flag.
21782 (deletable_insn_p): Do not return false for an insn that can throw if
21783 the CFG can be altered and dead exceptions can be deleted.
21784 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
21785 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
21786 predicate. Do not preserve an insn that could throw if dead exceptions
21788 * function.h (struct function): Add can_delete_dead_exceptions flag.
21789 * function.c (allocate_struct_function): Set it.
21790 * lto-streamer-in.c (input_struct_function_base): Stream it.
21791 * lto-streamer-out.c (input_struct_function_base): Likewise.
21792 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
21793 statement that could throw as necessary if dead exceptions can be
21796 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
21798 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
21800 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
21803 * config/sh/sh.md: Add peephole for swapbsi2.
21804 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
21806 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
21808 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
21809 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
21811 2012-06-14 Jakub Jelinek <jakub@redhat.com>
21814 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
21816 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
21818 * arm.c (arm_cirrus_insn_p): Delete.
21819 (cirrus_reorg): Delete.
21820 (arm_reorg): Don't call cirrus_reorg.
21821 (arm_final_prescan_insn_p): Don't check for cirrus insns.
21822 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
21823 (adddi3, subdi3): Remove Maverick support.
21824 (arm_adddi3): Likewise.
21825 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
21826 (addsf3, adddf3): Likewise.
21827 (subsf3, subdf3): Likewise.
21828 (mulsf3, muldf3): Likewise.
21829 (ashldi3, ashrdi3, lshrdi3): Likewise.
21830 (floatsisf2, floatsidf2): Likewise.
21831 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
21832 (arm_movdi, thumb1_movdi_insn): Likewise.
21833 (arm_cmpdi_insn): Likewise.
21834 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
21835 (cirrus.md): Don't include.
21836 * cirrus.md: Delete file.
21837 * t-arm (MD_INCLUDES): Remove cirrus.md.
21839 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
21841 * dwarf2out.c (function_possibly_abstracted_p): New static function.
21842 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
21843 cgraph_function_possibly_inlined_p.
21844 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
21845 (process_scope_var): Do not emit concrete instances of abstracted
21846 nested functions from here.
21847 (gen_decl_die): Emit the abstract instance if the function is possibly
21848 abstracted and not only possibly inlined.
21849 (dwarf2out_finish): Find the first non-abstract parent instance and
21850 attach concrete instances on the limbo list to it.
21852 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
21854 * arm.md (divsf3, divdf3): Remove FPA support.
21855 (negsf2, negdf2): Likewise.
21856 (sqrtsf2, sqrtdf2): Likewise.
21857 (movdfcc): Likewise.
21858 (modsf3, moddf3, movxf): Delete.
21859 (push_fp_multi): Delete.
21860 (fpa.md): Don't include it.
21861 * fpa.md: Delete file.
21862 * t-arm (MD_INCLUDES): Remove fpa.md.
21864 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
21866 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
21867 (cost_for_stmt): Remove decl.
21868 (vect_get_single_scalar_iteration_cost): Correct typo in name.
21869 * tree-vect-loop.c (vect_get_cost): Remove.
21870 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
21871 vect_get_stmt_cost rather than vect_get_cost.
21872 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
21874 (vect_estimate_min_profitable_iters): Correct typo in call to
21875 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
21876 than vect_get_cost.
21877 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
21879 (vect_model_induction_cost): Likewise.
21880 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
21881 typo in call to vect_get_single_scalar_iteration_cost.
21882 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
21883 (cost_for_stmt): Remove unnecessary function.
21884 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
21886 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
21888 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
21889 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
21890 * arm-tables.opt: Regenerated.
21891 * doc/invoke.texi: Remove references to deleted options.
21893 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
21895 * config/h8300/genmova.sh: Modified to add offset bits of
21896 mova/Sz assembly instruction for memory access.
21897 * config/h8300/h8300.c: Likewise.
21898 * config/h8300/mova.md: Likewise.
21900 2012-06-12 Christian Bruel <christian.bruel@st.com>
21903 * config/sh/sh.c (sh_option_override): Don't force
21904 flag_omit_frame_pointer and maccumulate_outgoing_args.
21905 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
21907 2012-06-14 Richard Guenther <rguenther@suse.de>
21909 * tree-vrp.c (VR_INITIALIZER): New define.
21910 (ranges_from_anti_range): New function.
21911 (extract_range_from_binary_expr_1): Decompose operations on
21912 VR_ANTI_RANGEs to operations on VR_RANGE.
21913 (extract_range_from_unary_expr_1): Likewise.
21914 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
21915 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
21916 extract_range_from_cond_expr, adjust_range_with_scev,
21917 vrp_visit_assignment_or_call, vrp_visit_phi_node,
21918 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
21920 2012-06-13 Richard Henderson <rth@redhat.com>
21922 * hwint.h (HOST_WIDEST_INT_C): New.
21923 (HOST_WIDE_INT_C): New.
21924 (HOST_WIDE_INT_1): Use it.
21925 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
21927 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
21930 * var-tracking.c: Include alias.h.
21931 (overlapping_mems): New struct.
21932 (drop_overlapping_mem_locs): New.
21933 (clobber_overlapping_mems): New.
21934 (var_mem_delete_and_set, var_mem_delete): Call it.
21935 (val_bind): Likewise, but only if modified.
21936 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
21937 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
21939 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
21942 * var-tracking.c (loc_exp_dep_pool): New.
21943 (vt_emit_notes): Create and release the pool.
21944 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
21945 (emit_notes_in_bb): Likewise.
21946 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
21947 (notify_dependents_of_changed_value): Likewise.
21948 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
21949 variables don't have a VAR_LOC_DEP_LST.
21950 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
21951 VALUEs or MEMs of VALUEs.
21953 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
21957 * dce.c (word_dce_process_block): Insert debug temps only if the
21958 insn is not marked.
21959 (dce_process_block): Likewise, and if debug.used is not empty,
21960 and only after iterating over all DEFs that might mark the insn.
21962 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
21964 * common.opt (ftree-coalesce-inlined-vars): New.
21965 (ftree-coalesce-vars): New.
21966 * doc/invoke.texi: Document them.
21967 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
21970 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
21972 * read-rtl.c (mapping): Remove index field. Add current_value field.
21973 Define heap vectors.
21974 (iterator_group): Fix long line. Remove num_builtins field and
21975 uses_iterator fields. Make apply_iterator take a void * parameter.
21976 (iterator_use, atttribute_use): New structures.
21977 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
21978 (current_iterators, iterator_uses, attribute_uses): New variables.
21979 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
21980 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
21981 (map_attr_string, apply_iterator_to_string): Remove iterator
21982 and value parameters. Look through all current iterator values
21983 for a matching attribute.
21984 (mode_attr_index, apply_mode_maps): Delete.
21985 (apply_iterator_to_rtx): Replace with...
21986 (copy_rtx_for_iterators): ...this new function.
21987 (uses_iterator_p, apply_iterator_traverse): Delete.
21988 (apply_attribute_uses, add_current_iterators, apply_iterators): New
21990 (add_mapping): Remove index field. Set current_value field.
21991 (initialize_iterators): Don't set num_builtins and uses_iterator_p
21993 (find_iterator): Delete.
21994 (record_iterator_use, record_attribute_use): New functions.
21995 (record_potential_iterator_use): New function.
21996 (check_code_iterator): Remove handling of bellwether codes.
21997 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
21998 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
21999 parameter. Use the first code iterator value instead of the
22000 bellwether_codes array. Use record_potential_iterator_use for modes.
22002 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
22005 * config/sh/sh.md (bswapsi2): New expander.
22006 (swapbsi2): New insn.
22008 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
22011 * config/i386/i386.c (ix86_tune_cost): New variable.
22012 (ix86_option_override_internal): Set ix86_tune_cost. Use
22013 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
22014 l1_cache_size and l2_cache_size.
22016 2012-06-13 Richard Guenther <rguenther@suse.de>
22018 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
22019 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
22020 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
22021 VR_ANTI_RANGE with VR_ANTI_RANGE.
22023 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
22025 * config.gcc (unsupported): Move obsoleted FPA-based configurations
22027 (obsolete): ... here.
22028 (arm*-*-freebsd*): Remove.
22029 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
22030 (arm*-*-uclinux*): Likewise.
22031 (arm*-*-ecos-elf): Remove.
22032 (arm*-*-rtems*): Remove.
22033 (arm*-*-elf): Remove.
22034 (arm*-wince-pe*): Remove.
22035 (arm, --with-fpu): Remove support for fpa and Maverick variants.
22036 * arm/ecos-elf.h: Delete.
22037 * arm/t-strongarm-elf: Delete.
22038 * arm/rtems-elf.h: Delete.
22039 * arm/wince-pe.h: Delete.
22040 * arm/pe.c: Delete.
22041 * arm/pe.h: Delete.
22042 * arm/t-wince-pe: Delete.
22044 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
22046 PR tree-optimization/53647
22047 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
22048 targets with no defined cache line size.
22050 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
22052 * targhooks.c (default_builtin_vectorized_conversion): Handle
22053 vec_construct, using vectype to base cost on subparts.
22054 * target.h (enum vect_cost_for_stmt): Add vec_construct.
22055 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
22056 instead of scalar_to-vec.
22057 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
22058 vec_construct in same way as default for now.
22059 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
22060 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
22061 Handle vec_construct, including special case for 32-bit loads.
22063 2012-06-13 Xinyu Qi <xyqi@marvell.com>
22065 * config/arm/arm.c (FL_IWMMXT2): New define.
22066 (arm_arch_iwmmxt2): New variable.
22067 (arm_option_override): Enable use of iWMMXt with VFP.
22068 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
22069 Thumb mode. Set arm_arch_iwmmxt2.
22070 (arm_expand_binop_builtin): Accept VOIDmode op.
22071 (enum arm_builtins): Revise built-in fcode.
22072 (IWMMXT2_BUILTIN): New define.
22073 (IWMMXT2_BUILTIN2): Likewise.
22074 (iwmmx2_mbuiltin): Likewise.
22075 (builtin_description bdesc_2arg): Revise built in declaration.
22076 (builtin_description bdesc_1arg): Likewise.
22077 (arm_init_iwmmxt_builtins): Revise built in initialization.
22078 (arm_expand_builtin): Revise built in expansion.
22079 (arm_output_iwmmxt_shift_immediate): New function.
22080 (arm_output_iwmmxt_tinsr): Likewise.
22081 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
22082 (arm_output_iwmmxt_tinsr): Likewise.
22083 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
22084 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
22085 (rorv4hi3, rorv2si3, rordi3): Likewise.
22086 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
22087 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
22088 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
22089 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
22090 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
22091 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
22092 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
22093 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
22094 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
22095 (ror<mode>3, ror<mode>3_di): Likewise.
22096 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
22097 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
22098 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
22099 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
22100 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
22101 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
22102 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
22103 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
22104 (All instruction patterns): Add wtype attribute.
22105 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
22106 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
22107 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
22108 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
22109 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
22110 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
22111 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
22112 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
22113 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
22114 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
22115 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
22116 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
22117 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
22118 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
22119 (iwmmxt2.md): Include.
22120 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
22121 (TARGET_IWMMXT2): New define.
22122 (TARGET_REALLY_IWMMXT2): Likewise.
22123 (arm_arch_iwmmxt2): Declare.
22124 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
22125 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
22126 Use C name-mangling for intrinsics.
22127 (__v8qi): Redefine.
22128 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
22129 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
22130 (_m_from_int): Likewise.
22131 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
22132 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
22133 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
22134 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
22135 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
22136 (_mm_tbcst_pi32): Likewise.
22137 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
22138 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
22139 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
22140 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
22141 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
22142 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
22143 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
22144 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
22145 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
22146 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
22147 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
22148 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
22149 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
22150 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
22151 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
22152 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
22153 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
22154 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
22155 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
22156 (_m_to_int): New define.
22157 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
22158 * config/arm/arm-arches.def (iwmmxt2): Likewise.
22159 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
22161 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
22162 (arch): Add "iwmmxt2".
22163 (arch_enabled): Handle "iwmmxt2".
22164 (wtype): New attribute.
22165 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
22166 (UNSPEC_WALIGNI): New unspec.
22167 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
22168 * config/arm/iterators.md (VMMX2): New mode_iterator.
22169 * config/arm/marvell-f-iwmmxt.md: New file.
22170 * config/arm/iwmmxt2.md: New file.
22172 2012-06-12 Jakub Jelinek <jakub@redhat.com>
22177 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
22178 if type isn't complete.
22180 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
22182 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
22184 2012-06-12 Richard Henderson <rth@redhat.com>
22186 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
22187 iterator instead of INT.
22189 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
22191 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
22192 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
22194 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
22195 (tree_ssa_phiopt): Call gate_hoist_loads.
22196 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
22197 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
22198 hoist_adjacent_loads.
22199 (local_mem_dependence): New function.
22200 (hoist_adjacent_loads): Likewise.
22201 (gate_hoist_loads): Likewise.
22202 * common.opt (fhoist-adjacent-loads): New switch.
22203 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
22205 2012-06-12 Michael Matz <matz@suse.de>
22207 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
22208 (nonoverlapping_memrefs_p): Don't call it here ...
22209 (true_dependence_1): ... but here.
22211 2012-06-12 Richard Guenther <rguenther@suse.de>
22213 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
22214 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
22215 and MEM_SIZE only refines it. Reflect that and be less conservative
22216 if either of the latter is not known.
22218 2012-06-12 Jakub Jelinek <jakub@redhat.com>
22220 PR rtl-optimization/53589
22221 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
22222 discovery even when e->dest != target. If any LABEL_REF points
22223 to e->dest label, redirect it to target's label.
22225 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
22227 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
22228 condition for generating REG_FRAME_RELATED_EXPR note.
22229 (pop): Add code for generating REG_CFA_RESTORE,
22230 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
22231 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
22232 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
22234 2012-06-11 Richard Henderson <rth@redhat.com>
22236 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
22237 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
22239 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
22241 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
22243 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
22244 Mention that this hook needs to be defined for native TLS.
22245 * doc/tm.texi: Regenerate.
22247 2012-06-11 Mike Stump <mikestump@comcast.net>
22249 * emit-rtl.c (init_emit_once): Iterate through the
22250 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
22251 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
22252 all the MIN_MODE_PARTIAL_INT modes anymore.
22254 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
22256 * config/mips/mips-tables.opt (xlp): Fix merge typo.
22258 2012-06-11 Roland McGrath <mcgrathr@google.com>
22260 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
22261 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
22262 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
22265 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
22268 * config/sh/sh.md (fmasf4): New expander.
22269 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
22270 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
22271 * config/sh/sh.opt (mfused-madd): Remove.
22272 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
22273 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
22274 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
22276 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
22279 2012-06-11 Richard Henderson <rth@redhat.com>
22281 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
22283 2012-06-11 Richard Guenther <rguenther@suse.de>
22285 PR middle-end/53470
22286 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
22287 replace it with the first non-BLOCK context.
22289 2012-06-11 Richard Guenther <rguenther@suse.de>
22291 * alias.c (aliases_everything_p): Remove.
22292 (DIFFERENT_ALIAS_SETS_P): Likewise.
22293 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
22294 Do not use aliases_everything_p or special-case ANDs. Do not
22295 special-case BLKmode moves.
22296 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
22299 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
22301 Fix CRIS build errors with --enable-build-with-cxx.
22302 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
22303 variable "and" to "andop".
22304 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
22305 temporary variable for memory model, passing C++-type-correct
22306 parameter type to expand_mem_thread_fence.
22307 ("atomic_compare_and_swap<mode>"): Ditto.
22309 2012-06-09 Richard Henderson <rth@redhat.com>
22312 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
22313 (pass_jump): Rename from pass_jump2.
22314 (execute_jump2, pass_jump2): New.
22315 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
22316 perform cfg cleanup here. Move the test of PUSH_ROUNDING
22317 and ACCUMULATE_OUTGOING_ARGS test...
22318 (gate_handle_stack_adjustments): ... here.
22319 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
22320 Place new pass_jump2 after pass_stack_adjustments.
22321 * tree-pass.h (pass_jump): Declare.
22323 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
22325 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
22328 2012-06-08 Richard Henderson <rth@redhat.com>
22331 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
22332 note to a clobber insn when no other insn is available.
22334 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
22336 * config/avr/avr.c (avr_case_values_threshold): Return 7.
22338 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
22340 * genhooks.c (main): Set progname.
22341 (emit_documentation): Remove variable found_start, always bail out
22342 when a place is missing.
22343 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
22345 2012-06-07 Jakub Jelinek <jakub@redhat.com>
22347 PR middle-end/53580
22348 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
22349 call walk_gimple_seq_mod instead of walk_gimple_seq.
22350 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
22351 scan_omp_for, scan_omp_sections, scan_omp_single,
22352 execute_lower_omp): Adjust callers.
22353 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
22354 returns false, replace stmt with GIMPLE_NOP.
22355 (check_omp_nesting_restrictions): Instead of issuing warnings,
22356 issue errors and return false if any errors were reported.
22358 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
22360 * doc/invoke.texi (fconserve-space): Remove documentation.
22362 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
22364 * config/rs6000/rs6000-tables.opt: Regenerated.
22366 2012-06-06 Richard Guenther <rguenther@suse.de>
22368 PR tree-optimization/53081
22369 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
22370 (adjacent_dr_p): ... this and make it work for reads, too.
22371 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
22372 (struct partition_s): Change main_stmt to main_dr, add
22373 secondary_dr member.
22374 (build_size_arg_loc): Change to date data-reference and not
22376 (build_addr_arg_loc): New function split out from ...
22377 (generate_memset_builtin): ... here. Use it and simplify.
22378 (generate_memcpy_builtin): New function.
22379 (generate_code_for_partition): Adjust.
22380 (classify_partition): Streamline pattern detection. Detect memcpy.
22381 (ldist_gen): Adjust.
22382 (tree_loop_distribution): Adjust seed statements for memcpy
22385 2012-06-06 Matt Turner <mattst88@gmail.com>
22387 * config/arm/mmintrin.h (_mm_empty): New.
22390 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
22392 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
22393 * common.opt (fsched-pressure-algorithm=): Remove.
22394 * flag-types.h (sched_pressure_algorithm): Move to...
22395 * sched-int.h (sched_pressure_algorithm): ...here.
22396 * params.def (sched-pressure-algorithm): New param.
22397 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
22398 * common/config/s390/s390-common.c (s390_option_optimization_table):
22399 Remove OPT_fsched_pressure_algorithm_ entry.
22400 * config/s390/s390.c (s390_option_override): Set a default value for
22401 PARAM_SCHED_PRESSURE_ALGORITHM.
22403 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
22406 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
22407 doing an unsigned compare, make sure the second argument is not a
22409 (rs6000_emit_cmove): Don't allow floating point comparisons when
22410 generating ISEL moves.
22412 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
22414 * config/rs6000/e5500.md: New file.
22415 * config/rs6000/e6500.md: New file.
22416 * config/rs6000/rs6000.c (processor_costs): Add new costs for
22418 (rs6000_option_override_internal): Altivec and Spe options not
22419 allowed with e5500. Spe options not allowed with e6500. Increase
22420 move inline limit for e5500 and e6500. Disable string instructions
22421 for e5500 and e6500. Enable branch targets alignment for e5500 and
22422 e6500. Initialize rs6000_cost for e5500 and e6500.
22423 (rs6000_adjust_cost): Add extra scheduling cycles between compare
22424 and brnach for e5500 and e6500.
22425 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
22426 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
22428 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
22429 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
22431 Include e5500.md and e6500.md.
22432 * config/rs6000/rs6000-opt.h (processor_type): Add
22433 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
22434 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
22435 (powerpc*-*-*): Add new cores e5500, e6500.
22436 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
22438 2012-06-05 Richard Guenther <rguenther@suse.de>
22440 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
22442 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
22445 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
22446 is used for x86_64-*-*.
22448 2012-06-05 Richard Guenther <rguenther@suse.de>
22450 PR tree-optimization/30442
22451 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
22452 vectorization stop analysis at the first stmt we cannot compute
22453 a data-reference for instead of giving up completely.
22455 2012-06-05 Richard Guenther <rguenther@suse.de>
22457 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
22458 (partition_alloc): Initialize it.
22459 (partition_has_writes): New function.
22460 (rdg_flag_uses): Adjust.
22461 (rdg_flag_vertex): Likewise.
22462 (rdg_flag_vertex_and_dependent): Likewise.
22463 (rdg_flag_loop_exits): Likewise.
22464 (build_rdg_partition_for_component): Likewise.
22465 (rdg_build_partitions): Likewise.
22467 2012-06-05 Richard Guenther <rguenther@suse.de>
22469 PR tree-optimization/53081
22470 * tree-loop-distribution.c (generate_memset_builtin): Handle all
22471 kinds of byte-sized stores.
22472 (classify_partition): Likewise.
22473 (tree_loop_distribution): Adjust seed statements used for
22474 !flag_tree_loop_distribution.
22476 2012-06-05 Alan Modra <amodra@gmail.com>
22478 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
22479 (rs6000_emit_prologue): Ensure register used for inline saves
22480 of vector regs is not the static chain register. Revise comment.
22482 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
22484 * doc/md.texi (Standard Pattern Names For Generation): Document
22487 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
22490 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
22492 2012-06-04 Jason Merrill <jason@redhat.com>
22494 * dwarf2out.c (is_unit_die): New.
22495 (copy_declaration_context, copy_ancestor_tree): Use it.
22496 (copy_decls_walk): Likewise.
22498 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
22501 * doc/invoke.texi (Wenum-compare): Update documentation.
22503 2012-06-04 Dodji Seketeli <dodji@redhat.com>
22505 PR preprocessor/53463
22506 * parser.c (cp_parser_assignment_expression): Use the location
22507 for the '=' as the default location for the expression.
22509 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
22512 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
22514 (altivec_stvlxl): Ditto.
22515 (altivec_stvrx): Ditto.
22516 (altivec_stvrxl): Ditto.
22518 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
22520 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
22521 (ira_uniform_class_p): New macro.
22523 * ira.c (setup_uniform_class_p): New function.
22524 (setup_allocno_and_important_classes): Call the function.
22525 (print_unform_and_important_classes): New function.
22526 (print_classes): Rename to print_translated_classes.
22527 (ira_debug_allocno_classes): Add call of
22528 print_unform_and_important_classes.
22530 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
22531 classes instead of pressure classes.
22533 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
22535 PR middle-end/47530
22536 * trans-mem.c (expand_block_edges): Do not skip the first
22537 statement when resetting the BB.
22539 2012-06-04 Richard Guenther <rguenther@suse.de>
22541 * tree-data-ref.c (stores_from_loop): Remove.
22542 (stmt_with_adjacent_zero_store_dr_p): Likewise.
22543 (stores_zero_from_loop): Likewise.
22544 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
22545 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
22546 (adjacent_store_dr_p): New function.
22547 * tree-loop-distribution.c (generate_memset_builtin): Pass
22548 the RDG, use the already available data-reference.
22549 (generate_code_for_partition): Pass down RDG.
22550 (classify_partition): Inline parts of the former
22551 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
22552 (ldist_gen): Remember if there was any detected builtin and
22553 do less work if not and flag_tree_loop_distribution is not set.
22554 (tree_loop_distribution): Inline and fuse stores_from_loop
22555 and stores_zero_from_loop here.
22557 2012-06-04 Richard Guenther <rguenther@suse.de>
22559 PR middle-end/53471
22560 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
22561 create new assembler names.
22563 2012-06-04 Richard Guenther <rguenther@suse.de>
22565 * tree-data-ref.c (struct rdg_vertex_info): Remove.
22566 (rdg_vertex_for_stmt): Simplify using gimple_uid.
22567 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
22568 hashtable. Record stmt data-references.
22569 (hash_stmt_vertex_info): Remove.
22570 (eq_stmt_vertex_info): Likewise.
22571 (hash_stmt_vertex_del): Likewise.
22572 (build_empty_rdg): Simplify.
22573 (build_rdg): Adjust.
22574 (free_rdg): Likewise.
22575 (ref_base_address): Remove.
22576 (have_similar_memory_accesses): Likewise.
22577 * tree-data-ref.h (create_rdg_vertices): Remove.
22578 (struct rdg_vertex): Add datarefs member.
22579 (RDGV_DATAREFS): New define.
22580 (RDG_DATAREFS): Likewise.
22581 (have_similar_memory_accesses): Remove.
22582 (rdg_has_similar_memory_accesses): Likewise.
22583 * tree-loop-distribution.c (ref_base_address): Re-implement here.
22584 (similar_memory_accesses): Re-implement using existing data-references.
22585 (tree_loop_distribution): Initialize stmt uids for the stmt to
22587 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
22588 access stmt vinfo for stmts in loop.
22590 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
22593 * config/m68k/m68k.md ("tablejump"): Fix check for
22594 CASE_VECTOR_PC_RELATIVE.
22596 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
22598 * output.h (merge_weak, assemble_alias,
22599 initializer_constant_valid_p,
22600 initializer_constant_valid_for_bitfield_p): Move protos from here...
22601 * tree.h: ... to here.
22602 * cgraphclones.c: Do not include output.h.
22603 * gimplify.c: Likewise.
22604 * reload.c: Likewise.
22605 * recog.c: Likewise.
22606 * tree-ssa-loop-ivopts.c: Likewise.
22607 * tree-switch-conversion.c: Likewise.
22608 * c-parser.c: Likewise.
22609 * c-typeck.c: Likewise.
22610 * Makefile.in: Fix dependencies.
22612 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
22615 * config/avr/avr-stdint.h: New file.
22616 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
22619 2012-06-04 Jakub Jelinek <jakub@redhat.com>
22621 PR tree-optimization/53550
22622 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
22623 is POINTER_TYPE_P, use sizetype as step type instead of type.
22625 2012-06-04 Richard Guenther <rguenther@suse.de>
22627 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
22628 (ref_base_address_1): Likewise.
22629 (remove_similar_memory_refs): Likewise.
22630 * tree-data-ref.h (remove_similar_memory_refs): Remove.
22631 * tree-loop-distribution.c (classify_partition): Do not classify
22632 as builtin if -ftree-loop-distribute-patterns is not enabled.
22633 (fuse_partitions_with_similar_memory_accesses): Inline ...
22634 (ldist_gen): ... here. Fuse all non-builtin partitions if
22635 -ftree-loop-distribution is not enabled. Properly return
22636 the number of created partitions. Do not update SSA form here but ...
22637 (tree_loop_distribution): ... once here for the whole function.
22638 Only walk innermost loops, constrain loops we consider here
22639 further. Do not call remove_similar_memory_refs.
22640 (distribute_loop): Do not check number of loop nodes here.
22642 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
22644 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
22646 2012-06-03 Martin Jambor <mjambor@suse.cz>
22648 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
22649 (ipa_get_jf_known_type_base_type): Likewise.
22650 (ipa_get_jf_known_type_component_type): Likewise.
22651 (ipa_get_jf_constant): Likewise.
22652 (ipa_get_jf_pass_through_formal_id): Likewise.
22653 (ipa_get_jf_pass_through_operation): Likewise.
22654 (ipa_get_jf_ancestor_offset): Likewise.
22655 (ipa_get_jf_ancestor_type): Likewise.
22656 (ipa_get_jf_ancestor_formal_id): Likewise.
22657 (ipa_get_jf_member_ptr_pfn): Likewise.
22658 * ipa-prop.c (ipa_set_jf_known_type): New function.
22659 (ipa_set_jf_constant): Likewise.
22660 (ipa_set_jf_simple_pass_through): Likewise.
22661 (ipa_set_jf_arith_pass_through): Likewise.
22662 (ipa_set_ancestor_jf): Likewise.
22663 (fill_member_ptr_cst_jump_function): Moved up and renamed to
22664 ipa_set_jf_member_ptr_cst.
22665 (detect_type_change_1): Use the new jump function creation functions.
22666 (compute_complex_assign_jump_func): Likewise.
22667 (compute_complex_ancestor_jump_func): Likewise.
22668 (compute_known_type_jump_func): Likewise.
22669 (compute_scalar_jump_functions): Likewise.
22670 (compute_pass_through_member_ptrs): Likewise.
22671 (determine_cst_member_ptr): Likewise.
22672 (combine_known_type_and_ancestor_jfs): Likewise.
22673 (try_make_edge_direct_simple_call): Likewise.
22674 (try_make_edge_direct_virtual_call): Likewise.
22675 (update_indirect_edges_after_inlining): Likewise.
22676 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
22677 access functions. Incorporat NOP_EXPR and BINFO handling from its
22679 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
22680 which was in its callers.
22681 (ipa_value_from_jfunc): Use jump function access functions. Some
22682 functionality moved to functions above.
22683 (propagate_vals_accross_ancestor): Likewise.
22684 (propagate_vals_accross_pass_through): Use jump function access
22686 (propagate_accross_jump_function): Likewise.
22687 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
22689 (inline_merge_summary): Likewise.
22691 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22693 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
22694 * config/pa/pa.c (pa_attr_length_millicode_call): Use
22695 MAX_PCREL17F_OFFSET instead of fixed offset.
22696 (pa_attr_length_call): Likewise.
22697 (pa_attr_length_indirect_call): Likewise.
22699 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
22702 * config/sh/sh.opt (mfsca, mfsrra): New options.
22703 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
22705 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
22706 (sinssf2, cossf2): Fold expanders to ...
22707 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
22708 TARGET_FSCA condition.
22709 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
22711 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
22712 -mno-fsca, -mfsrra, -mno-fsrra.
22714 2012-06-03 Matt Turner <mattst88@gmail.com>
22716 * config/mips/4600.md (r4700_imul_si): New.
22717 (r4700_imul_di): New.
22718 (r4700_fmul_single): New.
22719 (r4700_fmul_double): New.
22720 * config/mips/mips-cpus.def: Add r4700.
22721 * config/mips/mips.c: Likewise.
22722 * config/mips/mips.md: Likewise.
22723 * config/mips/mips-tables.opt: Regenerate.
22725 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
22727 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
22728 new function sparc_initial_elimination_offset.
22729 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
22731 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
22734 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
22736 * expmed.c (expand_mult, choose_multiplier): Change
22737 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
22738 * expr.c (convert_modes): Likewise.
22739 * explow.c (plus_constant): Likewise.
22740 * fixed-value.c (fixed_saturate1, fixed_saturate2)
22741 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
22742 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
22743 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
22744 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
22745 (do_fixed_shift, fixed_convert, fixed_convert)
22746 (fixed_convert_from_int, fixed_convert_from_int)
22747 (fixed_convert_from_real): Likewise.
22748 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
22749 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
22750 * varasm.c (output_constructor_bitfield): Likewise.
22751 * tree-vrp.c (register_edge_assert_for_2): Likewise.
22752 * double-int.c (rshift_double, lshift_double): Likewise.
22753 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
22755 * simplify-rtx.c (mode_signbit_p)
22756 (simplify_const_unary_operation, simplify_binary_operation_1)
22757 (simplify_immed_subreg): Likewise.
22758 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
22759 * tree-vect-generic.c (build_replicated_const): Likewise.
22760 * dbxout.c (stabstr_O): Likewise.
22761 * emit-rtl.c (immed_double_int_const, immed_double_const)
22762 (gen_lowpart_common, init_emit_once): Likewise.
22763 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
22764 (widest_int_cst_value, upper_bound_in_type): Likewise.
22765 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
22766 (fixup_unsigned_type): Likewise.
22767 * real.c (real_to_integer2, real_from_integer): Likewise.
22768 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
22769 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
22771 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
22773 PR middle-end/53501
22774 * fold-const.c (fold_binary_loc): Refine previous change.
22776 2012-06-01 Olivier Hainque <hainque@adacore.com>
22778 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
22779 the "do {" part of the do-while(0) loop.
22781 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22783 * config/i386/i386.c (x86_sched_reorder): New function.
22784 Added new function x86_sched_reorder.
22786 2012-06-01 Richard Guenther <rguenther@suse.de>
22788 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
22790 (classify_partition): Likewise.
22792 2012-06-01 Richard Guenther <rguenther@suse.de>
22794 * tree-loop-distribution.c (enum partition_kind): New enum.
22795 (struct partition_s): Add kind and main_stmt members.
22796 (partition_alloc): Initialize kind to PKIND_NORMAL.
22797 (partition_builtin_p): New function.
22798 (copy_loop_before): Remove failure path and assert instead.
22799 (generate_loops_for_partition): Likewise.
22800 (generate_memset_zero): Fold into ...
22801 (generate_memset_builtin): ... this.
22802 (classify_partition): New function with code from
22803 can_generate_builtin and generate_builtin.
22804 (generate_builtin): Remove.
22805 (can_generate_builtin): Likewise.
22806 (fuse_partitions_with_similar_memory_accesses): Call
22807 partition_builtin_p instead of can_generate_builtin.
22808 (rdg_build_partitions): Do not call
22809 fuse_partitions_with_similar_memory_accesses here...
22810 (ldist_gen): ... but here after classifying all partitions.
22811 Remove failure path of generate_code_for_partition.
22812 (generate_code_for_partition): Generate code according
22813 to partition classification.
22815 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
22816 Jonathan Wakely <jwakely.gcc@gmail.com>
22819 * doc/invoke.texi (Warning Options): Explain purpose and differences
22820 between -Wmissing-prototypes and -Wmissing-declarations.
22822 2012-06-01 Christian Bruel <christian.bruel@st.com>
22824 * gcc.c (save_switch): Add user_p parameter.
22825 (read_specs): Likewise.
22826 (set_specs): Likewise.
22827 (validate_switches): Likewise.
22828 (validate_switches_from_spec): Likewise.
22829 (validate_all_switches): Pass on user_p parameter.
22830 (struct spec_list): Add user_p field.
22831 (struct switchstr): Add known field.
22832 (save_switch): Add known parameter.
22833 (INIT_STATIC_SPEC): Initialize user_p;
22834 (driver_unknown_option_callbac): call save_switch if
22835 OPT_SPECIAL_unknown.
22836 (driver_handle_option): Propagate OPT_specs.
22837 (do_spec_1): Set validated only if known.
22838 (check_live_switch): Likewise.
22839 (validate_switches): Set validated if known or user_spec.
22841 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
22843 Add CRIS atomic patterns for 1, 2, and 4 bytes.
22844 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
22845 * config/cris/cris-protos.h: Declare it.
22846 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
22847 (TARGET_DEFAULT): Add alignment by 32.
22848 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
22849 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
22850 TARGET_CPU_DEFAULT == 32.
22851 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
22852 * config/cris/cris.md: Include sync.md. Avoid allocating specific
22853 numbers by replacing the define_constants for all UNSPECs with the
22854 equivalent define_c_enum construct.
22855 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
22856 * config/cris/sync.md: New file.
22858 2012-05-31 Matt Turner <mattst88@gmail.com>
22860 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
22861 (r4600_imul_di): New.
22862 (r4600_idiv_si): Rename from r4600_idiv.
22863 (r4600_idiv_di): New.
22865 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
22867 * output.h (__gcc_host_wide_int__): Move to hwint.h.
22868 (decl_default_tls_model): Move to tree.h
22869 (dump_file): Move to system.h.
22870 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
22871 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
22872 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
22873 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
22874 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
22875 dbxout_stab_value_internal_label,
22876 dbxout_stab_value_internal_label_diff): Move from here ...
22877 * dbxout.h: ... to here.
22878 * system.h (dump_file): Moved here from output.h.
22879 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
22880 * tree.h (decl_default_tls_model): Moved here from output.h.
22881 * varasm.c (default_stabs_asm_out_destructor,
22882 default_stabs_asm_out_constructor): Move from here ...
22883 * dbxout.c: ... to here.
22885 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
22887 * collect2.h (dump_file): Rename to dump_ld_file.
22888 * collect2.c: Likewise.
22889 * tlink.c: Likewise.
22891 * alias.c: Do not include output.h.
22892 * auto-inc-dec.c: Likewise.
22893 * bt-load.c: Likewise.
22894 * caller-save.c: Likewise.
22896 * cfgbuild.c: Likewise.
22897 * cfgcleanup.c: Likewise.
22898 * cfglayout.c: Likewise.
22899 * cfgloop.c: Likewise.
22900 * cfgloopanal.c: Likewise.
22901 * cfgloopmanip.c: Likewise.
22902 * cfgrtl.c: Likewise.
22903 * cgraph.c: Likewise.
22904 * cgraphclones.c: Likewise.
22905 * combine-stack-adj.c: Likewise.
22906 * combine.c: Likewise.
22907 * cprop.c: Likewise.
22909 * cselib.c: Likewise.
22910 * dbgcnt.c: Likewise.
22911 * df-problems.c: Likewise.
22912 * df-scan.c: Likewise.
22913 * dojump.c: Likewise.
22914 * fwprop.c: Likewise.
22915 * gcse.c: Likewise.
22916 * graph.c: Likewise.
22917 * haifa-sched.c: Likewise.
22918 * hw-doloop.c: Likewise.
22919 * ipa-inline-transform.c: Likewise.
22920 * ipa-pure-const.c: Likewise.
22921 * ipa-reference.c: Likewise.
22922 * ipa-utils.c: Likewise.
22923 * ira-build.c: Likewise.
22924 * ira-emit.c: Likewise.
22926 * loop-doloop.c: Likewise.
22927 * loop-invariant.c: Likewise.
22928 * loop-iv.c: Likewise.
22929 * loop-unroll.c: Likewise.
22930 * loop-unswitch.c: Likewise.
22931 * lto-cgraph.c: Likewise.
22932 * lto-section-in.c: Likewise.
22933 * lto-streamer-in.c: Likewise.
22935 * mode-switching.c: Likewise.
22936 * postreload-gcse.c: Likewise.
22937 * postreload.c: Likewise.
22938 * predict.c: Likewise.
22939 * profile.c: Likewise.
22941 * reg-stack.c: Likewise.
22942 * regcprop.c: Likewise.
22943 * regmove.c: Likewise.
22944 * regstat.c: Likewise.
22945 * reload1.c: Likewise.
22946 * sched-ebb.c: Likewise.
22947 * sel-sched-dump.c: Likewise.
22948 * simplify-rtx.c: Likewise.
22949 * stor-layout.c: Likewise.
22950 * store-motion.c: Likewise.
22951 * tracer.c: Likewise.
22952 * tree-affine.c: Likewise.
22953 * tree-cfg.c: Likewise.
22954 * tree-cfgcleanup.c: Likewise.
22955 * tree-dfa.c: Likewise.
22956 * tree-into-ssa.c: Likewise.
22957 * tree-nomudflap.c: Likewise.
22958 * tree-optimize.c: Likewise.
22959 * tree-pretty-print.c: Likewise.
22960 * tree-profile.c: Likewise.
22961 * tree-ssa-address.c: Likewise.
22962 * tree-ssa-ccp.c: Likewise.
22963 * tree-ssa-copy.c: Likewise.
22964 * tree-ssa-dom.c: Likewise.
22965 * tree-ssa-loop-ch.c: Likewise.
22966 * tree-ssa-loop-im.c: Likewise.
22967 * tree-ssa-loop-manip.c: Likewise.
22968 * tree-ssa-loop-niter.c: Likewise.
22969 * tree-ssa-loop-prefetch.c: Likewise.
22970 * tree-ssa-loop-unswitch.c: Likewise.
22971 * tree-ssa-loop.c: Likewise.
22972 * tree-ssa-propagate.c: Likewise.
22973 * tree-ssa-structalias.c: Likewise.
22974 * tree-ssa-tail-merge.c: Likewise.
22975 * tree-ssa-threadedge.c: Likewise.
22976 * tree-ssa-threadupdate.c: Likewise.
22977 * tree-ssa-uncprop.c: Likewise.
22978 * tree-ssa-uninit.c: Likewise.
22979 * tree-ssa.c: Likewise.
22980 * value-prof.c: Likewise.
22981 * var-tracking.c: Likewise.
22984 * config/m32r/m32r.c: Include dbxout.h.
22985 * config/pa/pa.c: Likewise.
22986 * config/rs6000/rs6000.c: Likewise.
22988 * Makefile.in: Fix dependencies.
22989 * config/rs6000/t-rs5000: Likewise.
22991 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
22993 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
22994 * gimple.h (block_in_transaction): Check for flag_tm.
22996 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
22998 PR tree-optimization/52558
22999 * cfg.c (alloc_aux_for_edge): Fix comment.
23000 (alloc_aux_for_edge): Remove static.
23001 * basic-block.h (alloc_aux_for_edge): Protoize.
23002 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
23003 (execute_sm_if_changed_flag): New.
23004 (execute_sm_if_changed_flag_set): New.
23005 (execute_sm): Do not generate data races unless requested.
23006 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
23007 (tree_ssa_lim_finalize): Call free_aux_for_edges.
23008 * gimple.h (block_in_transaction): New.
23009 (gimple_in_transaction): Use block_in_transaction.
23011 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
23014 * config/avr/avr.opt (-msp8): Document it.
23015 * doc/invoke.texi (AVR Options): Ditto. And document related
23018 2012-05-31 Diego Novillo <dnovillo@google.com>
23020 * configure.ac (CXX_FOR_BUILD): Define and substitute.
23021 (BUILD_CXXFLAGS): Define and substitute.
23022 * Makefile.in (BUILD_CXXFLAGS): Define.
23023 (CXX_FOR_BUILD): Define.
23024 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
23025 (LINKER_FOR_BUILD): Likewise.
23026 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
23027 (BUILD_LINKERFLAGS): Likewise.
23028 * configure: Regenerate.
23030 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
23032 * Makefile.in: Fix many dependencies.
23033 * tree-profile.c: Don't include regs.h.
23034 * tree-vectorizer.c: Don't include cfglayout.h.
23035 * tree-vect-stmts.c: Likewise.
23036 * tree-vect-slp.c: Likewise.
23037 * tree-vect-loop.c: Likewise.
23038 * reg-stack.c: Likewise.
23039 * tree-ssa-loop-manip.c: Likewise.
23040 * toplev.c: Likewise.
23041 * varasm.c: Don't include cfglayout.h, basic-block.h,
23042 and tree-iterator.h.
23043 * tree-cfgcleanup.c: Don't include cfglayout.h.
23044 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
23045 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
23046 * cgraphclones.c: Don't include plugin.h.
23048 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
23050 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
23051 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
23052 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
23054 2012-05-31 Richard Guenther <rguenther@suse.de>
23056 * tree-loop-distribution.c (struct partition_s): New struct,
23057 typedef and vector type.
23058 (partition_alloc, partition_free): New functions.
23059 (generate_loops_for_partition, generate_builtin,
23060 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
23061 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
23062 build_rdg_partition_for_component, can_generate_builtin,
23063 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
23064 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
23065 number_of_rw_in_partition, partition_contains_all_rw,
23066 ldist_gen): Use partition_t instead of bitmap.
23068 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
23070 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
23071 * doc/avr-mmcu.texi: Regenerate.
23073 2012-05-31 Richard Guenther <rguenther@suse.de>
23075 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
23076 Use FOR_EACH_SSA_DEF_OPERAND.
23077 (generate_builtin): Adjust.
23078 (stmt_generated_in_another_partition): Remove.
23079 (add_scalar_computations_to_partition): Likewise.
23080 (rdg_build_partitions): Do not call
23081 add_scalar_computations_to_partition.
23083 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
23085 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
23086 double ints throughout.
23087 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
23088 Check that the position of the field is representable as an integer.
23090 2012-05-31 Richard Guenther <rguenther@suse.de>
23092 * tree-data-ref.c (dr_analyze_innermost): Properly convert
23093 the MEM_REF offset to sizetype.
23095 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
23097 * doc/invoke.texi (AVR Options): Fix typos.
23099 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
23101 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
23102 and -mcpu= options.
23103 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
23104 non-v32 into --march=v0_v10.
23106 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
23108 * ira-int.h (target_ira_int): Rename x_move_cost to
23109 x_ira_register_move_cost, x_may_move_in_cost to
23110 x_ira_may_move_in_cost and x_may_move_out_cost to
23111 x_ira_may_move_out_cost. Delete the old fields with
23112 those names and also x_ira_max_register_move_cost,
23113 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
23114 (move_cost, may_move_in_cost, may_move_out_cost)
23115 (ira_max_register_move_cost, ira_max_may_move_in_cost)
23116 (ira_max_may_move_out_cost): Delete.
23117 * ira.c (init_move_cost): Rename to...
23118 (ira_init_register_move_cost): ...this, deleting the old
23119 function with that name. Apply above variable renamings.
23120 Retain asserts for null fields.
23121 (ira_init_once): Don't initialize register move costs here.
23122 (free_register_move_costs): Apply above variable renamings.
23123 Remove code for deleted fields.
23125 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
23127 * ira.c (init_move_cost): Adjust choice of subclasses to match
23128 the current ira_init_register_move_cost choice. Use
23129 ira_class_subset_p instead of reg_class_subset_p.
23130 (ira_init_register_move_cost): Assert that move_cost,
23131 may_move_in_cost and may_move_out_cost already hold the desired
23132 values for their ira_* equivalents. For the latter two,
23133 ignore classes that can't store a register of the given mode.
23135 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
23137 * ira.c (setup_allocno_and_important_classes): Use
23138 ira_class_hard_regs_num to check whether a class has any
23139 allocatable registers.
23140 (ira_init_register_move_cost): Likewise.
23142 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
23144 * ira.c (init_move_cost): Adjust local variable names to match
23145 file conventions. Use ira_assert instead of gcc_assert.
23147 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
23149 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
23150 Move these definitions and associated target_globals fields to...
23151 * ira-int.h: ...here.
23152 * rtl.h (init_move_cost): Delete.
23153 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
23154 * ira.c: ...here, making the latter static.
23156 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
23158 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
23159 and ira_register_move_cost instead of init_move_cost and move_cost.
23161 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
23163 * ira.h (target_ira): Delete x_ira_available_class_regs.
23164 (ira_available_class_regs): Delete.
23165 * ira.c (setup_available_class_regs): Delete.
23166 (setup_alloc_classes): Don't call it.
23167 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
23168 ira_available_class_regs.
23169 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
23170 (model_spill_cost): Likewise.
23171 * ira-build.c (low_pressure_loop_node_p): Likewise.
23172 * ira-color.c (color_pass): Likewise.
23173 * ira-emit.c (change_loop): Likewise.
23174 * ira-lives.c (inc_register_pressure, dec_register_pressure)
23175 (single_reg_class, ira_implicitly_set_insn_hard_regs)
23176 (process_bb_node_lives): Likewise.
23177 * loop-invariant.c (gain_for_invariant): Likewise.
23179 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23182 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
23183 (pa_section_type_flags): New.
23184 (pa_legitimate_constant_p): Revert previous change.
23186 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
23188 * ira.c (allocate_initial_values): Make static.
23190 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
23192 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
23193 Generate tls_initial_exec_64_sun only when !TARGET_X32.
23195 2012-05-30 Richard Guenther <rguenther@suse.de>
23197 PR middle-end/53501
23198 * fold-const.c (fold_binary_loc): Make sure to call
23199 fold_plusminus_mult_expr with the original sign of operands.
23201 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
23203 * Makefile.in: Fix many dependencies.
23204 (DWARF2_H): Depend on dwarf2.def.
23205 (RTL_ERROR_H): Depend on rtl-error.h.
23206 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
23207 all gimple-pretty-print.h and tree-pretty-print.h references.
23209 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
23211 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
23214 2012-05-30 Richard Guenther <rguenther@suse.de>
23216 PR middle-end/53522
23217 * tree-emutls.c (gen_emutls_addr): Do not add globals to
23220 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
23222 * explow.c (probe_stack_range): Restore simple control flow and stop
23223 again when the probe cannot be generated if HAVE_check_stack.
23225 2012-05-30 Jakub Jelinek <jakub@redhat.com>
23227 PR rtl-optimization/53519
23228 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
23229 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
23231 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23233 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
23235 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
23238 * doc/tm.texi: Update.
23239 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
23240 * target.def (force_at_comp_dir): New hook.
23241 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
23242 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
23244 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
23246 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
23248 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
23249 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
23251 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
23254 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
23255 flag_unsafe_math_optimizations is set.
23256 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
23257 Update description of -mfused-madd.
23259 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
23262 * config/sh/predicates.md (atomic_arith_operand,
23263 atomic_logical_operand): New predicates.
23264 * config/sh/sh.c (sh_option_override): Check atomic options.
23265 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
23266 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
23267 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
23268 UNSUPPORTED_HARD_ATOMIC_CPU.
23269 * config/sh/sync.md: Update description comments.
23270 (I12): New mode iterator.
23271 (fetchop_predicate, fetchop_constraint): New code attributes.
23272 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23273 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23274 atomic_fetch_<fetchop_name>si_hard,
23275 atomic_fetch_<fetchop_name><mode>_hard,
23276 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23277 atomic_<fetchop_name>_fetchsi_hard,
23278 atomic_<fetchop_name>_fetch<mode>_hard,
23279 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23280 atomic_test_and_set_hard): New insns.
23281 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
23282 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
23283 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
23284 atomic_test_and_set_soft): Use same formatting for the first line of
23285 the asm block as in new insns above.
23286 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
23287 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
23288 atomic_test_and_set): Integrate new *_hard insns into expanders.
23289 * config/sh/sh.opt (mhard-atomic): New option.
23290 * doc/invoke.texi (SH Options): Document it.
23292 2012-05-29 Meador Inge <meadori@codesourcery.com>
23294 * c-decl.c (c_push_function_context): Always create a new language
23296 (c_pop_function_context): Clear the language function created in
23297 c_push_function_context.
23299 2012-05-29 Matt Turner <mattst88@gmail.com>
23301 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
23302 (define_bypass "ev6_fcmov"): New.
23304 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
23306 * integrate.c: Remove.
23307 * integrate.h: Remove.
23308 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
23309 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
23310 * config/rs6000/t-rs6000: Likewise
23311 * config/spu/t-spu-elf: Likewise.
23312 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
23313 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
23314 from integrate.h to here.
23315 (initial_value_entry): New prototype.
23316 * reload.h (allocate_initial_values): Remove prototype.
23317 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
23318 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
23320 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
23321 set_decl_abstract_flags, set_block_abstract_flags): Move from
23322 integrate.c to here, the only user.
23323 * expmed.c (extract_fixed_bit_field): Remove outdated comment
23325 * function.c: Don't include integrate.h.
23326 (struct initial_value_pair, struct initial_value_struct,
23327 get_hard_reg_initial_val, has_hard_reg_initial_val,
23328 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
23329 integrate.c to here.
23330 (initial_value_entry): New function.
23331 * genemit.c (main): Don't print integrate.h include line.
23332 * ira.c: Don't include integrate.h.
23333 (allocate_initial_values): Move from integrate.c to here.
23334 (ira): Update allocate_initial_values call.
23335 * tree-inline.c: Don't include integrate.h.
23336 (function_attribute_inlinable_p): Moved from integrate.c to here.
23337 * cfgexpand.c: Don't include integrate.h.
23338 * except.c: Likewise.
23339 * langhooks.c: Likewise.
23340 * passes.c: Likewise.
23341 * toplev.c: Likewise.
23342 * config/frv/frv.c: Likewise.
23343 * config/pa/pa.c: Likewise.
23344 * config/spu/spu.c: Likewise.
23345 * config/epiphany/epiphany.c: Likewise.
23346 * config/mep/mep.c: Likewise.
23347 * config/score/score.c: Likewise.
23348 * config/picochip/picochip.c: Likewise.
23349 * config/sh/sh.c: Likewise.
23350 * config/alpha/alpha.c: Likewise.
23351 * config/microblaze/microblaze.c: Likewise.
23352 * config/mips/mips.c: Likewise.
23353 * config/v850/v850.c: Likewise.
23354 * config/mmix/mmix.c: Likewise.
23355 * config/bfin/bfin.c: Likewise.
23356 * config/arm/arm.c: Likewise.
23357 * config/s390/s390.c: Likewise.
23358 * config/m32r/m32r.c: Likewise.
23359 * config/rs6000/rs6000.c: Likewise.
23360 * config/c6x/c6x.c: Include function.h instead of integrate.h.
23361 * config/tilegx/tilegx.c: Likewise.
23362 * config/tilepro/tilepro.c: Likewise.
23364 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
23366 * config/avr/t-avr (s-avr-mmcu-texi): Call
23367 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
23369 2012-05-29 Michael Matz <matz@suse.de>
23371 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
23372 assign_temp): Remove 'keep' argument.
23373 (mark_temp_addr_taken): Remove prototype.
23374 * tree.h (expand_decl): Remove prototype.
23375 * function.c (struct temp_slot): Remove addr_taken and keep member.
23376 (assign_stack_temp_for_type) Don't initialize above, remove
23378 (assign_stack_temp, assign_temp): Remove keep argument.
23379 (mark_temp_addr_taken): Remove.
23380 (preserve_temp_slots): Remove handling of addr_taken and keep members.
23381 (free_temp_slots): Ditto.
23382 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
23384 * stmt.c (expand_asm_operands): Remove dead code.
23385 (expand_decl): Remove.
23386 * c-decl.c (finish_struct): Don't call expand_decl.
23387 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
23388 and assign_stack_temp.
23389 * calls.c (save_fixed_argument_area, initialize_argument_information,
23390 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
23391 * expmed.c (extract_bit_field_1): Ditto.
23392 * expr.c (emit_group_load_1, emit_group_store,
23393 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
23394 store_field, expand_constructor, expand_cond_expr_using_cmove,
23395 expand_expr_real_2, expand_expr_real_1): Ditto.
23396 * stmt.c (expand_asm_operands, expand_return): Ditto.
23398 * function.c (pop_temp_slots): Call free_temp_slots.
23399 * calls.c (store_one_arg): Don't call preserve_temp_slots or
23401 * expr.c (expand_assignment): Don't call free_temp_slots.
23403 * config/arm/arm.c (neon_expand_vector_init): Ditto.
23404 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
23405 (ix86_expand_vector_extract): Ditto.
23406 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
23407 ia64_expand_movxf_movrf): Ditto.
23408 * config/mips/mips.c (mips_expand_vi_general): Ditto.
23409 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
23410 extendsfdf2): Ditto.
23411 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
23412 rs6000_expand_vector_set, rs6000_expand_vector_extract,
23413 rs6000_allocate_stack_temp): Ditto.
23414 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
23415 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
23416 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
23417 sparc_expand_vector_init): Ditto.
23419 2012-05-29 Michael Matz <matz@suse.de>
23421 * c-tree.h (c_expand_decl): Remove prototype.
23423 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
23425 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
23426 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
23427 COMPOUND_LITERAL_EXPR.
23428 * function.c (expand_function_start): Don't call expand_decl,
23429 instead assert that we have RTL assigned.
23430 * tree-ssa-live.c (remove_unused_locals): Clear
23431 nonlocal_goto_save_area if its backing variable is removed.
23432 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
23434 (expand_decl): Assert that this does nothing.
23435 * calls.c (expand_call): Don't call mark_temp_addr_taken.
23437 2012-05-29 Richard Guenther <rguenther@suse.de>
23439 PR tree-optimization/53516
23440 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
23442 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
23444 2012-05-29 Joseph Myers <joseph@codesourcery.com>
23446 * LANGUAGES: Fix typos.
23447 * Makefile.in: Fix typos.
23448 * alias.c: Fix typos.
23449 * auto-inc-dec.c: Fix typos.
23450 * bb-reorder.c: Fix typos.
23451 * cfgcleanup.c: Fix typos.
23452 * cgraph.c: Fix typos.
23453 * cgraph.h: Fix typos.
23454 * cgraphunit.c: Fix typos.
23455 * collect2-aix.h: Fix typos.
23456 * collect2.c: Fix typos.
23457 * compare-elim.c: Fix typos.
23458 * config/alpha/vms.h: Fix typos.
23459 * config/arm/README-interworking: Fix typos.
23460 * config/arm/arm.c: Fix typos.
23461 * config/arm/iterators.md: Fix typos.
23462 * config/arm/vxworks.h: Fix typos.
23463 * config/avr/avr.c: Fix typos.
23464 * config/avr/avr.h: Fix typos.
23465 * config/avr/avr.md: Fix typos.
23466 * config/avr/builtins.def: Fix typos.
23467 * config/c6x/c6x.c: Fix typos.
23468 * config/cr16/cr16.c: Fix typos.
23469 * config/cr16/cr16.md: Fix typos.
23470 * config/cris/cris.md: Fix typos.
23471 * config/darwin.c: Fix typos.
23472 * config/darwin.opt: Fix typos.
23473 * config/i386/i386-c.c: Fix typos.
23474 * config/i386/i386.c: Fix typos.
23475 * config/ia64/ia64.c: Fix typos.
23476 * config/m68k/cf.md: Fix typos.
23477 * config/mep/mep.c: Fix typos.
23478 * config/microblaze/microblaze.c: Fix typos.
23479 * config/microblaze/microblaze.h: Fix typos.
23480 * config/mn10300/mn10300.c: Fix typos.
23481 * config/mn10300/mn10300.md: Fix typos.
23482 * config/pa/pa.c: Fix typos.
23483 * config/picochip/picochip.h: Fix typos.
23484 * config/rs6000/a2.md: Fix typos.
23485 * config/rs6000/rs6000.c: Fix typos.
23486 * config/rs6000/vector.md: Fix typos.
23487 * config/rx/rx.md: Fix typos.
23488 * config/rx/rx.opt: Fix typos.
23489 * config/s390/2097.md: Fix typos.
23490 * config/s390/s390.c: Fix typos.
23491 * config/s390/s390.h: Fix typos.
23492 * config/sh/sh.c: Fix typos.
23493 * config/sh/sh.md: Fix typos.
23494 * config/sparc/sync.md: Fix typos.
23495 * config/spu/spu.c: Fix typos.
23496 * config/spu/spu.md: Fix typos.
23497 * config/vms/vms.c: Fix typos.
23498 * config/vxworks-dummy.h: Fix typos.
23499 * config/vxworks.h: Fix typos.
23500 * cselib.c: Fix typos.
23501 * df-scan.c: Fix typos.
23503 * doc/extend.texi: Fix typos.
23504 * doc/install.texi: Fix typos.
23505 * doc/invoke.texi: Fix typos.
23506 * doc/md.texi: Fix typos.
23507 * doc/plugins.texi: Fix typos.
23508 * doc/rtl.texi: Fix typos.
23509 * dse.c: Fix typos.
23510 * dwarf2asm.c: Fix typos.
23511 * dwarf2out.c: Fix typos.
23512 * except.h: Fix typos.
23513 * expr.c: Fix typos.
23514 * fold-const.c: Fix typos.
23515 * gcc.c: Fix typos.
23516 * gcse.c: Fix typos.
23517 * genautomata.c: Fix typos.
23518 * gengtype-state.c: Fix typos.
23519 * gengtype.c: Fix typos.
23520 * genhooks.c: Fix typos.
23521 * gimple-fold.c: Fix typos.
23522 * gimple-pretty-print.c: Fix typos.
23523 * gimple.c: Fix typos.
23524 * gimple.h: Fix typos.
23525 * gimplify.c: Fix typos.
23526 * graphite-interchange.c: Fix typos.
23527 * graphite-sese-to-poly.c: Fix typos.
23528 * ifcvt.c: Fix typos.
23529 * input.c: Fix typos.
23530 * ipa-cp.c: Fix typos.
23531 * ipa-inline-analysis.c: Fix typos.
23532 * ipa-inline-transform.c: Fix typos.
23533 * ipa-inline.c: Fix typos.
23534 * ipa-pure-const.c: Fix typos.
23535 * ipa-ref.h: Fix typos.
23536 * ipa-reference.c: Fix typos.
23537 * ipa-utils.c: Fix typos.
23538 * ipa.c: Fix typos.
23539 * ira-emit.c: Fix typos.
23540 * ira-lives.c: Fix typos.
23541 * lto-streamer.c: Fix typos.
23542 * lto-streamer.h: Fix typos.
23543 * lto-wrapper.c: Fix typos.
23544 * mcf.c: Fix typos.
23545 * mode-switching.c: Fix typos.
23546 * modulo-sched.c: Fix typos.
23547 * plugin.c: Fix typos.
23548 * postreload.c: Fix typos.
23549 * sched-deps.c: Fix typos.
23550 * sel-sched-ir.c: Fix typos.
23551 * sel-sched-ir.h: Fix typos.
23552 * sel-sched.c: Fix typos.
23553 * sese.c: Fix typos.
23554 * stor-layout.c: Fix typos.
23555 * target-hooks-macros.h: Fix typos.
23556 * target.def: Fix typos.
23557 * trans-mem.c: Fix typos.
23558 * tree-eh.c: Fix typos.
23559 * tree-predcom.c: Fix typos.
23560 * tree-sra.c: Fix typos.
23561 * tree-ssa-address.c: Fix typos.
23562 * tree-ssa-loop-ivopts.c: Fix typos.
23563 * tree-ssa-loop-niter.c: Fix typos.
23564 * tree-ssa-math-opts.c: Fix typos.
23565 * tree-ssa-pre.c: Fix typos.
23566 * tree-ssa-propagate.c: Fix typos.
23567 * tree-ssa-reassoc.c: Fix typos.
23568 * tree-ssa-sccvn.c: Fix typos.
23569 * tree-ssa-ter.c: Fix typos.
23570 * tree-ssa-uninit.c: Fix typos.
23571 * tree-ssanames.c: Fix typos.
23572 * tree-vect-generic.c: Fix typos.
23573 * tree-vect-slp.c: Fix typos.
23574 * tree.c: Fix typos.
23575 * tree.h: Fix typos.
23576 * varasm.c: Fix typos.
23577 * varpool.c: Fix typos.
23579 2012-05-29 Joseph Myers <joseph@codesourcery.com>
23581 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
23583 2012-05-29 Richard Guenther <rguenther@suse.de>
23585 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
23587 (add_referenced_var_1): Re-organize. Assert we are not
23588 called for globals.
23589 (remove_referenced_var): Likewise.
23590 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
23591 * tree-mudflap.c (execute_mudflap_function_ops): Do not
23592 call add_referenced_var on globals.
23593 * matrix-reorg.c (transform_access_sites): Likewise.
23595 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
23597 * alias.c (reg_known_value): Make this a VEC.
23598 (reg_known_equiv_p): Make this an sbitmap.
23599 (reg_known_value_size): Remove.
23600 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
23601 set_reg_known_equiv_p): Update for reg_known_value and
23602 reg_known_value_size data structure change.
23603 (init_alias_analysis, end_alias_analysis): Likewise.
23605 2012-05-29 Jakub Jelinek <jakub@redhat.com>
23607 PR middle-end/53510
23608 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
23609 to avoid leaking memory. No need to handle memory allocation
23610 failure. Double string_len on each reallocation instead of adding 2.
23611 * gcov.c (read_line): Likewise.
23613 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
23615 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
23617 * config/cris/cris.md ("trap"): Define, enabled for
23618 TARGET_TRAP_USING_BREAK8.
23619 * config/cris/cris.opt (mtrap-using-break8): New option.
23621 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
23624 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
23627 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
23629 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
23630 (Standard Names): Fix typos in documentation of atomic patterns.
23632 2012-05-27 Nathan Sidwell <nathan@acm.org>
23634 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
23636 2012-05-26 Jason Merrill <jason@redhat.com>
23639 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
23640 about array compound literals.
23642 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
23644 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
23645 if CLEANUP_NO_INSN_DEL.
23646 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
23647 from cfg_layout_merge_blocks.
23648 (emit_nop_for_unique_locus_between): New function.
23649 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
23650 (cfg_layout_merge_blocks): Likewise.
23652 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
23653 Paolo Bonzini <bonzini@gnu.org>
23655 * df-scan.c (df_def_record_1): Assert a parallel must contain an
23656 EXPR_LIST at this point. Receive the LOC and move its extraction...
23657 (df_defs_record): ... here. Change if-else to a switch statement.
23658 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
23659 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
23660 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
23661 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
23662 regs_invalidated_by_call.
23663 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
23664 df_get_call_refs().
23666 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
23669 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
23670 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
23672 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
23674 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
23675 software floating point emulation. No longer build the multilibs
23676 with -mstrict-align.
23678 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
23680 PR middle-end/53008
23681 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
23682 accessed indirectly.
23683 (ipa_tm_create_version): Same.
23685 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
23688 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
23689 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
23691 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
23694 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
23695 (ix86_expand_vec_perm): Use int mode instead of float.
23696 (expand_vec_perm_pshufb): Remove handling of useseless type
23699 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
23702 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
23703 gnu_ld variables to yes.
23704 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
23705 (HAVE_GNU_AS): Likewise.
23706 * config.in: Regenerate.
23707 * configure: Likewise.
23709 2012-05-25 Tristan Gingold <gingold@adacore.com>
23711 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
23712 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
23713 and preferred_alignment.
23715 2012-05-25 Tristan Gingold <gingold@adacore.com>
23717 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
23719 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
23721 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
23722 volatile bitfields case.
23724 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
23726 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
23727 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
23728 (adjacent_mem_locations): Move some code to and call...
23729 (get_memref_parts): ...new function.
23730 (mem_locations_overlap): New function.
23731 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
23732 (is_mem_ref): Rename to...
23733 (find_mem_ref): ...this. Return MEM rtx.
23734 (get_store_dest): Remove function.
23735 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
23736 new parameter and adjust calls.
23737 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
23738 mem refs overlap for true_store_to_load_dep_costly.
23739 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
23740 passed to adjacent_mem_locations.
23741 (is_costly_group): Walk resolved dependency list.
23742 (force_new_group): Emit group ending nop for Power6/Power7.
23743 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
23744 (group_ending_nop): New define_insn.
23746 2012-05-24 Dodji Seketeli <dodji@redhat.com>
23748 Make unwound macro expansion trace less redundant
23749 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
23750 context of macro definition in the trace, when it's redundant.
23753 2012-05-24 Richard Guenther <rguenther@suse.de>
23755 PR middle-end/53460
23756 * tree-profile.c (tree_profiling): Cleanup the CFG if
23757 execute_fixup_cfg requests it.
23759 2012-05-24 Richard Guenther <rguenther@suse.de>
23761 * tree-flow.h (create_var_ann): Remove.
23762 * tree-dfa.c (create_var_ann): Remove and inline into its
23764 (add_referenced_var_1): ... here.
23765 * varpool.c (add_new_static_var): Do not call add_referenced_var
23767 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23768 * tree-switch-conversion.c (build_one_array): Likewise.
23769 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
23770 * tree-flow-inline.h (gimple_referenced_vars): Guard against
23772 * tree-inline.c (remap_gimple_op_r): Likewise. Check
23773 gimple_referenced_vars instead of gimple_in_ssa_p.
23774 (copy_tree_body_r): Likewise.
23775 (setup_one_parameter): Likewise.
23776 (declare_return_variable): Likewise.
23777 (tree_function_versioning): Likewise.
23779 2012-05-24 Jakub Jelinek <jakub@redhat.com>
23781 PR tree-optimization/53465
23782 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
23783 vr0 into *vr, then vrp_meet that.
23784 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
23785 have any equivalences.
23786 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
23789 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
23791 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
23793 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
23794 check end_regno - 1 is a hard register.
23796 2012-05-24 Richard Guenther <rguenther@suse.de>
23798 * varpool.c (add_new_static_var): Remove call to create_var_ann.
23799 * tree-ssa-operands.c (create_vop_var): Likewise.
23801 2012-05-24 Richard Guenther <rguenther@suse.de>
23804 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
23806 (remove_unused_locals): Pass global_unused_vars to
23807 remove_unused_scope_block_p. Restore code walking all
23808 referenced vars and pruning them.
23810 2012-05-23 Jan Hubicka <jh@suse.cz>
23812 * tree.h (alias_diag_flags): Remove.
23813 (alias_pair): Remove emitted_diags.
23814 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
23815 symbol_alias_set_t, symbol_alias_set_destroy,
23816 symbol_alias_set_contains, propagate_aliases_backward): Remove.
23817 * toplev.c (compile_file): Do not call finish_aliases_2
23818 * cgraphunit.c (cgraph_process_new_functions): Do not call
23820 (handle_alias_pairs): Output diagnostics about aliases to externals.
23821 (assemble_thunks_and_aliases): Use do_assemble_alias.
23822 (output_weakrefs): Likewise.
23823 (finalize_compilation_unit): Do not call finish_aliases_1.
23824 * ipa.c (symtab_remove_unreachable_nodes): De not call
23825 remove_unreachable_alias_pairs.
23826 * varasm.c (do_assemble_alias): Export.
23827 (symbol_alias_set_create, symbol_alias_set_destroy,
23828 symbol_alias_set_contains, symbol_alias_set_insert,
23829 propagate_aliases_forward, propagate_aliases_backward,
23830 propagate_aliases_backward, trivially_visible_alias,
23831 trivially_defined_alias, remove_unreachable_alias_pairs,
23832 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
23833 * output.h (do_assemble_alias): Declare.
23834 * varpool.c (varpool_remove_unreferenced_decls): Do not call
23837 2012-05-23 Martin Jambor <mjambor@suse.cz>
23839 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
23841 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
23843 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
23845 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
23846 (iterative_hash_gimple_type): Adjust comment.
23847 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
23848 domain for an array type instead of the domain type itself.
23850 2012-05-23 Richard Guenther <rguenther@suse.de>
23852 PR tree-optimization/53438
23853 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
23855 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
23858 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
23859 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
23862 2012-05-23 Richard Guenther <rguenther@suse.de>
23864 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
23865 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
23866 via the global_unused_vars bitmap.
23867 (remove_unused_locals): Handle global vars in local-decls via
23868 a global_unused_vars bitmap instead of the used flag in the
23869 var annotation. Simplify global variable handling and removal.
23871 2012-05-22 Jan Hubicka <jh@suse.cz>
23873 PR middle-end/53426
23874 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
23875 from other partitions.
23877 2012-05-22 Jan Hubicka <jh@suse.cz>
23879 PR middle-end/53161
23880 * symtab.c (symtab_register_node): Fix ordering issue.
23882 2012-05-22 Steven Drake <sbd@NetBSD.org>
23884 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
23886 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
23888 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
23889 Use strip_name_encoding target hook.
23891 2012-05-22 Richard Guenther <rguenther@suse.de>
23893 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
23894 (init_function_for_compilation): Remove.
23895 * tree-dfa.c (find_vars_r): Take struct function argument.
23896 (find_referenced_vars_in): Adjust.
23897 * tree-ssa-operands.c (clobber_stats): Remove.
23898 (create_vop_var): Take struct function argument. Mark
23899 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
23900 (init_ssa_operands): Take struct function argument.
23901 (fini_ssa_operands): Do not dump dead stats.
23902 * tree-ssa-operands.h (init_ssa_operands): Take struct function
23904 * cgraphunit.c (init_lowered_empty_function): Adjust.
23905 * lto-streamer-in.c (input_cfg): Likewise.
23906 * tree-inline.c (initialize_cfun): Likewise.
23907 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
23908 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
23909 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
23910 virtual operands are not registers.
23912 2012-05-22 Richard Guenther <rguenther@suse.de>
23914 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
23916 2012-05-22 Richard Guenther <rguenther@suse.de>
23918 PR middle-end/53437
23919 * tree-inline.c (setup_one_parameter): Create a dummy init
23920 statement for unused parameters when not optimizing.
23922 2012-05-22 Richard Guenther <rguenther@suse.de>
23924 * tree-flow.h (add_referenced_var_1): Declare.
23925 (add_referenced_var): Define.
23926 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
23927 (add_referenced_var): Rename to ...
23928 (add_referenced_var_1): ... this. Take struct function argument.
23930 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23933 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
23934 * config/arm/arm.c (arm_validize_comparison): Define.
23935 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
23936 arm_validize_comparison.
23937 ("cbranchdi4"): Likewise.
23938 ("cstoredi4"): Likewise.
23939 ("movsicc"): Likewise.
23940 ("movsfcc"): Likewise.
23941 ("movdfcc"): Likewise.
23943 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
23945 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
23946 the mw_reg_pool size.
23948 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
23950 PR tree-optimization/53336
23951 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
23952 non-integer integral types to offset type and vice versa.
23954 2012-05-22 Alan Modra <amodra@gmail.com>
23956 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
23957 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
23958 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
23959 V_SAVE_INLINE): Delete.
23960 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
23961 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
23962 For ELF targets, use out-of-line restores for -Os and any number
23963 of regs if the restore exits, and out-of-line gp save for two or
23964 more regs. Use save_reg_p to test for holes in reg restore set.
23965 Replace "#if" with "if".
23967 2012-05-22 Alan Modra <amodra@gmail.com>
23969 * config/rs6000/rs6000.c (save_reg_p): New function.
23970 (first_reg_to_save, first_fp_reg_to_save): Use it here.
23971 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
23972 (emit_frame_save): Use gen_frame_store.
23973 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
23974 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
23976 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
23977 vrsave, toc, gp and fp restores.
23979 2012-05-22 Alan Modra <amodra@gmail.com>
23981 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
23982 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
23983 Move function pointer variables after forward declarations.
23984 (rs6000_builtin_support_vector_misalignment): Make static.
23985 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
23986 (rs6000_function_value, rs6000_can_eliminate): Likewise.
23988 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
23990 PR rtl-optimization/53373
23991 * caller-save.c (save_call_clobbered_regs): Look into a possible
23992 PARALLEL manually rather than using single_set on a call insn.
23994 2012-05-21 Jakub Jelinek <jakub@redhat.com>
23996 PR tree-optimization/53436
23997 * omp-low.c (omp_build_component_ref): New function.
23998 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
24000 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
24002 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
24004 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
24005 Do not print '.' here. Output operand lossage error for unhandled
24010 <case 'z'>: Hardcode "code" argument into error strings.
24012 <case 'D'>: Merge AVX and non-AVX codes.
24013 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
24014 Update call to put_condition_code.
24016 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
24018 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
24020 (clzsi2): New expander.
24021 (*clzsi2_68k): New insn.
24022 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
24024 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
24026 * gimple.h (gimple_set_in_transaction): Remove.
24027 (gimple_in_transaction): Look in BB instead.
24028 (gimple_statement_base): Remove in_transaction field.
24029 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
24030 * trans-mem.c (compute_transaction_bits): Place transaction bit
24031 information into basic blocks.
24033 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
24035 * expr.c (get_def_for_expr_class): Define only if
24036 HAVE_conditional_move.
24037 (convert_tree_comp_to_rtx): Likewise.
24039 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
24042 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
24044 (ffssi2_no_cmove): Ditto.
24045 (*ffs<mode>_1): Remove insn pattern.
24046 (*tzcnt<mode>_1): New insn pattern.
24047 (*bsf<mode>1): Ditto.
24049 2012-05-21 Richard Guenther <rguenther@suse.de>
24051 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
24052 more referenced vars.
24053 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
24054 flag on variables that have a var-annotation.
24056 2012-05-21 Joseph Myers <joseph@codesourcery.com>
24059 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
24060 from folded operands before wrapping another around the
24061 conditional expression.
24063 2012-05-21 Jakub Jelinek <jakub@redhat.com>
24065 PR tree-optimization/53366
24066 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
24067 tests if complex_numbers == 2, but there are non-complex number loads
24070 PR tree-optimization/53409
24071 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
24072 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
24074 PR tree-optimization/53410
24075 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
24076 instead of build_int_cst (type, 0) where vector types might be
24077 involved. Instead of build_int_cst (type, 1) convert the original
24078 integer_onep argument to the desired type.
24080 2012-05-21 Michael Matz <matz@suse.de>
24082 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
24083 (simplify_test_exp): Handle one more case of distributive law,
24084 decrease cost threshold.
24085 (tests_attr_p, get_attr_order): New functions.
24086 (optimize_attrs): Use topological order, inline only cheap values.
24087 (write_attr_set): Reset our_known_true after some time.
24089 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
24092 * config/i386/i386.c (type_natural_mode): Warn passing SSE
24093 vector argument without SSE enabled changes the ABI.
24095 2012-05-21 Richard Guenther <rguenther@suse.de>
24097 PR tree-optimization/53408
24098 * tree-vect-loop.c (vectorizable_induction): Properly check
24099 the restriction that we cannot handle induction results from
24100 the inner loop outside of the outer loop.
24102 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
24105 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
24106 (UNSPECV_RDRAND): This.
24107 (rdrand<mode>_1): Updated.
24109 2012-05-21 Richard Guenther <rguenther@suse.de>
24111 * tree-loop-distribution.c (can_generate_builtin): Reject
24114 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
24116 * Makefile.in (options.c): Add options.h to included header
24117 files, before tm.h.
24119 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
24121 * tree-parloops.c : Add myself to contributors, update
24122 TODO list, add link to wiki.
24124 2012-05-21 Alan Modra <amodra@gmail.com>
24126 * config/rs6000/predicates.md (input_operand): Don't match
24127 constant pool addresses. Remove label_ref, high and plus from
24128 match_code list. Remove redundant CONSTANT_P test.
24129 (splat_input_operand): Similarly update match_code list.
24130 (small_toc_ref): New predicate.
24131 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
24132 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
24133 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
24134 register checks to..
24135 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
24136 generated by create_TOC_reference.
24137 (rs6000_legitimize_address): Update cerate_TOC_reference call.
24138 (rs6000_delegitimize_address): Handle new rtl for toc refs.
24139 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
24140 (use_toc_relative_ref): New function, split out from..
24141 (rs6000_emit_move): ..here. Remove redundant tests. Update
24142 create_TOC_reference calls.
24143 (rs6000_legitimize_reload_address): Formatting. Handle splitting
24144 of medium/large model toc addresses. Use use_toc_relative_ref.
24145 (print_operand): Formatting, style. Adjust for toc changes.
24146 (print_operand_address): Likewise.
24147 (rs6000_output_addr_const_extra): Likewise.
24148 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
24149 than a PLUS. Use this formulation for both high and low part
24150 of -mcmodel=medium/large toc reference too. Before reload,
24151 always use the small model formulation.
24152 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
24153 a PLUS in high part of addresses here.
24154 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
24155 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
24156 (largetoc_high, largetoc_low): Move earlier. Cope when no
24157 base reg available.
24158 (largetoc_high_plus): New insn.
24159 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
24160 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
24161 (tocref): ..instead do so here, new insn and split.
24163 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
24165 * config/i386/driver-i386.c (host_detect_local_cpu): Support
24166 RDRND, F16C and FSGSBASE.
24168 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24170 PR rtl-optimzation/53373
24171 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
24172 call pattern. Update split patterns.
24173 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
24174 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
24176 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
24178 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
24181 2012-05-18 Jan Hubicka <jh@suse.cz>
24183 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
24184 (cgraph_process_new_functions): Process also aliases.
24185 * lto-streamer-out.c (struct sets): Remove.
24186 (trivally_defined_alias): Remove.
24187 (output_alias_pair_p): Remove.
24188 (output_unreferenced_globals): Remove.
24189 (produce_symtab); Do not handle alias pairs.
24190 (produce_asm_for_decls): Likewise.
24191 * lto-streamer-in.c (input_alias_pairs): Remove.
24192 (lto_read_body): Do not input alias pairs.
24193 (lto_input_constructors_and_inits): Remove.
24195 2012-05-18 Jan Hubicka <jh@suse.cz>
24197 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
24200 2012-05-18 Jan Hubicka <jh@suse.cz>
24202 * cgraphbuild.c (record_reference): Update.
24203 * lto-cgraph.c (lto_output_varpool_node): External vars
24204 are not in other partition even if they are not output
24205 in current partition.
24206 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
24208 (canonicalize_constructor_val): Take FROM_DECL argument.
24209 (fold_ctor_reference, fold_string_cst_ctor_reference,
24210 fold_array_ctor_reference, fold_nonarray_ctor_reference,
24211 fold_ctor_reference): Likewise.
24212 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
24213 * gimple.h (gimple_fold_builtin): Likewise.
24215 2012-05-18 Olivier Hainque <hainque@adacore.com>
24217 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
24218 $(libsubdir) as libexecsubdir.
24220 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24222 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
24223 relied on signed overflow behavior.
24225 2012-05-18 Richard Guenther <rguenther@suse.de>
24227 PR tree-optimization/53346
24228 * tree-loop-distribution.c (ldist_gen): Make sure to apply
24229 builtin transform even when only a single partition with
24230 all reads/writes exists.
24232 2012-05-18 Richard Guenther <rguenther@suse.de>
24234 PR tree-optimization/53390
24235 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
24238 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24240 * tree-ssa-reassoc.c (bip_map): Remove decl.
24241 (completely_remove_stmt): Remove function.
24242 (remove_def_if_absorbed_call): Remove function.
24243 (remove_visited_stmt_chain): Remove __builtin_powi handling.
24244 (possibly_move_powi): Remove function.
24245 (rewrite_expr_tree): Remove calls to possibly_move_powi.
24246 (rewrite_expr_tree_parallel): Likewise.
24247 (attempt_builtin_powi): Build multiplies explicitly rather than
24248 relying on the ops vector and rank system.
24249 (transform_stmt_to_copy): New function.
24250 (transform_stmt_to_multiply): Likewise.
24251 (reassociate_bb): Handle leftover operations after __builtin_powi
24252 optimization; build a final multiply if necessary.
24254 2012-05-18 Jan Hubicka <jh@suse.cz>
24256 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
24257 (mark_functions_to_output): Fix sanity check.
24258 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
24260 2012-05-18 Richard Guenther <rguenther@suse.de>
24262 * tree-flow.h (mark_symbols_for_renaming): Remove.
24263 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
24264 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
24265 (copy_debug_stmt): Likewise.
24266 (expand_call_inline): Likewise.
24267 (declare_return_variable): Mark the return variable for renaming
24270 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
24272 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
24274 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
24275 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
24276 (ashrdi3,lshrdi3): Likewise.
24277 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
24279 2012-05-18 Meador Inge <meadori@codesourcery.com>
24281 PR rtl-optimization/53352
24282 * cse.c (equiv_constant): Ignore paradoxical subregs.
24284 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
24286 PR rtl-optimization/53125
24287 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
24288 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
24289 die in the basic block. Correctly top off REG_FREQ and
24290 REG_FREQ_CALLS_CROSSED.
24292 (regstat_compute_ri): Allocate and free local_live_last_luid.
24294 (regstat_bb_compute_calls_crossed): Correctly top off
24295 REG_FREQ_CALLS_CROSSED.
24297 2012-05-17 Jan Hubicka <jh@suse.cz>
24299 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
24300 constructor over decl without.
24301 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
24302 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
24303 * cgraphunit.c (process_function_and_variable_attributes): Finalize
24305 (mark_functions_to_output): Also accept bodies for functions with
24307 (output_in_order): Skip external vars.
24308 * lto-cgraph.c (lto_output_node): External functions are never in other
24310 (lto_output_varpool_node): Likewise.
24311 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
24312 forgotten initializers.
24313 * ipa.c (process_references): Handle external vars.
24314 (symtab_remove_unreachable_nodes): Update to handle external vars.
24315 (varpool_externally_visible_p): External vars are externally visible.
24316 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
24317 * varpool.c (varpool_remove_node): Remove constructor.
24318 (decide_is_variable_needed): Handle externals.
24319 (varpool_remove_unreferenced_decls): Likewise.
24321 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
24323 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
24324 (enable_warning_as_error): Do not special case Wuninitialized.
24325 * optc-gen.awk: Add sanity checks.
24327 2012-05-17 Jan Hubicka <jh@suse.cz>
24329 * ipa-reference.c (is_proper_for_analysis): Do not check flags
24330 that might change as result of global optimization.
24331 (analyze_function): Do not check analyzed and externally_visible
24332 flags; be happy about address dereferences.
24333 (propagate): Prune all_module_statics so it really contains just
24334 statics; prune all the local summaries.
24335 (ipa_reference_write_optimization_summary): Simplify.
24337 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
24339 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
24340 * config/m68k/m68k-tables.opt: Regenerated.
24341 * doc/invoke.texi (M680x0 Options): Document.
24343 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
24344 Patrick Marlier <patrick.marlier@gmail.com>
24346 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
24349 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
24351 * configure: Regenerated.
24353 2012-05-16 Andrew Pinski <apinski@cavium.com>
24355 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
24358 2012-05-16 David S. Miller <davem@davemloft.net>
24360 * jump.c (delete_related_insns): If we remove a CALL, make sure
24361 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
24363 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24365 PR tree-optimization/53217
24366 * tree-ssa-reassoc.c (bip_map): New static variable.
24367 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
24368 (attempt_builtin_powi): Save feeding multiplies on a stack.
24369 (reassociate_bb): Create and destroy bip_map.
24371 2012-05-16 Olivier Hainque <hainque@adacore.com>
24373 * Makefile.in (install-no-fixedincludes): New target, former toplevel
24374 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
24375 Add comments and improve stamp preservation across the whole sequence.
24376 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
24378 2012-05-16 Richard Guenther <rguenther@suse.de>
24380 * tree-inline.c (insert_init_stmt): Do not call
24381 mark_symbols_for_renaming.
24382 (setup_one_parameter): Avoid initializing unused parameters.
24383 (declare_return_variable): Properly handle DECL_BY_REFERENCE
24384 return vars in SSA form.
24386 2012-05-16 Richard Guenther <rguenther@suse.de>
24388 * tree-flow.h (get_virtual_var): Remove.
24389 * tree-dfa.c (get_virtual_var): Likewise.
24391 2012-05-16 Richard Guenther <rguenther@suse.de>
24393 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
24394 Remove set-only bitmap of new names.
24395 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
24397 * tree-flow.h (ssa_names_to_replace): Remove.
24398 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
24400 2012-05-16 Richard Guenther <rguenther@suse.de>
24402 PR tree-optimization/53364
24403 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
24404 detect a view-conversion of the decl.
24406 2012-05-16 Dodji Seketeli <dodji@redhat.com>
24408 PR preprocessor/7263
24409 * c-tree.h (enum c_declspec_word): Declare new enum.
24410 (struct c_declspecs::locations): New member.
24411 (declspecs_add_qual, declspecs_add_scspec)
24412 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
24413 location parameter.
24414 * c-decl.c (build_null_declspecs): Initialize the new struct
24415 c_declspecs::locations member.
24416 (declspecs_add_addrspace): Take a location parameter for the
24417 address space. Store it onto declaration specifiers.
24418 (declspecs_add_qual): Likewise, take a location parameter for the
24420 (declspecs_add_type): Likewise, take a location parameter for the
24422 (declspecs_add_scspec): Likewise, take a location parameter for
24423 the storage class specifier.
24424 (declspecs_add_attrs): Likewise, take a location parameter for the
24426 (declspecs_add_alignas): Likewise, take a location parameter for
24428 (finish_declspecs): For diagnostics, use the location of the
24429 relevant declspec, instead of the global input_location.
24430 * c-parser.c (c_parser_parameter_declaration): Pass the precise
24431 virtual location of the declspec to the declspecs-setters.
24432 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
24435 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
24437 * configure.ac: Stack protector enabling for Android targets.
24438 * configure: Regenerate.
24440 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
24442 * ira.c (pseudo_move_insn): Delete.
24443 (find_moveable_pseudos): Don't set it.
24444 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
24445 the definitions of the original pseudo. Delete all of them.
24447 2012-05-16 Olivier Hainque <hainque@adacore.com>
24449 * config/rs6000/rs6000-opts.h (enum processor_type): Add
24451 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
24452 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
24453 * config/rs6000/8540.md: indicate that the units/patterns apply to
24456 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
24457 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
24458 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
24459 related flags, check that what is queried is supported by the selected
24460 configuration. Rework the single/double_float and MASK_STRING resets to
24461 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
24462 costs for PROCESSOR_PPC8548 as well.
24463 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
24464 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
24465 statement instead of a sequence of ifs.
24467 * config/rs6000/rs6000.h (TARGET_E500): Remove.
24468 (TARGET_NO_LWSYNC): Adjust accordingly.
24469 * config/rs6000/e500.h (TARGET_E500): Remove.
24470 (CHECK_E500_OPTIONS): Adjust accordingly.
24471 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
24472 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
24473 * config/rs6000/linuxspe.h: Likewise.
24474 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
24475 superfluous comments.
24476 * config/rs6000/e500-double.h: Remove.
24478 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
24479 default to with_cpu=8548 if --enable-e500-double, and to 8540
24481 (set misc flags section): For powerpc*|rs6000*, remove inclusion
24482 of e500-double.h for --enable-e500-double.
24484 2012-05-16 Olivier Hainque <hainque@adacore.com>
24486 * Makefile.in (s-header-vars): Resort to -n instead of trailing
24487 -e d in sed invocation.
24489 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
24491 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
24493 * doc/tm.texi: Regenerate.
24495 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
24497 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
24499 2012-05-15 Jakub Jelinek <jakub@redhat.com>
24502 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
24503 that operands[2] is either immediate, or q_regs_operand.
24505 2012-05-15 Richard Guenther <rguenther@suse.de>
24507 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
24508 (assemble_thunk): Likewise. Manually rename and register
24509 function arguments.
24511 2012-05-15 Richard Guenther <rguenther@suse.de>
24513 PR tree-optimization/53355
24514 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
24517 2012-05-15 Tristan Gingold <gingold@adacore.com>
24519 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
24521 2012-05-15 Richard Guenther <rguenther@suse.de>
24523 * gimple.c (gimple_set_modified): Move ...
24524 * gimple.h (gimple_set_modified): ... here.
24526 2012-05-15 Tristan Gingold <gingold@adacore.com>
24528 * ira-color.c (move_spill_restore): Add a guard.
24530 2012-05-15 Tristan Gingold <gingold@adacore.com>
24532 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
24535 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
24537 * gimplify.c (gimplify_init_constructor): Do a block move for very
24538 small objects as well.
24540 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
24542 * ira.c (find_moveable_pseudos): Skip registers whose
24543 DF_REG_EQ_USE_COUNT is nonzero.
24545 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
24547 * doc/md.texi (fma): Define to only be applicable for single rounding.
24549 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
24552 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
24553 generate target register for "load" class builtins.
24556 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
24559 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
24560 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
24561 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
24562 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
24563 (<sse>_movu<ssemodesuffix>): New expander.
24564 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
24565 (avx_movdqu<avxmodesuffix>): New expander.
24566 (*sse2_movdqu): Rename from sse2_movdqu.
24567 (sse2_movdqu): New expander.
24569 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
24572 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
24573 (canonicalize_perm): ... new function.
24574 (expand_vec_perm_2vperm2f128_vshuf): New function.
24575 (ix86_expand_vec_perm_const_1): Call it.
24577 2012-05-14 Andrew Pinski <apinski@cavium.com>
24578 H.J. Lu <hongjiu.lu@intel.com>
24579 Jakub Jelinek <jakub@redhat.com>
24582 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
24585 2012-05-14 Jakub Jelinek <jakub@redhat.com>
24587 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
24588 lineno 1 the same as lineno 0 before first start file directive.
24589 (optimize_macinfo_range): Likewise.
24591 * dwarf2out.c (have_macinfo): Define.
24592 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
24593 attribute, don't force empty compilation unit and don't emit any
24594 .debug_macinfo/.debug_macro section if macinfo_table is empty.
24596 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
24599 * config/avr/avr.c (avr_const_address_lo16): Remove.
24600 (avr_assemble_integer): Print ".byte lo8(x)",
24601 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
24602 .warning if 3-byte address is assembled.
24603 * doc/extend.texi (AVR Named Address Spaces): Document that
24604 binutils 2.23 is needed to assemble 3-byte addresses.
24606 2012-05-14 Richard Guenther <rguenther@suse.de>
24608 * tree-vect-data-refs.c (vect_setup_realignment): Remove
24609 call to mark_symbols_for_renaming.
24610 (vect_permute_load_chain): Likewise.
24611 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
24612 instead of calling mark_symbols_for_renaming.
24613 * tree-vect-stmts.c (read_vector_array): Remove call to
24614 mark_symbols_for_renaming.
24615 (write_vector_array): Likewise.
24616 (vectorizable_call): Likewise.
24617 (vectorizable_store): Likewise.
24618 (vectorizable_load): Likewise.
24619 * matrix-reorg.c (transform_allocation_sites): Likewise.
24620 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
24621 (create_expression_by_pieces): Likewise.
24623 2012-05-14 Richard Guenther <rguenther@suse.de>
24625 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
24626 of statements for renaming.
24627 (force_gimple_operand_1): Likewise, consistently for both
24628 calls to force_gimple_operand and force_gimple_operand_gsi.
24630 2012-05-14 Richard Guenther <rguenther@suse.de>
24632 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
24633 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
24635 (expand_omp_for): Likewise.
24636 (expand_omp_for_generic): Adjust conditional add to referenced vars.
24637 Use make_rename_temp for temporaries that should be rewritten into
24639 (expand_omp_for_static_nochunk): Likewise.
24640 (expand_omp_atomic_pipeline): Likewise.
24642 2012-05-14 Richard Guenther <rguenther@suse.de>
24644 PR tree-optimization/53331
24645 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
24647 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
24649 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
24652 * doc/options.texi: (LangEnabledBy): Document it.
24653 * optc-gen.awk: Handle LangEnabledBy.
24654 * opth-gen.awk: Generate declaration for lang-specific functions.
24655 * opt-read.awk: Record lang numbers.
24656 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
24657 (lang_sanitized_name): New.
24659 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
24661 * attribs.c (decl_attributes): Avoid emitting a warning if
24662 ATTR_FLAG_BUILT_IN.
24663 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
24664 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
24665 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
24666 define a string "1".
24667 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
24668 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
24669 BUILT_IN_STRCPY): Use it for these functions.
24670 * postreload.c (reload_combine): Deal with SETs inside
24671 CALL_INSN_FUNCTION_USAGE.
24672 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
24673 Look for REG_RETURNED notes and use a cheap restore if possible.
24674 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
24675 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
24676 * ira-build.c (ira_create_allocno, create_cap_allocno,
24677 propagate_allocno_info, propagate_some_info_from_allocno,
24678 copy_info_to_removed_store_destination, ira_flattening): Handle it.
24679 * ira-lives.c (pseudo_regno_single_word_and_live_p,
24680 find_call_crossed_cheap_reg): New static functions.
24681 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
24682 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
24683 a REG_RETURNED note in that case.
24684 * ira.c (setup_reg_renumber): Change assert to allow cases where
24685 allocnos only cross calls for which they are cheap to restore.
24686 * ira-costs.c (ira_tune_allocno_costs): Compare
24687 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
24689 * reg-notes.def (REG_RETURNED): New note.
24690 * cse.c (cse_insn): Likewise.
24691 * sched-deps.c (sched_analyze_insn): Likewise.
24692 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
24693 * calls.c (decl_return_flags): New static function.
24694 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
24695 functions that return one of their arguments.
24696 * regcprop.c (struct kill_set_value_data): New.
24697 (kill_set_value): Interpret data as a pointer to such a struct.
24698 Do nothing if the caller wants the register to be ignored.
24699 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
24701 2012-05-14 Richard Guenther <rguenther@suse.de>
24703 PR tree-optimization/53340
24704 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
24706 2012-05-14 Richard Guenther <rguenther@suse.de>
24708 * gimplify.c (gimplify_expr): Remove odd code.
24710 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
24712 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
24713 into a PLUS_EXPR byte offset.
24715 * tree-ssa-pre.c (can_value_number_call): Delete.
24716 (compute_avail): Skip all statements with side effects.
24717 <GIMPLE_CALL>: Skip calls to internal functions.
24719 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
24721 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
24723 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
24725 * common.opt (Wtype-limits): Use EnabledBy.
24727 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
24729 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
24730 (pushtf splitter): Ditto.
24732 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
24733 (<code>tf2): Enable for TARGET_SSE.
24734 (*absnegtf2_sse): Ditto.
24735 (copysign<mode>3): Enable TFmode for TARGET_SSE.
24736 (copysign<mode>3_const): Ditto.
24737 (copysign<mode>3_var): Ditto.
24738 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
24739 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
24740 (*<code>tf3): Ditto.
24741 * config/i386/i386.c (struct builtin_description bdesc_args)
24742 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
24743 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
24744 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
24745 Emit a normal call if SSE isn't available.
24747 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
24749 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
24750 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
24751 (<code><mode>3): Ditto.
24752 (*andnot<mode>3): Ditto.
24753 (*andnottf3): Ditto.
24754 (*<code><mode>3): Ditto.
24755 (<code>tf3): Ditto.
24757 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
24759 * optc-gen.awk: Error instead of warning for conflicting help.
24761 2012-05-12 Jason Merrill <jason@redhat.com>
24764 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
24767 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
24769 * function.c (requires_stack_frame_p): If the function can throw
24770 non-call exceptions, return true if the insn can throw internally.
24772 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
24774 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
24776 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
24778 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
24779 ORDERED and UNORDERED conditions.
24781 2012-05-11 Richard Guenther <rguenther@suse.de>
24783 * tree-flow.h (referenced_var_check_and_insert): Remove.
24784 (find_new_referenced_vars): Likewise.
24785 * tree-dfa.c (referenced_var_check_and_insert): Make static.
24786 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
24787 * tree-inline.c (copy_bb): Use find_referenced_vars_in
24788 instead of find_new_referenced_vars.
24789 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
24791 2012-05-11 Richard Guenther <rguenther@suse.de>
24793 * tree-pass.h (pass_rest_of_compilation,
24794 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
24796 * passes.c (pass_all_optimizations, pass_postreload,
24797 pass_all_early_optimizations): Make static.
24798 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
24799 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
24800 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
24801 (delete_tree_ssa): Do not call fini_phinodes.
24802 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
24804 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
24807 * doc/options.texi (EnabledBy): Document
24808 * opts.c: Include opts.h and options.h before tm.h.
24809 (finish_options): Do not handle some sub-options here...
24810 (common_handle_option): ... instead call common_handle_option_auto
24812 * optc-gen.awk: Handle EnabledBy.
24813 * opth-gen.awk: Declare common_handle_option_auto.
24814 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
24815 (Wmaybe-uninitialized): Likewise.
24816 (Wunused-but-set-variable): Likewise.
24817 (Wunused-function): Likewise.
24818 (Wunused-label): Likewise.
24819 (Wunused-value): Likewise.
24820 (Wunused-variable): Likewise.
24821 * opt-read.awk: Create opt_numbers array.
24823 2012-05-11 Richard Guenther <rguenther@suse.de>
24825 PR tree-optimization/53295
24826 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
24828 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
24829 strides when analyzing data-references in a loop context.
24830 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
24831 non-constant strides for now.
24832 (vect_enhance_data_refs_alignment): Ignore data references
24833 that are strided loads.
24834 (vect_analyze_data_ref_access): Handle non-constant strides.
24835 (vect_check_strided_load): Verify the data-reference is a load.
24836 (vect_analyze_data_refs): Restructure to make strided load
24837 support not dependent on gather support.
24838 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
24839 when doing strided or gather loads.
24840 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
24841 integer_zerop to compare stride with zero.
24843 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
24845 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
24847 2012-05-11 Jan Hubicka <jh@suse.cz>
24850 * varpool.c (varpool_assemble_decl): Also output constat pool entries
24851 that output_constant_pool missed.
24853 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
24855 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
24856 MULTILIB_EXTRA_OPTS.
24858 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
24861 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
24863 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
24865 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
24866 optimization for TARGET_AVX.
24867 (*movti_internal_sse): Ditto.
24868 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
24869 (*movdi_internal): Ditto.
24870 (*movsi_internal): Ditto.
24871 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
24872 (*movdf_internal_rex64): Ditto.
24873 (*movfd_internal): Ditto.
24874 (*movsf_internal): Ditto.
24875 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
24877 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
24879 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
24880 reference as size attribute.
24882 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
24883 Tristan Gingold <gingold@adacore.com>
24885 * doc/md.texi (Standard Names): Document probe_stack_address.
24886 * explow.c (emit_stack_probe): Handle probe_stack_address.
24887 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
24888 (UNSPECV_PROBE_STACK_RANGE): Likewise.
24889 (probe_stack_address): New insn.
24890 (probe_stack_range): Likewise.
24891 * config/ia64/ia64.c: Include common/common-target.h.
24892 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
24893 checking is enabled.
24894 (ia64_emit_probe_stack_range): New function.
24895 (output_probe_stack_range): Likewise.
24896 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
24897 builtin stack checking is enabled.
24898 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
24899 and UNSPECV_PROBE_STACK_ADDRESS.
24900 (unknown_for_bundling_p): New predicate.
24901 (group_barrier_needed): Use important_for_bundling_p.
24902 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
24903 (issue_nops_and_insn): Likewise.
24904 (bundling): Likewise.
24905 (final_emit_insn_group_barriers): Likewise.
24906 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
24907 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
24908 (STACK_CHECK_PROTECT): Likewise.
24909 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
24911 2012-05-10 Jan Hubicka <jh@suse.cz>
24913 * ipa-inline.c (update_all_callee_keys): Remove.
24914 (inline_small_functions): Simplify priority updating.
24916 2012-05-10 Jan Hubicka <jh@suse.cz>
24918 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
24920 2012-05-10 Jan Hubicka <jh@suse.cz>
24922 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
24923 (symtab_remove_unreachable_nodes): ... this one.
24924 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
24925 * cgraphunit.c (ipa_passes): Update.
24926 * cgraphclones.c (cgraph_materialize_all_clones): Update.
24927 * cgraph.c (cgraph_release_function_body): Only turn initial
24928 into error mark when initial was previously set.
24929 * ipa-inline.c (ipa_inline): Update.
24930 * ipa.c: Include ipa-inline.h
24931 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
24932 (enqueue_node): New function.
24933 (process_references): Update.
24934 (symtab_remove_unreachable_nodes): Cleanup.
24935 * passes.c (execute_todo, execute_one_pass): Update.
24937 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
24939 PR rtl-optimization/53125
24940 * ira.c (ira): Call find_moveable_pseudos and
24941 move_unallocated_pseudos if only ira_conflicts_p is true.
24943 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
24945 * config/i386/i386.md (*movoi_internal_avx): Handle
24946 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
24947 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
24948 (*movti_internal_sse): Ditto.
24949 (*movtf_internal): Ditto.
24950 * config/i386/sse.md (ssePSmode): New mode attribute.
24951 (*move<mode>_internal): Use ssePSmode.
24952 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
24953 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
24954 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
24955 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
24957 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
24959 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
24960 DECL_ORIGINAL_TYPE if it is present.
24962 2012-05-10 Nick Clifton <nickc@redhat.com>
24965 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
24966 a "0" constraint to being a (match_dup 0).
24968 2012-05-10 Richard Guenther <rguenther@suse.de>
24970 * stor-layout.c (byte_from_pos): Amend comment.
24972 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24974 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
24975 Document requirement to call in constructors.
24977 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
24979 2012-05-10 Richard Guenther <rguenther@suse.de>
24981 * tree.h (TYPE_IS_SIZETYPE): Remove.
24982 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
24983 (extract_muldiv_1): Likewise.
24984 * gimple.c (gtc_visit): Likewise.
24985 (gimple_types_compatible_p): Likewise.
24986 (iterative_hash_canonical_type): Likewise.
24987 (gimple_canonical_types_compatible_p): Likewise.
24988 * gimplify.c (gimplify_one_sizepos): Likewise.
24989 * print-tree.c (print_node): Likewise.
24990 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
24992 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
24995 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
24996 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
24997 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
24998 instead of xop_mulv2div2di3_low.
24999 (xop_p<macs>dql): Fix vec_select selector.
25000 (xop_p<macs>dqh): Ditto.
25001 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
25002 (xop_mulv2div2di3_high): Ditto.
25004 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
25007 * diagnostic.h (diagnostic_context): Add last_location.
25008 * diagnostic.c (diagnostic_initialize): Initialize it.
25009 (diagnostic_show_locus): Use it.
25011 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
25013 * doc/extend.texi (Function Attributes): Point xref to section
25016 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
25018 * config/i386/i386.c (*movdf_internal_rex64): Remove
25019 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
25020 Calculate "mode" attribute according to
25021 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
25022 (*movdf_internal): Ditto.
25024 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
25027 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
25028 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
25029 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
25030 or when optimizing for size.
25031 * config/i386/sse.md (*mov<mode>_internal): Remove
25032 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
25033 Calculate "mode" attribute according to optimize_function_for_size_p
25034 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
25035 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
25036 depending on the mode of the instruction. Calculate "mode" attribute
25037 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
25038 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
25039 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
25041 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
25044 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
25045 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
25046 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
25047 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
25048 (expand_prologue): Move initialization of cfun->machine->is_naked,
25049 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
25050 (avr_set_current_function): ...this new static function.
25051 (TARGET_SET_CURRENT_FUNCTION): New define.
25052 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
25053 checking attributes of current_function_decl.
25054 (avr_regs_to_save): Ditto.
25055 (signal_function_p): Rename to avr_signal_function_p.
25056 (interrupt_function_p): Rename to avr_interrupt_function_p.
25058 * doc/extend.texi (Function Attributes): Better explanation of
25059 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
25060 alphabetical order.
25062 2012-05-09 Michael Matz <matz@suse.de>
25064 PR tree-optimization/53185
25065 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
25066 peeling when we see strided loads.
25068 2012-05-09 Matthias Klose <doko@ubuntu.com>
25070 * gcc-ar.c (main): Don't check for execute bits for the plugin.
25072 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25074 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
25075 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
25076 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
25077 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
25078 (USE_LOAD_POST_INCREMENT): Define.
25079 (USE_LOAD_PRE_INCREMENT): Define.
25080 (USE_LOAD_POST_DECREMENT): Define.
25081 (USE_LOAD_PRE_DECREMENT): Define.
25082 (USE_STORE_PRE_DECREMENT): Define.
25083 (USE_STORE_PRE_INCREMENT): Define.
25084 (USE_STORE_POST_DECREMENT): Define.
25085 (USE_STORE_POST_INCREMENT): Define.
25086 (arm_auto_incmodes): Add enumeration.
25087 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
25088 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
25090 2012-05-09 Jakub Jelinek <jakub@redhat.com>
25092 PR tree-optimization/53226
25093 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
25094 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
25095 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
25096 doesn't need to be revisited, look for earliest stmt with
25097 !gimple_plf (stmt, GF_PLF_1) if something changed.
25099 2012-05-09 Terry Guo <terry.guo@arm.com>
25101 * genmultilib: Update copyright dates.
25102 * doc/fragments.texi: Ditto.
25104 2012-05-09 Terry Guo <terry.guo@arm.com>
25106 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
25107 * genmultilib (MULTILIB_REQUIRED): New.
25108 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
25110 2012-05-09 Richard Guenther <rguenther@suse.de>
25112 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
25113 (vect_do_peeling_for_loop_bound): Likewise.
25114 (vect_do_peeling_for_alignment): Likewise.
25115 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
25116 (vect_do_peeling_for_loop_bound): Get check_profitability and
25117 threshold as parameters.
25118 (vect_do_peeling_for_alignment): Likewise.
25119 (vect_loop_versioning): Likewise.
25120 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
25121 and threshold here. Control where to put the check here.
25123 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
25125 PR middle-end/53249
25126 * dwarf2out.h (get_address_mode): Move declaration to...
25128 * dwarf2out.c (get_address_mode): Move definition to...
25129 * rtlanal.c: ...here.
25130 * var-tracking.c (get_address_mode): Delete.
25131 * combine.c (find_split_point): Use get_address_mode instead of
25132 targetm.addr_space.address_mode.
25133 * cselib.c (cselib_record_sets): Likewise.
25134 * dse.c (canon_address, record_store): Likewise.
25135 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
25136 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
25137 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
25138 (expand_expr_real_1): Likewise.
25139 * ifcvt.c (noce_try_cmove_arith): Likewise.
25140 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
25141 * reload.c (find_reloads): Likewise.
25142 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
25143 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
25145 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
25147 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
25148 information from the instruction produced.
25150 2012-05-09 Richard Guenther <rguenther@suse.de>
25152 * stor-layout.c (bit_from_pos): Document.
25153 (byte_from_pos): Likewise. Optimize.
25154 (pos_from_bit): Likewise.
25155 (normalize_offset): Use pos_from_bit instead of replicating it.
25157 2012-05-09 Alan Modra <amodra@gmail.com>
25160 * config/rs6000/rs6000.c (gen_frame_set): New function.
25161 (gen_frame_load, gen_frame_store): New functions.
25162 (rs6000_savres_rtx): Use the above.
25163 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
25164 Correct mode used for CR2 in save/restore_world patterns.
25165 Don't emit instructions for eh_return frame unwind reg info.
25167 2012-05-08 Jan Hubicka <jh@suse.cz>
25169 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
25171 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
25173 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
25175 (compile_file): Do not output variables.
25176 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
25178 * langhooks.c: Include timevar.h
25179 (write_global_declarations): Finalize compilation unit after wrapup;
25180 set timevars correctly.
25181 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
25182 not to be added to varpool.
25183 * varpool.c (varpool_assemble_decl): Sanity check that we are called
25184 only on cases where it makes sense; skip constant pool and value expr
25187 2012-05-08 David S. Miller <davem@davemloft.net>
25189 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
25190 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
25191 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
25193 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
25195 PR rtl-optimization/53278
25196 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
25197 speed_p code from earlier patch.
25199 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25202 * config/sh/sh.md (*branch_true, *branch_false): New insns.
25204 2012-05-08 Teresa Johnson <tejohnson@google.com>
25206 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
25207 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
25209 2012-05-08 Jan Hubicka <jh@suse.cz>
25211 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
25212 (cgraph_create_node_1): Rename to ...
25213 (cgraph_create_empty_node): ... this one; export.
25214 (cgraph_create_node): Update.
25215 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
25216 (cgraph_create_edge_including_clones): Likewise.
25217 (cgraph_find_replacement_node): Likewise.
25218 (cgraph_clone_edge): Likewise.
25219 (cgraph_clone_node): Likewise.
25220 (clone_function_name): Likewise.
25221 (cgraph_create_virtual_clone): Likewise.
25222 (cgraph_remove_node_and_inline_clones): Likewise.
25223 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
25224 * cgraph.h: Reorder declarations so they match file of origin.
25225 (cgraph_create_empty_node): Declare.
25226 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
25227 (cgraph_copy_node_for_versioning): Likewise.
25228 (cgraph_function_versioning): Likewise.
25229 (cgraph_materialize_clone): Likewise.
25230 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
25231 (cgraph_materialize_all_clones): Likewise.
25232 * cgraphclones.c: New file.
25233 * Makefile.in: Update for cgraphclones.
25235 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
25238 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
25239 (ix86_rtx_costs): Handle SET.
25241 2012-05-08 Michael Matz <matz@suse.de>
25243 * basic-block.h (struct rtl_bb_info): Remove visited member and
25244 move head_ member to ...
25245 (struct basic_block_def.basic_block_il_dependent): ... the new
25246 member x, replacing but containing old member rtl.
25247 (enum bb_flags): New BB_VISITED flag.
25248 (BB_HEADER, BB_FOOTER): New macros.
25250 * jump.c (mark_all_labels): Adjust.
25251 * cfgcleanup.c (try_optimize_cfg): Adjust.
25252 * cfglayout.c (record_effective_endpoints): Adjust.
25253 (relink_block_chain): Ditto (and don't fiddle with visited).
25254 (fixup_reorder_chain): Adjust.
25255 (fixup_fallthru_exit_predecessor): Ditto.
25256 (cfg_layout_duplicate_bb): Ditto.
25257 * combine.c (update_cfg_for_uncondjump): Adjust.
25258 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
25259 (bb_visited_trace): New accessor.
25260 (mark_bb_visited): Move in front.
25261 (rotate_loop): Use bb_visited_trace.
25262 (find_traces_1_round): Ditto.
25263 (emit_barrier_after): Ditto.
25264 (copy_bb): Ditto, and initialize visited on resize.
25265 (reorder_basic_blocks): Initize visited member.
25266 (duplicate_computed_gotos): Clear bb flags at start, use
25269 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
25270 (rtl_verify_flow_info_1): Ditto.
25271 (cfg_layout_split_block): Ditto.
25272 (cfg_layout_delete_block): Ditto.
25273 (cfg_layout_merge_blocks): Ditto.
25274 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
25276 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
25279 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
25280 when a constant source operand matches an "I" constraint, the "no
25281 CC0 change" applies to a register-destination only, not a
25282 strict_low_part-destination.
25284 2012-05-08 Richard Guenther <rguenther@suse.de>
25286 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
25287 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
25289 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
25291 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
25293 * doc/avr-mmcu.texi: New auto-generated file.
25294 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
25295 to document all valid -mmcu= arguments.
25297 * config/avr/avr.h (arch_info_s): New struct definition.
25298 * config/avr/avr-devices.c (avr_texinfo): New variable.
25299 * config/avr/gen-avr-mmcu-texi.c: New file.
25300 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
25302 2012-05-08 Dehao Chen <dehao@google.com>
25304 * predict.c (find_qualified_ssa_name): New.
25305 (find_ssa_name_in_expr): New.
25306 (find_ssa_name_in_assign_stmt): New.
25307 (is_comparison_with_loop_invariant_p): New.
25308 (is_bound_expr_similar): New.
25309 (predict_iv_comparison): New.
25310 (predict_loops): Add heuristic for loop-nested branches that compare an
25311 induction variable to a loop bound variable.
25312 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
25314 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
25316 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
25317 TARGET_BDVER2 defines where appropriate.
25319 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
25321 * configure.ac (PLUGIN_LD): Rename into...
25322 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
25323 * config.in: Regenerate.
25324 * configure: Likewise.
25325 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
25327 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
25329 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
25330 computation using the precision of the index type.
25331 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
25332 (fold_array_ctor_reference): Do index computations in the index type.
25334 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
25336 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
25337 down to plus_constant.
25338 (expand_epilogue): Ditto.
25340 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
25342 * postreload.c (reload_cse_regs): Make static.
25343 * reload.h (reload_cse_regs): Remove prototype.
25345 2012-05-07 Richard Henderson <rth@redhat.com>
25347 * config/alpha/alpha.md (clear_cache): New pattern.
25349 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
25351 PR middle-end/53245
25352 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
25353 is folded to a type boundary value, verify that the resulting case
25354 label is still a care range.
25356 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
25358 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
25359 only for TARGET_GENERIC, when not optimizing for size.
25360 (*ffs<mode>_1): Ditto.
25362 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
25364 * tree-cfg.c (verify_gimple_switch): Tighten checks.
25366 2012-05-07 Jakub Jelinek <jakub@redhat.com>
25368 PR tree-optimization/53239
25369 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
25370 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
25372 2012-05-07 Richard Guenther <rguenther@suse.de>
25374 PR tree-optimization/53195
25375 * tree-inline.c (setup_one_parameter): Properly add referenced
25376 vars from the parameters new known value.
25378 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
25380 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
25381 (sched_branch_type): Remove.
25382 (m68k_sched_md_init_global): Don't allocate it.
25383 (m68k_sched_md_finish_global): Don't free it.
25384 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
25385 * config/m68k/m68k.md: Set the type of insns using
25386 m68k_sched_branch_type to bcc directly.
25388 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25390 * config/sol2.c (solaris_override_options): New function.
25391 * config/sol2-protos.h (solaris_override_options): Declare.
25392 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
25394 2012-05-07 Richard Guenther <rguenther@suse.de>
25396 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
25397 whether we failed to compute data dependences.
25398 (loop_prefetch_arrays): Fail if we failed.
25400 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
25401 Paolo Bonzini <bonzini@gnu.org>
25403 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
25404 Emit bsf when optimizing for size.
25405 (*ffs<mode>_1): Ditto.
25407 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25410 * config/sh/sh.c (sh_rtx_costs): Handle SET.
25412 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
25415 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
25416 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
25417 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
25419 (*bswapdi2_doubleword): New insn pattern.
25420 (*bswap<mode>2): Rename from *bswap<mode>2_1.
25422 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25424 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
25425 (mips_set_reg_reg_cost): Likewise.
25426 (mips_rtx_costs): Handle SET.
25428 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25430 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
25431 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
25432 to compute the cost of moves. Set the mode of the target register.
25434 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
25436 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
25437 plus_constant function.
25438 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
25439 that the mode is sensible.
25440 (use_anchored_address, round_push, allocate_dynamic_stack_space)
25441 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
25444 * alias.c (canon_rtx): Likewise.
25445 (init_alias_analysis): Likewise.
25446 * builtins.c (expand_builtin_return_addr)
25447 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
25448 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
25449 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
25450 (expand_builtin_stpcpy): Likewise.
25451 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
25452 (compute_argument_addresses, internal_arg_pointer_based_exp)
25453 (expand_call, emit_library_call_value_1): Likewise.
25454 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
25455 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
25456 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
25457 * cse.c (insert_const_anchor, find_reg_offset_for_const)
25458 (use_related_value, fold_rtx): Likewise.
25459 * cselib.c (cselib_subst_to_values): Likewise.
25460 * dse.c (record_store, check_mem_read_rtx): Likewise.
25461 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
25462 * emit-rtl.c (adjust_address_1): Likewise.
25463 * except.c (sjlj_emit_function_enter)
25464 (expand_builtin_extract_return_addr)
25465 (expand_builtin_frob_return_addr): Likewise.
25466 * expmed.c (expand_divmod): Likewise.
25467 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
25468 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
25469 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
25470 * function.c (assign_stack_local_1)
25471 (instantiate_virtual_regs_in_rtx): Likewise.
25472 * optabs.c (prepare_cmp_insn): Likewise.
25473 * recog.c (offsettable_address_addr_space_p): Likewise.
25474 * reload.c (find_reloads_address, form_sum)
25475 (find_reloads_subreg_address): Likewise.
25476 * reload1.c (init_reload, eliminate_regs_1)
25477 (eliminate_regs_in_insn): Likewise.
25478 * simplify-rtx.c (simplify_unary_operation_1)
25479 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
25480 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
25481 (vt_add_function_parameter): Likewise.
25483 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
25484 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
25485 * config/alpha/alpha.c (alpha_legitimize_address_1)
25486 (get_unaligned_address, alpha_expand_unaligned_load)
25487 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
25488 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
25489 (alpha_expand_builtin_establish_vms_condition_handler)
25490 (alpha_setup_incoming_varargs, emit_frame_store_1)
25491 (alpha_expand_prologue, alpha_expand_epilogue)
25492 (alpha_use_linkage): Likewise.
25493 * config/alpha/alpha.md: Likewise.
25495 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
25496 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
25497 (thumb_legitimize_address, arm_gen_load_multiple_1)
25498 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
25499 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
25500 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
25501 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
25502 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
25503 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
25504 (thumb_expand_movmemqi, arm_set_return_address)
25505 (thumb_set_return_address): Likewise.
25506 * config/arm/arm.md: Likewise.
25508 * config/avr/avr.c (avr_incoming_return_addr_rtx)
25509 (avr_prologue_setup_frame, expand_epilogue)
25510 (avr_const_address_lo16): Likewise.
25512 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
25513 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
25514 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
25515 (bfin_output_mi_thunk): Likewise.
25517 * config/c6x/c6x.c (c6x_initialize_trampoline)
25518 (c6x_output_mi_thunk): Likewise.
25520 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
25521 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
25523 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
25524 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
25525 (cris_emit_movem_store, cris_trampoline_init): Likewise.
25526 * config/cris/cris.md: Likewise.
25528 * config/darwin.c (machopic_indirect_data_reference)
25529 (machopic_legitimize_pic_address): Likewise.
25531 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
25532 (epiphany_expand_prologue, epiphany_expand_epilogue)
25533 (epiphany_trampoline_init): Likewise.
25534 * config/epiphany/epiphany.md: Likewise.
25536 * config/fr30/fr30.c (fr30_move_double): Likewise.
25538 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
25539 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
25540 (frv_index_memory, unspec_got_name, frv_find_base_term)
25541 (frv_output_dwarf_dtprel): Likewise.
25543 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
25544 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
25546 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
25547 * config/i386/i386.c (setup_incoming_varargs_64)
25548 (setup_incoming_varargs_ms_64, choose_baseaddr)
25549 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
25550 (ix86_emit_probe_stack_range, ix86_expand_prologue)
25551 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
25552 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
25553 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
25554 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
25555 (x86_output_mi_thunk): Likewise.
25556 * config/i386/i386.md: Likewise.
25558 * config/ia64/ia64.c (ia64_expand_load_address)
25559 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
25560 (do_spill, ia64_trampoline_init): Likewise.
25562 * config/iq2000/iq2000.c (iq2000_va_start)
25563 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
25564 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
25565 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
25567 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
25569 * config/m32c/m32c.c (m32c_return_addr_rtx)
25570 (m32c_expand_insv): Likewise.
25572 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
25573 (m32r_legitimize_pic_address, m32r_print_operand)
25574 (m32r_print_operand_address): Likewise.
25576 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
25577 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
25578 (EH_RETURN_HANDLER_RTX): Likewise.
25579 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
25580 (m68k_expand_epilogue, legitimize_pic_address)
25581 (m68k_output_mi_thunk): Likewise.
25582 * config/m68k/m68k.md: Likewise.
25584 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
25585 (mcore_expand_epilog): Likewise.
25586 * config/mcore/mcore.md: Likewise.
25588 * config/mep/mep.c (mep_allocate_initial_value)
25589 (mep_expand_prologue, mep_expand_epilogue): Likewise.
25591 * config/microblaze/microblaze.c (double_memory_operand)
25592 (microblaze_block_move_loop): Likewise.
25594 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
25595 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
25596 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
25597 (mips_expand_prologue, mips_epilogue_set_cfa)
25598 (mips_expand_epilogue): Likewise.
25599 * config/mips/mips.md: Likewise.
25601 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
25602 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
25604 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
25605 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
25607 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
25608 (EH_RETURN_HANDLER_RTX): Likewise.
25609 * config/moxie/moxie.c (moxie_static_chain): Likewise.
25611 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
25612 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
25613 (pa_return_addr_rtx, hppa_builtin_saveregs)
25614 (pa_trampoline_init): Likewise.
25615 * config/pa/pa.md: Likewise.
25617 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
25619 * config/picochip/picochip.c (picochip_static_chain): Likewise.
25621 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
25622 * config/rs6000/rs6000.c (rs6000_legitimize_address)
25623 (setup_incoming_varargs, print_operand, rs6000_return_addr)
25624 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
25625 (rs6000_emit_epilogue)
25626 (rs6000_machopic_legitimize_pic_address): Likewise.
25628 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
25630 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
25631 (DYNAMIC_CHAIN_ADDRESS): Likewise.
25632 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
25633 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
25634 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
25635 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
25636 (s390_emit_epilogue, s390_function_profiler): Likewise.
25637 * config/s390/s390.md: Likewise.
25639 * config/score/score.c (score_add_offset, score_prologue): Likewise.
25641 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
25642 (sh_output_mi_thunk): Likewise.
25643 * config/sh/sh.md: Likewise.
25645 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
25646 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
25647 * config/sparc/sparc.c (sparc_legitimize_pic_address)
25648 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
25649 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
25650 (emit_and_preserve): Likewise.
25651 * config/sparc/sparc.md: Likewise.
25653 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
25654 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
25655 (spu_setup_incoming_varargs, ea_load_store_inline)
25656 (spu_expand_load): Likewise.
25658 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
25659 (combine_bnp): Likewise.
25661 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
25662 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
25663 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
25665 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
25666 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
25667 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
25669 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
25670 * config/v850/v850.md: Likewise.
25672 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
25673 (EH_RETURN_HANDLER_RTX): Likewise.
25674 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
25675 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
25676 (print_operand_address, vax_trampoline_init): Likewise.
25678 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
25679 (xtensa_function_value_regno_p): Likewise.
25681 2012-05-04 Andrew Pinski <apinski@cavium.com>
25683 * expr.c (get_def_for_expr_class): New function.
25684 (convert_tree_comp_to_rtx): New function.
25685 (expand_cond_expr_using_cmove): New function.
25686 (expand_expr_real_2 <case COND_EXPR>): Call
25687 expand_cond_expr_using_cmove first and return if it succeeds.
25688 Remove the check for HAVE_conditional_move since we should have
25689 already converted it to a conditional move.
25690 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
25691 modes of DImode for 32bits and TImode.
25693 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
25696 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
25697 (print_md_ptr_loc, print_c_condition): Use them.
25698 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
25699 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
25700 attr_file, dfa_file, latency_file): New global variables.
25701 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
25702 write_upcase, write_indent, write_length_unit_log, write_test_expr,
25703 write_attr_get, write_insn_cases, write_eligible_delay,
25704 write_const_num_delay_slots): Accept FILE pointer and toss it around.
25705 Update all callers.
25706 (write_header, open_outfile, handle_arg): New funcions.
25707 (make_automaton_attrs): Write prototypes as extern to the output
25709 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
25710 names from the command line. Open the output files and write out
25711 internal functions for DFA functions to dfa_file_name, insn latency
25712 functions to latency_file_name, and everything else to attr_file.
25713 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
25714 (BACKEND): Build libbackend first.
25715 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
25716 (.PRECIOUS): Likewise.
25717 (insn-dfatab.o): New rule.
25718 (insn-latencytab.o): New rule.
25719 (simple_rtl_generated_c): Do not include insn-attrtab.c.
25720 (s-attrtab): New rule.
25722 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
25724 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
25725 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
25726 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
25727 * reorg.c (get_jump_flags): Do not set the removed flags.
25729 * doc/md.texi (attr_flag): Update for abovementioned changes.
25731 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
25734 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
25735 (TARGET_CMOV): Rename from TARGET_CMOVE.
25736 (TARGET_CMOVE): New define.
25737 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
25738 Do not set TARGET_CMOVE here.
25740 2012-05-04 Dodji Seketeli <dodji@redhat.com>
25742 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
25743 * opts.c (finish_options): Activate -Wunused-local-typedefs if
25744 -Wunused is activated.
25745 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
25747 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25749 * config/s390/s390.md (*movmem_short, *clrmem_short)
25750 (*cmpmem_short): Move the mode check from the insn condition to
25753 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
25755 PR tree-optimization/52633
25756 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
25757 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
25758 (vect_recog_over_widening_pattern): Remove handling of code that was
25759 already detected as over-widening pattern. Remove special handling
25760 of "unsigned" cases. Instead, support general case of conversion
25761 of the shift result to another type.
25763 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
25765 * tree-vect-patterns.c (vect_single_imm_use): New function.
25766 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
25767 (vect_recog_over_widening_pattern): Likewise.
25768 (vect_recog_widen_shift_pattern): Likewise.
25770 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
25772 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
25773 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
25774 (vect_recog_widen_mult_pattern): Likewise.
25775 (vect_operation_fits_smaller_type): Likewise.
25776 (vect_recog_over_widening_pattern): Likewise.
25777 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
25779 2012-05-04 Richard Guenther <rguenther@suse.de>
25782 * lto-wrapper.c (merge_and_complain): Complain about mismatches
25783 of -freg-struct-return and -fpcc-struct-return.
25784 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
25785 from the input file options and ignore those from the link
25788 2012-05-04 Richard Guenther <rguenther@suse.de>
25790 PR tree-optimization/53168
25791 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
25792 memory reads when the result is a constant we can pun.
25794 2012-05-04 Richard Guenther <rguenther@suse.de>
25796 * common.opt (flto-report): Do not mark as Optimization.
25798 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
25801 * recog.c (constrain_operands): If extra constraints are present, also
25802 accept pseudo-registers with equivalent memory locations during reload.
25804 2012-05-04 Olivier Hainque <hainque@adacore.com>
25806 * collect2.c (may_unlink_output_file): New global.
25807 (maybe_unlink): Honor it.
25808 * collect2.h: Add extern for it.
25809 * tlink.c (do_tlink): Set it to true if the link succeeded.
25811 2012-05-04 Olivier Hainque <hainque@adacore.com>
25813 * gcc.c (eval_spec_function): Finalize/restore the current string
25814 obstack state as part of the context push/pop operations.
25816 2012-05-04 Bin Cheng <bin.cheng@arm.com>
25818 PR rtl-optimization/52804
25819 * reload1.c (reload_reg_reaches_end_p): Check whether successor
25820 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
25821 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
25822 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
25823 RELOAD_FOR_OUTADDR_ADDRESS.
25825 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
25828 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
25829 for macro expansion.
25831 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
25833 * flags.h (flag_permissive): Do not declare.
25834 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
25836 * toplev.c (flag_permissive): Do not define.
25837 * c-tree.h (system_header_p): Delete unused.
25839 2012-05-03 David S. Miller <davem@davemloft.net>
25842 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
25843 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
25844 (sparc_emit_float_lib_cmp): Likewise.
25846 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25849 * config/rs6000/rs6000.md (bswapdi splitters): If
25850 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
25851 default) is used, generate an alternate sequence that does not
25852 depend on using indexed addressing.
25854 2012-05-03 Jason Merrill <jason@redhat.com>
25856 * gengtype.c (write_types): Fix warning message.
25857 (write_local): Likewise.
25859 2012-05-02 Jason Merrill <jason@redhat.com>
25861 * dwarf2out.c (struct external_ref, build_local_stub): New.
25862 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
25863 (optimize_external_refs, optimize_external_refs_1): New.
25864 (change_AT_die_ref): New.
25865 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
25866 (build_abbrev_table): Take the external refs hashtable.
25867 (output_comp_unit): Get it from optimize_external_refs and pass it in.
25869 2012-05-03 Jan Hubicka <jh@suse.cz>
25871 PR middle-end/53093
25872 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
25874 2012-05-03 Jan Hubicka <jh@suse.cz>
25876 PR middle-end/53106
25877 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
25879 2012-05-03 Jason Merrill <jason@redhat.com>
25881 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
25882 use_debug_types to discriminate the die_id union.
25883 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
25884 (build_abbrev_table, output_die): Likewise.
25885 (prune_unused_types_walk_attribs): Likewise.
25886 (generate_type_signature, copy_declaration_context): Set it.
25887 (remove_child_or_replace_with_skeleton): Set it.
25888 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
25889 check use_debug_types.
25890 (dwarf2out_finish): Do break_out_includes after .debug_types.
25892 2012-05-03 Jason Merrill <jason@redhat.com>
25894 * dwarf2out.c (modified_type_die): Use scope_die_for.
25895 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
25896 (uses_local_type_r, uses_local_type): New.
25897 (scope_die_for): Keep a type that uses a local type in local scope.
25898 Use get_context_die for namespace and type scope.
25900 2012-05-03 Jason Merrill <jason@redhat.com>
25902 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
25904 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
25905 (dwarf2out_finish): Likewise.
25907 2012-05-03 Martin Jambor <mjambor@suse.cz>
25909 * builtins.c (get_object_alignment_1): Return whether we can determine
25910 the alignment or conservatively assume byte alignment. Return the
25911 alignment by reference. Use get_pointer_alignment_1 for dereference
25913 (get_pointer_alignment_1): Return whether we can determine the
25914 alignment or conservatively assume byte alignment. Return the
25915 alignment by reference. Use get_ptr_info_alignment to get SSA name
25917 (get_object_alignment): Update call to get_object_alignment_1.
25918 (get_object_or_type_alignment): Likewise, fall back to type alignment
25919 only when it returned false.
25920 (get_pointer_alignment): Update call to get_pointer_alignment_1.
25921 * fold-const.c (get_pointer_modulus_and_residue): Update call to
25922 get_object_alignment_1.
25923 * ipa-prop.c (ipa_modify_call_arguments): Update call to
25924 get_pointer_alignment_1.
25925 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
25926 of MEM_REF or TARGET_MEM_REF only when it returns false.
25927 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
25928 get_object_alignment_1.
25929 (ccp_finalize): Use set_ptr_info_alignment.
25930 * tree.h (get_object_alignment_1): Update declaration.
25931 (get_pointer_alignment_1): Likewise.
25932 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
25933 (dump_gimple_stmt): Likewise.
25934 * tree-flow.h (ptr_info_def): Updated comments of fields align and
25936 (get_ptr_info_alignment): Declared.
25937 (mark_ptr_info_alignment_unknown): Likewise.
25938 (set_ptr_info_alignment): Likewise.
25939 (adjust_ptr_info_misalignment): Likewise.
25940 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
25941 and set alignment of SSA names.
25942 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
25943 mark_ptr_info_alignment_unknown.
25944 * tree-ssanames.c (get_ptr_info_alignment): New function.
25945 (mark_ptr_info_alignment_unknown): Likewise.
25946 (set_ptr_info_alignment): Likewise.
25947 (adjust_ptr_info_misalignment): Likewise.
25948 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
25949 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25951 (bump_vector_ptr): Likewise.
25952 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
25953 (vectorizable_store): Likewise.
25954 (vectorizable_load): Likewise.
25956 2012-05-03 Michael Matz <matz@suse.de>
25958 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
25959 in front of basic_block_def.
25960 (struct basic_block_def): Make il.gimple the full struct, not a
25962 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
25964 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
25965 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
25966 NULL il.gimple, which can't happen anymore.
25967 * gimple.h (bb_seq): il.gimple can't be NULL.
25968 (bb_seq_add): Ditto.
25969 (set_bb_seq): Adjust.
25970 (gsi_start_bb, gsi_last_bb): Tidy.
25971 * lto-streamer-in.c (make_new_block): Don't zero members that
25972 are zeroed already, don't allocate a gimple_bb_info.
25973 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
25974 (remove_bb): Clear all il.gimple members.
25975 (gimple_verify_flow_info): Adjust for flat il.gimple.
25976 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
25978 * coretypes.h (const_gimple_seq): Remove typedef.
25979 * gimple.h (gimple_seq_first): Take gimple_seq.
25980 (gimple_seq_first_stmt): Ditto.
25981 (gimple_seq_last): Ditto.
25982 (gimple_seq_last_stmt): Ditto.
25983 (gimple_seq_empty_p): Ditto.
25985 2012-05-03 Richard Guenther <rguenther@suse.de>
25987 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
25989 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
25990 (compute_avail): Do not add possibly trapping operations to
25991 EXP_GEN if they might not be executed in the block.
25993 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
25995 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
25997 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
25999 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
26000 information as early as possible. Update dominance info instead of
26003 2012-05-03 Richard Guenther <rguenther@suse.de>
26005 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
26006 (union_contains_value): Remove.
26007 (vro_valid_in_sets): Likewise.
26008 (op_valid_in_sets): New function.
26009 (valid_in_sets): Use op_valid_in_sets.
26010 (insert_into_preds_of_block): Move dumping ...
26011 (do_regular_insertion): ... here.
26012 (do_partial_partial_insertion): ... and here. Dump that
26013 we've found a partial partial redundancy.
26014 (insert): Dump the current insert iteration.
26016 2012-05-03 Jakub Jelinek <jakub@redhat.com>
26019 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
26020 append program name to it and pass that as first argument
26021 to make_relative_prefix. Always pass standard_libexec_prefix
26022 as last argument to make_relative_prefix. If
26023 make_relative_prefix returns NULL, fall back to
26024 standard_libexec_prefix.
26027 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
26031 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
26032 mode, return that mode.
26035 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
26036 define __ATOMIC_HLE_* macros here.
26037 (ix86_target_macros): But here, using cpp_define_formatted.
26039 2012-05-03 Richard Guenther <rguenther@suse.de>
26041 PR tree-optimization/53144
26042 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
26044 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
26045 with SSA name values.
26046 (vn_reference_lookup_3): Adjust callers.
26048 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26050 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
26051 has_fma4 for AMD processors with both fma3 and fma4 support.
26053 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
26056 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
26059 2012-05-03 Michael Matz <matz@suse.de>
26062 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
26063 (dse_enter_block): Properly iterate the whole sequence even
26064 if the last statement was removed.
26066 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
26068 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
26069 unset flag_jump_tables.
26070 * stmt.c (expand_case): Remove special flag_pic case conditional
26071 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
26073 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
26075 * common/config/s390/s390-common.c (s390_option_optimization_table):
26076 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
26077 default when optimizing.
26079 2012-05-02 Martin Jambor <mjambor@suse.cz>
26082 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
26083 of a variable when the contect is a function.
26085 2012-05-02 Michael Matz <matz@suse.de>
26087 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
26088 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
26089 (const_gimple_seq_node): Remove.
26090 (gimple_seq_node): Typedef as gimple.
26091 (struct gimple_statement_base): Add next and prev members,
26092 adjust all WORD markers in using structs.
26093 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
26094 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
26095 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
26096 gimple are the same.
26097 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
26098 gimple_seq, adjust.
26099 (gimple_init_singleton): New function.
26100 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
26101 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
26102 (gsi_stmt): Adjust.
26103 (gsi_stmt_ptr): Remove.
26104 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
26106 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
26107 again, adjust for above changes.
26108 (update_call_edge_frequencies): Adjust for above changes.
26109 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
26110 (gsi_insert_seq_nodes_after): Ditto.
26111 (gsi_split_seq_after): Ditto.
26112 (gsi_set_stmt): Ditto.
26113 (gsi_split_seq_before): Ditto.
26114 (gsi_remove): Ditto.
26115 (gsi_insert_seq_before_without_update): Don't free sequence.
26116 (gsi_insert_seq_after_without_update): Ditto.
26117 (gsi_replace): Assert some more invariants.
26118 (gsi_insert_before_without_update, gsi_insert_after_without_update):
26120 (gsi_for_stmt): Don't search for stmt.
26121 (gsi_insert_on_edge_immediate): Tidy.
26123 * gimple.c (gimple_alloc_k): Remove "sequences".
26124 (gimple_seq_cache): Remove.
26125 (gimple_alloc_stat): Make stmt a singleton sequence.
26126 (gimple_seq_alloc, gimple_seq_free): Remove.
26127 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
26128 (gimple_copy): Ditto.
26129 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
26130 create iterator from correct sequence.
26131 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
26133 2012-05-02 Michael Matz <matz@suse.de>
26135 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
26137 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
26138 sequence, lazily allocate it.
26139 (bb_seq_addr): New function.
26140 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
26141 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
26142 (gsi_none): New function.
26143 (gsi_start_bb): Adjust.
26144 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
26145 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
26146 (gsi_last_bb): Adjust.
26148 * tree-flow-inline.h (phi_nodes_ptr): New function.
26150 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
26151 datastructure and interface change.
26152 (gsi_insert_seq_before_without_update): Ditto.
26153 (gsi_insert_seq_nodes_after): Ditto.
26154 (gsi_insert_seq_after_without_update): Ditto.
26155 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
26156 (gsi_split_seq_before): Ditto.
26157 (gsi_start_phis): Adjust.
26158 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
26159 (vect_transform_loop): Ditto.
26160 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
26161 gimple_seq_copy): Don't use gimple_seq_alloc.
26162 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
26163 (gimplify_seq_add_seq): Ditto.
26164 * lto-streamer-in.c (make_new_block): Ditto.
26165 * tree-cfg.c (create_bb): Ditto.
26166 * tree-sra.c (initialize_parameter_reductions): Ditto.
26168 2012-05-02 Michael Matz <matz@suse.de>
26170 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
26171 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
26172 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
26173 set_bb_seq): Move down to after gimple_statement_d definition.
26175 2012-05-02 Michael Matz <matz@suse.de>
26177 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
26178 gsi_replace_with_seq, instead of inserting itself.
26179 * gimple-iterator.c (gsi_replace_with_seq): New function.
26180 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
26181 iterator instead of statement, advance it.
26182 (ssa_forward_propagate_and_combine): Adjust call to above.
26184 2012-05-02 Michael Matz <matz@suse.de>
26186 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
26188 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
26189 * tree-nested.c (walk_gimple_omp_for): Ditto.
26190 * trans-mem.c (lower_transaction): Ditto.
26191 * tree-eh.c (do_return_redirection): Ditto.
26192 (do_goto_redirection): Ditto.
26193 (lower_try_finally_switch): Ditto.
26194 * gimplify.c (gimplify_stmt): Ditto.
26195 (gimplify_scan_omp_clauses): Ditto.
26196 (gimplify_omp_for): Ditto.
26197 (gimplify_function_tree): Ditto.
26198 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
26199 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
26200 (mf_build_check_statement_for): Ditto.
26201 (mx_register_decls): Ditto.
26202 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
26203 and don't use itertors to append.
26204 (insert_stmts): Ditto.
26205 (insert_out_of_ssa_copy): Ditto.
26206 (insert_out_of_ssa_copy_on_edge): Ditto.
26208 2012-05-02 Michael Matz <matz@suse.de>
26210 * gimple.h (gimple_bind_body_ptr): New function.
26211 (gimple_bind_body): Use it.
26212 (gimple_catch_handler): Use gimple_catch_handler_ptr.
26213 (gimple_eh_filter_failure_ptr): New function.
26214 (gimple_eh_filter_failure): Use it.
26215 (gimple_eh_else_n_body_ptr): New function.
26216 (gimple_eh_else_n_body): Use it.
26217 (gimple_eh_else_e_body_ptr): New function.
26218 (gimple_eh_else_e_body): Use it.
26219 (gimple_try_eval_ptr): New function.
26220 (gimple_try_eval): Use it.
26221 (gimple_try_cleanup_ptr): New function.
26222 (gimple_try_cleanup): Use it.
26223 (gimple_wce_cleanup_ptr): New function.
26224 (gimple_wce_cleanup): Use it.
26225 (gimple_omp_body_ptr): New function.
26226 (gimple_omp_body): Use it.
26227 (gimple_omp_for_pre_body_ptr): New function.
26228 (gimple_omp_for_pre_body): Use it.
26229 (gimple_transaction_body_ptr): New function.
26230 (gimple_transaction_body): Use it.
26231 (gsi_split_seq_before): Adjust to return nothing and take pointer
26233 (gsi_set_stmt): Declare.
26234 (gsi_replace_with_seq): Declare.
26235 (walk_gimple_seq_mod): Declare.
26236 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
26238 * gimple-iterator.c (gsi_set_stmt): New function.
26239 (gsi_split_seq_before): Return new sequence via pointer argument.
26240 (gsi_replace): Use gsi_set_stmt.
26242 * tree-ssa-loop-im.c (move_computations_stmt): First remove
26244 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
26245 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
26247 (reserve_phi_args_for_new_edge): Change call to above,
26250 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
26251 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
26252 iterators. Adjust call to lower_omp.
26253 (lower_lastprivate_clauses): Adjust call to lower_omp.
26254 (lower_reduction_clauses): Ditto.
26255 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
26256 (lower_omp_sections): Don't explicitely count sequence length,
26257 nullify lowered bodies earlier, ensure stmts are part of only
26258 one sequence, adjust call to lower_omp.
26259 (lower_omp_single): Ensure stmts are part of only one sequence,
26260 adjust call to lower_omp.
26261 (lower_omp_master): Ditto.
26262 (lower_omp_ordered): Ditto.
26263 (lower_omp_critical): Ditto.
26264 (lower_omp_for): Ditto.
26265 (lower_omp_taskreg): Ditto, tidy.
26266 (lower_omp_1): Adjust calls to lower_omp.
26267 (execute_lower_omp): Ditto.
26268 (lower_omp): Adjust to take pointer to sequence.
26269 (diagnose_sb_2): Use walk_gimple_seq_mod.
26270 (diagnose_omp_structured_block_errors): Ditto and set possibly
26271 changed function body.
26272 * gimple-low.c (lower_function_body): Set function body after
26274 (lower_sequence): Adjust to take pointer to sequence.
26275 (lower_omp_directive): Ensure stmt isn't put twice into the
26276 sequence, adjust call to lower_sequence.
26277 (lower_stmt): Adjust calls to lower_sequence.
26278 (lower_gimple_bind): Ditto.
26279 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
26280 * tree-nested.c (walk_body): Take pointer to sequence, use
26281 walk_gimple_seq_mod.
26282 (walk_function): Adjust call to walk_body, set possibly changed body.
26283 (walk_gimple_omp_for): Adjust calls to walk_body.
26284 (convert_nonlocal_omp_clauses): Ditto.
26285 (convert_nonlocal_reference_stmt): Ditto.
26286 (convert_local_omp_clauses): Ditto.
26287 (convert_local_reference_stmt): Ditto.
26288 (convert_tramp_reference_stmt): Ditto.
26289 (convert_gimple_call): Ditto.
26290 (convert_nl_goto_reference): Use local iterator copy.
26291 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
26292 but taking pointer to sequence, ensure gsi_start is called with
26294 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
26295 asserting that the sequence head didn't change.
26296 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
26297 walk_gimple_seq_mod.
26298 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
26299 (execute_lower_tm): Ditto, and set possibly changed body.
26300 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
26301 call gsi_start with that lvalue.
26302 (replace_goto_queue_stmt_list): Ditto.
26303 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
26304 (replace_goto_queue): Ditto.
26305 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
26306 (lower_try_finally_onedest): Ditto.
26307 (lower_try_finally_copy): Ditto.
26308 (lower_try_finally_switch): Ditto.
26309 (lower_try_finally): Ditto.
26310 (lower_eh_filter): Ditto.
26311 (lower_eh_must_not_throw): Ditto.
26312 (lower_cleanup): Ditto.
26313 (lower_eh_constructs_2): Ditto.
26314 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
26315 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
26316 set possibly changed body.
26317 (optimize_double_finally): Call gsi_start with lvalue.
26319 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
26320 (gimple_split_block): Ditto.
26321 (gimple_merge_blocks): Use gsi_start_phis.
26322 (move_stmt_r): Use walk_gimple_seq_mod.
26323 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
26324 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
26325 (rebuild_cgraph_edges): Ditto.
26326 (cgraph_rebuild_references): Ditto.
26327 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
26328 * tree-inline.c (copy_phis_for_bb): Ditto.
26329 * tree-ssa-dce.c: Ditto.
26331 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
26333 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
26334 Andi Kleen <ak@linux.intel.com>
26336 * coretypes.h (MEMMODEL_MASK): New.
26337 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
26338 and return new variable.
26339 (expand_builtin_atomic_exchange): Mask memmodel values.
26340 (expand_builtin_atomic_compare_exchange): Ditto.
26341 (expand_builtin_atomic_load): Ditto.
26342 (expand_builtin_atomic_store): Ditto.
26343 (expand_builtin_atomic_clear): Ditto.
26344 * doc/extend.texi: Mention port-dependent memory model flags.
26345 * config/i386/cpuid.h (bit_HLE): New.
26346 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26348 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
26349 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
26350 (ix86_target_string)<-mhle>: New.
26351 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
26352 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
26353 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
26354 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
26355 enabled for generic, generic64 and core-avx2.
26356 (ix86_print_operand): Generate HLE lock prefixes.
26357 (ix86_memmodel_check): New.
26358 (TARGET_MEMMODEL_CHECK): Ditto.
26359 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
26360 (IX86_HLE_ACQUIRE): Ditto.
26361 (IX86_HLE_RELEASE): Ditto.
26362 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
26363 * config/i386/i386.opt (mhle): Ditto.
26364 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
26365 success model to instruction emitter.
26366 (atomic_fetch_add<mode>): Ditto.
26367 (atomic_exchange<mode>): Ditto.
26368 (atomic_add<mode>): Ditto.
26369 (atomic_sub<mode>): Ditto.
26370 (atomic_<code><mode>): Ditto.
26371 (*atomic_compare_and_swap_doubledi_pic): Ditto.
26372 (atomic_compare_and_swap_single<mode>): Define and use argument
26374 (atomic_compare_and_swap_double<mode>): Ditto.
26375 * configure.ac: Check if assembler support HLE prefixes.
26376 * configure: Regenerate.
26377 * config.in: Ditto.
26379 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
26381 PR middle-end/53153
26382 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
26384 (gimplify_switch_expr): ... here.
26385 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
26386 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
26387 to clean up case labels with values outside the index type range.
26388 (simplify_gimple_switch): Call it if something changed.
26389 Remove strange and unnecessary assert.
26391 2012-05-02 Richard Guenther <rguenther@suse.de>
26393 * fold-const.c (div_if_zero_remainder): sizetypes no longer
26395 (int_const_binop_1): New worker for int_const_binop with
26396 overflowable parameter. Pass it through to force_fit_type_double.
26397 (int_const_binop): Wrap around int_const_binop_1 with overflowable
26399 (size_binop_loc): Call int_const_binop_1 with overflowable equal
26400 to minus one, forcing overflow detection for even unsigned types.
26401 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
26402 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
26403 * stor-layout.c (initialize_sizetypes): sizetypes no longer
26405 (layout_type): For zero-sized arrays ignore overflow on the
26407 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
26408 (bit_value_binop_1): Likewise.
26409 * tree.c (double_int_to_tree): Likewise.
26410 (double_int_fits_to_tree_p): Likewise.
26411 (force_fit_type_double): Likewise.
26412 (host_integerp): Likewise.
26413 (int_fits_type_p): Likewise.
26414 * varasm.c (output_constructor_regular_field): Sign-extend the
26415 field-offset to cater for negative offsets produced by the Ada
26417 * omp-low.c (extract_omp_for_data): Convert the loop step to
26418 signed for pointer adjustments.
26420 2012-05-02 Richard Guenther <rguenther@suse.de>
26422 * tree.c (valid_constant_size_p): New function.
26423 * tree.h (valid_constant_size_p): Declare.
26424 * cfgexpand.c (expand_one_var): Adjust check for too large
26425 variables by using valid_constant_size_p.
26426 * varasm.c (assemble_variable): Likewise.
26428 * c-decl.c (grokdeclarator): Properly check for sizes that
26429 cover more than half of the address-space.
26431 2012-05-02 Jakub Jelinek <jakub@redhat.com>
26433 PR tree-optimization/53163
26434 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
26435 return value from compute_all_dependences.
26437 PR rtl-optimization/53160
26438 * ree.c (combine_reaching_defs): Handle the case where cand->insn
26439 has been modified by ree pass already.
26441 2012-05-01 Ian Lance Taylor <iant@google.com>
26444 * c-decl.c (build_compound_literal): Make the decl readonly if it
26445 an array of a readonly type.
26446 * gimplify.c (gimplify_compound_literal_expr): Add fallback
26447 parameter. Change all callers. If the decl is not addressable
26448 and is not an l-value, make it readonly.
26450 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
26452 * ira.c (allocated_reg_info_size): New static variable.
26453 (expand_reg_info): Manage it. Call
26454 setup_preferred_alternate_classes_for_new_pseudos.
26455 (ira): Don't do it here. Remove local allocated_reg_info_size,
26456 set the global before calling find_moveable_pseudos.
26457 (find_moveable_pseudos): Call expand_reg_info rather than
26460 2012-05-01 Richard Henderson <rth@redhat.com>
26462 * common.opt (fsync-libcalls): New.
26463 * doc/invoke.texi: Document it.
26464 * optabs.c (init_sync_libfuncs): Honor it.
26466 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
26467 Richard Sandiford <r.sandiford@uk.ibm.com>
26469 PR rtl-optimization/52543
26470 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
26472 * lower-subreg.h: New file.
26473 * target-globals.h (this_target_lower_subreg): Declare.
26474 (target_globals): Add lower_subreg;
26475 (restore_target_globals): Restore this_target_lower_subreg.
26476 * target-globals.c: Include it.
26477 (default_target_globals): Add default_target_lower_subreg.
26478 (save_target_globals): Initialize target_lower_subreg.
26479 * rtl.h (init_lower_subreg): Added declaration.
26480 * toplev.c (backend_init_target): Call initializer for lower-subreg
26482 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
26483 (default_target_lower_subreg): New variable.
26484 (this_target_lower_subreg): Likewise.
26485 (twice_word_mode, choices): New macros.
26486 (shift_cost, compute_splitting_shift, compute_costs)
26487 (init_lower_subreg): New functions.
26488 (resolve_simple_move): Add speed_p argument. Check choices.
26489 (find_pseudo_copy): Don't check the mode size here.
26490 (resolve_simple_move): Assert the mode size.
26491 (find_decomposable_shift_zext): Add speed_p argument and return
26492 a bool. Check choices.
26493 (resolve_shift_zext): Add comment.
26494 (dump_shift_choices, dump_choices): New functions.
26495 (decompose_multiword_subregs): Dump list of profitable
26496 transformations. Add code to skip non profitable transformations.
26497 Update calls to simple_move and find_decomposable_shift_zext.
26499 2012-05-01 Ian Bolton <ian.bolton@arm.com>
26500 Sameera Deshpande <sameera.deshpande@arm.com>
26501 Greta Yorsh <greta.yorsh@arm.com>
26503 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
26504 (thumb1_unexpanded_epilogue): ...this.
26505 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
26506 (thumb1_unexpanded_epilogue): ...this.
26507 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
26508 (thumb1_unexpanded_epilogue): ...this.
26510 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
26512 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
26513 comparing enumeration values. Update comments.
26515 2012-05-01 Alan Modra <amodra@gmail.com>
26518 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
26519 load_cr_save, add_crlr_cfa_restore): New functions.
26520 (rs6000_restore_saved_cr): Rename to..
26521 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
26522 (rs6000_emit_epilogue): Use new functions. Adjust condition
26523 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
26524 regs when using out-of-line restore only when shrink wrapping.
26526 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
26528 PR middle-end/53136
26529 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
26530 calls to cgraph_node_name in xstrdup.
26531 (ipa_make_edge_direct_to_target): Ditto.
26532 * cgraph.c (dump_cgraph_node): Ditto.
26533 * tree-sra.c (convert_callers_for_node): Ditto.
26534 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
26535 * ipa-cp.c (perhaps_add_new_callers): Ditto.
26536 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
26537 (cgraph_materialize_all_clones): Ditto.
26538 * ipa-inline.c (report_inline_failed_reason): Ditto.
26539 (want_early_inline_function_p): Ditto.
26540 (edge_badness): Ditto.
26541 (update_edge_key): Ditto.
26542 (flatten_function): Ditto.
26543 (ipa_inline): Ditto.
26544 (inline_always_inline_functions): Ditto.
26545 (early_inline_small_functions): Ditto.
26547 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
26550 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
26551 constraints 0 and 1.
26553 012-04-30 Jan Hubicka <jh@suse.cz>
26555 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
26556 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
26557 (cgraph_add_to_same_comdat_group): Remove.
26558 (cgraph_add_asm_node): Move to cgraphunit.c.
26559 (cgraph_make_decl_local): Move to symtab.c
26560 (cgraph_make_node_local_1): Update.
26561 (cgraph_can_remove_if_no_direct_calls_and): Update.
26562 (used_from_object_file_p): Update.
26563 (resolution_used_from_other_file_p): Move to symtab.c
26564 (cgraph_used_from_object_file_p): move to symtab.c
26565 (verify_cgraph_node): Verify same comdat groups.
26566 * cgraph.h (cgraph_asm_node): Rename to ...
26567 (asm_node): ... this one.
26568 (cgraph_asm_nodes): Rename to ...
26569 (asm_nodes): ... this one.
26570 (symtab_add_to_same_comdat_group): New function.
26571 (symtab_dissolve_same_comdat_group_list): New function.
26572 (symtab_used_from_object_file_p): Declare.
26573 (symtab_make_decl_local): Declare.
26574 (cgraph_add_to_same_comdat_group): Remove.
26575 (cgraph_add_asm_node): Remove.
26576 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
26578 (cgraph_finalize_compilation_unit): Rename to ...
26579 (finalize_compilation_unit): ... this one.
26580 (cgraph_optimize): Rename to ....
26581 (compile): ... this one.
26582 (add_asm_node): Declare.
26583 (fixup_same_cpp_alias_visibility): Declare.
26584 (cgraph_make_decl_local): Remove.
26585 (varpool_assemble_pending_decls): Rename to ...
26586 (varpool_output_variables): ... this one.
26587 (varpool_remove_unreferenced_decls): Remove.
26588 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
26589 (preserve_function_body_p): Make static.
26590 * toplev.c (compile_file): Update comments; update.
26591 * cgraphunit.c: Update comments.
26592 (cgraph_expand_all_functions): Rename to ...
26593 (expand_all_functions): ... this one; update.
26594 (cgraph_mark_functions_to_output): Rename to ...
26595 (mark_functions_to_output): ... this one; cleanup.
26596 (cgraph_output_pending_asms): Remove prototype.
26597 (asm_nodes, asm_last_node): New static vars.
26598 (cgraph_process_new_functions): Update.
26599 (cgraph_reset_node): Cleanup; add comment.
26600 (cgraph_add_new_function): Update.
26601 (cgraph_output_pending_asms): Rename to ...
26602 (output_asm_statements): ... this one.
26603 (add_asm_node): New function.
26604 (fixup_same_cpp_alias_visibility): New function based on code
26605 in cgraph_analyze_function.
26606 (cgraph_analyze_function): Use it.
26607 (cgraph_order_sort): Update.
26608 (cgraph_output_in_order): Update.
26609 (cgraph_function_versioning): Update.
26610 (cgraph_optimize): Rename to ...
26611 (compile): ... this one; initialize streamer hooks here.
26612 (cgraph_finalize_compilation_unit): Rename to ...
26613 (finalize_compilation_unit): ... this one; do not initialize streamer
26615 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
26616 * dwarf2out.c: Update ocmment.
26617 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
26618 * method.c (use_thunk): Likewise.
26619 * semantics.c (maybe_add_lambda_conv_op): Likewise.
26620 * decl2.c (maybe_emit_vtables): Likewise.
26621 (cp_write_global_declarations): Use finalize_compilation_unit.
26622 * parser.c (cp_parser_asm_definition): Use add_asm_node.
26623 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
26624 * c-decl.c (c_write_global_declarations): Use
26625 finalize_compilation_unit.
26626 * langhooks.c (write_global_declarations): Update.
26627 * ipa.c (cgraph_externally_visible_p): Update.
26628 (dissolve_same_comdat_group_list): Remove.
26629 (function_and_variable_visibility): Update.
26630 * symtab.c: Inlcude lto-streamer.h and rtl.h
26631 (ld_plugin_symbol_resolution_names): New.
26632 (symtab_add_to_same_comdat_group): New.
26633 (symtab_dissolve_same_comdat_group_list): New.
26634 (resolution_used_from_other_file_p): Move here from cgraph.c
26635 (symtab_used_from_object_file_p): New.
26636 (symtab_make_decl_local): New.
26637 * passes.c (register_pass): Update comments.
26638 * c-parser.c (c_parser_asm_definition): Update.
26639 * varpool.c (varpool_analyze_node): Use
26640 fixup_same_cpp_alias_visibility.
26641 (varpool_remove_unreferenced_decls): Make static.
26642 (varpool_assemble_pending_decls): Rename to ...
26643 (varpool_output_variables): ... this one; call
26644 varpool_remove_unreferenced_decls.
26645 (varpool_used_from_object_file_p): Remove.
26647 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
26650 * c-typeck.c (build_array_ref): Call
26651 convert_vector_to_pointer_for_subscript.
26652 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
26654 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
26656 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
26657 to compile-time "mode == <MODE>mode" checks.
26658 (and splitter): Ditto.
26660 2012-04-30 Richard Henderson <rth@redhat.com>
26662 * config/arm/arm.md (UNSPEC_LL): New.
26663 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
26664 (arm_load_exclusivedi): Use %H0.
26666 2012-04-30 Jason Merrill <jason@redhat.com>
26668 * dwarf2out.c (comdat_symbol_id): Add const.
26669 (union die_symbol_or_type_node): Add const to die_symbol.
26670 (output_die_symbol, output_die, output_comp_unit): Adjust.
26672 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
26674 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
26675 * config/arm/neon.md (negdi2_neon): New insn.
26676 Also add splitters for core and NEON registers.
26678 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
26680 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
26681 (arm_print_operand): Add 'x' format.
26682 * config/arm/constraints.md (Dn): Allow const_int.
26683 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
26684 Use 'x' format to print constants.
26685 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
26686 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
26688 (movdi_vfp_cortexa8): Likewise.
26690 2012-04-30 Ian Bolton <ian.bolton@arm.com>
26691 Sameera Deshpande <sameera.deshpande@arm.com>
26692 Greta Yorsh <greta.yorsh@arm.com>
26694 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
26695 * config/arm/arm.c (ldm_stm_operation_p): New function.
26696 * config/arm/predicates.md (load_multiple_operation): Update predicate.
26697 (store_multiple_operation): Likewise.
26699 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
26700 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
26701 * config/arm/predicates.md (load_multiple_operation): Add arguments.
26702 (store_multiple_operation): Likewise.
26704 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
26706 * config/i386/i386.md (and<mode>3): Expand masking operations with
26707 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
26708 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
26710 2012-04-30 Dodji Seketeli <dodji@redhat.com>
26712 Add -Wvarargs option
26713 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
26714 argument for the various warning_at calls.
26715 * docs/invoke.texi: Update the documentation.
26717 2012-04-30 Dodji Seketeli <dodji@redhat.com>
26719 Switch -ftrack-macro-expansion=2 on by default.
26720 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
26723 Fix va_start related location
26724 * builtins.c (fold_builtin_next_arg): Unwinds to the first
26725 location in real source code.
26727 Make conversion warnings work on NULL with -ftrack-macro-expansion
26728 * input.h (expansion_point_location_if_in_system_header): Declare
26730 * input.c (expansion_point_location_if_in_system_header): Define it.
26732 Fix -Wuninitialized for -ftrack-macro-expansion
26733 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
26734 declaration. Use linemap_location_before_p for source locations.
26736 Strip "<built-in>" loc from displayed expansion context
26737 * input.c (expand_location_1): When expanding to spelling location
26738 in a context of a macro expansion, skip reserved system header
26739 locations. Update comments. * tree-diagnostic.c
26740 (maybe_unwind_expanded_macro_loc): Likewise.
26742 Make expand_location resolve to locus in main source file
26743 * input.c (expand_location_1): New. Takes a parameter to choose
26744 whether to resolve the location to spelling or expansion point.
26745 Was factorized from ...
26746 (expand_location): ... here.
26747 (expand_location_to_spelling_point): New. Implemented in terms of
26749 * diagnostic.c (diagnostic_build_prefix): Use the new
26750 expand_location_to_spelling_point instead of expand_location.
26752 Fix PCH crash on GTYed pointer-to-scalar field of a struct
26753 * gengtype.c (write_types_process_field): Force second argument of
26754 the call to the PCH object hierarchy walker to be 'x'.
26756 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
26758 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
26759 predicate to discriminate types.
26761 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
26763 * doc/invoke.texi (Wmissing-format-attribute): Document as an
26764 alias of Wsuggest-attribute=format.
26765 * c-typeck.c (convert_for_assignment): Replace
26766 Wmissing-format-attribute with Wsuggest-attribute=format.
26767 (digest_init): Likewise.
26769 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
26771 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
26772 * common.opt (Wmissing-noreturn): Alias of
26773 -Wsuggest-attribute=noreturn.
26775 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
26778 * config/cris/cris.md (andqu): New peephole2.
26779 (andu): Tweak head comment.
26781 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26782 Steven Bosscher <steven@gcc.gnu.org>
26783 Maxim Kuvyrkov <maxim@codesourcery.com>
26785 PR tree-optimization/38785
26786 * common.opt (ftree-partial-pre): New option.
26787 * doc/invoke.texi: Document it.
26788 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
26789 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
26790 benefit speed path.
26791 (execute_pre): Use flag_tree_partial_pre.
26793 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26796 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
26799 2012-04-27 Ollie Wild <aaw@google.com>
26801 * doc/invoke.texi (Wliteral-suffix): Document new option.
26803 2012-04-27 Tom Tromey <tromey@redhat.com>
26805 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
26806 (dwarf_tag_name): Use get_DW_TAG_name.
26807 (dwarf_attr_name): Use get_DW_AT_name.
26808 (dwarf_form_name): Use get_DW_FORM_name.
26809 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
26811 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
26813 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
26814 arguments are -1 and 0, by negating the result of the conditional.
26816 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
26819 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
26821 2012-04-27 Richard Guenther <rguenther@suse.de>
26823 * tree-flow.h (is_hidden_global_store): Remove.
26824 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
26825 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
26826 (stmt_may_clobber_global_p): Likewise.
26827 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
26828 (stmt_may_clobber_global_p): Likewise.
26829 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
26830 stmt_may_clobber_global_p.
26831 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
26833 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
26835 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
26838 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
26839 reorganize some fields and update comments. Rename bit_test_uniq
26840 and bit_test_count to uniq resp. count. Remove bit_test_bb.
26841 (collect_switch_conv_info): New function, collects info about a
26842 GIMPLE_SWITCH into a struct switch_conv_info.
26843 (check_range): Simplify to use pre-recorded info. Fix think-o in
26844 range-branch ratio check.
26845 (check_process_case): Remove function.
26846 (check_all_empty_except_final): New function, verifies that all
26847 non-final basic blocks are empty.
26848 (process_switch): Simplify to use pre-recorded info. Call
26849 collect_switch_conv_info to do that. Assert that degenerate switch
26850 statements have been cleaned up.
26852 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
26854 PR middle-end/27139
26855 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
26857 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
26860 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
26862 2012-04-27 Tom de Vries <tom@codesourcery.com>
26864 PR tree-optimization/51879
26865 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
26866 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
26868 (defs_to_varying): ... here. Don't set use_processed.
26869 (visit_reference_op_call): Handle gimple_vdef.
26870 Handle case that lhs is NULL_TREE.
26871 (visit_use): Use mark_use_processed. Handle calls with side-effect
26872 using visit_reference_op_call.
26874 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
26876 * sched-deps.c (fixup_sched_groups): Rename to...
26877 (chain_to_prev_insn): ...this.
26878 (chain_to_prev_insn_p): New function.
26879 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
26881 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
26883 * sched-int.h (_haifa_insn_data): Move priority_status.
26885 (INSN_MODEL_INDEX): New macro.
26886 * haifa-sched.c (insn_delay): New function.
26887 (sched_regno_pressure_class): Update commentary.
26888 (mark_regno_birth_or_death): Pass the liveness bitmap and
26889 pressure array as arguments, instead of using curr_reg_live and
26890 curr_reg_pressure. Only update the pressure if the bit in the
26891 liveness set has changed.
26892 (initiate_reg_pressure_info): Always trust the live-in set for
26893 SCHED_PRESSURE_MODEL.
26894 (initiate_bb_reg_pressure_info): Update call to
26895 mark_regno_birth_or_death.
26896 (dep_list_size): Take the list as argument.
26897 (calculate_reg_deaths): New function, extracted from...
26898 (setup_insn_reg_pressure_info): ...here.
26899 (MODEL_BAR): New macro.
26900 (model_pressure_data, model_insn_info, model_pressure_limit)
26901 (model_pressure_group): New structures.
26902 (model_schedule, model_worklist, model_insns, model_num_insns)
26903 (model_curr_point, model_before_pressure, model_next_priority):
26905 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
26906 (MODEL_INSN_INFO, MODEL_INSN): New macros.
26907 (model_index, model_update_limit_points_in_group): New functions.
26908 (model_update_limit_points, model_last_use_except): Likewise.
26909 (model_start_update_pressure, model_update_pressure): Likewise.
26910 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
26911 (model_excess_cost, model_dump_pressure_points): Likewise.
26912 (model_set_excess_costs): Likewise.
26913 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
26914 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
26915 schedule as an alternative tie-breaker. Update the call to
26917 (ready_sort): Call model_set_excess_costs.
26918 (update_register_pressure): Update call to mark_regno_birth_or_death.
26919 Rely on that function to check liveness rather than doing it here.
26920 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
26921 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
26922 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
26923 (model_record_pressure, model_record_pressures): New functions.
26924 (model_record_final_pressures, model_add_successors_to_worklist)
26925 (model_promote_predecessors, model_choose_insn): Likewise.
26926 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
26927 (model_start_schedule, model_finalize_pressure_group): Likewise.
26928 (model_end_schedule): Likewise.
26929 (schedule_insn): Say when we're scheduling the next instruction
26930 in the model schedule.
26931 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
26932 (queue_to_ready): Do not add instructions that are
26933 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
26934 Always allow the next instruction in the model schedule to be added.
26935 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
26936 and delay for SCHED_PRESSURE_MODEL too.
26937 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
26938 SCHED_PRIORITY_MODEL, but also take the DFA into account.
26939 (schedule_block): Call model_start_schedule and model_end_schedule.
26940 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
26941 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
26942 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
26944 (sched_finish): Update accordingly.
26945 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
26946 to SCHED_PRESSURE_MODEL.
26947 (add_jump_dependencies): Update call to dep_list_size.
26948 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
26949 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
26950 to SCHED_PRESSURE_MODEL.
26951 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
26952 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
26953 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
26954 handling to SCHED_PRESSURE_MODEL.
26956 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
26958 * common.opt (fsched-pressure-algorithm=): New option.
26959 * flag-types.h (sched_pressure_algorithm): New enum.
26960 * sched-int.h (sched_pressure_p): Replace with...
26961 (sched_pressure): ...this new variable.
26962 * haifa-sched.c (sched_pressure_p): Replace with...
26963 (sched_pressure): ...this new variable.
26964 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
26965 (update_reg_and_insn_max_reg_pressure, schedule_insn)
26966 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
26967 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
26968 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
26969 (sched_analyze_insn): Likewise.
26970 * sched-rgn.c (schedule_region): Likewise.
26971 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
26973 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
26975 PR middle-end/52997
26976 * ira.c (find_moveable_pseudos): Call resize_reg_info.
26978 PR middle-end/52940
26979 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
26980 * expr.c (convert_move): Honor unsignedp when extending partial int
26982 * genmodes.c (complete_mode): Don't clear component field of partial
26984 (emit_mode_inner): Don't emit it however.
26985 (calc_wider_mode): Partial int modes widen to their component.
26987 2012-04-26 David S. Miller <davem@davemloft.net>
26989 * config/sparc/niagara4.md: New file.
26990 * config/sparc/sparc.md: Include it.
26991 * config/sparc/sparc.c (niagara4_costs): New processor costs.
26992 (sparc_option_override): Use it.
26993 (sparc_use_sched_lookahead): Return 2 for niagara4.
26994 (sparc_issue_rate): Likewise.
26996 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
26997 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
26998 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
26999 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
27000 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
27001 alignaddrldi_vis): Set type to gsr.
27002 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
27003 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
27004 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
27005 v<vis3_shift_patname><mode>3, fmean16_vis,
27006 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
27007 fucmp<code>8<P:mode>_vis): Set type to fga.
27008 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
27009 * config/sparc/niagara.md: Likewise.
27010 * config/sparc/niagara2.md: Likewise.
27011 * config/sparc/ultra3.md: Likewise, and fix type matching for
27012 us3_ialuX reservation.
27014 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27016 * reload.c (find_reloads): Change the loop nesting when trying an
27017 alternative with swapped operands.
27019 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
27021 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
27022 comment. Delete unused parameter first_exp_point_map.
27023 (virt_loc_aware_diagnostic_finalizer): Update call.
27025 2012-04-26 Michael Hope <michael.hope@linaro.org>
27026 Richard Earnshaw <rearnsha@arm.com>
27028 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
27029 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
27030 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
27031 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
27033 2012-04-25 Sriraman Tallam <tmsriram@google.com>
27035 * doc/extend.texi: Document avx2 support.
27036 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
27038 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
27041 * config/cris/cris.md ("*andhi_lowpart_v32")
27042 ("*andqi_lowpart_v32"): Change first input-only operand from
27043 a (match_operand ...) to (match_dup 0). Drop alternatives with
27044 const_int-matching constraints for redundancy.
27045 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
27046 three-operand alternative.
27048 2012-04-25 Jakub Jelinek <jakub@redhat.com>
27051 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
27052 instead expand it as zero extension.
27054 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
27057 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
27059 2012-04-25 Jakub Jelinek <jakub@redhat.com>
27061 * common.opt (flag_debug_types_section): Default to 0.
27062 (dwarf_version): Default to 4.
27063 (dwarf_record_gcc_switches): Default to 1.
27064 (dwarf_strict): Default to 0.
27065 * toplev.c (process_options): Don't handle dwarf_strict
27066 or dwarf_version here.
27067 * config/vxworks.c (vxworks_override_options): Don't
27068 test whether dwarf_strict or dwarf_version are negative,
27069 instead test !global_options_set.x_dwarf_*.
27070 * config/darwin.c (darwin_override_options): Default to
27072 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
27073 and -fno-debug-types-section are now the default.
27075 2012-04-25 Jan Hubicka <jh@suse.cz>
27077 * cgraphunit.c: Update toplevel comment.
27078 (tree_rest_of_compilation): Merge into cgraph_expand_function.
27079 (cgraph_analyze_function): Make static.
27080 (cgraph_decide_is_function_needed): Make static.
27081 (cgraph_add_new_function): Use expand_function instead of
27082 rest_of_compilation.
27083 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
27084 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
27086 (cgraph_inline_p): Remove.
27087 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
27088 (init_cgraph): Add comment.
27089 * cgraphbuild.c (record_reference, mark_address, mark_load,
27090 mark_store): Do not call analyze_expr hook.
27091 * cgraph.c: Update toplevel comment.
27092 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
27093 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
27094 Move fere from cgraphunit.c
27095 (cgraph_mark_force_output_node): Move to cgraph.h
27096 * cgraph.h: Reorder so the comments match the function placement.
27097 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
27098 (cgraph_mark_force_output_node): Move here from cgraph.c
27099 * tree.c (free_lang_data): Do not clear analyze_expr hook.
27100 * ipa-inline-transform.c (preserve_function_body_p): New function.
27101 (inline_transform): Update.
27102 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
27103 * langhooks.h (lang_hooks_for_callgraph): Remove.
27104 (lang_hooks): Remove callgraph.
27105 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
27106 * varpool.c: Remove out of date comment.
27107 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
27108 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
27110 2012-04-25 Jan Hubicka <jh@suse.cz>
27112 PR middle-end/53089
27113 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
27114 forward declaration.
27115 (cgraph_finalize_function): Finalize them here.
27116 * symtab.c (dump_symtab): Dump ctors and dtors.
27118 2012-04-25 Jakub Jelinek <jakub@redhat.com>
27120 PR middle-end/52979
27121 * stor-layout.c (get_best_mode): Don't return mode with bitsize
27122 larger than maxbits. Don't compute maxbits modulo align.
27123 Also check that unit bytes long store at bitpos / unit * unit
27124 doesn't affect bits beyond bitregion_end.
27125 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
27126 would not fit into bitregion_start ... bitregion_end + 1 bit region.
27127 (store_split_bit_field): Decrease unit close to end of bitregion_end
27128 if access is restricted in order to avoid mutual recursion.
27130 PR tree-optimization/53058
27131 * double-int.h (double_int_max_value, double_int_min_value): New
27133 * double-int.c (double_int_max_value, double_int_min_value): New
27135 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
27136 or GT_EXPR with double_int_max_value instead of double_int_mask.
27138 2012-04-25 Richard Guenther <rguenther@suse.de>
27140 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
27141 * tree-vect-loop.c (vect_transform_loop): Adjust.
27142 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
27143 the maximum number of iterations for the epilogue loop.
27144 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
27146 2012-04-25 Jakub Jelinek <jakub@redhat.com>
27149 * c-typeck.c (set_nonincremental_init,
27150 set_nonincremental_init_from_string): Pass true instead of false
27151 as IMPLICIT to add_pending_init.
27153 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
27155 * c-typeck.c (pop_init_level): Improve diagnostics.
27157 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
27159 * compare-elim.c (try_eliminate_compare): Also handle operands with
27160 implicit extensions.
27162 2012-04-25 Alan Modra <amodra@gmail.com>
27164 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
27165 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
27166 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
27167 (no_global_regs_above): Delete.
27168 (no_global_regs): New function.
27169 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
27170 value for load multiple test.
27171 (savres_routine_syms): Increase size.
27172 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
27173 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
27174 rather than a number of boolean flags. Update all callers.
27175 (rs6000_savres_routine_name): Generate vector save/restore names.
27176 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
27177 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
27178 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
27179 and using_store_multiple. Expand uses. Don't always use r11 as
27180 frame reg when needed for out-of-line saves. Set up initial offset
27181 for out-of-line vector saves when buying stack frame. Handle pointer
27182 reg setup for out-of-line fp save. Emit call to out-of-line vector
27183 save function. Choose r11 or r12 for vrsave reg when available for
27185 (rs6000_output_function_prologue): Don't emit .extern for ELF.
27186 (rs6000_emit_epilogue): Choose a better frame reg when restoring
27187 from back-chain to suit out-of-line vector restore functions. Emit
27188 call to out-of-line vector restore function. Adjust register used
27189 for cr restore. Tweak pointer register setup for gpr restore.
27190 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
27192 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
27193 (V_SAVE_INLINE): Define.
27194 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
27196 2012-04-25 Alan Modra <amodra@gmail.com>
27198 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
27199 out-of-line save/restore for large frames. Don't disable
27200 out-of-line saves on ABI_AIX when using static chain reg.
27201 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
27202 clobber static chain reg, and tweak for out-of-line gpr saves
27205 2012-04-25 Alan Modra <amodra@gmail.com>
27207 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
27208 (rs6000_emit_prologue): Use the above to catch register overlap.
27210 2012-04-25 Alan Modra <amodra@gmail.com>
27212 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
27213 decl. Move logic selecting update reg to callers. Update all callers.
27214 (rs6000_emit_allocate_stack): Add copy_off param.
27215 (emit_frame_save): Don't handle reg+reg addressing.
27216 (ptr_regno_for_savres): New function, extracted from..
27217 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
27218 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
27219 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
27220 frame offset adjustment for out-of-line save with copy from sp.
27221 Simplify condition controlling whether cr is saved early or
27222 late. Use ptr_regno_for_savres to verify correct reg is set
27223 up for out-of-line saves. Pass the actual pointer reg used to
27224 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
27225 function. Rearrange spe vars so code is similar to that
27226 elsewhere in this function. Don't update frame_off when spe
27227 save code will restore r11. Use emit_frame_save for spe and
27228 gpr saves. Consolidate darwin out-of-line gpr setup with that
27229 for other abis. Don't assume frame_offset is zero and frame
27230 reg is sp when setting up altivec reg saves, and calculate
27231 exact offset requirement.
27232 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
27233 spe restore code. Consolidate darwin out-of-line gpr setup
27234 with that for other abis.
27236 2012-04-25 Alan Modra <amodra@gmail.com>
27238 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
27239 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
27241 (emit_frame_save): Delete frame_ptr param. Rename total_size to
27243 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
27244 and emit_frame_save calls. Cope with possibly missing note.
27246 2012-04-24 Sriraman Tallam <tmsriram@google.com>
27248 * config/i386/i386.c (build_processor_model_struct): New function.
27249 (make_var_decl): New function.
27250 (fold_builtin_cpu): New function.
27251 (ix86_fold_builtin): New function.
27252 (make_cpu_type_builtin): New function.
27253 (ix86_init_platform_type_builtins): New function.
27254 (ix86_expand_builtin): Expand new builtins by folding them.
27255 (ix86_init_builtins): Make new builtins to detect CPU type.
27256 (TARGET_FOLD_BUILTIN): New macro.
27257 (IX86_BUILTIN_CPU_INIT): New enum value.
27258 (IX86_BUILTIN_CPU_IS): New enum value.
27259 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
27260 * config/i386/i386-builtin-types.def: New function type.
27261 * doc/extend.texi: Document builtins.
27263 2012-04-24 Olivier Hainque <hainque@adacore.com>
27265 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
27266 * toplev.c (process_options): Default to dwarf_version 2.
27267 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
27268 and dwarf_version 2.
27270 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
27272 * tree-pretty-print.h (default_tree_printer): Do not declare.
27273 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
27275 (default_tree_diagnostic_starter): Make static.
27276 (default_tree_printer): Move to here. Make static.
27277 (tree_diagnostics_defaults): New.
27278 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
27279 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
27280 * toplev.c: Do not include tree-pass.h.
27281 (default_tree_printer): Move from here.
27282 (general_init): Use tree_diagnostics_defaults.
27284 2012-04-24 Chao-ying Fu <fu@mips.com>
27286 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
27287 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
27288 * config/mips/gnu-user.h
27289 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
27290 (GNU_USER_TARGET_LINK_SPEC): New define.
27291 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
27292 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
27293 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
27294 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
27295 GNU_USER_TARGET_ENDFILE_SPEC.
27296 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
27297 (GNU_USER_TARGET_LINK_SPEC): New define.
27298 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
27299 * config/mips/linux-common.h: New file.
27301 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27304 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
27305 (altivec_build_resolved_builtin): Call fully_fold_convert.
27307 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
27310 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
27312 2012-04-24 Richard Guenther <rguenther@suse.de>
27314 PR tree-optimization/53085
27315 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
27318 2012-04-24 Richard Guenther <rguenther@suse.de>
27320 * tree-if-conv.c (main_tree_if_conversion): Move bb under
27323 2012-04-24 Jim Meyering <meyering@redhat.com>
27325 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
27326 absence of an define_enum call.
27328 2012-04-24 Richard Guenther <rguenther@suse.de>
27330 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
27331 the epilogue loop is not re-used as unvectorized version
27332 record the its maximum number of iterations.
27334 2012-04-24 Andrew Pinski <apinski@cavium.com>
27336 * tree-ssa-forwprop.c (simplify_bitwise_binary):
27337 Don't directly use def1/def2.
27339 2012-04-24 Richard Guenther <rguenther@suse.de>
27341 PR tree-optimization/53098
27342 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
27345 2012-04-24 Andrew Pinski <apinski@cavium.com>
27348 * tree-ssa-forwprop.c (defcodefor_name): New function.
27349 (simplify_bitwise_binary): Use defcodefor_name instead of manually
27350 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
27351 Simplify "(~X | Y) & X" to "X & Y" and
27352 "(~X & Y) | X" to "X | Y".
27354 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27356 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
27357 validate_change to add clobbers if IN_GROUP is nonzero.
27358 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
27359 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
27361 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
27363 * config/s390/s390.c (insn_invalid_p): Likewise.
27365 2012-04-24 Jakub Jelinek <jakub@redhat.com>
27367 PR middle-end/53084
27368 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
27369 (output_addressed_constants): Likewise.
27371 PR middle-end/52999
27372 * varasm.c (get_section): Don't ICE for section conflicts with
27373 built-in section kinds.
27375 2012-04-23 DJ Delorie <dj@redhat.com>
27377 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
27378 (LIBSTDCXX): Change to CPP2.
27380 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
27383 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
27386 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
27388 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
27389 (*addsi_2_zext): Ditto.
27390 (*add<mode>_3): Ditto.
27391 (*addsi_3_zext): Ditto.
27392 (*add<mode>_5): Ditto.
27394 2012-04-23 Andrew Pinski <apinski@cavium.com>
27396 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
27397 (C & B) to (A OP0) & B.
27399 2012-04-23 Martin Jambor <mjambor@suse.cz>
27401 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
27402 temporaries created for a bitfield (reverting revision 122014).
27404 2012-04-23 Richard Guenther <rguenther@suse.de>
27406 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
27407 the condition using is_gimple_condexpr and avoid the not necessary
27409 (set_prologue_iterations): Likewise.
27410 (vect_loop_versioning): Likewise.
27412 2012-04-23 Richard Guenther <rguenther@suse.de>
27414 PR tree-optimization/53070
27415 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
27416 (main_tree_if_conversion): Verify we succeeded in that.
27418 2012-04-23 Jan Hubicka <jh@suse.cz>
27420 * lto-symtab.c (lto_cgraph_replace_node): Do not call
27421 mark_reahcable_node.
27422 * cgraph.c (cgraph_remove_node): Do not clear reachable.
27423 (cgraph_mark_reachable_node): Remove.
27424 (cgraph_mark_force_output_node): Do not set reachable.
27425 (dump_cgraph_node): Do not dump reachable.
27426 (cgraph_create_virtual_clone): Do not set reachable.
27427 * cgraph.h (cgraph_node): Remove reachable flag.
27428 (varpool_node): Remove reachable flag.
27429 (cgraph_mark_if_needed): Remove.
27430 (cgraph_mark_reachable_node): Remove.
27431 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
27432 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
27434 (cgraph_add_new_function): Likewise.
27435 (cgraph_mark_if_needed): Remove.
27436 (cgraph_analyze_function): Do not set target as reachable.
27437 (process_function_and_variable_attributes): Do not care about
27439 (cgraph_analyze_functions): Do not set reachable flags.
27440 (cgraph_mark_functions_to_output): Do not check reachability.
27441 (cgraph_copy_node_for_versioning): Do not set reachable flag.
27442 (dbxout_expand_expr): Update.
27443 * c-decl.c (merge_decls): Do not track changed externs.
27444 * ipa.c: Include pointer-set.h
27445 (enqueue_cgraph_node): Use reachable pointer set.
27446 (process_references): Likewise.
27447 (cgraph_remove_unreachable_nodes): Likewise.
27448 (whole_program_function_and_variable_visibility): Do not recompute
27450 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
27452 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
27454 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
27456 2012-04-23 Richard Guenther <rguenther@suse.de>
27459 * c-typeck.c (build_binary_op): Fix typo.
27461 2012-04-23 Jakub Jelinek <jakub@redhat.com>
27463 PR tree-optimizations/52891
27464 * tree-vect-patterns.c (adjust_bool_pattern): Use
27465 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
27466 but with non-standard precision.
27468 2012-04-22 Jan Hubicka <jh@suse.cz>
27470 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
27473 2012-04-22 Jan Hubicka <jh@suse.cz>
27475 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
27476 * cgraphbuild.c (record_reference, record_type_list, mark_address,
27477 mark_load, mark_store): Do not mark varpool nodes as needed.
27478 * cgraph.c (cgraph_new_nodes): Remove.
27479 (cgraph_create_function_alias): Do not mark nodes as reachable.
27480 (cgraph_add_thunk): Likewise.
27481 (cgraph_mark_reachable_node): Do not manage the queue.
27482 * cgraph.h (cgraph_node): Remove next_needed.
27483 (varpool_nodes_queue): Remove next_needed and prev_needed.
27484 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
27485 (cgraph_new_nodes): Declare.
27486 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
27487 (varpool_analyze_pending_decls): Remove.
27488 (varpool_analyze_node): New.
27489 (varpool_mark_needed_node): Remove.
27490 (varpool_first_variable, varpool_next_variable): New inlines.
27491 (varpool_first_static_initializer, varpool_next_static_initializer):
27493 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
27494 (varpool_first_defined_variable): New inline.
27495 (varpool_next_defined_variable): New inline
27496 (FOR_EACH_VARIABLE): Reimplement.
27497 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
27498 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
27500 * cgraphunit.c (cgraph_new_nodes): Declare here.
27501 (enqueue_node): New function.
27502 (cgraph_process_new_functions): update for new
27503 node set; when constructing cgraph enqueue node for processing.
27504 (cgraph_add_new_function): Use new node set.
27505 (process_function_and_variable_attributes): Do not set varpool needed
27507 (referred_to_p): New function.
27508 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
27509 when varpool is in construction.
27510 (cgraph_analyze_functions): Rewrite.
27511 (cgraph_expand_all_functions): Update.
27512 (cgraph_output_in_order): Do not analyze pending decls; do not set
27514 (cgraph_optimize): Do not analyze pending decls.
27515 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
27516 in other partition; do not mark node as needed.
27517 * dwarf2out.c (reference_to_unused): Use analyzed flag.
27518 (premark_types_used_by_global_vars_helper): Likewise.
27519 * ipa.c (process_references): Do not call varpool_mark_needed_node.
27520 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
27522 (function_and_variable_visibility): Do not mark node as needed.
27523 (whole_program_function_and_variable_visibility): Likewise.
27524 * Makefile.in (gt-varpool.h): No longer needed.
27525 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
27526 (ipa_write_summaries): Do not use needed flag.
27527 * varpool.c: Do not include gt-varpool.h
27528 (x_varpool_nodes_queue, x_varpool_last_needed_node,
27529 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
27530 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
27532 (varpool_remove_node): Do not update the lists.
27533 (dump_varpool_node): Do not dump needed flag.
27534 (varpool_enqueue_needed_node): Remove.
27535 (varpool_mark_needed_node): Remove.
27536 (varpool_reset_queue): Remove.
27537 (varpool_finalize_decl): Move to cgraphunit.c
27538 (varpool_analyze_node): New functions based on former
27539 varpool_analyze_pending_decls.
27540 (varpool_analyze_pending_decls): Remove.
27541 (varpool_assemble_decl): Do not update the lists.
27542 (enqueue_node): New function.
27543 (varpool_remove_unreferenced_decls): Rewrite.
27544 (varpool_empty_needed_queue): Remove.
27545 (add_new_static_var): Do not mark node as needed.
27546 (varpool_create_variable_alias): Handle expansion state
27548 * except.c (output_ttype): Do not mark node as needed.
27549 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
27550 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
27552 * tree-switch-conversion.c (build_one_array): Likewise.
27554 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
27557 * doc/invoke.texi (pedantic): Rename to Wpedantic.
27558 * common.opt (Wpedantic): New.
27559 (pedantic): Alias Wpedantic.
27560 * diagnostic.c (warning_at): Likewise.
27561 * c-decl.c (diagnose_mismatched_decls): Likewise.
27562 (build_array_declarator): Likewise.
27563 (mark_forward_parm_decls):
27564 (check_bitfield_type_and_width): Likewise.
27565 (grokdeclarator): Likewise.
27566 (grokfield): Likewise.
27567 (finish_struct): Likewise.
27568 (build_enumerator): Likewise.
27569 (store_parm_decls_oldstyle): Likewise.
27570 (declspecs_add_qual): Likewise.
27571 (declspecs_add_type): Likewise.
27572 (finish_declspecs): Likewise.
27573 * c-typeck.c (composite_type): Likewise.
27574 (comp_target_types): Likewise.
27575 (build_array_ref): Likewise.
27576 (pointer_diff): Likewise.
27577 (build_unary_op): Likewise.
27578 (build_conditional_expr): Likewise.
27579 (build_c_cast): Likewise.
27580 (convert_for_assignment): Likewise.
27581 (maybe_warn_string_init): Likewise.
27582 (digest_init): Likewise.
27583 (pop_init_level): Likewise.
27584 (set_init_index): Likewise.
27585 (c_finish_goto_label): Likewise.
27586 (c_finish_return): Likewise.
27587 (do_case): Likewise.
27588 (build_binary_op): Likewise.
27589 * c-parser.c (static): Likewise.
27590 (c_parser_external_declaration): Likewise.
27591 (c_parser_declaration_or_fndef): Likewise.
27592 (c_parser_static_assert_declaration_no_se): Likewise.
27593 (c_parser_enum_specifier): Likewise.
27594 (c_parser_struct_or_union_specifier): Likewise.
27595 (c_parser_struct_declaration): Likewise.
27596 (c_parser_alignas_specifier): Likewise.
27597 (c_parser_braced_init): Likewise.
27598 (c_parser_initelt): Likewise.
27599 (c_parser_compound_statement_nostart): Likewise.
27600 (c_parser_conditional_expression): Likewise.
27601 (c_parser_alignof_expression): Likewise.
27602 (c_parser_postfix_expression): Likewise.
27603 (c_parser_postfix_expression_after_paren_): Likewise.
27604 (c_parser_objc_class_instance_variables): Likewise.
27605 (c_parser_objc_method_definition): Likewise.
27606 (c_parser_objc_methodprotolist): Likewise.
27608 2012-04-22 Ian Lance Taylor <iant@google.com>
27610 * godump.c (go_output_typedef): Dump size of structs.
27612 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
27614 Correcting transform_to_exit_first_loop + fix to PR46886
27615 * tree-parloops.c (transform_to_exit_first_loop): Remove
27616 setting of number of iterations according to the loop pattern.
27617 Duplicate from entry to exit->src instead of loop->latch.
27618 (pallelize_loops): Remove the condition preventing do-while loops.
27619 * tree-cfg.c (bool bb_in_region_p): New.
27620 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
27621 Adjust redirection of the duplicated iteration.
27623 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
27626 * rtl.def (ADDRESS): Use "i" rather than "w".
27627 * rtl.h (find_base_term): Delete.
27628 (may_be_sp_based_p): Declare.
27629 * rtl.c (rtx_code_size): Remove ADDRESS special case.
27630 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
27631 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
27632 * alias.c: ...here.
27633 (find_base_term): Make static.
27634 (may_be_sp_based_p): New function.
27635 * dse.c (record_store): Use it.
27636 * store-motion.c (store_killed_in_insn): Likewise.
27638 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
27640 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
27642 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27645 * c-typeck.c (inform_declaration): New.
27646 (build_function_call_vec): Do not pretty-print
27647 expressions when caret is enabled.
27648 (convert_arguments): Use inform_declaration.
27650 2012-04-20 Jim Meyering <meyering@redhat.com>
27652 * genmodes.c (make_complex_modes): Don't truncate a mode name of
27653 length 7 or more when prepending a "C". Suggested by Richard Guenther.
27655 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27657 PR rtl-optimization/44214
27658 * fold-const.c (exact_inverse): New function.
27659 (fold_binary_loc): Fold vector and complex division by constant into
27660 multiply by recripocal with flag_reciprocal_math; fold vector division
27661 by constant into multiply by reciprocal with exact inverse.
27663 2012-04-20 Jan Hubicka <jh@suse.cz>
27665 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
27667 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
27668 (cgraph_remove_node): Update.
27669 (cgraph_mark_needed_node): Remove.
27670 (cgraph_mark_force_output_node): New.
27671 (dump_cgraph_node): Do not dump needed flag.
27672 (cgraph_node_cannot_be_local_p_1): Update.
27673 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
27674 * cgraph.h (symtab_node_base): Add force_output flag.
27675 (cgraph_node): Remove needed flag.
27676 (varpool_node): Remove force_output flag.
27677 (cgraph_mark_needed_node): Remove.
27678 (cgraph_mark_force_output_node): New.
27679 (cgraph_only_called_directly_or_aliased_p,
27680 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
27681 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
27682 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
27683 (cgraph_add_new_function): Update.
27684 (cgraph_mark_if_needed): Update.
27685 (verify_cgraph_node): Update.
27686 (cgraph_analyze_function): Alias target is reachable.
27687 (process_function_and_variable_attributes): Update: externally_visible
27688 flag makes function reachable.
27689 (cgraph_analyze_functions): Update dumping.
27690 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27691 input_overwrite_node, input_varpool_node): Update streaming.
27692 * lto-streamer-out.c (produce_symtab): Use force_output.
27693 * ipa.c (process_references): Weakrefs must be processed.
27694 (cgraph_remove_unreachable_nodes): Likewise; update for new
27696 (varpool_externally_visible_p): Weakrefs are externally visible
27697 even if they are not.
27698 (function_and_variable_visibility): Update; when processing alias
27699 pair force the targets to be output.
27700 (whole_program_function_and_variable_visility): Use
27701 mark_reachable_node.
27702 * trans-mem.c (ipa_tm_mark_needed_node): Remove
27703 (ipa_tm_mark_force_output_node): New function.
27704 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27705 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
27707 * varasm.c (mark_decl_referenced): Update.
27708 (find_decl_and_mark_needed): Remove.
27709 (find_decl): New function.
27710 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
27711 alias targets as needed.
27712 (dump_tm_clone_pairs): Update.
27713 * tree-inline.c (copy_bb): Update check.
27714 * symtab.c (dump_symtab_base): Dump force_output.
27715 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
27716 * passes.c (execute_todo): Fix dumping.
27717 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
27718 (varpool_analyze_pending_decls): Alias target is reachable.
27719 (varpool_create_variable_alias): Finalize weakrefs.
27721 2012-04-20 Jakub Jelinek <jakub@redhat.com>
27724 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
27725 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
27726 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
27727 macros instead of constants.
27728 * dse.c (record_store): Check for SP ADDRESS by comparing
27729 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
27730 XEXP to be stack_pointer_rtx.
27732 2012-04-20 Richard Guenther <rguenther@suse.de>
27734 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
27735 update_call_from_tree when propagating into a call.
27737 2012-04-20 Alan Modra <amodra@gmail.com>
27739 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
27740 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
27741 sp_offset to frame_off. Move world save code earlier.
27743 2012-04-20 Richard Guenther <rguenther@suse.de>
27745 PR tree-optimization/53050
27746 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
27747 Do only one transform on COND_EXPRs at the same time.
27749 2012-04-19 Jan Hubicka <jh@suse.cz>
27751 * symtab.c (dump_symtab_base): Revert accidental checkin.
27753 2012-04-20 Alan Modra <amodra@gmail.com>
27756 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
27757 static chain, set REST_INLINE_FPRS too.
27759 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
27761 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
27764 2012-04-20 Richard Guenther <rguenther@suse.de>
27766 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
27767 loops that can never run more often than the vectorization factor.
27769 2012-04-19 Jan Hubicka <jh@suse.cz>
27771 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
27773 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
27775 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
27777 2012-04-19 Jim Meyering <meyering@redhat.com>
27779 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
27780 We verified above that the string(including trailing NUL) fits in buf,
27781 so just use memcpy.
27783 2012-04-19 Richard Guenther <rguenther@suse.de>
27785 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
27786 for dumping DECL_SECTION_NAME.
27788 2012-04-19 Michael Matz <matz@suse.de>
27790 PR middle-end/52977
27791 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
27792 (struct tree_vector): Adjust GTY length.
27793 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
27795 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
27797 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
27798 caller emitted the length calulation already.
27799 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
27800 before handling any of the fields for structs.
27802 2012-04-19 Richard Guenther <rguenther@suse.de>
27804 PR tree-optimization/53031
27805 * tree-vrp.c (adjust_range_with_scev): Revert back to
27806 using max_loop_iterations.
27808 2012-04-19 Michael Matz <matz@suse.de>
27810 * diagnostic.c (emit_diagnostic): Move va_end call after user
27812 (warning, warning_at, pedwarn, permerror): Ditto.
27814 2012-04-19 Richard Guenther <rguenther@suse.de>
27816 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
27819 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
27822 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
27823 the case *(X+const).
27825 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27827 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
27829 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
27832 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
27833 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
27835 2012-04-19 Richard Guenther <rguenther@suse.de>
27837 PR rtl-optimization/44688
27838 * loop-iv.c (determine_max_iter): Only return max_iter.
27839 (iv_number_of_iterations): Also use the recorded loop bound
27840 on the maximum number of iterations.
27841 * loop-unroll.c (decide_unroll_runtime_iterations): Use
27842 max_iter to avoid unrolling loops that do not roll.
27843 (decide_unroll_stupid): Likewise.
27845 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
27847 * targhooks.c (default_case_values_threshold): Fix code style nit.
27849 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
27850 case range and type folding from here...
27851 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
27852 type, as documented in tree.def.
27854 2012-04-18 Jan Hubicka <jh@suse.cz>
27856 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
27858 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
27859 cgraph hash and same comdat groups.
27860 (cgraph_optimize): Verify symbol table.
27861 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
27862 (dissolve_same_comdat_group_list): Work on symtab nodes.
27863 (function_and_variable_visibility): Dissolve variable same comdat group
27865 * symtab.c: Include timevar.h
27866 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
27868 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
27870 * tree-switch-conversion.c (info): Remove global pass info.
27871 (check_range, check_process_case, check_final_bb, create_temp_arrays,
27872 free_temp_arrays, gather_default_values, build_constructors,
27873 array_value_type, build_one_array, build_arrays, gen_def_assigns,
27874 fix_phi_nodes, gen_inbound_check): Pass info around from ...
27875 (process_switch): ... here. Unify message format. Return a const
27876 char pointer to the failure reason message.
27877 (do_switchconv): Unify message format. Update process_switch usage.
27879 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
27880 * tree-cfg.c (edge_to_cases): Fix documentation.
27882 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
27884 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
27886 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27888 PR tree-optimization/52976
27889 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
27890 (possibly_move_powi): New function.
27891 (rewrite_expr_tree): Call possibly_move_powi.
27892 (rewrite_expr_tree_parallel): Likewise.
27893 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
27894 call add_to_ops_vec instead.
27896 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27898 PR tree-optimization/52976
27899 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
27900 (decrement_power): Likewise.
27901 (propagate_op_to_single_use): Likewise.
27902 (zero_one_operation): Handle __builtin_pow* calls in linearized
27903 expression trees; factor logic into propagate_op_to_single_use.
27904 (undistribute_ops_list): Allow operands with repeat counts > 1.
27906 2012-04-18 Richard Guenther <rguenther@suse.de>
27908 PR tree-optimization/44688
27909 * cfgloop.h (record_niter_bound): Declare.
27910 * tree-ssa-loop-niter.c (record_niter_bound): Export.
27911 Update the estimation with the upper bound here...
27912 (estimate_numbers_of_iterations_loop): ... instead of here.
27913 Do not forcefully reset a recorded upper bound.
27914 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
27915 Record the maximum number of loop iterations of the prologue loop.
27917 2012-04-18 Jan Hubicka <jh@suse.cz>
27919 * lto-symtab.c (lto_cgraph_replace_node): Update.
27920 * cgraphbuild.c (record_reference, record_type_list,
27921 record_eh_tables, mark_address, mark_load, mark_store): Update.
27922 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
27923 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
27925 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
27926 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
27927 * reload.c: Fix typo in comment.
27928 * rtlanal.c: Likewise.
27929 * tree-emultls.c (gen_emutls_addr): Update.
27930 * ipa-reference.c (analyze_function): Update.
27931 * cgraphunit.c (cgraph_analyze_function,
27932 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
27934 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
27935 (ipa_remove_reference): Likewise.
27936 (ipa_remove_all_refering): Rename to ...
27937 (ipa_remove_all_referring): ... this one; update.
27938 (ipa_dump_references): Update.
27939 (ipa_dump_referring): Update.
27940 (ipa_clone_references): Update.
27941 (ipa_clone_refering): Rename to ...
27942 (ipa_clone_referring): ... this one; update.
27943 (ipa_ref_cannot_lead_to_return): Update.
27944 (ipa_ref_has_aliases_p): Update.
27945 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
27947 (ipa_ref_type): Remove.
27948 (ipa_ref_ptr_u): Remove.
27949 (ipa_ref): Remove referencing, refered, refered_index, refering_type
27950 and refered_type; add referring, referred and referred_index.
27951 (ipa_ref_list): Rename refering to referring.
27952 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
27953 ipa_clone_references, ipa_clone_referring): Update prototypes.
27954 * lto-cgraph.c (referenced_from_other_partition_p): Update.
27955 (lto_output_ref): Update.
27956 (add_references): Update.
27957 (input_varpool_node): Update.
27958 (input_refs): Update.
27959 * ipa-ref-inline.h (ipa_ref_node): Update.
27960 (ipa_ref_varpool_node): Update.
27961 (ipa_ref_referring_node): Update.
27962 (ipa_ref_referring_varpool_node): Update.
27963 (ipa_ref_referring_ref_list): Update.
27964 (ipa_ref_referred_ref_list): Update.
27965 (ipa_ref_list_first_referring): Update.
27966 (ipa_empty_ref_list): Update.
27967 (ipa_ref_list_refering_iterate): Rename to ...
27968 (ipa_ref_list_referring_iterate): ... this one.
27969 * cse.c: Update comment.
27970 * ipa-utils.c (ipa_reverse_postorder): Update.
27971 * tree-ssa-alias.c: Update.
27972 * ipa-inline.c (reset_edge_caches): Update.
27973 (update_caller_keys): Update.
27974 * ipa-inline.h: Update comments.
27975 * jump.c: Update comment.
27976 * alias.c: Likewise.
27977 * ipa.c (process_references): Update.
27978 (cgraph_remove_unreachable_nodes): Likewise.
27979 (ipa_discover_readonly_nonaddressable_var): Likewise.
27980 (cgraph_address_taken_from_non_vtable_p): Likewise.
27981 * trans-mem.c (ipa_tm_execute): Update.
27982 * simplify-rtx.c: Fix comment.
27983 * rtl.c: Fix comment.
27984 * symtab.c (symtab_unregister_node): Update.
27985 * varpool.c (dump_varpool_node): Update.
27986 (varpool_analyze_pending_decls): Update.
27987 (assemble_aliases): Update.
27988 (varpool_for_node_and_aliases): Update.
27990 2012-04-18 Richard Guenther <rguenther@suse.de>
27992 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
27993 use_undefined_p parameter.
27994 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
27995 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
27997 (estimate_numbers_of_iterations): Likewise.
27998 (estimated_loop_iterations): Adjust.
27999 (max_loop_iterations): Likewise.
28000 (scev_probably_wraps_p): Likewise.
28001 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
28002 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
28003 not max_loop_iterations.
28004 (execute_vrp): Remove explicit number of iterations estimation.
28006 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
28008 * config/i386/linux-common.h: New.
28010 * config.gcc: Add i386/linux-common.h before
28011 all i386/linux.h and i386/linux64.h usages.
28013 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
28014 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
28015 * config/i386/gnu-user64.h: Likewise.
28017 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
28018 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
28019 (GNU_USER_TARGET_MATHFILE_SPEC): New.
28020 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
28022 2012-04-18 Jan Hubicka <jh@suse.cz>
28024 * cgraph.c (cgraph_node_name): Remove.
28025 (dump_cgraph_node): Use dump_symtab_base; reformat.
28026 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
28027 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
28029 (cgraph_node_name, varpool_node_name): Remove.
28030 (cgraph_node_asm_name, varpool_node_asm_name,
28031 cgraph_node_name, varpool_node_name): New.
28032 * tree-pass.h (TODO_dump_cgraph): Rename to ...
28033 (TODO_dump_symtab): ... this one.
28034 * ipa-cp (pass_ipa_cp): Update.
28035 * ia-reference.c (generate_summary, read_write_all_from_decl,
28036 propagate, ipa_reference_read_optimization_summary): Update.
28037 * cgraphunit.c (cgraph_analyze_functions): Update.
28038 (cgraph_optimize): Update.
28039 * ipa-ref.c (ipa_dump_references): Update.
28040 (ipa_dump_refering): Update.
28041 * ipa-inline.c (pass_ipa_inline): Update.
28042 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
28043 * ipa.c (pass_ipa_function_visibility,
28044 pass_ipa_whole_program_visibility): Update.
28045 * tree-sra.c (pass_early_ipa_sra): Update.
28046 * symtab.c: Include langhooks.h
28047 (symtab_node_asm_name): New.
28048 (symtab_node_name): New.
28049 (symtab_type_names): New static var.
28050 (dump_symtab_base): New.
28051 (dump_symtab_node, dump_symtab): New.
28052 (debug_symtab_node, debug_symtab): New.
28053 * tree-ssa-structalias.c: Dump symbol table.
28054 * pases.c (execute_todo): Handle TODO_dump_symtab instead
28055 of TODO_dump_cgraph.
28056 * varpoo.c (varpool_node_name): Remove.
28057 (dump_varpool_node): Use dump_symtab_base; reformat.
28059 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
28061 * doc/invoke.texi (Language Independent Options): @item should be
28064 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
28067 * rtl.c (rtx_code_size): Handle ADDRESS.
28069 2012-04-17 Tom de Vries <tom@codesourcery.com>
28071 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
28072 is not a STMT_LIST.
28074 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
28077 * config/i386/sync.md (atomic_<code><mode>): Rename to
28078 atomic_<logic><mode>.
28080 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
28082 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
28083 * alias.c (reg_base_value): Expand and update comment.
28084 (arg_base_value): New variable.
28085 (unique_id): Move up file.
28086 (unique_base_value, unique_base_value_p, known_base_value_p): New.
28087 (find_base_value): Use arg_base_value and known_base_value_p.
28088 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
28089 (find_base_term): Use known_base_value_p.
28090 (base_alias_check): Use unique_base_value_p.
28091 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
28092 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
28094 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
28096 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
28098 2012-04-17 Michael Matz <matz@suse.de>
28100 PR tree-optimization/18437
28101 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
28102 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
28103 (vect_check_strided_load): Declare.
28104 * tree-vect-data-refs.c (vect_check_strided_load): New function.
28105 (vect_analyze_data_refs): Use it to accept strided loads.
28106 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
28108 2012-04-17 Richard Guenther <rguenther@suse.de>
28110 PR middle-end/53011
28111 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
28112 loops when redirecting an entry or latch edge.
28114 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
28116 * sel-sched.c (sel_global_init): Revert previous change.
28118 2012-04-17 Richard Guenther <rguenther@suse.de>
28120 * tree-flow.h (array_at_struct_end_p): Move declaration ...
28121 * tree.h (array_at_struct_end_p): ... here.
28122 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
28123 * expr.c (array_at_struct_end_p): ... here. Rewrite.
28125 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
28127 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
28128 COST_TABLE): Remove.
28129 (estimate_case_costs): Remove.
28130 (expand_case): Do not call estimate_case_costs
28131 to set use_cost_table.
28132 (balance_case_nodes): Do not use use_cost_table.
28134 2012-04-16 Jan Hubicka <jh@suse.cz>
28136 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
28137 (hash_node, eq_node): Remove.
28138 (cgraph_create_node): Do not handle hashtable.
28139 (cgraph_get_node): Remove.
28140 (cgraph_insert_node_to_hashtable): Remove.
28141 (hash_node_by_assembler_name): Remove.
28142 (eq_assembler_name): Remove.
28143 (cgraph_node_for_asm): Rewrite.
28144 (cgraph_find_replacement_node): Break out from ...
28145 (cgraph_remove_node): ... here; do not maintain hashtables.
28146 (change_decl_assembler_name): Remove.
28147 (cgraph_clone_node): Do not maintain hashtables.
28148 * cgraph.h (const_symtab_node): New typedef.
28149 (cgraph_insert_node_to_hashtable): Remove.
28150 (symtab_get_node, symtab_node_for_asm,
28151 symtab_insert_node_to_hashtable): Declare.
28152 (cgraph_find_replacement_node): Declare.
28153 (cgraph_get_node, varpool_get_node): Turn into inlines.
28154 (cgraph, varpool): Work sanely on NULL pointers.
28155 (FOR_EACH_SYMBOL): New walker.
28156 * ipa-inline-transform.c (save_inline_function_body): Use
28157 symtab_insert_node_to_hashtable.
28158 * symtab.c: Include ggc.h and diagnostics.h
28159 (symtab_hash, assembler_name_hash): New static vars;
28160 (hash_node, eq_node, hash_node_by_assembler_name,
28161 eq_assembler_name, insert_to_assembler_name_hash,
28162 unlink_from_assembler_name_hash): New.
28163 (symtab_register_node): Update hashtables.
28164 (symtab_insert_node_to_hashtable): New.
28165 (symtab_unregister_node): Update hashtables.
28166 (symtab_get_node): New.
28167 (symtab_node_for_asm): New.
28168 (change_decl_assembler_name): New.
28169 * Makefile.in (symtab.o): Needs GTY.
28170 * varpool.c (varpool_hash): Remove.
28171 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
28172 (varpool_node): Rewrite using varpool_get_node.
28173 (varpool_remove_node): DO not maintain hashtables.
28174 (varpool_node_for_asm): Rewrite.
28176 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
28178 * doc/invoke.texi: Copy-edit to put verbs in the present tense
28179 when describing the current behavior of GCC.
28181 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
28183 * genemit.c (gen_exp): Remove ADDRESS handling.
28184 * genoutput.c (scan_operands): Likewise.
28185 * genpeep.c (match_rtx): Likewise.
28186 * genrecog.c (add_to_sequence): Likewise.
28188 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
28190 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
28192 2012-04-16 Martin Jambor <mjambor@suse.cz>
28194 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
28197 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
28200 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
28201 hints for 'A' operand types.
28203 2012-04-16 Jan Hubicka <jh@suse.cz>
28205 * cgraph.h (symtab_node_base): Add next and previous pointers.
28206 (cgraph_node): Remove next and preivous pointers.
28207 (varpool_node): Likewise; remove next/previous GTY marker;
28208 it is not type safe.
28209 (symtab_node_def): Update GTY marker
28210 (x_cgraph_nodes, cgraph_nodes): Remove.
28211 (symtab_nodes): New function.
28212 (cgraph_order): Rename to ...
28213 (symtab_order): ... this one.
28214 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
28216 (x_varpool_nodes, varpool_nodes): Remove.
28217 (FOR_EACH_STATIC_VARIABLE): Update.
28218 (symtab_function_p, symtab_variable_p): New function.
28219 (FOR_EACH_VARIABLE): Update.
28220 (varpool_first_variable, varpool_next_variable): New functions.
28221 (FOR_EACH_VARIABLE): Update.
28222 (cgraph_first_defined_function): Update.
28223 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
28224 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
28225 (cgraph_first_function, cgraph_next_function): New.
28226 (FOR_EACH_FUNCTION): Update.
28227 (cgraph_first_function_with_gimple_body,
28228 cgraph_next_function_with_gimple_body): Update.
28229 * symtab.c: New file.
28230 * cgraph.c: Update copyright dates.
28231 (x_cgraph_nodes, cgraph_order): Remove.
28232 (NEXT_FREE_NODE): Update.
28233 (SET_NEXT_FREE_NODE): New.
28234 (cgraph_create_node_1): Remove common code.
28235 (cgraph_create_node): Remove common code; call symtab_register_node.
28236 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
28237 (cgraph_add_asm_node): Update.
28238 (cgraph_clone_node): Register new node.
28239 * cgraphunit.c (process_function_and_variable_attributes): Update.
28240 (cgraph_analyze_functions): Update.
28241 (cgraph_analyze_functions): Update.
28242 (cgraph_output_in_order): Update.
28243 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
28245 * ipa-inline.c (recursive_inlining): Update.
28246 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
28247 * ipa.c (cgraph_remove_unreachable_nodes): Update.
28248 * Makefile.in: Add symtab.o
28249 * varpool.c (x_varpool_nodes): Remove
28250 (varpool_node): Remove common code; call symtab_register_node.
28251 (varpool_remove_node): Remove common code; call symtab_unregister_node.
28253 2012-04-16 Richard Guenther <rguenther@suse.de>
28255 PR middle-end/52977
28256 * tree.h (VECTOR_CST_NELTS): Adjust.
28257 (struct tree_vector): Add explicit length field.
28258 (make_vector_stat): Declare.
28259 (make_vector): Define.
28260 * tree.c (make_vector_stat): New function.
28261 (build_vector_stat): Use it.
28262 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
28264 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28266 PR tree-optimization/52976
28267 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
28268 (undistribute_ops_list): Ops with repeat counts aren't eligible for
28270 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
28272 2012-04-16 Jan Hubicka <jh@suse.cz>
28274 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
28276 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
28277 walkers to walk cgraph and varpool.
28278 * cgraph.c (cgraph_node_for_asm): Likewise.
28279 (dump_cgraph): Likewise.
28280 * value-prof.c (init_node_map): Likewise.
28281 * tree.c (free_lang_data_in_cgraph): Likewise.
28282 * tree-emutls.c: (ipa_lower_emutls): Likewise.
28283 * ipa-reference.c (generate_summary, propagate): Likewise.
28284 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
28285 cgraph_mark_functions_to_output, cgraph_output_in_order,
28286 output_weakrefs, cgraph_materialize_all_clones,
28287 cgraph_optimize): Likewise.
28288 * lto-cgraph.c (merge_profile_summaries): Likewise.
28289 (input_cgraph): Likewise.
28290 * ipa-pure-const.c (generate_summary): Likewise.
28291 (propagate): Likwise.
28292 * ipa-utils.c (ipa_reduced_postorder): Likewise.
28293 (ipa_free_postorder_info): Likewise.
28294 (ipa_reverse_postorder): Likewise.
28295 * ipa-inline.c (ipa_inline): Likewise.
28296 * matrix-reorg.c (find_matrices_decl): Likewise.
28297 (matrix_reorg): Likewise.
28298 * tree-vectorizer.c (increase_alignment): Likewise.
28299 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
28300 (function_and_variable_visibility): Likewise.
28301 (whole_program_function_and_variable_visibility): Likewise.
28302 (ipa_cdtor_merge): Likewise.
28303 * trans-mem.c (ipa_tm_execute): Likewise.
28304 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
28305 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
28306 (ipa_print_all_params): Likewise.
28307 (ipa_update_after_lto_read): Likewise.
28308 * tree-profie.c (tree_profiling): Likewise.
28309 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
28310 * passes.c (dump_passes): Likewise.
28311 (do_per_function): Likewise.
28312 (ipa_write_summaries): Likewise.
28313 * varpool.c (dump_varpool): Likewise.
28314 (varpool_node_for_asm): Likewise.
28315 (varpool_assemble_pending_decls): Likewise.
28317 2012-04-16 Richard Guenther <rguenther@suse.de>
28319 PR tree-optimization/52975
28320 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
28321 condition but always mark it with TRUTH_NOT_EXPR.
28323 2012-04-16 Richard Guenther <rguenther@suse.de>
28325 PR tree-optimization/52975
28326 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
28327 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
28328 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
28329 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
28331 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
28333 * config/i386/sse.md (ssse3_plusminus): New code iterator.
28334 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
28335 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
28336 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
28337 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
28338 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
28339 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
28341 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
28342 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
28343 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
28344 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
28345 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
28346 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
28348 (xop_plus): New code iterator.
28349 (macs): New code attribute.
28351 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
28352 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
28354 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
28355 xop_plus code iterator.
28356 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
28357 xop_plus code iterator.
28358 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
28359 xop_plus code iterator.
28360 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
28361 xop_plus code iterator.
28363 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
28364 any_extend code iterator.
28365 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
28366 any_extend code iterator.
28367 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
28368 any_extend code iterator.
28369 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
28370 any_extend code iterator.
28371 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
28372 any_extend code iterator.
28373 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
28374 any_extend code iterator.
28376 2012-04-14 Tom de Vries <tom@codesourcery.com>
28378 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
28379 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
28380 DELETED_LABEL note, and move it to ...
28381 * cfgrtl.c (delete_insn): ... here. Change return type to void.
28382 (delete_insn_and_edges): Likewise.
28383 (delete_insn_chain): Handle new return type of delete_insn. Delete
28384 chain backwards rather than forwards.
28385 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
28387 * cfglayout.c (fixup_reorder_chain): Delete unused label.
28389 2012-04-14 Jan Hubicka <jh@suse.cz>
28391 * cgraph.h: Update copyrights;
28392 (symtab_node): Turn to union typedef.
28393 (symtab_node_base): New structure.
28394 (symtab_type): Add SYMTAB_SYMBOL tag.
28395 (cgraph_node): Annotate some pinters with nested_ptr.
28396 (varpool_node): Likewise.
28397 (cgraph_local_info): Remove lto_file_data
28398 and externally_visible.
28399 (cgraph_node): Remove decl; same_comdat_group list;
28400 aux; ref_list; order; address_taken; reachable_from_other_parittion,
28401 in_other_partition; resolution.
28402 (varpool_node): Remove decl; same_comdat_group;
28403 ref_list; lto_file_data; aux; order; resolution; externally_visible;
28404 used_from_other_partition; in_other_partition.
28405 (symtab_node_def): New union.
28406 (cgraph, varpool): Update.
28407 (varpool_first_static_initializer, varpool_next_static_initializer,
28408 cgraph_only_called_directly_or_aliased_p,
28409 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
28410 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
28411 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
28413 * cgraph.c: Likewise.
28414 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
28415 * cgraphbuild.c: Likewise.
28416 * lto-symtab.c: Likewise.
28417 * c-gimplify.c: Likewise.
28418 * value-prof.c: Likewise.
28419 * tree.c: Likewise.
28420 * ipa-cp.c: Likewise.
28421 * tree-emutls.c: Likewise.
28422 * ipa-inline-transform.c: Likwise.
28423 * ipa-reference.c: Likewise.
28424 * cgraphunit.c: Likewise.
28425 * ipa-ref.c: Likewise.
28426 * lto-cgraph.c: Likewise.
28427 * ipa-ref-inline.h: Likewise.
28428 * ipa-pure-const.c: Likewise.
28429 * lto-streamer-out.c: Likewise.
28430 * ipa-utils.c: Likewise.
28431 * ipa-inline.c: Likewise.
28432 * matrix-reorg.c: Likewise.
28433 * tree-eh.c: Likewise.
28434 * tree-vectorizer.c: Likewise.
28435 * ipa-split.c: Likewise.
28437 * trans-mem.c: Likewise.
28438 * ipa-inline-analysis.c: Likewise.
28439 * gimplify.c: Likewise.
28440 * cfgexpand.c: Likewise.
28441 * tree-sra.c: Likewise.
28442 * ipa-prop.c: Likewise.
28443 * varasm.c: Likewise.
28444 * tree-nested.c: Likewise.
28445 * tree-inline.c: Likewise.
28446 * tree-profile.c: Likewise.
28447 * tree-ssa-structalias.c: Likewise.
28448 * passes.c: Likewise.
28449 * varpool.c: Likewise.
28451 2012-04-14 Tom de Vries <tom@codesourcery.com>
28453 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
28454 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
28455 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
28457 (gsi_advance_fw_nondebug_nonlocal): New function.
28458 (local_def): Removed function.
28459 (same_succ_hash): Use stmt_local_def.
28460 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
28461 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
28463 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
28465 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
28466 and __ILP32__ for x32.
28468 2012-04-13 Martin Jambor <mjambor@suse.cz>
28470 PR middle-end/52939
28471 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
28472 fold_ctor_reference returns a zero constant.
28474 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
28476 * config.gcc: Add i386/gnu-user-common.h before all
28477 i386/gnu-user.h and i386/gnu-user64.h usages.
28479 * config/i386/gnu-user-common.h: New.
28481 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
28482 (CC1_SPEC): Likewise.
28483 (ENDFILE_SPEC): Likewise.
28484 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
28485 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
28486 (TARGET_OS_CPP_BUILTINS): Likewise.
28487 (LIBGCC2_HAS_TF_MODE): Likewise.
28488 (LIBGCC2_TF_CEXT): Likewise.
28489 (TF_SIZE): Likewise.
28490 (TARGET_ASM_FILE_END): Likewise.
28491 (STACK_CHECK_MOVING_SP): Likewise.
28492 (STACK_CHECK_STATIC_BUILTIN): Likewise.
28493 * config/i386/gnu-user64.h: Likewise.
28495 2012-04-13 Martin Jambor <mjambor@suse.cz>
28497 * expr.c (expand_expr_real_1): Pass type, not the expression, to
28498 set_mem_attributes for a memory temporary. Do not call the function
28499 for the memory temporary created for a bitfield.
28501 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
28504 * df.h (enum debug_temp_where): New.
28505 (dead_debug_init, dead_debug_finish) Declare.
28506 (dead_debug_add, dead_debug_insert_temp): Declare.
28507 (struct dead_debug_use, struct dead_debug): Moved from...
28508 * df-problems.c: ... here.
28509 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
28511 (df_create_unused_note): Likewise.
28512 (df_set_dead_notes_for_mw): Move comment where it belongs.
28513 (dead_debug_init): Export.
28514 (dead_debug_reset_uses): New, factored out of...
28515 (dead_debug_finish): ...this. Export.
28516 (dead_debug_reset): Remove.
28517 (dead_debug_add): Export.
28518 (dead_debug_insert_before): Rename to...
28519 (dead_debug_insert_temp): ... this. Add where argument. Export.
28520 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
28521 Return insertion count.
28522 (df_note_bb_compute): Adjust.
28523 * dce.c (word_dce_process_block): Adjust dead debug uses.
28524 (dce_process_block): Likewise.
28526 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
28528 * df-problems.c (df_note_bb_compute): Do not take note of
28529 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
28531 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
28534 * var-tracking.c (expand_depth): New type.
28535 (onepart_aux, expand_loc_callback_data): Change depth type to it.
28536 (loc_exp_dep_alloc): Adjust initializer.
28537 (update_depth): Use new type. Add entryvals.
28538 (vt_expand_var_loc_chain): Take note of expansions with
28539 ENTRY_VALUEs, but don't accept them right away. Run an optional
28540 second pass accepting the minimum ENTRY_VALUE count found in the
28542 (vt_expand_loc_callback, INIT_ELCD): Adjust.
28544 2012-04-13 Tom de Vries <tom@codesourcery.com>
28546 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
28547 parameters vuse and vuse_escaped.
28548 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
28549 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
28552 2012-04-13 Richard Guenther <rguenther@suse.de>
28554 PR tree-optimization/52969
28555 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
28556 the condition for the COND_EXPR and handle predicate negation
28557 by swapping the COND_EXPR arms.
28559 2012-04-13 Nick Clifton <nickc@redhat.com>
28561 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
28562 TODO_dump_func flag.
28564 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
28566 PR rtl-optimization/52203
28567 PR rtl-optimization/52715
28569 Revert the 2012-03-07 fix for PR 52203.
28570 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
28571 the insn does not modify DFA right before issuing, adjust
28572 issue_rate accordingly.
28574 2012-04-13 Richard Guenther <rguenther@suse.de>
28577 * c-typeck.c (pointer_diff): Remove bogus assert.
28579 2012-04-13 Richard Guenther <rguenther@suse.de>
28582 * convert.c (convert_to_pointer): Remove special-casing of zero.
28584 2012-04-13 Joey Ye <joey.ye@arm.com>
28586 * config/arm/constraints.md (Pe): New constraint.
28587 * config/arm/arm.md: New split for imm 256-510.
28589 2012-04-13 Terry Guo <terry.guo@arm.com>
28591 * config/arm/arm-cores.def: Added core cortex-m0plus.
28592 * config/arm/arm-tune.md: Regenerated.
28593 * config/arm/arm-tables.opt: Regenerated.
28594 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
28596 2012-04-13 Alan Modra <amodra@gmail.com>
28599 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
28600 tie regs on destination of sets. Delete forward declaration.
28601 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
28602 (rs6000_emit_prologue): Likewise.
28603 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
28605 (is_mem_ref): Use tie_operand to recognise stack ties.
28606 * config/rs6000/predicates.md (tie_operand): New.
28607 * config/rs6000/rs6000.md (restore_stack_block): Generate new
28609 (restore_stack_nonlocal): Likewise.
28610 (stack_tie): Update.
28611 (frame_tie): Delete.
28613 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28615 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
28616 HOST_WIDE_INT_PRINT_DEC in format strings.
28618 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
28621 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
28622 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
28623 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
28624 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
28625 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
28626 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
28627 avx2_permvarv8si using VI4F_256 mode iterator.
28628 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
28629 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
28630 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
28631 gen_avx2_permvarv8sf.
28632 (expand_vec_perm_pshufb): Ditto.
28634 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28637 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
28638 the list of options to enable the FCFID instruction.
28639 (TARGET_EXTRA_BUILTINS): Adjust comment.
28641 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28643 PR tree-optimization/18589
28644 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
28645 (operand_entry): Add count field.
28646 (add_repeat_to_ops_vec): New function.
28647 (completely_remove_stmt): Likewise.
28648 (remove_def_if_absorbed_call): Likewise.
28649 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
28650 (acceptable_pow_call): New function.
28651 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
28652 entries with repeat counts when found.
28653 (repeat_factor_d): New struct and associated typedefs.
28654 (repeat_factor_vec): New static vector variable.
28655 (compare_repeat_factors): New function.
28656 (get_reassoc_pow_ssa_name): Likewise.
28657 (attempt_builtin_powi): Likewise.
28658 (reassociate_bb): Call attempt_builtin_powi.
28659 (fini_reassoc): Two new calls to statistics_counter_event.
28661 2012-04-12 Richard Guenther <rguenther@suse.de>
28663 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
28664 * cgraph.h (tree_rest_of_compilation): Remove.
28665 * cgraph.c (cgraph_add_new_function): Move ...
28666 * cgraphunit.c (cgraph_add_new_function): ... here.
28667 (tree_rest_of_compilation): Make static.
28668 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
28669 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
28670 gate_all_early_local_passes, execute_all_early_local_passes,
28671 pass_early_local_passes, gate_all_early_optimizations,
28672 pass_all_early_optimizations): Move ...
28673 * passes.c (gate_all_optimizations, pass_all_optimizations,
28674 gate_all_early_local_passes, execute_all_early_local_passes,
28675 pass_early_local_passes, gate_all_early_optimizations,
28676 pass_all_early_optimizations): ... here.
28677 * tree-optimize.c (execute_free_datastructures): Remove.
28678 * tree-flow.h (execute_free_datastructures): Remove.
28679 * tree-optimize.c (execute_init_datastructures,
28680 pass_init_datastructures): Move ...
28681 * tree-ssa.c (execute_init_datastructures,
28682 pass_init_datastructures): ... here.
28683 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
28684 execute_free_datastructures.
28686 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
28688 * dbgcnt.def (ira_move): New counter.
28689 * ira-int.h (ira_create_new_reg): Declare function.
28690 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
28691 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
28692 no longer static. All callers changed.
28693 * ira.c: Include "dbgcnt.h".
28694 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
28695 move_unallocated_pseudos): New static functions.
28696 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
28697 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
28698 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
28699 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
28700 to the pseudos generated in find_moveable_pseudos.
28701 * Makefile.in (ira.o): Add $(DBGCNT_H).
28703 2012-04-12 Richard Guenther <rguenther@suse.de>
28705 PR tree-optimization/52943
28706 * tree-chrec.h (chrec_is_positive): Remove.
28707 * tree-scalar-evolution.c (chrec_is_positive): Move ...
28708 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
28709 Return false for a constant zero instead of negative.
28710 (analyze_siv_subscript_cst_affine): Handle zero difference
28711 in the initial condition explicitely.
28713 2012-04-12 Richard Guenther <rguenther@suse.de>
28715 * tree-parloops.c (parallelize_loops): Also consult the upper
28716 bound for the number of iterations.
28717 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
28718 (loop_prefetch_arrays): Likewise.
28720 2012-04-12 Richard Guenther <rguenther@suse.de>
28722 * cfgloop.h (estimated_loop_iterations_int): Ditch
28723 'conservative' parameter.
28724 (max_stmt_executions_int): Likewise.
28725 (estimated_loop_iterations): Likewise.
28726 (max_stmt_executions): Likewise.
28727 (max_loop_iterations): Declare.
28728 (max_loop_iterations_int): Likewise.
28729 (estimated_stmt_executions): Likewise.
28730 (estimated_stmt_executions_int): Likewise.
28731 * tree-ssa-loop-niter.c (estimated_loop_iterations):
28733 (max_loop_iterations): ... this.
28734 (estimated_loop_iterations_int): Split parts to ...
28735 (max_loop_iterations_int): ... this.
28736 (max_stmt_executions_int): Split parts to ...
28737 (estimated_stmt_executions_int): ... this.
28738 (max_stmt_executions): Split parts to ...
28739 (estimated_stmt_executions): ... this.
28740 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
28741 * predict.c (predict_loops): Likewise.
28742 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
28743 (analyze_siv_subscript_cst_affine): Likewise.
28744 (compute_overlap_steps_for_affine_1_2): Likewise.
28745 (analyze_subscript_affine_affine): Likewise.
28746 (init_omega_for_ddr_1): Likewise.
28747 * tree-parloops.c (parallelize_loops): Likewise.
28748 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28749 (may_eliminate_iv): Likewise.
28750 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
28751 (loop_prefetch_arrays): Likewise.
28752 * tree-vrp.c (adjust_range_with_scev): Likewise.
28754 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
28756 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
28757 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
28759 (dump_table): Use bool type for need_align and have_df variables.
28760 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
28761 (regs_used): Remove register modifier.
28762 (barrier_align): Move variables slot, credit, jump_to_next
28763 into if block above for loop. Use bool type for jump_to_next.
28764 (sh_function_arg): Use NULL_RTX instead of 0.
28766 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
28768 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
28769 (bswapsi2): New expander.
28771 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
28773 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
28774 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
28776 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
28778 PR rtl-optimization/52876
28779 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
28780 Don't call mark_reg_pointer for incompatible pointer sign extension.
28782 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
28785 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
28787 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
28788 comparisons against TYPE_PRECISION.
28789 * tree-ssa-forwprop.c (combine_conversions): Likewise.
28791 2012-04-11 Xinliang David Li <davidxl@google.com>
28793 * tree-passes.h: Remove TODO_dump_func.
28794 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
28795 * trans-mem.c: Remove TODO_dump_func.
28796 * ira.c: Remove TODO_dump_func.
28798 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
28800 * config/i386/i386.c (ix86_option_override_internal): Check
28801 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
28802 after TARGET_64BIT is updated.
28804 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
28806 * config/sh/sh.h: Remove old secondary reload code.
28808 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
28810 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
28811 (ready_reorder): ... this function.
28813 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
28815 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
28818 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
28819 insns so that no other insn is queued for a time before them.
28821 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
28824 2012-04-11 Richard Guenther <rguenther@suse.de>
28826 PR middle-end/52621
28827 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
28828 consider loop nesting.
28829 (evolution_function_is_univariate_p): Properly check the remainder
28832 2012-04-11 Richard Guenther <rguenther@suse.de>
28834 PR middle-end/52918
28835 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
28837 2012-04-11 Nick Clifton <nickc@redhat.com>
28839 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
28840 information, if requested.
28842 * config/rx/rx.c (rx_expand_prologue): Likewise.
28844 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
28845 Michael Matz <matz@suse.de>
28848 * rtlanal.c (unsigned_reg_p): New function.
28849 Update copyright notice dates.
28850 * rtl.h (unsigned_reg_p): Prototype it.
28851 Update copyright notice dates.
28852 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
28854 * expr.c (expand_expr_real_1): Set register attributes.
28855 * stmt.c (expand_case): Likewise.
28857 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
28860 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
28861 consider_sh2a and allow_zero.
28862 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
28863 (disp_addr_displacement): New function.
28864 (sh_address_cost): Use disp_addr_displacement function instead
28865 of DISP_ADDR_OFFSET.
28866 (sh_legitimate_address_p): Adapt to changed
28867 sh_legitimate_index_p declaration.
28868 (sh_find_mov_disp_adjust): Remove HImode check.
28869 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
28870 disp_addr_displacement and max_mov_insn_displacement.
28871 (max_mov_insn_displacement): Remove HImode check.
28872 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
28873 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
28874 * config/sh/constraints.md (K05, K13): New constraints.
28875 (K12): Correct comment.
28876 (Sdd): Do not use DISP_ADDR_P macro.
28877 (Snd, Sbw): Use satisfies_constraint_Sdd.
28878 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
28879 (*extendhisi2_compact, movhi_i): Remove.
28880 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
28881 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
28882 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
28883 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
28884 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
28885 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
28886 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
28888 Add new peepholes for HImode displacement addressing.
28890 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
28892 * config/sh/sh.h (SIDI_OFF): Remove.
28893 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
28894 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
28895 or operand_subword.
28897 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
28900 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
28901 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
28902 * doc/md.texi (Standard Names): Add bswap.
28903 * builtin-types.def (BT_UINT16): New primitive type.
28904 (BT_FN_UINT16_UINT16): New function type.
28905 * builtins.def (BUILT_IN_BSWAP16): New.
28906 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
28907 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
28908 expand_builtin_bswap.
28909 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
28910 (fold_builtin_1): Likewise.
28911 (is_inexpensive_builtin): Likewise.
28912 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
28913 missing bits for bswap to libcall code.
28914 * tree.c (build_common_tree_nodes): Build uint16_type_node.
28915 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
28916 (uint16_type_node): New define.
28917 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
28918 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
28920 (rs6000_init_builtins): Likewise.
28921 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
28923 2012-04-11 Tristan Gingold <gingold@adacore.com>
28925 * doc/extend.texi (Type Attributes): Move paragraph.
28927 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
28930 * diagnostic.h (show_caret): Declare.
28931 (caret_max_width): Declare.
28932 (diagnostic_show_locus): Declare.
28933 * diagnostic.c (diagnostic_initialize): Initialize to false.
28934 (diagnostic_show_locus): New.
28935 (diagnostic_report_diagnostic): Call it.
28936 (getenv_columns): New.
28937 (adjust_line): New.
28938 (diagnostic_set_caret_max_width): New.
28939 * input.c (read_line): New.
28940 (location_get_source_line): New.
28941 * input.h (location_get_source_line): Declare.
28942 * toplev.c (general_init): Initialize show_caret from options.
28943 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
28944 * opts.c (common_handle_option): Likewise.
28945 * pretty-print.h (pp_get_prefix): New.
28946 (pp_base_get_prefix): New.
28947 * common.opt (fdiagnostics-show-caret): New option.
28948 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
28950 2012-04-11 Richard Guenther <rguenther@suse.de>
28952 PR rtl-optimization/52881
28953 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
28955 2012-04-11 Richard Guenther <rguenther@suse.de>
28957 PR tree-optimization/52912
28958 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
28959 manipulation code we are threading through a loop header
28960 to an exit destination.
28962 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
28964 * tree.h (warn_if_unused_value): Move declaration from here.
28965 * stmt.c (warn_if_unused_value): Move definition from here.
28967 2012-04-10 Michael Matz <matz@suse.de>
28969 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
28971 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
28972 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
28973 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
28974 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
28975 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
28976 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
28977 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
28978 (vect_record_strided_load_vectors): Rename to
28979 vect_record_grouped_load_vectors.
28980 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
28981 Rename use of above macros.
28982 (vect_verify_datarefs_alignment): Ditto.
28983 (vector_alignment_reachable_p): Ditto.
28984 (vect_peeling_hash_get_lowest_cost): Ditto.
28985 (vect_enhance_data_refs_alignment): Ditto.
28986 (vect_analyze_group_access): Ditto and rename stride to groupsize.
28987 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
28988 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
28989 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
28990 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
28991 (vect_record_strided_load_vectors): Rename to
28992 vect_record_grouped_load_vectors.
28993 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
28994 (destroy_loop_vec_info): Ditto.
28995 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
28996 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
28997 (vect_analyze_slp): Ditto.
28998 (new_bb_vec_info): Ditto.
28999 (destroy_bb_vec_info): Ditto.
29000 (vect_schedule_slp_instance): Ditto and rename strided_store to
29002 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
29003 vect_cost_group_size.
29004 (vect_model_store_cost): Rename use of above macros and call
29005 to vect_cost_strided_group_size.
29006 (vect_model_load_cost): Ditto.
29007 (vectorizable_store): Ditto, rename strided_store to grouped_store
29008 and calls to renamed tree-vectorizer.h functions.
29009 (vectorizable_load): Ditto.
29010 (vect_transform_stmt): Rename use of above macros and strided_store
29013 2012-04-10 Jan Hubicka <jh@suse.cz>
29015 * cgraph.h: Remove misledaing comment on ipa-ref.h.
29016 (symtab_type): New enum.
29017 (symtab_node): New structure.
29018 (cgraph_node, varpool_node): Add symbol base type.
29019 (cgraph, varpool): New accestor functions.
29020 * cgraph.c (cgraph_create_node_1): Set symbol type.
29021 * varpool.c (varpool_node): Set symbol type.
29023 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
29024 Richard Sandiford <rdsandiford@googlemail.com>
29026 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
29028 2012-04-10 Richard Guenther <rguenther@suse.de>
29030 PR middle-end/52888
29031 * gimple-low.c (gimple_check_call_args): Properly account for
29032 compatible aggregate types.
29034 2012-04-10 Richard Guenther <rguenther@suse.de>
29036 * toplev.h (tree_rest_of_compilation): Remove.
29037 * tree-optimize.c (tree_rest_of_compilation): Likewise.
29038 * cgraph.h (tree_rest_of_compilation): Declare.
29039 * tree-optimize.c (tree_rest_of_compilation): Move ...
29040 * cgraphunit.c (tree_rest_of_compilation): ... here.
29041 * cgraph.c (cgraph_add_new_function): Adjust.
29042 * Makefile.in (tree-optimize.o): Adjust.
29043 (cgraphunit.o): Likewise.
29045 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
29047 PR tree-optimization/52870
29048 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
29049 presumed pattern statement is within the same loop or basic block.
29051 2012-04-10 Tristan Gingold <gingold@adacore.com>
29053 * gengtype.c (main): Make uintptr_t a known type.
29055 2012-04-10 Richard Guenther <rguenther@suse.de>
29057 * tree-pass.h (tree_lowering_passes): Remove.
29058 * tree-optimize.c (tree_lowering_passes): Remove.
29059 * cgraph.c (cgraph_add_new_function): Inline relevant parts
29060 of tree_lowering_passes, avoid redundant call of early local passes.
29061 * cgraphunit.c (cgraph_lower_function): Fold into ...
29062 (cgraph_analyze_function): ... its single caller. Inline
29063 relevant parts of tree_lowering_passes.
29065 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
29068 * config/pa/pa.opt: Remove SIO and GNU_LD.
29070 2012-04-09 Jan Hubicka <jh@suse.cz>
29075 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
29076 boundary, add its target too.
29077 * lto.c (add_references_to_partition): Add also aliased nodes.
29078 (add_cgraph_node_to_partition,
29079 add_varpool_node_to_partition): Work on nodes, not functions/variables;
29080 when adding alias, add also the aliased object.
29082 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
29085 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
29086 VOIDmode immediate operands.
29087 * config/i386/constraints.md (Wz): New constraint.
29088 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
29090 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
29093 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
29094 the DECL generated for the special GOT helper.
29096 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
29098 * config/sh/constraints.md: Update list of constraints in
29100 (Sr0): Remove unused memory constraint.
29102 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
29104 * tree-pretty-print.h: Update comment.
29106 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
29108 * config/sh/sh.md: Use braced string notation where applicable.
29109 (*prefetch_i4, prefetch_m2a): Merge into ...
29110 (*prefetch): ... this new insn.
29112 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
29114 * config/sh/sh.h (high_life_started): Remove
29115 * config/sh/predicates.md (general_movdst_operand): Use
29116 'reload_in_progress' instead of 'high_life_started'.
29117 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
29118 divsi_inv_fp): Likewise.
29120 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
29122 * config/sh/sh-protos.h (prepare_move_operands): Return void
29124 * config/sh/sh.c (prepare_move_operands): Likewise.
29125 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
29127 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
29129 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
29130 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
29131 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
29132 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
29133 commutative_float_operator, noncommutative_float_operator,
29134 sh_handle_pragma): Remove.
29136 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
29138 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
29139 Use @option markup on command-line options. Use @samp markup on
29140 literal keywords to options. Use @code markup on code fragments.
29141 Use other markup in preference to quotation marks in the text.
29142 Add markup to some passages without any.
29144 2012-04-06 Mike Stump <mikestump@comcast.net>
29146 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
29148 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
29150 * config/sh/sh.c (hi_const): Remove.
29151 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
29154 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
29156 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
29158 * config/sh/sh.c (sh_expand_t_scc): Likewise.
29159 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
29160 calling sh_expand_t_scc.
29162 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
29164 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
29165 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
29166 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
29167 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
29168 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
29169 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
29170 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
29171 sh2a_is_function_vector_call): Use bool as return type.
29172 (sh_pass_in_reg_p): Remove.
29173 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
29174 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
29175 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
29176 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
29177 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
29178 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
29179 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
29180 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
29181 sh_loads_bankedreg_p): Use bool as return type.
29182 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
29183 'register' modifier.
29185 2012-04-06 Matt Turner <mattst88@gmail.com>
29187 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
29189 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
29191 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
29192 of the destination isn't also a FP_REGS register.
29194 2012-04-05 Teresa Johnson <tejohnson@google.com>
29195 H.J. Lu <hongjiu.lu@intel.com>
29197 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
29198 * config/i386/i386.md (move immediate to memory peephole2):
29199 Add cases for HImode move when LCP stall avoidance is needed.
29200 * config/i386/i386.c (initial_ix86_tune_features): Initialize
29201 X86_TUNE_LCP_STALL entry.
29203 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
29206 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
29207 CONST_INT operands, zero-extended with AND.
29209 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
29212 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
29213 first argument instead of mode size. Move displacement calculations
29215 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
29216 ... these new functions.
29217 (disp_adjust): Remove max_mov_disp field.
29218 (sh_legitimate_index_p): Use max_mov_insn_displacement and
29219 mov_insn_alignment_mask.
29220 (sh_address_cost): Use max_mov_insn_displacement.
29222 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
29224 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
29225 (arch_enabled): Handle new arch types.
29226 (one_cmpldi2): Add NEON support.
29228 2012-04-05 Richard Guenther <rguenther@suse.de>
29230 * gimple.c (walk_gimple_op): Compute val_only for the LHS
29231 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
29232 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
29233 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
29234 ... here and make static.
29235 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
29238 2012-04-05 Richard Guenther <rguenther@suse.de>
29240 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
29241 basic-block before removing it.
29243 2012-04-05 Richard Guenther <rguenther@suse.de>
29245 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
29246 version namespace as we release the freelist.
29248 2012-04-05 Richard Guenther <rguenther@suse.de>
29250 * tree-nrv.c (tree_nrv): Release VDEFs.
29251 * tree-sra.c (sra_modify_constructor_assign): Likewise.
29252 (sra_modify_assign): Likewise.
29253 * tree-vect-stmts.c (vect_remove_stores): Likewise.
29254 * tree-vect-loop.c (vect_transform_loop): Likewise.
29255 * tree-ssa-dom.c (optimize_stmt): Likewise.
29256 * tree-vect-slp.c (vect_schedule_slp): Likewise.
29257 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
29259 2012-04-05 Richard Guenther <rguenther@suse.de>
29261 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
29263 * gimple.h (gsi_remove): Adjust.
29264 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
29265 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
29266 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
29267 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
29268 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
29269 * tree-ssa-pre.c (eliminate): Likewise.
29271 2012-04-04 Mike Stump <mikestump@comcast.net>
29273 * doc/rtl.texi (const_double): Document as sign-extending.
29274 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
29275 * emit-rtl.c (immed_double_int_const): Refine to state the
29277 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
29278 CONST_DOUBLE integers.
29279 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
29280 negative values are converted. Fix conversions bigger than
29281 HOST_BITS_PER_WIDE_INT.
29282 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
29283 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
29284 * explow.c (plus_constant_mode): Add.
29285 (plus_constant): Implement with plus_constant_mode.
29286 * rtl.h (plus_constant_mode): Add.
29288 2012-04-04 Richard Guenther <rguenther@suse.de>
29290 PR tree-optimization/52808
29291 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
29292 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
29294 2012-04-04 Tristan Gingold <gingold@adacore.com>
29296 * expr.c (expand_expr_real_2): Handle larger sizetype in
29299 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
29301 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
29302 to m2a-single instead of m2e.
29304 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
29306 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
29307 Change type of BITOFFSET to signed. Make sure the lower bound of
29308 the computed range is non-negative by adjusting OFFSET and BITPOS.
29309 (expand_assignment): Adjust call to get_bit_range.
29311 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
29313 * h8300/h8300.c (h8300_current_function_monitor_function_p):
29314 New function. Added to check monitor functions.
29315 (h8300_option_override): Modified to generate error/warning
29316 messages for invalid combinations of different command line
29318 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
29319 save EXR on stack for monitor function in case of H8S target
29320 when "-mno-exr" is passed.
29321 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
29323 * doc/invoke.texi: Document H8S options.
29325 2012-04-03 Tristan Gingold <gingold@adacore.com>
29327 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
29328 of gcc_AC_FUNC_MMAP_BLACKLIST.
29329 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
29330 * Makefile.in (aclocal_deps): Add mmap.m4.
29331 * configure: Regenerate.
29332 * aclocal.m4: Regenerate.
29334 2012-04-03 Richard Guenther <rguenther@suse.de>
29336 PR tree-optimization/52808
29337 * tracer.c (tail_duplicate): Return whether we have duplicated
29339 (tracer): If we have duplicated any block, cleanup the CFG.
29340 * cfghooks.c (duplicate_block): If we duplicated a loop
29341 header but not its loop, destroy the loop because it now has
29343 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
29344 the cfg manipulation routines we are not creating a multiple
29347 2012-04-03 Tristan Gingold <gingold@adacore.com>
29349 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
29351 (vms_c_common_override_options): Allow parameterless variadic
29354 2012-04-03 Jakub Jelinek <jakub@redhat.com>
29356 PR tree-optimization/52835
29357 * tree-data-ref.c (build_rdg): Return NULL if
29358 compute_data_dependences_for_loop failed.
29360 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
29362 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
29363 for REAL_CST as well.
29364 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
29365 In the bitfield case, if the value is a REAL_CST, convert it first to
29368 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
29370 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
29371 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
29372 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
29374 * config/i386/biarchx32.h: New.
29376 2012-04-02 Anatoly Sokolov <aesok@post.ru>
29378 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
29379 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29380 (arm_preferred_reload_class): New function.
29382 2012-04-02 Richard Guenther <rguenther@suse.de>
29384 PR tree-optimization/52756
29385 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
29386 (thread_through_loop_header): After threading through the loop latch
29387 remove the split part from the loop and clear further threading
29388 opportunities that would create a multiple entry loop.
29390 2012-04-02 Richard Guenther <rguenther@suse.de>
29392 PR rtl-optimization/52800
29393 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
29394 CLEANUP_CFG_CHANGED.
29396 2012-04-02 Richard Guenther <rguenther@suse.de>
29398 PR middle-end/52803
29399 * loop-init.c (gate_handle_loop2): Destroy loops here if
29400 we don't enter RTL loop optimizers.
29402 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
29405 2012-03-29 Richard Guenther <rguenther@suse.de>
29407 * rtl.h (extended_count): Remove.
29408 * combine.c (extended_count): Remove.
29410 2012-04-02 Dodji Seketeli <dodji@redhat.com>
29413 * pt.c (more_specialized_fn): Don't apply decay conversion to
29414 types of function parameters.
29416 2012-04-02 Tristan Gingold <gingold@adacore.com>
29418 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
29419 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
29420 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
29421 (ggc_pch_this_base): Use uintptr_t instead of size_t.
29423 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
29426 * config/i386/i386.c (ix86_option_override_internal): Don't
29427 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
29429 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
29431 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
29432 (stmt_can_make_abnormal_goto): Use it.
29433 (is_ctrl_altering_stmt): Likewise.
29435 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
29436 Kaz Kojima <kkojima@gcc.gnu.org>
29438 * config/sh/sh.c (push_regs): Skip banked registers when
29439 resbank attribute is specified.
29440 (sh_expand_epilogue): Likewise.
29442 2012-03-30 Richard Henderson <rth@redhat.com>
29445 * combine-stack-adj.c (prev_active_insn_bb): New.
29446 (next_active_insn_bb): New.
29447 (force_move_args_size_note): New.
29448 (combine_stack_adjustments_for_block): Use it.
29450 2012-03-30 Richard Henderson <rth@redhat.com>
29452 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
29453 (ix86_expand_vector_init_duplicate): Initialize it.
29454 (expand_vec_perm_palignr): Likewise.
29455 (ix86_expand_vec_perm_const): Likewise.
29456 (ix86_vectorize_vec_perm_const_ok): Likewise.
29457 (expand_vec_perm_blend): Use it.
29458 (expand_vec_perm_vpermil): Likewise.
29459 (expand_vec_perm_pshufb): Likewise.
29460 (expand_vec_perm_1): Likewise.
29461 (expand_vec_perm_pshuflw_pshufhw): Likewise.
29462 (expand_vec_perm_interleave2): Likewise.
29463 (expand_vec_perm_vpermq_perm_1): Likewise.
29464 (expand_vec_perm_vperm2f128): Likewise.
29465 (expand_vec_perm_interleave3): Likewise.
29466 (expand_vec_perm_vperm2f128_vblend): Likewise.
29467 (expand_vec_perm_vpshufb2_vpermq): Likewise.
29468 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
29469 (expand_vec_perm_broadcast): Likewise.
29470 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
29472 2012-03-30 Richard Henderson <rth@redhat.com>
29474 * dwarf2out.c (gen_variable_die): Initialize off.
29476 2012-03-30 Tristan Gingold <gingold@adacore.com>
29478 * config/vms/vms-f.c: New file.
29479 * config/vms/t-vms (vms-f.o): New rule.
29480 * config.gcc (*-*-*vms*): Define fortran_target_objs.
29482 2012-03-30 Richard Guenther <rguenther@suse.de>
29484 PR tree-optimization/52754
29485 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
29486 propagate arbitrary addresses into really plain dereferences.
29488 2012-03-30 Richard Guenther <rguenther@suse.de>
29490 PR middle-end/52772
29491 * except.c (emit_to_new_bb_before): Move loop updating ...
29492 (dw2_build_landing_pads): ... here. Use a proper block for
29493 querying the loop father.
29495 2012-03-30 Tristan Gingold <gingold@adacore.com>
29497 * config/ia64/ia64.c (ia64_section_type_flags): Remove
29498 common_object attribute handling.
29499 (SECTION_VMS_OVERLAY): Remove
29500 (ia64_vms_common_object_attribute): Replace abort with an assert.
29501 Do not set DECL_SECTION_NAME.
29502 (ia64_vms_output_aligned_decl_common): Handle common_object
29504 (ia64_vms_elf_asm_named_section): Remove.
29505 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
29507 2012-03-30 Richard Guenther <rguenther@suse.de>
29509 PR middle-end/52786
29510 * double-int.c (rshift_double): Remove not needed cast.
29512 2012-03-30 Richard Guenther <rguenther@suse.de>
29514 * tree-affine.h (print_aff): Remove.
29515 * tree-affine.c (print_aff): Make static.
29516 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
29517 (get_references_in_stmt): Likewise.
29518 (print_direction_vector): Likewise.
29519 (print_dir_vectors): Likewise.
29520 (print_dist_vectors): Likewise.
29521 (dump_subscript): Likewise.
29522 (dump_ddrs): Likewise.
29523 (dump_dist_dir_vectors): Likewise.
29524 (dump_data_references): Likewise.
29525 (dump_data_dependence_relation): Likewise.
29526 (dump_data_dependence_direction): Likewise.
29527 (dump_rdg_vertex): Likewise.
29528 (dump_rdg_component): Likewise.
29529 (debug_ddrs): Declare.
29530 (struct data_ref_loc_d): Move ...
29531 * tree-data-ref.c (struct data_ref_loc_d): ... here.
29532 (get_references_in_stmt): Make static.
29533 (dump_data_references): Likewise.
29534 (dump_subscript): Likewise.
29535 (print_direction_vector): Likewise.
29536 (print_dir_vectors): Likewise.
29537 (print_dist_vectors): Likewise.
29538 (dump_data_dependence_relation): Likewise.
29539 (dump_dist_dir_vectors): Likewise.
29540 (dump_ddrs): Likewise.
29541 (dump_rdg_vertex): Likewise.
29542 (dump_rdg_component): Likewise.
29543 (debug_ddrs): New function.
29544 (access_matrix_get_index_for_parameter): Remove.
29546 2012-03-30 Tristan Gingold <gingold@adacore.com>
29548 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
29549 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
29550 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
29551 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
29552 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
29553 (vms_patch_builtins): Handle new flags
29554 * config/vms/vms-crtlmap.map: Completed using nm on
29555 c and math system libraries.
29556 * config/vms/make-crtlmap.awk: Handle any number of flags.
29558 2012-03-30 Martin Jambor <mjambor@suse.cz>
29560 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
29561 is a builtin_stack_save in a dominating BB.
29563 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
29565 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
29566 crossing 128bit lane boundary.
29568 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
29570 * ira-color.c (setup_left_conflict_sizes_p): Process all
29571 conflicting objects.
29573 2012-03-29 Jakub Jelinek <jakub@redhat.com>
29575 PR tree-optimization/52760
29576 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
29577 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
29579 2012-03-29 Richard Guenther <rguenther@suse.de>
29581 * cgraph.h (cgraph_materialize_all_clones): Remove.
29582 (reset_inline_failed): Likewise.
29583 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
29584 * cgraphbuild.c (reset_inline_failed): Remove.
29585 * rtl.h (cse_main): Remove.
29586 (extended_count): Likewise.
29587 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
29588 (cse_main): Make static.
29589 * combine.c (extended_count): Remove.
29590 (dump_combine_stats): Mark as DEBUG_FUNCTION.
29591 * basic-block.h (reorder_basic_blocks): Remove.
29592 * bb-reorder.c (reorder_basic_blocks): Make static.
29593 * Makefile.in (dse.o): Remove dse.h dependency.
29595 * dse.c (gate_dse): Remove.
29596 (clear_alias_mode_eq): Likewise.
29597 (clear_alias_mode_hash): Likewise.
29598 (dse_record_singleton_alias_set): Likewise.
29599 (dse_invalidate_singleton_alias_set): Likewise.
29601 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
29603 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
29604 crtbegin_so%O%s for -shared.
29605 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
29607 2012-03-29 Richard Guenther <rguenther@suse.de>
29609 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
29610 (add_to_value): Remove.
29611 (print_value_expressions): Likewise.
29612 * tree-ssa-pre.c (add_to_value): Make static.
29613 (print_value_expressions): Likewise.
29614 * gimple.h (gimple_adjust_this_by_delta): Remove.
29615 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
29617 2012-03-29 Richard Guenther <rguenther@suse.de>
29619 PR middle-end/50708
29620 * double-int.h (rshift_double): Remove.
29621 * double-int.c (lshift_double): Use absu_hwi to make count positive.
29622 (rshift_double): Make static, take unsigned count argument,
29623 remove handling of negative count argument.
29624 (double_int_rshift): Dispatch to lshift_double.
29626 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
29628 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
29629 OPTION_MASK_ABI_64.
29631 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
29632 (SPEC_X32): Likewise.
29633 (MULTILIB_DEFAULTS): Likewise.
29635 * config/i386/i386.c (isa_opts): Remove -m64.
29636 (ix86_target_string): Properly handle -m32/-m64/-mx32.
29637 (ix86_option_override_internal): Properly
29638 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
29639 handle -m32, -m64 and -mx32.
29641 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
29642 with OPTION_ABI_X32. Moved after TARGET_LP64.
29643 (TARGET_LP64): Changed to OPTION_ABI_64.
29645 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
29646 (mx32): Replace ISA_X32 with ABI_X32.
29648 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
29650 * tree.c (tree_size) <VECTOR_CST>: New case.
29652 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
29654 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
29655 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
29657 2012-03-28 Jakub Jelinek <jakub@redhat.com>
29659 PR middle-end/52691
29660 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
29661 __builtin_va_start to __builtin_next_arg if the latter is
29662 builtin_decl_explicit_p rather than when it is not.
29664 PR middle-end/52750
29665 * tree-vect-generic.c (vector_element): Perform multiplication
29666 for pos in bitsizetype type instead of idx type.
29668 2012-03-28 Richard Guenther <rguenther@suse.de>
29670 * loop-init.c (loop_optimizer_init): If loops are preserved
29671 perform incremental initialization of required loop features.
29672 (loop_optimizer_finalize): If loops are to be preserved only
29673 clean up optional loop features.
29674 (rtl_loop_done): Forcefully free loops here.
29675 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
29676 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
29678 (construct_init_block): Likewise.
29679 (construct_exit_block): Likewise.
29680 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
29681 the CFG after expanding.
29682 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
29683 If we needed to calculate them, free them afterwards.
29684 * tree-pass.h (PROP_loops): New define.
29685 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
29686 * basic-block.h (CLEANUP_CFG_CHANGED): New.
29687 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
29688 (cleanup_cfg): If we did something and have loops around, fix them up.
29689 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
29690 with CLEANUP_CFG_CHANGED.
29691 * cfghooks.c (merge_blocks): If we merge a loop header into
29692 its predecessor, update the loop structure.
29693 (duplicate_block): If we copy a loop latch, adjust loop state
29694 to note we may have multiple latches.
29695 (delete_basic_block): Mark loops for fixup if we remove a loop.
29696 * cfganal.c (forwarder_block_p): Protect loop latches, headers
29698 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
29699 (cfg_layout_can_merge_blocks_p): Likewise.
29700 * cprop.c (bypass_block): If we create a loop with multiple
29701 entries, mark it for removal.
29702 * except.c (emit_to_new_bb_before): Add the new basic-block
29704 * tree-eh.c (lower_resx): Likewise.
29705 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
29706 (expand_omp_taskreg): Likewise.
29707 * tree-inline.c (initialize_cfun): Likewise.
29708 * tree-mudflap.c (add_bb_to_loop): Prototype.
29709 (mf_build_check_statement_for): Properly add new basic-blocks
29711 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
29712 if we remove a loop.
29713 (thread_through_loop_header): Likewise.
29714 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
29715 new basic-blocks to existing loops.
29716 (expand_transaction): Likewise.
29717 * Makefile.in (except.o): Add $(CFGLOOP_H).
29718 (expr.o): Likewise.
29719 (cgraph.o): Likewise.
29720 (cprop.o): Likewise.
29721 (cfgexpand.o): Likewise.
29722 (cfganal.o): Likewise.
29723 (trans-mem.o): Likewise.
29724 (tree-eh.o): Likewise.
29726 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
29729 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
29730 (avr_builtin_decl): New static function.
29731 (struct avr_builtin_description, avr_bdesc): Move up.
29732 Add GTY marker. Add field fndecl. Remove redundant field id.
29733 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
29734 (avr_expand_builtin): Code cleanup because .id is removed.
29736 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
29739 * config.gcc (tm_file): Remove avr/multilib.h.
29741 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
29743 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
29744 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
29745 * config/avr/t-avr: Remove generation of multilib.h.
29746 * config/avr/t-multilib: Regenerate.
29747 * config/avr/multilib.h: Remove.
29748 * config/avr/avr.opt (-msp8): New option.
29749 (avr_sp8): New variable.
29750 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
29751 * config/avr/avr.h (AVR_HAVE_SPH): New define.
29752 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
29753 (avr_device_to_sp8): New prototype.
29754 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
29755 (DRIVER_SELF_SPECS): New define.
29756 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
29757 __AVR_SP8__, __AVR_HAVE_SPH__.
29758 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
29759 AVR_HAVE_8BIT_SP to decide if SP_H is present.
29760 (avr_file_start): Ditto.
29762 2012-03-28 Jakub Jelinek <jakub@redhat.com>
29765 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
29766 instead of 8 in adjust_address.
29768 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
29770 PR middle-end/51893
29771 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
29774 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
29777 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
29778 Rearrange conditional logic. Move displacement address calculations
29780 (sh_find_mov_disp_adjust): ... this new function.
29782 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
29784 * config/arm/arm.opt (mapcs): Remove MaskExists.
29785 * config/cris/linux.opt (mno-gotplt): Likewise.
29786 * config/i386/i386.opt (mhard-float): Likewise.
29788 (mno-sse4): Likewise.
29789 * config/m68k/m68k.opt (mhard-float): Likewise.
29790 * config/mep/mep.op (mcop32): Likewise.
29791 * config/pa/pa-hpux.opt (msio): Likewise.
29792 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
29793 * config/picochip/picochip.opt (mlittle): Likewise.
29794 * config/sh/sh.opt (mrenesas): Likewise.
29795 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
29796 * config/sparc/sparc.opt (mhard-float): Likewise.
29797 * config/v850/v850.opt (mv850es): Likewise.
29798 * config/vax/vax.opt (mg-float): Likewise.
29800 2012-03-27 Martin Jambor <mjambor@suse.cz>
29802 PR middle-end/52693
29803 * tree-sra.c (sra_modify_assign): Do not call
29804 load_assign_lhs_subreplacements when working with an unscalarizable
29807 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
29810 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
29812 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
29813 * config/i386/i386.c: Include reload.h.
29814 (ix86_legitimize_reload_address): New function.
29816 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
29818 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
29819 hasn't been allocated. Define a target macro for Mask and
29820 InverseMask if it hasn't been defined. Remove MaskExists handling.
29822 * doc/options.texi: Remove MaskExists.
29824 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
29827 * config/sh/sh.c (find_barrier): Add equality check of last_got
29828 to avoid going above orig insn. Update comments.
29830 2012-03-27 Richard Guenther <rguenther@suse.de>
29832 PR middle-end/52720
29833 * fold-const.c (try_move_mult_to_index): Handle &x.array more
29836 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
29838 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
29839 of a unit before computing the offset in units.
29840 * expr.c (get_bit_range): Return the null range if the enclosing record
29841 is part of a larger bit field.
29843 2012-03-27 Tristan Gingold <gingold@adacore.com>
29845 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
29846 * config/ia64/ia64.md: Remove mode in template.
29847 Sign extend operand in expand_simple_binop.
29848 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
29849 CASE_VECTOR_MODE instead of TARGET_ILP32.
29850 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
29852 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
29854 * varasm.c (assemble_external): #if 0 out the new assert from the
29855 previous commit, it breaks the Java and Go front ends.
29857 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
29859 * toplev.c (check_global_declaration_1): Do not call assemble_external.
29860 * expr.c (emit_block_move_libcall_fn): Likewise.
29861 (clear_storage_libcall_fn): Likewise.
29862 (expand_expr_addr_expr_1): Likewise.
29863 (expand_expr_real_1): Likewise.
29864 * calls.c (rtx_for_function_call): Likewise.
29866 * varasm.c (assemble_external): Assert this function is only called
29867 during or after expanding to RTL.
29869 2012-03-26 Martin Jambor <mjambor@suse.cz>
29871 PR tree-optimization/50052
29872 * tree-sra.c (tree_non_aligned_mem_p): Removed.
29873 (tree_non_aligned_mem_for_access_p): Likewise.
29874 (build_accesses_from_assign): Removed strict alignment requirements
29876 (access_precludes_ipa_sra_p): Likewise.
29878 2012-03-26 Richard Guenther <rguenther@suse.de>
29880 PR tree-optimization/52701
29881 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
29882 compute and set the evolution part of PHI nodes.
29884 2012-03-26 Richard Guenther <rguenther@suse.de>
29886 PR tree-optimization/52721
29887 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
29889 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
29891 PR tree-optimization/52686
29892 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29895 2012-03-26 Tristan Gingold <gingold@adacore.com>
29897 * config/alpha/vms.h (LINK_SPEC): Simplify.
29898 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
29899 (NAME__MAIN, SYMBOL__MAIN): Remove.
29900 (VMS_DEBUG_MAIN_POINTER): Remove.
29901 * config/ia64/vms.h: Likewise.
29902 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
29903 code to vms.c. Call vms_start_function.
29904 * config/ia64/ia64.c (ia64_start_function): Likewise.
29905 * config/vms/vms-protos.h (vms_start_function): Declare.
29906 * config/vms/vms.c (vms_start_function): New function.
29907 * config/vms/vms.h (MATH_LIBRARY): Define.
29908 (VMS_DEBUG_MAIN_POINTER): Define.
29910 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
29912 PR rtl-optimization/52629
29913 * reload1.c (count_pseudo): Short-circuit common case.
29914 (count_spilled_pseudo): Return early for pseudos without hard regs.
29915 Assert that the pseudo has got a hard reg before manipulating it.
29917 2012-03-24 Jan Hubicka <jh@suse.cz>
29920 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
29921 (decide_is_variable_needed): Do not handle toplevel reorder here.
29922 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
29923 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
29926 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
29928 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
29929 and str_bitsize instead of more convoluted expressions.
29931 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
29934 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
29936 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
29939 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
29941 2012-03-23 Martin Jambor <mjambor@suse.cz>
29943 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
29945 2012-03-23 Richard Guenther <rguenther@suse.de>
29947 PR tree-optimization/52678
29948 * tree-vectorizer.h (struct _stmt_vec_info): Add
29949 loop_phi_evolution_part member.
29950 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
29951 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
29952 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
29953 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
29954 Use the cached evolution part and the PHI nodes value from
29955 the loop preheader edge instead of re-analyzing the evolution.
29957 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
29959 * config/mips/mips-tables.opt: Update.
29960 * config/mips/mips.md (processor): Add xlp.
29961 * config/mips/mips-cpus.def: Add xlp.
29962 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
29964 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
29965 * doc/invoke.texi: Mention XLP.
29967 2012-03-22 Jakub Jelinek <jakub@redhat.com>
29969 PR middle-end/52547
29970 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
29971 on any new_local_var_chain vars declared during recursing on
29972 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
29974 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
29976 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
29977 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
29978 (ASM_OUTPUT_LOCAL): Ditto.
29979 (ASM_OUTPUT_COMMON): Remove.
29980 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
29981 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
29983 2012-03-22 Jan Hubicka <jh@suse.cz>
29985 PR middle-end/51737
29986 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
29988 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
29989 * ipa-inline-transform.c (save_inline_function_body): Remove
29990 copied clone if needed.
29991 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
29993 2012-03-22 Richard Guenther <rguenther@suse.de>
29995 PR middle-end/52666
29996 * fold-const.c (fold_ternary_loc): Fix typo.
29998 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
30001 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
30002 (unspecv): Add UNSPECV_MEMORY_BARRIER.
30003 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
30004 (delay_cycles_1, delay_cycles_2): Ditto.
30005 (delay_cycles_3, delay_cycles_4): Ditto.
30006 (nopv, *nopv): Ditto.
30007 (sleep, *sleep): Ditto.
30008 (wdr, *wdr): Ditto.
30010 2012-03-22 Richard Guenther <rguenther@suse.de>
30012 PR tree-optimization/52548
30013 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
30014 because of clobbers.
30015 (prune_clobbered_mems): New function.
30016 (compute_antic_aux): Use it to prune ANTIC_OUT.
30017 (compute_partial_antic_aux): Use it to prune PA_IN.
30018 (compute_avail): Only insert expressions into EXP_GEN that are not
30019 invalidated when translated up to the beginning of the block.
30021 2012-03-22 Richard Guenther <rguenther@suse.de>
30023 PR tree-optimization/52638
30024 * tree-vect-stmts.c (vect_init_vector_1): New function, split
30026 (vect_init_vector): ... here. Handle scalar vector inits.
30027 (vect_get_vec_def_for_operand): Adjust.
30028 (vectorizable_load): Likewise.
30030 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
30032 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
30033 (alpha*-*-freebsd*): Ditto.
30034 (alpha*-*-netbsd*): Ditto.
30035 (alpha*-*-openbsd*): Ditto.
30036 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
30037 (DWARF2_DEBUGGING_INFO): Remove.
30038 (PREFERRED_DEBUGGING_TYPE): Remove.
30039 (ASM_FINAL_SPEC): Remove.
30040 (IDENT_ASM_OP): Remove.
30041 (ASM_OUTPUT_IDENT): Remove.
30042 (SKIP_ASM_OP): Remove.
30043 (ASM_OUTPUT_SKIP): Remove.
30044 (ALIGN_ASM_OP): Remove.
30045 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
30046 (ASM_OUTPUT_CASE_LABEL): Remove.
30047 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
30048 (COMMON_ASM_OP): Remove.
30049 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
30050 (ASCII_DATA_ASM_OP): Remove.
30051 (READONLY_DATA_SECTION_ASM_OP): Remove.
30052 (INIT_SECTION_ASM_OP): Remove.
30053 (FINI_SECTION_ASM_OP): Remove.
30054 (ASM_SECTION_START_OP): Remove.
30055 (ASM_OUTPUT_SECTION_START_FILE): Remove.
30056 (TARGET_ASM_NAMED_SECTION): Remove.
30057 (TARGET_ASM_SELECT_SECTION): Remove.
30058 (MAKE_DECL_ONE_ONLY): Remove.
30059 (TYPE_ASM_OP): Remove.
30060 (SIZE_ASM_OP): Remove.
30061 (ASM_WEAKEN_LABEL): Remove.
30062 (TYPE_OPERAND_FMT): Remove.
30063 (ASM_DECLARE_RESULT): Remove.
30064 (ASM_DECLARE_OBJECT_NAME): Remove.
30065 (ASM_FINISH_DECLARE_OBJECT): Remove.
30066 (ELF_ASCII_ESCAPES): Remove.
30067 (ELF_STRING_LIMIT): Remove.
30068 (STRING_ASM_OP): Remove.
30069 (ASM_OUTPUT_EXTERNAL): Remove.
30070 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
30071 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
30073 (ASM_DECLARE_FUNCTION_NAME): Ditto.
30074 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
30075 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
30076 (ASM_OUTPUT_SKIP): Ditto.
30077 (READONLY_DATA_SECTION_ASM_OP): Remove.
30078 (USER_LABEL_PREFIX): Remove.
30079 (ASM_OUTPUT_ASCII): Remove.
30080 (ASM_OUTPUT_CASE_LABEL): Remove.
30081 (NO_DOLLAR_IN_LABEL): Undefine.
30083 2012-03-22 Richard Guenther <rguenther@suse.de>
30085 PR tree-optimization/52459
30086 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
30087 PHI insertion for calls.
30089 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
30091 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
30092 find_sets_in_insn, canonicalize_insn): Split out from ...
30093 (cse_insn): ... here.
30094 (invalidate_from_clobbers): Take an insn instead of the pattern.
30096 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
30099 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
30100 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
30101 * config/sh/sh.md (sindf2, cosdf2): Remove.
30103 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
30106 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
30107 prologue for unwinder and profiler.
30109 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
30111 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
30112 Introduce emul_name to select the right linker emulation for
30113 powerpc64-*-freebsd*.
30114 * configure: Regenerate.
30115 * config.gcc: Add bits to support powerpc64-*-freebsd*.
30116 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
30117 * config/rs6000/freebsd64.h: New file.
30118 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
30120 (rs6000_savres_strategy): Likewise.
30121 (rs6000_savres_routine_name): Likewise.
30122 (rs6000_elf_file_end): Likewise.
30123 * config/rs6000/t-freebsd64: New file.
30124 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
30125 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
30127 * config/rs6000/freebsd64.h: Remove duplicated entries from last
30129 * config/rs6000/t-freebsd64: Likewise.
30131 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
30133 PR rtl-optimization/52543
30135 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
30136 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
30137 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
30138 (avr_load_libgcc_p): Restrict to __flash loads.
30139 (avr_out_lpm): Only handle 1-byte loads from __flash.
30140 (avr_load_lpm): New function.
30141 (avr_find_unused_d_reg): Remove.
30142 (avr_out_lpm_no_lpmx): Remove.
30143 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
30144 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
30145 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
30146 (load_<mode>, load_<mode>_clobber): New insns.
30147 (mov<mode>): For multi-byte move from non-generic
30148 16-bit address spaces: Expand to load_<mode> resp.
30149 load_<mode>_clobber.
30150 (load<mode>_libgcc): Remove expander.
30151 (split-lpmx): Remove split.
30153 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
30155 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
30156 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
30157 All callers changed.
30158 (Fixed_core_reg): New feature.
30159 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
30161 * neon-testgen.ml: Handle Fixed_core_reg.
30163 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
30165 * config/arm/arm.c (thumb2_reorg): Add complete support
30166 for 16-bit instructions.
30167 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
30169 2012-03-21 Richard Guenther <rguenther@suse.de>
30171 PR tree-optimizer/52636
30172 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
30173 to the appropriate type.
30175 2012-03-21 Richard Guenther <rguenther@suse.de>
30177 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
30179 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
30180 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
30181 * passes.c (init_optimization_passes): Remove pass_init_function,
30182 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
30183 * tree-pass.h (pass_init_function): Remove.
30184 (pass_jump): Remove.
30185 (pass_initial_value_sets): Remove.
30186 (pass_unshare_all_rtl): Remove.
30187 * integrate.c (pass_initial_value_sets): Remove.
30188 * emit-rtl.c (pass_unshare_all_rtl): Remove.
30189 * tree.h (init_function_for_compilation): Remove.
30190 * function.c (init_function_for_compilation): Remove.
30191 (pass_init_function): Remove.
30192 * cfgcleanup.c (rest_of_handle_jump): Remove.
30193 (pass_jump): Remove.
30195 2012-03-20 Jason Merrill <jason@redhat.com>
30197 * tree-streamer-in.c (streamer_alloc_tree): Call
30198 ggc_alloc_zone_cleared_tree_node instead of
30199 ggc_alloc_zone_cleared_tree_node_stat.
30201 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
30203 * doc/extend.texi (Template Instantiation): Remove anachronisms.
30205 2012-03-20 Jakub Jelinek <jakub@redhat.com>
30208 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
30209 (ix86_expand_vec_perm_const_1): Call it.
30211 * config/i386/i386.c (vselect_insn): New variable.
30212 (init_vselect_insn): New function.
30213 (expand_vselect, expand_vselect_insn): Add testing_p argument.
30214 Call init_vselect_insn if vselect_insn is NULL. Adjust
30215 PATTERN (vselect_insn), instead of creating a new insn each time,
30216 only emit a copy of it if not testing and recog has been successful.
30217 (expand_vec_perm_pshufb, expand_vec_perm_1,
30218 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
30222 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
30223 ("enabled" attribute): Handle avx2 and noavx2 isas.
30224 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
30226 (vec_dup<mode>): Add avx2 =x,x alternative.
30227 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
30228 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
30229 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
30230 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
30232 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
30233 if possible, handle also V8SFmode.
30235 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
30237 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
30238 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
30239 reg_or_zero_operand predicate.
30240 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
30242 2012-03-20 Jakub Jelinek <jakub@redhat.com>
30244 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
30245 If operand isn't UNSPEC, return 0.
30247 2012-03-20 Richard Guenther <rguenther@suse.de>
30249 * tree-pass.h (pass_rtl_eh): Remove.
30250 * except.c (gate_handle_eh): Likewise.
30251 (rest_of_handle_eh): Likewise.
30252 (pass_rtl_eh): Likewise.
30253 (finish_eh_generation): Export.
30254 * except.h (finish_eh_generation): Declare.
30255 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
30256 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
30257 after expanding stack alignment. Instead of compacting blocks
30260 2012-03-20 Richard Guenther <rguenther@suse.de>
30262 * stor-layout.c (finish_bitfield_representative): Fallback
30263 to conservative maximum size if the padding up to the next
30264 field cannot be computed as a constant.
30265 (finish_bitfield_layout): If we cannot compute the distance
30266 between the start of the bitfield representative and the
30267 bitfield member start a new representative.
30268 * expr.c (get_bit_range): The distance between the start of
30269 the bitfield representative and the bitfield member is zero
30270 if the field offsets are not constants.
30272 2012-03-20 Tristan Gingold <gingold@adacore.com>
30274 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
30275 convert in lowercase.
30276 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
30277 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
30278 * stor-layout.c (sizetype_tab): Adjust.
30279 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
30280 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
30281 instead of type_kind_last.
30282 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
30283 instead of size_int_kind.
30284 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
30285 * doc/tm.texi: Regenerate.
30286 * defaults.h (SIZETYPE): Provide a default value.
30287 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
30288 (SIZETYPE): Define.
30290 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
30292 * config/sh/sh.md: Use braced string notation where applicable.
30294 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
30296 * config/i386/i386.md (allocate_stack): Simplify.
30298 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
30300 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
30301 copy_to_mode_reg (Pmode, ...).
30302 (expand_builtin_frame_address): Ditto.
30303 * expr.c (emit_block_move_via_libcall): Ditto.
30304 (set_storage_via_libcall): Ditto.
30306 * config/i386/i386.c (ix86_expand_movmem): Ditto.
30307 (ix86_expand_setmem): Ditto.
30308 (ix86_trampoline_init): DItto.
30309 * config/i386/i386.md (cmpstrnsi): Ditto.
30311 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
30313 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
30314 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
30315 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
30316 (SH Options): Likewise.
30318 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
30320 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
30321 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
30322 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
30323 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
30324 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
30327 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30329 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
30330 * config/i386/i386.c (ix86_decompose_address): Use
30331 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
30332 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
30333 thread pointer to a register.
30336 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
30338 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
30339 if Pmode != word_mode.
30340 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
30341 Pmode == SImode for TARGET_X32.
30343 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
30344 (tls_initial_exec_x32): Likewise.
30346 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
30349 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
30350 DISP_ADDR_OFFSET): New macros.
30351 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
30352 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
30353 (sh_legitimize_address): Add QImode displacement handling.
30354 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
30356 (sh_secondary_reload): Add QImode displacement handling.
30357 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
30358 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
30359 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
30360 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
30361 to register operands only.
30362 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
30363 (extendqihi2): Change insn to expander.
30364 (*extendqihi2_compact_reg): New insn.
30365 (movqi_i, movqi): Replace with ...
30366 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
30367 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
30368 Add new peepholes for QImode displacement addressing.
30370 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
30373 * doc/invoke.texi: Document -Wuseless-cast.
30375 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
30377 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
30378 * tree.h (handled_component_p): Reorder cases.
30379 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
30380 not initialize unsignedp.
30381 (loc_list_from_tree): Likewise.
30382 (fortran_common): Likewise.
30383 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
30385 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
30387 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
30388 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
30389 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
30390 (ix86_split_long_move): Ditto.
30391 (legitimize_tls_address): Use ix86_gen_sub3.
30392 (construct_plt_address): Assert that Pmode == DImode.
30394 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
30396 * config/i386/i386.md: Remove empty predicates and/or constraints.
30397 * config/i386/sync.md: Ditto.
30398 * config/i386/sse.md: Ditto.
30399 * config/i386/mmx.md: Ditto.
30400 * config/i386/pentium.md: Ditto.
30401 * config/i386/athlon.md: Ditto.
30403 2012-03-16 Richard Guenther <rguenther@suse.de>
30405 PR tree-optimization/52603
30406 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
30410 2012-03-14 Richard Guenther <rguenther@suse.de>
30412 PR tree-optimization/52571
30413 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
30414 flag_section_anchors check ...
30415 (vect_can_force_dr_alignment_p): ... here.
30417 2012-03-16 Martin Jambor <mjambor@suse.cz>
30419 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
30420 memory through MEM_REFs by calling extract_bit_field.
30422 2012-03-16 Richard Guenther <rguenther@suse.de>
30424 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
30425 and REFERENCE_TYPE interpretations.
30426 (can_native_interpret_type_p): New function.
30427 (fold_ternary_loc): Use native encode/interpret to fold
30428 BIT_FIELD_REFs of constants.
30430 2012-03-16 Richard Guenther <rguenther@suse.de>
30432 PR middle-end/52584
30433 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
30434 of vector constants and constructors.
30436 2012-03-16 Richard Guenther <rguenther@suse.de>
30438 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
30439 VIEW_CONVERT_EXPR to convert constants.
30440 (vect_is_simple_use): Treat all constants as vec_constant_def.
30442 2012-03-16 Richard Guenther <rguenther@suse.de>
30443 Kai Tietz <ktietz@redhat.com>
30445 PR middle-end/48814
30446 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
30447 side-effects completely in the pre-queue and use a temporary
30450 2012-03-16 Richard Guenther <rguenther@suse.de>
30452 * stor-layout.c (finish_bitfield_representative): Fall back
30453 to the conservative maximum size if we cannot compute the
30454 size of the tail padding.
30456 2012-03-16 Tristan Gingold <gingold@adacore.com>
30458 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
30459 __CRTL_VER and __VMS_VER.
30460 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
30461 and vms_c_get_vms_ver.
30462 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
30464 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
30465 (VMS_DEFAULT_VMS_VER): Define.
30466 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
30467 (VMS_DEFAULT_VMS_VER): Define.
30469 2012-03-16 Richard Guenther <rguenther@suse.de>
30471 * tree-vect-loop.c (get_initial_def_for_induction): Use
30472 build_constructor directly.
30473 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
30474 build_vector_from_val.
30475 * tree.c (build_vector_from_val): Avoid creating a constructor
30476 first when we want a constant vector.
30478 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30480 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
30482 2012-03-16 Richard Guenther <rguenther@suse.de>
30484 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
30485 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
30486 (struct tree_vector): Remove elements member, add variable size
30488 (build_vector_stat): Declare.
30489 (build_vector): Define in terms of build_vector_stat.
30490 * tree.c (build_vector): Rename to ...
30491 (build_vector_stat): ... this. Take array of trees as parameter.
30492 (build_vector_from_ctor): Adjust.
30493 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
30494 initializer_zerop): Adjust.
30495 * cfgexpand.c (expand_debug_expr): Likewise.
30496 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
30497 const_vector_from_tree): Likewise.
30498 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
30499 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
30500 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
30501 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
30502 (lto_input_ts_vector_tree_pointers): Adjust.
30503 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
30504 (write_ts_vector_tree_pointers): Adjust.
30505 * varasm.c (const_hash_1, compare_constant, copy_constant,
30506 output_constant): Adjust.
30507 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
30508 * print-tree.c (print_node): Adjust.
30509 * tree-pretty-print.c (dump_generic_node): Adjust.
30510 * tree-vect-generic.c (uniform_vector_p, vector_element,
30511 lower_vec_perm): Adjust.
30512 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
30513 * tree-vect-slp.c (vect_get_constant_vectors,
30514 vect_transform_slp_perm_load): Adjust.
30515 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
30516 * expmed.c (make_tree): Adjust.
30517 * config/i386/i386.c (ix86_expand_builtin): Adjust.
30518 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
30519 and implementation.
30520 (sparc_fold_builtin): Adjust.
30522 2012-03-16 Tristan Gingold <gingold@adacore.com>
30524 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
30525 * config/vms/vms-stdint.h: New file.
30527 2012-03-16 Tristan Gingold <gingold@adacore.com>
30529 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
30530 (ia64-hp-*vms*): Replaced by ...
30531 (*-*-*vms*): ... This new entry.
30533 2012-03-15 Jakub Jelinek <jakub@redhat.com>
30536 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
30537 (ix86_expand_vec_perm_const_1): Use it.
30540 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
30541 (avx2_permv4df): Remove.
30542 (avx2_permv4di): Macroize into...
30543 (avx2_perm<mode>): ... this using VI8F_256 iterator.
30544 (avx2_permv4di_1): Macroize into...
30545 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
30547 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
30549 * combine.c (apply_distributive_law): Do not distribute SUBREG.
30551 2012-03-15 Ira Rosen <irar@il.ibm.com>
30552 Ulrich Weigand <ulrich.weigand@linaro.org>
30554 * tree-vect-patterns.c (widened_name_p): Rename to ...
30555 (type_conversion_p): ... this. Add new argument to determine
30556 if it's a promotion or demotion operation. Check for
30557 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
30558 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
30560 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
30561 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
30563 (vect_recog_mixed_size_cond_pattern): Likewise and allow
30564 non-constant then and else clauses.
30566 2012-03-15 Ira Rosen <irar@il.ibm.com>
30567 Ulrich Weigand <ulrich.weigand@linaro.org>
30569 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
30570 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
30571 vect_pattern_recog.
30572 * tree-vect-patterns.c (widened_name_p): Pass basic block
30573 info to vect_is_simple_use.
30574 (vect_recog_dot_prod_pattern): Fail for basic blocks.
30575 (vect_recog_widen_sum_pattern): Likewise.
30576 (vect_handle_widen_op_by_const): Support basic blocks.
30577 (vect_operation_fits_smaller_type,
30578 vect_recog_over_widening_pattern): Likewise.
30579 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
30580 Update call to vect_is_simple_use.
30581 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
30583 (check_bool_pattern): Add an argument, update call to
30584 vect_is_simple_use and the recursive calls.
30585 (vect_recog_bool_pattern): Update relevant function calls.
30587 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
30588 (vect_pattern_recog_1): Check for reduction only in loops.
30589 (vect_pattern_recog): Add new argument. Support basic blocks.
30590 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
30591 info to vect_is_simple_use_1.
30592 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
30593 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
30595 2012-03-15 Jakub Jelinek <jakub@redhat.com>
30596 Andrew Pinski <apinski@cavium.com>
30598 PR middle-end/52592
30599 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
30600 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
30601 calls instead of __builtin_ir{int,ound}*.
30603 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30605 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
30608 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
30610 * config.gcc (target_type_format_char): New. Document it. Set it for
30612 * configure.ac (gnu_unique_option): Use target_type_format_char
30613 in test. Comment rationale.
30614 * configure: Regenerate .
30616 2012-03-15 Jakub Jelinek <jakub@redhat.com>
30618 PR tree-optimization/52267
30619 * tree-vrp.c (masked_increment): New function.
30620 (register_edge_assert_for_2): Derive ASSERT_EXPRs
30621 from (X & CST1) cmp CST2 tests.
30623 2012-03-15 Richard Guenther <rguenther@suse.de>
30625 PR middle-end/52580
30626 * tree-data-ref.c (subscript_dependence_tester_1): Check
30627 all dimensions for non-conflicting access functions.
30629 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
30632 * doc/invoke.texi [C++ Language Options]: Document
30633 -ftemplate-backtrace-limit.
30635 2012-03-15 Tristan Gingold <gingold@adacore.com>
30637 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
30638 before a parameter.
30640 2012-03-15 Tristan Gingold <gingold@adacore.com>
30642 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
30643 use DW_OP_call_frame_cfa.
30645 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
30648 * config/i386/i386-opts.h (pmode): New.
30650 * config/i386/i386.c (ix86_option_override_internal): Properly
30651 check and set ix86_pmode.
30653 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
30655 * config/i386/i386.opt (maddress-mode=): New.
30657 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
30659 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30661 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
30662 (dwarf2out_do_cfi_asm): Likewise.
30663 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
30665 (add_data_member_location_attribute): Likewise.
30666 (gen_array_type_die): Likewise.
30667 (gen_subprogram_die): Likewise.
30668 (gen_producer_string): Likewise.
30669 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
30670 Remove MIPS_DEBUGGING_INFO handling.
30671 (sdb_debug_hooks): Likewise.
30672 (sdbout_begin_block): Likewise.
30673 (sdbout_end_block): Likewise.
30674 (sdbout_begin_prologue): Likewise.
30675 (sdbout_start_source_file): Likewise.
30676 (sdbout_end_source_file): Likewise.
30677 (sdbout_init): Likewise.
30678 * system.h (MIPS_DEBUGGING_INFO): Poison.
30680 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30682 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
30683 (alpha_file_start) [MS_STAMP]: Remove.
30685 * config/alpha/elf.h (TARGET_GAS): Remove.
30686 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
30687 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
30688 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
30689 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
30690 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
30691 (alpha*-*-freebsd*): Likewise.
30692 (alpha*-*-netbsd*): Likewise.
30693 (alpha*-*-openbsd*): Likewise.
30694 (alpha*-*-*): Remove target_cpu_default2.
30695 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
30697 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
30698 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
30699 * config/alpha/alpha.c (print_operand): Always assume
30700 TARGET_AS_SLASH_BEFORE_SUFFIX.
30701 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
30702 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
30703 ("*builtin_setjmp_receiver_er_1"): Remove.
30704 * config/alpha/alpha.opt (malpha-as): Remove.
30706 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
30708 Remove DEC Unix reference.
30710 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
30711 (EXTENDED_COFF): Remove.
30712 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
30713 (EXTENDED_COFF): Don't undef.
30714 * config/alpha/alpha.c (alpha_file_start): Always assume
30716 Don't set targetm.asm_file_start_file_directive.
30717 [!OBJECT_FORMAT_ELF]: Remove.
30718 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
30720 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
30721 (DBX_DEBUGGING_INFO): Remove.
30722 (MIPS_DEBUGGING_INFO): Remove.
30723 (PREFERRED_DEBUGGING_TYPE): Remove.
30724 (DBX_OUTPUT_SOURCE_LINE): Remove.
30725 (SDB_OUTPUT_SOURCE_LINE): Remove.
30726 (DBX_CONTIN_LENGTH): Remove.
30727 (NO_DBX_FUNCTION_END): Remove.
30728 (ASM_STABS_OP): Remove.
30729 (ASM_STABN_OP): Remove.
30730 (ASM_STABD_OP): Remove.
30731 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
30732 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
30733 (PUT_SDB_DEF): Remove.
30734 (PUT_SDB_PLAIN_DEF): Remove.
30735 (PUT_SDB_TYPE): Remove.
30736 (sdb_label_count): Remove.
30737 (PUT_SDB_BLOCK_START): Remove.
30738 (PUT_SDB_BLOCK_END): Remove.
30739 (PUT_SDB_FUNCTION_START): Remove.
30740 (PUT_SDB_FUNCTION_END): Remove.
30741 (PUT_SDB_EPILOGUE_END): Remove.
30742 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
30743 (MIPS_DEBUGGING_INFO): Don't undef.
30744 (DBX_DEBUGGING_INFO): Don't undef.
30745 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
30746 (MIPS_DEBUGGING_INFO): Don't undef.
30747 (DBX_DEBUGGING_INFO): Don't undef.
30748 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
30749 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
30751 (alpha_start_function): Likewise.
30752 (sdb_label_count): Remove.
30753 (alpha_output_filename): Remove DBX_DEBUG handling.
30754 (alpha_file_start): Likewise.
30756 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30758 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
30759 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
30760 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
30762 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
30763 (ld_tls_support): Remove Solaris 8 references.
30764 (lwp_dir, lwp_spec): Remove support for alternate thread library.
30765 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
30766 * configure: Regenerate.
30767 * config.in: Regenerate.
30769 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
30770 * config/i386/sol2.h: Remove Solaris 8 references.
30772 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
30773 (i?86-*-solaris2.9): ... this.
30774 Remove Solaris 8 references.
30775 (Specific, *-*-solaris2*): Document Solaris 8 removal.
30776 Remove Solaris 8 references.
30778 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30780 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
30781 (mips-sgi-irix6.5*): Remove.
30782 * config.host (mips-sgi-irix*): Remove.
30783 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
30784 (set_have_as_tls): Remove *-*-irix6*.
30785 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
30786 * configure: Regenerate.
30788 * config/mips/iris6.h: Remove.
30789 * config/mips/iris6.opt: Remove.
30790 * config/mips/t-irix6: Remove.
30792 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
30793 (TARGET_IRIX6): Remove.
30794 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
30795 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
30796 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
30798 (mips_file_start): Likewise.
30799 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
30801 * config/mips/driver-native.c [__sgi__]: Remove.
30802 (host_detect_local_cpu) [__sgi__]: Remove.
30804 * config/mips/gnu-user.h: Remove iris5.h reference.
30806 * config/mips/mips-modes.def: Remove IRIX 6 reference.
30807 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
30808 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
30811 * gcc.c (main): Move asm_debug initialization ...
30812 (asm_debug): ... here.
30814 * ginclude/stddef.h (__STDDEF_H__): Don't define.
30816 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
30817 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
30818 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
30819 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
30820 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
30821 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
30823 * doc/tm.texi: Regenerate.
30825 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
30827 (MIPS Options, -march): Remove IRIX reference.
30828 * doc/install.texi (Binaries, SGI IRIX): Remove.
30829 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
30831 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
30833 2012-03-14 Martin Jambor <mjambor@suse.cz>
30835 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
30836 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
30837 (expand_expr_real_1): Do not handle misalignment if modifier is
30840 2012-03-14 Richard Guenther <rguenther@suse.de>
30842 PR middle-end/52584
30843 * tree-vect-generic.c (type_for_widest_vector_mode): Take
30844 element type instead of mode, use build_vector_type_for_mode
30845 instead of the langhook, build a vector of proper signedness.
30846 (expand_vector_operations_1): Adjust.
30848 2012-03-14 Richard Guenther <rguenther@suse.de>
30850 PR middle-end/52582
30851 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
30852 a cgraph node for a FUNCTION_DECL that comes from a constructor.
30853 (gimple_get_virt_method_for_binfo): Likewise.
30855 2012-03-14 Richard Guenther <rguenther@suse.de>
30857 PR tree-optimization/52571
30858 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
30859 flag_section_anchors check ...
30860 (vect_can_force_dr_alignment_p): ... here. Do not re-align
30861 DECL_COMMON variables.
30863 2012-03-14 Richard Guenther <rguenther@suse.de>
30865 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
30866 * stor-layout.c (start_bitfield_representative): New function.
30867 (finish_bitfield_representative): Likewise.
30868 (finish_bitfield_layout): Likewise.
30869 (finish_record_layout): Call finish_bitfield_layout.
30870 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
30871 for QUAL_UNION_TYPE fields.
30872 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
30873 Stream DECL_BIT_FIELD_REPRESENTATIVE.
30874 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
30876 PR middle-end/52080
30877 PR middle-end/52097
30878 PR middle-end/48124
30879 * expr.c (get_bit_range): Unconditionally extract bitrange
30880 from DECL_BIT_FIELD_REPRESENTATIVE.
30881 (expand_assignment): Adjust call to get_bit_range.
30883 2012-03-14 Richard Guenther <rguenther@suse.de>
30885 PR middle-end/52578
30886 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
30887 the outermost conversion is a sign-change only.
30888 (fold_binary_loc): Disregard widening and sign-changing
30889 conversions when we determine if two variables are equal
30891 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
30892 (T1)x if the outermost conversion is a sign-change only.
30894 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
30897 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
30899 * config/i386/predicates.md (constant_call_address_operand): Declare
30900 as special predicate. Update all uses.
30902 2012-03-13 Jakub Jelinek <jakub@redhat.com>
30905 * c-parser.c (c_parser_postfix_expression)
30906 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
30908 * config/i386/smmintrin.h: Avoid /* within a comment.
30909 * config/i386/nmmintrin.h: Likewise.
30911 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30913 * config/i386/i386.md (xbegin): Remove constraint from expander.
30915 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30917 * config/i386/predicates.md (constant_call_address_operand): Declare
30918 as special predicate. Update all uses.
30919 * config/i386/i386.md: Remove mode from constant_call_address_operand
30921 * config/i386/i386.c (ix86_output_call_insn): Call
30922 constant_call_address_operand with VOIDmode.
30924 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30926 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
30927 AND zero extended address correctly.
30929 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30931 * config/i386/predicates.md (tls_symbolic_operand): Declare as
30933 (tls_modbase_operand): Ditto.
30934 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
30935 tls_modbase_operand predicates.
30937 2012-03-13 Martin Jambor <mjambor@suse.cz>
30939 * expr.c (expand_assignment): Handle misaligned scalar writes to
30940 memory through top-level MEM_REFs by calling store_bit_field.
30942 2012-03-13 Richard Guenther <rguenther@suse.de>
30944 PR middle-end/52134
30945 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
30946 if Y is a constant multiple of 1 << CST.
30948 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
30951 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
30952 offset (size) to a value the insns can deal with.
30953 (expand_epilogue): Ditto.
30955 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
30957 * config/arm/neon.ml (ops): Fixup expected instructions for
30958 unsigned vector compares.
30960 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30962 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
30963 addresses only when %reg is not in word mode.
30965 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30967 * config/microblaze/microblaze.md: Fix typo.
30968 * tree-if-conv.c: Likewise.
30969 * tree-vect-patterns.c: Likewise.
30971 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30973 * config.gcc (extra_passes): Remove.
30974 * configure.ac (extra_passes): Don't substitute.
30975 * configure: Regenerate.
30976 * Makefile.in (EXTRA_PASSES): Remove.
30977 (GCC_PASSES): Remove $(EXTRA_PASSES).
30978 (MOSTLYCLEANFILES): Likewise.
30979 (native): Likewise.
30980 (install-common): Likewise.
30982 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
30984 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
30985 * config/i386/i386.c (ix86_decompose_address): Use
30986 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
30987 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
30988 thread pointer to a register.
30990 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
30992 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
30993 on tls_symbolic_operand.
30994 (tls_global_dynamic_64_<mode>): Likewise.
30996 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
30999 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
31000 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
31002 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
31005 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
31006 type from reg_class_t to enum reg_class.
31007 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
31009 2012-03-12 Andrew Pinski <apinski@cavium.com>
31011 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
31012 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
31013 (value_replacement): Likewise.
31014 (empty_block_p): Check also if the PHIs for the block are empty.
31016 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
31019 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
31020 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
31021 r184615 from 2012-02-28.
31023 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
31025 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
31026 (ix86_gen_tls_local_dynamic_base_64): Likewise.
31027 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
31028 and ix86_gen_tls_local_dynamic_base_64.
31029 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
31030 ix86_gen_tls_local_dynamic_base_64.
31032 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
31033 (*tls_global_dynamic_64_<mode>): This.
31034 (tls_global_dynamic_64): Renamed to ...
31035 (tls_global_dynamic_64_<mode>): This.
31036 (*tls_local_dynamic_base_64): Renamed to ...
31037 (*tls_local_dynamic_base_64_<mode>): This.
31038 (tls_local_dynamic_base_64): Renamed to ...
31039 (tls_local_dynamic_base_64_<mode>): This.
31041 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
31043 * config/i386/i386.c (ix86_option_override_internal): Properly
31044 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
31045 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
31046 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
31047 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
31049 * config/i386/sse.md (sse3_monitor64): Renamed to ...
31050 (sse3_monitor64_<mode>): This.
31052 2012-03-12 Tristan Gingold <gingold@adacore.com>
31054 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
31055 (ia64_function_arg_advance): Ditto.
31057 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31059 * config.gcc (mips*-*-openbsd*): Remove.
31060 * config/mips/openbsd.h: Remove.
31061 * config/mips/sdb.h: Remove.
31063 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
31064 * config/mips/mips.c (sdb_label_count): Remove.
31065 (mips_debugger_offset): Remove #if 0 code.
31066 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
31067 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
31069 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31071 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
31072 binutils reference.
31073 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
31074 Update binutils references.
31075 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
31076 Update binutils reference.
31077 Update Sun as/GNU ld caveat.
31078 Document binutils largefile requirement for LTO plugin.
31079 Remove reference to alternate libpthread.
31081 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31083 * config.gcc (alpha*-dec-osf5.1*): Remove.
31084 * config.host (alpha*-dec-osf*): Remove.
31085 * configure.ac (*-*-osf*): Remove.
31086 (alpha*-dec-osf*): Remove.
31087 * configure: Regenerate.
31089 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
31090 config/alpha/va_list.h, config/alpha/x-osf: Remove.
31092 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
31093 * config/alpha/alpha.c (struct machine_function): Update comment.
31094 (alpha_start_function): Remove Tru64 UNIX as handling for
31096 * config/alpha/alpha.md ("exception_receiver"): Remove
31097 TARGET_LD_BUGGY_LDGP.
31098 ("*exception_receiver_2"): Likewise.
31099 * except.c (finish_eh_generation): Remove Tru64 reference.
31100 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
31101 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
31102 * target.def (handle_pragma_extern_prefix): Remove.
31104 * Makefile.in (mips-tfile.o-warn): Remove.
31105 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
31106 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
31107 * mips-tdump.c, mips-tfile.c: Remove.
31109 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
31111 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
31112 (Specific, alpha*-dec-osf5.1): Note removal.
31113 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
31115 * doc/tm.texi: Regenerate.
31116 * doc/trouble.texi (Cross-Compiler Problems): Remove.
31118 2012-03-12 Richard Guenther <rguenther@suse.de>
31120 * config/arm/arm.c (neon_dereference_pointer): Do not call
31121 covert during RTL expansion.
31123 2012-03-12 Tristan Gingold <gingold@adacore.com>
31125 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
31126 Options. Mention -mpointer-size.
31128 2012-03-12 Richard Guenther <rguenther@suse.de>
31130 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
31131 build_nonstandard_integer_type.
31133 2012-03-12 Richard Guenther <rguenther@suse.de>
31135 * tree.c (signed_or_unsigned_type_for): Use
31136 build_nonstandard_integer_type.
31137 (signed_type_for): Adjust documentation.
31138 (unsigned_type_for): Likewise.
31139 * tree-pretty-print.c (dump_generic_node): Use standard names
31140 for non-standard integer types if available.
31142 2012-03-12 Tristan Gingold <gingold@adacore.com>
31144 * config/vms/vms.opt: Add vms-opts.h header.
31145 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
31147 (-mvms-return-codes): Document.
31148 (-mpointer-size): New option.
31149 (vms_pointer_size): Add enumeration.
31150 * config/vms/vms-opts.h: New file.
31151 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
31152 __INITIAL_POINTER_SIZE.
31153 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
31154 (C_COMMON_OVERRIDE_OPTIONS): Define.
31155 (DWARF2_ADDR_SIZE): Define.
31156 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
31157 * config/vms/vms-protos.h (vms_c_common_override_options):
31159 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
31160 if -mno-pointer-size.
31161 (vms_c_common_override_options): New function.
31162 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
31163 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
31164 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
31165 and flag_vms_pointer_size.
31166 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
31167 * config.gcc (*-*-*vms*): Define xm_file.
31168 (alpha*-dec-*vms*): Do not define xm_file.
31169 (alpha64-dec-*vms*): Remove.
31170 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
31173 2012-03-12 Jakub Jelinek <jakub@redhat.com>
31175 PR tree-optimization/51721
31176 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
31177 if (int) unsvar cmp CST.
31179 2012-03-12 Richard Guenther <rguenther@suse.de>
31181 * tree-sra.c (create_access_replacement): Only rename the replacement
31182 if we can rewrite it into SSA form. Properly mark register typed
31183 replacements that we cannot rewrite with TREE_ADDRESSABLE.
31184 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
31185 for aggregate or BLKmode results.
31187 2012-03-12 Jakub Jelinek <jakub@redhat.com>
31189 PR tree-optimization/52533
31190 * tree-vrp.c (register_edge_assert_for_2): Use double_int
31191 type for mask, only handle shifts by non-zero in-range
31192 shift count, for LE_EXPR and GT_EXPR if new_val is
31193 maximum, don't add the assertion.
31195 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
31197 * doc/invoke.texi: Document -mrtm option.
31198 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
31199 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
31200 (ix86_handle_option): Handle OPT_mrtm.
31201 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
31203 (x86_64-*-*): Ditto.
31204 * i386-builtin-types.def (INT_FTYPE_VOID): New.
31205 * config/i386/i386-c.c (ix86_target_macros_internal): Define
31207 (ix86_target_string): Define -mrtm option.
31209 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
31211 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
31212 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
31213 IX86_BUILTIN_XTEST.
31214 (bdesc_special_args): Ditto.
31215 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
31216 (ix86_expand_special_args_builtin): Handle new built-in type.
31217 (ix86_expand_builtin): Handle XABORT instruction.
31218 * config/i386/i386.h (TARGET_RTM): New.
31219 * config/i386/i386.md (UNSPECV_XBEGIN): New.
31220 (UNSPECV_XEND): Ditto.
31221 (UNSPECV_XABORT): Ditto.
31222 (UNSPECV_XTEST): Ditto.
31229 * config/i386/i386.opt (mrtm): New.
31230 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
31231 * config/i386/rtmintrin.h: New header.
31232 * config/i386/xtestintrin.h: Ditto.
31234 2012-03-12 Tristan Gingold <gingold@adacore.com>
31236 * ginclude/stddef.h: Adjust previous patch.
31237 Use __VMS__ instead of VMS.
31239 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
31241 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
31242 Also convert sequences with CC setting arithmetic instruction.
31244 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
31246 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
31247 from C Language Options to Preprocessor Options.
31248 (C Dialect Options): Move -no-integrated-cpp documentation
31250 (Preprocessor Options): ...to here. Rewrite the description
31251 so it makes more sense, and remove discussion of merging front ends.
31253 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31255 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
31257 (ix86_expand_setmem): Likewise.
31259 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
31261 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
31264 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31266 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
31267 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
31269 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31271 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
31273 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31275 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
31278 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
31279 Uros Bizjak <ubizjak@gmail.com>
31281 * config/i386/predicates.md (call_insn_operand): Allow
31282 constant_call_address_operand in Pmode only.
31283 (sibcall_insn_operand): Ditto.
31284 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
31285 (*call_vzeroupper): Ditto.
31287 (*sibcall_vzeroupper): Ditto.
31288 (*call_value): Ditto.
31289 (*call_value_vzeroupper): Ditto.
31290 (*sibcall_value): Ditto.
31291 (*sibcall_value_vzeroupper): Ditto.
31292 (*indirect_jump): Ditto.
31293 (*tablejump_1): Ditto.
31294 (indirect_jump): Convert memory address to word mode for TARGET_X32.
31295 (tablejump): Ditto.
31296 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
31299 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
31302 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
31303 Use movrt_negc instead of negc pattern for non-SH2A.
31304 (*movnegt): Remove.
31305 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
31307 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
31309 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
31310 if Pmode != word_mode.
31311 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
31312 Pmode == SImode for TARGET_X32.
31314 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
31315 (tls_initial_exec_x32): Likewise.
31317 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
31319 PR rtl-optimization/52528
31320 * combine.c (can_combine_p): Add setting of subst_low_luid
31321 before call to expand_field_assignment().
31323 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
31325 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
31326 and related program names.
31328 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
31330 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
31332 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
31335 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
31336 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
31337 to set code to 'q'.
31338 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
31339 (*movdi_internal_rex64): Use %E operand modifier for lea.
31340 (*movsi_internal): Ditto.
31342 (*lea<mode>_2): Ditto.
31343 (*lea_{3,4,5,6}_zext): Ditto.
31344 (*tls_global_dynamic_32_gnu): Ditto.
31345 (*tls_global_dynamic_64): Ditto.
31346 (*tls_dynamic_gnu2_lea_32): Ditto.
31347 (*tls_dynamic_gnu2_lea_64): Ditto.
31348 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
31350 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
31352 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
31353 redefine to be NULL if the current bit-size is different from the
31354 configured bit-size.
31356 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
31357 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
31358 set the default tuning. Add asserts to make sure the cpu and tune
31359 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
31360 test whether the index is set, instead of > 0.
31361 (rs6000_file_start): Do not reset the default cpu if the current
31362 bit-size is different from the configured bit-size.
31364 2012-03-09 Tristan Gingold <gingold@adacore.com>
31366 * config/vms/vms-crtlmap.map: Add comments.
31367 Add entries needed to build Ada RTS.
31369 2012-03-09 Tristan Gingold <gingold@adacore.com>
31371 * ginclude/stddef.h: Do not define __size_t on VMS.
31373 2012-03-09 Tristan Gingold <gingold@adacore.com>
31375 * c-tree.h (c_default_pointer_mode): New variable.
31376 * c-decl.c (c_default_pointer_mode): New variable.
31377 (c_build_pointer_type): New function.
31378 (grokdeclarator): Call c_build_pointer_type instead
31379 of build_pointer_type.
31381 * config/vms/vms-c.c: Include c-tree.h
31382 (saved_pointer_mode): New variable.
31383 (handle_pragma_pointer_size): New function.
31384 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
31385 (vms_c_register_pragma): Register __pointer_size and
31386 __required_pointer_size pragmas.
31388 2012-03-09 Tristan Gingold <gingold@adacore.com>
31390 * config/vms/vms-c.c (vms_construct_include_filename): New function.
31391 (vms_c_register_includes): Reference it.
31393 2012-03-09 Andrew Pinski <apinski@cavium.com>
31395 PR middle-end/51988
31396 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
31397 print_generic_expr.
31398 (tree_ssa_phiopt_worker): Go through all the PHIs for
31399 value_replacement instead of just the singleton one.
31400 (value_replacement): Change return type to int. Return 0 instead of
31402 Allow the middle basic block to contain more than just the defining
31404 Handle non empty middle basic blocks.
31405 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
31407 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
31409 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
31410 array reference and component reference.
31411 (analyze_scalar_evolution_for_address_of): New.
31413 2012-03-08 Jie Zhang <jzhang918@gmail.com>
31416 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
31417 (hwloop_pattern_reg): Fix set but not used warning.
31418 (bfin_reorg_loops): Remove unused parameter.
31419 (bfin_reorg): Update use of bfin_reorg_loops.
31421 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
31423 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
31424 with integer parameters in registers.
31425 (gen_push): Push register in word_mode instead of Pmode.
31426 (ix86_emit_save_regs): Likewise.
31427 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
31428 (gen_pop): Pop register in word_mode instead of Pmode.
31429 (ix86_emit_restore_regs_using_pop): Likewise.
31430 (ix86_expand_prologue): Replace Pmode with word_mode for push
31431 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
31432 restore RAX and R10 in word_mode.
31433 (ix86_emit_restore_regs_using_mov): Restore integer registers
31435 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
31437 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
31438 (ix86_split_long_move): Likewise.
31440 * config/i386/i386.md (W): New.
31441 (*push<mode>2_prologue): Replace :P with :W.
31442 (*pop<mode>1): Likewise.
31443 (*pop<mode>1_epilogue): Likewise.
31444 (push/pop peephole2): Use word_mode scratch registers.
31446 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
31448 * config/i386/predicates.md (indirect_branch_operand): Simplify.
31450 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
31452 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
31453 for constants in [-63,63].
31455 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
31459 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
31461 * config/i386/i386.c (ix86_print_operand_address): Only handle
31462 zero-extended DImode addresses.
31464 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31466 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
31467 * configure: Regenerate.
31469 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
31472 * config/avr/avr.c (avr_mem_clobber): New static function.
31473 (avr_expand_delay_cycles): Add memory clobber operand to
31474 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
31475 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
31476 (enable_interrupt, disable_interrupt): New expander.
31477 (nopv, sleep, wdr): New expanders.
31478 (delay_cycles_1): Add memory clobber.
31479 (delay_cycles_2): Add memory clobber.
31480 (delay_cycles_3): Add memory clobber.
31481 (delay_cycles_4): Add memory clobber.
31482 (cli_sei): New insn from former "enable_interrupt",
31483 "disable_interrupt" with memory clobber.
31484 (*wdt): New insn from former "wdt" with memory clobber.
31485 (*nopv): Similar, but for "nopv".
31486 (*sleep): Similar, but for "sleep".
31488 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
31489 Kaz Kojima <kkojima@gcc.gnu.org>
31492 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
31493 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
31494 (SUBTARGET_OVERRIDE_OPTIONS): Define.
31496 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
31498 * config/i386/predicates.md (x86_64_zext_general_operand): New.
31499 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
31500 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
31502 2012-03-07 Walter Lee <walt@tilera.com>
31504 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
31505 REG_CFA_* notes for the stack pointer.
31506 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
31507 EH_RETURN_STACKADJ_RTX.
31508 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
31509 generate REG_CFA_* notes for the stack pointer.
31510 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
31511 by EH_RETURN_STACKADJ_RTX.
31513 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31515 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
31516 when __AVR_3_BYTE_PC__ is defined.
31518 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
31520 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
31521 (ix86_print_operand): Handle '^'.
31522 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
31523 using P mode iterator. Add %^ to asm template to conditionally emit
31525 (*rep_movdi_rex64): Ditto.
31526 (*strsetdi_rex_1): Ditto.
31527 (*rep_stosdi_rex64): Ditto.
31528 (*strmov{si,hi,qi}_1): Add %^ to asm template to
31529 conditionally emit addr32 prefix.
31530 (*rep_mov{si,qi}): Ditto.
31531 (*strset{si,hi,qi}): Ditto.
31532 (*rep_stos{si,qi}): Ditto.
31533 (*cmpstrnqi_nz_1): Ditto.
31534 (*cmpstrnqi_1): Ditto.
31535 (*strlenqi_1): Ditto.
31537 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
31539 * config/i386/i386.c (function_value_64): Return pointers in
31540 word_mode instead of Pmode.
31541 (ix86_promote_function_mode): Likewise.
31543 2012-03-07 Richard Guenther <rguenther@suse.de>
31545 * coverage.c (get_gcov_type): Use type_for_mode.
31546 (get_gcov_unsigned_t): Likewise.
31547 * expr.c (store_constructor): Use type_for_mode.
31548 (try_casesi): Likewise.
31549 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
31550 (add_standard_iv_candidates): Use standard type trees.
31551 * dojump.c (do_jump): Remove dead code.
31553 2012-03-07 Richard Guenther <rguenther@suse.de>
31555 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
31557 2012-03-07 Richard Guenther <rguenther@suse.de>
31559 * convert.c (strip_float_extensions): Move ...
31560 * tree.c (strip_float_extensions): ... here.
31562 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31565 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
31567 2012-03-07 Richard Guenther <rguenther@suse.de>
31569 * omp-low.c (extract_omp_for_data): Use signed_type_for.
31570 (expand_omp_for_generic): Likewise.
31571 (expand_omp_for_static_nochunk): Likewise.
31572 (expand_omp_for_static_chunk): Likewise.
31573 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
31574 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31575 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
31576 Use unsigned_type_for.
31577 (vect_create_cond_for_align_checks): Use signed_type_for.
31579 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
31581 PR rtl-optimization/52203
31582 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
31583 all callers to pass NULL except ...
31584 (reset_sched_cycles_in_current_ebb): ... here, save the value
31585 in new variable 'empty'. Increase issue_rate only for
31588 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
31591 * Makefile.in: Let install-gcc-ar depend on installdirs,
31592 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
31593 Don't double canonicalize if cross-compiling.
31595 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31598 * config/avr/avr.c (expand_epilogue): Fix order of restoration
31599 to: RAMPZ, RAMPY, RAMPX, RAMPD.
31600 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
31602 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31605 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
31607 * config/avr/avr.md (xload_8): Adjust insn length.
31609 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
31612 * config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
31613 if RAMPZ affects reading from RAM.
31615 2012-03-07 Richard Guenther <rguenther@suse.de>
31619 * doc/invoke.texi (Precompiled Headers): Remove sentence that
31620 suggests you can include PCHs from inside another header.
31622 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
31624 PR middle-end/52515
31625 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
31627 2012-03-07 Kai Tietz <ktietz@redhat.com>
31629 * doc/invoke.texi (fwritable-relocated-rdata): Document
31630 new Cygwin/MinGW target option.
31631 * config/i386/winnt.c (i386_pe_unique_section): Ignore
31632 reloc if flag -fwritable-relocated-rdata is not set.
31633 (i386_pe_section_type_flags): Likewise.
31634 * config/i386/cygming.opt (fwritable-relocated-rdata):
31635 Add new flag variable flag_writable_rel_rdata.
31637 2012-03-07 Richard Guenther <rguenther@suse.de>
31639 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
31640 precision against gimple constraints.
31642 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
31644 PR middle-end/52372
31645 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
31647 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
31648 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
31650 (init_emit_regs): Move associated initialization to...
31651 (init_emit_once): ...here.
31653 2012-03-06 Richard Henderson <rth@redhat.com>
31655 * config/m68k/m68k.h (ISA_HAS_TAS): New.
31656 * config/m68k/sync.md (atomic_test_and_set): Use it.
31657 (atomic_test_and_set_1): Likewise.
31659 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31662 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
31663 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
31664 (vector_ltgt<mode>): Likewise.
31665 (vector_ordered<mode>): Likewise.
31666 (vector_unordered<mode>): Likewise.
31667 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
31669 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
31671 * trans-mem.c: New typedef for tm_region_p.
31672 Define vector types for tm_region_p.
31673 (tm_region_init): Replace region_worklist to a vector called
31676 2012-03-06 Richard Guenther <rguenther@suse.de>
31678 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
31679 MEM_REF with constant pointer operand.
31681 2012-03-06 Richard Guenther <rguenther@suse.de>
31683 PR middle-end/52493
31684 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
31686 2012-03-06 Tristan Gingold <gingold@adacore.com>
31688 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
31689 (external_model_kind): Improve documentation.
31690 (vms_pragma_extern_model): Handle relaxed_redef.
31691 (vms_c_register_pragma): Allow expansion for nomember_alignment.
31693 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
31695 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
31696 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
31697 Some more notes on EIND usage and reorder EIND subsection.
31699 2012-03-06 Tristan Gingold <gingold@adacore.com>
31701 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
31702 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
31704 2012-03-06 Tristan Gingold <gingold@adacore.com>
31706 * config/vms/t-vmsnative (version): Define.
31707 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
31709 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
31711 PR rtl-optimization/52250
31712 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
31713 to put note list into. Unconditionally call move_bb_info.
31714 (move_bb_info): Do not assert the blocks being in the same region,
31715 just drop the note list if they are not.
31717 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
31720 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
31721 and use unified expansion logic.
31722 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
31723 closer to the existing movt insn.
31724 (negc): Rename insn to *negc. Add new expander.
31725 (movnegt): Use xor pattern for T bit negation. Reserve helper
31726 constant for negc pattern.
31727 (*movnegt): New insn and splitter.
31729 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
31731 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
31734 2012-03-05 Richard Henderson <rth@redhat.com>
31736 * genemit.c (main): Include "target.h" in insn-emit.c.
31737 * Makefile.in (insn-emit.o): Depend on TARGET_H.
31738 * config/sh/sync.md (atomic_test_and_set): Reference
31739 targetm.atomic_test_and_set_trueval instead of
31740 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
31742 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
31744 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
31747 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
31749 * langhooks.c (add_builtin_type): New function.
31750 * langhooks.h (add_builtin_type): Export it.
31751 * config/mep/mep.c (mep_init_builtins): Use it.
31752 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
31754 2012-03-05 Jakub Jelinek <jakub@redhat.com>
31757 * tree.h (BLOCK_SAME_RANGE): Define.
31758 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
31759 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
31760 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
31761 isn't equal to supercontext fragment's fragment chain.
31762 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
31764 (blocks_nreverse_all): Likewise.
31765 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
31766 BLOCK_SUPERCONTEXT to supercontext fragment instead of
31767 supercontext fragment's fragment origin.
31768 * dwarf2out.c (add_high_low_attributes): If stmt has the same
31769 range as its parent (or parents thereof etc.), use the parent's
31770 DW_AT_ranges value instead of creating a new .debug_ranges range.
31772 2012-03-05 Richard Henderson <rth@redhat.com>
31775 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
31776 * omp-low.c (expand_omp_atomic): Assume anything aligned to
31777 BIGGEST_ALIGNMENT is aligned.
31779 2012-03-05 Richard Henderson <rth@redhat.com>
31781 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
31782 * config/sh/sh.c: ... here.
31784 2012-03-05 Richard Henderson <rth@redhat.com>
31787 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
31788 instead of calling negqi2 directly.
31790 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
31792 PR middle-end/52463
31793 * trans-mem.c (tm_region_init): Use last_basic_block.
31795 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
31797 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
31798 * config/sh/sync.md (atomic_test_and_set): New expander.
31799 (tasb, atomic_test_and_set_soft): New insns.
31800 * config/sh/sh.opt (menable-tas): New option.
31801 * doc/invoke.texi (SH Options): Document it.
31803 2012-03-05 Richard Guenther <rguenther@suse.de>
31805 * cfgloop.c (verify_loop_structure): Verify dominators before
31807 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
31808 dominators from here.
31809 * graphite-scop-detection.c (create_sese_edges): Likewise.
31810 * loop-doloop.c (doloop_optimize_loops): Likewise.
31811 * loop-init.c (loop_optimizer_init): Likewise.
31812 * loop-unroll.c (unroll_and_peel_loops): Likewise.
31813 * loop-unswitch.c (unswitch_loops): Likewise.
31814 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
31815 * tree-parloops.c (parallelize_loops): Likewise. Verify
31816 only when checking is enabled.
31817 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
31819 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
31821 * genautomata.c (parse_automata_opt): New static function.
31822 (initiate_automaton_gen): Remove all option handling code. Remove
31823 argc argument. All callers changed.
31824 (main): Call init_rtx_reader_args_cb with the new function as argument.
31826 2012-03-05 Richard Guenther <rguenther@suse.de>
31828 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
31829 * tree-if-conv.c (combine_blocks): Free post-dominator info
31831 * tree-parloops.c (create_parallel_loop): Free and re-compute
31832 dominator info after breaking it.
31834 2012-03-05 Richard Guenther <rguenther@suse.de>
31836 PR middle-end/52353
31837 * optabs.h (trapv_unoptab_p): New function.
31838 (trapv_binoptab_p): Likewise.
31839 * optabs.c (expand_binop): Use emit_libcall_block_1 with
31840 a proper equiv_may_trap argument.
31841 (expand_unop): Likewise.
31842 (emit_libcall_block_1): Take extra argument whether the
31843 instruction may trap. Renamed from ...
31844 (emit_libcall_block): ... this. New wrapper.
31846 2012-03-05 Jakub Jelinek <jakub@redhat.com>
31848 PR tree-optimization/51721
31849 * tree-vrp.c (register_edge_assert_for_2): If comparing
31850 lhs of right shift by constant with an integer constant,
31851 add ASSERT_EXPRs for the rhs1 of the right shift.
31853 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
31855 2012-03-05 Richard Guenther <rguenther@suse.de>
31857 * tree.c (integer_zerop): Handle VECTOR_CSTs.
31858 (integer_onep): Likewise.
31859 (integer_all_onesp): Likewise.
31861 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
31863 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
31865 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
31867 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
31868 instead of TARGET_64BIT.
31870 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
31872 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
31875 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
31877 * config/i386/i386.c (ix86_print_operand_address): Only handle
31878 zero-extended DImode addresses.
31880 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
31882 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
31883 taken and cputaken as bool.
31885 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
31887 * config/i386/constraints.md (Ya): New internal constraint.
31888 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
31889 (*zero_extendsidi2_rex64): Add x,x alternative.
31890 (*zero_extendsidi2): Ditto. Add o,0 alternative.
31891 Remove flags reg clobber. Adjust corresponding splits.
31892 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
31893 zero_extendqisi2 expanders using SWI12 mode iterator.
31894 (zero_extend<mode>si2_and): Macroize insn from
31895 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
31897 (*zero_extend<mode>si2): Macroize insn from
31898 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
31899 (*zero_extend*2_movzbl_and): Remove insn patterns.
31900 (zero_extendqihi2_and): Merge corresponding splitter.
31901 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
31902 (*zero_extend*2_movzbl_and): Remove insn patterns.
31903 (*anddi_1): Split TYPE_IMOVX instructions.
31904 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
31906 (and->zext splitter): Add splitter pattern.
31907 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
31909 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
31911 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
31913 (Debugging Options): Likewise.
31914 (Optimize Options): Likewise.
31915 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
31916 with other architectures. Use official processor names with correct
31917 spelling/capitalization. Fix formatting and grammar issues.
31918 (i386 and x86-64 Windows Options): Similar cleanup here.
31920 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31922 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
31924 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31926 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
31927 DBX_REGISTER_NUMBER.
31929 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31931 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
31932 operand is CONST_INT. Take COSTS_N_INSNS into account.
31933 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
31936 2012-03-02 Richard Henderson <rth@redhat.com>
31938 * optabs.c (expand_atomic_test_and_set): Honor
31939 atomic_test_and_set_trueval even when atomic_test_and_set
31940 optab is not in use.
31942 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
31946 * config/sh/sh.c (sh_register_move_cost): Increase cost between
31947 GENERAL_REGS and FP_REGS for SImode.
31949 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
31952 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
31953 (absdi2): New expander.
31954 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
31956 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
31958 * config/sh/sync.md (atomic_exchange<mode>): New expander.
31959 (atomic_exchange<mode>_soft): New insn.
31961 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
31963 * config/sh/sync.md: Update copyright notice dates.
31964 (atomic_compare_and_swap<mode>): Use SImode for return value instead
31966 (atomic_compare_and_swap<mode>_soft): Likewise.
31968 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
31971 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
31972 * config/sh/sh.c: Update copyright notice dates.
31973 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
31974 alignment for TARGET_HARD_SH4.
31975 (sh_option_override): Reduce default function alignment. Set
31976 loop alignment to 4 bytes when not optimizing for size.
31978 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
31980 PR middle-end/50335
31981 * doc/invoke.texi (floop-flatten): Remove.
31982 * toplev.c (process_options): Remove references to flag_loop_flatten.
31983 * tree-ssa-loop.c (gate_graphite_transform): Same.
31984 * common.opt (floop-flatten): Obsolete.
31985 * graphite-poly.c (apply_poly_transforms): Remove reference to
31987 * Makefile.in (graphite-flattening.o): Remove.
31988 * graphite-flattening.c: Remove.
31990 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
31992 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
31993 having mode compatible with the mode of previous compare. Substitute
31994 compare mode of previous compare with the mode, compatible
31995 with eliminated and previous compare.
31997 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
31999 * config/rs6000/dfp.md (floatdidd2): New define_insn.
32001 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
32003 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
32004 compatible with CCGOCmode and CCGCmode.
32006 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
32008 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
32010 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
32012 * config/arm/arm.c (arm_sat_operator_match): New function.
32013 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
32014 * config/arm/arm.md ("insn" attribute): Add "sat" value.
32015 ("SAT", "SATrev"): New code iterators.
32016 ("SATlo", "SAThi"): New code iterator attributes.
32017 ("*satsi_<SAT:code>"): New pattern.
32018 ("*satsi_<SAT:code>_shift"): Likewise.
32019 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
32020 and "shift" attributes.
32021 ("arm_usatsihi"): Add "insn" attribute.
32022 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
32023 by powers of two. Do not allow shift by 32.
32025 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
32028 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
32029 to pass the argument in the register of "natural" mode.
32031 2012-03-02 Richard Guenther <rguenther@suse.de>
32033 PR tree-optimization/52406
32034 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
32035 (struct indices): Add unconstrained_base member.
32036 (struct dr_alias): Remove unused vops member.
32037 (DR_UNCONSTRAINED_BASE): New define.
32038 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
32039 add indices to allow their disambiguation. Make DR_BASE_OBJECT
32040 be an artificial access that covers the whole indexed object,
32041 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
32042 plain decl base-objects to their MEM_REF variant.
32043 (dr_may_alias_p): When the base-object of either data reference
32044 has unknown size use only points-to information.
32045 (compute_affine_dependence): Make dumps easier to read and
32047 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
32048 DR_REF when looking for packed references.
32049 (vect_supportable_dr_alignment): Likewise.
32051 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
32053 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
32054 Improve conditions for peepholes of loads followed by commutative
32056 * config/arm/ldmstm.md: Regenerated.
32058 2012-03-02 Richard Guenther <rguenther@suse.de>
32060 * BASE-VER: Set to 4.8.0.
32062 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
32064 * config.gcc (obsolete): Add all ARM targets using the FPA.
32065 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
32066 * doc/install.texi: Avoid references to obsolete ARM ports.
32068 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
32070 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
32072 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
32073 Joern Rennecke <joern.rennecke@embecosm.com>
32075 * doc/extend.texi: Expand and update information on interrupt
32076 attribute for Epiphany.
32078 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
32080 * config/sh/sh-protos.h: Update copyright notice dates.
32081 * config/sh/sh.h: Likewise.
32082 * config/sh/sh.md: Likewise.
32083 * config/sh/constraints.md: Likewise.
32084 * config/sh/predicates.md: Likewise.
32086 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
32088 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
32089 * config/sh/sh.c (tertiary_reload_operand): Likewise.
32091 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
32093 * config/sh/constraints.md: Fix comment typo.
32095 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32098 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
32099 unsigned HOST_WIDE_INT.
32100 (zvdep_imm64): Likewise.
32101 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
32102 (vdepi_and): Likewise.
32103 Likewise for unamed 64-bit patterns.
32104 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
32106 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
32109 PR rtl-optimization/52417
32110 * cselib.c (cselib_any_perm_equivs): New variable.
32111 (cselib_reset_table): Check that it's not set when not
32112 preserving constants.
32113 (cselib_add_permanent_equiv): Set it.
32114 (cselib_have_permanent_equivalences): New.
32115 (cselib_init, cselib_finish): Reset it.
32116 * cselib.h (cselib_have_permanent_equivalences): Declare.
32117 * alias.c (get_addr): Restore earlier behavior when there
32118 aren't permanent equivalences.
32120 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
32122 * config/mn10300/mn10300-modes.def: Fix copyright notice.
32123 * config/v850/v850-modes.def: Fix copyright notice.
32125 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
32127 * doc/extend.texi (AVR Built-in Functions): Document
32128 __builtin_avr_flash_segment.
32130 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
32131 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
32132 (*split.flash_segment): New insn-and-split.
32133 * config/avr/avr.c (avr_init_builtins): Add local variables:
32134 const_memx_void_node, const_memx_ptr_type_node,
32135 char_ftype_const_memx_ptr.
32137 2012-03-01 Jakub Jelinek <jakub@redhat.com>
32139 PR tree-optimization/52445
32140 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
32141 add ssa_name_ver, offset and size fields and change store field
32143 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
32144 (add_or_mark_expr): Likewise. Only consider previous stores
32145 with the same size and offset.
32146 (nt_init_block): Only look at gimple_assign_single_p stmts,
32147 doesn't look at rhs2.
32149 2012-03-01 Richard Guenther <rguenther@suse.de>
32151 PR middle-end/52443
32152 * tree-cfg.c (verify_gimple_assign_unary): Allow any
32153 conversions from integral types to pointer types.
32155 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
32157 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
32158 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
32159 unintentionally removed in r184616.
32161 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
32163 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
32166 2012-02-29 Jakub Jelinek <jakub@redhat.com>
32167 Uros Bizjak <ubizjak@gmail.com>
32170 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
32171 alternatives, add "e" constraint to the new last alternative
32172 and ! to last 3 alternatives.
32174 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
32176 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
32177 DW_AT_artificial attributes at the end of the processing.
32178 (gen_array_type_die): Likewise.
32179 (gen_enumeration_type_die): Likewise.
32180 (gen_struct_or_union_type_die): Likewise.
32181 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
32184 2012-02-29 Jakub Jelinek <jakub@redhat.com>
32186 PR middle-end/52419
32187 * expr.c (expand_assignment): If doing misaligned store that doesn't
32188 cover all mode bits, perform a RMW cycle.
32190 PR tree-optimization/52429
32191 * tree-parloops.c (separate_decls_in_region_debug): Return early
32192 if var is LABEL_DECL.
32194 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32196 PR tree-optimization/52424
32197 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
32198 calling dom_thread_across_edge.
32200 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32202 * config/avr/avr.c: Move definition of TARGET macros to end of file.
32204 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32206 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
32207 * config/avr/avr.c (avr_output_bld): Remove unused function.
32208 (avr_out_sbxx_branch): Use "%T" to print bit position.
32210 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32212 * config/avr/avr.md: Untabify.
32214 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32216 * config/avr/avr.md (eqne): New code iterator.
32217 (*dec-and-branchsi): Use it in text peephole's condition.
32218 (*dec-and-branchhi): Ditto.
32219 (*dec-and-branchqi): Ditto.
32221 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
32224 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
32225 the device does not have the skip-bug.
32227 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
32229 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
32230 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
32231 -mpretend-cmove): New.
32233 2012-02-29 Jakub Jelinek <jakub@redhat.com>
32236 * df.h (struct df_d): Adjust comment that hard_regs_live_count
32237 doesn't count DEBUG_INSN refs.
32238 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
32239 for DEBUG_INSN refs.
32241 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32245 2012-02-20 Richard Guenther <rguenther@suse.de>
32246 PR tree-optimization/52298
32247 * tree-vect-stmts.c (vectorizable_load): Properly use
32248 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
32250 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
32252 PR middle-end/51752
32253 * gimple.h (gimple_in_transaction): New.
32254 (gimple_set_in_transaction): New.
32255 (struct gimple_statement_base): Add in_transaction field.
32256 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
32258 (tree_ssa_lim_initialize): Compute transaction bits.
32259 * tree.h (compute_transaction_bits): Protoize.
32260 * trans-mem.c (tm_region_init): Use the heap to store BB
32262 (compute_transaction_bits): New.
32264 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32266 * gcc.c (display_help): Document --help=common and sort entries
32269 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32271 * doc/install.texi: Document check-$LANG specific shortcuts
32273 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
32276 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
32278 * config/arm/arm_neon.h: Regenerate.
32279 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
32280 (neon_vcgeu): New insn.
32281 (neon_vcgtu): Likewise.
32282 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
32283 (ops): Unsigned comparison intrinsics call a different builtin.
32285 2012-02-28 Richard Guenther <rguenther@suse.de>
32288 * config/i386/i386.c (ix86_expand_vector_set): Fix element
32289 ordering for the VEC_CONCAT for two element vectors for
32290 V2SFmode, V2SImode and V2DImode.
32292 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
32295 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
32296 detecting big-endian triplets.
32298 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
32300 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
32301 mode if there is no type information available.
32303 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
32305 PR tree-optimization/53207
32306 * doc/invoke.texi: Document as experimental and relying on graphite.
32308 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
32310 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
32311 of initializer to changes from r184614.
32313 2012-02-28 Richard Guenther <rguenther@suse.de>
32315 PR tree-optimization/52395
32316 * tree-sra.c (build_ref_for_offset): Also look at the base
32317 TYPE_ALIGN when figuring out the alignment of the replacement.
32319 2012-02-28 Richard Guenther <rguenther@suse.de>
32321 PR tree-optimization/52402
32322 * ipa-prop.c (ipa_modify_call_arguments): Properly use
32323 mis-aligned types when creating the accesses at the call site.
32325 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
32327 * config/avr/builtins.def: New file.
32328 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
32329 * config/avr/avr.c (enum avr_builtin_id): Use it.
32330 (avr_init_builtins): Use it. And use avr_bdesc.
32331 (bdesc_1arg): Remove.
32332 (bdesc_2arg): Remove.
32333 (bdesc_3arg): Remove.
32334 (struct avr_builtin_description): Add field n_args.
32335 (avr_bdesc): New static variable using builtins.def.
32336 (avr_expand_builtin): Use it.
32337 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
32338 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
32339 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
32341 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
32344 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
32345 match only one single hard register with respective hard reg rtx.
32346 (movmemx_<mode>): Ditto.
32347 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
32348 insn anatomy of movmem[x]_<mode>.
32349 (avr_out_movmem): Same for printing assembler and operand usage.
32351 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
32355 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
32356 address spaces located outside of device flash.
32358 * config/avr/avr.h (base_arch_s): Remove field n_segments.
32359 (mcu_type_s): Add field n_flash.
32360 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
32361 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
32362 (AVR_MCU): Add N_FLASH argument.
32363 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
32364 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
32365 macro __FLASH<n> if that address space makes sense for the device.
32366 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
32367 outside of target flash.
32368 (avr_asm_named_section): Ditto.
32369 (avr_asm_select_section): Ditto.
32370 (avr_addr_space_convert): Ditto.
32371 (avr_emit_movmemhi): Ditto.
32372 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
32373 address space is outside of device flash.
32374 (avr_insert_attributes): Ditto.
32375 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
32376 avr_current_arch->n_segments.
32378 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
32381 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
32382 (*movabs<mode>_2): Likewise.
32384 2012-02-27 Jakub Jelinek <jakub@redhat.com>
32387 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
32388 s_register_operand in the test instead of REG_P. Don't call
32389 gen_reg_rtx if it won't be used.
32391 PR tree-optimization/52376
32392 * ipa-split.c (split_function): Ignore CLOBBER stmts.
32394 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
32396 * ifcvt.c (noce_get_condition): Check condition variable is not
32397 small_register_classes_for_mode_p before accepting.
32399 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
32401 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
32403 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
32406 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
32407 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
32409 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
32411 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
32413 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
32415 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
32417 * config/sh/predicates.md: Remove blank lines.
32418 * config/sh/sh.c: Fix typos in comments.
32419 * config/sh/constraints.md: Likewise.
32420 * config/sh/sh.md: Remove blank lines.
32421 Fix typos in comments. Use ;; as comment characters.
32423 2012-02-26 Walter Lee <walt@tilera.com>
32425 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
32426 (replace_mov_pcrel_step2): Ditto.
32428 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
32431 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
32432 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
32433 and locs that reference values newer than the non-canonical value
32434 at hand. Return the canonical value as a worst case.
32435 (memrefs_conflict_p): Walk canonical value's locs.
32438 * cselib.c (preserve_only_constants): Rename to...
32439 (preserve_constants_and_equivs): ... this. Split out...
32440 (invariant_or_equiv_p): ... this. Preserve plus expressions
32441 of other preserved expressions too.
32442 (cselib_reset_table): Adjust.
32443 * var-tracking.c (reverse_op): Use canonical value to build
32446 2012-02-23 Kai Tietz <ktietz@redhat.com>
32448 * config/i386/i386.c (ix86_delegitimize_address): Handle
32449 UNSPEC_PCREL plus displacement.
32451 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
32454 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
32455 to test for unusedness in st X addressing.
32457 2012-02-24 Richard Guenther <rguenther@suse.de>
32459 PR middle-end/52361
32460 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
32461 (is_gimple_reg_type): Move inline ...
32462 * gimple.h (is_gimple_reg_type): ... here.
32464 2012-02-24 Richard Guenther <rguenther@suse.de>
32466 PR middle-end/52361
32467 * passes.c (execute_function_todo): When verifying SSA form
32468 verify gimple form first.
32469 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
32471 2012-02-24 Richard Guenther <rguenther@suse.de>
32473 PR middle-end/52355
32474 * fold-const.c (fold_addr_of_array_ref_difference): New function.
32475 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
32477 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32479 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
32481 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32483 * tree-phinodes.c (make_phi_node): Mark static.
32484 * tree-flow.h (make_phi_node): Remove extern decl.
32485 * doc/gimple.texi (make_phi_node): Remove documentation.
32487 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32489 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
32490 * tree-ssa-sccvn.c (print_scc): Ditto.
32492 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32494 * doc/passes.texi (Full redundancy elimination): Fix typo.
32496 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32498 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
32500 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
32503 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
32505 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
32508 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
32510 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
32512 * config/avr/avr.md (code_stdname): Add ior, xor.
32513 (xior): New code iterator.
32514 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
32515 (*<code_stdname><mode>qi.byte1-3): Ditto.
32517 2012-02-23 Jakub Jelinek <jakub@redhat.com>
32519 PR tree-optimization/52019
32520 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
32523 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32525 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
32526 HAVE_INITFINI_ARRAY to work around namespace pollution in
32527 certain versions of newlib system headers.
32528 * config.in: Regenerate.
32529 * configure: Regenerate.
32530 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
32531 instead of HAVE_INITFINI_ARRAY.
32533 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
32536 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
32537 is not offsettable memory reference.
32539 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
32542 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
32543 setting avr_need_clear_bss_p for __gnu_lto* symbols.
32545 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
32547 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
32548 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
32550 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32552 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
32553 library on Solaris 8 even without TLS support.
32554 * configure: Regenerate.
32556 2012-02-22 Richard Guenther <rguenther@suse.de>
32558 PR middle-end/52329
32559 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
32560 for GIMPLE_DEBUG stmts.
32562 2012-02-22 Martin Jambor <mjambor@suse.cz>
32564 PR middle-end/51782
32565 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
32566 according to the base object.
32568 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
32570 PR rtl-optimization/50063
32571 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
32572 and 2 (8-bit SP) in operand 2.
32573 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
32574 setup to use movhi_sp_r instead of vanilla move to write SP.
32575 Adjust REG_CFA notes to superseed unspec.
32576 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
32578 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
32579 known to be off) only with TARGET_NO_INTERRUPTS. Never use
32580 irq_state 1 (IRQ known to be on) here.
32582 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
32584 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
32586 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
32587 assign_hard_reg): Likewise.
32589 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
32591 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
32593 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
32595 * config/avr/avr.md
32596 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
32597 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
32599 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
32601 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
32602 prototype from here to...
32603 * config/avr/avr.h: ...here.
32605 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
32608 * thumb2.md (thumb2_shiftsi3_short): Split register and
32609 immediate shifts. For register shifts tie operands 0 and 1.
32610 (peephole2 for above): Check that register-controlled shifts
32611 have suitably tied operands.
32613 2012-02-21 Quentin Neill <quentin.neill@amd.com>
32616 * config/i386/bdver1.md (bdver1_call, bdver1_push,
32617 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
32618 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
32619 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
32620 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
32621 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
32622 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
32623 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
32624 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
32625 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
32626 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
32627 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
32628 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
32629 bdver1_ssevector_avx256_unaligned_load,
32630 bdver1_ssevector_sse128_unaligned_load,
32631 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
32632 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
32633 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
32634 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
32635 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
32636 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
32637 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
32638 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
32639 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
32640 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
32641 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
32642 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
32643 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
32644 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
32645 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
32646 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
32647 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
32648 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
32649 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
32650 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
32651 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
32652 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
32653 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
32654 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
32655 bdver1_ssediv_double_load, bdver1_ssediv_double,
32656 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
32657 Add "bdver2" attribute.
32659 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32661 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
32662 default if possible and not specified otherwise.
32664 2012-02-21 Richard Guenther <rguenther@suse.de>
32666 PR middle-end/52314
32667 * gimplify.c (create_tmp_from_val): Use the main variant type
32668 for the type of the temporary we create.
32670 2012-02-21 Richard Guenther <rguenther@suse.de>
32672 PR tree-optimization/52324
32673 * gimplify.c (gimplify_expr): When re-gimplifying expressions
32674 do not gimplify a MEM_REF address operand if it is already
32677 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32679 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
32680 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
32682 2012-02-21 Richard Guenther <rguenther@suse.de>
32684 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
32685 nested_in_vect_loop.
32687 2012-02-21 Jakub Jelinek <jakub@redhat.com>
32689 PR tree-optimization/52318
32690 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
32691 vdef also to non-pure/const call stmts in the sequence.
32693 2012-02-21 Tristan Gingold <gingold@adacore.com>
32695 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
32697 2012-02-20 David S. Miller <davem@davemloft.net>
32699 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
32700 don't use the "rd %pc" instruction on v9 for PIC register loads.
32702 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
32704 PR middle-end/52141
32705 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
32706 in a transaction safe function.
32708 2012-02-20 Kai Tietz <ktietz@redhat.com>
32711 * stor-layout.c (place_field): Handle desired_align for
32714 2012-02-20 Richard Guenther <rguenther@suse.de>
32716 PR tree-optimization/52298
32717 * tree-vect-stmts.c (vectorizable_store): Properly use
32718 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
32720 (vectorizable_load): Likewise.
32721 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
32722 Access DR_STEP after ensuring it is not NULL.
32724 2012-02-20 Jakub Jelinek <jakub@redhat.com>
32726 PR tree-optimization/52286
32727 * fold-const.c (fold_binary_loc): For (X & C1) | C2
32728 optimization use double_int_to_tree instead of build_int_cst_wide,
32729 rewrite to use double_int vars.
32731 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32734 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
32736 Remove -e 0 from $gcc_cv_ld invocation.
32737 Only use __GLIBC_PREREQ if defined.
32738 Enable on Solaris since Solaris 8 patch.
32739 (gcc_SUN_LD_VERSION): New macro.
32740 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
32741 gcc_SUN_LD_VERSION for version number format.
32742 * configure: Regenerate.
32743 * varasm.c (get_elf_initfini_array_priority_section): Set
32744 SECTION_NOTYPE for non-default priority.
32745 Use get_section instead of get_unnamed_section to emit
32746 .init_array/.fini_array with default priority.
32748 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
32750 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
32751 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
32752 (mips_start_unique_function, mips_output_mips16_rdhwr)
32753 (mips_code_end): New functions.
32754 (TARGET_ASM_CODE_END): Define.
32756 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
32758 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
32759 to stubs with non-sibling calls.
32761 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
32763 * doc/invoke.texi (-fira-* options): Copy-edit.
32764 (ira-* parameters): Copy-edit.
32766 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
32768 * doc/invoke.texi: Minor copy-edits to bring into conformance with
32769 GCC coding conventions.
32771 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
32773 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
32774 when used as adjectives.
32776 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
32778 * doc/invoke.texi: Clean up "that"/"which" confusion.
32780 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
32782 * system.h: Poison SMALL_REGISTER_CLASSES
32783 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
32784 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
32786 2012-02-16 Jakub Jelinek <jakub@redhat.com>
32788 PR tree-optimization/52285
32789 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
32790 when deciding if a call is a tail call or tail recursion.
32792 2012-02-16 Kai Tietz <ktietz@redhat.com>
32794 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
32795 interger-constant displacement for UNSPEC_PCREL.
32797 2012-02-16 Jakub Jelinek <jakub@redhat.com>
32799 PR rtl-optimization/52208
32800 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
32801 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
32803 PR tree-optimization/52255
32804 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
32805 loop->header has virtual PHI, but exit_e->dest doesn't, add
32806 virtual PHI to exit_e->dest and adjust all uses after the loop.
32809 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
32810 children with clone_tree_hash, not after it.
32812 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
32814 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
32815 extended identifiers.
32817 2012-02-16 Jakub Jelinek <jakub@redhat.com>
32819 PR middle-end/51929
32820 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
32821 a same_body_alias, also test whether e->callee isn't a former
32822 or current clone of the decl this is a same body alias of.
32824 PR translation/52264
32825 * cgraphunit.c (verify_cgraph_node): Fix a typo.
32827 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
32829 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
32831 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32834 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
32835 force_reg instead of copy_to_reg for better optimization. Force
32836 non-register or memory operands into a register.
32838 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
32840 * extend.texi: Reserve upper bits of memory model for future use.
32842 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
32843 Anatoly Sokolov <aesok@post.ru>
32844 Eric Weddington <eric.weddington@atmel.com>
32847 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
32848 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
32849 Rewrite initializers for .macro.
32850 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
32851 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
32852 atxmega32d4, atxmega32x1.
32853 avrxmega4: atxmega64a3, atxmega64d3.
32854 avrxmega5: atxmega64a1, atxmega64a1u.
32855 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
32856 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
32857 avrxmega7: atxmega128a1, atxmega128a1u.
32858 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
32859 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
32860 (struct base_arch_s): Rename reserved to xmega_p.
32861 Rename reserved2 to have_rampd.
32862 (AVR_XMEGA): New define.
32863 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
32864 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
32865 * config/avr/predicates.md (io_address_operand): Take into
32866 account SFR offset.
32867 (low_io_address_operand): Ditto.
32868 (high_io_address_operand): Ditto.
32869 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
32870 (enabled, movhi_sp_r): Use them.
32871 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
32872 cpp_define_formatted to built-in define __AVR_ARCH__.
32873 (__AVR_XMEGA__): New built-in define.
32874 (__AVR_HAVE_RAMPD__): New built-in define.
32875 (__AVR_HAVE_RAMPX__): New built-in define.
32876 (__AVR_HAVE_RAMPY__): New built-in define.
32877 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
32879 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
32880 (avr_option_override): Initialize them.
32881 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
32882 (avr_init_expanders): Initialize them. No more block several calls.
32883 (emit_push_sfr): New static function.
32884 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
32886 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
32887 (avr_print_operand): Print addreeses as symbols for
32888 RAMPX, RAMPY, RAMPD, CCP.
32889 (output_movhi): Handle AVR_XMEGA when writing to SP.
32890 (avr_out_movhi_mr_r_xmega): New static function.
32891 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
32892 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
32893 __RAMPD__, __CCP__ as needed.
32895 * config/avr/multilib.h: Regenerate.
32896 * config/avr/t-multilib: Regenerate.
32897 * config/avr/avr-tables.opt: Regenerate.
32899 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
32901 PR tree-optimization/50561
32902 * graphite-flattening.c (lst_project_loop): Do not
32903 remove old scattering dimensions after flattening.
32904 (lst_do_flatten): Likewise.
32906 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
32908 * doc/extend.texi (AVR Built-in Functions): Remove doc for
32909 __builtin_avr_map8, __builtin_avr_map16.
32910 Document __builtin_avr_insert_bits.
32912 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
32913 (insert_bits): New insn.
32914 (adjust_len.map_bits): Rename to insert_bits.
32915 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
32916 * avr-protos.h (avr_out_map_bits): Remove.
32917 (avr_out_insert_bits, avr_has_nibble_0xf): New.
32918 * config/avr/constraints.md (Cxf,C0f): New.
32919 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
32920 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
32921 New built-in define __BUILTIN_AVR_INSERT_BITS.
32922 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
32923 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
32924 (avr_move_bits): Rewrite.
32925 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
32927 (avr_map_op_t): New typedef.
32928 (avr_map_op): New static variable.
32929 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
32930 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
32931 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
32932 (bdesc_3arg, avr_expand_triop_builtin): New.
32933 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
32934 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
32935 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
32936 (avr_map_equal_p, avr_map_sig_p): Remove.
32937 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
32938 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
32939 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
32940 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
32941 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
32942 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
32944 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
32946 * config/c6x/c6x.md (reserve_cycles): New attribute.
32947 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
32948 don't reserve functional units after the branch occurs.
32950 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
32952 PR middle-end/52142
32953 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
32954 functions into non-tm_pure functions.
32956 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
32959 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
32960 (iterative_hash_canonical_type): Likewise.
32961 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
32964 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
32966 * haifa-sched.c (prune_ready_list): Ensure that if there is a
32967 sched-group insn, it either remains alone or the entire list is pruned.
32969 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
32971 * doc/install.texi (Prerequisites): Fix grammar.
32972 (Configuration): Likewise.
32974 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
32976 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
32977 MPC as part of GCC before describing configuring with --with-gmp etc.
32978 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
32979 sources are present.
32981 2012-02-14 Jakub Jelinek <jakub@redhat.com>
32984 * dwarf2out.c (clone_tree_hash): New function.
32985 (copy_decls_walk): Use it instead of clone_tree.
32987 2012-02-14 Richard Guenther <rguenther@suse.de>
32989 PR tree-optimization/52244
32990 PR tree-optimization/51528
32991 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
32992 replacements for integral types.
32994 2012-02-14 Walter Lee <walt@tilera.com>
32996 * config.gcc: Handle tilegx and tilepro.
32997 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
32998 tilegx and tilepro.
32999 Add HAVE_AS_TLS check for tilegx and tilepro.
33000 * configure: Regenerate.
33001 * doc/contrib.texi: Add Mat Hostetter and self.
33002 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
33003 Document instruction intrinsics and network accessing intrinsics.
33004 (TILEPro Built-in Functions): New node. Document instruction
33005 intrinsics and network accessing intrinsics.
33006 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
33007 (Specific, tilepro-*-linux*): Likewise.
33008 * doc/invoke.texi (TILE-Gx Options): New section.
33009 (TILEPro Options): New section.
33010 * doc/md.texi (TILE-Gx): New section.
33011 (TILEPro): New section.
33012 * common/config/tilegx/tilegx-common.c: New file.
33013 * common/config/tilepro/tilepro-common.c: New file.
33014 * config/tilegx/constraints.md: New file.
33015 * config/tilegx/linux.h: New file.
33016 * config/tilegx/mul-tables.c: New file.
33017 * config/tilegx/predicates.md: New file.
33018 * config/tilegx/sync.md: New file.
33019 * config/tilegx/t-tilegx: New file.
33020 * config/tilegx/tilegx-builtins.h: New file.
33021 * config/tilegx/tilegx-c.c: New file.
33022 * config/tilegx/tilegx-generic.md: New file.
33023 * config/tilegx/tilegx-modes.def: New file.
33024 * config/tilegx/tilegx-multiply.h: New file.
33025 * config/tilegx/tilegx-protos.h: New file.
33026 * config/tilegx/tilegx.c: New file.
33027 * config/tilegx/tilegx.h: New file.
33028 * config/tilegx/tilegx.md: New file.
33029 * config/tilegx/tilegx.opt: New file.
33030 * config/tilepro/constraints.md: New file.
33031 * config/tilepro/gen-mul-tables.cc: New file.
33032 * config/tilepro/linux.h: New file.
33033 * config/tilepro/mul-tables.c: New file.
33034 * config/tilepro/predicates.md: New file.
33035 * config/tilepro/t-tilepro: New file.
33036 * config/tilepro/tilepro-builtins.h: New file.
33037 * config/tilepro/tilepro-c.c: New file.
33038 * config/tilepro/tilepro-generic.md: New file.
33039 * config/tilepro/tilepro-modes.def: New file.
33040 * config/tilepro/tilepro-multiply.h: New file.
33041 * config/tilepro/tilepro-protos.h: New file.
33042 * config/tilepro/tilepro.c: New file.
33043 * config/tilepro/tilepro.h: New file.
33044 * config/tilepro/tilepro.md: New file.
33045 * config/tilepro/tilepro.opt: New file.
33047 2012-02-14 Jakub Jelinek <jakub@redhat.com>
33049 PR tree-optimization/52210
33050 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
33051 vect_model_simple_cost with two entry vect_def_type array instead
33052 of an address of dt.
33054 2012-02-14 Richard Guenther <rguenther@suse.de>
33057 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
33058 Do not stream DECL_QUALIFIER.
33059 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
33060 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
33061 (find_decls_types_r): Do not walk DECL_QUALIFIER.
33063 2012-02-14 Jakub Jelinek <jakub@redhat.com>
33066 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
33069 2012-02-13 Jakub Jelinek <jakub@redhat.com>
33072 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
33073 * cselib.c (cselib_subst_to_values_from_insn): New function.
33074 * sched-deps.c (add_insn_mem_dependence,
33075 sched_analyze_1, sched_analyze_2): Use it.
33077 2012-02-13 Jan Hubicka <jh@suse.cz>
33079 PR middle-end/52214
33080 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
33082 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
33084 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
33085 (GTM_SELF_SPECS): Define if not already defined.
33086 (driver_self_specs): Add GTM_SELF_SPECS.
33087 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
33088 (GTM_SELF_SPECS): Define.
33089 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
33090 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
33092 2012-02-13 Jakub Jelinek <jakub@redhat.com>
33094 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
33097 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
33099 PR middle-end/52230
33100 * omp-low.c (expand_omp_for): If a static schedule without chunk size
33101 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
33103 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
33106 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
33108 2012-02-13 Richard Guenther <rguenther@suse.de>
33110 PR translation/52211
33111 * passes.c (enable_disable_pass): Fix typo.
33113 2012-02-13 Jakub Jelinek <jakub@redhat.com>
33115 PR middle-end/52209
33116 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
33117 XOR for reduce_bit_field if type is unsigned.
33119 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
33121 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
33122 disallow changes from SFmode to mode with different size in FP regs.
33124 2012-02-12 Robert Millan <rmh@gnu.org>
33125 Gerald Pfeifer <gerald@pfeifer.com>
33127 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
33130 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
33132 PR rtl-optimization/52175
33133 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
33134 to frame-related instructions.
33136 2012-02-10 Jason Merrill <jason@redhat.com>
33139 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
33140 (demangle_new_symbols): Fill it.
33141 (scan_linker_output): Walk it.
33142 (start_tweaking): Split out from scan_linker_output.
33143 (maybe_tweak): Update sym->chosen.
33144 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
33146 2012-02-11 Jakub Jelinek <jakub@redhat.com>
33149 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
33151 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
33153 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
33154 having the same mode as previous compare.
33156 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
33158 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
33159 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
33160 (nonlocal_goto_internal): Likewise.
33161 (nonlocal_goto): Emit a use and an indirect jump directly.
33163 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
33166 * doc/extend.texi : Update comments for __atomic_compare_exchange and
33167 __atomic_{is,always}_lock_free.
33169 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
33172 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
33173 negative constant address for TARGET_X32.
33175 2012-02-10 Richard Henderson <rth@redhat.com>
33177 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
33178 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
33179 for GIMPLE_TRANSACTION. Tidy if's into a switch.
33181 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33182 Ira Rosen <irar@il.ibm.com>
33184 PR tree-optimization/50031
33185 * targhooks.c (default_builtin_vectorization_cost): Handle
33186 vec_promote_demote.
33187 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
33188 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
33189 all types of reduction and pattern statements.
33190 (vect_estimate_min_profitable_iters): Likewise.
33191 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
33192 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
33193 for explicit realigns.
33194 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
33195 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
33196 vec_promote_demote.
33197 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
33198 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
33199 vec_perm for VSX and handle vec_promote_demote.
33201 2012-02-10 Jakub Jelinek <jakub@redhat.com>
33203 PR middle-end/52177
33204 * builtins.c (fold_builtin_atomic_always_lock_free,
33205 expand_builtin_atomic_always_lock_free,
33206 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
33207 Return and/or test boolean_true_node/boolean_false_node instead of
33208 integer_one_node/integer_zero_node.
33210 2012-02-10 Jan Hubicka <jh@suse.cz>
33212 PR middle-end/48600
33213 * predict.c (predict_paths_for_bb): Prevent looping.
33214 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
33216 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
33218 * config/arm/arm.c (output_move_double): In one case properly
33219 count number of instructions that will be emitted.
33221 2012-02-10 Richard Guenther <rguenther@suse.de>
33223 PR translation/52193
33224 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
33226 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
33228 PR middle-end/52140
33229 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
33231 2012-02-09 Jakub Jelinek <jakub@redhat.com>
33234 * var-tracking.c (emit_note_insn_var_location): If
33235 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
33236 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
33237 non-NOTE_DURING_CALL_P insn.
33239 2012-02-09 Bin Cheng <bin.cheng@arm.com>
33241 PR middle-end/51867
33242 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
33244 2012-02-08 Magnus Granberg <zorry@gentoo.org>
33247 * gcc.c (switch_matches) Support switches with separated form,
33250 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
33252 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
33254 (RAMPZ_ADDR): Ditto.
33255 * config/avr/avr.c (avr_addr_t): New typedef.
33256 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
33257 (avr_init_expanders): Initialize it.
33258 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
33260 (expand_epilogue): Ditto.
33261 (avr_print_operand): Ditto.
33262 (avr_file_start): Ditto.
33263 (avr_emit_movmemhi): Ditto.
33265 2012-02-08 Richard Guenther <rguenther@suse.de>
33267 PR tree-optimization/46886
33268 * tree-flow.h (do_while_loop_p): Declare.
33269 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
33270 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
33272 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
33274 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
33275 always succeed for integers larger than a native word.
33277 2012-02-08 Richard Guenther <rguenther@suse.de>
33279 PR rtl-optimization/52170
33280 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
33281 properly handle integer vector modes.
33283 2012-02-08 Jakub Jelinek <jakub@redhat.com>
33285 PR gcov-profile/52150
33286 * coverage.c: Include target.h.
33287 (build_var): Call targetm.strip_name_encoding on the assembler name.
33288 Change one _ into . or $ if the target allows it.
33289 * Makefile.in (coverage.o): Depend on $(TARGET_H).
33291 PR rtl-optimization/52139
33292 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
33293 is a BARRIER after emit_insn_after_noloc, move BB_END
33294 to the last non-BARRIER insn before it.
33296 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
33298 PR middle-end/24306
33299 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
33300 (mips_gimplify_va_arg_expr): Call it instead of
33301 std_gimplify_va_arg_expr.
33303 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
33305 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
33306 message for -mno-pointers-to-nested-function.
33308 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
33310 PR middle-end/51994
33311 * expr.c (get_inner_reference): If there is an offset, add a negative
33312 bit position to it (if any).
33314 2012-02-07 Jakub Jelinek <jakub@redhat.com>
33316 PR rtl-optimization/52060
33317 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
33318 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
33319 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
33320 and/or i0src_copy2 when needed.
33322 2012-02-07 Jakub Jelinek <jakub@redhat.com>
33324 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
33325 or LTOPLUGINSONAME if have_c.
33327 * config/freebsd-spec.h: Add comment about what macros can be defined
33329 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
33330 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
33333 2012-02-07 Richard Guenther <rguenther@suse.de>
33335 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
33336 newline in -alias dumps.
33338 2012-02-07 Kai Tietz <ktietz@redhat.com>
33339 Dave Korn <dave.korn.cygwin@gmail.com>
33342 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
33343 Take care that typinfo gets dllexport-attribute.
33345 2012-02-07 Jakub Jelinek <jakub@redhat.com>
33347 PR middle-end/52074
33348 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
33349 if modifier < EXPAND_SUM call force_operand on the result.
33351 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
33353 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
33354 adding __forwarder_dst__ prefix if a forwarder_section attribute is
33356 (epiphany_function_type): Replace types for specific interrupts with
33357 EPIPHANY_FUNCTION_INTERRUPT.
33358 (EPIPHANY_INTERRUPT_P): Update.
33359 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
33360 New static function.
33361 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
33362 <disinterrupt>: Affects type identity.
33363 (epiphany_handle_interrupt_attribute): Handle variable number of
33365 (epiphany_compute_function_type): Update for new
33366 epiphany_function_type definition.
33367 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
33368 handlers with a longcall forwarder.
33369 (epiphany_start_function): Handle multiple interrupt arguments and/or
33370 forwarder_section attribute.
33372 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
33375 2012-02-07 Alan Modra <amodra@gmail.com>
33378 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
33381 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33383 PR tree-optimization/50969
33384 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
33385 use vec_perm rather than vector_stmt.
33386 (vect_model_load_cost): Likewise.
33387 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
33388 vec_perm to be the same as other vector statements.
33389 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
33390 cost of vec_perm for TARGET_VSX.
33392 2012-02-06 Richard Guenther <rguenther@suse.de>
33394 PR tree-optimization/52115
33395 * tree-sra.c (access_has_replacements_p): New function.
33396 (sra_modify_assign): Use it to decide whether a use is uninitialized.
33398 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
33400 PR middle-end/52047
33401 * trans-mem.c (expand_call_tm): Add an assertion.
33402 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
33405 2012-02-06 Richard Guenther <rguenther@suse.de>
33407 PR tree-optimization/50955
33408 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
33409 raise cost of expressions that replace an address with an
33410 expression based on a different pointer.
33412 2012-02-06 Jakub Jelinek <jakub@redhat.com>
33415 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
33416 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
33418 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
33421 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
33422 -Weffc++ and specify guidelines come from second edition.
33424 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
33426 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
33427 (sibcall_value_multiple_internal, call_split, call_internal_direct)
33428 (call_direct_split, call_value_split, call_value_internal_direct)
33429 (call_value_direct_split, call_value_multiple_split): Use jal and
33430 jal_macro attributes.
33432 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
33434 * reload1.c (reload_regs_reach_end_p): Replace with...
33435 (reload_reg_rtx_reaches_end_p): ...this function.
33436 (new_spill_reg_store): Update commentary.
33437 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
33438 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
33439 before setting new_spill_reg_store.
33440 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
33441 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
33442 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
33443 for non-spill reload registers.
33445 2012-02-05 Ira Rosen <irar@il.ibm.com>
33447 PR tree-optimization/52091
33448 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
33449 (vect_is_simple_use_1): Likewise.
33450 * tree-vect-loop.c (vectorizable_reduction): Update calls
33451 to vect_is_simple_use_1 and vect_is_simple_use.
33452 (vectorizable_live_operation): Likewise.
33453 * tree-vect-patterns.c (widened_name_p,
33454 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
33455 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
33456 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
33457 vectorizable_shift,vectorizable_operation, vectorizable_store,
33458 vectorizable_load): Likewise.
33459 (vect_is_simple_cond): Add an argument, pass it to
33460 vect_is_simple_use_1.
33461 (vectorizable_condition): Update calls to vect_is_simple_cond,
33462 vect_is_simple_use.
33463 (vect_is_simple_use): Add an argument, the statement in which
33464 OPERAND is used. Check that if OPERAND's def stmt is a double
33465 reduction phi node, the use is a phi node too.
33466 (vect_is_simple_use_1): Add an argument, pass it to
33467 vect_is_simple_use.
33468 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
33469 to vect_is_simple_use.
33471 2012-02-04 Jakub Jelinek <jakub@redhat.com>
33473 PR rtl-optimization/52095
33474 * modulo-sched.c (dump_insn_locator): New function.
33475 (loop_canon_p, sms_schedule): Use it.
33477 PR rtl-optimization/52113
33478 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
33479 even for decomposable shift/zext insns.
33481 2012-02-03 Jakub Jelinek <jakub@redhat.com>
33482 Zdenek Dvorak <ook@ucw.cz>
33484 PR rtl-optimization/52092
33485 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
33486 on get_iv_value result.
33488 2012-02-02 Andrew Pinski <apinski@cavium.com>
33490 PR middle-end/47982
33491 PR middle-end/43967
33492 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
33494 2012-02-02 Jakub Jelinek <jakub@redhat.com>
33496 PR middle-end/48071
33497 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
33499 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
33501 PR rtl-optimization/49800
33502 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
33503 (sched_finish): Call regstat_free_n_sets_and_refs.
33505 2012-02-02 Jia Liu <proljc@gmail.com>
33507 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
33510 2012-02-02 Jan Hubicka <jh@suse.cz>
33511 Tom de Vries <tom@codesourcery.com>
33513 PR middle-end/51998
33514 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
33515 * varpool.c (varpool_analyze_pending_decls): Likewise.
33517 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
33518 Jayant R Sonar <jayant.sonar@kpitcummins.com>
33520 * config.gcc: Add cr16-* support.
33522 * doc/extend.texi: Document cr16 extensions.
33523 * doc/install.texi: Document cr16 install.
33524 * doc/invoke.texi: Document cr16 options.
33525 * doc/md.texi: Document cr16 constraints.
33527 * common/config/cr16/cr16-common.c: New file.
33528 * config/cr16/cr16.c: New file.
33529 * config/cr16/cr16.h: New file.
33530 * config/cr16/cr16.md: New file.
33531 * config/cr16/cr16.opt: New file.
33532 * config/cr16/cr16-protos.h: New file.
33533 * config/cr16/predicates.md: New file.
33534 * config/cr16/constraints.md: New file.
33535 * config/cr16/t-cr16: New file.
33537 2012-02-02 Jakub Jelinek <jakub@redhat.com>
33540 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
33541 that operands[2] is either immediate, or q_regs_operand.
33543 PR tree-optimization/52073
33544 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
33545 a pattern stmt for pattern uses, ignore uses outside of the loop.
33547 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
33549 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
33550 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
33551 (OUT_AS1, OUT_AS2): Remove.
33553 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
33555 PR rtl-optimization/51374
33556 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
33557 to cross other volatile_refs_p insns.
33559 2012-02-01 Richard Guenther <rguenther@suse.de>
33561 * doc/invoke.texi (fno-inline): Clarify documentation.
33562 (finline-small-functions): Likewise.
33563 (finline-functions): Likewise.
33564 * common.opt (finline): Adjust comment and documentation.
33565 (finline-small-functions): Clarify documentation.
33566 (finline-functions): Likewise.
33567 (finline-functions-called-once): Likewise.
33569 2012-02-01 Tristan Gingold <gingold@adacore.com>
33571 * c-typeck.c (composite_type): Keep mode for pointers.
33573 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
33575 * function.h (regno_reg_rtx): Adjust comment.
33576 * reginfo.c (init_reg_modes_target): Only use the previous mode
33577 if it fits within one register. Remove MIPS comment.
33579 2012-01-31 Jakub Jelinek <jakub@redhat.com>
33582 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
33584 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33586 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
33587 to srak instruction.
33589 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
33591 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
33593 2012-01-31 Jakub Jelinek <jakub@redhat.com>
33598 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
33600 2012-01-31 Richard Guenther <rguenther@suse.de>
33602 PR tree-optimization/51528
33603 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
33606 2012-01-31 Jakub Jelinek <jakub@redhat.com>
33611 * ree.c (add_removable_extension): Change def_map argument
33612 to unsigned *, store in def_map 1 + offset into *insn_list vector
33613 instead of pointers into the vector.
33614 (find_removable_extensions): Adjust caller.
33616 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
33618 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
33619 Transform all "* quoted-c-code" to { c-code }.
33620 Remove redundant test for "optimize" in combine patterns.
33621 Move (include "avr-dimode.md") to end of file.
33623 2012-01-30 Bin Cheng <bin.cheng@arm.com>
33626 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
33627 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
33629 2012-01-30 Richard Guenther <rguenther@suse.de>
33631 PR tree-optimization/52028
33632 * tree-loop-distribution.c (ldist_gen): Properly update
33635 2012-01-30 Jakub Jelinek <jakub@redhat.com>
33638 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
33639 set_cur_line_info_table if not emitting debug info.
33641 PR tree-optimization/52046
33642 * tree-vect-patterns.c (check_bool_pattern): Give up if
33643 a comparison could throw.
33646 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
33648 2012-01-30 Richard Guenther <rguenther@suse.de>
33650 PR tree-optimization/52045
33651 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
33652 SSA form if cfgcleanup did anything.
33654 2012-01-30 Richard Guenther <rguenther@suse.de>
33656 PR tree-optimization/52045
33657 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
33658 before computing final todo.
33660 2012-01-30 Richard Guenther <rguenther@suse.de>
33662 PR tree-optimization/51528
33663 * tree-sra.c (sra_modify_assign): Re-factor in preparation
33666 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
33668 * df-problems.c (df_kill_notes): Check that the use refers
33669 to the note under examination.
33671 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
33674 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
33675 parameter and use short-lived pseudos.
33676 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
33677 (sparc_expand_vector_init): Const-ify local variables and adjust
33678 calls to above functions.
33680 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
33682 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
33684 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
33686 * doc/invoke.texi: Make usage of "compile time" and
33687 "run time"/"runtime" consistent throughout the file.
33689 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
33691 * config/alpha/alpha.c (alpha_option_override): Default to
33692 full IEEE compliance mode for Go language.
33694 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
33696 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
33697 (LINK_SSP_SPEC): Define.
33699 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33702 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
33705 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
33707 * doc/invoke.texi: Correct hyphenation of "floating point",
33708 "double precision", and related terminology throughout the file.
33710 2012-01-28 Jakub Jelinek <jakub@redhat.com>
33713 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
33714 arm_general_register_operand predicate for operand 2 instead of
33717 2012-01-27 Ian Lance Taylor <iant@google.com>
33720 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
33721 * builtins.c (expand_builtin_init_trampoline): Add onstack
33722 parameter. Change caller.
33723 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
33724 * tree.c (build_common_builtin_nodes): Declare
33725 __builtin_init_heap_trampoline.
33727 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
33729 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
33730 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
33731 * config/avr/avr.c: Ditto.
33732 (avr_regnames): Remove because unused.
33733 * config/avr/avr.md (*cpse.ne): New peephole.
33734 (*cpse.eq): New peephole from former cpse peepholes.
33736 2012-01-27 Michael Eager <eager@eagercon.com>
33738 * config/microblaze.c (microblaze_emit_compare): Correct
33739 test after pcmp instruction.
33741 2012-01-27 Richard Guenther <rguenther@suse.de>
33743 PR tree-optimization/52020
33744 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
33746 2012-01-27 Richard Guenther <rguenther@suse.de>
33748 * ipa-pure-const.c (check_stmt): Clobbers do not make a
33749 function non-const/pure.
33751 2012-01-27 Richard Guenther <rguenther@suse.de>
33753 PR tree-optimization/50444
33754 * tree-sra.c (build_ref_for_offset): Properly adjust the
33755 MEM_REF type for unaligned accesses.
33757 2012-01-27 Richard Guenther <rguenther@suse.de>
33759 PR tree-optimization/50444
33760 * expr.c (mem_ref_refers_to_non_mem_p): New function.
33761 (expand_assignment): Use it. Properly handle misaligned
33762 bases when expanding stores to component references.
33763 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
33764 refactor that case.
33766 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
33768 PR middle-end/51389
33769 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
33770 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
33771 * tree-data-ref.c (find_data_references_in_loop): Make static.
33772 (compute_all_dependences): Change return type to bool. Bail out
33773 for too many datarefs in a loop. Move the hunk resetting the data
33774 dependences vector from ...
33775 (compute_data_dependences_for_loop): ... here. Account for
33776 compute_all_dependences returning false.
33777 (compute_data_dependences_for_bb): Likewise.
33778 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
33779 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
33781 2012-01-27 Richard Guenther <rguenther@suse.de>
33783 PR middle-end/51959
33784 * expr.c (store_field): Use the alias-set of the scratch memory
33787 2012-01-27 Tom de Vries <tom@codesourcery.com>
33789 PR tree-optimization/51990
33790 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
33792 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
33794 2012-01-27 Jakub Jelinek <jakub@redhat.com>
33797 * var-tracking.c (reverse_op): Don't add any reverse operation
33798 if V already has any constant locations.
33800 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
33802 * doc/invoke.texi: Correct usage of "command line" (noun)
33803 vs "command-line" (adjective) throughout.
33805 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
33807 * doc/invoke.texi (Language Independent Options): Move
33808 -Wcoverage-mismatch blurb from here....
33809 (Warning Options): ...to here.
33811 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
33813 * config/rs6000/rs6000.c (rs6000_option_override_internal):
33814 Set rs6000_always_hint to false for 476.
33816 2012-01-27 Matthias Klose <doko@ubuntu.com>
33818 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
33820 * incpath.c (add_standard_paths): Likewise.
33822 2012-01-27 Richard Henderson <rth@redhat.com>
33824 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
33825 * config/m68k/sync.md (atomic_test_and_set): Rename from
33826 sync_test_and_setqi and adjust the operands.
33827 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
33828 and unconditionally enable.
33830 2012-01-27 Richard Henderson <rth@redhat.com>
33832 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
33833 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
33834 (ldstub): Rename from ldstubqi.
33835 (ldstub<I24MODE>): Remove.
33837 2012-01-27 Richard Henderson <rth@redhat.com>
33839 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
33840 * c-cppbuiltin.c (cpp_atomic_builtins): Define
33841 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
33842 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
33843 * doc/tm.texi: Rebuild.
33845 2012-01-27 Richard Henderson <rth@redhat.com>
33847 * optabs.c (gen_atomic_test_and_set): Remove default.
33848 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
33850 2012-01-26 Jakub Jelinek <jakub@redhat.com>
33852 PR rtl-optimization/51978
33853 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
33854 (combine_reaching_defs): Likewise.
33855 (struct re_info): Remove.
33856 (add_removable_extension): Remove x and data arguments,
33857 add insn, insn_list and def_map. Use the arguments directly
33858 instead of using struct re_info.
33859 (find_removable_extensions): Don't call add_removable_extension
33860 through note_stores, instead just call it with single_set
33861 result if non-NULL.
33862 (find_and_remove_re): Pass curr_cand->expr instead of
33863 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
33865 2012-01-26 Michael Matz <matz@suse.de>
33867 PR tree-optimization/46590
33868 * cfgexpand.c: Revert last change (r183305).
33869 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
33871 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
33872 checking for emptiness.
33874 2012-01-26 Jakub Jelinek <jakub@redhat.com>
33876 PR middle-end/51895
33877 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
33878 non-addressable non-BLKmode base correctly.
33880 2012-01-26 Michael Matz <matz@suse.de>
33882 PR tree-optimization/48794
33883 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
33884 regions referenced from RESX/EH_DISPATCH.
33886 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33888 * config/s390/s390.h: Make BRANCH_COST an option.
33889 * config/s390/s390.opt: New option -mbranch-cost.
33891 2012-01-26 Richard Henderson <rth@redhat.com>
33893 Revert 2012-01-24 change:
33894 * trans-mem.c (requires_barrier): Do not instrument thread local
33895 variables and emit save/restore for them.
33897 2012-01-25 Jakub Jelinek <jakub@redhat.com>
33899 PR middle-end/51986
33900 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
33903 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33905 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
33908 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
33911 Rename __pgm to __flash.
33912 Rename __pgm1 to __flash1.
33913 Rename __pgm2 to __flash2.
33914 Rename __pgm3 to __flash3.
33915 Rename __pgm4 to __flash4.
33916 Rename __pgm5 to __flash5.
33917 Rename __pgmx to __memx.
33918 * doc/extend.texi (AVR Named Address Spaces)
33919 Rename address space names as indicated above.
33920 * config/avr/avr.c (avr_addrspace): Ditto.
33922 * config/avr/avr-protos.h
33923 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
33924 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
33925 * config/avr/predicates.md: Ditto.
33926 * config/avr/avr.c Ditto, and
33927 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
33928 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
33930 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
33931 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
33932 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
33933 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
33934 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
33935 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
33936 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
33937 * config/avr/avr.c: Ditto.
33938 * config/avr/avr.md: Ditto.
33940 2012-01-25 Jason Merrill <jason@redhat.com>
33943 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
33945 2012-01-25 Jakub Jelinek <jakub@redhat.com>
33947 PR tree-optimization/51987
33948 * tree-data-ref.c (get_references_in_stmt): Handle references in
33949 non-volatile GIMPLE_ASM.
33951 2012-01-25 Richard Guenther <rguenther@suse.de>
33953 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
33954 bases are dereferenced.
33956 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
33958 PR rtl-optimization/48374
33959 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
33961 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
33963 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
33964 compute_data_dependences_for_loop returns false.
33965 * tree-parloops.c (loop_parallel_p): Likewise.
33967 2012-01-25 Richard Guenther <rguenther@suse.de>
33969 * tree.h (get_pointer_alignment_1): Declare.
33970 * builtins.c (get_pointer_alignment_1): New function.
33971 (get_pointer_alignment): Use it.
33973 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
33975 PR rtl-optimization/48308
33976 * combine.c (enum undo_kind): Add UNDO_LINKS.
33977 (struct undo): Add member l to other_contents and where.
33978 (do_SUBST_LINK): New.
33980 (try_combine): Handle LOG_LINKS for the dummy i1 case.
33981 (undo_all): Handle UNDO_LINKS.
33983 2012-01-25 Richard Henderson <rth@redhat.com>
33985 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
33988 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33990 * optabs.c (gen_atomic_test_and_set): Use each argument.
33992 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33994 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
33995 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
33996 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
33997 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
33998 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
33999 TARGET_PAIRED_SINGLE_FLOAT.
34001 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
34003 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
34004 (in_struct, return_val): Remove MEM documentation.
34005 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
34006 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
34007 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
34009 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
34010 * cfgexpand.c (add_alias_set_conflicts): Likewise.
34011 * expr.c (store_field): Likewise.
34012 * function.c (assign_stack_temp_for_type): Likewise.
34013 * ifcvt.c (noce_try_cmove_arith): Likewise.
34014 * reload1.c (reload): Likewise.
34015 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
34016 (alpha_set_memflags): Likewise.
34017 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
34019 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
34021 * rtl.h (true_dependence, canon_true_dependence): Remove varies
34023 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
34024 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
34025 (true_dependence_1, true_dependence, canon_true_dependence): Remove
34027 * cselib.c (cselib_rtx_varies_p): Delete.
34028 (cselib_invalidate_mem): Update call to canon_true_dependence.
34029 * dse.c (record_store, check_mem_read_rtx): Likewise.
34030 (scan_reads_nospill): Likewise.
34031 * cse.c (check_dependence): Likewise.
34032 (cse_rtx_varies_p): Delete.
34033 * expr.c (safe_from_p): Update call to true_dependence.
34034 * ira.c (validate_equiv_mem_from_store): Likewise.
34035 (memref_referenced_p): Likewise.
34036 * postreload-gcse.c (find_mem_conflicts): Likewise.
34037 * sched-deps.c (sched_analyze_2): Likewise.
34038 * store-motion.c (load_kills_store): Likewise.
34039 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
34040 * gcse.c (mems_conflict_for_gcse_p): Likewise.
34041 (compute_transp): Update call to canon_true_dependence.
34043 2012-01-25 Richard Henderson <rth@redhat.com>
34045 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
34046 (maybe_emit_atomic_test_and_set): New.
34047 (expand_sync_lock_test_and_set): Use it.
34048 (expand_atomic_test_and_set): Likewise.
34049 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
34050 the implementation; clarify implementation defined details.
34051 * doc/md.texi (atomic_test_and_set): Document.
34053 2012-01-25 Richard Henderson <rth@redhat.com>
34055 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
34057 2012-01-25 Richard Henderson <rth@redhat.com>
34060 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
34061 to effect no-op split.
34063 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
34066 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
34067 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
34068 (BT_FN_VOID_PTR_INT_SIZE): New.
34069 (BT_FN_UINT_UINT_VAR): Remove.
34070 (BT_FN_UINT32_UINT32_VAR): New.
34071 (BT_FN_DOUBLE_VPTR): Remove.
34072 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
34074 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
34075 (_ITM_changeTransactionMode): Same.
34076 (_ITM_memmoveRtWt): Change return type to void.
34077 (_ITM_memcpyRtWt): Same.
34078 (_ITM_memsetW): Same.
34079 (_ITM_RaRD): Change types to double.
34084 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
34086 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
34087 Patrick Marlier <patrick.marlier@gmail.com>
34089 * trans-mem.c (requires_barrier): Do not instrument thread local
34090 variables and emit save/restore for them.
34092 2012-01-24 Jason Merrill <jason@redhat.com>
34095 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
34096 output static aliases.
34098 2012-01-24 Jakub Jelinek <jakub@redhat.com>
34101 * common.opt (-pie, -shared, pie, shared): Change from Common to
34103 * gcc.c (display_help): Display help for -pie and -shared.
34105 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
34108 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
34109 Remove note on size/offset limitation.
34110 (AVR Variable Attributes): Add example how to read data located
34111 with progmem. Refer to named address spaces.
34112 * doc/invoke.texi (AVR Options): Fix typo.
34114 2012-01-24 Richard Guenther <rguenther@suse.de>
34116 Forward-port to trunk
34117 2010-09-21 Jakub Jelinek <jakub@redhat.com>
34119 PR middle-end/45678
34120 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
34121 op0 isn't sufficiently aligned and there is movmisalignM
34122 insn for mode, use it to load op0 into a temporary register.
34124 2012-01-24 Jakub Jelinek <jakub@redhat.com>
34127 * target.def (const_not_ok_for_debug_p): New hook.
34128 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
34130 * doc/tm.texi: Regenerated.
34131 * dwarf2out.c (const_ok_for_output_1): If
34132 targetm.const_not_ok_for_debug_p returns true, fail.
34133 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
34135 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
34137 2012-01-23 Kai Tietz <ktietz@redhat.com>
34140 * config/i386/predicates.md (symbolic_operand): Allow
34141 UNSPEC_PCREL as PIC expression for lea.
34142 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
34143 * config/i386/i386.c (ix86_delegitimize_address): Handle
34144 UNSPEC_PCREL for none-MEM, too.
34146 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
34148 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
34149 (ipa_tm_create_version_alias): Same.
34151 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
34154 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
34155 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
34157 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
34158 Patrick Marlier <patrick.marlier@gmail.com>
34159 Iain Sandoe <developer@sandoe-acoustics.co.uk>
34162 * lto-wrapper.c (run_gcc): Pass the LTO section name to
34163 simple_object_start_read.
34165 2012-01-23 Richard Guenther <rguenther@suse.de>
34168 PR tree-optimization/51895
34169 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
34170 parameter decomposition into BLKmode components.
34172 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
34174 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
34175 fake variables for restrict-qualified pointers whose pointed-to type
34176 contains a placeholder.
34178 2012-01-23 Richard Guenther <rguenther@suse.de>
34180 PR tree-optimization/51949
34181 * ipa-split.c (execute_split_functions): Do not split malloc functions.
34183 2012-01-23 Jakub Jelinek <jakub@redhat.com>
34185 PR rtl-optimization/51933
34186 * ree.c (transform_ifelse): Return true right away if dstreg is
34187 already wider or equal to cand->mode.
34188 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
34189 (make_defs_and_copies_lists): Remove defs_list and copies_list
34190 arguments, add state argument, just truncate state->work_list
34191 instead of always allocating and freeing the vector. Assert that
34192 get_defs succeeds instead of returning 2. Changed return type to bool.
34193 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
34194 have ext_src_mode, see if it has been modified already with the
34195 right kind of extension and has been extended before from the
34196 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
34197 just return true. Remember the original mode in state->modified array.
34198 (combine_reaching_defs): Add state argument. Don't allocate and
34199 free here def_list, copied_list and vec vectors, instead just
34200 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
34201 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
34202 Add state variable, clear vectors in it, initialize state.modified
34203 if needed. Free all the vectors at the end and state.modified too.
34204 Don't skip a candidate if the extension expression has been modified.
34206 2012-01-22 Douglas B Rupp <rupp@gnat.com>
34209 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
34210 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
34211 (extra_options) interix.opt -> i386/interix.opt"
34212 (extra_objs):Add winnt-stubs.o
34213 * configure.ac: Add interix to target_os .comm on PE check.
34214 * configure: Regenerate.
34215 * config/interix3.h: Delete and move bits to..
34216 * config/interix.h: Delete and move bits to..
34217 * config/i386/i386-interix3.h: Delete and move bits to..
34218 * config/i386/i386-interix.h: ..here.
34219 (TARGET_CPU_DEFAULT): Remove redefinition.
34220 (TARGET_ASM_CONSTRUCTOR): Undefine.
34221 (SUBTARGET_SWITCHES): Define for ms-bitfields.
34222 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
34223 (PTRDIFF_TYPE): Define.
34224 (LONG_DOUBLE_TYPE_SIZE): Define.
34225 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
34226 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
34227 (TARGET_SECTION_TYPE_FLAGS): Define.
34228 (ASM_DECLARE_FUNCTION_NAME): Define.
34229 (ASM_OUTPUT_EXTERNAL): Define.
34230 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
34231 (ASM_OUTPUT_ALIGNED_BSS): Define.
34232 (PCC_BITFIELD_TYPE_MATTERS): Define.
34233 (USE_CONST_SECTION): Define.
34234 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
34235 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
34236 (SUPPORTS_ONE_ONLY): Remove.
34237 (I386_PE_STRIP_ENCODING): Define.
34238 * config/interix.opt: Delete and move bits to..
34239 * config/i386/interix.opt: ..here. New.
34240 (mpe-aligned-commons): Add.
34241 * config/i386/t-interix: Add copyright header.
34242 (winnt-stubs.o): Add rule.
34244 2012-01-22 Jason Merrill <jason@redhat.com>
34247 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
34248 for extra name aliases.
34250 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
34252 PR rtl-optimization/51924
34253 * ree.c (combine_set_extension): Improve debugging message.
34254 (combine_reaching_defs): Likewise.
34255 (get_defs): Rename confusingly named variable.
34256 (find_and_remove_re): Skip a candidate if the extension expression has
34259 2012-01-21 Robert Millan <rmh@gnu.org>
34260 Gerald Pfeifer <gerald@pfeifer.com>
34262 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
34263 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
34265 2012-01-20 Jakub Jelinek <jakub@redhat.com>
34267 PR tree-optimization/51914
34268 * tree-vect-stmts.c (vectorizable_conversion): For
34269 cvt_type && modifier == WIDEN, put temporary with cvt_type
34270 at the beginning of vec_dsts and set vec_dest to temporary
34273 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
34275 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
34277 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
34279 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
34280 * config/rs6000/rs6000.c: Likewise.
34282 2012-01-20 Jakub Jelinek <jakub@redhat.com>
34285 * config/arm/arm.c (arm_count_output_move_double_insns): Call
34286 output_move_double on a copy of operands array.
34288 2012-01-20 Cary Coutant <ccoutant@google.com>
34289 Dodji Seketeli <dodji@redhat.com>
34292 * dwarf2out.c (copy_declaration_context): Return ref to parent
34293 of declaration DIE, if necessary.
34294 (remove_child_or_replace_with_skeleton): Add new parameter; update
34295 caller. Place skeleton DIE under parent DIE of original declaration.
34296 Move call to copy_declaration_context to here ...
34297 (break_out_comdat_types): ... from here.
34299 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34301 PR rtl-optimization/51856
34302 * reload.c (find_reloads_subreg_address): Set the address_reloaded
34305 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
34308 * config/arm/arm.c (arm_print_operand): Correct output of alignment
34309 hints for neon loads and stores.
34311 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
34315 * doc/extend.texi (Named Address Spaces): Split into subsections.
34316 (AVR Named Address Spaces): New subsection.
34317 (M32C Named Address Spaces): New subsection.
34318 (RL78 Named Address Spaces): New subsection.
34319 (SPU Named Address Spaces): New subsection.
34320 (Variable Attributes): New anchor "AVR Variable Attributes".
34321 (AVR Variable Attributes): Rewrite and avoid wording
34322 "address space" in this context.
34323 * doc/invoke.texi (AVR Options): Rewrite and add documentation
34324 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
34325 (AVR Built-in Macros): New subsubsection therein.
34326 * doc/md.texi (AVR constraints): Remove "C04", "R".
34328 2012-01-20 Richard Guenther <rguenther@suse.de>
34330 PR tree-optimization/51903
34331 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
34332 when removing stmts.
34334 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
34337 * config/arm/arm.c (arm_load_pic_register): Use
34338 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
34339 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
34340 (arm_pic_static_addr): Likewise.
34341 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
34342 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
34343 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
34344 (pic_load_addr_unified): New.
34346 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
34349 * function.c (instantiate_virtual_regs_in_insn): Use
34350 delete_insn_and_edges when removing a wrong asm insn.
34352 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
34354 PR rtl-optimization/40761
34355 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
34356 Add new member loop_num.
34357 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
34358 (ira_build): Remove the parameter.
34360 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
34361 (ira.c): Do not build CFG loops for one region allocation. Remove
34362 argument from ira_build call.
34364 * ira-build.c (init_loop_tree_node): New function.
34365 (create_loop_tree_nodes): Use it. Separate the case when CFG
34366 loops are not built.
34367 (more_one_region_p): Check current_loops.
34368 (finish_loop_tree_nodes): Separate the case when CFG loops are not
34370 (add_loop_to_tree): Process loop equal to NULL too.
34371 (form_loop_tree): Separate the case when CFG loops are not built.
34372 Use explicitly number for the root.
34373 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
34375 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
34376 instead of loop->num.
34377 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
34378 (mark_all_loops_for_removal): Ditto.
34379 (remove_unnecessary_regions): Separate the case when CFG loops
34381 (ira_build): Remove the parameter. Use explicit number of regions
34382 when CFG loops are not built.
34384 * ira-color.c (print_loop_title): Separate the case for the root node.
34385 Use loop_num instead of loop->num.
34386 (move_spill_restore): Use loop_num instead of loop->num.
34388 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
34389 (change_loop): Ditto.
34390 (change_loop): Use loop_num instead of loop->num.
34392 * ira-lives.c (process_bb_node_lives): Ditto.
34394 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
34396 * ira-conflicts.c (print_allocno_conflicts): Ditto.
34398 2012-01-19 Jakub Jelinek <jakub@redhat.com>
34400 PR libmudflap/40778
34401 * tree-mudflap.c (mf_artificial): New function.
34402 (execute_mudflap_function_ops, execute_mudflap_function_decls,
34403 mx_register_decls, mudflap_enqueue_decl): Use it.
34406 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
34407 numbers in the insn pattern.
34409 2012-01-19 Michael Matz <matz@suse.de>
34411 PR tree-optimization/46590
34412 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
34413 use it in remembering which conflicts we already created.
34414 (add_scope_conflicts): Adjust call to above, (de)allocate helper
34417 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
34420 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
34421 (merge_and_complain): Same.
34423 2012-01-19 Jakub Jelinek <jakub@redhat.com>
34426 * config/initfini-array.h: Guard content of the header
34427 with #ifdef HAVE_INITFINI_ARRAY.
34428 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
34429 Add initfini-array.h to tm_file here.
34430 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
34431 * config.gcc: Don't add initfini-array.h to tm_file here.
34432 * configure: Regenerated.
34434 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
34436 PR rtl-optimization/51505
34437 * df-problems.c (df_kill_notes): New parameter live. Update comment.
34438 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
34439 (df_note_bb_compute): Update the call to df_kill_notes.
34441 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
34443 * trans-mem.c (requires_barrier): Remove call to is_global_var.
34445 2012-01-18 Richard Guenther <rguenther@suse.de>
34447 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
34448 of conversions to void *.
34450 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34451 Richard Sandiford <rdsandiford@googlemail.com>
34453 PR middle-end/50325
34454 PR middle-end/51192
34455 * optabs.h (simplify_expand_binop): Declare.
34456 * optabs.c (simplify_expand_binop): Make global.
34457 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
34458 endian targets if the source cannot be exactly covered by word
34461 2012-01-17 Jakub Jelinek <jakub@redhat.com>
34464 * hard-reg-set.h (struct hard_reg_set_container): New type.
34465 * target.h (struct hard_reg_set_container): Forward declare.
34466 * target.def (set_up_by_prologue): New target hook.
34467 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
34468 * doc/tm.texi: Regenerated.
34469 * function.c (thread_prologue_and_epilogue_insns): Change
34470 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
34471 Call targetm.set_up_by_prologue on it.
34472 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
34473 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
34475 2012-01-17 Nick Clifton <nickc@redhat.com>
34477 * config/rx/rx.c (rx_can_use_simple_return): New function.
34478 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
34479 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
34481 2012-01-17 Richard Guenther <rguenther@suse.de>
34483 PR middle-end/51782
34484 * expr.c (expand_assignment): Take address-space information
34485 from the address operand of MEM_REF and TARGET_MEM_REF.
34486 (expand_expr_real_1): Likewise.
34488 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34490 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
34491 reload dump is requested.
34493 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
34496 * trans-mem.c (requires_barrier): Call may_be_aliased.
34498 2012-01-17 Jakub Jelinek <jakub@redhat.com>
34500 PR tree-optimization/51877
34501 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
34502 call arguments and fndecls compare equal, instead return false if they
34503 don't. Return true only if lhs1 and lhs2 are either both NULL, or
34504 both SSA_NAMEs that are valueized the same, or they satisfy
34507 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34509 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
34511 * configure: Regenerate.
34513 2012-01-16 Jan Hubicka <jh@suse.cz>
34517 * convert.c (convert_to_integer): Use fold_convert for
34518 converting an INTEGER_CST to integer type.
34520 2012-01-16 Jason Merrill <jason@redhat.com>
34523 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
34525 2012-01-16 Jakub Jelinek <jakub@redhat.com>
34528 * config/s390/s390.c (s390_chunkify_start): Don't skip
34529 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
34530 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
34531 If insn is followed by NOTE_INSN_VAR_LOCATION or
34532 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
34533 Don't use location of note insns.
34535 PR tree-optimization/51865
34536 * tree-inline.c (tree_function_versioning): Call remap_decl
34537 on DECL_RESULT whenever it has VOID_TYPE_P type.
34539 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
34541 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
34542 for calls to locally-binding MIPS16 functions if only the return
34543 type uses float regs.
34545 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
34546 Richard Sandiford <rdsandiford@googlemail.com>
34548 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
34549 (SYMBOL_32_HIGH): Likewise.
34550 (mips_output_tls_reloc_directive): Declare.
34551 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
34552 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
34553 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
34554 (mips_lo_relocs, mips_hi_relocs): Make extern.
34555 (mips16_stub_function): Move up file.
34556 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
34557 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
34558 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
34559 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
34560 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
34561 (mips_get_tp): Add MIPS16 support.
34562 (mips_legitimize_tls_address): Remove MIPS16 sorry().
34563 Generalize DTPREL and TPREL handling.
34564 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
34565 Add MIPS16 TLS support.
34566 (mips_output_tls_reloc_directive): New function.
34567 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
34568 * config/mips/predicates.md (symbolic_operand_with_high)
34569 (tls_reloc_operand): New predicates.
34570 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
34571 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
34572 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
34573 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
34574 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
34575 (*tls_get_tp_mips16_call_<mode>): Likewise.
34577 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
34579 PR rtl-optimization/51821
34580 * recog.c (peep2_find_free_register): Determine clobbered registers
34583 2012-01-14 Denis Chertykov <chertykov@gmail.com>
34586 * config/avr/avr-protos.h: Revert change of 2012-01-09.
34587 * config/avr/avr.c: Likewise.
34588 * config/avr/avr.h: Likewise.
34590 2012-01-13 Ian Lance Taylor <iant@google.com>
34593 * tree.h (TYPE_QUALS): Add cast to int.
34594 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
34596 2012-01-13 Ian Lance Taylor <iant@google.com>
34598 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
34599 comparing param_index to VEC_length result.
34601 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
34603 * c-decl.c: Do not include tree-mudflap.h
34604 * tree-optimize.c: Likewise.
34605 * Makefile.in: Update dependencies.
34607 2012-01-13 Richard Guenther <rguenther@suse.de>
34610 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
34611 variable-sized result always use RSO.
34613 2012-01-12 DJ Delorie <dj@redhat.com>
34615 * cfgexpand.c (convert_debug_memory_address): Allow any valid
34616 pointer type, not just the default pointer type.
34618 2012-01-09 Richard Henderson <rth@redhat.com>
34619 Denis Chertykov <chertykov@gmail.com>
34622 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
34623 * config/avr/avr.c (avr_can_eliminate): Simplify.
34624 (avr_initial_elimination_offset): Likewise.
34625 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
34626 (expand_epilogue): Likewise.
34627 (avr_legitimize_address): Gut.
34628 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
34629 (avr_hard_regno_nregs): New.
34630 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
34631 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
34632 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
34633 add soft frame pointer.
34634 (CALL_USED_REGISTERS): Likewise.
34635 (REG_CLASS_CONTENTS): Likewise.
34636 (REGISTER_NAMES): Likewise.
34637 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
34638 (HARD_FRAME_POINTER_REGNUM): New.
34639 (FRAME_POINTER_REGNUM): Use soft frame pointer.
34640 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
34641 remove the HARD_FRAME_POINTER self-elimination.
34643 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
34646 * config/avr/avr.c (avr_encode_section_info): Test for absence of
34647 DECL_EXTERNAL when checking for initializers of progmem variables.
34649 2012-01-12 Ira Rosen <irar@il.ibm.com>
34651 PR tree-optimization/51799
34652 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
34653 that the last operation is a type demotion.
34655 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
34657 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
34658 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
34660 2012-01-11 Jakub Jelinek <jakub@redhat.com>
34663 * combine.c (distribute_notes): If i3 is a noreturn call,
34664 allow old_size to be equal to args_size and make sure the
34665 noreturn call gets REG_ARGS_SIZE note.
34666 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
34667 on noreturn calls even when the delta is 0.
34669 2012-01-11 Nathan Sidwell <nathan@acm.org>
34671 * gcov.c (STRING_SIZE): Remove.
34672 (generate_results): Erase annotations for source files with no
34673 coverage information.
34675 (output_lines): Use it.
34677 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
34679 * gimple.h (gimplify_body): Remove first argument.
34680 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
34681 pointer set here, instead just pass DATA to walk_tree.
34682 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
34683 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
34684 (unvisit_body): Likewise, but with unmark_visited.
34685 (gimplify_body): Remove BODY_P argument and adjust.
34686 (gimplify_function_tree): Adjust call to gimplify_body.
34687 * omp-low.c (finalize_task_copyfn): Likewise.
34689 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
34691 * tree.h (build_function_decl_skip_args): Add boolean parameter.
34692 (build_function_type_skip_args): Delete.
34693 * tree.c (build_function_type_skip_args): Make static and add
34694 SKIP_RETURN parameter. Fix thinko in the handling of variants.
34695 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
34696 pass it to build_function_type_skip_args.
34697 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
34698 (tree_function_versioning): Likewise.
34699 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
34700 build_function_decl_skip_args.
34701 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
34702 and pass it to build_function_decl_skip_args/tree_function_versioning.
34703 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
34704 * ipa-inline-transform.c (save_inline_function_body): Likewise.
34705 * trans-mem.c (ipa_tm_create_version): Likewise.
34706 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
34707 * tree-inline.c (declare_return_variable): Remove always-true test.
34708 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
34709 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
34710 * ipa-split.c (split_function): Skip the return value for the split
34711 part if it doesn't return.
34713 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34715 PR tree-optimization/49642
34716 * ipa-split.c (forbidden_dominators): New variable.
34717 (check_forbidden_calls): New function.
34718 (dominated_by_forbidden): Likewise.
34719 (consider_split): Check for forbidden dominators.
34720 (execute_split_functions): Initialize and free forbidden
34721 dominators info; call check_forbidden_calls.
34723 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
34725 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
34727 2012-01-11 Nick Clifton <nickc@redhat.com>
34729 * config/rx/rx.md (return): Define pattern.
34731 2012-01-11 Richard Guenther <rguenther@suse.de>
34733 * doc/extend.texi (malloc attribute): Adjust according to
34736 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
34737 Patrick Marlier <patrick.marlier@gmail.com>
34739 PR middle-end/51516
34740 * trans-mem.c (get_cg_data): Traverse aliases if requested.
34741 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
34742 (ipa_tm_note_irrevocable): Same.
34743 (ipa_tm_scan_irr_block): Same.
34744 (ipa_tm_decrement_clone_counts): Same.
34745 (ipa_tm_scan_irr_function): Same.
34746 (ipa_tm_create_version_alias): Same.
34747 (ipa_tm_create_version): Same.
34748 (ipa_tm_transform_calls_redirect): Same.
34749 (ipa_tm_transform_calls): Same.
34750 (ipa_tm_transform_transaction): Same.
34751 (ipa_tm_execute): Same.
34753 2012-01-10 Richard Guenther <rguenther@suse.de>
34755 PR middle-end/51806
34756 * opts.c (common_handle_option): Handle -Werror.
34758 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
34760 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
34763 2012-01-10 Jason Merrill <jason@redhat.com>
34765 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
34768 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34770 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
34771 supports R_386_TLS_GD_PLT reloc.
34772 (gcc_cv_as_ix86_tlsldmplt): Check if linker
34773 supports R_386_TLS_LDM_PLT reloc.
34774 * configure: Regenerate.
34775 * config.in: Regenerate.
34777 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
34780 Extend __pgmx semantics to linearize memory.
34781 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
34782 determine if code comes inline or from libgcc.
34783 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
34784 (movmem_qi, movmem_qi): Set constraint #2 to "n".
34785 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
34786 (movmemx_qi, movmemx_hi): New insns.
34787 (xload_<mode>_libgcc): Rewrite to new insn condition.
34788 (xload_<mode>): Remove insns.
34789 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
34790 cases that don't satisfy avr_xload_libgcc_p().
34791 (avr_addr_space_convert): Allow converting in any direction.
34792 (avr_addr_space_subset_p): Return always true.
34793 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
34794 (avr_emit_movmemhi): Ditto.
34795 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
34796 (avr_out_movmem): Ditto.
34797 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
34798 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
34799 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
34800 (avr_encode_section_info): Encode 'progmem' in symbol flags.
34801 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
34803 2012-01-10 Richard Guenther <rguenther@suse.de>
34805 PR tree-optimization/50913
34806 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
34807 Require data-refs to be representable by Graphite with respect
34810 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
34812 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
34813 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
34815 2012-01-10 Tom de Vries <tom@codesourcery.com>
34817 PR rtl-optimization/51271
34818 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
34819 handling annulled branch.
34821 2012-01-10 Richard Henderson <rth@redhat.com>
34823 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
34824 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
34825 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
34826 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
34827 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
34828 arm_expand_vec_perm_const): New.
34829 * config/arm/arm-protos.h: Update.
34830 * config/arm/neon.md (UNSPEC_VCONCAT): New.
34831 (*neon_vswp<VDQX>): New.
34832 (neon_vcombine<VDX>): Use neon_split_vcombine.
34833 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
34834 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
34835 (vec_perm<VE>): New.
34837 2012-01-10 Richard Henderson <rth@redhat.com>
34839 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
34840 use it if reload_completed.
34841 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
34842 arm_output_asm_insn, arm_process_output_memory_barrier,
34843 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
34844 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
34845 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
34846 arm_process_output_sync_insn, arm_output_sync_insn,
34847 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
34848 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
34849 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
34850 (emit_unlikely_jump): New.
34851 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
34852 (arm_split_atomic_op): New.
34853 * config/arm/arm-protos.h: Update.
34854 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
34855 (struct arm_sync_generator): Remove.
34856 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
34857 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
34858 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
34859 (VUNSPEC_LL, VUNSPEC_SC): New.
34860 (sync_result, sync_memory, sync_required_value, sync_new_value,
34861 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
34862 (attr length): Don't use arm_sync_loop_insns.
34863 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
34864 (movsfcc, movdfcc): Likewise.
34865 * config/arm/constraints.md (Ua): New.
34866 * config/arm/prediates.md (mem_noofs_operand): New.
34867 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
34868 (sync_clobber, sync_t2_reqd): Remove.
34869 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
34870 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
34871 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
34872 (arm_sync_compare_and_swap<SIDI>): Remove.
34873 (arm_sync_compare_and_swap<NARROW>): Remove.
34874 (arm_sync_lock_test_and_set<SIDI>): Remove.
34875 (arm_sync_lock_test_and_set<NARROW>): Remove.
34876 (arm_sync_new_<syncop><SIDI>): Remove.
34877 (arm_sync_new_<syncop><NARROW>): Remove.
34878 (arm_sync_new_nand<SIDI>): Remove.
34879 (arm_sync_new_nand<NARROW>): Remove.
34880 (arm_sync_old_<syncop><SIDI>): Remove.
34881 (arm_sync_old_<syncop><NARROW>): Remove.
34882 (arm_sync_old_nand<SIDI>): Remove.
34883 (arm_sync_old_nand<NARROW>): Remove.
34884 (*memory_barrier): Merge arm_output_memory_barrier.
34885 (atomic_compare_and_swap<QHSD>): New.
34886 (atomic_compare_and_swap<NARROW>_1): New.
34887 (atomic_compare_and_swap<SIDI>_1): New.
34888 (atomic_exchange<QHSD>): New.
34889 (cas_cmp_operand, cas_cmp_str): New.
34890 (atomic_op_operand, atomic_op_str): New.
34891 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
34892 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
34893 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
34894 (arm_load_exclusive<NARROW>): New.
34895 (arm_load_exclusivesi, arm_load_exclusivedi): New.
34896 (arm_store_exclusive<QHSD>): New.
34898 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
34900 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
34901 reload patterns if -mvsx-scalar-memory.
34903 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
34904 generated, even -mno-vsx-scalar-double was used.
34905 (vsx_xscvdpsp_scalar): Likewise.
34906 (vsx_xscvspdp_scalar2): Likewise.
34908 2012-01-09 Tom de Vries <tom@codesourcery.com>
34909 Andrew Pinski <apinski@cavium.com>
34912 * reorg.c (fill_slots_from_thread): Don't speculate
34913 frame-related insns.
34915 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
34917 * sched-int.h (bb_note): Move to...
34918 * basic-block.h: ...here.
34919 * haifa-sched.c (bb_note): Move to...
34920 * cfgrtl.c: ...here.
34921 * function.c (next_block_for_reg): New function.
34922 (move_insn_for_shrink_wrap): Likewise.
34923 (prepare_shrink_wrap): Rewrite to use the above.
34925 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
34927 * gimple.c (is_gimple_non_addressable): Remove.
34928 * gimple.h: Remove is_gimple_non_addressable.
34929 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
34930 is_gimple_non_addressable.
34931 * trans-mem.c (expand_assign_tm): Same.
34933 2012-01-09 Richard Guenther <rguenther@suse.de>
34935 PR tree-optimization/51775
34936 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
34937 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
34939 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
34941 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
34943 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
34945 2012-01-09 Richard Guenther <rguenther@suse.de>
34947 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
34949 2012-01-08 Jan Hubicka <jh@suse.cz>
34951 PR tree-optimize/51680
34952 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
34953 on when known_vals needs to be computed; cleanup.
34955 2012-01-08 Jan Hubicka <jh@suse.cz>
34957 PR tree-optimize/51694
34958 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
34960 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
34962 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
34963 for -std=c++98 and -std=c++11 too.
34965 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
34967 * cfgloop.c (cancel_loop): Add free() of bbs array.
34969 2012-01-07 Jan Hubicka <jh@suse.cz>
34971 PR tree-optimization/51600
34972 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
34973 that benefits small functions.
34975 2012-01-07 Jan Hubicka <jh@suse.cz>
34977 * ipa-inline.c (want_inline_small_function_p): Fix formating.
34979 2012-01-07 Jan Hubicka <jh@suse.cz>
34981 PR tree-optimization/51680
34982 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
34983 whose inlining reduce unit size.
34985 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
34988 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
34989 Add canonical node to containing_mem chain after the non-canonical
34990 one, even if there weren't any locs to propagate.
34991 (remove_useless_values): Keep only canonical values.
34992 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
34993 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
34994 canonicalize mem_chain elements that are not discarded.
34996 2012-01-06 Jakub Jelinek <jakub@redhat.com>
34999 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
35000 before emitting functions.
35002 PR gcov-profile/50127
35003 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
35004 clear_aux_for_blocks.
35006 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
35009 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
35011 2012-01-06 Arnaud Charlet <charlet@adacore.com>
35013 * c-decl.c (ext_block): Moved up.
35014 (collect_all_refs, for_each_global_decl): Take ext_block into account.
35016 2012-01-06 Han Shen <shenhan@google.com>
35018 Translate built-in include paths for sysroot.
35019 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
35020 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
35022 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
35023 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
35025 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
35026 control whether sysroot should be prepended to gxx include dir.
35028 * configure: Regenerate.
35030 2012-01-06 Torvald Riegel <triegel@redhat.com>
35032 PR rtl-optimization/51771
35033 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
35034 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
35036 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
35038 PR tree-optimization/51315
35039 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
35040 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
35042 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
35045 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
35046 for shrp pattern. Correctly handle and fixup shift variable.
35047 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
35049 2012-01-05 Jakub Jelinek <jakub@redhat.com>
35052 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
35053 note when !ACCUMULATE_OUTGOING_ARGS.
35055 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
35057 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
35059 (extract_range_from_unary_expr_1): Avoid useless computations.
35061 2012-01-05 Jakub Jelinek <jakub@redhat.com>
35063 PR rtl-optimization/51767
35064 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
35065 of jump_block and add an extra edge for degenerated asm gotos.
35067 PR middle-end/51768
35068 * stmt.c (check_unique_operand_names): Don't ICE during error
35069 reporting if i is from labels chain.
35071 PR middle-end/44777
35072 * profile.c (branch_prob): Split bbs that have exit edge
35073 and need a fake entry edge too.
35075 2012-01-05 Jan Hubicka <jh@suse.cz>
35077 PR middle-end/49710
35078 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
35081 2012-01-05 Richard Guenther <rguenther@suse.de>
35084 * tree-streamer-out.c (write_ts_optimization): New function.
35085 (streamer_write_tree_body): Call it.
35086 * tree-streamer-in.c (lto_input_ts_optimization): New function.
35087 (streamer_read_tree_body): Call it.
35088 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
35090 2012-01-05 Jakub Jelinek <jakub@redhat.com>
35092 PR middle-end/51761
35093 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
35094 * gimplify.c (gimplify_cleanup_point_expr): Save and set
35095 in_cleanup_point_expr before gimplify_stmt call and restore it
35097 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
35098 in_cleanup_point_expr is false.
35100 2012-01-05 Richard Guenther <rguenther@suse.de>
35102 PR middle-end/51764
35103 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
35105 * toplev.c (process_options): Reject combining mudflap and LTO.
35106 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
35108 2012-01-05 Richard Guenther <rguenther@suse.de>
35110 PR tree-optimization/51760
35111 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
35113 (bit_value_unop): Handle UNDEFINED operands.
35114 (bit_value_binop): Likewise.
35116 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
35118 * config/avr/avr.c (avr_replace_prefix): Remove.
35119 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
35120 (avr_asm_function_rodata_section): Ditto.
35121 (avr_asm_select_section): Ditto.
35123 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35125 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
35128 2012-01-05 Jakub Jelinek <jakub@redhat.com>
35131 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
35132 calls that have any non-fake successor edges.
35135 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
35137 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
35139 PR tree-optimization/51624
35140 * tree-sra.c (build_ref_for_model): When replicating a chain of
35141 COMPONENT_REFs, stop as soon as the offset would become negative.
35143 2012-01-04 Jakub Jelinek <jakub@redhat.com>
35146 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
35147 in .debug_loc on the floor.
35149 2012-01-04 Andrew Pinski <apinski@cavium.com>
35151 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
35153 2012-01-04 Andrew Pinski <apinski@cavium.com>
35154 Adam Nemet <anemet@caviumnetworks.com>
35156 * config/mips/mips.md (size): Add SI and DI.
35157 (SIZE): New mode attribute.
35158 (U): New code attribute.
35159 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
35160 (mips_lbux_<mode>): Delete.
35161 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
35162 (mips_lhx): Use gen_mips_lhx_extsi.
35163 (mips_lhx_<mode>): Delete.
35164 (mips_lwx): Delete.
35165 (mips_l<size>x): New expand.
35166 (mips_lwx_<mode>): Delete.
35167 (mips_l<GPR:size>x_<P:mode>): New pattern.
35168 (*mips_lw<u>x_<P:mode>_ext): Likewise.
35169 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
35170 * config/mips/mips.c (mips_lx_address_p): New function.
35171 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
35172 (dsp64): New availability predicate.
35173 (mips_builtins): Add an entry for __builtin_mips_ldx.
35174 * config/mips/mips.h (ISA_HAS_LBX): New define.
35175 (ISA_HAS_LBUX): Likewise.
35176 (ISA_HAS_LHX): Likewise.
35177 (ISA_HAS_LHUX): Likewise.
35178 (ISA_HAS_LWX): Likewise.
35179 (ISA_HAS_LWUX): Likewise.
35180 (ISA_HAS_LDX): Likewise.
35181 * doc/extend.texi (__builtin_mips_ldx): Document.
35183 2012-01-04 Tristan Gingold <gingold@adacore.com>
35185 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
35186 when long pointers are used.
35187 * config.build (*-*-*vms*): Handle all OpenVMS targets.
35188 (alpha64-dec-*vms*, alpha*-dec-*vms*)
35189 (ia64-hp-*vms*): Remove.
35190 * config/vms/xm-vms64.h: Delete.
35192 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
35194 PR middle-end/51472
35195 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
35197 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
35199 * opts.c (finish_options): Remove duplicate sorry.
35201 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
35203 PR middle-end/51696
35204 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
35207 2012-01-04 Richard Guenther <rguenther@suse.de>
35209 PR middle-end/51750
35210 * tree.c (size_low_cst): New function.
35211 * tree.h (size_low_cst): Declare.
35212 * fold-const.c (fold_comparison): Use it to extract the low
35213 part of the POINTER_PLUS_EXPR offset.
35215 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
35217 Fix clearing ZERO_REG
35218 * config/avr/avr.md (cc): Add alternative "ldi".
35219 (movqi_insn): Use it in cc attribute.
35220 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
35221 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
35222 (output_reload_insisf): Use ZERO_REG to pre-clear register.
35224 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35226 * configure: Regenerate.
35228 2012-01-04 Richard Guenther <rguenther@suse.de>
35230 PR tree-optimization/49651
35231 * tree-ssa-structalias.c (type_can_have_subvars): New function.
35232 (var_can_have_subvars): Use it.
35233 (get_constraint_for_1): Only consider subfields if there can be any.
35235 2012-01-03 Jakub Jelinek <jakub@redhat.com>
35238 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
35239 to its new canonical_cselib_val and the cselib_val was in
35240 first_containing_mem chain, but the canonical_cselib_val was not,
35241 add the latter into the chain.
35242 (cselib_invalidate_mem): Compare canonical_cselib_val of
35243 addr_list chain elt with v.
35246 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
35247 dwarf2out_undef): Allocate e.info using ggc_strdup instead
35249 (output_macinfo_op): Don't ggc_strdup fd->filename.
35250 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
35251 then ggc_strdup it. Don't free inc->info or cur->info.
35252 (output_macinfo): Don't free ref->info or file->info.
35254 2012-01-03 Ira Rosen <irar@il.ibm.com>
35256 PR tree-optimization/51269
35257 * tree-vect-loop-manip.c (set_prologue_iterations): Make
35258 first_niters a pointer.
35259 (slpeel_tree_peel_loop_to_edge): Likewise.
35260 (vect_do_peeling_for_loop_bound): Update call to
35261 slpeel_tree_peel_loop_to_edge.
35262 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
35263 here. Remove it from the parameters list.
35264 (vect_do_peeling_for_alignment): Update calls and compute
35265 wide_prolog_niters.
35267 2012-01-03 Richard Guenther <rguenther@suse.de>
35269 PR tree-optimization/51070
35270 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
35271 Properly handle calls.
35273 2012-01-03 Richard Guenther <rguenther@suse.de>
35275 PR tree-optimization/51692
35276 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
35277 the LHS of allocation stmts.
35279 2012-01-03 Olivier Hainque <hainque@adacore.com>
35281 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
35283 2012-01-03 Olivier Hainque <hainque@adacore.com>
35285 * collect2.c (main): In AIX specific computations for vector
35286 insertions, use CONST_CAST2 to cast from char ** to const char **.
35288 2012-01-03 Richard Guenther <rguenther@suse.de>
35291 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
35292 the context of a limbo DIE when it does not already exist.
35294 2012-01-03 Jakub Jelinek <jakub@redhat.com>
35296 PR tree-optimization/51719
35297 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
35298 but direct call is, clear direct call's lhs and don't add fallthrough
35299 edge from dcall_bb to join_bb and PHIs.
35301 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35303 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
35304 the instructions emitted by the pattern.
35305 ("*TDC_insn_<mode>"): Add comment.
35307 2012-01-03 Richard Guenther <rguenther@suse.de>
35309 PR middle-end/51730
35310 * fold-const.c (fold_comparison): Properly canonicalize
35311 tree offset and HOST_WIDE_INT bit position.
35313 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
35315 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
35316 operands for extzv pattern.
35318 2012-01-02 Jakub Jelinek <jakub@redhat.com>
35321 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
35324 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
35326 * doc/invoke.texi (-flto and related options): Copy-edit.
35328 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35330 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
35332 2012-01-02 Jakub Jelinek <jakub@redhat.com>
35334 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
35337 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35339 * expr.h (move_by_pieces_ninsns): Declare.
35340 * expr.c (move_by_pieces_ninsns): Make external.
35341 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
35342 (mips_store_by_pieces_p): Likewise.
35343 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
35344 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
35345 * config/mips/mips.c (mips_move_by_pieces_p): New function.
35346 (mips_store_by_pieces_p): Likewise.
35348 2012-01-02 Jakub Jelinek <jakub@redhat.com>
35350 * passes.c (register_one_dump_file): Free full_name.
35352 * reload1.c (reload): Don't allocate reg_max_ref_width here.
35353 (calculate_elim_costs_all_insns): Free offsets_at and
35354 offsets_known_at at the end and clear the pointers.
35356 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
35358 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
35359 this option introduced in r180739.
35361 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
35364 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
35365 (tmake_file target=avr): Add avr/t-multilib.
35367 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
35368 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
35369 * config/avr/genmultilib.awk: New file.
35370 * config/avr/t-multilib: New auto-generated file.
35371 * config/avr/multilib.h: New auto-generated file.
35372 * config/avr/t-avr (AVR_MCUS): New variable.
35373 (genopt.sh): Use it.
35374 (s-mlib): Depend on t-multilib.
35375 (t-multilib, multilib.h): New dependencies.
35376 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
35377 (MULTILIB_OPTIONS): Remove.
35378 (MULTILIB_MATCHES): Remove.
35379 (MULTILIB_DIRNAMES): Remove.
35380 (MULTILIB_EXCEPTIONS): Remove:
35381 * config/avr/genopt.sh: Don't use hard coded file name;
35382 pass AVR_MCUS from t-avr instead.
35384 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
35386 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
35388 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
35390 Implement light-weight DImode support.
35391 * config/avr/avr-dimode.md: New file.
35392 * config/avr/avr.md: Include it.
35393 (adjust_len): Add plus64, compare64.
35394 (HIDI): Remove code iterator.
35395 (code_stdname): New code attribute.
35396 (rotx, rotsmode): Remove DI.
35397 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
35399 * config/avr/avr-protos.h (avr_have_dimode): New.
35400 (avr_out_plus64, avr_out_compare64): New.
35401 * config/avr/avr.c (avr_out_compare): Handle DImode.
35402 (avr_have_dimode): New variable definition and initialization.
35403 (avr_out_compare64, avr_out_plus64): New functions.
35404 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
35405 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
35406 (avr_compare_pattern): Skip DImode comparisons.
35408 2012-01-02 Revital Eres <revital.eres@linaro.org>
35410 * ddg.c (def_has_ccmode_p): New function.
35411 (add_cross_iteration_register_deps,
35412 create_ddg_dep_from_intra_loop_link): Call it.
35414 2012-01-02 Richard Guenther <rguenther@suse.de>
35417 * invoke.texi (fassociative-math): Remove spurious paranthesis.
35419 2012-01-01 Jakub Jelinek <jakub@redhat.com>
35421 * gcc.c (process_command): Update copyright notice dates.
35422 * gcov.c (print_version): Likewise.
35423 * gcov-dump.c (print_version): Likewise.
35424 * mips-tfile.c (main): Likewise.
35425 * mips-tdump.c (main): Likewise.
35427 2012-01-01 Ira Rosen <irar@il.ibm.com>
35429 PR tree-optimization/51704
35430 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
35431 a use is inside the basic block or loop before accessing its vect info.
35433 2012-01-01 Jan Hubicka <jhjh@suse.cz>
35435 PR rtl-optimization/51069
35436 * cfgloopmanip.c (remove_path): Removing path making irreducible
35437 region unconditional makes BB part of the region.
35439 2012-01-01 Jakub Jelinek <jakub@redhat.com>
35441 PR tree-optimization/51683
35442 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
35443 calls with side-effects.
35444 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
35446 Copyright (C) 2012 Free Software Foundation, Inc.
35448 Copying and distribution of this file, with or without modification,
35449 are permitted in any medium without royalty provided the copyright
35450 notice and this notice are preserved.